* {
    box-sizing: border-box;
}

:root {
    --primary: #3f7f82;
    --primary-dark: #32696c;
    --primary-light: #eaf3f3;

    --text: #243238;
    --text-secondary: #66757c;

    --border: #d8e0e3;
    --background: #edf4f4;

    --white: #ffffff;

    --danger: #c4473a;
    --danger-dark: #a83b31;
    --danger-light: #fbeceb;

    --warning: #a56a00;
    --warning-bg: #fff7df;

    --success: #33755a;
    --success-bg: #e9f5ef;
}


/* ================================================= */
/* GENERAL                                           */
/* ================================================= */

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;
}

body {
    display: block;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at top left,
            rgba(95, 158, 160, 0.14),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f3f8f8 0%,
            #dceaea 100%
        );
}

form {
    width: 100%;
}


/* ================================================= */
/* CABECERA                                          */
/* ================================================= */

.exercise-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 72px;

    padding: 12px 32px;

    background-color: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid rgba(63, 127, 130, 0.13);

    box-shadow:
        0 2px 8px rgba(31, 63, 65, 0.05);
}

.header-title {
    font-size: 18px;
    font-weight: 650;

    color: var(--primary-dark);

    text-decoration: none;
}

.header-title:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exercise-summary {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
    padding: 28px 32px 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;

    gap: 16px;
}


/* Información ejercicio */

.exercise-heading {
    grid-column: 2;
    min-width: 520px;

    text-align: center;
}

.exercise-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 12px;
}

.exercise-heading h1 {
    grid-column: 2;

    margin: 0;

    font-size: 24px;
    font-weight: 650;

    letter-spacing: -0.3px;

    color: var(--text);
}

.exercise-title-actions {
    grid-column: 3;
    justify-self: start;

    display: flex;
    align-items: center;
    gap: 8px;
}

.exercise-meta {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 5px;
}


/* ================================================= */
/* BOTONES                                           */
/* ================================================= */

button,
input[type="submit"] {
    font-family: inherit;
}


/* Botón estándar */

.header-button {
    padding: 9px 14px;

    font-size: 13px;
    font-weight: 600;

    color: #536268;

    background-color: transparent;

    border: 1px solid var(--border);
    border-radius: 7px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.header-button:hover {
    color: var(--primary-dark);

    background-color: var(--primary-light);

    border-color: #b8cdce;
}

.back-button {
    display: none;
}


/* Acción principal */

.btn-primary {
    padding: 9px 14px;

    font-size: 13px;
    font-weight: 600;

    color: white;

    background-color: var(--primary);

    border: 1px solid var(--primary);
    border-radius: 7px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* Eliminar */

.btn-danger {
    padding: 9px 14px;

    font-size: 13px;
    font-weight: 600;

    color: var(--danger);

    background-color: var(--danger-light);

    border: 1px solid #efc6c2;
    border-radius: 7px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-danger:hover {
    color: white;

    background-color: var(--danger);
    border-color: var(--danger);
}


/* ================================================= */
/* BADGES                                            */
/* ================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 3px 8px;

    font-size: 11px;
    font-weight: 650;

    border-radius: 20px;
}

.status-visible {
    color: var(--success);

    background-color: var(--success-bg);
}

.status-hidden {
    color: #687479;

    background-color: #e9edef;
}

.status-evaluable {
    color: var(--warning);

    background-color: var(--warning-bg);
}


/* Fecha */

.fecha-entrega {
    margin: 0;

    font-size: 12px;
    font-weight: 500;

    color: var(--text-secondary);
}


/* ================================================= */
/* CONTENIDO PRINCIPAL                               */
/* ================================================= */

.exercise-main {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding: 48px 32px 70px;
}


/* Introducción */

.workspace-heading {
    margin-bottom: 24px;

    text-align: center;
}

.workspace-heading h2 {
    margin: 0 0 6px;

    font-size: 21px;
    font-weight: 650;

    color: var(--text);
}

.workspace-heading p {
    margin: 0;

    font-size: 14px;

    color: var(--text-secondary);
}


/* ================================================= */
/* WORKSPACE                                         */
/* ================================================= */

#container {
    width: 100%;
    margin: 0;

    display: grid;

    grid-template-columns:
        minmax(520px, 0.95fr)
        minmax(680px, 1.25fr);

    gap: 24px;

    align-items: stretch;
}


/* Paneles */

.workspace-panel {
    min-width: 0;

    background-color: var(--white);

    border: 1px solid rgba(63, 127, 130, 0.14);
    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(31, 63, 65, 0.07);

    overflow: hidden;
}


.panel-header {
    padding: 15px 20px;

    font-size: 14px;
    font-weight: 650;

    color: var(--text);

    background-color: #f8fbfb;

    border-bottom: 1px solid var(--border);
}


/* ================================================= */
/* DIAGRAMA ER                                       */
/* ================================================= */

.erd-panel-content {
    position: relative;

    width: 100%;
    height: 500px;

    padding: 0;

    overflow: hidden;
}

#erd_container {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-color: white;
}

#erd_container *:hover {
    cursor: default;
}

/* ================================================= */
/* MODELO RELACIONAL                                 */
/* ================================================= */

.relational-panel {
    display: flex;
    flex-direction: column;
}


.relational-panel-content {
    min-height: 430px;

    padding: 24px;
}


#relational_container {
    max-width: none;

    font-size: 17px;
}


#schemaContainer {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* ================================================= */
/* RELACIONES                                        */
/* ================================================= */

.relation {
    position: relative;

    width: 100%;
    padding: 14px 16px;

    overflow-x: auto;
    overflow-y: hidden;

    display: grid;

    grid-template-columns: max-content max-content 1fr;

    grid-template-areas:
        "name actions ."
        "structure structure structure"
        "fk fk fk";

    column-gap: 10px;
    row-gap: 8px;

    align-items: center;

    background-color: #fafcfc;

    border: 1px solid var(--border);
    border-radius: 9px;
}


.relationName {
    grid-area: name;

    width: fit-content;
    margin: 0;
    padding-left: 8px;

    font-size: 17px;
    font-weight: 650;

    color: var(--text);
}


.relationStructure {
    grid-area: structure;

    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;

    gap: 8px;

    width: max-content;
    min-width: 100%;

    padding: 8px 0;
}

.relationStructure:has(.attribute.selected) {
    padding-top: 38px;
    padding-bottom: 38px;
}

.relationStructure .attribute,
.relationStructure .newAttribute {
    margin: 0;
}


/* Selecciones */

.relation.selected,
.attribute.selected {
    border-color: var(--primary);

    background-color: var(--primary-light);

    box-shadow:
        0 0 0 2px rgba(63, 127, 130, 0.08);
}

body.creatingFK .relation.fkTargetCandidate {
    cursor: pointer;
}

body.creatingFK .relation.fkTargetCandidate:hover {
    border-color: var(--primary);

    background-color: var(--primary-light);
}

body.creatingFK .relation.fkTargetCandidate .relationName {
    cursor: pointer;
}


/* ================================================= */
/* ATRIBUTOS                                         */
/* ================================================= */

.attribute {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 8px;

    min-width: 38px;

    border-radius: 6px;
}

.attributeName {
    position: relative;

    white-space: nowrap;
}


.attribute:not([contenteditable]),
.relationName:not([contenteditable]) {
    user-select: none;

    cursor: pointer;
}


.attribute.pk > .attributeName {
    text-decoration: underline;

    text-decoration-thickness: 2px;
    text-decoration-color: var(--primary);
    text-underline-offset: 2px;
}

.attributeActionsContainer,
.attributeActionsContainer * {
    text-decoration: none;
}


/* ================================================= */
/* AÑADIR ATRIBUTO                                   */
/* ================================================= */

.newAttribute {
    width: 27px;
    height: 27px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 0;

    font-size: 18px;
    font-weight: 600;

    color: var(--primary-dark);

    background-color: var(--primary-light);

    border: 1px solid #bad3d4;
    border-radius: 50%;

    cursor: pointer;
}


.newAttribute:hover {
    background-color: #d9eaea;
}


/* ================================================= */
/* ACCIONES DE ATRIBUTOS                             */
/* ================================================= */

.relationActionsContainer {
    grid-area: actions;

    display: none;

    align-items: center;
    gap: 4px;
}

.relation.selected .relationActionsContainer {
    display: flex;
}

.attributeActionsContainer {
    position: absolute;

    left: 50%;

    display: none;

    align-items: center;
    justify-content: center;

    gap: 4px;

    white-space: nowrap;

    transform: translateX(-50%);

    z-index: 10;
}


/* Editar + eliminar */

.attributeActionsContainer.top_actions {
    top: auto;
    bottom: calc(100% + 6px);
}


/* PK + FK */

.attributeActionsContainer.bottom_actions {
    top: calc(100% + 6px);
    bottom: auto;
}


.attribute.selected .attributeActionsContainer {
    display: flex;
}

.attributeActionsContainer.groupActions {
    display: flex;

    transform: none;
}

.actionButton {
    width: 28px;
    height: 28px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;

    font-size: 15px;
    line-height: 1;

    background-color: transparent;

    border: 1px solid transparent;
    border-radius: 6px;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.actionButton:hover {
    filter: none;

    background-color: #edf3f3;

    border-color: var(--border);
}

.attribute .actionButton {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    font-size: 14px;
    line-height: 1;

    background: white;

    border: 1px solid var(--border);
    border-radius: 5px;

    cursor: pointer;
}

.attribute .actionButton:hover {
    background-color: var(--primary-light);
    border-color: #b8cdce;
}


/* ================================================= */
/* CLAVES FORÁNEAS                                   */
/* ================================================= */

.fk {
    position: absolute;

    display: block;

    min-width: 42px;

    cursor: pointer;
}


.fk_marker {
    height: 5px;

    border-left: 1px solid #718085;
    border-right: 1px solid #718085;
    border-bottom: 1px solid #718085;
}


.fk_list {
    position: relative;

    grid-area: fk;

    width: max-content;
    min-width: 100%;

    margin-top: 3px;
}

.fk_text {
    font-size: 13px;

    text-align: center;

    color: var(--text-secondary);
}

.fk:not(.multiple_attributes) .fk_text {
    position: relative;

    left: 50%;

    width: max-content;

    transform: translateX(-50%);

    text-align: center;
}


.fk.selected .fk_text {
    color: var(--primary);
}


.fk.selected .fk_marker {
    border-color: var(--primary);
}


.fk:not(.multiple_attributes) .fk_marker {
    display: none;
}


/* ================================================= */
/* NUEVA RELACIÓN                                    */
/* ================================================= */

#newRelation {
    width: fit-content;

    margin-top: 18px;

    padding: 9px 14px;

    font-size: 14px;
    font-weight: 600;

    color: var(--primary-dark);

    background-color: var(--primary-light);

    border: 1px solid #bad3d4;
    border-radius: 7px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


#newRelation:hover {
    background-color: #d9eaea;

    border-color: #9ec1c2;
}


/* ================================================= */
/* PIE PANEL DERECHO                                 */
/* ================================================= */

.workspace-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}


#bottomButtons {
    position: static;

    display: flex;

    gap: 10px;

    z-index: auto;
}


#mapCheck {
    width: auto;

    padding: 10px 18px;

    font-size: 14px;
    font-weight: 600;

    color: white;

    background-color: var(--primary);

    border: none;
    border-radius: 7px;

    cursor: pointer;
}


#mapCheck:hover {
    background-color: var(--primary-dark);
}


#btnSiguiente {
    display: none;

    padding: 10px 18px;

    font-size: 14px;
    font-weight: 600;

    color: white;

    background-color: var(--primary-dark);

    border: none;
    border-radius: 7px;

    cursor: pointer;
}


/* ================================================= */
/* CAMBIO DE FECHA                                   */
/* ================================================= */

#fechaContainer {
    margin-top: 12px;

    padding: 14px;

    background-color: #f8fbfb;

    border: 1px solid var(--border);
    border-radius: 8px;
}


#fechaContainer label {
    margin-right: 8px;

    font-size: 13px;
    font-weight: 600;
}


#fechaContainer input[type="date"] {
    padding: 7px 9px;

    font-family: inherit;

    border: 1px solid var(--border);
    border-radius: 6px;
}


/* ================================================= */
/* TOAST                                             */
/* ================================================= */

#toast_overlay {
    width: 100%;
    height: 100%;

    position: fixed;

    top: 0;
    left: 0;

    pointer-events: none;
}


.mapping_result_toast {
    position: fixed;

    left: 50%;
    bottom: 34px;

    transform: translateX(-50%);

    display: flex;

    z-index: 1000;
}


.toast_message {
    min-height: auto;

    max-width: min(920px, calc(100vw - 48px));

    padding: 18px 28px;

    transform: none;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;

    border: none;
    border-radius: 10px;

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.18);
}


.toast_message.error_mapping_message {
    color: #8c3028;

    background-color: #fbeceb;

    border: 1px solid #efc6c2;
}


.toast_message.success_mapping_message {
    color: #276049;

    background-color: #e9f5ef;

    border: 1px solid #badfce;
}


/* ================================================= */
/* RESPONSIVE                                        */
/* ================================================= */

@media (max-width: 900px) {

    .exercise-header {
        align-items: stretch;
        flex-direction: column;

        gap: 12px;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-button {
        width: 100%;
    }

    .exercise-summary {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .exercise-heading {
        grid-column: 1;
        min-width: 0;

        text-align: left;
    }

    .exercise-title-row {
        grid-template-columns: 1fr;
    }

    .exercise-heading h1,
    .exercise-title-actions {
        grid-column: 1;
        justify-self: start;
    }

    .exercise-title-actions {
        flex-wrap: wrap;
    }

    .exercise-meta {
        justify-content: flex-start;
    }

    #container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .exercise-main {
        padding: 30px 15px 50px;
    }

    .exercise-header {
        padding: 12px 15px;
    }

    .exercise-heading h1 {
        font-size: 20px;
    }

}

.exercise-date {
    width: fit-content;

    margin: 18px auto -16px;
    padding: 7px 11px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    font-size: 13px;
    color: var(--text-secondary);

    background-color: rgba(255, 255, 255, 0.75);

    border: 1px solid var(--border);
    border-radius: 7px;
}


#fechaContainer {
    width: fit-content;

    margin: 28px auto -20px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    background-color: white;

    border: 1px solid var(--border);
    border-radius: 9px;

    box-shadow:
        0 5px 16px rgba(31, 63, 65, 0.06);
}

.expired-container {
    width: 100%;
    max-width: 560px;

    margin: 120px auto;
    padding: 45px;

    text-align: center;

    background-color: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(31, 63, 65, 0.09);
}

.expired-icon {
    margin-bottom: 15px;

    font-size: 52px;
}

.expired-container h1 {
    margin: 0 0 16px;

    font-size: 26px;

    color: var(--danger);
}

.expired-container p {
    margin: 0 auto 28px;

    max-width: 460px;

    font-size: 15px;
    line-height: 1.6;

    color: var(--text-secondary);
}

.expired-back {
    display: inline-block;

    text-decoration: none;
}

/* Adaptación del estilo de ref_editor al editor autónomo. */
[hidden] { display: none !important; }
html, body { background: rgb(249, 251, 253); overflow-x: hidden; }
.back-gallery { display: inline-flex; margin: 18px 24px 0; }
.exercise-header { display: none; }
.exercise-summary { padding-top: 28px; }
.workspace-heading, .panel-note, .editor-help, .legend { display: none !important; }
.workspace-panel { border: 1px solid #000; box-shadow: none; }
.panel-header { background: #fff; border-bottom: 1px solid #000; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, a, [tabindex] { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.exercise-header { width: 100%; margin: 0; gap: 16px; }
.header-button { text-decoration: none; }
.exercise-heading h1 { overflow-wrap: anywhere; }
#container { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); align-items: start; }
.panel-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header h2 { font-size: 14px; font-weight: 650; margin: 0; }
.panel-note { margin: 0; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
#erd_container [contenteditable] { pointer-events: none; }
#erd_container .elementNameContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#erd_container .elementNameInput {
  box-sizing: border-box;
  padding: 0 3ch;
  line-height: normal;
  text-align: center;
}
#erd_container .connectionTypeLabelContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editor-help { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.empty-state { text-align: center; margin: 0; padding: 60px 24px; border: 1px dashed var(--border); border-radius: 9px; color: var(--text-secondary); font-size: 14px; }
.relation { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name actions" "structure structure" "selection selection" "fk fk"; overflow: visible; }
.relationName { max-width: 100%; overflow-wrap: anywhere; padding: 0; }
.relationActionsContainer { display: flex; }
.relationStructure { flex-wrap: wrap; width: auto; min-width: 0; }
.relationStructure:has(.attribute.selected) { padding-top: 8px; padding-bottom: 8px; }
.relationStructure .attribute.selected { margin-top: 0; }
.attribute { max-width: 100%; border: 1px solid transparent; }
.attributeName { white-space: normal; overflow-wrap: anywhere; }
.attributeActionsContainer { left: 50%; transform: translateX(-50%); }
.attributeActionsContainer[hidden] { display: none !important; }
.attributeActionsContainer.bottom_actions { top: calc(100% + 5px); bottom: auto; }
.attribute.selected .attributeActionsContainer.bottom_actions { display: flex; }
.actionButton { flex: 0 0 auto; color: var(--text-secondary); background: white; border: 1px solid var(--border); font-size: 20px; }
.deleteAction:hover { color: var(--danger); background: var(--danger-light); }
.newAttribute { flex: 0 0 auto; }
.groupActions { grid-area: selection; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.groupActions { justify-content: center; transform-origin: center; }
.groupActions .pkAction[aria-pressed="true"] { background: var(--primary); color: white; }
.groupActions .actionButton { width: 30px; height: 30px; }
#erd_container .joint-tools { display: none !important; }
#erd_container svg { pointer-events: none; }
.fk_list { display: flex; flex-direction: column; gap: 6px; width: auto; min-width: 0; }
.fk_list:empty { display: none; }
.fk { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 8px; min-height: 26px; padding: 3px 24px 3px 4px; font-size: 13px; background: transparent; border: 0; cursor: pointer; }
.fk.composite { min-height: 44px; padding-top: 22px; }
.fk_brace { display: none; position: absolute; left: 0; right: 0; top: 1px; height: 14px; border-bottom: 2px solid #333; }
.fk.composite .fk_brace { display: block; }
.fk_brace::before, .fk_brace::after { content: ""; position: absolute; top: 0; width: 2px; height: 14px; background: #333; }
.fk_brace::before { left: 0; }
.fk_brace::after { right: 0; }
.fk .fk_text, .fk:not(.multiple_attributes) .fk_text { position: static; left: auto; width: auto; transform: none; text-align: center; white-space: nowrap; overflow-wrap: anywhere; }
.fk .deleteAction { display: none; position: absolute; right: 0; top: 2px; width: 24px; height: 24px; font-size: 16px; }
.fk.selected .deleteAction { display: inline-flex; }
.name-input { font: inherit; width: 100%; min-width: 7ch; max-width: 100%; padding: 3px 5px; color: var(--text); background: white; border: 1px solid var(--primary); border-radius: 4px; }
body.creatingFK .relation { border-style: dashed; }
body.creatingFK .relation:hover { border-color: var(--primary); background: var(--primary-light); }
body.creatingFK .relationName { color: var(--primary-dark); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px 16px; background: var(--primary-light); border: 1px solid #bad3d4; border-radius: 8px; font-size: 14px; }
.notice.error { color: var(--danger); background: var(--danger-light); border-color: #efc6c2; }
.workspace-actions { justify-content: space-between; flex-wrap: wrap; }
.legend { font-size: 12px; color: var(--text-secondary); }
.mapping_result_toast { position: fixed; left: 20px; bottom: 0; transform: none; z-index: 1000; display: flex; align-items: flex-end; gap: 14px; width: min(820px, calc(100vw - 40px)); padding: 0; color: var(--success); background: transparent; border: 0; pointer-events: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.16)); }
.mapping_result_toast.error { color: var(--danger); }
.feedback_teacher { width: 224px; max-height: 290px; object-fit: contain; object-position: bottom; flex: 0 0 auto; align-self: flex-end; }
.toast_message { position: relative; min-width: 0; margin-bottom: 32px; padding: 24px 30px; font-size: 24px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; background: white; border: 2px solid currentColor; border-radius: 16px; }
.toast_message::after { content: ""; position: absolute; left: -14px; top: 50%; width: 22px; height: 22px; background: white; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-50%) rotate(135deg); }
.mapping_result_toast.error .toast_message { background: #fff7f6; }
.mapping_result_toast.success .toast_message { background: #f5fff9; }
@media (max-width: 600px) { .mapping_result_toast { left: 10px; bottom: 0; width: calc(100vw - 20px); gap: 6px; transform: none; } .feedback_teacher { width: 164px; max-height: 220px; } .toast_message { margin-bottom: 18px; padding: 16px 18px; font-size: 18px; } }
@media (max-width: 1050px) { #container { grid-template-columns: 1fr; } .erd-panel-content { height: 400px; } }
@media (max-width: 600px) { .relational-panel-content { padding: 16px; } .relation { padding: 12px; } .panel-header { padding: 12px 16px; } .erd-panel-content { height: 320px; } .header-actions { gap: 8px; } }
