/* Teacher console — premium admin shell */
.teacher-body {
    --t-ink: #13202a;
    --t-muted: #5f7380;
    --t-line: #d7e2e8;
    --t-surface: #ffffff;
    --t-canvas: #eef3f5;
    --t-sidebar: #10242c;
    --t-sidebar-2: #16343f;
    --t-brand: #0f7c88;
    --t-brand-deep: #0a5a63;
    --t-accent: #c97818;
    --t-ok: #0f7a4a;
    --t-danger: #b42318;
    --t-shadow: 0 12px 28px rgba(16, 36, 44, 0.08);
    --t-radius: 16px;
    --t-font: "IBM Plex Sans Thai", "Sarabun", sans-serif;
    --t-display: "Outfit", "IBM Plex Sans Thai", sans-serif;
    --t-sidebar-w: 268px;
    font-family: var(--t-font);
    color: var(--t-ink);
    background:
        radial-gradient(ellipse 70% 50% at 100% -10%, rgba(15, 124, 136, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at -5% 30%, rgba(201, 120, 24, 0.08), transparent 50%),
        linear-gradient(180deg, #e8f0f3 0%, var(--t-canvas) 40%, #e9eef1 100%);
    min-height: 100vh;
}

.teacher-body .app-shell {
    min-height: 100vh;
}

.t-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
}

.t-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(var(--t-sidebar-w), 86vw);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.1rem 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background:
        linear-gradient(165deg, rgba(22, 52, 63, 0.96), rgba(16, 36, 44, 0.98)),
        var(--t-sidebar);
    color: #e8f1f4;
    box-shadow: 8px 0 32px rgba(8, 20, 26, 0.28);
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.t-shell.is-sidebar-open .t-sidebar {
    transform: translateX(0);
}

.t-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(10, 22, 28, 0.45);
    backdrop-filter: blur(2px);
}

.t-backdrop[hidden] {
    display: none !important;
}

body.t-nav-lock {
    overflow: hidden;
}

.t-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}

.t-brand-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: var(--t-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, #1aa3b2, #0f7c88);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.t-brand-text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.t-brand-text strong {
    font-family: var(--t-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t-brand-text span {
    font-size: 0.74rem;
    color: rgba(232, 241, 244, 0.62);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.t-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.1rem;
    -webkit-overflow-scrolling: touch;
}

.t-nav-label {
    margin: 0.35rem 0.55rem 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 241, 244, 0.45);
    font-weight: 600;
}

.t-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.7rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(232, 241, 244, 0.88);
    transition: background 0.18s ease, color 0.18s ease;
}

.t-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.t-nav-link.is-active {
    background: linear-gradient(135deg, rgba(26, 163, 178, 0.28), rgba(15, 124, 136, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(120, 210, 220, 0.22);
}

.t-nav-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    opacity: 0.9;
}

.t-nav-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.t-nav-copy strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.t-nav-copy small {
    font-size: 0.78rem;
    color: rgba(232, 241, 244, 0.55);
    line-height: 1.35;
}

.t-nav-link.is-active .t-nav-copy small {
    color: rgba(232, 241, 244, 0.72);
}

.t-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.t-nav-muted {
    opacity: 0.88;
}

.t-nav-danger:hover {
    background: rgba(180, 35, 24, 0.22);
}

.t-main {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.t-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    background: rgba(238, 243, 245, 0.82);
    border-bottom: 1px solid rgba(215, 226, 232, 0.9);
    backdrop-filter: blur(12px);
}

.t-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.t-menu-btn {
    appearance: none;
    border: 1px solid var(--t-line);
    background: var(--t-surface);
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.t-menu-btn span {
    display: block;
    width: 16px;
    height: 1.8px;
    background: var(--t-ink);
    border-radius: 2px;
}

.t-page-heading {
    min-width: 0;
}

.t-page-heading h1 {
    margin: 0;
    font-family: var(--t-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.t-page-heading p {
    margin: 0.2rem 0 0;
    color: var(--t-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.t-user-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    border: 1px solid var(--t-line);
    border-radius: 999px;
    background: var(--t-surface);
}

.t-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #148a96, #0a5a63);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.t-user-meta {
    display: none;
    padding-right: 0.35rem;
}

.t-user-meta strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.2;
}

.t-user-meta span {
    font-size: 0.75rem;
    color: var(--t-muted);
}

.t-content {
    width: min(1180px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 1.25rem 0 2.5rem;
}

/* KPI + reports */
.t-kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.t-kpi {
    position: relative;
    overflow: hidden;
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    padding: 1.05rem 1.15rem;
    box-shadow: var(--t-shadow);
}

.t-kpi::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -24px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 124, 136, 0.12), transparent 70%);
    pointer-events: none;
}

.t-kpi-accent::after {
    background: radial-gradient(circle, rgba(201, 120, 24, 0.16), transparent 70%);
}

.t-kpi-label {
    display: block;
    color: var(--t-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.t-kpi-value {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--t-display);
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.t-kpi-suffix {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--t-muted);
    margin-left: 0.15rem;
}

.t-kpi-note {
    display: block;
    margin-top: 0.35rem;
    color: var(--t-muted);
    font-size: 0.82rem;
}

.t-section {
    margin-bottom: 1.5rem;
}

.t-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.t-section-head h2 {
    margin: 0;
    font-family: var(--t-display);
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

.t-section-head p {
    margin: 0.25rem 0 0;
    color: var(--t-muted);
    font-size: 0.9rem;
}

.t-report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.t-report-card {
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--t-shadow);
    display: grid;
    gap: 0.85rem;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.t-report-card:hover {
    border-color: rgba(15, 124, 136, 0.35);
    transform: translateY(-1px);
}

.t-report-card.is-closed {
    background: #f7fafb;
}

.t-report-top {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-start;
}

.t-report-top h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.t-report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.t-report-score {
    text-align: right;
    flex-shrink: 0;
}

.t-report-score strong {
    display: block;
    font-family: var(--t-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--t-brand-deep);
    letter-spacing: -0.02em;
    line-height: 1;
}

.t-report-score span {
    font-size: 0.78rem;
    color: var(--t-muted);
}

.t-meter {
    height: 7px;
    border-radius: 999px;
    background: #e4eef1;
    overflow: hidden;
}

.t-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f7c88, #2bb3c0);
    transition: width 0.35s ease;
}

.t-report-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem 0.75rem;
}

.t-report-stats > div {
    background: #f5f9fa;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.t-report-stats dt {
    margin: 0;
    color: var(--t-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.t-report-stats dd {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.t-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.t-empty {
    text-align: center;
    padding: 2.2rem 1.25rem;
    background: var(--t-surface);
    border: 1px dashed var(--t-line);
    border-radius: var(--t-radius);
}

.t-empty strong {
    display: block;
    font-size: 1.05rem;
}

.t-empty p {
    margin: 0.4rem 0 1rem;
    color: var(--t-muted);
}

.t-empty-soft {
    border-style: solid;
    box-shadow: none;
}

.t-panel-flush {
    padding: 0;
    overflow: hidden;
}

.t-panel-flush .table-wrap {
    border: none;
    border-radius: 0;
}

.t-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.t-toolbar-actions {
    margin: 0;
}

.t-filter select {
    min-width: min(280px, 100%);
}

/* Questions admin */
.questions-toolbar {
    align-items: center;
    margin-bottom: 1.1rem;
}

.questions-back {
    min-height: 42px;
    padding-inline: 0.95rem;
}

.questions-actions {
    margin: 0;
}

.questions-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--t-radius);
    border: 1px solid var(--t-line);
    background:
        linear-gradient(135deg, rgba(15, 124, 136, 0.08), rgba(201, 120, 24, 0.06)),
        var(--t-surface);
    box-shadow: var(--t-shadow);
    animation: t-rise 0.35s ease both;
}

.questions-summary-label {
    margin: 0;
    color: var(--t-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.questions-summary-title {
    margin: 0.3rem 0 0.65rem;
    font-family: var(--t-display);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.questions-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.questions-summary-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(215, 226, 232, 0.9);
}

.questions-summary-stat-label {
    color: var(--t-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.questions-summary-stat-value {
    margin-top: 0.2rem;
    font-family: var(--t-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--t-brand-deep);
}

.questions-form-panel,
.questions-list-panel {
    animation: t-rise 0.35s ease both;
}

.questions-form-panel {
    margin-bottom: 1.15rem;
}

.questions-list-panel {
    margin-top: 0;
}

.question-admin-list {
    display: grid;
    gap: 0.65rem;
}

.question-admin-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 0.85rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border: 1.5px solid var(--t-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f7fbfc);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.question-admin-card:hover {
    border-color: rgba(15, 124, 136, 0.35);
    box-shadow: 0 8px 20px rgba(16, 36, 44, 0.06);
    transform: translateY(-1px);
}

.question-admin-card.is-editing {
    border-color: rgba(15, 124, 136, 0.55);
    background: linear-gradient(180deg, #f0fafb, #fff);
    box-shadow: inset 0 0 0 1px rgba(15, 124, 136, 0.12);
}

.question-admin-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: var(--t-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--t-brand-deep);
    background: rgba(15, 124, 136, 0.12);
}

.question-admin-body {
    min-width: 0;
}

.question-admin-text {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--t-ink);
}

.question-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.question-admin-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

@media (min-width: 720px) {
    .questions-summary {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .questions-summary-stat {
        min-width: 140px;
        text-align: center;
    }

    .question-admin-card {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .question-admin-actions {
        grid-column: auto;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .questions-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .questions-actions {
        width: 100%;
    }
}

/* Teacher page refinements */
.teacher-body .panel {
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
}

.teacher-body .btn {
    border-radius: 11px;
}

.teacher-body .meta {
    color: var(--t-muted);
    font-size: 0.88rem;
}

.teacher-body .subject-list-panel {
    margin-top: 0;
}

/* Login (no shell) */
.teacher-body .app-shell:has(.t-login) {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.5rem 0;
}

.teacher-body .t-login {
    width: min(440px, calc(100% - 1.5rem));
    margin: 0 auto;
    animation: t-rise 0.4s ease;
}

@keyframes t-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.t-kpi,
.t-report-card,
.t-section .panel {
    animation: t-rise 0.35s ease both;
}

.t-kpi:nth-child(2) { animation-delay: 0.04s; }
.t-kpi:nth-child(3) { animation-delay: 0.08s; }
.t-kpi:nth-child(4) { animation-delay: 0.12s; }
.t-report-card:nth-child(2) { animation-delay: 0.05s; }
.t-report-card:nth-child(3) { animation-delay: 0.1s; }
.t-report-card:nth-child(4) { animation-delay: 0.15s; }

.t-login-card {
    position: relative;
    overflow: hidden;
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: 20px;
    padding: 1.6rem 1.4rem 1.35rem;
    box-shadow: 0 18px 40px rgba(16, 36, 44, 0.1);
}

.t-login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0f7c88, #c97818);
}

.t-login-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.t-login-brand h1 {
    margin: 0;
    font-family: var(--t-display);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.t-login-brand p {
    margin: 0.15rem 0 0;
    color: var(--t-muted);
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .t-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .t-kpi-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .t-report-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .t-user-meta {
        display: block;
    }
}

@media (min-width: 900px) {
    .t-report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .t-sidebar {
        position: sticky;
        top: 0;
        left: auto;
        bottom: auto;
        flex: 0 0 var(--t-sidebar-w);
        width: var(--t-sidebar-w);
        max-width: var(--t-sidebar-w);
        height: 100vh;
        max-height: 100vh;
        transform: none;
        box-shadow: none;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        align-self: flex-start;
    }

    .t-main {
        flex: 1 1 0;
        width: auto;
        max-width: calc(100% - var(--t-sidebar-w));
    }

    .t-menu-btn,
    .t-backdrop {
        display: none !important;
    }

    .t-content {
        width: min(1180px, calc(100% - 2.5rem));
        padding-top: 1.5rem;
    }

    .t-topbar {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .t-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .t-kpi-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .t-report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .teacher-body .t-content .btn-row {
        flex-direction: column;
    }

    .teacher-body .t-content .btn-row .btn {
        width: 100%;
    }

    .t-report-actions .btn {
        flex: 1 1 calc(50% - 0.45rem);
    }

    .t-section-head .btn {
        width: 100%;
    }
}

/* Import page */
.import-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.import-step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--t-line);
    background: var(--t-surface);
    box-shadow: var(--t-shadow);
    animation: t-rise 0.35s ease both;
}

.import-step-card:nth-child(2) { animation-delay: 0.04s; }
.import-step-card:nth-child(3) { animation-delay: 0.08s; }

.import-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: var(--t-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, #1aa3b2, #0f7c88);
}

.import-step-card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.import-step-card p {
    margin: 0.25rem 0 0;
    color: var(--t-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.import-template-row {
    margin: 0 0 1.15rem;
}

.import-upload-panel {
    animation: t-rise 0.4s ease both;
}

.import-dropzone {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
    padding: 1.5rem 1.15rem;
    border: 1.5px dashed rgba(15, 124, 136, 0.35);
    border-radius: 16px;
    background:
        linear-gradient(160deg, rgba(15, 124, 136, 0.06), rgba(201, 120, 24, 0.04)),
        #f7fbfc;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.import-dropzone:hover {
    border-color: var(--t-brand);
    background: #eef8f9;
}

.import-dropzone-title {
    font-weight: 700;
    font-size: 1rem;
}

.import-dropzone-hint {
    color: var(--t-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.import-dropzone input[type="file"] {
    margin-top: 0.65rem;
    max-width: 100%;
}

.import-mode-fieldset {
    display: grid;
    gap: 0.65rem;
}

.import-mode-fieldset .option-tile {
    margin: 0;
}

.results-panel-head {
    padding: 1.05rem 1.15rem 0.85rem;
}

.results-panel .t-empty {
    margin: 0.5rem 1rem 1.15rem;
}

.results-panel .table-wrap {
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--t-line);
}

.t-login-form {
    margin-top: 0.25rem;
}

.t-login-hint {
    text-align: center;
}

@media (min-width: 720px) {
    .import-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
