:root {
    color-scheme: light;
    --ink: #17263b;
    --subtle: #54667c;
    --line: #dce5ee;
    --surface: #fff;
    --canvas: #f1f5f9;
    --nav: #12243a;
    --nav-hover: #203a52;
    --teal: #08756b;
    --teal-dark: #075d55;
    --teal-soft: #def4ef;
    --radius: .85rem;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.5; }
[hidden] { display: none !important; }
a { color: var(--teal-dark); font-weight: 650; text-underline-offset: .2em; }
a:hover { color: #034a42; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #128f87; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.045em; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
ul { margin: .55rem 0; padding-inline-start: 1.3rem; }
main { min-width: 0; }
.skip-link { position: fixed; top: .5rem; left: .5rem; transform: translateY(-180%); z-index: 10; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { transform: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.app-main { grid-column: 2; grid-row: 1; min-width: 0; }
.sidebar { grid-column: 1; grid-row: 1; }
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.3rem .8rem; background: var(--nav); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; padding: .22rem .4rem; }
.brand:hover { color: inherit; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.18rem; letter-spacing: .02em; line-height: 1.15; }
.brand small { color: #b9c8d8; font-weight: 500; font-size: .73rem; margin-top: .18rem; }
.brand-mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border-radius: .72rem; background: #bceedd; color: #07594d; font-size: 1.32rem; font-weight: 850; }
.sidebar-nav { display: grid; gap: .23rem; }
.nav-group { padding: 1rem .7rem .22rem; font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #9eb1c6; }
.nav-group:first-child { padding-top: .25rem; }
.nav-link { display: flex; align-items: center; gap: .66rem; padding: .65rem .67rem; border-radius: .55rem; color: #dce8f3; text-decoration: none; font-size: .87rem; font-weight: 650; }
.nav-link:hover { color: #fff; background: var(--nav-hover); }
.nav-link.current { background: #dff6ef; color: #124a45; }
.nav-icon { display: inline-grid; place-items: center; inline-size: 1.05rem; min-inline-size: 1.05rem; color: currentColor; }
.nav-icon::before { font: 700 1.12rem/1 "Segoe UI Symbol", system-ui, sans-serif; }
.nav-icon-overview::before { content: '▦'; }
.nav-icon-spark::before { content: '✧'; }
.nav-icon-check::before { content: '✓'; }
.nav-icon-records::before { content: '▤'; }
.nav-icon-chart::before { content: '▥'; }
.nav-icon-clock::before { content: '◷'; }
.nav-icon-screen::before { content: '▣'; }
.sidebar-end { margin-top: auto; padding-top: .7rem; border-top: 1px solid #304258; }
.sidebar-logout { background: transparent; color: #e1edf6; width: 100%; justify-content: flex-start; }
.sidebar-logout:hover { background: var(--nav-hover); }
.topbar { min-height: 4.15rem; display: flex; align-items: center; justify-content: space-between; padding: .62rem clamp(1rem, 3vw, 2.25rem); gap: .8rem; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-start { min-width: 0; display: flex; align-items: center; gap: .65rem; }
.topbar-title { color: var(--subtle); font-size: .86rem; font-weight: 650; }
.user-identity { display: flex; gap: .56rem; align-items: center; min-width: 0; font-size: .79rem; }
.user-identity strong, .user-identity small { display: block; }
.user-identity small { color: var(--subtle); overflow-wrap: anywhere; }
.avatar { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; }
.workspace-content { width: min(100%, 92rem); margin-inline: auto; padding: clamp(1rem, 3vw, 2.25rem); }
.workspace-content > * { margin-bottom: 1rem; }
.workspace-content > h2 { margin-top: 1.45rem; }
.menu-toggle { display: inline-flex; }
.menu-backdrop { display: none; }
.drawer-close { display: inline-flex; align-self: flex-end; }
.icon-button { width: 2.4rem; height: 2.4rem; padding: .45rem; flex: none; justify-content: center; }
.icon-button svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.user-identity { text-decoration: none; color: var(--ink); border-radius: .5rem; padding: .25rem; }
.user-identity:hover { background: var(--teal-soft); }
.profile-card { max-width: 40rem; }
.dialog-actions { display: flex; flex-wrap: nowrap; gap: .5rem; justify-content: flex-end; }
.dialog-actions > button { width: auto; }
.sidebar-collapsed .app-shell { grid-template-columns: minmax(0, 1fr); }
.sidebar-collapsed .app-main { grid-column: 1; }
.sidebar-collapsed .sidebar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.page-head h1 { margin-bottom: .32rem; }
.page-head p { margin: 0; color: var(--subtle); }
.eyebrow { display: block; margin: 0 0 .45rem; color: var(--teal-dark); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.actions { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.card, .workspace-content > details, .workspace-content > article, .workspace-content > section:not(.hero) {
    padding: clamp(.85rem, 2vw, 1.3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.card > :last-child, section > :last-child, article > :last-child { margin-bottom: 0; }
.hero {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between;
    padding: clamp(1.2rem, 3vw, 2rem); border-radius: 1rem; color: #f4f9ff;
    background: radial-gradient(ellipse at 90% 0, #255a65 0, transparent 60%), linear-gradient(115deg, #14263d, #1c3e55);
}
.hero h1 { margin-bottom: .42rem; }
.hero .eyebrow { color: #a7efda; }
.hero p { color: #d2e3ed; }
.hero p:last-child { margin-bottom: 0; }
.hero .button-muted { color: #16483f; background: #e3f8f1; border-color: transparent; }
.school-hero-actions { display: grid; gap: .45rem; justify-items: start; }
.school-hero-metrics { display: flex; flex-wrap: wrap; gap: .15rem .7rem; margin: 0; color: #d2e3ed; font-size: .78rem; }
.school-hero-metrics div { display: flex; gap: .22rem; align-items: baseline; }
.school-hero-metrics dd { margin: 0; color: #fff; font-weight: 750; }
.school-hero { column-gap: .85rem; row-gap: .35rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; }
.module-card { display: flex; flex-direction: column; gap: .42rem; min-height: 8.5rem; text-decoration: none; color: var(--ink); }
.module-card:hover { border-color: #69b3a9; color: var(--ink); box-shadow: 0 5px 15px #132f4610; }
.module-card strong { font-size: 1.08rem; line-height: 1.25; }
.module-card p { color: var(--subtle); font-size: .89rem; }
.module-card .module-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; color: var(--teal-dark); background: var(--teal-soft); border-radius: .55rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.card-title h2 { margin: 0; }
.metric span, .metric strong { display: block; }
.metric span { color: var(--subtle); font-weight: 650; }
.metric strong { font-size: 2rem; line-height: 1.2; margin-top: .3rem; }
.lesson-card h3 { margin-bottom: .5rem; }
.lesson-status { margin-bottom: .55rem; }
#pages > section, #pages details, #preview { padding: .75rem; margin-block: .65rem; border: 1px solid var(--line); border-radius: .55rem; background: #fff; }
#pages .block { display: flex; flex-wrap: wrap; align-items: end; gap: .35rem .6rem; padding-block: .3rem; }
.stack, .stack-form { display: grid; gap: .85rem; }
.form-grid, .filterbar { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem .8rem; }
.filterbar { padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.workspace-content form:not(.sidebar-end):not(.stack-form):not(.inline-form) { margin-block: .6rem; }
.workspace-content form label:not(.check-label) { margin: .22rem .45rem .22rem 0; }
label { display: inline-flex; flex-direction: column; gap: .28rem; max-width: 100%; color: #26394f; font-size: .85rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
    min-height: 2.42rem; padding: .43rem .62rem; border: 1px solid #bfcde0; border-radius: .48rem; background: #fff; color: var(--ink); max-width: 100%;
}
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
input::placeholder { color: #63758a; }
input[disabled], select[disabled] { opacity: .65; }
.check-label, fieldset label { flex-direction: row; align-items: center; }
fieldset { padding: .6rem; border: 1px solid var(--line); border-radius: .55rem; min-width: 0; }
legend { padding-inline: .35rem; font-weight: 650; }
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.42rem;
    border: 1px solid transparent; border-radius: .5rem; padding: .44rem .78rem; background: var(--teal); color: #fff;
    text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.25; cursor: pointer; vertical-align: middle;
}
button:hover, .button:hover { background: var(--teal-dark); color: #fff; }
button:disabled { opacity: .48; cursor: default; }
.button-muted { color: #27415a; background: #edf3f8; border-color: #d6e2ec; }
.button-muted:hover { color: #17354f; background: #ddeaf3; }
.inline-form { display: flex; align-items: center; gap: .45rem; }
.inline-form select { width: min(15rem, 100%); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; background: var(--surface); text-align: left; font-size: .88rem; }
.class-totals td { white-space: nowrap; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid #e8eef4; vertical-align: middle; text-align: left; }
thead th { background: #eaf1f7; color: #3a4d64; white-space: nowrap; font-size: .76rem; font-weight: 760; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8fbfd; }
.point { display: inline-flex; border-radius: .42rem; padding: .18rem .55rem; color: #104c45; background: var(--teal-soft); font-weight: 800; font-variant-numeric: tabular-nums; }
.point-negative { color: #812c35; background: #fff0f2; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.student-compact td { white-space: nowrap; }
.point-target { display:inline-grid; place-items:center; width:2.75rem; min-height:2.75rem; padding:0; color:var(--teal-dark); background:var(--teal-soft); }
.point-target span { position:relative; width:1.15rem; height:1.15rem; border:2px solid currentColor; border-radius:50%; }
.point-target span::before, .point-target span::after { position:absolute; content:''; top:50%; left:50%; transform:translate(-50%,-50%); border-radius:50%; }
.point-target span::before { width:.65rem; height:.65rem; border:1px solid currentColor; }
.point-target span::after { width:.22rem; height:.22rem; background:currentColor; }
.pill { display: inline-flex; align-items: center; padding: .18rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 700; background: #eaf0f5; color: #435773; }
.pill-green { background: var(--teal-soft); color: #0c6055; }
.pill-amber { background: #fff2d6; color: #73490a; }
.muted { color: var(--subtle); }
.notice { padding: .72rem .85rem; border-radius: .55rem; border: 1px solid; margin-block: .75rem; }
.notice-success { color: #07554a; border-color: #a4d8c9; background: #e6f8f2; }
.notice-error { color: #812c35; border-color: #ecc3c8; background: #fff0f2; }
ul.notice { padding-inline-start: 1.85rem; }
details > summary { cursor: pointer; color: #1d3650; font-weight: 760; }
details[open] > summary { margin-bottom: .65rem; }
.flat-list { padding: 0; margin: 0; list-style: none; }
.flat-list li { padding: .64rem .2rem; border-bottom: 1px solid var(--line); }
.flat-list li:last-child { border-bottom: none; }
.history-list li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.history-list li div { overflow-wrap: anywhere; }
.history-list li div > span { margin-inline-start: .35rem; color: var(--subtle); }
.history-list small { display: block; color: var(--subtle); }
.guest-body { min-height: 100vh; }
.guest-main { min-height: 100vh; }
.guest-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(25rem, 1fr); }
.guest-intro {
    display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: clamp(2rem, 5vw, 4.8rem); color: #f2faff;
    background: radial-gradient(ellipse at 18% 95%, #165b60 0, transparent 66%), linear-gradient(155deg, #12243a, #18354c);
}
.guest-intro h1 { max-width: 11ch; margin-bottom: .8rem; font-size: clamp(2.35rem, 5vw, 4.4rem); }
.guest-intro p { max-width: 35ch; color: #c5d9e7; font-size: clamp(.92rem, 1.5vw, 1.12rem); }
.guest-intro .brand { align-self: flex-start; }
.guest-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.guest-links span { padding: .35rem .62rem; border: 1px solid #4d797d; color: #dbf5ee; border-radius: 10rem; font-size: .78rem; }
.guest-side { display: grid; align-content: center; justify-items: center; padding: clamp(1.2rem, 4vw, 3.5rem); background: #f5f8fc; }
.auth-card { width: min(100%, 28rem); padding: clamp(1.1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 1.05rem; box-shadow: 0 20px 45px #1a34480c; }
.auth-card .stack-form label:not(.check-label) { display: flex; }
.auth-card input:not([type="checkbox"]), .auth-card select { width: 100%; }
.auth-card .stack-form > button { width: 100%; }
.auth-card .auth-footer { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .87rem; }
.auth-card .auth-footer a { margin-right: .55rem; }
.auth-card .step + .step { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 5rem !important; }
.password-field button { position: absolute; right: .24rem; top: .24rem; min-height: 1.95rem; background: #eef4f8; color: #294459; padding: .2rem .5rem; }
.password-field button:hover { background: #dce9f2; }
.pagination { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.tabbar, .table-tools { display:flex; gap:.45rem; align-items:center; flex-wrap:wrap; margin:.65rem 0; }
.tabbar { border-bottom:1px solid var(--line); padding-bottom:.45rem; }
.tabbar button[aria-selected="false"] { background:#eaf1f7; color:#27415a; }
.ekp-tabs { gap:clamp(.25rem, 2vw, 1.25rem); align-items:stretch; padding-bottom:0; }
.ekp-tabs button[role="tab"] {
    margin-bottom:-1px; padding:.65rem .45rem; border:0; border-bottom:3px solid transparent;
    border-radius:0; background:transparent; color:var(--subtle); font-weight:650;
}
.ekp-tabs button[role="tab"]:hover { color:var(--teal-dark); }
.ekp-tabs button[aria-selected="true"] { border-bottom-color:var(--teal); color:var(--teal-dark); font-weight:800; }
.tab-panel > * { margin-bottom:.85rem; }
.tab-panel > details { padding:.75rem; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.table-tools { color:var(--subtle); font-size:.8rem; }
.table-tools input { width:min(100%, 18rem); }
.table-sort { display:inline; padding:0; min-height:0; border:0; background:transparent; color:inherit; text-align:left; text-decoration:none; font:inherit; }
.table-sort:hover { background:transparent; color:var(--teal-dark); }
th[aria-sort="ascending"] .table-sort::after { content:' ↑'; }
th[aria-sort="descending"] .table-sort::after { content:' ↓'; }
.inline-edit { display:flex; flex-wrap:wrap; align-items:end; gap:.4rem; min-width:15rem; }
.inline-edit label { margin:0 !important; }
dialog { width:min(32rem, calc(100% - 2rem)); max-height:85vh; padding:1.15rem; border:1px solid var(--line); border-radius:var(--radius); color:var(--ink); }
dialog:modal { inset: 0; margin: auto; }
dialog::backdrop { background:#12243a88; }
dialog label { display:flex; }
@media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar, .sidebar-collapsed .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(18rem, 86vw); height: 100dvh; z-index: 20; visibility: hidden; transform: translateX(-100%); transition: transform .2s ease, visibility .2s; padding: .85rem; gap: .85rem; }
    .sidebar.open { visibility: visible; transform: none; }
    .menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 19; background: #12243a88; }
    .drawer-close { display: inline-flex; align-self: flex-end; }
    .drawer-open { overflow: hidden; }
    .menu-toggle { display: inline-flex; min-height: 2rem; }
    .topbar { min-height: 3.65rem; padding-inline: .8rem; }
    .topbar-title { display: none; }
    .user-identity small { font-size: .7rem; }
    .guest-layout { display: block; }
    .guest-intro { gap: 1rem; padding: 1.3rem; }
    .guest-intro h1 { max-width: 100%; font-size: 1.8rem; }
    .guest-intro p { margin-bottom: 0; }
    .guest-links { display: none; }
    .guest-side { padding: 1rem; }
    .workspace-content { padding: .85rem; }
    .school-hero-actions { grid-template-columns: auto 1fr; align-items: center; }
    .inline-form { flex-wrap: wrap; }
    .student-table { background: var(--canvas); }
    .student-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .student-table, .student-table tbody { display: block; }
    .student-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .7rem; background: white; border-bottom: 1px solid var(--line); }
    .student-table tbody tr:last-child { border-bottom: 0; }
    .student-table td { display: block; border: 0; }
    .student-table td[data-column]::before { content: attr(data-column); display: block; color: var(--subtle); font-size: .74rem; font-weight: 700; }
    .student-table td[data-column="Puan ver"], .student-table td[colspan] { grid-column: span 2; }
    .student-compact { table-layout:fixed; }
    .student-compact th, .student-compact td { padding:.32rem .24rem; }
    .student-compact th:nth-child(1), .student-compact th:nth-child(2), .student-compact th:nth-child(4) { width:3rem; }
    .student-compact th:last-child { width:3.1rem; }
    .student-compact .student-name strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .student-compact td:nth-child(1), .student-compact td:nth-child(2) { overflow:hidden; text-overflow:ellipsis; }
    .student-compact .point { max-width:100%; overflow:hidden; font-size:.78rem; padding:.16rem .28rem; }
    th, td { padding: .52rem .54rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar { transition: none; }
}
.wizard { max-width: 49rem; }
.wizard-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .3rem; padding: 0; list-style: none; margin: 0 0 1rem; }
.wizard-steps li { color: var(--subtle); border-bottom: 3px solid var(--line); padding: .55rem .3rem; font-weight: 700; text-align: center; }
.wizard-steps li[aria-current] { color: var(--teal-dark); border-color: var(--teal); }
.wizard-list { display: grid; gap: .42rem; margin-block: .7rem; }
.wizard-option { display: flex; flex-direction: row; align-items: center; min-height: 3rem; padding: .6rem; gap: .65rem; border: 1px solid var(--line); border-radius: .5rem; }
.wizard-option > span { flex: 1; }
.wizard-option > .pill { flex: none; max-width: 52%; }
.wizard-option small { display: block; color: var(--subtle); }
.wizard-option:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); }
.wizard-selection { padding: .8rem 0; }
.wizard-selection .actions { padding-top: .4rem; }

.ats-admin { container-type: inline-size; }
.ats-admin .hero { align-items: center; }
.ats-metrics {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 1rem;
}
.ats-metrics > div {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.ats-metrics dt { color: var(--subtle); font-size: .82rem; font-weight: 700; }
.ats-metrics dd { margin: .2rem 0 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; font-weight: 800; }
.ats-metrics > :nth-child(2) dd { color: var(--teal-dark); }
.ats-metrics > :nth-child(3) dd { color: #73490a; }
.ats-management { margin-bottom: 1rem; }
.ats-management > .tabbar { margin-top: 0; }
.ats-management .ats-subtabs { margin-block: .75rem; border-bottom: 0; padding-bottom: 0; }
.ats-subtabs button[aria-selected="true"] { background: var(--teal-soft); color: var(--teal-dark); border-color: var(--teal); }
.ats-subtabs button[aria-selected="false"]:hover { background: #ddeaf3; }
.ats-management input, .ats-management select { max-width: 100%; }
#checklist-items > div { display: flex; flex-wrap: wrap; gap: .35rem; }
#checklist-items label:first-child { flex: 1 1 12rem; }
#checklist-items input[type="number"] { width: 6rem; }
.ats-total-row, .ats-lesson-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.ats-lesson-heading { flex-wrap: wrap; margin-bottom: .75rem; }
.ats-lesson-heading h2 { margin: 0; }
.ats-lesson-heading time { color: var(--teal-dark); background: var(--teal-soft); border-radius: .45rem; padding: .25rem .6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ats-lesson-table .ats-time { display: block; color: var(--subtle); white-space: nowrap; font-size: .79rem; }
.ats-lesson-table .ats-time-divider, .ats-mobile-label { display: none; }
.ats-lesson-table .ats-slot { font-weight: 700; }
.ats-teacher { overflow-wrap: anywhere; }
.ats-lesson-actions { display: grid; justify-items: start; gap: .35rem; }
.ats-lesson-actions details { max-width: 100%; }
.ats-lesson-actions summary { font-size: .8rem; }
.ats-lesson-actions form label { display: flex; margin-right: 0; }
.ats-lesson-actions select { width: 100%; min-width: 0; }
.ats-score-button { color: var(--teal-dark); background: var(--teal-soft); border-color: transparent; }
.ats-lesson-table .ats-empty { padding: 1.4rem .75rem; color: var(--subtle); text-align: center; }

@container (max-width: 43rem) {
    .ats-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .ats-lesson-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ats-lesson-table, .ats-lesson-table tbody { display: block; }
    .ats-lesson-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .4rem .65rem;
        padding: .75rem;
        border-bottom: 1px solid var(--line);
    }
    .ats-lesson-table tbody tr:last-child { border-bottom: 0; }
    .ats-lesson-table td { display: block; padding: 0; border: 0; }
    .ats-lesson-table td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
    .ats-lesson-table .ats-teacher, .ats-lesson-table .ats-action-cell, .ats-lesson-table .ats-empty { grid-column: 1 / -1; }
    .ats-mobile-label { display: block; color: var(--subtle); font-size: .74rem; font-weight: 700; }
    .ats-lesson-table .ats-action-cell:has(.ats-lesson-actions > *) { padding-top: .25rem; }
    .ats-lesson-table .ats-action-cell:not(:has(.ats-lesson-actions > *)) { display: none; }
}

@media (max-width: 520px) {
    .wizard-panel .form-grid { display: grid; }
    .wizard-panel .form-grid label { margin-right: 0 !important; }
    .wizard-panel > button, .wizard-panel .actions > button:not(.button-muted) { flex: 1; min-height: 2.75rem; }
}

.ats-import-head { flex-wrap: nowrap; align-items: flex-start; }
.ats-import-head h1 { margin: 0; min-width: 0; }
.ats-import-head .button { flex: none; }
.ats-import #status:empty { display: none; }
.ats-import #status { margin-block: .7rem; }
.ats-import-page, .ats-import-dates {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: .6rem;
    padding: .75rem;
}
.ats-import-page h3 { overflow-wrap: anywhere; }
.ats-import-page details { padding-block: .5rem; border-top: 1px solid var(--line); }
.ats-import-block {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .25rem .65rem;
    margin-top: .45rem;
    padding: .5rem;
    border-radius: .45rem;
    background: var(--canvas);
}
.ats-import-block > span { flex-basis: 100%; overflow-wrap: anywhere; }
.ats-import-block select, .ats-import input[type="file"] { max-width: 100%; }
.ats-import-dates label { flex-direction: column; align-items: stretch; }
.ats-import-dates p { margin: .45rem 0 0; }

.award-behaviors { border: 0; padding: 0; }
.award-behaviors legend { padding: 0; margin-bottom: .4rem; font-weight: 700; }
.award-behavior-list {
    display: grid;
    gap: .4rem;
    max-height: 42vh;
    max-height: 42dvh;
    overflow-y: auto;
    padding: .25rem;
}
.award-behavior-list .wizard-option { max-width: none; cursor: pointer; }
.award-behavior-list input { flex: none; margin: 0; }
.award-behavior-list .award-behavior-name { min-width: 0; overflow-wrap: anywhere; }
.award-behavior-list .point { flex: none; }
.award-behavior-list .wizard-option:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 1px; }
