:root {
    --bg: #f4f1ea;
    --ink: #1c2430;
    --muted: #5c6777;
    --card: #fffdf8;
    --line: #e4ddd0;
    --navy: #16324f;
    --navy-2: #1f4b73;
    --accent: #c45c26;
    --ok: #1f7a4d;
    --err: #b42318;
    --shadow: 0 18px 40px rgba(22, 50, 79, 0.08);
}

* { box-sizing: border-box; }
html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; }
body.is-nav-open { overflow: hidden; }
img, video, canvas, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
input, select, textarea { max-width: 100%; }
body {
    font-family: "Segoe UI", Georgia, system-ui, sans-serif;
    background:
        radial-gradient(1200px 400px at 10% -10%, #e7eef6 0%, transparent 50%),
        var(--bg);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.wrap { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }

.site-header {
    background: var(--navy);
    color: #fff;
    padding: 16px 0;
    position: relative;
    z-index: 40;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    color: #fff;
    min-width: 0;
}
.header-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.25;
}
.header-user-meta strong { font-size: 12px; font-weight: 700; opacity: 0.92; }
.header-user-names {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(420px, 42vw);
}
.notice-bell {
    position: relative;
    flex-shrink: 0;
}
.notice-bell-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.notice-bell-btn:hover { background: rgba(255,255,255,0.2); }
.notice-bell-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}
.notice-bell-panel {
    position: fixed;
    right: 12px;
    top: calc(var(--admin-header-h, 72px) + 6px);
    left: auto;
    width: min(320px, calc(100vw - 24px));
    max-height: min(70vh, 420px);
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(22, 50, 79, 0.18);
    padding: 0;
    z-index: 80;
}
.notice-bell-panel[hidden] {
    display: none !important;
}
.notice-bell-panel:not([hidden]) {
    display: flex;
}
.notice-bell-head {
    margin: 0;
    padding: 12px 14px 8px;
    font-weight: 700;
    font-size: 14px;
}
.notice-bell-list {
    overflow: auto;
    min-height: 0;
    flex: 1;
}
.notice-bell-empty {
    margin: 0;
    padding: 8px 14px 12px;
    font-size: 13px;
}
.notice-bell-row {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}
.notice-bell-row:hover { background: #f7f4ee; }
.notice-bell-other {
    background: #faf8f4;
}
.notice-bell-other-text {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: var(--navy);
    line-height: 1.4;
}
.notice-bell-more {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 650;
    color: var(--navy);
    text-decoration: none;
}
.notice-bell-more:hover { text-decoration: underline; }
.notice-bell-row .notice-line {
    font-size: 12px;
}
.notice-line {
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 6px 8px;
    margin: 0;
    align-items: start;
    font-size: 13px;
    line-height: 1.45;
}
.notice-line + .notice-line { margin-top: 4px; }
.notice-k {
    color: var(--muted);
    font-weight: 650;
}
.notice-v {
    min-width: 0;
    word-break: break-word;
}
.notice-acc .notice-line:first-child .notice-v {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}
.notice-acc-list {
    display: grid;
    gap: 8px;
}
.notice-acc {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    padding: 12px 14px;
}
.notice-acc-body {
    padding: 10px 14px 14px;
    border-top: 1px solid var(--line);
}
.notice-acc-body .notice-line { margin-top: 0; }
.math-bar { margin: 8px 0 12px; }
.math-bar-hint { margin: 0 0 8px; }
.math-bar-hint code { font-size: 12px; }
.math-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.edu-math .katex { font-size: 1.08em; }
.math-composer {
    margin: 8px 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f4ee;
}
.math-composer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.math-focus-lab { margin: 0; font-weight: 650; color: var(--navy); }
.math-sheet-bg {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(22, 50, 79, 0.35);
}
.math-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 121;
    max-height: min(82vh, 720px);
    background: #fffdf8;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 40px rgba(22, 50, 79, 0.18);
    transform: translateY(105%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}
.math-sheet.is-open { transform: translateY(0); }
.math-sheet-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.math-sheet-head strong { flex: 1; }
.math-sheet-body {
    overflow: auto;
    padding: 12px 16px 28px;
    -webkit-overflow-scrolling: touch;
}
.math-sheet-sec { margin: 0 0 16px; }
.math-sheet-sec h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--muted);
}
.math-sym-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.math-sym {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}
.math-sym:hover { border-color: var(--navy); }
.math-build {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.math-build [data-build-pane] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.math-build [data-build-pane][hidden] { display: none !important; }
.math-build-frac {
    flex-direction: column;
    align-items: stretch;
    max-width: 220px;
}
.math-build-line {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 2px 0;
}
.math-build-n { width: 4.5rem; }
.math-build-live {
    min-height: 40px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
}
.math-field { display: grid; gap: 6px; }
.math-live {
    min-height: 32px;
    padding: 8px 10px;
    background: #fff;
    border: 1px dashed #c5d0dc;
    border-radius: 10px;
    font-size: 16px;
}
.opt-write-grid { align-items: start; }
.exam-miss td { color: var(--muted, #5b6570); }
.week-pick { display: grid; gap: 10px; }
.week-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
}
.week-pills input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}
.week-pill {
    min-width: 44px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.week-pill.is-on,
.week-pill[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.week-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 8px;
}
.week-time {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}
.week-time-name {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 6px;
}
.week-time-inputs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    width: 100%;
}
.week-time-inputs input[type="time"] {
    flex: 1 1 8.4rem;
    min-width: 8.4rem;
    width: auto;
    max-width: 100%;
    font-size: 14px;
    box-sizing: border-box;
}
.sched-edit {
    margin-top: 8px;
}
.sched-edit summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--navy);
    font-weight: 650;
}
.role-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    color: var(--navy);
    background: rgba(22, 50, 79, 0.08);
}
.fold-edit > summary.btn {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.fold-edit > summary.btn::-webkit-details-marker,
.fold-edit > summary.btn::marker {
    display: none;
    content: none;
}
.fold-edit-panel {
    margin-top: 8px;
}
.sched-edit .week-pick {
    margin-top: 8px;
}
.avatar {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #efe8dc;
    flex-shrink: 0;
}
.header-avatar {
    border: 2px solid rgba(255, 255, 255, 0.35);
}
.avatar-lg {
    width: 112px;
    height: 112px;
}
.avatar-edit {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(22, 50, 79, 0.1);
    border-radius: 16px;
    background: #faf8f4;
}
.avatar-edit-title {
    margin: 0 0 10px;
    font-weight: 650;
}
.avatar-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}
.avatar-edit-actions [hidden] {
    display: none !important;
}
.avatar-edit .muted { margin: 0; font-size: 13px; }
.avatar-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.avatar-crop {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: calc(100vw - 24px);
}
.avatar-crop::backdrop {
    background: rgba(22, 50, 79, 0.55);
}
.avatar-crop-in {
    background: #fff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    width: min(420px, 100%);
    box-shadow: 0 18px 50px rgba(22, 50, 79, 0.22);
}
.avatar-crop-in h2 {
    margin: 0 0 12px;
    font-size: 18px;
}
.avatar-crop-stage {
    position: relative;
    width: min(72vw, 360px);
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #1c2430;
    touch-action: none;
    cursor: grab;
}
.avatar-crop-stage.is-drag { cursor: grabbing; }
.avatar-crop-stage img {
    position: absolute;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.avatar-crop-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 16px;
}
.avatar-crop-zoom span {
    font-size: 12px;
    color: #667;
    white-space: nowrap;
}
.avatar-crop-zoom input {
    flex: 1;
}
.avatar-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.brand-txt {
    min-width: 0;
}
.brand-txt strong {
    display: block;
    white-space: nowrap;
}
.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-left: auto;
}
.header-nav-title { display: none; }
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.brand small { display: block; opacity: 0.75; font-size: 12px; }
.brand-mark {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent);
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 42px;
}
.brand-mark img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.role-chip {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.user-name { opacity: 0.9; }

.work-mode-switch {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}
.work-mode-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}
.work-mode-btn.is-on {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}
.work-mode-switch-side {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px 0;
    gap: 6px;
}
.work-mode-switch-side .work-mode-btn {
    color: var(--navy);
    border-color: rgba(22, 50, 79, 0.2);
    background: #fff;
    flex: 1;
    justify-content: center;
}
.work-mode-switch-side .work-mode-btn.is-on {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.parent-child-pick {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px 0;
}
.parent-child-pick label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
}
.parent-child-pick select {
    width: 100%;
    margin: 0;
    font-size: 0.88rem;
}
.work-mode-pick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 0;
}
.work-mode-page {
    width: min(920px, 100%);
    margin: 0 auto;
}
body.is-work-mode {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.is-work-mode .page-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: min(1120px, calc(100% - 24px));
}
body.is-work-mode .work-mode-page {
    flex: 1 0 auto;
}
body.is-work-mode .site-footer {
    margin-top: auto;
}
.work-mode-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.work-mode-card strong { font-size: 22px; }
.work-mode-card span { color: var(--muted); font-size: 14px; }
.work-mode-card:hover { border-color: var(--navy); }

.page-main { padding: 32px 0 64px; flex: 1 0 auto; }

body.is-reader {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.is-reader .site-header { padding: 10px 0; }
body.is-reader .page-main {
    flex: 1;
    min-height: 0;
    width: min(1280px, calc(100% - 20px));
    padding: 12px 0 16px;
    display: flex;
    flex-direction: column;
}
body.is-reader .site-footer { padding: 12px 0; }
body.is-reader .reader-head { margin: 0 0 10px; }
body.is-reader .reader-head h1 { font-size: 1.2rem; margin: 0; }
body.is-reader .reader-head p { margin: 4px 0 0; }
.site-footer {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    color: var(--muted);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-inner p { margin: 0; }
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
}
.footer-social svg { width: 18px; height: 18px; display: block; }

.auth-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}
.auth-grid > * { min-width: 0; }
@media (min-width: 861px) {
    .home-auth > .card {
        min-height: 460px;
        max-height: 460px;
    }
}
.register-choice {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 20px;
}
.register-choice .card {
    display: flex;
    flex-direction: column;
    padding: 22px;
}
.register-choice .card p {
    margin: 0;
    flex: 1 1 auto;
}
.register-choice .register-card-act {
    margin-top: auto;
    padding-top: 18px;
}
.register-choice .btn { align-self: flex-start; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    container-type: inline-size;
    container-name: panel;
}
h2 { font-size: 22px; margin: 0 0 14px; line-height: 1.25; }
.hero h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.hero p { color: var(--muted); line-height: 1.6; font-size: 15px; }
.note-list { margin: 20px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.home-slider {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.home-slider-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.home-slide[hidden] { display: none !important; }
.home-slide-banner {
    display: block;
    width: 100%;
    max-height: 148px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 14px;
    background: var(--line);
}
.home-slide-face {
    float: left;
    width: 108px;
    height: 144px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--line);
    margin: 0 16px 10px 0;
}
.home-slide.is-person::after {
    content: "";
    display: table;
    clear: both;
}
.home-slide.is-person .note-list {
    clear: left;
    margin-top: 8px;
}
.home-slide-thumb {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 8px;
}
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 8px 0 4px;
}
.choice-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 0;
}
.choice-row input { width: auto; }
.home-slider-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}
.home-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.home-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
}
.home-slider-dots button.is-on { background: var(--navy); }
.home-slider-prev,
.home-slider-next {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.note-list li { margin: 8px 0; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
}
.check-row,
.chk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 8px 0 0;
    font-weight: 600;
}
.check-row label,
.chk {
    margin: 0;
    font-weight: 600;
}
form input[type="file"] ~ .btn,
form input[type="file"] ~ .form-actions {
    margin-top: 14px;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}
.form-actions .btn {
    margin-top: 0;
    width: auto;
}
.file-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    max-width: 100%;
}
.file-ops-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
}
.file-ops-upload input[type="file"],
.file-ops input[type="file"] {
    flex: 1 1 140px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
}
.file-ops .btn,
.file-ops-upload .btn,
.file-ops-upload input[type="file"] ~ .btn {
    margin: 0;
    flex: 0 0 auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
    color: #fff;
    background: var(--navy);
    box-shadow: none;
}
.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}
.header-nav a:hover { opacity: 1; text-decoration: underline; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 60;
    flex: 0 0 auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.nav-scrim {
    display: none;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-wide { width: 100%; margin-top: 18px; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 8px 14px; text-decoration: none; box-shadow: none; }

.phone-split {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.phone-split select {
    width: 8.2rem;
    max-width: 8.2rem;
    flex: 0 0 8.2rem;
}
.phone-split input {
    flex: 1;
    min-width: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid > div {
    position: relative;
    z-index: 0;
}
.form-grid > div:has(.place-combo:focus-within),
.form-grid > div:has(.place-combo-list:not([hidden])) {
    z-index: 8;
}
.place-combo {
    position: relative;
    z-index: 4;
}
.place-combo:focus-within {
    z-index: 6;
}
.place-combo-q {
    width: 100%;
}
.place-combo-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    max-height: 240px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.place-combo-list li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}
.place-combo-list li:hover,
.place-combo-list li.is-on {
    background: color-mix(in srgb, var(--accent) 14%, #fff);
}
.form-grid.combo-open select,
.form-grid.combo-open .place-combo:not(:focus-within) .place-combo-q {
    visibility: hidden;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    max-width: 100%;
}
.actions .btn { color: #fff; background: var(--navy); }

@media (max-width: 860px) {
    .auth-grid, .form-grid { grid-template-columns: 1fr; }
    .work-mode-pick { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: nowrap; }
    .home-slide-face { width: 96px; height: 128px; }
}

@media (max-width: 980px) {
    .nav-toggle { display: flex; }
    .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(4, 10, 18, 0.5);
        z-index: 85;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }
    .nav-scrim.is-on {
        opacity: 1;
        pointer-events: auto;
    }
    .header-nav-title {
        display: block;
        margin: 0;
        padding: 8px 22px 14px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
    }
    .header-nav {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        right: auto;
        width: min(280px, 82vw);
        max-height: none;
        overflow: auto;
        margin: 0;
        padding: 28px 0 24px;
        background:
            linear-gradient(165deg, rgba(29, 110, 229, 0.22), transparent 42%),
            linear-gradient(180deg, #0b1c30 0%, #132a44 100%);
        color: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        border-radius: 0 18px 18px 0;
        box-shadow: none;
        z-index: 90;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    .header-nav.is-open {
        pointer-events: auto;
        transform: none;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
    }
    .header-nav a,
    .header-nav a.btn,
    .header-nav a.btn-ghost {
        display: block;
        width: 100%;
        box-sizing: border-box;
        color: #fff;
        opacity: 1;
        padding: 14px 22px;
        margin: 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: left;
        text-decoration: none;
        font-weight: 650;
        line-height: 1.3;
    }
    .header-nav a:last-child,
    .header-nav a.btn-ghost:last-child {
        border-bottom: 0;
    }
    .header-nav a:hover,
    .header-nav a.btn-ghost:hover {
        text-decoration: none;
        background: rgba(255, 255, 255, 0.08);
    }
    .header-nav .role-chip {
        color: #fff;
        border-color: rgba(255,255,255,0.2);
        margin: 10px 0 0;
    }
    .header-nav .user-name {
        display: block;
        color: #fff;
        padding: 8px 8px 0;
        opacity: 0.8;
    }
}

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.alert-error { background: #fde8e6; color: var(--err); }
.alert-success { background: #e8f6ee; color: var(--ok); }
.alert-info { background: #e8eef6; color: var(--navy); }

.page-head-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 8px;
}
.page-head-title h1 { margin: 0; }
.page-head h1 { margin: 0 0 8px; }
.page-head p { margin: 0 0 24px; color: var(--muted); }
.page-head a.btn {
    color: #fff;
    background: var(--navy);
    text-decoration: none;
}
.page-head .dash-when {
    margin: 0 0 8px;
    color: var(--ink);
    font-weight: 650;
}
.dash-invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 24px;
    padding: 16px 18px;
}
.dash-invite h2 { margin: 0 0 6px; font-size: 1.05rem; }
.dash-invite .muted { margin: 0; max-width: 42rem; }
.dash-invite-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.dash-invite-code {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
}
.stat.is-warn {
    border-color: rgba(196, 92, 38, 0.55);
    background: #fbf4ee;
}
.dash-lessons { margin: 24px 0 8px; }
.dash-lessons h2 { margin: 0 0 14px; }
.dash-lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.dash-lesson {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 50px rgba(22, 50, 79, 0.08);
}
.dash-lesson-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}
.dash-lesson-main strong { font-size: 1.15rem; }
.dash-lesson-main span { color: var(--muted); font-size: 14px; }
.dash-att { align-self: flex-start; }
.btn.dash-att.is-off {
    pointer-events: none;
    cursor: default;
    opacity: 1;
    background: #ece8e1;
    color: var(--muted);
    border-color: transparent;
    box-shadow: none;
}
.dash-roster {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}
.dash-roster li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hw-head p { margin: 0 0 4px; }
.hw-head p:last-child { margin-bottom: 0; }
.table-wrap table.hw-meta-list {
    width: 100%;
}
@container panel (min-width: 861px) {
    .table-wrap table.hw-meta-list {
        table-layout: fixed;
    }
    .table-wrap table.hw-meta-list thead th {
        text-align: center;
    }
    .hw-meta-list th,
    .hw-meta-list td {
        vertical-align: middle;
    }
    .hw-meta-list th.col-teacher,
    .hw-meta-list td.col-teacher,
    .hw-meta-list th.col-subject,
    .hw-meta-list td.col-subject {
        width: 18%;
        text-align: center;
    }
    .hw-meta-list th.col-exam,
    .hw-meta-list td.col-exam {
        width: 22%;
        text-align: center;
    }
    .hw-meta-list th.col-date,
    .hw-meta-list td.col-date {
        width: 14%;
        text-align: center;
        white-space: nowrap;
    }
    .hw-meta-list th.col-note,
    .hw-meta-list td.col-note {
        width: auto;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .hw-meta-list th.col-status,
    .hw-meta-list td.col-status {
        width: 16%;
        text-align: center;
        white-space: nowrap;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    display: block;
}
a.stat.is-on { border-color: var(--navy); background: #f7f4ee; }
.stat-filters .stat-exam-topic {
    flex: 1 1 220px;
    min-width: 0;
}
.stat-filters .stat-exam-topic .field-label {
    margin: 0 0 4px;
}
.add-card .stat-filters { margin-bottom: 0; }
.stat-filters .school-find { margin: 0; }
.list-filter .list-bar-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px 14px;
    width: 100%;
    align-items: end;
}
.list-filter .list-bar-field select,
.list-filter .list-bar-field input {
    min-width: 0;
    width: 100%;
}
.stat-filters .school-find label {
    flex: 1 1 200px;
    max-width: none;
}
.stat-filters .stat-email {
    flex: 0 1 160px;
    max-width: 180px;
}
.stat-filters .stat-track {
    flex: 0 1 130px;
    max-width: 150px;
}
.stat-filters .stat-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1 1 300px;
    justify-content: flex-end;
    margin-left: auto;
    align-items: flex-end;
}
.stat-filters[data-stat-tab="exams"] .school-find {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: end;
}
.stat-filters[data-stat-tab="exams"] .school-find > label {
    flex: none;
    max-width: none;
}
.stat-filters[data-stat-tab="exams"] .stat-dates {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: none;
    margin-left: 0;
    justify-content: stretch;
    max-width: none;
}
.stat-filters[data-stat-tab="exams"] .stat-date {
    flex: none;
    max-width: none;
}
.stat-filters[data-stat-tab="exams"] .stat-date input {
    width: 100%;
}
.stat-filters .stat-date {
    flex: 0 0 148px;
    max-width: 160px;
}
.stat-hint { margin: 12px 0 0; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 28px; margin-top: 6px; }

.slide-list {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) max-content;
    column-gap: 12px;
}
.slide-list-head,
.slide-list-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.slide-list-head {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    padding: 0 0 8px;
}
.slide-list-ops-h { text-align: center; }
.slide-list-row { padding: 12px 0; }
.slide-list-title { min-width: 0; overflow-wrap: anywhere; }
.slide-list-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.home-slide-thumb.is-wide {
    width: 72px;
    height: 40px;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.td-label { display: none; }
@media (min-width: 861px) {
    .table-wrap tbody td.col-actions .td-label,
    .table-wrap tbody td.col-actions .act-head-row > .td-label {
        display: none !important;
    }
}
.span-range {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.35;
}
.cell-link {
    color: var(--navy);
    font-weight: 650;
    text-decoration: none;
}
.cell-link:hover { text-decoration: underline; }
.table-wrap table {
    width: 100%;
    table-layout: fixed;
}
.table-wrap table.stats-grid {
    table-layout: auto;
}
.stats-grid .col-name {
    min-width: 11rem;
    overflow-wrap: normal;
    word-break: normal;
}
.table-wrap th,
.table-wrap td {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}
.table-wrap {
    overflow-x: auto;
}
@media (min-width: 861px) {
    .table-wrap table:not(.stats-grid) {
        width: 100%;
        table-layout: fixed;
    }
    .table-wrap th.col-actions,
    .table-wrap td.col-actions {
        width: 20%;
    }
}
@container panel (max-width: 860px) {
    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap th,
    .table-wrap td,
    .table-wrap tr {
        display: block;
        width: 100%;
        table-layout: auto;
    }
    .table-wrap thead { display: none; }
    .table-wrap tbody tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }
    .table-wrap tbody td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px 12px;
        border-bottom: 1px solid var(--line);
        padding: 10px 0;
        white-space: normal;
        text-align: left;
        width: 100%;
        max-width: none;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .table-wrap.att-month-wrap {
        overflow: visible;
    }
    .table-wrap.att-month-wrap tbody td:first-child {
        font-weight: 700;
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
        margin-bottom: 4px;
    }
    .table-wrap.att-month-wrap tbody td:first-child .td-label {
        display: none;
    }
    .table-wrap .td-label,
    .table-wrap .td-val {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }
    .table-wrap .td-label {
        display: block;
        color: var(--muted);
        text-align: left;
        flex: 0 1 auto;
        max-width: 42%;
        padding-right: 0;
        white-space: nowrap;
    }
    .table-wrap .td-label::after {
        content: ':  ';
        white-space: pre;
    }
    .table-wrap .td-val {
        color: var(--ink);
        text-align: right;
        margin-left: auto;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 62%;
    }
    .is-roster .table-wrap tbody td:not(.col-actions):not(.col-sched) {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px 12px;
    }
    .is-roster .table-wrap tbody td:not(.col-actions):not(.col-sched) .td-label {
        display: block;
        max-width: 46%;
        flex: 0 1 auto;
        white-space: nowrap;
        padding-right: 0;
        text-align: left;
    }
    .is-roster .table-wrap tbody td:not(.col-actions):not(.col-sched) .td-val {
        display: block;
        width: auto;
        max-width: 54%;
        margin-left: auto;
        text-align: right;
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .is-roster .table-wrap table.st-groups-list tbody td.col-sched {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .is-roster .table-wrap table.st-groups-list tbody td.col-sched .td-val {
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
    .is-roster .table-wrap table.st-groups-list tbody td.col-sched .sched-days {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
        margin: 0;
        text-align: left;
    }
    .is-roster .table-wrap table.st-groups-list tbody td.col-sched .sched-day {
        display: block;
        text-align: left;
        white-space: nowrap;
    }
    .table-wrap tbody td .sched-edit {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        text-align: left;
        margin-top: 4px;
    }
    .table-wrap tbody td.col-sched {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
    }
    .table-wrap tbody td.col-sched > .sched-head-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }
    .table-wrap tbody td.col-sched .sched-head-row > .td-label {
        display: block;
        flex: none;
        max-width: none;
        width: 100%;
        padding-right: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
    }
    .table-wrap tbody td.col-sched .sched-head-row > .td-val {
        flex: none;
        min-width: 0;
        max-width: none;
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
    .table-wrap tbody td.col-sched > .row-slide {
        align-self: stretch;
        width: 100%;
        max-width: none;
        margin-top: 0;
    }
    .table-wrap tbody td.col-sched .row-slide > [data-row-slide-toggle] {
        align-self: flex-start;
        width: auto;
    }
    .table-wrap tbody td.col-sched .sched-days {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2px;
        width: 100%;
        text-align: left;
    }
    .table-wrap tbody td .sched-text,
    .table-wrap tbody td .sched-days,
    .table-wrap tbody td .sched-day,
    .table-wrap tbody td .sched-lines,
    .table-wrap tbody td .sched-line {
        text-align: left;
    }
    .table-wrap tbody td .sched-day,
    .table-wrap tbody td .sched-line {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .table-wrap.groups-list td:nth-child(1),
    .table-wrap.groups-list td.col-count,
    .table-wrap.groups-list td.col-subject,
    .table-wrap.groups-list td.col-sched,
    .table-wrap.groups-list td.col-actions,
    .groups-list td:nth-child(1),
    .groups-list td.col-count,
    .groups-list td.col-subject,
    .groups-list td.col-sched,
    .groups-list td.col-actions,
    .exam-list td.col-topic,
    .exam-list td.col-actions,
    .students-list td.col-actions ,
    .join-req-list td.col-actions {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .table-wrap tbody td.col-actions .td-label,
    .table-wrap tbody td:has(.row-actions) .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        padding-right: 0;
        margin-bottom: 0;
    }
    .table-wrap tbody td.col-actions,
    .table-wrap tbody td:has(.row-actions),
    .table-wrap tbody td:has(form button.btn-sm),
    .table-wrap tbody td.row-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px 12px;
        text-align: left;
        width: 100%;
        max-width: none;
        white-space: normal;
        grid-template-columns: none;
    }
    /* act-head-row: başlıq solda, düymələr sağda — enə uzanmasın */
    .table-wrap tbody td.col-actions:has(.act-head-row) {
        display: block;
        text-align: left;
    }
    .table-wrap tbody td.col-actions:has(.act-head-row) > .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .table-wrap tbody td.col-actions:has(.act-head-row) > .act-head-row > .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        padding-right: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
        white-space: nowrap;
    }
    .table-wrap tbody td.col-actions:has(.act-head-row) > .act-head-row > .td-val {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        max-width: 62%;
        margin: 0 0 0 auto;
        flex: 1 1 auto;
    }
    .table-wrap tbody td.col-actions:has(.act-head-row) > .act-head-row > .td-val .btn,
    .table-wrap tbody td.col-actions:has(.act-head-row) > .act-head-row > .td-val .exam-act-note {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
    }
    .table-wrap table.exam-student-list tbody td.col-actions {
        display: block;
        text-align: left;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        padding-right: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
        white-space: nowrap;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .td-val.exam-act-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        max-width: 62%;
        margin: 0 0 0 auto;
        flex: 1 1 auto;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack .btn {
        width: auto;
        min-width: 0;
        margin: 0;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack .exam-act-note {
        width: auto;
        min-width: 0;
        margin: 0;
        justify-content: center;
        text-align: center;
    }
    .table-wrap table.hw-student-list tbody td.col-actions {
        display: block;
        text-align: left;
        width: 100%;
        max-width: none;
        white-space: normal;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
        white-space: nowrap;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .td-val {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 62%;
        margin-left: auto;
        text-align: right;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .td-val .btn {
        width: auto;
        min-width: 0;
        margin: 0;
    }
    .groups-list tbody td.col-actions,
    .students-list tbody td.col-actions {
        display: block;
        text-align: left;
    }
    .groups-list .act-head-row,
    .students-list .act-head-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .groups-list tbody td.col-actions .td-label,
    .students-list tbody td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        padding-right: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
    }
    .groups-list tbody td.col-actions .td-val.row-actions,
    .students-list tbody td.col-actions .td-val.row-actions {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: auto;
        width: auto;
        max-width: 62%;
        flex: 1 1 auto;
    }
    .students-list tbody td.col-actions .td-val.row-actions .row-actions {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 8px;
        width: auto;
        margin: 0;
    }
    .groups-list tbody td.col-actions .row-actions > .btn,
    .groups-list tbody td.col-actions .row-actions > a,
    .students-list tbody td.col-actions .row-actions > .btn,
    .students-list tbody td.col-actions .row-actions > a,
    .students-list tbody td.col-actions .row-actions > details {
        width: auto;
        min-width: 0;
        margin: 0;
    }
    .groups-list tbody td.col-sched {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .groups-list tbody td.col-sched .sched-head-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }
    .groups-list tbody td.col-sched .td-label,
    .groups-list tbody td.col-sched .td-val {
        max-width: none;
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
    .groups-list tbody td.col-sched .sched-text,
    .groups-list tbody td.col-sched .sched-days,
    .groups-list tbody td.col-sched .sched-day {
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }
    .groups-list .act-head-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .groups-list tbody td.col-actions .td-label {
        max-width: 42%;
        width: auto;
    }
    .groups-list tbody td.col-actions .td-val.row-actions {
        width: auto;
        max-width: none;
        margin-left: 0;
        align-items: flex-end;
    }
    .groups-list tbody td.col-actions .row-actions > .btn,
    .groups-list tbody td.col-actions .row-actions > a {
        width: auto;
        min-width: 0;
    }
}
td:has(.row-actions),
td:has(form button.btn-sm),
td:has(> .btn),
td.col-actions,
th.col-actions {
    width: 16.5rem;
    vertical-align: middle;
    text-align: center;
    white-space: normal;
}
.stats-grid th.col-actions,
.stats-grid td.col-actions,
.stats-grid td:has(.row-actions) {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}
.exam-list th,
.exam-list td {
    vertical-align: middle;
}
@media (min-width: 861px) {
    .exam-list {
        table-layout: fixed;
        width: 100%;
    }
    .exam-list .col-topic {
        width: 26%;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }
    .exam-list th.col-actions,
    .exam-list td.col-actions,
    .exam-list td:has(.row-actions),
    .exam-list td:has(form button.btn-sm) {
        width: 16%;
        text-align: center;
        white-space: nowrap;
        overflow-wrap: normal;
        vertical-align: middle;
    }
}
.exam-list td.col-actions.row-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    margin-left: 0;
}
@container panel (min-width: 861px) {
    #dash-today .table-wrap {
        overflow-x: visible;
    }
    #dash-today table.dash-today-list {
        width: 100%;
        table-layout: fixed;
    }
    #dash-today table.dash-today-list th.col-time,
    #dash-today table.dash-today-list td.col-time {
        width: 7.5rem;
        white-space: nowrap;
    }
    #dash-today table.dash-today-list th.col-sched,
    #dash-today table.dash-today-list td.col-sched {
        width: 28%;
    }
    #dash-today table.dash-today-list th.col-status,
    #dash-today table.dash-today-list td.col-status {
        width: 9.75rem;
        max-width: 9.75rem;
        text-align: center;
        white-space: nowrap;
    }
    #dash-today table.dash-today-list td.col-status .td-val {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}
@container panel (min-width: 861px) {
    #dash-exams .table-wrap,
    #dash-hw .table-wrap {
        overflow-x: visible;
    }
    #dash-exams table.dash-exams-list,
    #dash-hw table.dash-hw-list {
        width: 100%;
        table-layout: fixed;
    }
    #dash-exams table.dash-exams-list th.col-exam,
    #dash-exams table.dash-exams-list td.col-exam,
    #dash-hw table.dash-hw-list th.col-exam,
    #dash-hw table.dash-hw-list td.col-exam {
        width: 22%;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    #dash-hw table.dash-hw-list th.col-due,
    #dash-hw table.dash-hw-list td.col-due {
        width: 9.5rem;
        white-space: nowrap;
    }
    #dash-exams table.dash-exams-list th.col-actions,
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list th.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        width: 9.75rem;
        max-width: 9.75rem;
        white-space: normal;
        vertical-align: middle;
        text-align: center;
    }
    #dash-exams table.dash-exams-list .act-head-row > .td-label,
    #dash-hw table.dash-hw-list .act-head-row > .td-label {
        display: none;
    }
    #dash-exams table.dash-exams-list .exam-act-stack,
    #dash-hw table.dash-hw-list .act-head-row > .td-val {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
    #dash-exams table.dash-exams-list .exam-act-stack .btn,
    #dash-exams table.dash-exams-list .exam-act-stack .exam-act-note,
    #dash-hw table.dash-hw-list .act-head-row > .td-val .btn {
        width: auto;
        min-width: 0;
        margin: 0;
        display: inline-block;
        text-align: center;
        box-sizing: border-box;
    }
}
@container panel (max-width: 860px) {
    #dash-exams .table-wrap,
    #dash-hw .table-wrap {
        overflow-x: visible;
    }
    #dash-exams table.dash-exams-list td.col-exam,
    #dash-hw table.dash-hw-list td.col-exam {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        column-gap: 12px;
        width: 100%;
        max-width: none;
    }
    #dash-exams table.dash-exams-list td.col-exam .td-label,
    #dash-hw table.dash-hw-list td.col-exam .td-label {
        max-width: none;
        width: auto;
        white-space: nowrap;
        justify-self: start;
        padding-right: 0;
    }
    #dash-exams table.dash-exams-list td.col-exam .td-val,
    #dash-hw table.dash-hw-list td.col-exam .td-val {
        justify-self: end;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        text-align: left;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        display: block;
        width: 100%;
        max-width: none;
        text-align: left;
        white-space: normal;
    }
    #dash-exams table.dash-exams-list td.col-actions .act-head-row,
    #dash-hw table.dash-hw-list td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    #dash-exams table.dash-exams-list td.col-actions .td-label,
    #dash-hw table.dash-hw-list td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        padding-right: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
        white-space: nowrap;
    }
    #dash-exams table.dash-exams-list td.col-actions .td-val.exam-act-stack,
    #dash-hw table.dash-hw-list td.col-actions .td-val {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        max-width: 62%;
        margin: 0 0 0 auto;
        flex: 1 1 auto;
    }
    #dash-exams table.dash-exams-list td.col-actions .exam-act-stack .btn,
    #dash-exams table.dash-exams-list td.col-actions .exam-act-stack .exam-act-note,
    #dash-hw table.dash-hw-list td.col-actions .td-val .btn {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
    }
}
.table-wrap table.hw-student-list {
    width: 100%;
}
@container panel (min-width: 861px) {
    .table-wrap table.hw-student-list {
        table-layout: fixed;
    }
    .table-wrap table.hw-student-list thead th {
        text-align: center;
    }
    .hw-student-list th.col-teacher,
    .hw-student-list td.col-teacher {
        width: 20%;
        text-align: center;
    }
    .hw-student-list th.col-subject,
    .hw-student-list td.col-subject {
        width: 14%;
        text-align: center;
    }
    .hw-student-list th.col-exam,
    .hw-student-list td.col-exam {
        width: auto;
        text-align: center;
    }
    .hw-student-list th.col-date,
    .hw-student-list td.col-date {
        width: 14%;
        text-align: center;
        white-space: nowrap;
    }
    .hw-student-list th.col-status,
    .hw-student-list td.col-status {
        width: 14%;
        text-align: center;
        white-space: nowrap;
    }
    .hw-student-list th.col-actions,
    .hw-student-list td.col-actions {
        width: 9.5rem;
        max-width: 9.5rem;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
    }
    .hw-student-list td.col-actions .td-val {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
    .hw-student-list td.col-actions .td-val .btn {
        min-width: 8.4rem;
        margin: 0;
    }
}
.table-wrap table.st-groups-list {
    width: 100%;
}
@container panel (min-width: 861px) {
    .table-wrap table.st-groups-list {
        table-layout: fixed;
    }
    .table-wrap table.st-groups-list thead th {
        text-align: center;
    }
    .st-groups-list th,
    .st-groups-list td {
        vertical-align: middle;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: center;
    }
    .st-groups-list th.col-teacher,
    .st-groups-list td.col-teacher {
        width: 18%;
    }
    .st-groups-list th.col-group,
    .st-groups-list td.col-group {
        width: 14%;
    }
    .st-groups-list th.col-subject,
    .st-groups-list td.col-subject {
        width: 12%;
    }
    .st-groups-list th.col-sched,
    .st-groups-list td.col-sched {
        width: 22%;
        white-space: normal;
        text-align: center;
    }
    .st-groups-list td.col-sched .sched-days {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .st-groups-list td.col-sched .sched-day {
        display: block;
        text-align: center;
        white-space: nowrap;
    }
    .st-groups-list th.col-span,
    .st-groups-list td.col-span {
        width: 20%;
    }
    .st-groups-list th.col-status,
    .st-groups-list td.col-status {
        width: 14%;
        white-space: nowrap;
    }
    .st-groups-list th.col-child,
    .st-groups-list td.col-child {
        width: 14%;
    }
    .st-groups-list.is-parent th.col-child,
    .st-groups-list.is-parent td.col-child {
        width: 12%;
    }
    .st-groups-list.is-parent th.col-teacher,
    .st-groups-list.is-parent td.col-teacher {
        width: 15%;
    }
    .st-groups-list.is-parent th.col-sched,
    .st-groups-list.is-parent td.col-sched {
        width: 18%;
    }
    .st-groups-list.is-parent th.col-span,
    .st-groups-list.is-parent td.col-span {
        width: 18%;
    }
    .st-groups-list.is-parent th.col-status,
    .st-groups-list.is-parent td.col-status {
        width: 12%;
    }
}
.st-groups-list .span-range {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    white-space: nowrap;
}
.st-groups-list .span-range .span-from,
.st-groups-list .span-range .span-to {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.st-groups-list .span-to::before {
    content: '– ';
}
.teachers-list .span-range {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35em;
    white-space: nowrap;
}
.teachers-list .span-range .span-from,
.teachers-list .span-range .span-to {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.teachers-list .span-to::before {
    content: '– ';
}
.table-wrap table.exam-student-list {
    width: 100%;
}
@container panel (min-width: 861px) {
    .table-wrap table.exam-student-list {
        table-layout: fixed;
    }
    .exam-student-list th,
    .exam-student-list td {
        vertical-align: middle;
        overflow: hidden;
    }
    .table-wrap table.exam-student-list thead th {
        text-align: center;
    }
    .exam-student-list th.col-teacher,
    .exam-student-list td.col-teacher {
        width: 16%;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .exam-student-list th.col-subject,
    .exam-student-list td.col-subject {
        width: 12%;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .exam-student-list th.col-exam,
    .exam-student-list td.col-exam {
        width: 28%;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .exam-student-list th.col-group,
    .exam-student-list td.col-group {
        width: 0;
        display: none;
    }
    .exam-student-list th.col-date,
    .exam-student-list td.col-date {
        width: 7rem;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
    }
    .exam-student-list th.col-status,
    .exam-student-list td.col-status {
        width: 5.5rem;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
    }
    .exam-student-list th.col-time,
    .exam-student-list td.col-time {
        width: 0;
        display: none;
    }
    .exam-student-list th.col-actions,
    .exam-student-list td.col-actions {
        width: 14rem;
        max-width: 14rem;
        text-align: center;
        vertical-align: middle;
        white-space: normal;
        overflow: hidden;
    }
    .table-wrap table.exam-student-list .exam-act-stack {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}
.exam-student-list .exam-act-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 8.5rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.exam-student-list .exam-act-stack .btn {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    flex: none;
}
.exam-student-list .exam-act-stack .exam-act-note {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
}
.row-actions,
.toolbar-export,
.slide-list-actions,
.page-head p:has(.btn) {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}
td.col-actions.row-actions > .btn,
td.col-actions.row-actions > a,
td.col-actions.row-actions > form,
td.col-actions.row-actions > span {
    margin: 0 6px 6px 0;
    vertical-align: middle;
}
.groups-list table {
    width: 100%;
}
@media (max-width: 860px) {
    .table-wrap.groups-list tbody td,
    .table-wrap.groups-list tbody td:nth-child(1),
    .table-wrap.groups-list tbody td.col-count,
    .table-wrap.groups-list tbody td.col-subject,
    .table-wrap.groups-list tbody td.col-sched,
    .table-wrap.groups-list tbody td.col-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
        min-width: 0;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .table-wrap.groups-list tbody td .td-label,
    .table-wrap.groups-list tbody td .td-val {
        max-width: none;
        width: 100%;
        margin-left: 0;
        text-align: left;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .table-wrap.groups-list tbody td.col-sched .sched-head-row,
    .table-wrap.groups-list .act-head-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }
    .table-wrap.groups-list tbody td.col-sched .sched-text,
    .table-wrap.groups-list tbody td.col-sched .sched-days,
    .table-wrap.groups-list tbody td.col-sched .sched-day {
        text-align: left;
        align-items: flex-start;
        width: 100%;
        white-space: normal;
    }
    .table-wrap.groups-list tbody td.col-sched > .row-slide,
    .table-wrap.groups-list tbody td.col-actions .td-val.row-actions {
        align-self: flex-end;
        width: auto;
        max-width: none;
        margin-left: 0;
    }
    .table-wrap.groups-list tbody td.col-actions .row-actions > .btn,
    .table-wrap.groups-list tbody td.col-actions .row-actions > a {
        width: auto;
        min-width: 0;
    }
}
.sched-days {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}
.sched-day {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}
@media (min-width: 861px) {
    .groups-list table {
        table-layout: fixed;
        width: 100%;
    }
    .groups-list th.col-name,
    .groups-list td.col-name,
    .groups-list th:nth-child(1),
    .groups-list td:nth-child(1) {
        width: 18%;
    }
    .groups-list th.col-duty,
    .groups-list td.col-duty {
        width: 12%;
    }
    .groups-list th.col-count,
    .groups-list td.col-count {
        width: 8%;
        white-space: nowrap;
        text-align: center;
    }
    .groups-list th.col-subject,
    .groups-list td.col-subject {
        width: 12%;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .groups-list th.col-sched,
    .groups-list td.col-sched {
        width: 22%;
        white-space: normal;
    }
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .groups-list td.col-actions.row-actions {
        width: 28%;
        max-width: none;
        white-space: nowrap;
        text-align: center;
        padding-left: 8px;
        vertical-align: middle;
        display: table-cell;
    }
    .groups-list th.col-count,
    .groups-list td.col-count,
    .groups-list th.col-subject,
    .groups-list td.col-subject,
    .groups-list th.col-sched,
    .groups-list td.col-sched {
        text-align: center;
    }
    .groups-list .sched-days {
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: center;
        grid-template-columns: none;
    }
    .groups-list .sched-head-row {
        justify-content: center;
        align-items: center;
    }
    .groups-list td.col-sched .sched-text,
    .groups-list td.col-sched .sched-day {
        text-align: center;
    }
    .groups-list td.col-sched > .sched-edit {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
@media (min-width: 861px) {
    .school-cab-list th:nth-child(1),
    .school-cab-list td:nth-child(1) { width: 22%; }
    .school-cab-list th:nth-child(2),
    .school-cab-list td:nth-child(2) { width: 14%; }
    .school-cab-list th:nth-child(3),
    .school-cab-list td:nth-child(3) { width: 28%; }
    .school-cab-list th:nth-child(4),
    .school-cab-list td:nth-child(4) { width: 16%; }
    .school-cab-list th.col-actions,
    .school-cab-list td.col-actions { width: 20%; }
    .hw-teach-list th:nth-child(1),
    .hw-teach-list td:nth-child(1) { width: 32%; }
    .hw-teach-list th:nth-child(2),
    .hw-teach-list td:nth-child(2) { width: 16%; }
    .hw-teach-list th:nth-child(3),
    .hw-teach-list td:nth-child(3) { width: 16%; }
    .hw-teach-list th:nth-child(4),
    .hw-teach-list td:nth-child(4) { width: 16%; }
    .hw-teach-list th.col-actions,
    .hw-teach-list td.col-actions { width: 20%; }
    .parents-list th:nth-child(1),
    .parents-list td:nth-child(1) { width: 24%; }
    .parents-list th:nth-child(2),
    .parents-list td:nth-child(2) { width: 12%; }
    .parents-list th:nth-child(3),
    .parents-list td:nth-child(3) { width: 22%; }
    .parents-list th:nth-child(4),
    .parents-list td:nth-child(4) { width: 16%; }
    .parents-list th:nth-child(5),
    .parents-list td:nth-child(5) { width: 12%; }
    .parents-list th.col-actions,
    .parents-list td.col-actions { width: 14%; }
}
.sched-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}
.act-head-row {
    display: block;
}
.sched-line {
    white-space: nowrap;
}
.groups-list td.col-actions .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}
.groups-list td.col-actions.row-actions > .btn,
.groups-list td.col-actions.row-actions > a,
.groups-list td.col-actions .row-actions > .btn,
.groups-list td.col-actions .row-actions > a {
    display: inline-flex;
    width: auto;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}
.groups-list .sched-edit,
.groups-list .week-pick {
    max-width: 100%;
}
.group-switch,
.leave-note,
.enroll-history {
    position: static;
    margin: 0;
    display: inline-block;
    vertical-align: top;
}
.enroll-history > summary,
.group-switch > summary,
.leave-note > summary {
    list-style: none;
    cursor: pointer;
    display: inline-block;
    width: auto;
}
.enroll-history > summary::-webkit-details-marker,
.group-switch > summary::-webkit-details-marker,
.leave-note > summary::-webkit-details-marker { display: none; }
.enroll-history-list {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink);
    list-style: disc inside;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}
.enroll-history-list li {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.leave-note {
    margin: 0;
}
.leave-note form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
}
.leave-note label {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.leave-note label span {
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
}
.leave-note textarea {
    width: 100%;
    min-height: 4.5rem;
    resize: vertical;
}
.group-switch form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin: 0;
}
.group-switch label {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
}
.group-switch label span {
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
    white-space: nowrap;
}
.group-switch select {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    flex: none;
    padding-top: 8px;
    padding-bottom: 8px;
}
.group-switch form > .btn {
    width: 100%;
}
td.col-span {
    white-space: nowrap;
}
.table-wrap table.teachers-list {
    width: 100%;
}
@media (min-width: 861px) {
    .table-wrap table.teachers-list {
        table-layout: fixed;
        width: 100%;
    }
    .teachers-list th.col-name,
    .teachers-list td.col-name {
        width: 18%;
    }
    .teachers-list th.col-subject,
    .teachers-list td.col-subject {
        width: 14%;
    }
    .teachers-list th.col-group,
    .teachers-list td.col-group {
        width: 16%;
    }
    .teachers-list th.col-span,
    .teachers-list td.col-span {
        width: 22%;
        white-space: nowrap;
        line-height: 1.3;
    }
    .teachers-list th.col-status,
    .teachers-list td.col-status {
        width: 12%;
        white-space: nowrap;
    }
    .teachers-list th.col-phone,
    .teachers-list td.col-phone {
        width: 18%;
        white-space: nowrap;
    }
    .teachers-list.is-parent th.col-child,
    .teachers-list.is-parent td.col-child {
        width: 12%;
    }
    .teachers-list.is-parent th.col-name,
    .teachers-list.is-parent td.col-name {
        width: 16%;
    }
    .teachers-list.is-parent th.col-subject,
    .teachers-list.is-parent td.col-subject {
        width: 12%;
    }
    .teachers-list.is-parent th.col-group,
    .teachers-list.is-parent td.col-group {
        width: 14%;
    }
    .teachers-list.is-parent th.col-span,
    .teachers-list.is-parent td.col-span {
        width: 20%;
    }
    .teachers-list.is-parent th.col-status,
    .teachers-list.is-parent td.col-status {
        width: 10%;
    }
    .teachers-list.is-parent th.col-phone,
    .teachers-list.is-parent td.col-phone {
        width: 16%;
    }
    .teachers-list th,
    .teachers-list td {
        vertical-align: middle;
        padding: 12px 14px;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .teachers-list th.col-name {
        text-align: center;
    }
    .teachers-list td.col-name,
    .teachers-list th.col-child,
    .teachers-list td.col-child {
        text-align: left;
    }
    .teachers-list th.col-subject,
    .teachers-list td.col-subject,
    .teachers-list th.col-group,
    .teachers-list td.col-group,
    .teachers-list th.col-span,
    .teachers-list td.col-span,
    .teachers-list th.col-status,
    .teachers-list td.col-status,
    .teachers-list th.col-phone,
    .teachers-list td.col-phone {
        text-align: center;
    }
}
.table-wrap table.st-notices-list {
    width: 100%;
    table-layout: fixed;
}
.st-notices-list th,
.st-notices-list td {
    vertical-align: middle;
    overflow-wrap: break-word;
    word-break: normal;
}
.st-notices-list thead th {
    text-align: center;
}
/* Övlad — dar qalmasın (hərf-hərf sınmasın) */
.st-notices-list th.col-child,
.st-notices-list td.col-child {
    width: 16%;
    min-width: 7.5rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
}
.st-notices-list th.col-teacher,
.st-notices-list td.col-teacher {
    width: 14%;
    text-align: center;
}
.st-notices-list th.col-group,
.st-notices-list td.col-group {
    width: 12%;
    text-align: center;
}
.st-notices-list th.col-title,
.st-notices-list td.col-title {
    width: 20%;
    text-align: center;
}
.st-notices-list th.col-date,
.st-notices-list td.col-date {
    width: 12%;
    text-align: center;
    white-space: nowrap;
}
.st-notices-list th.col-status,
.st-notices-list td.col-status {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}
.st-notices-list th.col-span,
.st-notices-list td.col-span {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}
.st-notices-list th.col-actions,
.st-notices-list td.col-actions {
    width: 8%;
    text-align: center;
    white-space: nowrap;
}
.st-notices-list.is-parent th.col-child,
.st-notices-list.is-parent td.col-child {
    width: 15%;
}
.st-notices-list.is-parent th.col-teacher,
.st-notices-list.is-parent td.col-teacher {
    width: 13%;
}
.st-notices-list.is-parent th.col-title,
.st-notices-list.is-parent td.col-title {
    width: 18%;
}
.st-notices-list.is-parent th.col-actions,
.st-notices-list.is-parent td.col-actions {
    width: 10%;
}
/* Şagird (Övlad yox) */
.st-notices-list:not(.is-parent):not(.is-teacher):not(.is-inbox) th.col-teacher,
.st-notices-list:not(.is-parent):not(.is-teacher):not(.is-inbox) td.col-teacher {
    width: 16%;
}
.st-notices-list:not(.is-parent):not(.is-teacher):not(.is-inbox) th.col-title,
.st-notices-list:not(.is-parent):not(.is-teacher):not(.is-inbox) td.col-title {
    width: 24%;
}
.st-notices-list:not(.is-parent):not(.is-teacher):not(.is-inbox) th.col-actions,
.st-notices-list:not(.is-parent):not(.is-teacher):not(.is-inbox) td.col-actions {
    width: 12%;
}
.st-notices-list.is-teacher th.col-title,
.st-notices-list.is-teacher td.col-title {
    width: 28%;
}
.st-notices-list.is-teacher th.col-group,
.st-notices-list.is-teacher td.col-group {
    width: 18%;
}
.st-notices-list.is-teacher th.col-date,
.st-notices-list.is-teacher td.col-date {
    width: 14%;
}
.st-notices-list.is-teacher th.col-actions,
.st-notices-list.is-teacher td.col-actions {
    width: 14%;
}
.st-notices-list.is-inbox th.col-title,
.st-notices-list.is-inbox td.col-title {
    width: 34%;
}
.st-notices-list.is-inbox th.col-group,
.st-notices-list.is-inbox td.col-group {
    width: 16%;
}
.st-notices-list.is-inbox th.col-date,
.st-notices-list.is-inbox td.col-date {
    width: 14%;
}
.st-notices-list.is-inbox th.col-actions,
.st-notices-list.is-inbox td.col-actions {
    width: 14%;
}
.st-notices-list .span-range {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35em;
    white-space: nowrap;
}
.st-notices-list .span-range .span-from,
.st-notices-list .span-range .span-to {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.st-notices-list .span-to::before {
    content: '– ';
}
.st-notices-list td.col-date .notice-when {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    line-height: 1.3;
    white-space: nowrap;
}
.st-notices-list td.col-date .notice-when-time {
    font-size: 0.92em;
    color: var(--muted);
}
.st-notices-list td.col-actions form {
    margin: 0;
    display: inline-block;
}
.notice-acc-actions {
    margin: 12px 0 0;
}
/* Telefon: en faizləri söndür, kart sətirləri oxunaqlı olsun */
@container panel (max-width: 860px) {
    .st-notices-list col {
        width: auto !important;
    }
    .st-notices-list th,
    .st-notices-list td,
    .st-notices-list th.col-child,
    .st-notices-list td.col-child,
    .st-notices-list th.col-teacher,
    .st-notices-list td.col-teacher,
    .st-notices-list th.col-group,
    .st-notices-list td.col-group,
    .st-notices-list th.col-title,
    .st-notices-list td.col-title,
    .st-notices-list th.col-date,
    .st-notices-list td.col-date,
    .st-notices-list th.col-status,
    .st-notices-list td.col-status,
    .st-notices-list th.col-span,
    .st-notices-list td.col-span,
    .st-notices-list th.col-actions,
    .st-notices-list td.col-actions {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal !important;
        text-align: left;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .st-notices-list .span-range {
        flex-direction: row;
        flex-wrap: wrap;
        white-space: normal;
    }
    .st-notices-list td.col-date .notice-when {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35em;
        align-items: baseline;
    }
    .st-notices-list td.col-date .notice-when-time {
        font-size: inherit;
        color: inherit;
    }
    .is-roster .table-wrap table.st-notices-list tbody td:not(.col-actions) .td-val {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
        text-align: right;
        justify-self: end;
        max-width: 100%;
    }
    .table-wrap table.st-notices-list tbody td.col-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px 12px !important;
        text-align: left !important;
        grid-template-columns: none !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-label {
        display: block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: 42%;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-val {
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 62%;
        margin-left: auto !important;
        text-align: right !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .btn {
        display: inline-block;
        width: auto;
        margin: 0;
    }
    .table-wrap table.st-notices-list tbody td.col-title .td-val {
        font-weight: 700;
    }
}
.table-wrap table.st-att-list {
    width: 100%;
}
@container panel (min-width: 861px) {
    .table-wrap table.st-att-list {
        table-layout: fixed;
    }
    .table-wrap table.st-att-list thead th {
        text-align: center;
    }
    .st-att-list th,
    .st-att-list td {
        vertical-align: middle;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: center;
    }
    .st-att-list th.col-teacher,
    .st-att-list td.col-teacher {
        width: 24%;
    }
    .st-att-list th.col-subject,
    .st-att-list td.col-subject {
        width: 16%;
    }
    .st-att-list th.col-group,
    .st-att-list td.col-group {
        width: 18%;
    }
    .st-att-list th.col-date,
    .st-att-list td.col-date {
        width: 22%;
    }
    .st-att-list th.col-status,
    .st-att-list td.col-status {
        width: 20%;
        white-space: nowrap;
    }
}
.students-list th.col-actions,
.students-list td.col-actions ,
    .join-req-list td.col-actions {
    width: 20%;
    min-width: 0;
    white-space: nowrap;
}
.students-list td.col-actions .row-actions ,
    .join-req-list td.col-actions .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
@media (min-width: 861px) {
    .students-list {
        table-layout: fixed;
        width: 100%;
    }
    .students-list th.col-name,
    .students-list td.col-name {
        width: 22%;
        min-width: 0;
    }
    .students-list th.col-actions,
    .students-list td.col-actions ,
    .join-req-list td.col-actions {
        width: 32%;
        min-width: 0;
        text-align: center;
        padding-right: 8px;
        padding-left: 8px;
        white-space: normal;
    }
    .students-list td.col-actions .act-head-row ,
    .join-req-list td.col-actions .act-head-row {
        display: block;
        width: auto;
    }
    .students-list td.col-actions .act-head-row > .td-label ,
    .join-req-list td.col-actions .act-head-row > .td-label {
        display: none;
    }
    .students-list td.col-actions .row-actions,
    .join-req-list td.col-actions .row-actions,
    .students-list td.col-actions .td-val.row-actions ,
    .join-req-list td.col-actions .td-val.row-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        max-width: none;
        margin: 0;
    }
    .students-list td.col-actions .td-val.row-actions > .row-actions ,
    .join-req-list td.col-actions .td-val.row-actions > .row-actions {
        display: contents;
    }
    .students-list td.col-actions .btn,
    .join-req-list td.col-actions .btn,
    .students-list td.col-actions a.btn,
    .join-req-list td.col-actions a.btn,
    .students-list td.col-actions summary.btn,
    .join-req-list td.col-actions summary.btn,
    .students-list td.col-actions details ,
    .join-req-list td.col-actions details {
        display: inline-flex;
        width: auto;
        min-width: 0;
        margin: 0;
        vertical-align: middle;
    }
}
.group-switch-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    max-width: 100%;
}
.group-switch-inline select {
    width: auto;
    min-width: 0;
    max-width: 10rem;
    margin: 0;
    flex: 1 1 7rem;
}
.row-actions form,
.slide-list-actions form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
    max-width: 100%;
}
.row-actions select { width: auto; min-width: 0; max-width: 100%; flex: 1 1 160px; margin: 0; }
.join-act {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.join-act select {
    flex: none;
    width: 100%;
    max-width: 100%;
}
.join-act-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.join-act-btns .btn {
    flex: 1 1 0;
    margin: 0;
}
td.row-actions,
td.col-actions,
th.col-actions {
    display: table-cell;
    border-bottom: 1px solid var(--line);
}
.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    background: var(--navy);
    color: #fff;
    width: auto;
    flex: 0 1 auto;
    white-space: nowrap;
    box-shadow: none;
}
.table-wrap .btn,
.table-wrap a.btn,
.table-wrap button.btn,
.td-val .btn,
.td-val a.btn,
.row-actions .btn,
.exam-act-stack .btn,
.export-tools-btns > .btn,
.slide-add-bar > .btn,
.list-bar .btn {
    color: #fff;
}
.table-wrap .btn.dash-att.is-off,
.td-val .btn.dash-att.is-off {
    color: var(--muted);
}
.btn-muted { background: #5c6777; }
.btn-danger { background: var(--err); }
.btn-link-danger {
    background: none;
    border: 0;
    color: var(--err);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    padding: 0 0 0 8px;
    width: auto;
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
}
.toolbar-meta {
    margin: 0;
    flex: 1 1 220px;
    min-width: 0;
    align-self: center;
    line-height: 1.45;
}
.toolbar-export {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    flex: 0 0 auto;
}
.anket {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px 28px;
    align-items: start;
}
.anket-head {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.01em;
}
.anket-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: #eef2f6;
}
.anket-photo .muted {
    margin: 8px 0 0;
    text-align: center;
    width: 140px;
}
.anket-name {
    margin: 0 0 16px;
    font-size: 1.35rem;
}
.anket-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 28px;
    align-items: start;
    min-width: 0;
}
.anket-dl {
    display: grid;
    grid-template-columns: 8.2rem minmax(0, 1fr);
    gap: 6px 14px;
    margin: 0;
    align-items: baseline;
}
.anket-dl dt {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    font-size: 13px;
}
.anket-dl dd {
    margin: 0;
}
.anket-lessons th,
.anket-lessons td {
    font-size: 13px;
}
a.name-link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 0;
}
a.name-link:hover {
    color: var(--navy);
}
.year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}
a.year-chip {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(22, 50, 79, 0.12);
}
a.year-chip:hover {
    background: var(--navy);
    color: #fff;
}
.report-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
.report-kpis .stat {
    margin: 0;
}
.report-block {
    margin: 0 0 22px;
}
.report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 10px;
}
.report-head h2 {
    margin: 0;
    font-size: 1.15rem;
}
.report-sum {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}
.arayis {
    line-height: 1.45;
    font-size: 15px;
}
.arayis-head {
    display: block;
    margin: 0 0 10px;
    text-align: center;
}
.arayis-org {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--navy);
}
.arayis-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.arayis-body p {
    margin: 0 0 0.4em;
    text-align: left;
    text-indent: 0;
}
.arayis-body p:first-child {
    font-weight: 650;
}
.arayis-body p.arayis-sec {
    text-align: left;
    font-weight: 700;
    margin: 0.55em 0 0.25em;
}
.arayis-body p:last-child {
    margin-bottom: 0;
}
.dyn-report .table-wrap table.dyn-data {
    table-layout: fixed;
    width: 100%;
}
@container panel (min-width: 861px) {
    .dyn-report .table-wrap table.dyn-data th,
    .dyn-report .table-wrap table.dyn-data td {
        text-align: center;
        vertical-align: middle;
    }
}
@media (max-width: 720px) {
    .report-kpis {
        grid-template-columns: 1fr;
    }
}
.kid-pick {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.kid-pick a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef3f8;
}
.dyn-filter {
    margin-top: 16px;
}
.dyn-report {
    margin-top: 8px;
}
.dyn-gauges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
.dyn-gauge {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
}
.dyn-ring {
    --p: 0;
    --ring: var(--accent);
    width: 92px;
    height: 92px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: conic-gradient(var(--ring) calc(var(--p) * 1%), #e6ecf2 0);
    display: grid;
    place-items: center;
}
.dyn-ring::before {
    content: "";
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card);
    grid-area: 1 / 1;
}
.dyn-ring strong {
    grid-area: 1 / 1;
    z-index: 1;
    font-size: 18px;
}
.dyn-gauge span {
    font-weight: 700;
    font-size: 13px;
}
.dyn-hchart {
    display: grid;
    gap: 12px;
}
.dyn-hrow {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
}
.dyn-hlab {
    font-size: 13px;
    font-weight: 650;
}
.dyn-tracks {
    display: grid;
    gap: 4px;
}
.dyn-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.6rem;
    gap: 8px;
    align-items: center;
}
.dyn-track i {
    display: block;
    height: 10px;
    border-radius: 999px;
    width: 0;
    max-width: 100%;
    background: var(--navy);
}
.dyn-track-att i { background: var(--navy); }
.dyn-track-ex i { background: var(--accent); }
.dyn-track-hw i { background: #2f6f4e; }
.dyn-track b {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.dyn-leg::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.dyn-leg-att::before { background: var(--navy); }
.dyn-leg-ex::before { background: var(--accent); }
.dyn-leg-hw::before { background: #2f6f4e; }
@media (max-width: 900px) {
    .dyn-gauges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.dash-dyn {
    margin: 18px 0 0;
}
.dash-dyn-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.dash-dyn-head h2 {
    margin: 0;
}
.dash-dyn-head .muted {
    margin: 4px 0 0;
    font-size: 13px;
}
.dash-dyn-who {
    margin: 0 0 8px;
    font-weight: 650;
}
.dash-dyn-block + .dash-dyn-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.dyn-gauges-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}
.dyn-gauges-home .dyn-gauge {
    padding: 8px 4px;
    border: 0;
    background: transparent;
}
.dyn-gauges-home .dyn-ring {
    width: 58px;
    height: 58px;
    margin-bottom: 6px;
}
.dyn-gauges-home .dyn-ring::before {
    width: 40px;
    height: 40px;
}
.dyn-gauges-home .dyn-ring strong {
    font-size: 12px;
}
.dyn-gauges-home .dyn-gauge span {
    font-size: 12px;
    font-weight: 650;
}
@media (max-width: 640px) {
    .dyn-gauges-home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .dyn-gauges-home .dyn-ring {
        width: 48px;
        height: 48px;
    }
    .dyn-gauges-home .dyn-ring::before {
        width: 32px;
        height: 32px;
    }
}
@media (max-width: 720px) {
    .dyn-hrow {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .anket {
        grid-template-columns: 1fr;
    }
    .anket-body {
        grid-template-columns: 1fr;
    }
    .anket-dl {
        grid-template-columns: 8.5rem minmax(0, 1fr);
    }
}
.list-bar-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}
.list-bar-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    min-width: 0;
}
.list-bar-field span {
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
}
.list-bar-field select,
.list-bar-field input {
    min-width: 160px;
}
.list-bar-search input {
    min-width: 200px;
}
.export-cols {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.export-cols .field-label { margin: 0 0 8px; }
.export-cols .check-row { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.chip.is-on { background: var(--navy); color: #fff; }
details.card summary { cursor: pointer; list-style: inside disclosure-closed; }
details.card[open] summary { margin-bottom: 12px; }
.empty { color: var(--muted); padding: 8px 0; }
.section-more {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 0;
}
.section-more .btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    background: var(--navy);
    color: #fff;
}
.today-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}
.today-feed li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.today-feed > li.today-feed-block {
    display: block;
    padding: 18px 0;
    grid-template-columns: unset;
}
.today-feed-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    align-items: center;
}
.today-feed-kids {
    list-style: none;
    margin: 10px 0 0;
    padding: 8px 0 0 12px;
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--line);
}
.today-feed-kids li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: center;
    padding: 12px 0 12px 8px;
    border-bottom: 0;
}
.today-feed li:last-child { border-bottom: 0; padding-bottom: 4px; }
.today-feed li:first-child { padding-top: 4px; }
.today-feed-body { min-width: 0; }
.today-feed-who {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}
.today-feed-kind {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.today-feed-title {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
}
.today-feed-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.today-feed-act {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.btn-feed {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    box-shadow: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 650;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-feed.is-go {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
@media (max-width: 860px) {
    .today-feed li {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .today-feed-act { justify-content: stretch; }
    .today-feed-act .btn-feed { width: 100%; text-align: center; box-sizing: border-box; }
}
.group-title { margin: 20px 0 8px; font-size: 18px; }
.group-title small { color: var(--muted); font-weight: 500; }
.is-blocked td { color: var(--muted); }
.field-label { display: block; font-weight: 600; margin: 14px 0 8px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; width: 100%; }
.perm-form .btn { margin-top: 4px; }
.perm-checks { font-size: 13px; }
.perm-follow td {
    padding: 0 12px;
    background: transparent;
    border: 0;
    vertical-align: top;
}
.perm-slide-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}
.perm-slide-panel.is-open { grid-template-rows: 1fr; }
.perm-slide-in { overflow: hidden; min-height: 0; }
.perm-slide-panel.is-open .perm-slide-in { padding: 0 0 16px; }
.perm-card { margin: 0; }
.perm-card h3 { margin: 0 0 12px; font-size: 16px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.school-find {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
}
.school-find label {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.school-find span {
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
}
.acc-school {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px;
    border-top: 1px solid var(--line);
    font-weight: 650;
    color: inherit;
    text-decoration: none;
}
a.acc-school:hover { color: var(--navy); }
.acc-school:first-child { border-top: 0; }
.acc-school small {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.acc-nested { margin: 8px 0 0; }
.acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.acc-btn small {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}
.acc-btn[aria-expanded="true"] { background: #f7f4ee; }
.acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-in { overflow: hidden; min-height: 0; }
.acc-panel.is-open > .acc-in { padding: 0 12px 12px; }
.perm-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.perm-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}
.perm-panel h3 {
    margin: 0 0 8px;
    font-size: 13px;
}
.perm-panel .perm-checks { flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 900px) {
    .perm-panels { grid-template-columns: 1fr; }
}
.check-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.check-pill input { width: auto; }
.muted { color: var(--muted); }
.identity-lock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0 0 16px;
    padding: 16px 18px;
    background: #f4f1ea;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.identity-lock dt { color: var(--muted); font-size: 13px; margin: 0; }
.identity-lock dd { margin: 0 0 4px; font-weight: 650; }
.question-list { padding-left: 20px; }
.question-list li { margin: 12px 0; }
.exam-timer {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 12px;
    background: var(--navy);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.exam-timer > :nth-child(1) { justify-self: start; text-align: left; }
.exam-timer > :nth-child(2) { justify-self: center; text-align: center; }
.exam-timer > :nth-child(3) { justify-self: end; text-align: right; }
.exam-page-head p { margin-bottom: 16px; }
.exam-take > input[type="hidden"] { display: none; }
.exam-take {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas:
        "num title"
        "q map"
        "bar fin";
    gap: 12px 16px;
    align-items: stretch;
}
.exam-q-num {
    grid-area: num;
    margin: 0;
    align-self: end;
    line-height: 1.3;
}
.exam-map-title {
    grid-area: title;
    font-weight: 700;
    margin: 0;
    align-self: end;
    line-height: 1.3;
}
.exam-take-main {
    grid-area: q;
    min-width: 0;
    display: grid;
}
.exam-q { margin: 0; min-height: 100%; }
.exam-q-img,
.hw-q .q-photo,
.hw-pages .q-photo,
.hw-explain .q-photo {
    margin: 8px 0 14px;
}
.q-photo,
.exam-q-img img,
.hw-q img.q-photo,
.hw-pages img.q-photo,
.hw-explain img.q-photo {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #1c2430;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: zoom-in;
}
.img-zoom {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(12, 18, 26, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 16px;
}
.img-zoom[hidden] { display: none !important; }
.img-zoom-x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.img-zoom-tools {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.img-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.img-zoom-prev { left: 10px; }
.img-zoom-next { right: 10px; }
.img-zoom:not(.has-gallery) .img-zoom-nav { display: none; }
.img-zoom-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}
.img-zoom-stage img {
    max-width: 96%;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}
.exam-take-side {
    grid-area: map;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.exam-take-bar {
    grid-area: bar;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.exam-take-bar .btn,
.exam-finish {
    width: 100%;
    margin: 0;
    min-height: 48px;
}
.exam-map {
    display: grid;
    gap: 6px;
}
.exam-map-btn {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.exam-map-btn.is-new { background: #d8dee6; color: var(--ink); }
.exam-map-btn.is-now { background: var(--accent); color: #fff; }
.exam-map-btn.is-ok { background: var(--ok); color: #fff; }
.exam-map-btn.is-skip { background: var(--navy); color: #fff; }
.exam-map-btn.is-bad { background: #b42318; color: #fff; }
.exam-dot.is-bad { background: #b42318; }
.hw-do { margin-top: 24px; }
.hw-q-lab {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--navy);
}
.hw-q-ask { margin: 0 0 12px; }
.hw-opts-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.hw-opt {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
}
.hw-opt.is-key { font-weight: 700; border-color: var(--ok); background: #e8f6ee; }
.hw-opt input { margin-right: 8px; }
.hw-your { margin: 0 0 12px; font-weight: 600; }
.hw-izah-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}
.hw-izah-panel.is-open { grid-template-rows: 1fr; margin-top: 8px; }
.hw-izah-inner { overflow: hidden; min-height: 0; }
.hw-izah-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}
.hw-izah-media.is-both { grid-template-columns: 1fr 1fr; }
.hw-izah-media img,
.hw-izah-media video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    background: #111;
}
.hw-do:not(form) .exam-take-bar { grid-template-columns: 1fr 1fr; }
.exam-map-legend {
    list-style: none;
    margin: auto 0 0;
    padding: 16px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.exam-map-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.exam-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex: 0 0 12px;
    display: inline-block;
}
.exam-dot.is-ok { background: var(--ok); }
.exam-dot.is-skip { background: var(--navy); }
.exam-dot.is-new { background: #d8dee6; }
.exam-dot.is-now { background: var(--accent); }
.exam-stat-slides {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 12px 0 8px;
    align-items: flex-start;
}
.exam-stat-slides .row-slide {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}
.exam-stat-slides .row-slide > [data-row-slide-toggle] {
    width: 100%;
}
.exam-stat-slides .row-slide-panel {
    width: 100%;
    flex: none;
}
.exam-stat-people {
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
}
.exam-stat-people li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.exam-stat-people li:last-child { border-bottom: 0; }
.exam-res-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}
.exam-res-bar > .btn,
.exam-res-bar > a.btn,
.exam-res-bar > form {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0;
}
.exam-res-bar .row-slide {
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: auto;
}
.exam-res-bar .row-slide > [data-row-slide-toggle] {
    width: auto !important;
}
.exam-res-bar .row-slide-panel {
    width: min(28rem, calc(100vw - 48px));
}
.card-export-block {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
}
.card-head-export {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 12px;
    flex-wrap: wrap;
}
.card-head-export h2 {
    margin: 0;
    margin-right: auto;
    flex: 0 1 auto;
    min-width: 0;
}
.card-head-export .toolbar-export {
    flex: 0 1 auto;
    margin-left: auto;
    width: auto;
    max-width: 100%;
}
.export-tools-btns {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 100%;
}
.export-tools-btns > .btn {
    flex: 0 0 auto;
    width: auto !important;
    white-space: nowrap;
}
.card-export-block .export-cols,
.list-tools .export-cols {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
@media (max-width: 860px) {
    .card-head-export h2 {
        flex: 1 0 100%;
        margin-right: 0;
    }
    .card-head-export .toolbar-export,
    .card-head-export .export-tools-btns {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }
    .slide-add-bar .toolbar-export {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0 !important;
        max-width: 100%;
    }
    .list-bar .export-tools-btns,
    .slide-add-bar .export-tools-btns,
    .card-head-export .export-tools-btns {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: stretch;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .list-bar .export-tools-btns > .btn,
    .slide-add-bar .export-tools-btns > .btn,
    .card-head-export .export-tools-btns > .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto !important;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.25;
    }
}
.card > .export-cols {
    margin: 0 0 14px;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
@media (max-width: 860px) {
    .exam-stat-slides {
        flex-wrap: wrap;
    }
    .exam-stat-slides .row-slide {
        flex: 1 1 calc(50% - 8px);
    }
}
.exam-finish {
    grid-area: fin;
    background: var(--accent);
    color: #fff;
}
.opt-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0;
    font-weight: 500;
}
.opt-row input { width: auto; margin-top: 4px; }
.sheet-block {
    overflow-x: auto;
    margin: 12px 0 18px;
}
.sheet-block-vert {
    display: none;
}
.sheet-table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font-size: 14px;
}
.sheet-table-vert {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.sheet-table th,
.sheet-table td {
    border: 1px solid #385066;
    min-width: 38px;
    height: 38px;
    text-align: center;
    font-weight: 700;
    padding: 4px;
}
.sheet-table-vert th,
.sheet-table-vert td {
    min-width: 0;
    font-size: 13px;
    padding: 6px 4px;
    vertical-align: middle;
}
.sheet-table .sheet-name {
    min-width: 160px;
    max-width: 220px;
    text-align: left;
    padding: 4px 10px;
    font-weight: 600;
    position: sticky;
    left: 0;
    background: var(--card);
    z-index: 1;
}
.sheet-table thead th {
    background: #eef2f6;
    color: var(--navy);
}
.sheet-key { background: #f7f4ee; color: var(--ink); font-weight: 700; }
.sheet-ok {
    color: #1f4b73;
    border-color: #1f4b73;
    background: #eef4fa;
}
.sheet-bad {
    color: #b42318;
    border-color: #b42318;
    background: #fbeaea;
}
.sheet-blank {
    color: var(--muted);
    background: #f3f1ec;
    font-weight: 600;
}
.sheet-q { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet-q:first-of-type { border-top: 0; padding-top: 0; }
.board-gate {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 20px 40px;
    text-align: center;
}
.board-code {
    font-size: clamp(40px, 8vw, 84px);
    font-weight: 800;
    letter-spacing: 0.28em;
    color: var(--navy);
    margin: 8px 0 20px;
    font-family: Consolas, "Courier New", monospace;
}
.board-qr {
    width: 260px;
    height: 260px;
    margin: 0 auto 12px;
    background: #fff;
}
.board-qr img, .board-qr canvas, .board-qr table { margin: 0 auto; }
.gate-video {
    width: min(100%, 360px);
    border-radius: 12px;
    background: #111;
    margin: 12px 0;
}

.verify-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    margin: 20px 0 0;
}
.verify-dl dt { color: var(--muted); }
.verify-dl dd { margin: 0; font-weight: 600; }

@media (max-width: 860px) {
    .wrap { width: calc(100% - 20px); }
    .page-main { padding: 20px 0 48px; }
    .card { padding: 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat strong { font-size: 22px; overflow-wrap: anywhere; }
    .verify-dl { grid-template-columns: 1fr; }
    .exam-take {
        grid-template-columns: 1fr;
        grid-template-areas:
            "num"
            "q"
            "bar"
            "title"
            "map"
            "fin";
    }
    .exam-timer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .exam-timer > :nth-child(1),
    .exam-timer > :nth-child(2),
    .exam-timer > :nth-child(3) { justify-self: center; text-align: center; }
    .exam-map-title { text-align: center; }
    .hw-izah-media.is-both { grid-template-columns: 1fr; }

    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap th,
    .table-wrap td,
    .table-wrap tr {
        display: block;
        width: 100%;
        table-layout: auto;
    }
    .table-wrap thead { display: none; }
    .table-wrap tbody tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }
    .table-wrap tbody td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px 12px;
        border-bottom: 1px solid var(--line);
        padding: 10px 0;
        white-space: normal;
        text-align: left;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .table-wrap.att-month-wrap {
        overflow: visible;
    }
    .table-wrap.att-month-wrap tbody td:first-child {
        font-weight: 700;
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
        margin-bottom: 4px;
    }
    .table-wrap.att-month-wrap tbody td:first-child .td-label {
        display: none;
    }
    .table-wrap .td-label {
        display: block;
        color: var(--muted);
        text-align: left;
        flex: 0 1 auto;
        max-width: 42%;
        white-space: nowrap;
    }
    .table-wrap .td-label::after {
        content: ':  ';
        white-space: pre;
    }
    .table-wrap .td-val {
        color: var(--ink);
        text-align: right;
        margin-left: auto;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 62%;
    }
    .is-roster .table-wrap tbody td:not(.col-actions):not(.col-sched) {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px 12px;
    }
    .is-roster .table-wrap tbody td:not(.col-actions):not(.col-sched) .td-label {
        display: block;
        max-width: 46%;
        flex: 0 1 auto;
        white-space: nowrap;
        padding-right: 0;
        text-align: left;
    }
    .is-roster .table-wrap tbody td:not(.col-actions):not(.col-sched) .td-val {
        display: block;
        width: auto;
        max-width: 54%;
        margin-left: auto;
        text-align: right;
        flex: 1 1 auto;
        min-width: 0;
    }
    .st-notices-list col {
        width: auto !important;
    }
    .st-notices-list th,
    .st-notices-list td,
    .st-notices-list th.col-child,
    .st-notices-list td.col-child,
    .st-notices-list th.col-teacher,
    .st-notices-list td.col-teacher,
    .st-notices-list th.col-group,
    .st-notices-list td.col-group,
    .st-notices-list th.col-title,
    .st-notices-list td.col-title,
    .st-notices-list th.col-date,
    .st-notices-list td.col-date,
    .st-notices-list th.col-status,
    .st-notices-list td.col-status,
    .st-notices-list th.col-span,
    .st-notices-list td.col-span,
    .st-notices-list th.col-actions,
    .st-notices-list td.col-actions {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .is-roster .table-wrap table.st-notices-list tbody td:not(.col-actions) .td-val {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
        text-align: right;
        justify-self: end;
        max-width: 100%;
    }
    .st-notices-list td.col-date .notice-when {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35em;
        align-items: baseline;
    }
    .st-notices-list td.col-date .notice-when-time {
        font-size: inherit;
        color: inherit;
    }
    .table-wrap table.st-notices-list tbody td.col-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px 12px !important;
        text-align: left !important;
        border-bottom: 1px solid var(--line);
        grid-template-columns: none !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-label {
        display: block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: 42%;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-val {
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 62%;
        margin-left: auto !important;
        text-align: right !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .btn {
        display: inline-block;
        width: auto;
        margin: 0;
    }
    .table-wrap table.st-notices-list tbody td.col-title .td-val {
        font-weight: 700;
    }
    #dash-exams .table-wrap,
    #dash-hw .table-wrap {
        overflow-x: visible;
    }
    #dash-exams table.dash-exams-list td.col-exam,
    #dash-hw table.dash-hw-list td.col-exam {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        column-gap: 12px;
        width: 100%;
        max-width: none;
    }
    #dash-exams table.dash-exams-list td.col-exam .td-label,
    #dash-hw table.dash-hw-list td.col-exam .td-label {
        max-width: none;
        width: auto;
        white-space: nowrap;
    }
    #dash-exams table.dash-exams-list td.col-exam .td-val,
    #dash-hw table.dash-hw-list td.col-exam .td-val {
        justify-self: end;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        text-align: left;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        display: block;
        width: 100%;
        max-width: none;
        text-align: left;
        white-space: normal;
    }
    #dash-exams table.dash-exams-list td.col-actions .act-head-row,
    #dash-hw table.dash-hw-list td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    #dash-exams table.dash-exams-list td.col-actions .td-label,
    #dash-hw table.dash-hw-list td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
        white-space: nowrap;
    }
    #dash-exams table.dash-exams-list td.col-actions .td-val.exam-act-stack,
    #dash-hw table.dash-hw-list td.col-actions .td-val {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        max-width: 62%;
        margin: 0 0 0 auto;
        flex: 1 1 auto;
    }
    #dash-exams table.dash-exams-list td.col-actions .exam-act-stack .btn,
    #dash-exams table.dash-exams-list td.col-actions .exam-act-stack .exam-act-note,
    #dash-hw table.dash-hw-list td.col-actions .td-val .btn {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
    }
    .table-wrap table.hw-student-list tbody td.col-actions {
        display: block;
        text-align: left;
        width: 100%;
        max-width: none;
        white-space: normal;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
        white-space: nowrap;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .td-val {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 62%;
        margin-left: auto;
        text-align: right;
    }
    .table-wrap table.hw-student-list tbody td.col-actions .td-val .btn {
        width: auto;
        min-width: 0;
        margin: 0;
    }

    .row-actions,
    .slide-list-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }
    .toolbar-export {
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
        max-width: 100%;
    }
    .list-bar .toolbar-export,
    .slide-add-bar .toolbar-export,
    .card-head-export .toolbar-export {
        width: 100%;
        max-width: 100%;
        justify-content: stretch;
    }
    .row-actions select {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }
    .group-switch select,
    .students-list tbody td.col-actions .group-switch select,
    .students-list tbody td.col-actions .row-actions .group-switch select {
        width: 12rem;
        max-width: 100%;
        flex: 0 0 auto;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
    }
    .group-switch form {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: max-content;
        max-width: 100%;
    }
    .groups-list tbody td.col-actions,
    .students-list tbody td.col-actions {
        display: block;
        text-align: left;
    }
    .groups-list .act-head-row,
    .students-list .act-head-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .groups-list tbody td.col-actions .td-label,
    .students-list tbody td.col-actions .td-label {
        display: block;
        flex: 0 0 auto;
        width: auto;
        max-width: 42%;
        margin-bottom: 0;
        padding-right: 0;
        color: var(--muted);
        font-weight: 600;
        font-size: 15px;
        text-align: left;
    }
    .groups-list tbody td.col-actions .td-val.row-actions,
    .students-list tbody td.col-actions .td-val.row-actions {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: auto;
        width: auto;
        max-width: 62%;
        flex: 1 1 auto;
    }
    .students-list tbody td.col-actions .td-val.row-actions .row-actions {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 8px;
        width: auto;
        margin: 0;
    }
    .groups-list tbody td.col-actions .row-actions > .btn,
    .groups-list tbody td.col-actions .row-actions > a,
    .students-list tbody td.col-actions .row-actions > .btn,
    .students-list tbody td.col-actions .row-actions > a,
    .students-list tbody td.col-actions .row-actions > details {
        width: auto;
        min-width: 0;
        margin: 0;
    }
    .groups-list tbody td.col-sched {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .groups-list tbody td.col-sched .sched-head-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }
    .groups-list tbody td.col-sched .td-label,
    .groups-list tbody td.col-sched .td-val {
        max-width: none;
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
    .groups-list tbody td.col-sched .sched-text,
    .groups-list tbody td.col-sched .sched-days,
    .groups-list tbody td.col-sched .sched-day {
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }
    .groups-list .act-head-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .groups-list tbody td.col-actions .td-label {
        max-width: 42%;
        width: auto;
    }
    .groups-list tbody td.col-actions .td-val.row-actions {
        width: auto;
        max-width: none;
        margin-left: 0;
        align-items: flex-end;
    }
    .groups-list tbody td.col-actions .row-actions > .btn,
    .groups-list tbody td.col-actions .row-actions > a {
        width: auto;
        min-width: 0;
    }
    .slide-list-head { display: none; }
    .slide-list-row {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .slide-list-actions,
    .slide-list-actions.row-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .sheet-block-wide { display: none; }
    .sheet-block-vert { display: block; overflow-x: auto; }
    .sheet-block table,
    .sheet-block thead,
    .sheet-block tbody,
    .sheet-block th,
    .sheet-block td,
    .sheet-block tr {
        display: revert;
        width: auto;
    }
    .sheet-table-vert {
        display: table;
        width: 100%;
    }
}

.login-card { max-width: 520px; }
.welcome-hero {
    padding: 12px 0 36px;
    text-align: center;
}
.welcome-kicker {
    margin: 0 0 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--navy);
    font-weight: 700;
}
.welcome-hero h1 {
    margin: 0 auto 14px;
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.2;
    max-width: 18em;
}
.welcome-hero > p {
    margin: 0 auto 28px;
    max-width: 40em;
    color: var(--muted);
    line-height: 1.6;
    font-size: 16px;
}
.welcome-doors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}
.welcome-door {
    display: block;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: var(--shadow);
}
.welcome-door strong { display: block; font-size: 20px; margin-bottom: 8px; }
.welcome-door span { display: block; font-size: 14px; line-height: 1.5; opacity: 0.88; }
.welcome-door.is-alt {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
}
.welcome-door.is-alt span { color: var(--muted); opacity: 1; }
.welcome-block { margin: 8px 0 40px; }
.welcome-block h2 { font-size: 24px; margin-bottom: 8px; }
.welcome-lead { margin: 0 0 18px; color: var(--muted); }
.welcome-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.welcome-cat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    min-height: 120px;
}
.welcome-cat h3 { margin: 0 0 6px; font-size: 16px; }
.welcome-cat p { margin: 0; color: var(--muted); font-size: 13px; }
.welcome-cat span {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}
.welcome-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
.welcome-steps article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}
.welcome-steps span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.welcome-steps h3 { font-size: 16px; }
.welcome-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.welcome-aside .btn-wide { margin-top: 8px; }
.reader-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 16px;
    align-items: stretch;
}
.reader-stage,
.reader-side {
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}
.reader-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 280px;
    overflow: auto;
    background: #2b3340;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}
.reader-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
.reader-flip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 72px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}
.reader-flip.is-prev { left: 8px; }
.reader-flip.is-next { right: 8px; }
.reader-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    flex-shrink: 0;
}
.reader-pager input { width: 4.2em; text-align: center; }
.reader-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-shrink: 0; }
.reader-side [hidden] { display: none !important; }
.reader-side #pane-pages,
.reader-side #pane-notes {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.reader-thumbs {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 8px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
}
.reader-thumb {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    text-align: left;
    min-height: 44px;
}
.reader-thumb canvas { width: 72px; height: auto; background: #eee; }
.reader-thumb.is-on { outline: 2px solid var(--accent); }
.reader-thumb.is-seen span { color: var(--ok); }
.reader-stat {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
}
.reader-mark {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    pointer-events: none;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reader-side textarea { width: 100%; min-height: 8rem; resize: vertical; }
.shop-grid { margin-bottom: 24px; }
.shop-grid .btn { margin-top: 10px; }
.reader-iframe { width: 100%; min-height: 70vh; border: 0; border-radius: 12px; background: #3a3a3a; }

.guide-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.guide-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(22, 50, 79, 0.16);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 14px 8px 10px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(22, 50, 79, 0.08);
}
.guide-chip-play {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
}
.guide-chip-play::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
}
.card {
    box-shadow: 0 18px 50px rgba(22, 50, 79, 0.1), 0 1px 0 rgba(255,255,255,0.7) inset;
}
.stat {
    transform: perspective(600px) rotateX(0);
    transition: transform 0.2s ease;
}
.stat:hover { transform: translateY(-4px); }
body {
    background:
        radial-gradient(900px 380px at 8% -8%, rgba(90, 160, 220, 0.18) 0%, transparent 50%),
        radial-gradient(700px 320px at 100% 0%, rgba(196, 92, 38, 0.1) 0%, transparent 46%),
        var(--bg);
}
@media (max-width: 860px) {
    .welcome-doors,
    .welcome-cats,
    .welcome-steps { grid-template-columns: 1fr; }
    .welcome-cats { grid-template-columns: 1fr 1fr; }
    .reader-layout { grid-template-columns: 1fr; }
    body.is-reader .reader-layout {
        grid-template-rows: minmax(42vh, 1fr) auto;
        gap: 12px;
    }
    .reader-canvas-wrap { min-height: 42vh; }
    .reader-flip {
        width: 36px;
        height: 56px;
        font-size: 26px;
    }
    .reader-thumbs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 4px;
    }
    .reader-thumb {
        flex: 0 0 92px;
        width: 92px;
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .reader-thumb canvas { width: 64px; }
    .reader-stat { font-size: 12px; }
}
@media (max-width: 520px) {
    body.is-reader .wrap { width: calc(100% - 16px); }
    body.is-reader .page-main { padding: 8px 0 12px; }
    .reader-pager .btn { min-width: 40px; min-height: 40px; }
    .stats { grid-template-columns: 1fr; }
    .identity-lock { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 1.3rem; }
    .welcome-doors { grid-template-columns: 1fr; }
}

.admin-hub { margin: 0 0 24px; }
.admin-fold {
    background: var(--card);
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.admin-fold > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    font-weight: 650;
    font-size: 15px;
}
.admin-fold > summary::-webkit-details-marker { display: none; }
.admin-fold[open] > summary { border-radius: 16px 16px 0 0; }
.admin-fold-in,
.admin-fold-body { padding: 16px 18px 20px; }
.admin-fold-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.news-editor-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.news-editor {
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    line-height: 1.55;
}
.news-editor:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.admin-sub { margin: 22px 0 10px; font-size: 16px; }
.admin-mini {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 8px;
    background: #fff;
}
.admin-mini > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 650;
}
.admin-mini > summary::-webkit-details-marker { display: none; }
.admin-mini-in { padding: 0 14px 14px; }
.admin-sheet {
    border: 0;
    border-radius: 16px;
    padding: 0;
    width: min(520px, calc(100% - 24px));
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.admin-sheet::backdrop { background: rgba(4, 10, 18, 0.55); }
.admin-sheet-in { padding: 16px 18px 20px; }
.yt-ratio-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 0 0 12px;
}
.yt-ratio-pick label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}
.pg-device-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0 10px;
}
.pg-device-tabs .btn.is-on {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.admin-sheet-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.admin-sheet .welcome-dialog-x { color: var(--ink); position: static; }

.admin-side-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 650;
    cursor: pointer;
}
.admin-side-btn-phone {
    display: none;
}
.admin-side-head {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 10px 0;
    min-height: 42px;
}
.admin-side-head-title {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 650;
    line-height: 32px;
    color: var(--ink);
    pointer-events: none;
}
.admin-side-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(22, 50, 79, 0.12);
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
    margin: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}
body.is-admin-shell .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
}
body.is-admin-shell .site-header .wrap {
    width: calc(100% - 32px);
    max-width: none;
}
body.is-admin-shell .brand-txt,
body.is-admin-shell .brand-txt strong {
    display: block;
}
.admin-app {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: calc(100vh - 74px);
    align-items: stretch;
}
@media (min-width: 981px) {
    body.is-admin-shell {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    body.is-admin-shell .site-header {
        position: relative;
        flex: 0 0 auto;
    }
    body.is-admin-shell .admin-app {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        grid-template-rows: minmax(0, 1fr);
    }
    body.is-admin-shell .admin-side {
        min-height: 0;
        height: auto;
        overflow: hidden;
    }
    body.is-admin-shell .admin-nav {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(22, 50, 79, 0.28) transparent;
    }
    body.is-admin-shell .admin-nav::-webkit-scrollbar {
        width: 6px;
    }
    body.is-admin-shell .admin-nav::-webkit-scrollbar-thumb {
        background: rgba(22, 50, 79, 0.28);
        border-radius: 99px;
    }
    body.is-admin-shell .admin-nav::-webkit-scrollbar-track {
        background: transparent;
    }
    body.is-admin-shell .admin-stage {
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(22, 50, 79, 0.28) transparent;
    }
    body.is-admin-shell .admin-stage::-webkit-scrollbar {
        width: 8px;
    }
    body.is-admin-shell .admin-stage::-webkit-scrollbar-thumb {
        background: rgba(22, 50, 79, 0.28);
        border-radius: 99px;
    }
    body.is-admin-shell .admin-stage::-webkit-scrollbar-track {
        background: transparent;
    }
}
@media (min-width: 981px) {
    body.is-admin-side-off .admin-app {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    body.is-admin-side-off .admin-nav,
    body.is-admin-side-off .work-mode-switch-side,
    body.is-admin-side-off .parent-child-pick,
    body.is-admin-side-off .admin-side-head-title {
        display: none;
    }
    body.is-admin-side-off .admin-side-head {
        justify-content: center;
        padding: 10px 0 0;
    }
}
.admin-side-mask {
    display: none;
}
.admin-side {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 74px);
    background: #e8eef4;
    padding: 0;
    border-right: 1px solid rgba(22, 50, 79, 0.08);
    overflow: hidden;
}
.admin-side-who {
    margin-top: 10px;
    padding: 12px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--ink);
    background: transparent;
}
.admin-side-who strong {
    font-size: 12px;
    opacity: 0.8;
}
.admin-side-who .btn {
    margin-top: 8px;
    align-self: flex-start;
}
.admin-nav {
    flex: 1;
    padding: 12px 10px 16px;
}
.admin-nav-link,
.admin-nav-group > summary {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
}
.admin-nav-group > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 650;
}
.admin-nav-group > summary::-webkit-details-marker { display: none; }
.admin-nav-group > summary::after {
    content: "▾";
    float: right;
    opacity: 0.55;
    font-size: 12px;
}
.admin-nav-group:not([open]) > summary::after { content: "▸"; }
.admin-nav-group > summary:hover,
.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.7);
}
.admin-nav-link {
    margin-top: 2px;
}
.admin-nav-group.is-fixed .admin-nav-group-title {
    display: block;
    padding: 10px 12px 4px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    color: var(--ink);
}
.admin-nav-group .admin-nav-link {
    padding-left: 22px;
    font-size: 14px;
}
.admin-nav-link.is-on {
    background: #fff;
    font-weight: 650;
    box-shadow: 0 1px 0 rgba(22, 50, 79, 0.06);
}
.admin-stage {
    min-width: 0;
    background: transparent;
}
body.is-admin-shell .admin-stage > .wrap,
body.is-admin-shell .site-footer .wrap {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .admin-app {
        display: block;
        min-height: 0;
    }
    .admin-side-btn-phone {
        display: inline-flex;
    }
    .admin-side-pin {
        display: none;
    }
    .admin-side-mask {
        display: none;
        position: fixed;
        inset: 0;
        top: var(--admin-header-h, 74px);
        border: 0;
        padding: 0;
        background: rgba(4, 10, 18, 0.45);
        z-index: 45;
        cursor: pointer;
    }
    body.is-admin-nav .admin-side-mask { display: block; }
    .admin-side {
        position: fixed;
        z-index: 50;
        left: 0;
        top: var(--admin-header-h, 74px);
        bottom: 0;
        width: min(300px, 88vw);
        min-height: 0;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: none;
        overflow: auto;
    }
    body.is-admin-nav .admin-side {
        transform: none;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.22);
    }
    body.is-admin-shell .admin-stage > .wrap,
    body.is-admin-shell .site-header .wrap {
        width: calc(100% - 24px);
        max-width: none;
        margin: 0 auto;
    }
    body.is-admin-shell .header-user-meta {
        display: none;
    }
    body.is-admin-shell .header-avatar {
        display: block;
    }
    body.is-admin-shell .header-user {
        flex: 0 0 auto;
        margin-left: 8px;
        gap: 8px;
    }
    body.is-admin-shell .header-start,
    body.is-admin-shell .brand {
        min-width: 0;
        flex: 1 1 auto;
    }
    body.is-admin-shell .brand-txt {
        overflow: hidden;
    }
    body.is-admin-shell .brand-txt strong {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.is-admin-shell .header-inner {
        gap: 10px;
    }
    body.is-admin-shell .header-user {
        flex-shrink: 0;
    }
    body.is-admin-shell .brand-txt small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .notice-bell-panel {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        top: calc(var(--admin-header-h, 72px) + 6px);
    }
}

.attend-group { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--line); }
.attend-group:first-of-type { margin-top: 0; border-top: 0; }
.attend-group h3 { margin: 0 0 12px; font-size: 1.05rem; }
.attend-group h3 small { color: var(--muted); font-weight: 500; }
.attend-acc {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px 0;
    background: #fff;
}
.attend-acc > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 0;
    font-weight: 650;
}
.attend-acc > summary::-webkit-details-marker { display: none; }
.attend-acc > summary::after { content: "▾"; color: var(--muted); }
.attend-acc:not([open]) > summary::after { content: "▸"; }
.attend-acc > summary small { color: var(--muted); font-weight: 500; }
.attend-acc[open] { padding-bottom: 14px; }
.teacher-cards {
    display: grid;
    gap: 12px;
}
.teacher-mini { margin: 0; }
.teacher-mini h2 { margin: 0 0 8px; font-size: 1.05rem; }
.teacher-mini p { margin: 0 0 4px; }
.attend-list { display: flex; flex-wrap: wrap; gap: 8px; }
.att-pick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.att-month-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}
.att-legend { margin: 14px 0 8px; }
.att-month-wrap { margin-top: 8px; }
@media (min-width: 861px) {
    .att-month-wrap { overflow-x: auto; }
    .table-wrap table.att-month {
        table-layout: auto;
        width: max-content;
        min-width: 100%;
    }
}
.att-month th.att-d {
    text-align: center;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    min-width: 2.5rem;
    width: 2.5rem;
    padding: 6px 2px;
}
.att-month th.att-d a { color: inherit; text-decoration: none; }
.att-month td { text-align: center; padding: 6px 4px; }
.att-month th:first-child,
.att-month td:first-child {
    text-align: left;
    white-space: nowrap;
}
@media (min-width: 861px) {
    .att-month th:first-child,
    .att-month td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 10rem;
        max-width: 14rem;
        overflow: hidden;
        text-overflow: ellipsis;
        background: var(--card, #fffdf8);
        box-shadow: 1px 0 0 var(--line);
    }
}
.att-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}
.att-cell.is-ok { background: #e8f6ee; color: var(--ok); }
.att-cell.is-no { background: #fde8e6; color: var(--err); }
.att-cell.is-wait { background: #f4efe6; color: var(--muted); }
.att-cell.is-off { color: #c5c0b6; }
.check-pill.is-absent,
.check-pill:has(input:checked) {
    border-color: #c45c4a;
    background: #fde8e6;
}
.is-absent-row td { background: #fde8e6; }

.slide-add,
.list-filter,
.list-tools:not(.card-export-block) { margin: 0 0 20px; }
.slide-add-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}
.list-bar-back {
    flex: 0 0 auto;
    order: -1;
    white-space: nowrap;
}
.slide-add-bar.toolbar {
    margin-bottom: 0;
}
.toolbar.list-bar {
    overflow-x: hidden;
}
.list-bar:not(.slide-add-bar):not(:has(.list-bar-form)) .toolbar-export {
    margin-left: auto;
}
.toolbar .export-cols,
.list-bar .export-cols,
.slide-add-bar .export-cols {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.slide-add-bar > .btn,
.slide-add > .btn,
.list-filter .slide-add-bar > .btn { color: #fff; background: var(--navy); }
.slide-add-bar > [data-list-filter-toggle] {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}
.slide-add-bar .toolbar-export {
    flex: 0 1 auto;
    margin-left: auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
}
.list-filter .list-bar-form {
    flex: none;
    width: 100%;
}
.slide-add-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}
.slide-add-panel.is-open { grid-template-rows: 1fr; }
.tox-tinymce {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
.tox .tox-edit-area,
.tox .tox-edit-area__iframe {
    max-width: 100%;
}
.table-wrap table.news-admin-list th.col-actions,
.table-wrap table.news-admin-list td.col-actions {
    width: 8.6rem;
    min-width: 8.6rem;
    white-space: normal;
    vertical-align: top;
}
.table-wrap table.news-admin-list td.col-actions .row-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    margin: 0;
}
.table-wrap table.news-admin-list td.col-actions .row-actions > a,
.table-wrap table.news-admin-list td.col-actions .row-actions > form,
.table-wrap table.news-admin-list td.col-actions .row-actions .btn {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
}
.slide-add-in { overflow: hidden; min-height: 0; }
.slide-add-panel.is-open .slide-add-in {
    padding-top: 12px;
    overflow: visible;
}
.slide-add .add-card,
.list-filter .add-card,
.list-tools .add-card { position: relative; margin: 0; }
[data-export-cols-panel] .add-card > h2 {
    margin: 0 40px 0 0;
    padding: 0 0 12px;
    border-bottom: 0;
}
[data-export-cols-panel] .add-card .export-cols {
    margin: 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.slide-add-x {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    z-index: 2;
}

.year-term-actions {
    margin-top: 16px;
}
.year-term-actions form {
    margin: 0;
}
.year-term-actions .btn {
    color: #fff;
    background: var(--navy);
}

.ask-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-height: calc(100% - 32px);
    width: min(440px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(22, 50, 79, 0.22);
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ask-dialog.is-in {
    opacity: 1;
    transform: none;
}
.ask-dialog.is-out {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition-duration: 0.18s;
}
.ask-dialog::backdrop {
    background: rgba(22, 50, 79, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.ask-dialog.is-in::backdrop {
    opacity: 1;
}
.ask-dialog.is-out::backdrop {
    opacity: 0;
    transition-duration: 0.18s;
}
@media (prefers-reduced-motion: reduce) {
    .ask-dialog,
    .ask-dialog::backdrop {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
.ask-dialog-in {
    padding: 28px 24px 22px;
    text-align: center;
}
.ask-dialog-in p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.55;
}
.ask-dialog-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ask-dialog-actions .btn {
    min-width: 6.5rem;
    margin: 0;
    color: #fff;
    background: var(--navy);
}
.ask-dialog-actions .btn-primary {
    background: var(--accent);
}
.notice-scope,
.notice-for {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0;
}
.notice-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 16px;
}
.notice-layout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}
.notice-layout-row .span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .notice-layout-row { grid-template-columns: 1fr; }
}
.notice-kind {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    border: 0;
    padding: 0;
    margin: 0 0 8px;
}
.notice-kind legend {
    font-weight: 700;
    padding: 0;
    margin: 0 4px 0 0;
}
.notice-kind .chk {
    margin: 0;
}
.notice-who {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    margin: 8px 0 16px;
    align-items: start;
}
.notice-who-extra {
    grid-column: 1 / -1;
}
.notice-who-person {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 720px) {
    .notice-who,
    .notice-who-person {
        grid-template-columns: 1fr;
    }
}
.notice-scope legend,
.notice-for legend {
    font-weight: 700;
    padding: 0 6px;
}
.notice-scope .chk,
.notice-for .chk {
    display: flex;
    margin: 8px 0 0;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.notice-item .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.honor-topic { margin: 0 0 28px; }
.honor-topic:last-of-type { margin-bottom: 8px; }
.honor-count-title { margin: 28px 0 12px; }
.honor-slide-kicker {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 600;
}
.honor-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.honor-slide.is-off-slide { display: none; }
.honor-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    align-items: start;
}
.honor-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}
.honor-meta {
    margin: 0;
}
.honor-meta div {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 4px 8px;
    font-size: 13px;
    margin: 0 0 2px;
}
.honor-meta dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}
.honor-meta dd { margin: 0; }
.honor-counts {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 0;
    font-size: 13px;
}
.honor-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}
.honor-slider-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex: 1;
}
@media (min-width: 861px) {
    .honor-people-slider .honor-slider-nav { display: none; }
    .honor-slide.is-off-slide { display: grid; }
}
@media (max-width: 860px) {
    .honor-cards { grid-template-columns: 1fr; }
    .honor-people-slider .honor-slider-track.honor-cards {
        display: block;
    }
    .honor-slide.is-off-slide { display: none !important; }
}

.multi-pick {
    position: relative;
    max-width: 420px;
}
.multi-pick-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
}
.multi-pick.has-value .multi-pick-btn {
    border-color: var(--navy);
}
.multi-pick.is-open .multi-pick-btn {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 50, 79, 0.08);
}
.multi-pick-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    margin-top: -4px;
    flex-shrink: 0;
}
.multi-pick.is-open .multi-pick-btn::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.multi-pick.is-open {
    z-index: 40;
}
.multi-pick-menu {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: min(70vh, 420px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(22, 50, 79, 0.12);
    padding: 6px;
}
@media (max-width: 760px) {
    .multi-pick.is-open .multi-pick-menu {
        position: static;
        max-height: none;
        margin-top: 6px;
        box-shadow: none;
    }
}
.multi-pick-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.multi-pick-item:hover {
    background: #f4f1ea;
}
.multi-pick-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.multi-pick-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 5px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
}
.multi-pick-item input:checked + .multi-pick-box {
    background: var(--navy);
    border-color: var(--navy);
}
.multi-pick-item input:checked + .multi-pick-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.notice-ttl {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 16px 0 0;
}
.notice-ttl legend { font-weight: 700; padding: 0 6px; }
.ttl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-toasts {
    display: grid;
    gap: 10px;
    margin: 20px 0 8px;
}
.notice-toast {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(22, 50, 79, 0.08);
    border-left: 4px solid var(--accent);
}
.notice-toast-main { min-width: 0; flex: 1; }
.notice-toast-main h3 { margin: 0 0 4px; font-size: 1.02rem; }
.notice-toast-main p { margin: 0 0 6px; }
.notice-toast-main p:last-child { margin: 0; }
.notice-toast-close button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #f4f1ea;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.notice-toast-close button:hover { background: #e8e2d6; }
.notice-toast-page { margin: 0 0 12px; }

#notice-form label { margin-top: 10px; }
#notice-form .notice-scope { margin: 10px 0 0; }
#notice-form .hw-add-row { margin-top: 10px; }
.hw-who-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: start;
    margin-top: 4px;
}
.hw-who-grid:has([data-notice-panel="person"]:not([hidden])) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hw-who-grid [data-notice-panel="person"]:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 16px;
    grid-column: 2 / 4;
    align-items: start;
}
.hw-who-grid .multi-pick { max-width: none; }
.hw-when-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: start;
}
.hw-when-grid .hw-plan { margin: 0; }
.hw-when-grid .hw-plan-block { margin: 0; }
.hw-when-grid .hw-plan-block label,
.hw-when-grid > div > label { margin-top: 10px; }
@media (max-width: 760px) {
    .hw-who-grid,
    .hw-who-grid:has([data-notice-panel="person"]:not([hidden])),
    .hw-who-grid [data-notice-panel="person"]:not([hidden]),
    .hw-when-grid {
        grid-template-columns: 1fr;
    }
    .hw-who-grid [data-notice-panel="person"]:not([hidden]) {
        grid-column: auto;
    }
}
.hw-plan { margin: 0 0 8px; }
.hw-plan-block {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
}
.hw-plan-block label { display: block; margin: 0 0 6px; font-weight: 600; }
.hw-plan-block select { width: 100%; max-width: none; }
.hw-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.hw-item:not(.is-open) .hw-item-body { display: none; }
.hw-item-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.hw-item-kind { font-size: 0.88rem; color: var(--muted, #667); font-weight: 600; }
.hw-ex { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.hw-ex summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.hw-vid-actions { margin-top: 10px; }
.hw-ex video[data-hw-ex-vid],
.hw-item video[data-hw-ex-vid] { margin: 0 0 2px; }
.hw-cal { margin: 0 0 12px; }
.hw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.hw-cal-h { font-size: 0.78rem; text-align: center; color: var(--muted, #667); }
.hw-cal-day {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #f3f1ec;
}
.hw-cal-day.is-past { opacity: 0.4; }
.hw-cal-day.is-lesson {
    background: #e7f4ea;
    cursor: pointer;
    border: 1px solid #b7d8bd;
}
.hw-cal-day.is-lesson input { position: absolute; opacity: 0; pointer-events: none; }
.hw-cal-day.is-lesson { position: relative; }
.hw-cal-day.is-lesson small { font-size: 0.65rem; font-weight: 600; color: #2d6a3a; }
.hw-cal-day.is-lesson:has(input:checked) {
    background: #2d6a3a;
    color: #fff;
    border-color: #2d6a3a;
}
.hw-cal-day.is-lesson:has(input:checked) small { color: #e8ffe9; }
.hw-explain video::-webkit-media-controls-overflow-button,
.hw-ex video::-webkit-media-controls-overflow-button { display: none; }
.hw-explain video,
.hw-ex video { -webkit-touch-callout: none; }
.hw-items { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.hw-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.hw-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hw-item-n {
    font-weight: 700;
    color: var(--accent);
}
.hw-item-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hw-item-shot { margin: 8px 0 12px; }
.hw-item-shot img,
.hw-q img:not(.q-photo) {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: min(42vh, 280px);
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.hw-item label { margin: 0; }
.hw-item .form-grid { margin: 4px 0 8px; }
.hw-item .form-grid input { width: 100%; }
.hw-item select,
.hw-item-ex input { width: 100%; }
.hw-pages { display: flex; flex-direction: column; gap: 12px; }
.hw-pages img,
.hw-reply img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.hw-q { margin: 0; padding-left: 1.2rem; }
.hw-q li { margin: 0 0 20px; }
.btn[hidden],
.hw-item [hidden],
.hw-ex video[hidden],
.hw-item video[hidden],
.hw-item img[hidden],
.hw-gone {
    display: none !important;
}
.hw-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 0 0 10px;
}
.hw-opts label { margin: 0; }
.hw-opts input { width: 100%; }
.hw-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.hw-review { margin: 0; padding-left: 1.2rem; }
.hw-review li { margin: 0 0 12px; padding: 8px 10px; border-radius: 10px; }
.hw-review .is-ok { background: #e8f6ee; }
.hw-review .is-bad { background: #fdecea; }
.hw-ans-grid .is-ok { color: #1a7a3a; font-weight: 700; }
.hw-ans-grid .is-bad { color: #b42318; font-weight: 700; }
.shared-teasers {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shared-teasers li {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
}
.shared-teasers li:last-child {
    margin: 0;
    padding: 0;
    border: 0;
}
.shared-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}
.shared-open:hover,
.shared-open:focus {
    color: var(--accent);
}
.shared-fold-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}
.shared-fold-panel.is-open {
    grid-template-rows: 1fr;
    margin-top: 10px;
}
.shared-fold-inner {
    overflow: hidden;
    min-height: 0;
}
.shared-board { margin: 0 0 28px; }
.shared-board:last-child { margin: 0; }
.hw-reply {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #faf8f4;
}
.hw-reply audio { width: 100%; max-width: 420px; }
.hw-explain { margin-top: 8px; }
.hw-explain video,
.hw-ex video[data-hw-ex-vid] {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    max-height: 168px;
    object-fit: contain;
    border-radius: 10px;
    background: #111;
}
.hw-rec-live,
.hw-vid-edit-v {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #111;
}
.hw-rec-time { margin: 8px 0 0; font-weight: 600; }
.hw-scan {
    border: 0;
    padding: 0;
    max-width: min(520px, 94vw);
    width: min(520px, 94vw);
    max-height: 90vh;
    overflow: auto;
    border-radius: 16px;
}
#hw-rec.hw-scan,
#hw-vid-edit.hw-scan {
    max-width: min(920px, 96vw);
}
.hw-scan::backdrop { background: rgba(20, 30, 40, 0.55); }
.hw-rec-frame {
    position: relative;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.hw-rec-count {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
    pointer-events: none;
}
.hw-scan-in { position: relative; padding: 14px 14px 16px; }
.hw-scan-hint { margin: 0 0 10px; font-size: 0.92rem; }
.hw-scan-stage {
    position: relative;
    background: #1c2430;
    border-radius: 12px;
    overflow: hidden;
    min-height: 140px;
    max-height: min(48vh, 360px);
}
.hw-scan-stage img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(48vh, 360px);
    object-fit: contain;
    margin: 0 auto;
}
.hw-scan-stage canvas {
    position: absolute;
    pointer-events: none;
}
.hw-scan-h {
    position: absolute;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px rgba(0,0,0,.25);
    padding: 0;
    z-index: 2;
    touch-action: none;
    cursor: grab;
}
.hw-scan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding: 2px 0 0;
}

/* Mənim valideynlərim / Mənim övladlarım */
.table-wrap table.family-list {
    width: 100%;
    table-layout: fixed;
}
.table-wrap table.family-list th,
.table-wrap table.family-list td {
    vertical-align: middle;
    overflow-wrap: break-word;
    word-break: normal;
}
@container panel (min-width: 861px) {
    .table-wrap table.family-list thead th,
    .table-wrap table.family-list tbody td {
        text-align: center;
    }
    .table-wrap table.family-list tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .table-wrap table.family-list tbody td.col-actions .td-val {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}
@media (min-width: 861px) {
    .table-wrap table.family-list thead th,
    .table-wrap table.family-list tbody td {
        text-align: center;
    }
    .table-wrap table.family-list tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .table-wrap table.family-list tbody td.col-actions .td-val {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}

@media (min-width: 861px) {
    .table-wrap table:not(.stats-grid) {
        width: 100%;
        table-layout: fixed;
    }
    .table-wrap table:not(.stats-grid) > thead > tr > th,
    .table-wrap table:not(.stats-grid) > tbody > tr > td {
        text-align: center;
        vertical-align: middle;
    }
    .table-wrap table:not(.stats-grid) > tbody > tr > td.col-actions,
    .table-wrap table:not(.stats-grid) > tbody > tr > td.col-actions.row-actions,
    .table-wrap table:not(.stats-grid) > thead > tr > th.col-actions {
        display: table-cell;
        width: auto;
        min-width: 16rem;
        text-align: center;
        white-space: normal;
        vertical-align: middle;
    }
    .table-wrap td.col-actions .row-actions,
    .table-wrap td.col-actions .td-val.row-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: auto;
        margin: 0 auto;
        flex-direction: row;
    }
    .table-wrap td.col-actions .td-val.row-actions > .row-actions {
        display: contents;
    }
    .table-wrap td.col-actions > a,
    .table-wrap td.col-actions > .btn,
    .table-wrap td.col-actions > form,
    .table-wrap td.col-actions.row-actions > a,
    .table-wrap td.col-actions.row-actions > .btn,
    .table-wrap td.col-actions.row-actions > form {
        display: inline-flex;
        vertical-align: middle;
        margin: 0 3px 4px;
        width: auto;
        max-width: 100%;
        flex: 0 0 auto;
    }
    .table-wrap td.col-actions .btn,
    .table-wrap td.col-actions a.btn {
        width: auto;
        min-width: 0;
        white-space: nowrap;
    }
    .table-wrap .span-range {
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .table-wrap .sched-days,
    .table-wrap .sched-text,
    .table-wrap .sched-day {
        align-items: center;
        text-align: center;
    }
    .exam-list .col-topic { width: 26%; overflow-wrap: break-word; word-break: normal; hyphens: none; }
    .exam-list th:nth-child(2),
    .exam-list td:nth-child(2) { width: 12%; }
    .exam-list th:nth-child(3),
    .exam-list td:nth-child(3) { width: 12%; }
    .exam-list th:nth-child(4),
    .exam-list td:nth-child(4) { width: 8%; }
    .exam-list th:nth-child(5),
    .exam-list td:nth-child(5) { width: 8%; }
    .exam-list th:nth-child(6),
    .exam-list td:nth-child(6) { width: 8%; }
    .exam-list th:nth-child(7),
    .exam-list td:nth-child(7) { width: 10%; }
    .exam-list th.col-actions,
    .exam-list td.col-actions { width: 16%; }
}
@container panel (min-width: 861px) {
    .table-wrap table:not(.stats-grid) > thead > tr > th,
    .table-wrap table:not(.stats-grid) > tbody > tr > td {
        text-align: center;
        vertical-align: middle;
    }
    .table-wrap td.col-actions,
    .table-wrap td.col-actions.row-actions,
    .table-wrap th.col-actions {
        display: table-cell;
        text-align: center;
        white-space: nowrap;
    }
    .table-wrap td.col-actions .row-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        flex-direction: row;
    }
}

.list-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.list-pager-size,
.list-pager-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.list-pager-size select {
    width: auto;
    min-width: 4.5rem;
    height: 36px;
    padding: 0 28px 0 10px;
}
.list-pager-nav {
    margin-left: auto;
}
.list-pager-go {
    appearance: none;
    background: none;
    border: 0;
    box-shadow: none;
    min-width: 1.75rem;
    height: 32px;
    padding: 0 6px;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    border-radius: 8px;
}
.list-pager-go:hover:not(:disabled) {
    background: rgba(15, 40, 80, 0.06);
}
.list-pager-go.is-on {
    color: var(--navy);
}
.list-pager-go:disabled {
    opacity: 0.35;
    cursor: default;
}
.list-pager .btn.is-on {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.list-pager-gap {
    padding: 0 4px;
    color: var(--muted);
    font-weight: 600;
}
tr.is-off-page {
    display: none !important;
}

@media (min-width: 861px) {
    .table-wrap table.students-list {
        table-layout: fixed;
        width: 100%;
    }
    .table-wrap table:not(.stats-grid) > thead > tr > th.col-actions,
    .table-wrap table:not(.stats-grid) > tbody > tr > td.col-actions,
    .table-wrap table:not(.stats-grid) > tbody > tr > td:has(.row-actions) {
        white-space: nowrap;
        text-align: center;
    }
    .table-wrap tbody td.col-actions .act-head-row > .td-label {
        display: none;
    }
    .table-wrap tbody td.col-actions .act-head-row {
        display: block;
        width: 100%;
    }
    .table-wrap td.col-actions .row-actions,
    .table-wrap td.col-actions .td-val.row-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: auto;
        max-width: none;
        margin: 0 auto;
    }
    .table-wrap td.col-actions .td-val.row-actions > .row-actions,
    .table-wrap td.col-actions .row-actions > .row-actions {
        display: contents;
    }
    .table-wrap td.col-actions details {
        display: inline-block;
        width: auto;
        margin: 0;
        vertical-align: middle;
    }
    .table-wrap td.col-actions .btn,
    .table-wrap td.col-actions a.btn,
    .table-wrap td.col-actions summary.btn,
    .table-wrap td.col-actions form {
        display: inline-flex;
        width: auto;
        min-width: 0;
        margin: 0;
        flex: 0 0 auto;
    }
}
.table-wrap td.col-actions,
.table-wrap td.col-sched {
    position: relative;
    overflow: visible;
}
.row-slide {
    display: contents;
}
.table-wrap td.col-actions .row-actions,
.table-wrap td.col-actions .td-val.row-actions,
.table-wrap td.col-actions .exam-act-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.table-wrap td.col-actions .row-actions > .btn,
.table-wrap td.col-actions .row-actions > a,
.table-wrap td.col-actions .row-actions > form,
.table-wrap td.col-actions .row-actions > details,
.table-wrap td.col-actions [data-row-slide-toggle] {
    order: 1;
}
.table-wrap td.col-actions .row-actions .row-actions {
    display: contents;
}
.table-wrap td.col-actions .row-slide-panel,
.row-actions .row-slide-panel {
    order: 2;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
}
td.col-sched .row-slide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin-top: 8px;
}
.row-actions .row-slide-panel {
    flex: 1 0 100%;
    order: 30;
}
.row-slide-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
    width: 100%;
    max-width: none;
}
.row-slide-panel.is-open { grid-template-rows: 1fr; }
.row-slide-in { overflow: hidden; min-height: 0; }
.row-slide-panel.is-open .row-slide-in { padding-top: 8px; }
.row-slide-in > form,
.row-slide-in > .leave-note,
.row-slide-in > .group-switch,
.row-slide-in > .enroll-history-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}
.row-slide-in .week-pick,
.row-slide-in .week-pills,
.row-slide-in .week-times,
.row-slide-in .week-time {
    width: 100%;
    max-width: none;
}
.row-slide-in .week-pills {
    flex-wrap: wrap;
    overflow: visible;
}
.row-slide-in .week-time-inputs {
    flex-wrap: wrap;
}
.row-slide-in .week-time-inputs input[type="time"] {
    min-width: 0;
    flex: 1 1 7rem;
}
.row-slide-in select,
.row-slide-in textarea,
.row-slide-in .btn {
    width: 100%;
    max-width: none;
}
.is-roster .table-wrap {
    overflow: visible;
}
@media (min-width: 861px) {
    .table-wrap table.exam-list,
    .table-wrap.exam-list table,
    .table-wrap table.hw-teach-list,
    .table-wrap table.exam-student-list,
    .table-wrap table.hw-student-list,
    .table-wrap table.dash-exams-list,
    .table-wrap table.dash-hw-list {
        table-layout: fixed;
        width: 100%;
    }
    .col-topic,
    .col-exam,
    th.col-topic,
    td.col-topic,
    th.col-exam,
    td.col-exam {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }
}

@media (max-width: 860px) {
    .group-switch form,
    .leave-note form,
    .enroll-history[open] .enroll-history-list {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
    }
    .group-switch form {
        flex-direction: column;
        width: auto;
        max-width: none;
    }
    .group-switch select,
    .group-switch form > .btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }
    .table-wrap tbody td.col-actions,
    .table-wrap tbody td.col-actions:has(.act-head-row),
    .table-wrap tbody td:has(.row-actions),
    .table-wrap tbody td.row-actions,
    .table-wrap table.exam-student-list tbody td.col-actions,
    .table-wrap table.hw-student-list tbody td.col-actions,
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
    }
    .table-wrap tbody td.col-actions > .td-label,
    .table-wrap tbody td.col-actions .act-head-row > .td-label,
    .table-wrap tbody td:has(.row-actions) > .td-label {
        display: block;
        width: 100%;
        max-width: none;
        margin-bottom: 0;
        flex: none;
    }
    .table-wrap tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .table-wrap tbody td.col-actions > .row-actions,
    .table-wrap tbody td.col-actions .td-val,
    .table-wrap tbody td.col-actions .td-val.row-actions,
    .table-wrap tbody td.col-actions .exam-act-stack,
    .table-wrap tbody td.col-actions .act-head-row > .td-val,
    #dash-exams table.dash-exams-list td.col-actions .exam-act-stack,
    #dash-hw table.dash-hw-list td.col-actions .td-val {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex: none;
    }
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn,
    .table-wrap tbody td.col-actions summary.btn,
    .table-wrap tbody td.col-actions .exam-act-note {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        flex: 0 0 auto;
    }
    .table-wrap tbody td.col-exam .td-val,
    .table-wrap tbody td.col-topic .td-val,
    .table-wrap tbody td[data-col="topic"] .td-val,
    .table-wrap tbody td[data-col="title"] .td-val,
    .table-wrap tbody td[data-col="exam"] .td-val {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
        max-width: 58%;
        white-space: normal;
    }
    .table-wrap tbody td.col-sched,
    .is-roster .table-wrap tbody td.col-sched,
    .table-wrap.groups-list tbody td.col-sched {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }
    .table-wrap tbody td.col-sched .sched-head-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }
    .table-wrap tbody td.col-sched .td-label {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
    .table-wrap tbody td.col-sched .td-val,
    .table-wrap tbody td.col-sched .sched-text,
    .table-wrap tbody td.col-sched .sched-days,
    .table-wrap tbody td.col-sched .sched-day {
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: left;
        align-items: flex-start;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .table-wrap tbody td.col-sched .sched-day {
        white-space: nowrap;
    }
    .table-wrap tbody td.col-sched .row-slide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
    }
    .table-wrap tbody td.col-sched .row-slide > [data-row-slide-toggle] {
        align-self: flex-start;
        width: auto;
        max-width: none;
    }
    .table-wrap tbody td.col-sched .row-slide-panel,
    .table-wrap tbody td.col-sched .row-slide-in,
    .table-wrap tbody td.col-sched .week-pick {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 861px) {
    .students-list th.col-name,
    .students-list td.col-name {
        width: 28%;
    }
    .students-list th:nth-child(2),
    .students-list td:nth-child(2) {
        width: 16%;
    }
    .students-list th:nth-child(3),
    .students-list td:nth-child(3) {
        width: 12%;
    }
    .students-list th:nth-child(4),
    .students-list td:nth-child(4) {
        width: 22%;
    }
    .students-list th.col-actions,
    .students-list td.col-actions ,
    .join-req-list td.col-actions {
        width: 12.5rem;
        white-space: normal;
        overflow: visible;
        text-align: right;
        vertical-align: middle;
    }
    .students-list td.col-actions .row-actions,
    .join-req-list td.col-actions .row-actions,
    .students-list td.col-actions .td-val.row-actions,
    .join-req-list td.col-actions .td-val.row-actions,
    .students-list td.col-actions .row-actions > .row-actions ,
    .join-req-list td.col-actions .row-actions > .row-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        width: 11.5rem;
        max-width: 11.5rem;
        margin: 0 0 0 auto;
    }
    .students-list td.col-actions .row-slide ,
    .join-req-list td.col-actions .row-slide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .students-list td.col-actions [data-row-slide-toggle],
    .join-req-list td.col-actions [data-row-slide-toggle],
    .students-list td.col-actions .btn,
    .join-req-list td.col-actions .btn,
    .students-list td.col-actions a.btn,
    .join-req-list td.col-actions a.btn,
    .students-list td.col-actions .row-actions > form ,
    .join-req-list td.col-actions .row-actions > form {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
    }
    .students-list td.col-actions .row-slide-panel,
    .join-req-list td.col-actions .row-slide-panel,
    .students-list td.col-actions .row-slide-in,
    .join-req-list td.col-actions .row-slide-in,
    .students-list td.col-actions .enroll-history-list,
    .join-req-list td.col-actions .enroll-history-list,
    .students-list td.col-actions .leave-note,
    .join-req-list td.col-actions .leave-note,
    .students-list td.col-actions .group-switch ,
    .join-req-list td.col-actions .group-switch {
        width: 100%;
        max-width: none;
        white-space: normal;
        box-sizing: border-box;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions,
    .table-wrap tbody td.col-actions:has(.act-head-row),
    .groups-list tbody td.col-actions,
    .students-list tbody td.col-actions,
    .table-wrap table.exam-student-list tbody td.col-actions,
    .table-wrap table.hw-student-list tbody td.col-actions,
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible;
        box-sizing: border-box;
    }
    .table-wrap tbody td.col-actions > .td-label,
    .groups-list tbody td.col-actions > .td-label,
    .students-list tbody td.col-actions > .td-label {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        margin-bottom: 0;
    }
    .table-wrap tbody td.col-actions > .row-actions,
    .table-wrap tbody td.col-actions .td-val,
    .table-wrap tbody td.col-actions .td-val.row-actions,
    .table-wrap tbody td.col-actions .exam-act-stack,
    .groups-list tbody td.col-actions .td-val.row-actions,
    .students-list tbody td.col-actions .td-val.row-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: none !important;
        box-sizing: border-box;
    }
    .table-wrap tbody td.col-actions .row-slide {
        display: contents;
    }
    .table-wrap tbody td.col-actions [data-row-slide-toggle],
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.col-actions .row-actions > .btn,
    .table-wrap tbody td.col-actions .row-actions > a,
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn {
        order: 1;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        align-self: auto;
        position: static !important;
        padding: 6px 10px;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }
    .table-wrap tbody td.col-actions .row-slide-panel,
    .table-wrap tbody td.col-actions .row-slide-in,
    .table-wrap tbody td.col-actions .enroll-history-list,
    .table-wrap tbody td.col-actions .leave-note,
    .table-wrap tbody td.col-actions .group-switch,
    .table-wrap tbody td.col-actions .group-switch form {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100%;
        left: auto !important;
        right: auto !important;
        box-sizing: border-box;
    }
}

@container panel (max-width: 860px) {
    .table-wrap tbody td.col-actions,
    .students-list tbody td.col-actions,
    .groups-list tbody td.col-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px;
    }
    .table-wrap tbody td.col-actions > .td-label,
    .students-list tbody td.col-actions > .td-label {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    .table-wrap tbody td.col-actions > .row-actions,
    .students-list tbody td.col-actions .td-val.row-actions {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        flex: none !important;
    }
    .table-wrap tbody td.col-actions .row-slide {
        display: contents !important;
    }
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn,
    .table-wrap tbody td.col-actions [data-row-slide-toggle] {
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        justify-content: center;
        text-align: center;
    }
    .table-wrap tbody td.col-actions .row-slide-panel,
    .table-wrap tbody td.col-actions .enroll-history-list {
        flex: 1 0 100%;
        width: 100% !important;
        max-width: 100% !important;
        order: 2;
    }
}
@container panel (max-width: 860px) {
    .group-switch form,
    .leave-note form,
    .enroll-history[open] .enroll-history-list {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
    }
    .group-switch form {
        flex-direction: column;
        width: auto;
        max-width: none;
    }
    .group-switch select,
    .group-switch form > .btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }
    .table-wrap tbody td.col-actions,
    .table-wrap tbody td.col-actions:has(.act-head-row),
    .table-wrap tbody td:has(.row-actions),
    .table-wrap tbody td.row-actions,
    .table-wrap table.exam-student-list tbody td.col-actions,
    .table-wrap table.hw-student-list tbody td.col-actions,
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
    }
    .table-wrap tbody td.col-actions > .td-label,
    .table-wrap tbody td.col-actions .act-head-row > .td-label,
    .table-wrap tbody td:has(.row-actions) > .td-label {
        display: block;
        width: 100%;
        max-width: none;
        margin-bottom: 0;
        flex: none;
    }
    .table-wrap tbody td.col-actions .act-head-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .table-wrap tbody td.col-actions > .row-actions,
    .table-wrap tbody td.col-actions .td-val,
    .table-wrap tbody td.col-actions .td-val.row-actions,
    .table-wrap tbody td.col-actions .exam-act-stack,
    .table-wrap tbody td.col-actions .act-head-row > .td-val,
    #dash-exams table.dash-exams-list td.col-actions .exam-act-stack,
    #dash-hw table.dash-hw-list td.col-actions .td-val {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex: none;
    }
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn,
    .table-wrap tbody td.col-actions summary.btn,
    .table-wrap tbody td.col-actions .exam-act-note {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        flex: 0 0 auto;
    }
    .table-wrap tbody td.col-exam .td-val,
    .table-wrap tbody td.col-topic .td-val,
    .table-wrap tbody td[data-col="topic"] .td-val,
    .table-wrap tbody td[data-col="title"] .td-val,
    .table-wrap tbody td[data-col="exam"] .td-val {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
        max-width: 58%;
        white-space: normal;
    }
    .table-wrap tbody td.col-sched,
    .is-roster .table-wrap tbody td.col-sched,
    .table-wrap.groups-list tbody td.col-sched {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }
    .table-wrap tbody td.col-sched .sched-head-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }
    .table-wrap tbody td.col-sched .td-label {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
    .table-wrap tbody td.col-sched .td-val,
    .table-wrap tbody td.col-sched .sched-text,
    .table-wrap tbody td.col-sched .sched-days,
    .table-wrap tbody td.col-sched .sched-day {
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: left;
        align-items: flex-start;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .table-wrap tbody td.col-sched .sched-day {
        white-space: nowrap;
    }
    .table-wrap tbody td.col-sched .row-slide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
    }
    .table-wrap tbody td.col-sched .row-slide > [data-row-slide-toggle] {
        align-self: flex-start;
        width: auto;
        max-width: none;
    }
    .table-wrap tbody td.col-sched .row-slide-panel,
    .table-wrap tbody td.col-sched .row-slide-in,
    .table-wrap tbody td.col-sched .week-pick {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 861px) {
    .students-list th.col-name,
    .students-list td.col-name {
        width: 28%;
    }
    .students-list th:nth-child(2),
    .students-list td:nth-child(2) {
        width: 16%;
    }
    .students-list th:nth-child(3),
    .students-list td:nth-child(3) {
        width: 12%;
    }
    .students-list th:nth-child(4),
    .students-list td:nth-child(4) {
        width: 22%;
    }
    .students-list th.col-actions,
    .students-list td.col-actions ,
    .join-req-list td.col-actions {
        width: 12.5rem;
        white-space: normal;
        overflow: visible;
        text-align: right;
        vertical-align: middle;
    }
    .students-list td.col-actions .row-actions,
    .join-req-list td.col-actions .row-actions,
    .students-list td.col-actions .td-val.row-actions,
    .join-req-list td.col-actions .td-val.row-actions,
    .students-list td.col-actions .row-actions > .row-actions ,
    .join-req-list td.col-actions .row-actions > .row-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        width: 11.5rem;
        max-width: 11.5rem;
        margin: 0 0 0 auto;
    }
    .students-list td.col-actions .row-slide ,
    .join-req-list td.col-actions .row-slide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .students-list td.col-actions [data-row-slide-toggle],
    .join-req-list td.col-actions [data-row-slide-toggle],
    .students-list td.col-actions .btn,
    .join-req-list td.col-actions .btn,
    .students-list td.col-actions a.btn,
    .join-req-list td.col-actions a.btn,
    .students-list td.col-actions .row-actions > form ,
    .join-req-list td.col-actions .row-actions > form {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
    }
    .students-list td.col-actions .row-slide-panel,
    .join-req-list td.col-actions .row-slide-panel,
    .students-list td.col-actions .row-slide-in,
    .join-req-list td.col-actions .row-slide-in,
    .students-list td.col-actions .enroll-history-list,
    .join-req-list td.col-actions .enroll-history-list,
    .students-list td.col-actions .leave-note,
    .join-req-list td.col-actions .leave-note,
    .students-list td.col-actions .group-switch ,
    .join-req-list td.col-actions .group-switch {
        width: 100%;
        max-width: none;
        white-space: normal;
        box-sizing: border-box;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions,
    .table-wrap tbody td.col-actions:has(.act-head-row),
    .groups-list tbody td.col-actions,
    .students-list tbody td.col-actions,
    .table-wrap table.exam-student-list tbody td.col-actions,
    .table-wrap table.hw-student-list tbody td.col-actions,
    #dash-exams table.dash-exams-list td.col-actions,
    #dash-hw table.dash-hw-list td.col-actions {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible;
        box-sizing: border-box;
    }
    .table-wrap tbody td.col-actions > .td-label,
    .groups-list tbody td.col-actions > .td-label,
    .students-list tbody td.col-actions > .td-label {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        margin-bottom: 0;
    }
    .table-wrap tbody td.col-actions > .row-actions,
    .table-wrap tbody td.col-actions .td-val,
    .table-wrap tbody td.col-actions .td-val.row-actions,
    .table-wrap tbody td.col-actions .exam-act-stack,
    .groups-list tbody td.col-actions .td-val.row-actions,
    .students-list tbody td.col-actions .td-val.row-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: none !important;
        box-sizing: border-box;
    }
    .table-wrap tbody td.col-actions .row-slide {
        display: contents;
    }
    .table-wrap tbody td.col-actions [data-row-slide-toggle],
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.col-actions .row-actions > .btn,
    .table-wrap tbody td.col-actions .row-actions > a,
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn {
        order: 1;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        align-self: auto;
        position: static !important;
        padding: 6px 10px;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }
    .table-wrap tbody td.col-actions .row-slide-panel,
    .table-wrap tbody td.col-actions .row-slide-in,
    .table-wrap tbody td.col-actions .enroll-history-list,
    .table-wrap tbody td.col-actions .leave-note,
    .table-wrap tbody td.col-actions .group-switch,
    .table-wrap tbody td.col-actions .group-switch form {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100%;
        left: auto !important;
        right: auto !important;
        box-sizing: border-box;
    }
}

@container panel (max-width: 860px) {
    .table-wrap tbody td.col-actions,
    .students-list tbody td.col-actions,
    .groups-list tbody td.col-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px;
    }
    .table-wrap tbody td.col-actions > .td-label,
    .students-list tbody td.col-actions > .td-label {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    .table-wrap tbody td.col-actions > .row-actions,
    .students-list tbody td.col-actions .td-val.row-actions {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        flex: none !important;
    }
    .table-wrap tbody td.col-actions .row-slide {
        display: contents !important;
    }
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn,
    .table-wrap tbody td.col-actions [data-row-slide-toggle] {
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        justify-content: center;
        text-align: center;
    }
    .table-wrap tbody td.col-actions .row-slide-panel,
    .table-wrap tbody td.col-actions .enroll-history-list {
        flex: 1 0 100%;
        width: 100% !important;
        max-width: 100% !important;
        order: 2;
    }
}


@media (max-width: 860px) {
    .table-wrap tbody td.col-actions .row-slide-panel,
    .table-wrap tbody td.col-actions .row-slide-panel .btn,
    .table-wrap tbody td.col-actions .row-slide-in .btn,
    .table-wrap tbody td.col-actions .group-switch .btn,
    .table-wrap tbody td.col-actions .leave-note .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
    }
    .table-wrap select,
    .table-wrap input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
    .table-wrap textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
}
@media (min-width: 861px) {
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .exam-list th.col-actions,
    .exam-list td.col-actions,
    .hw-teach-list th.col-actions,
    .hw-teach-list td.col-actions,
    .parents-list th.col-actions,
    .parents-list td.col-actions {
        width: 12.5rem;
        max-width: 12.5rem;
        white-space: normal;
        overflow: visible;
        text-align: right;
        vertical-align: middle;
    }
    .groups-list td.col-actions .row-actions,
    .groups-list td.col-actions .td-val.row-actions,
    .exam-list td.col-actions .row-actions,
    .exam-list td.col-actions .td-val.row-actions,
    .exam-list td.col-actions .exam-act-stack,
    .hw-teach-list td.col-actions .row-actions,
    .hw-teach-list td.col-actions .td-val,
    .parents-list td.col-actions .row-actions,
    .parents-list td.col-actions .td-val {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        width: 11.5rem;
        max-width: 11.5rem;
        margin: 0 0 0 auto;
    }
    .groups-list td.col-actions .btn,
    .groups-list td.col-actions a.btn,
    .exam-list td.col-actions .btn,
    .exam-list td.col-actions a.btn,
    .hw-teach-list td.col-actions .btn,
    .hw-teach-list td.col-actions a.btn,
    .parents-list td.col-actions .btn,
    .parents-list td.col-actions a.btn {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        box-sizing: border-box;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.col-actions .td-val > form,
    .table-wrap tbody td.col-actions .exam-act-stack > form,
    .table-wrap tbody td.col-actions > form {
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        margin: 0 !important;
        display: flex !important;
        box-sizing: border-box;
    }
    .table-wrap tbody td.col-actions .row-actions > form > .btn,
    .table-wrap tbody td.col-actions .td-val > form > .btn,
    .table-wrap tbody td.col-actions .exam-act-stack > form > .btn,
    .table-wrap tbody td.col-actions > form > .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.col-actions .td-val > form,
    .table-wrap tbody td.col-actions .exam-act-stack > form,
    .table-wrap tbody td.col-actions > form {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        gap: 0 !important;
    }
}

@media (min-width: 861px) {
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .exam-list th.col-actions,
    .exam-list td.col-actions,
    .hw-teach-list th.col-actions,
    .hw-teach-list td.col-actions,
    .parents-list th.col-actions,
    .parents-list td.col-actions {
        width: 12.5rem !important;
        max-width: 12.5rem !important;
    }
}

@media (min-width: 861px) {
    table.groups-list {
        table-layout: fixed !important;
        width: 100%;
    }
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .groups-list td.col-actions.row-actions {
        width: 13% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .groups-list th.col-sched,
    .groups-list td.col-sched {
        width: 32% !important;
    }
    .groups-list th:first-child,
    .groups-list td:first-child,
    .groups-list th.col-name,
    .groups-list td.col-name {
        width: 26% !important;
    }
}

@media (min-width: 861px) {
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .groups-list td.col-actions.row-actions {
        width: 18% !important;
        min-width: 0 !important;
    }
    .groups-list th:first-child,
    .groups-list td:first-child {
        width: 24% !important;
    }
    .groups-list th.col-sched,
    .groups-list td.col-sched {
        width: 30% !important;
    }
}

/* Compact desktop tables + keep slide panels inside the card */
@media (min-width: 861px) {
    .is-roster .table-wrap,
    .table-wrap {
        overflow-x: auto;
        overflow-y: visible;
        position: relative;
    }
    .table-wrap table.groups-list,
    table.groups-list,
    .table-wrap table.students-list,
    table.students-list,
    .table-wrap table.exam-list,
    table.exam-list,
    .table-wrap table.hw-teach-list,
    table.hw-teach-list,
    .table-wrap table.parents-list,
    table.parents-list {
        table-layout: fixed !important;
        width: 100%;
    }
    .groups-list th.col-name,
    .groups-list td.col-name,
    .groups-list th:first-child,
    .groups-list td:first-child,
    .groups-list th.col-count,
    .groups-list td.col-count,
    .groups-list th.col-subject,
    .groups-list td.col-subject,
    .groups-list th.col-duty,
    .groups-list td.col-duty,
    .students-list th:not(.col-name):not(.col-actions),
    .students-list td:not(.col-name):not(.col-actions),
    .exam-list th:not(.col-topic):not(.col-actions),
    .exam-list td:not(.col-topic):not(.col-actions),
    .hw-teach-list th:not(:first-child):not(.col-actions),
    .hw-teach-list td:not(:first-child):not(.col-actions),
    .parents-list th:not(:first-child):not(.col-actions),
    .parents-list td:not(:first-child):not(.col-actions) {
        min-width: 0 !important;
        max-width: none !important;
        white-space: nowrap;
    }
    .groups-list th.col-sched,
    .groups-list td.col-sched,
    .students-list th.col-name,
    .students-list td.col-name,
    .exam-list th.col-topic,
    .exam-list td.col-topic,
    .hw-teach-list th:first-child,
    .hw-teach-list td:first-child,
    .parents-list th:first-child,
    .parents-list td:first-child {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal;
    }
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .students-list th.col-actions,
    .students-list td.col-actions,
    .join-req-list td.col-actions,
    .exam-list th.col-actions,
    .exam-list td.col-actions,
    .hw-teach-list th.col-actions,
    .hw-teach-list td.col-actions,
    .parents-list th.col-actions,
    .parents-list td.col-actions {
        width: 12.5rem !important;
        min-width: 12.5rem !important;
        max-width: 12.5rem !important;
        white-space: normal;
        vertical-align: top;
        overflow: visible;
    }
    .table-wrap td.col-actions .row-slide {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }
    .table-wrap td.col-actions .row-slide-panel.is-open {
        position: absolute;
        right: 16px;
        left: auto;
        width: min(24rem, calc(100% - 32px));
        max-width: calc(100% - 32px);
        z-index: 40;
        box-sizing: border-box;
    }
    .table-wrap td.col-actions .row-slide-panel,
    .table-wrap td.col-actions .row-slide-in,
    .table-wrap td.col-actions .week-pick,
    .table-wrap td.col-actions .week-pills,
    .table-wrap td.col-actions .week-times,
    .table-wrap td.col-actions .week-time {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .table-wrap td.col-actions .week-times {
        grid-template-columns: 1fr !important;
    }
    .table-wrap td.col-actions .week-time-inputs input[type="time"] {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        max-width: 100%;
    }
}

@container panel (max-width: 860px) {
    .table-wrap td.col-actions .row-slide-panel.is-open {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        right: auto;
        left: auto;
    }
    .table-wrap td.col-actions .week-times {
        grid-template-columns: 1fr !important;
    }
}


@media (min-width: 861px) {
    .table-wrap td.col-actions,
    .table-wrap td.col-sched {
        position: static !important;
    }
    .table-wrap td.col-actions .row-slide-panel.is-open {
        position: absolute !important;
        right: 16px !important;
        left: auto !important;
        width: min(24rem, calc(100% - 32px)) !important;
        max-width: min(24rem, calc(100% - 32px)) !important;
        overflow: auto;
    }
    .table-wrap td.col-actions .week-pills {
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible;
    }
    .table-wrap td.col-actions .week-time {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 861px) {
    .table-wrap td.col-actions .row-slide-panel.is-open .row-slide-in,
    .table-wrap td.col-actions .row-slide-panel.is-open form,
    .table-wrap td.col-actions .row-slide-panel.is-open .week-pick,
    .table-wrap td.col-actions .row-slide-panel.is-open .week-times,
    .table-wrap td.col-actions .row-slide-panel.is-open .week-time,
    .table-wrap td.col-actions .row-slide-panel.is-open .week-time-inputs {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .table-wrap td.col-actions .row-slide-panel.is-open {
        overflow-x: auto;
        overflow-y: auto;
        max-height: min(70vh, 32rem);
    }
}

@media (min-width: 861px) {
    .table-wrap table:not(.stats-grid) {
        table-layout: fixed !important;
        width: 100% !important;
    }
    .table-wrap th,
    .table-wrap td {
        min-width: 0 !important;
        max-width: none !important;
    }
    .groups-list th.col-name,
    .groups-list td.col-name,
    .groups-list th:first-child,
    .groups-list td:first-child { width: 22% !important; }
    .groups-list th.col-count,
    .groups-list td.col-count { width: 10% !important; }
    .groups-list th.col-subject,
    .groups-list td.col-subject { width: 16% !important; }
    .groups-list th.col-sched,
    .groups-list td.col-sched { width: 32% !important; white-space: normal; }
    .groups-list th.col-duty,
    .groups-list td.col-duty { width: 12% !important; }
    .groups-list:has(.col-duty) th.col-name,
    .groups-list:has(.col-duty) td.col-name,
    .groups-list:has(.col-duty) th:first-child,
    .groups-list:has(.col-duty) td:first-child { width: 16% !important; }
    .groups-list:has(.col-duty) th.col-sched,
    .groups-list:has(.col-duty) td.col-sched { width: 24% !important; }
    .students-list th.col-name,
    .students-list td.col-name { width: 28% !important; }
    .students-list th:nth-child(2),
    .students-list td:nth-child(2) { width: 16% !important; }
    .students-list th:nth-child(3),
    .students-list td:nth-child(3) { width: 14% !important; }
    .students-list th:nth-child(4),
    .students-list td:nth-child(4) { width: 22% !important; }
    .exam-list th.col-topic,
    .exam-list td.col-topic { width: 24% !important; }
    .exam-list th:nth-child(2),
    .exam-list td:nth-child(2) { width: 14% !important; }
    .exam-list th:nth-child(3),
    .exam-list td:nth-child(3) { width: 12% !important; }
    .exam-list th:nth-child(4),
    .exam-list td:nth-child(4) { width: 10% !important; }
    .exam-list th:nth-child(5),
    .exam-list td:nth-child(5) { width: 8% !important; }
    .exam-list th:nth-child(6),
    .exam-list td:nth-child(6) { width: 8% !important; }
    .exam-list th:nth-child(7),
    .exam-list td:nth-child(7) { width: 10% !important; }
    .hw-teach-list th.col-topic,
    .hw-teach-list td.col-topic,
    .hw-teach-list th:first-child,
    .hw-teach-list td:first-child { width: 32% !important; }
    .hw-teach-list th:nth-child(2),
    .hw-teach-list td:nth-child(2) { width: 16% !important; }
    .hw-teach-list th:nth-child(3),
    .hw-teach-list td:nth-child(3) { width: 16% !important; }
    .hw-teach-list th:nth-child(4),
    .hw-teach-list td:nth-child(4) { width: 16% !important; }
    .parents-list th:first-child,
    .parents-list td:first-child { width: 22% !important; }
    .parents-list th:nth-child(2),
    .parents-list td:nth-child(2) { width: 12% !important; }
    .parents-list th:nth-child(3),
    .parents-list td:nth-child(3) { width: 20% !important; }
    .parents-list th:nth-child(4),
    .parents-list td:nth-child(4) { width: 14% !important; }
    .parents-list th:nth-child(5),
    .parents-list td:nth-child(5) { width: 12% !important; }
    #dash-today table th:first-child,
    #dash-today table td:first-child { width: 22% !important; }
    #dash-today table th:nth-child(2),
    #dash-today table td:nth-child(2) { width: 16% !important; }
    #dash-today table th:nth-child(3),
    #dash-today table td:nth-child(3) { width: 16% !important; }
    #dash-today table th:nth-child(4),
    #dash-today table td:nth-child(4) { width: 12% !important; }
    .groups-list th.col-actions,
    .groups-list td.col-actions,
    .students-list th.col-actions,
    .students-list td.col-actions,
    .join-req-list td.col-actions,
    .exam-list th.col-actions,
    .exam-list td.col-actions,
    .hw-teach-list th.col-actions,
    .hw-teach-list td.col-actions,
    .parents-list th.col-actions,
    .parents-list td.col-actions,
    #dash-today table th.col-actions,
    #dash-today table td.col-actions {
        width: 20% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .groups-list td.col-actions .row-actions,
    .students-list td.col-actions .row-actions,
    .join-req-list td.col-actions .row-actions,
    .exam-list td.col-actions .row-actions,
    .hw-teach-list td.col-actions .row-actions,
    .parents-list td.col-actions .row-actions {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto;
    }
    body.row-modal-on {
        overflow: hidden;
    }
    .students-list td.col-actions .row-slide-panel,
    .groups-list td.col-actions .row-slide-panel,
    .join-req-list td.col-actions .row-slide-panel {
        display: none;
    }
    .students-list td.col-actions .row-slide-panel.is-open,
    .groups-list td.col-actions .row-slide-panel.is-open,
    .join-req-list td.col-actions .row-slide-panel.is-open,
    .students-list td.col-actions .row-slide-panel.is-modal,
    .groups-list td.col-actions .row-slide-panel.is-modal,
    .join-req-list td.col-actions .row-slide-panel.is-modal {
        display: grid !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0;
        padding: 24px 16px;
        z-index: 240 !important;
        place-items: center;
        grid-template-rows: 1fr !important;
        background: rgba(15, 23, 42, 0.45);
        overflow: auto !important;
    }
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in,
    .students-list td.col-actions .row-slide-panel.is-modal .row-slide-in,
    .groups-list td.col-actions .row-slide-panel.is-modal .row-slide-in,
    .join-req-list td.col-actions .row-slide-panel.is-modal .row-slide-in {
        width: min(52rem, calc(100vw - 48px)) !important;
        max-width: min(52rem, calc(100vw - 48px)) !important;
        max-height: min(80vh, 40rem);
        overflow-x: hidden;
        overflow-y: auto;
        white-space: normal !important;
        padding: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        box-sizing: border-box;
        margin: auto;
    }
    .students-list td.col-actions .row-modal-head,
    .groups-list td.col-actions .row-modal-head,
    .join-req-list td.col-actions .row-modal-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 16px 12px;
        border-bottom: 1px solid var(--line);
    }
    .students-list td.col-actions .row-modal-titles,
    .groups-list td.col-actions .row-modal-titles,
    .join-req-list td.col-actions .row-modal-titles {
        min-width: 0;
    }
    .students-list td.col-actions .row-modal-action,
    .groups-list td.col-actions .row-modal-action,
    .join-req-list td.col-actions .row-modal-action {
        margin: 0;
        font-size: 18px;
        font-weight: 750;
        color: var(--navy);
    }
    .students-list td.col-actions .row-modal-who,
    .groups-list td.col-actions .row-modal-who,
    .join-req-list td.col-actions .row-modal-who {
        margin: 4px 0 0;
        font-size: 15px;
        font-weight: 400;
        color: var(--ink);
        overflow-wrap: anywhere;
    }
    .students-list td.col-actions .row-modal-meta,
    .groups-list td.col-actions .row-modal-meta,
    .join-req-list td.col-actions .row-modal-meta {
        margin: 2px 0 0;
        font-size: 13px;
        color: var(--muted);
    }
    .students-list td.col-actions .row-modal-x,
    .groups-list td.col-actions .row-modal-x,
    .join-req-list td.col-actions .row-modal-x {
        flex: none;
        width: 36px;
        height: 36px;
        margin: -4px -6px 0 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ink);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }
    .students-list td.col-actions .row-modal-x:hover,
    .groups-list td.col-actions .row-modal-x:hover,
    .join-req-list td.col-actions .row-modal-x:hover {
        background: #f1f5f9;
    }
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > form,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > form,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > form,
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > .leave-note,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > .leave-note,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > .leave-note,
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > .group-switch,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > .group-switch,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > .group-switch,
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > .enroll-history-list,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > .enroll-history-list,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > .enroll-history-list,
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > .row-slide-kv,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > .row-slide-kv,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > .row-slide-kv,
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > .enroll-hist-table,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > .enroll-hist-table,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > .enroll-hist-table,
    .students-list td.col-actions .row-slide-panel.is-open .row-slide-in > .row-slide-who,
    .groups-list td.col-actions .row-slide-panel.is-open .row-slide-in > .row-slide-who,
    .join-req-list td.col-actions .row-slide-panel.is-open .row-slide-in > .row-slide-who {
        border: 0;
        padding: 16px;
        margin: 0;
        background: transparent;
        border-radius: 0;
    }
}

@media (max-width: 860px) {
    .row-modal-head {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td:not(.col-actions) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .table-wrap tbody td:not(.col-actions) > .td-label,
    .table-wrap tbody td:not(.col-actions) .td-label,
    .table-wrap tbody td:not(.col-actions) .sched-head-row > .td-label {
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        text-align: left !important;
    }
    .table-wrap tbody td:not(.col-actions) .td-label::after {
        content: ':  ' !important;
        white-space: pre !important;
    }
    .table-wrap tbody td:not(.col-actions) > .td-val,
    .table-wrap tbody td:not(.col-actions) .td-val,
    .table-wrap tbody td:not(.col-actions) .sched-head-row > .td-val,
    .table-wrap tbody td:not(.col-actions) .sched-text,
    .table-wrap tbody td:not(.col-actions) .sched-days {
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: right !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        white-space: normal !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-head-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 0 !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-days {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2px !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-day,
    .table-wrap tbody td:not(.col-actions) .sched-line {
        display: block !important;
        width: 100% !important;
        text-align: right !important;
        white-space: normal !important;
    }
    .table-wrap tbody td.col-sched:has(.sched-edit) {
        flex-wrap: wrap !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-edit {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: 8px !important;
        text-align: left !important;
    }
    .table-wrap tbody td.col-actions:has(.dash-att):not(:has(a.btn)):not(:has([data-row-slide-toggle])) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    .table-wrap tbody td.col-actions:has(.dash-att):not(:has(a.btn)):not(:has([data-row-slide-toggle])) > .td-label {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
    .table-wrap tbody td.col-actions .dash-att {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        white-space: normal;
        text-align: right !important;
    }
}

@container panel (max-width: 860px) {
    .table-wrap tbody td:not(.col-actions) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .table-wrap tbody td:not(.col-actions) > .td-label,
    .table-wrap tbody td:not(.col-actions) .td-label,
    .table-wrap tbody td:not(.col-actions) .sched-head-row > .td-label {
        display: block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-align: left !important;
    }
    .table-wrap tbody td:not(.col-actions) > .td-val,
    .table-wrap tbody td:not(.col-actions) .td-val,
    .table-wrap tbody td:not(.col-actions) .sched-head-row > .td-val,
    .table-wrap tbody td:not(.col-actions) .sched-text,
    .table-wrap tbody td:not(.col-actions) .sched-days {
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        text-align: right !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-head-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 0 !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-days {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-day,
    .table-wrap tbody td:not(.col-actions) .sched-line {
        display: block !important;
        width: 100% !important;
        text-align: right !important;
        white-space: normal !important;
    }
    .table-wrap tbody td.col-sched:has(.sched-edit) {
        flex-wrap: wrap !important;
    }
    .table-wrap tbody td:not(.col-actions) .sched-edit {
        flex: 1 1 100% !important;
        width: 100% !important;
        text-align: left !important;
    }
    .table-wrap tbody td.col-actions:has(.dash-att):not(:has(a.btn)):not(:has([data-row-slide-toggle])) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions [data-row-slide-toggle].btn-danger {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
    }
}

@container panel (max-width: 860px) {
    .table-wrap tbody td.col-actions [data-row-slide-toggle].btn-danger {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
    }
}

.row-slide-who {
    margin: 0;
    font-weight: 750;
    font-size: 16px;
    color: var(--navy);
}
.row-slide-panel,
.row-slide-in,
.row-slide-in table,
.row-slide-in th,
.row-slide-in td {
    white-space: normal !important;
}
.row-slide-cols,
.row-slide-kv,
.enroll-hist-table,
.row-slide-pick {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
@media (min-width: 861px) {
    .row-slide-in .row-slide-cols,
    .row-slide-in .row-slide-cols thead,
    .row-slide-in .row-slide-cols tbody,
    .row-slide-in .row-slide-cols tr,
    .row-slide-in .row-slide-cols th,
    .row-slide-in .row-slide-cols td {
        display: revert !important;
        width: auto;
        max-width: none;
        flex: none;
    }
    .row-slide-in .row-slide-cols {
        display: table !important;
        width: 100%;
    }
    .row-slide-in .row-slide-cols thead { display: table-header-group !important; }
    .row-slide-in .row-slide-cols tbody { display: table-row-group !important; }
    .row-slide-in .row-slide-cols tr { display: table-row !important; }
    .row-slide-in .row-slide-cols th,
    .row-slide-in .row-slide-cols td {
        display: table-cell !important;
        text-align: left !important;
        vertical-align: middle;
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        overflow: visible;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .row-slide-in .row-slide-cols th {
        color: var(--muted);
        font-weight: 650;
        font-size: 13px;
    }
    .row-slide-in .row-slide-cols td {
        font-weight: 400;
        color: var(--ink);
    }
    .row-slide-in .row-slide-cols select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .row-slide-in .group-switch > .btn,
    .row-slide-in .leave-note > .btn,
    .row-slide-in .join-approve > .btn {
        width: auto;
        min-width: 7rem;
        margin: 12px 16px 16px auto;
        display: block;
    }
    .row-slide-in .leave-note textarea {
        width: calc(100% - 32px);
        margin: 0 16px;
        box-sizing: border-box;
    }
}
@media (max-width: 860px) {
    .row-slide-in .row-slide-cols thead {
        display: none !important;
    }
    .row-slide-in .row-slide-cols,
    .row-slide-in .row-slide-cols tbody,
    .row-slide-in .row-slide-cols tr {
        display: block !important;
        width: 100% !important;
    }
    .row-slide-in .row-slide-cols td {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid var(--line);
        text-align: right !important;
    }
    .row-slide-in .row-slide-cols td::before {
        content: attr(data-label) ':  ';
        color: var(--muted);
        font-weight: 650;
        white-space: pre;
        flex: 0 0 auto;
        text-align: left;
    }
    .row-slide-in .row-slide-cols td[data-label=""]::before {
        content: none;
    }
    .row-slide-in .row-slide-cols td.row-slide-full {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }
    .row-slide-in .row-slide-cols td.row-slide-full::before {
        content: none !important;
    }
    .row-slide-in .row-slide-cols select,
    .row-slide-in .leave-note textarea,
    .row-slide-in .group-switch > .btn,
    .row-slide-in .leave-note > .btn,
    .row-slide-in .join-approve > .btn {
        width: 100%;
        box-sizing: border-box;
    }
}
@container panel (max-width: 860px) {
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols thead {
        display: none !important;
    }
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols,
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols tbody,
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols tr {
        display: block !important;
        width: 100% !important;
    }
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols td {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid var(--line);
        text-align: right !important;
    }
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols td::before {
        content: attr(data-label) ':  ';
        color: var(--muted);
        font-weight: 650;
        white-space: pre;
        text-align: left;
    }
    .row-slide-panel:not(.is-modal) .row-slide-in .row-slide-cols td[data-label=""]::before {
        content: none;
    }
}
@media (min-width: 861px) {
    .row-slide-in form.group-switch,
    .row-slide-in form.leave-note,
    .row-slide-in form.join-approve {
        display: block !important;
        overflow: visible;
        max-width: 100%;
    }
    .hw-teach-list td.col-actions .row-actions > form,
    .hw-teach-list td.col-actions form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        box-sizing: border-box;
    }
    .hw-teach-list td.col-actions form .btn,
    .hw-teach-list td.col-actions a.btn,
    .hw-teach-list td.col-actions .btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
    }
}
@media (max-width: 860px) {
    .hw-teach-list td.col-actions .row-actions > form > .btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
}

.row-slide-field {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 0 8px;
    margin: 0;
    background: none;
    border: 0;
    width: 100%;
    box-sizing: border-box;
}
.row-slide-field > span {
    display: block !important;
    color: var(--muted);
    font-weight: 650;
    margin: 0 0 6px;
    text-align: left !important;
    width: 100%;
}
.row-slide-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.table-wrap .row-slide-in .td-label {
    display: none !important;
}

@media (min-width: 861px) {
    .table-wrap .row-slide-in table,
    .table-wrap .row-slide-in .row-slide-cols {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse;
        margin: 0;
        background: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .table-wrap .row-slide-in thead {
        display: table-header-group !important;
    }
    .table-wrap .row-slide-in tbody {
        display: table-row-group !important;
    }
    .table-wrap .row-slide-in tr {
        display: table-row !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .table-wrap .row-slide-in th,
    .table-wrap .row-slide-in td {
        display: table-cell !important;
        width: auto;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        background: none !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
        vertical-align: top;
        white-space: normal !important;
        font-weight: 400 !important;
    }
    .table-wrap .row-slide-in th {
        font-weight: 650 !important;
        color: var(--muted);
    }
    .table-wrap .row-slide-in .enroll-hist-table th:nth-child(1),
    .table-wrap .row-slide-in .enroll-hist-table td:nth-child(1) { width: 28% !important; }
    .table-wrap .row-slide-in .enroll-hist-table th:nth-child(2),
    .table-wrap .row-slide-in .enroll-hist-table td:nth-child(2) { width: 22% !important; }
    .table-wrap .row-slide-in .enroll-hist-table th:nth-child(3),
    .table-wrap .row-slide-in .enroll-hist-table td:nth-child(3) { width: 25% !important; }
    .table-wrap .row-slide-in .enroll-hist-table th:nth-child(4),
    .table-wrap .row-slide-in .enroll-hist-table td:nth-child(4) { width: 25% !important; }
    .table-wrap .row-slide-in .group-switch .row-slide-cols th:nth-child(1),
    .table-wrap .row-slide-in .group-switch .row-slide-cols td:nth-child(1) { width: 26% !important; }
    .table-wrap .row-slide-in .group-switch .row-slide-cols th:nth-child(2),
    .table-wrap .row-slide-in .group-switch .row-slide-cols td:nth-child(2) { width: 18% !important; }
    .table-wrap .row-slide-in .group-switch .row-slide-cols th:nth-child(3),
    .table-wrap .row-slide-in .group-switch .row-slide-cols td:nth-child(3) { width: 22% !important; }
    .table-wrap .row-slide-in .group-switch .row-slide-cols th:nth-child(4),
    .table-wrap .row-slide-in .group-switch .row-slide-cols td:nth-child(4) { width: 34% !important; }
    .table-wrap .row-slide-in .leave-note .row-slide-cols th:nth-child(1),
    .table-wrap .row-slide-in .leave-note .row-slide-cols td:nth-child(1) { width: 34% !important; }
    .table-wrap .row-slide-in .leave-note .row-slide-cols th:nth-child(2),
    .table-wrap .row-slide-in .leave-note .row-slide-cols td:nth-child(2) { width: 33% !important; }
    .table-wrap .row-slide-in .leave-note .row-slide-cols th:nth-child(3),
    .table-wrap .row-slide-in .leave-note .row-slide-cols td:nth-child(3) { width: 33% !important; }
    .table-wrap .row-slide-in td::before {
        content: none !important;
        display: none !important;
    }
    .table-wrap .row-slide-in .row-slide-pick th:first-child,
    .table-wrap .row-slide-in .row-slide-pick td:first-child {
        width: 10% !important;
        text-align: center !important;
        vertical-align: middle;
    }
    .table-wrap .row-slide-in .join-approve > .btn {
        margin-top: 1.5rem !important;
    }
    .table-wrap .row-slide-in .join-reject .row-slide-field > span {
        text-align: center !important;
    }
    .table-wrap .row-slide-in .row-slide-pick th:nth-child(2),
    .table-wrap .row-slide-in .row-slide-pick td:nth-child(2) { width: 22% !important; }
    .table-wrap .row-slide-in .row-slide-pick th:nth-child(3),
    .table-wrap .row-slide-in .row-slide-pick td:nth-child(3) { width: 22% !important; }
    .table-wrap .row-slide-in .row-slide-pick th:nth-child(4),
    .table-wrap .row-slide-in .row-slide-pick td:nth-child(4) { width: 46% !important; }
    .table-wrap .row-slide-in .sched-days {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        text-align: left !important;
        margin: 0 !important;
        max-width: none !important;
    }
    .table-wrap .row-slide-in .sched-day,
    .table-wrap .row-slide-in .sched-line {
        display: block !important;
        text-align: left !important;
        white-space: nowrap;
    }
    .table-wrap .row-slide-in .join-approve,
    .table-wrap .row-slide-in .group-switch,
    .table-wrap .row-slide-in .leave-note {
        padding: 0 0 12px;
    }
}

@media (max-width: 860px) {
    .table-wrap .row-slide-in table,
    .table-wrap .row-slide-in thead,
    .table-wrap .row-slide-in tbody,
    .table-wrap .row-slide-in tr,
    .table-wrap .row-slide-in th,
    .table-wrap .row-slide-in td {
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    .table-wrap .row-slide-in thead {
        display: none !important;
    }
    .table-wrap .row-slide-in table,
    .table-wrap .row-slide-in tbody {
        display: block !important;
        width: 100% !important;
        table-layout: auto !important;
        border: 0 !important;
    }
    .table-wrap .row-slide-in tr {
        display: block !important;
        width: 100% !important;
        padding: 0 0 10px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
    }
    .table-wrap .row-slide-in tr:last-child {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .table-wrap .row-slide-in td {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: none !important;
        padding: 8px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        text-align: right !important;
        font-weight: 400 !important;
    }
    .table-wrap .row-slide-in td:last-child {
        border-bottom: 0 !important;
    }
    .table-wrap .row-slide-in td.row-slide-full {
        display: block !important;
        width: 100% !important;
        padding: 10px 0 !important;
        text-align: left !important;
    }
    .table-wrap .row-slide-in td.row-slide-full::before {
        content: none !important;
        display: none !important;
    }
    .table-wrap .row-slide-in td.row-slide-full select {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .table-wrap .row-slide-in td::before {
        content: attr(data-label) ':  ' !important;
        color: var(--muted);
        font-weight: 650;
        white-space: pre;
        flex: 0 0 auto;
        text-align: left;
    }
    .table-wrap .row-slide-in td[data-label=""] {
        justify-content: flex-start !important;
    }
    .table-wrap .row-slide-in td[data-label=""]::before {
        content: none !important;
        display: none !important;
    }
    .table-wrap .row-slide-in .td-val {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        margin: 0;
        max-width: none;
    }
    .table-wrap .row-slide-in .sched-days {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 2px !important;
        text-align: right !important;
        margin: 0 !important;
    }
    .table-wrap .row-slide-in .sched-day {
        display: block !important;
        text-align: right !important;
        white-space: normal !important;
    }
    .table-wrap .row-slide-in .row-slide-field {
        padding: 10px 0 8px;
    }
}

@container panel (max-width: 860px) {
    .table-wrap .row-slide-in table,
    .table-wrap .row-slide-in tbody,
    .table-wrap .row-slide-in tr,
    .table-wrap .row-slide-in th,
    .table-wrap .row-slide-in td {
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    .table-wrap .row-slide-in .td-label {
        display: none !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in thead {
        display: none !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in table,
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in tbody {
        display: block !important;
        width: 100% !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in tr {
        display: block !important;
        width: 100% !important;
        padding: 0 0 10px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in td {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 8px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        font-weight: 400 !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in td.row-slide-full {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in td.row-slide-full::before {
        content: none !important;
        display: none !important;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in td.row-slide-full select {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in td::before {
        content: attr(data-label) ':  ' !important;
        color: var(--muted);
        font-weight: 650;
        white-space: pre;
        text-align: left;
    }
    .table-wrap .row-slide-panel:not(.is-modal) .row-slide-in td[data-label=""]::before {
        content: none !important;
    }
}

.hist-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 10px 16px 16px;
    margin: 0;
    border-top: 1px solid var(--line);
}
.hist-pager .list-pager-go.is-on {
    color: var(--navy);
}
@media (min-width: 861px) {
    .table-wrap .row-slide-in .enroll-hist-table tbody tr.is-off-page {
        display: none !important;
    }
    .students-list td.col-actions .row-slide-panel.is-modal .row-slide-in:has(.enroll-hist-table),
    .groups-list td.col-actions .row-slide-panel.is-modal .row-slide-in:has(.enroll-hist-table),
    .join-req-list td.col-actions .row-slide-panel.is-modal .row-slide-in:has(.enroll-hist-table) {
        overflow: hidden !important;
        max-height: none;
    }
}
@media (max-width: 860px) {
    .hist-pager {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions > .td-label,
    .table-wrap tbody td.col-actions .td-label,
    .table-wrap tbody td.col-actions .act-head-row > .td-label {
        display: none !important;
    }
    .table-wrap tbody td.col-actions::before {
        content: none !important;
        display: none !important;
    }
}
@container panel (max-width: 860px) {
    .table-wrap tbody td.col-actions > .td-label,
    .table-wrap tbody td.col-actions .td-label,
    .table-wrap tbody td.col-actions .act-head-row > .td-label {
        display: none !important;
    }
    .table-wrap tbody td.col-actions::before {
        content: none !important;
        display: none !important;
    }
}

.join-reject .row-slide-field > span {
    text-align: center !important;
    width: 100%;
}
.row-slide-in .join-approve > .btn {
    margin-top: 1.5rem;
}

.exam-wait-long { display: none; }

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn,
    .table-wrap tbody td.row-actions .btn,
    .table-wrap tbody td.row-actions a.btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
@container panel (max-width: 860px) {
    .table-wrap tbody td.col-actions .btn,
    .table-wrap tbody td.col-actions a.btn,
    .table-wrap tbody td.row-actions .btn,
    .table-wrap tbody td.row-actions a.btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (max-width: 860px) {
    .exam-wait-short { display: none !important; }
    .exam-wait-long { display: inline !important; }
    .table-wrap table.st-notices-list tbody td.col-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-label {
        display: none !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-val,
    .table-wrap table.st-notices-list tbody td.col-actions .btn,
    .table-wrap table.st-notices-list tbody td.col-actions a.btn {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: center;
        box-sizing: border-box;
        color: #fff !important;
        background: var(--navy);
    }
    .table-wrap table.exam-student-list tbody td.col-actions .td-label,
    .table-wrap table.exam-student-list tbody td.col-actions .act-head-row > .td-label {
        display: none !important;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack,
    .table-wrap table.exam-student-list tbody td.col-actions .td-val.exam-act-stack {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack:not(:has(.btn ~ .btn)) > .btn,
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack:not(:has(.btn ~ .btn)) > a.btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        justify-content: center;
        box-sizing: border-box;
    }
}
@container panel (max-width: 860px) {
    .exam-wait-short { display: none !important; }
    .exam-wait-long { display: inline !important; }
    .table-wrap table.st-notices-list tbody td.col-actions .td-label {
        display: none !important;
    }
    .table-wrap table.st-notices-list tbody td.col-actions .td-val,
    .table-wrap table.st-notices-list tbody td.col-actions .btn,
    .table-wrap table.st-notices-list tbody td.col-actions a.btn {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: center;
        color: #fff !important;
        background: var(--navy);
    }
    .table-wrap table.exam-student-list tbody td.col-actions .td-label {
        display: none !important;
    }
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack:not(:has(.btn ~ .btn)) > .btn,
    .table-wrap table.exam-student-list tbody td.col-actions .exam-act-stack:not(:has(.btn ~ .btn)) > a.btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 860px) {
    .table-wrap tbody td.col-actions > .row-actions,
    .table-wrap tbody td.col-actions > .td-val,
    .table-wrap tbody td.col-actions .td-val.row-actions,
    .table-wrap tbody td.col-actions .exam-act-stack,
    .table-wrap tbody td.row-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .table-wrap tbody td.col-actions > .btn,
    .table-wrap tbody td.col-actions > a.btn,
    .table-wrap tbody td.col-actions .row-actions > .btn,
    .table-wrap tbody td.col-actions .row-actions > a.btn,
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.col-actions [data-row-slide-toggle],
    .table-wrap tbody td.col-actions .exam-act-stack > .btn,
    .table-wrap tbody td.col-actions .exam-act-stack > a.btn,
    .table-wrap tbody td.row-actions > .btn,
    .table-wrap tbody td.row-actions > a.btn,
    .table-wrap tbody td.row-actions > form {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.25;
    }
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.row-actions > form {
        display: flex !important;
        align-items: stretch !important;
    }
    .table-wrap tbody td.col-actions .row-actions > form > .btn,
    .table-wrap tbody td.row-actions > form > .btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .table-wrap tbody td.col-actions .row-slide-in .btn,
    .table-wrap tbody td.col-actions .row-slide-panel .btn {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .table-wrap tbody td.col-actions [data-row-slide-toggle].btn-danger {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
@container panel (max-width: 860px) {
    .table-wrap tbody td.col-actions > .row-actions,
    .table-wrap tbody td.col-actions > .td-val,
    .table-wrap tbody td.col-actions .td-val.row-actions,
    .table-wrap tbody td.col-actions .exam-act-stack,
    .table-wrap tbody td.row-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .table-wrap tbody td.col-actions > .btn,
    .table-wrap tbody td.col-actions > a.btn,
    .table-wrap tbody td.col-actions .row-actions > .btn,
    .table-wrap tbody td.col-actions .row-actions > a.btn,
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.col-actions [data-row-slide-toggle],
    .table-wrap tbody td.col-actions .exam-act-stack > .btn,
    .table-wrap tbody td.col-actions .exam-act-stack > a.btn,
    .table-wrap tbody td.row-actions > .btn,
    .table-wrap tbody td.row-actions > a.btn,
    .table-wrap tbody td.row-actions > form {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.25;
    }
    .table-wrap tbody td.col-actions .row-actions > form,
    .table-wrap tbody td.row-actions > form {
        display: flex !important;
        align-items: stretch !important;
    }
    .table-wrap tbody td.col-actions .row-actions > form > .btn,
    .table-wrap tbody td.row-actions > form > .btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .table-wrap tbody td.col-actions .row-slide-in .btn,
    .table-wrap tbody td.col-actions .row-slide-panel .btn {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .table-wrap tbody td.col-actions [data-row-slide-toggle].btn-danger {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

.table-wrap .btn:not(.dash-att.is-off),
.table-wrap a.btn,
.td-val .btn:not(.dash-att.is-off),
.td-val a.btn,
.row-actions .btn:not(.dash-att.is-off),
.exam-act-stack .btn,
.export-tools-btns > .btn,
.slide-add-bar > .btn,
.list-bar > .btn {
    color: #fff !important;
}

.notice-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 10, 18, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.notice-modal {
    position: relative;
    width: min(440px, calc(100% - 28px));
    max-height: min(76vh, 560px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(48, 70, 94, 0.92), rgba(22, 40, 60, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 36px 20px 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
}
.notice-modal-x-form {
    position: absolute;
    top: 8px;
    right: 10px;
    margin: 0;
    z-index: 2;
}
.notice-modal-x {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.notice-modal > .notice-modal-x {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
}
.notice-modal h2 {
    margin: 0 36px 6px 0;
    font-size: 1.15rem;
    color: #fff;
}
.notice-modal-from,
.notice-modal .muted {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
}
.notice-modal-photo {
    margin: 0 0 12px;
    text-align: center;
}
.notice-modal-photo img {
    display: block;
    margin: 0 auto;
    max-width: min(100%, 220px);
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
.notice-modal-body {
    line-height: 1.55;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}
.notice-modal-ok {
    margin: 18px 0 0;
}
.notice-modal-ok .btn-primary {
    min-width: 120px;
}
.notice-modal-center {
    text-align: center;
    padding: 40px 24px 24px;
}
.notice-modal-center h2 {
    margin: 0 0 10px;
}
.notice-modal-center .notice-modal-body {
    margin: 0 auto;
    max-width: 22em;
}
.notice-modal-center .notice-modal-ok {
    text-align: center;
}
.notice-modal-center .notice-modal-ok .btn-primary {
    display: inline-block;
}
@media (max-width: 720px) {
    .notice-modal-photo img {
        max-width: min(100%, 160px);
        max-height: 96px;
    }
}

.pwa-mask {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 70;
    display: block;
    padding: 0;
    background: none;
    pointer-events: none;
}
.pwa-mask[hidden] { display: none !important; }
.pwa-banner {
    position: relative;
    pointer-events: auto;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 16px 12px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.pwa-banner-title {
    margin: 0 28px 4px 0;
    font-weight: 700;
    font-size: 15px;
}
.pwa-banner-text,
.pwa-ios-hint {
    margin: 0 28px 10px 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}
.pwa-banner-act {
    display: flex;
    align-items: center;
}
.pwa-banner #pwa-install-btn {
    background: #fff !important;
    color: var(--navy) !important;
    border: 0;
}
.pwa-banner-x {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
@media (display-mode: standalone), (display-mode: fullscreen) {
    .pwa-mask { display: none !important; }
}
