:root {
    --bg: #edf2f7;
    --panel: #ffffff;
    --text: #152033;
    --muted: #617087;
    --line: #d8e2ee;
    --accent: #1b5cff;
    --accent-strong: #1137a6;
    --ok: #187943;
    --warn: #bd7400;
    --danger: #bf3343;
    --ink-soft: #23324d;
    --navy: #10213d;
    --sky: #e9f2ff;
    --glow: rgba(27, 92, 255, 0.16);
    --pop-ink: #2d3142;
    --pop-yellow: #ffdf6d;
    --pop-orange: #ff8a5c;
    --pop-pink: #ff6b8b;
    --pop-blue: #47a3ff;
    --pop-green: #2cd483;
    --pop-purple: #8b5cf6;
    --pop-bg: #f2f6fc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "BIZ UDPGothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(27, 92, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #f6f9fc 0%, var(--bg) 48%, #eef3f8 100%);
    color: var(--text);
}

body.student-mode {
    --student-booking-sticky-top: 78px;
    font-family: "M PLUS Rounded 1c", "BIZ UDPGothic", "Yu Gothic UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(71, 163, 255, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(315deg, rgba(255, 223, 109, 0.18) 25%, transparent 25%) 0 0 / 28px 28px,
        var(--pop-bg);
    color: var(--pop-ink);
}

body.student-mode .page {
    max-width: 1320px;
}

body.student-mode .app-header {
    border: 3px solid var(--pop-ink);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
        linear-gradient(135deg, var(--pop-yellow), var(--pop-orange), var(--pop-pink));
    box-shadow: 6px 6px 0 var(--pop-ink);
    backdrop-filter: none;
}

body.student-mode .brand-block h1 {
    color: var(--pop-ink);
    font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
    font-size: clamp(24px, 2.6vw, 34px);
    letter-spacing: 0;
}

body.student-mode .brand-kicker,
body.student-mode .section-kicker {
    color: var(--pop-orange);
    font-weight: 900;
}

body.student-mode .brand-kicker::before,
body.student-mode .section-kicker::before {
    height: 3px;
    border-radius: 999px;
    background: var(--pop-orange);
}

body.student-mode .student-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border: 3px solid var(--pop-ink);
    border-radius: 999px;
    background: var(--pop-orange);
    color: #fff;
    box-shadow: 4px 4px 0 var(--pop-ink);
    font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
    font-size: 24px;
    vertical-align: middle;
}

body.student-mode .account-chip {
    background: var(--pop-yellow);
    border: 3px solid var(--pop-ink);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--pop-ink);
    font-weight: 900;
}

body.student-mode .nav-link {
    background: #fff;
    border: 3px solid var(--pop-ink);
    border-radius: 16px;
    color: var(--pop-ink);
    box-shadow: 3px 3px 0 var(--pop-ink);
    font-weight: 900;
}

body.student-mode .nav-link.active {
    background: var(--pop-blue);
    color: #fff;
    box-shadow: 3px 3px 0 var(--pop-ink);
}

body.student-mode .panel {
    border: 3px solid var(--pop-ink);
    border-radius: 22px;
    box-shadow: 6px 6px 0 var(--pop-ink);
}

body.student-mode .student-focus-card {
    background:
        linear-gradient(135deg, var(--pop-yellow) 0%, var(--pop-orange) 52%, var(--pop-pink) 100%);
    color: var(--pop-ink);
}

body.student-mode .next-booking-card {
    background: #fff;
    color: #fff;
}

body.student-mode .next-booking-card .section-kicker,
body.student-mode .next-booking-card .muted {
    color: #667085;
}

body.student-mode .next-booking-card h4,
body.student-mode .next-booking-card .next-booking-time,
body.student-mode .next-booking-card .next-booking-slot {
    color: var(--pop-ink);
}

body.student-mode .next-booking-card .section-kicker::before {
    background: var(--pop-blue);
}

body.student-mode .course-summary-card {
    overflow: hidden;
    background: #fff;
}

body.student-mode .course-summary-card::before,
body.student-mode .student-booking-panel::before,
body.student-mode .student-learning-shell::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--pop-pink), var(--pop-yellow), var(--pop-green), var(--pop-blue));
}

body.student-mode .course-summary-card::before {
    position: absolute;
}

body.student-mode .student-booking-panel,
body.student-mode .student-learning-shell {
    position: relative;
    overflow: hidden;
    background: #fff;
}

body.student-mode .student-booking-panel .booking-calendar th {
    background: #fff6d8;
    color: var(--pop-ink);
    border-bottom: 3px solid var(--pop-ink);
}

body.student-mode .calendar-book-btn {
    background: var(--pop-orange);
    border: 3px solid var(--pop-ink);
    box-shadow: 4px 4px 0 var(--pop-ink);
    color: #fff;
}

body.student-mode a.secondary,
body.student-mode button.secondary {
    background: #fff;
    border: 3px solid var(--pop-ink);
    border-radius: 14px;
    box-shadow: 3px 3px 0 var(--pop-ink);
    color: var(--pop-ink);
}

body.student-mode .lesson-summary-panel {
    background: #fff;
}

body.student-mode .lesson-card {
    border-radius: 20px;
    border: 3px solid var(--pop-ink);
    background: #fff;
    box-shadow: 5px 5px 0 var(--pop-ink);
}

body.student-mode .lesson-card.is-focus {
    border-color: var(--pop-blue);
    box-shadow: 0 0 0 5px rgba(71, 163, 255, 0.16), 5px 5px 0 var(--pop-ink);
}

body.student-mode .student-learning-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

body.student-mode .student-course-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 3px solid var(--pop-ink);
    background: var(--pop-yellow);
    color: var(--pop-ink);
    box-shadow: 3px 3px 0 var(--pop-ink);
    font-weight: 800;
    white-space: nowrap;
}

body.student-mode .problem-canvas {
    border-radius: 22px;
    border: 3px solid var(--pop-ink);
    box-shadow: 5px 5px 0 var(--pop-ink);
}

body.student-mode .problem-hotspot {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.student-mode .problem-hotspot span {
    display: none;
}

body.student-mode .student-focus-card h3,
body.student-mode .course-summary-card h4,
body.student-mode .student-learning-shell h3,
body.student-mode .student-learning-shell h4,
body.student-mode .booking-panel h3 {
    font-family: "M PLUS Rounded 1c", "BIZ UDPGothic", sans-serif;
    font-weight: 900;
    color: var(--pop-ink);
}

body.student-mode table {
    border-collapse: separate;
    border-spacing: 0;
}

body.student-mode th,
body.student-mode td {
    border-bottom: 2px solid rgba(45, 49, 66, 0.14);
}

body.student-mode .calendar-cell-form,
body.student-mode .calendar-state {
    border: 3px solid var(--pop-ink);
    border-radius: 16px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--pop-ink);
}

body.student-mode .calendar-state.booked {
    background: #eafff4;
    color: var(--pop-ink);
}

body.student-mode .calendar-state.locked,
body.student-mode .calendar-state.full,
body.student-mode .calendar-state.closed,
body.student-mode .calendar-state.past,
body.student-mode .calendar-state.none {
    color: var(--pop-ink);
}

body.student-mode .header-logout {
    border: 3px solid var(--pop-ink);
    box-shadow: 3px 3px 0 var(--pop-ink);
}

body.student-mode .brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.student-mode .student-brand-logo {
    width: 58px;
    height: 58px;
    border: 3px solid var(--pop-ink);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 4px 4px 0 var(--pop-ink);
}

body.student-mode .student-roadmap-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 34px;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 110%, rgba(255, 255, 255, 0.38), transparent 32%),
        linear-gradient(135deg, var(--pop-yellow) 0%, var(--pop-orange) 44%, var(--pop-pink) 100%);
}

body.student-mode .student-roadmap-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 360px;
    height: 260px;
    border-radius: 48% 52% 0 0;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(-12deg);
}

body.student-mode .roadmap-copy,
body.student-mode .roadmap-status-card {
    position: relative;
    z-index: 1;
}

body.student-mode .roadmap-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 9px 18px;
    border: 3px solid var(--pop-ink);
    border-radius: 999px;
    background: #fffdf4;
    color: var(--pop-orange);
    box-shadow: 4px 4px 0 var(--pop-ink);
    font-weight: 900;
}

body.student-mode .roadmap-copy h2 {
    margin: 0 0 10px;
    font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.16;
    color: #fff;
    text-shadow:
        2px 2px 0 var(--pop-ink),
        -1px -1px 0 var(--pop-ink),
        1px -1px 0 var(--pop-ink),
        -1px 1px 0 var(--pop-ink);
}

body.student-mode .roadmap-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--pop-ink);
    font-weight: 900;
    line-height: 1.9;
}

body.student-mode .roadmap-status-card {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 8px 8px 0 rgba(45, 49, 66, 0.18);
}

body.student-mode .roadmap-status-card strong,
body.student-mode .roadmap-status-card span {
    display: block;
}

body.student-mode .roadmap-status-card strong {
    margin: 8px 0 4px;
    font-size: 18px;
    color: var(--pop-ink);
}

body.student-mode .motivation-meter {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    color: var(--pop-ink);
    font-weight: 900;
}

body.student-mode .motivation-meter strong {
    margin: 0;
    color: var(--pop-pink);
}

body.student-mode .meter-track {
    height: 16px;
    margin-top: 8px;
    border: 3px solid var(--pop-ink);
    border-radius: 999px;
    background: #e9edf5;
    overflow: hidden;
}

body.student-mode .meter-track span {
    display: block;
    width: 80%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pop-pink), var(--pop-orange));
}

body.student-mode .course-track-card {
    position: relative;
    margin-bottom: 34px;
    padding: 36px 34px 28px;
    background: #fff;
}

body.student-mode .course-track-label {
    position: absolute;
    top: -22px;
    left: -12px;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 9px;
    color: #fff;
    box-shadow: 4px 4px 0 rgba(45, 49, 66, 0.18);
    font-weight: 900;
    transform: rotate(-2deg);
}

body.student-mode .course-track-current .course-track-label {
    background: var(--pop-pink);
}

body.student-mode .course-track-completed .course-track-label {
    background: var(--pop-green);
}

body.student-mode .course-track-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

body.student-mode .course-track-row,
body.student-mode .completed-course-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 10px;
}

body.student-mode .completed-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
}

body.student-mode .completed-course-item {
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
}

body.student-mode .course-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 28px;
    background: #fffbe4;
    box-shadow: inset 0 0 0 2px rgba(255, 223, 109, 0.55);
}

body.student-mode .course-icon-done {
    width: 52px;
    height: 52px;
    border: 3px solid var(--pop-ink);
    border-radius: 999px;
    font-size: 22px;
}

body.student-mode .course-track-main h3,
body.student-mode .completed-course-item h3 {
    margin: 6px 0 4px;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--pop-ink);
}

body.student-mode .status-pill,
body.student-mode .done-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

body.student-mode .status-pill {
    color: var(--pop-orange);
    background: #fff5ec;
}

body.student-mode .done-pill {
    color: var(--pop-green);
    background: #edfff6;
}

body.student-mode .course-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.student-mode .course-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 3px solid var(--pop-ink);
    border-radius: 13px;
    color: #fff;
    box-shadow: 4px 4px 0 var(--pop-ink);
    font-weight: 900;
}

body.student-mode .material-action {
    background: var(--pop-blue);
}

body.student-mode .problem-action {
    background: var(--pop-green);
}

body.student-mode .course-action-disabled {
    background: #fff7df;
    color: var(--pop-ink);
}

body.student-mode .course-pick-btn {
    border: 3px solid var(--pop-ink);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pop-yellow), #fff1b8);
    color: var(--pop-ink);
    box-shadow: 4px 4px 0 var(--pop-ink);
    font-weight: 900;
}

body.student-mode .lesson-complete-panel {
    border-color: var(--pop-ink);
    box-shadow: 5px 5px 0 var(--pop-ink);
    background: linear-gradient(180deg, #fff8ec, #ffffff);
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px 24px 36px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 20px 16px;
    border: 1px solid rgba(16, 33, 61, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(16, 33, 61, 0.08);
}

.brand-block h1 {
    margin: 4px 0 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: 0.04em;
    color: var(--navy);
}

.brand-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #54709d;
}

.brand-kicker::before,
.section-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, #7ca8ff, transparent);
}

.app-header-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-chip {
    display: grid;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f8fd, #eef4fb);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.account-chip strong {
    font-size: 14px;
}

.account-chip span {
    font-size: 12px;
    color: var(--muted);
}

.header-logout {
    border-radius: 999px;
}

.app-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
    display: none;
}

.mobile-menu-check,
.mobile-menu-button,
.mobile-menu-backdrop,
.mobile-menu-panel {
    display: none;
}

.flash {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.flash-success {
    background: #eefaf3;
    border-color: #cfead9;
    color: var(--ok);
}

.must-change-password-banner {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #f5c56f;
    background: linear-gradient(180deg, #fff8e9 0%, #fffdf7 100%);
    color: #7b4d00;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.must-change-password-banner strong {
    font-weight: 800;
}

.must-change-password-banner a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flash-error {
    background: #fff1f1;
    border-color: #f1cbcb;
    color: var(--danger);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 34px rgba(20, 38, 74, 0.05);
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat strong {
    font-size: 28px;
}

.muted {
    color: var(--muted);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #4e6180;
    font-weight: 700;
    white-space: nowrap;
    background: #f4f7fb;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    background: #edf3ff;
    color: #1b4ecb;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(27, 92, 255, 0.09);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 12px 24px var(--glow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.readonly-note {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.95rem;
}

.plan-operational-field input[readonly],
.plan-operational-field input:disabled {
    background: #f3f6fb;
    color: var(--muted);
    border-style: dashed;
}

.school-create-form-grid input[name="school_code"] {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.school-form-helper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.school-form-helper-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.school-form-helper-card strong {
    color: #15305b;
}

.school-form-helper-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--muted);
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

button.secondary {
    background: #edf2fb;
    color: var(--text);
}

a.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px 14px;
    background: #edf2fb;
    color: var(--text);
    font-weight: 700;
}

a.success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px 14px;
    background: #ebf8ef;
    color: #137a38;
    font-weight: 700;
}

button.warn {
    background: #fff6e6;
    color: var(--warn);
}

button.danger {
    background: #fff0f0;
    color: var(--danger);
}

.table-wrap {
    overflow-x: auto;
}

.table-empty-state {
    display: grid;
    gap: 6px;
    padding: 22px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px dashed #d7e3f6;
}

.table-empty-state strong {
    color: #15305b;
}

.table-empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pill-confirmed,
.pill-completed,
.pill-paid {
    background: #e8f6ee;
    color: var(--ok);
}

.pill-temporary,
.pill-pending {
    background: #fff4df;
    color: var(--warn);
}

.pill-cancelled,
.pill-failed,
.pill-expired,
.pill-unpaid {
    background: #fdecec;
    color: var(--danger);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.panel-head-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.inline-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-filter-form input[type="text"],
.inline-filter-form input[type="month"],
.inline-filter-form select {
    min-height: 40px;
}

.analytics-kpi-grid .panel strong {
    font-size: 22px;
}

.analytics-note-panel {
    align-content: start;
}

.analytics-grid {
    row-gap: 24px;
    margin-top: 18px;
}

.analytics-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.analytics-insight-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 26px rgba(19, 48, 91, 0.05);
}

.analytics-insight-card strong {
    color: #183055;
    font-size: 17px;
}

.analytics-insight-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.analytics-insight-card.tone-success {
    border-color: #cfe6d8;
    background: linear-gradient(180deg, #f5fff8 0%, #ffffff 100%);
}

.analytics-insight-card.tone-warning {
    border-color: #f0dfcf;
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.analytics-insight-card.tone-info {
    border-color: #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.analytics-mini-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.analytics-mini-kpi-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.analytics-mini-kpi-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbe6df;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.analytics-mini-kpi-card span {
    color: #5b6d87;
    font-size: 12px;
    font-weight: 800;
}

.analytics-mini-kpi-card strong {
    color: #15305b;
    font-size: 24px;
    line-height: 1.2;
}

.analytics-trend-panel {
    display: grid;
    gap: 16px;
}

.analytics-trend-list {
    display: grid;
    gap: 12px;
}

.analytics-trend-row {
    display: grid;
    gap: 8px;
}

.analytics-trend-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.analytics-trend-meta strong {
    color: #183055;
    font-size: 14px;
}

.analytics-trend-meta span {
    color: #5b6d87;
    font-size: 12px;
    font-weight: 800;
}

.analytics-trend-bar-track {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #edf3fb;
    overflow: hidden;
}

.analytics-trend-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.analytics-trend-bar-fill.tone-sales {
    background: linear-gradient(90deg, #ff9f5a 0%, #ff6b8a 100%);
}

.analytics-trend-bar-fill.tone-students {
    background: linear-gradient(90deg, #54c7a5 0%, #2f8fdb 100%);
}

.analytics-line-chart {
    display: grid;
    gap: 12px;
}

.analytics-line-chart svg {
    width: 100%;
    height: auto;
    min-height: 220px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(237, 243, 251, 0.75) 0 1px, transparent 1px) 0 24px / 100% 48px,
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7fb;
}

.analytics-axis {
    stroke: #b9c8da;
    stroke-width: 1.5;
}

.analytics-axis-label,
.analytics-month-label {
    fill: #5b6d87;
    font-size: 12px;
    font-weight: 800;
}

.analytics-month-label {
    text-anchor: middle;
}

.analytics-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-line-sales {
    stroke: #ff7a59;
}

.analytics-line-students {
    stroke: #2f8fdb;
}

.analytics-point {
    stroke: #ffffff;
    stroke-width: 2;
}

.analytics-point-sales {
    fill: #ff7a59;
}

.analytics-point-students {
    fill: #2f8fdb;
}

.analytics-chart-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.analytics-chart-values span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f2f7fb;
    color: #405672;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.school-admin-summary-grid {
    margin-bottom: 18px;
}

.school-launch-panel {
    margin-bottom: 18px;
}

.school-launch-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.panel.panel-focus-target {
    scroll-margin-top: 110px;
}

.panel.panel-focus-target.is-focus-highlight {
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.24), 0 22px 44px rgba(15, 23, 42, 0.14);
    transition: box-shadow 0.25s ease;
}

.owner-settings-summary-grid {
    margin-top: 18px;
}

.panel-sub-preview {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.95);
}

.panel-sub-preview strong {
    display: block;
    margin-bottom: 8px;
}

.slot-list,
.lesson-list {
    display: grid;
    gap: 12px;
}

.lesson-summary-stack {
    display: grid;
    gap: 16px;
}

.lesson-summary-panel {
    padding-top: 16px;
}

.problem-viewer {
    display: grid;
    gap: 12px;
}

.problem-viewer-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.problem-viewer-head h5 {
    margin: 0 0 4px;
    font-size: 18px;
}

.problem-viewer-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.problem-page-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.problem-page-tab {
    border: 1px solid #cfe0ff;
    background: #fff;
    color: #2a4d7c;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.problem-page-tab.is-active {
    background: #1f67d8;
    border-color: #1f67d8;
    color: #fff;
}

.problem-page-panel {
    display: grid;
    gap: 12px;
}

.problem-page-panel[hidden] {
    display: none !important;
}

.problem-canvas {
    position: relative;
    width: min(100%, var(--problem-width));
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.problem-canvas img {
    display: block;
    width: 100%;
    height: auto;
}

.problem-hotspot,
.author-hotspot {
    position: absolute;
    border: 2px solid rgba(27, 92, 255, 0.9);
    background: rgba(27, 92, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
}

.problem-hotspot {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.author-hotspot {
    border: 3px solid rgba(35, 176, 72, 0.92) !important;
    background: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(35, 176, 72, 0.18);
    transition: box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible;
}

.author-hotspot:hover,
.author-hotspot.is-selected {
    background: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(35, 176, 72, 0.16), 0 0 0 3px rgba(35, 176, 72, 0.16);
}

.author-hotspot.is-selected {
    border-color: #0c8f35 !important;
}

.problem-hotspot > span,
.author-hotspot > span:not(.author-hotspot-handle) {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(16, 33, 61, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.problem-hotspot > span {
    display: none !important;
}

.problem-list-index-panel {
    display: grid;
    gap: 18px;
}

.problem-list-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.problem-list-index-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(16, 33, 61, 0.08);
}

.problem-list-index-card:hover {
    border-color: var(--green);
    transform: translateY(-1px);
}

.problem-list-index-card small {
    color: var(--muted);
    font-weight: 800;
}

.problem-list-index-card.is-done {
    background: #f4fff7;
}

.author-hotspot-handle {
    position: absolute;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: #0c8f35;
    box-shadow: 0 2px 6px rgba(16, 33, 61, 0.22);
    pointer-events: auto;
    z-index: 3;
}

.author-hotspot-handle[data-handle="nw"] {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: nwse-resize;
}

.author-hotspot-handle[data-handle="ne"] {
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
    cursor: nesw-resize;
}

.author-hotspot-handle[data-handle="sw"] {
    top: 100%;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: nesw-resize;
}

.author-hotspot-handle[data-handle="se"] {
    top: 100%;
    left: 100%;
    transform: translate(-50%, -50%);
    cursor: nwse-resize;
}

.problem-viewer-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #23406b;
    font-size: 13px;
    line-height: 1.8;
}

.problem-step-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.problem-step-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.problem-step-list {
    display: grid;
    gap: 10px;
}

.problem-step-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5ef;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.problem-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(16, 33, 61, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.problem-step-copy {
    display: grid;
    gap: 2px;
}

.problem-step-copy strong {
    color: #183055;
    font-size: 13px;
}

.problem-step-copy small {
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.6;
}

.problem-overlay,
.problem-authoring-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 33, 61, 0.42);
    z-index: 50;
}

.problem-instruction-modal,
.problem-authoring-dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.problem-instruction-modal {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
}

.problem-authoring-dialog {
    display: grid;
    place-items: center;
}

.problem-instruction-modal[hidden],
.problem-overlay[hidden],
.problem-authoring-dialog[hidden],
.problem-authoring-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.problem-instruction-card {
    width: min(560px, calc(100vw - 32px));
    max-height: min(80vh, 760px);
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(16, 33, 61, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.problem-instruction-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--line);
}

.problem-instruction-head h6 {
    margin: 0;
    font-size: 18px;
}

.problem-instruction-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: #1f67d8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.problem-close {
    background: #eef3fb;
    color: var(--ink-soft);
}

.problem-instruction-body {
    padding: 18px 20px 22px;
    line-height: 1.8;
    white-space: normal;
    overflow: auto;
}

.problem-instruction-body a {
    color: #1f67d8;
    font-weight: 700;
    text-decoration: underline;
    word-break: break-all;
}

.problem-authoring-panel {
    display: grid;
    gap: 16px;
}

.problem-tool-item-list {
    display: grid;
    gap: 10px;
}

.problem-tool-asset-sections {
    display: grid;
    gap: 14px;
}

.problem-tool-asset-section {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.problem-tool-asset-heading {
    margin: 0;
}

.problem-tool-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.problem-tool-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.problem-tool-item-copy strong,
.problem-tool-item-copy small {
    overflow-wrap: anywhere;
}

.problem-copy-button {
    cursor: pointer;
}

.problem-authoring-import {
    display: grid;
    gap: 10px;
}

.problem-authoring-register-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.problem-authoring-export textarea {
    min-height: 120px;
}

.problem-authoring-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid #d8e7f4;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfffc 0%, #ffffff 100%);
}

.problem-authoring-selection-bar strong {
    color: #183055;
    font-size: 14px;
}

.problem-authoring-selection-bar .muted {
    margin: 0;
    font-size: 13px;
}

.problem-authoring-canvas {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: auto;
    width: 100%;
    max-width: min(100%, var(--author-image-width, 800px));
    margin-inline: auto;
    aspect-ratio: var(--author-image-width-num, 800) / var(--author-image-height-num, 1000);
    background: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    user-select: none;
}

.problem-authoring-drawing-box {
    position: absolute;
    border: 2px dashed var(--danger);
    background: rgba(191, 51, 67, 0.18);
    pointer-events: none;
}

.problem-authoring-dialog {
    pointer-events: none;
}

.problem-authoring-dialog > * {
    pointer-events: auto;
}

.problem-authoring-dialog {
    width: min(520px, calc(100vw - 32px));
    margin: auto;
    padding: 24px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(16, 33, 61, 0.18);
    display: grid;
    gap: 14px;
}

.problem-authoring-dialog h4 {
    margin: 0;
}

.problem-authoring-dialog textarea {
    min-height: 180px;
}

.material-preview-inline {
    max-width: 260px;
}

.material-preview-inline .problem-canvas {
    width: 220px;
}

.materials-import-note {
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
    border: 1px solid #f3dd9a;
}

.materials-migration-desk {
    margin-bottom: 18px;
    background: linear-gradient(180deg, #f7fcfb 0%, #ffffff 100%);
    border: 1px solid #cde8e2;
}

.materials-migration-jumpbar {
    margin: 14px 0 0;
}

.materials-migration-cockpit {
    display: grid;
    gap: 16px;
    margin: 14px 0 16px;
    padding: 18px;
    border: 1px solid #d8e7f4;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(111, 191, 160, 0.14), transparent 24%),
        linear-gradient(135deg, #fbfffd 0%, #ffffff 48%, #f4fbff 100%);
    box-shadow: 0 12px 28px rgba(19, 48, 91, 0.05);
}

.materials-migration-cockpit.tone-warning {
    border-color: #f0ddb8;
    background:
        radial-gradient(circle at top right, rgba(255, 190, 118, 0.16), transparent 24%),
        linear-gradient(135deg, #fffaf1 0%, #ffffff 48%, #f7fbff 100%);
}

.materials-migration-cockpit.tone-info {
    border-color: #dbe7fb;
    background:
        radial-gradient(circle at top right, rgba(114, 164, 255, 0.14), transparent 24%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #f4fbf6 100%);
}

.materials-migration-cockpit.tone-success {
    border-color: #cfe8db;
    background:
        radial-gradient(circle at top right, rgba(83, 196, 120, 0.13), transparent 24%),
        linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #f3f9ff 100%);
}

.materials-migration-cockpit-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.materials-migration-cockpit-head h5 {
    margin: 6px 0 8px;
    color: #183055;
    font-size: 22px;
}

.materials-migration-cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.materials-migration-cockpit-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
}

.materials-migration-cockpit-card-head,
.materials-migration-file-focus-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.materials-migration-cockpit-card-head strong {
    color: #183055;
    font-size: 16px;
}

.materials-migration-cockpit-list,
.materials-migration-fast-route,
.materials-migration-file-focus {
    display: grid;
    gap: 10px;
}

.materials-migration-cockpit-list-item,
.materials-migration-fast-route-item,
.materials-migration-file-focus-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: inherit;
    text-decoration: none;
}

.materials-migration-fast-route-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.materials-migration-fast-route-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff0cd;
    color: #a86b00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.materials-migration-fast-route-step.is-done {
    background: #e3f8ea;
    color: #238356;
}

.materials-migration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.materials-migration-stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0 16px;
}

.materials-migration-stage-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #d8e7f4;
    background: #ffffff;
}

.materials-migration-stage-card strong {
    font-size: 20px;
    color: #1d365d;
}

.materials-migration-stage-card p {
    margin: 0;
    color: #5d6f89;
    font-size: 13px;
    line-height: 1.6;
}

.materials-migration-stage-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #35507c;
    font-size: 12px;
    font-weight: 700;
}

.materials-migration-stage-card.tone-ready {
    border-color: #bfe7cc;
    background: linear-gradient(180deg, #f8fffb 0%, #ffffff 100%);
}

.materials-migration-stage-card.tone-ready .materials-migration-stage-label {
    background: #e3f7ea;
    color: #23734d;
}

.materials-migration-stage-card.tone-progress {
    border-color: #cfe2fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.materials-migration-stage-card.tone-pending {
    border-color: #f3dfb1;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.materials-migration-stage-card.tone-pending .materials-migration-stage-label {
    background: #fff1cb;
    color: #8f5a00;
}

.materials-import-reentry-panel {
    display: grid;
    gap: 14px;
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid #d8e7f4;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(114, 164, 255, 0.12), transparent 26%),
        linear-gradient(135deg, #f8fcff 0%, #ffffff 48%, #f6fff8 100%);
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.materials-import-reentry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.materials-import-reentry-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5ef;
    background: rgba(255, 255, 255, 0.97);
}

.materials-import-reentry-card strong {
    color: #183055;
    font-size: 16px;
}

.materials-import-reentry-card p,
.materials-import-reentry-card small {
    margin: 0;
}

.materials-import-reentry-card small {
    color: #5f6f85;
}

.materials-import-reentry-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.materials-import-reentry-card.tone-success {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #ffffff 0%, #f5fff8 100%);
}

.materials-import-reentry-card.tone-success .materials-import-reentry-kicker {
    background: #e3f8ea;
    color: #238356;
}

.materials-import-reentry-card.tone-warning {
    border-color: #f0ddb8;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
}

.materials-import-reentry-card.tone-warning .materials-import-reentry-kicker {
    background: #fff0cd;
    color: #a86b00;
}

.materials-import-reentry-card.tone-info {
    border-color: #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.materials-import-reentry-card.tone-info .materials-import-reentry-kicker {
    background: #e8f2ff;
    color: #2256b2;
}

.materials-migration-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #d9ebe8;
    background: #ffffff;
}

.materials-migration-card code {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #20304f;
    color: #f8fbff;
    font-size: 12px;
    line-height: 1.55;
    word-break: break-all;
}

.materials-migration-file-list,
.materials-migration-resources {
    display: grid;
    gap: 10px;
}

.materials-migration-file-item,
.materials-migration-resource {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dfe8f3;
    background: #ffffff;
}

.materials-migration-file-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.materials-migration-file-item p {
    margin: 0;
}

.materials-migration-file-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.materials-migration-file-item code,
.materials-migration-resource code {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f5f8fc;
    color: #20304f;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.materials-migration-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 16px 0 14px;
}

.materials-migration-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe6f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.materials-migration-summary-card strong {
    color: #173158;
    font-size: 18px;
    line-height: 1.45;
}

.materials-migration-summary-card p {
    margin: 0;
    color: #5c6f88;
    font-size: 13px;
    line-height: 1.75;
}

.materials-migration-summary-label {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #33547f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.materials-migration-summary-card.tone-success {
    border-color: #cfe6d8;
    background: linear-gradient(180deg, #f5fff8 0%, #ffffff 100%);
}

.materials-migration-summary-card.tone-success .materials-migration-summary-label {
    background: #e3f8ea;
    color: #238356;
}

.materials-migration-summary-card.tone-warning {
    border-color: #efd8b1;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.materials-migration-summary-card.tone-warning .materials-migration-summary-label {
    background: #fff1cb;
    color: #a86b00;
}

.materials-migration-summary-card.tone-info {
    border-color: #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

@media (max-width: 760px) {
    .materials-migration-file-item {
        grid-template-columns: 1fr;
    }

    .materials-migration-file-actions {
        justify-items: start;
    }
}

.materials-workflow-panel {
    margin-bottom: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid #d8e7ff;
}

.materials-today-panel {
    margin: 18px 0;
}

.materials-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.materials-workflow-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dde7f6;
    background: #ffffff;
}

.materials-workflow-card.is-done {
    border-color: #bde5cb;
    background: linear-gradient(180deg, #ffffff 0%, #f3fff7 100%);
}

.materials-workflow-card p {
    margin: 0;
    color: #5d6d82;
    line-height: 1.7;
}

.materials-workflow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.materials-focus-summary {
    display: grid;
    gap: 14px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(129, 195, 255, 0.16), transparent 34%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(19, 48, 91, 0.05);
}

.materials-focus-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.materials-focus-summary-head p {
    margin: 6px 0 0;
}

.materials-focus-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.materials-focus-summary-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: rgba(255, 255, 255, 0.96);
}

.materials-focus-summary-card strong {
    color: #183055;
    font-size: 16px;
}

.materials-focus-summary-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.materials-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.materials-import-step {
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #f0e4bb;
}

.materials-import-step strong {
    display: block;
    margin-bottom: 8px;
    color: #15305b;
}

.materials-import-step code {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #20304f;
    color: #f8fbff;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.materials-import-report {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ead7a1;
}

.materials-import-guidance {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.materials-import-guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.materials-import-guidance-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e1e9f5;
    background: #fff;
}

.materials-import-guidance-card strong {
    color: #15305b;
}

.materials-import-guidance-card p,
.materials-import-guidance-card small {
    margin: 0;
    line-height: 1.65;
}

.materials-import-guidance-card p {
    color: #24344f;
}

.materials-import-guidance-card small {
    color: #5b6d87;
}

.materials-import-guidance-card.tone-warning {
    border-color: #f1dfb8;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.materials-import-guidance-card.tone-success {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.materials-import-preflight {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.materials-import-preflight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.materials-import-preflight-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e1e9f5;
    background: #fff;
}

.materials-import-preflight-card strong {
    color: #15305b;
}

.materials-import-preflight-card span {
    color: #10213d;
    font-size: 20px;
    font-weight: 800;
}

.materials-import-preflight-card small {
    color: #5b6d87;
    line-height: 1.6;
}

.materials-import-preflight-list {
    display: grid;
    gap: 10px;
}

.materials-import-preflight-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e1e9f5;
    background: #fff;
}

.materials-import-preflight-item strong {
    color: #15305b;
}

.materials-import-preflight-item small {
    color: #5b6d87;
    line-height: 1.6;
}

.materials-import-preflight-item.is-warning {
    border-color: #f1dfb8;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.materials-import-preflight-item.is-ok {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.materials-import-autofix textarea {
    min-height: 220px;
}

.materials-import-review textarea {
    min-height: 180px;
}

.materials-course-status-card {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d9e4f0;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.materials-course-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.materials-course-status-card p {
    margin: 0;
}

.course-material-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.materials-checklist-panel {
    margin-bottom: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.materials-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.materials-check-item {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.materials-check-item strong {
    color: #15305b;
}

.materials-course-board-panel {
    margin-bottom: 18px;
}

.materials-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.materials-slot-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.materials-slot-card.is-ready {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), #ffffff);
}

.materials-slot-card.is-pending {
    border-color: rgba(251, 191, 36, 0.26);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), #ffffff);
}

.materials-slot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.materials-slot-card strong {
    color: #15305b;
}

.materials-slot-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.materials-slot-meta {
    align-items: flex-start;
}

.materials-setup-workbench {
    display: grid;
    gap: 14px;
    margin: 16px 0 14px;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(19, 48, 91, 0.05);
}

.materials-setup-workbench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.materials-setup-workbench-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: rgba(255, 255, 255, 0.96);
}

.materials-setup-workbench-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.materials-setup-workbench-head strong {
    color: #183055;
    font-size: 16px;
}

.materials-setup-workbench-head p {
    margin: 4px 0 0;
}

.materials-setup-workbench-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.problem-tool-target-board {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.14), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 52%, #eef8ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.problem-tool-target-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.problem-tool-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.problem-tool-slot-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.problem-tool-slot-card.is-ready {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), #ffffff);
}

.problem-tool-slot-card.is-current {
    border-color: rgba(22, 135, 232, 0.28);
    box-shadow: 0 12px 24px rgba(21, 120, 216, 0.08);
}

.problem-tool-slot-card strong {
    color: #15305b;
}

.problem-tool-slot-card small {
    color: var(--muted);
}

.problem-tool-capture-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.problem-tool-capture-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe6df;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.problem-tool-capture-card strong {
    color: #15305b;
}

.problem-tool-register-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.problem-tool-register-summary-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe6df;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.problem-tool-register-summary-card strong {
    color: #15305b;
}

.problem-tool-register-summary-card span {
    color: #173055;
    font-weight: 800;
}

.problem-tool-register-summary-card small {
    color: var(--muted);
    line-height: 1.6;
}

.problem-tool-save-route {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f4fbf6 100%);
}

.problem-tool-save-route strong {
    display: block;
    margin-bottom: 6px;
    color: #15305b;
}

.problem-tool-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.problem-tool-flow-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.problem-tool-flow-step {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf9f1;
    color: #1f7a44;
    font-size: 12px;
    font-weight: 900;
}

.problem-tool-flow-card strong {
    color: #15305b;
    font-size: 16px;
}

.problem-tool-flow-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.smoke-report-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbe7fb;
}

.platform-priority-panel {
    margin-bottom: 18px;
    border: 1px solid #d8e5ff;
    background:
        radial-gradient(circle at top right, rgba(112, 159, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.platform-priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.platform-priority-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5eefc;
}

.platform-priority-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.platform-priority-item strong {
    color: #15305b;
}

.platform-priority-alerts {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d6e3fb;
}

.platform-priority-alerts strong {
    color: #15305b;
}

.smoke-report-summary {
    display: grid;
    gap: 14px;
}

.smoke-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smoke-report-url,
.smoke-report-path {
    display: grid;
    gap: 6px;
}

.smoke-report-url code,
.smoke-report-path code {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #20304f;
    color: #f8fbff;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.smoke-report-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.smoke-account-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe5ef;
}

.smoke-account-card strong {
    color: #15305b;
}

.smoke-account-grid {
    display: grid;
    gap: 10px;
}

.smoke-account-grid > div {
    display: grid;
    gap: 4px;
}

.smoke-account-grid code {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f3f7ff;
    color: #15305b;
    font-size: 13px;
}

.smoke-report-history {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed #dbe5ef;
}

.smoke-report-history-list {
    display: grid;
    gap: 8px;
}

.smoke-report-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #edf2fb;
}

.artifact-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.artifact-meta strong,
.smoke-report-history-item code {
    word-break: break-word;
}

.overview-booking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #dbe5ef;
}

.overview-booking-row:last-of-type {
    border-bottom: none;
}

.overview-booking-row > div:first-child {
    display: grid;
    gap: 4px;
}

.owner-next-unlock-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.owner-next-unlock-row {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.94) 100%);
}

.overview-row-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.owner-setup-progress-card {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    display: grid;
    gap: 12px;
}

.owner-setup-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.owner-setup-progress-head strong {
    display: block;
    margin-bottom: 4px;
    color: #15305b;
}

.owner-setup-progress-bar {
    height: 14px;
    border-radius: 999px;
    background: #e8effc;
    overflow: hidden;
}

.owner-setup-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d70ff 0%, #28c26b 100%);
}

.owner-setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-launch-defaults-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.owner-launch-default-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.owner-launch-default-card.is-ok {
    background: linear-gradient(180deg, #ffffff 0%, #f6fff8 100%);
    border-color: #d8eadf;
}

.owner-launch-default-card.is-alert {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    border-color: #f0dfca;
}

.owner-launch-default-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.owner-launch-default-card p {
    margin: 0;
    color: #132033;
    line-height: 1.7;
}

.owner-launch-default-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-overview-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.owner-shortcut-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(19, 48, 91, 0.05);
}

.owner-shortcut-card strong {
    color: #15305b;
}

.owner-shortcut-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(19, 48, 91, 0.08);
}

.owner-overview-shortcuts-today .owner-shortcut-card {
    border: 1px solid #d8e6dc;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.14), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f9fcf9 46%, #eef7ff 100%);
}

.owner-launch-step {
    text-decoration: none;
    color: inherit;
}

.owner-go-live-cockpit {
    display: grid;
    gap: 16px;
    margin: 16px 0 18px;
    padding: 20px;
    border: 1px solid #dbe6f3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 191, 118, 0.15), transparent 24%),
        linear-gradient(135deg, #fffdf7 0%, #ffffff 48%, #f3f9ff 100%);
    box-shadow: 0 16px 34px rgba(19, 48, 91, 0.08);
}

.owner-go-live-cockpit.tone-warning {
    border-color: #f1ddb6;
    background:
        radial-gradient(circle at top right, rgba(255, 191, 118, 0.18), transparent 24%),
        linear-gradient(135deg, #fffaf0 0%, #ffffff 48%, #f7fbff 100%);
}

.owner-go-live-cockpit.tone-info {
    border-color: #dbe7fb;
    background:
        radial-gradient(circle at top right, rgba(114, 164, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #f4fbf6 100%);
}

.owner-go-live-cockpit.tone-success {
    border-color: #cfe8da;
    background:
        radial-gradient(circle at top right, rgba(83, 196, 120, 0.14), transparent 24%),
        linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #f3f9ff 100%);
}

.owner-go-live-cockpit-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.owner-go-live-cockpit-head h4 {
    margin: 6px 0 8px;
}

.owner-go-live-cockpit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-go-live-cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.owner-go-live-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe5ef;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.owner-go-live-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.owner-go-live-card-head strong {
    color: #183055;
    font-size: 16px;
}

.owner-go-live-list,
.owner-go-live-order,
.owner-go-live-reports {
    display: grid;
    gap: 10px;
}

.owner-go-live-list-item,
.owner-go-live-order-item,
.owner-go-live-report-item {
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.owner-go-live-list-item:hover,
.owner-go-live-order-item:hover,
.owner-go-live-report-item:hover {
    transform: translateY(-1px);
    border-color: #b8d2ff;
    box-shadow: 0 12px 22px rgba(31, 58, 147, 0.08);
}

.owner-go-live-list-item strong,
.owner-go-live-order-item strong,
.owner-go-live-report-item strong {
    color: #183055;
}

.owner-go-live-order-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.owner-go-live-order-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.owner-go-live-report-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.owner-launch-verdict {
    display: grid;
    gap: 16px;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #dbe7fb;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 208, 123, 0.18), transparent 28%),
        linear-gradient(135deg, #fffdf7 0%, #ffffff 48%, #f4fbff 100%);
    box-shadow: 0 16px 30px rgba(19, 48, 91, 0.07);
}

.owner-launch-verdict.tone-danger {
    border-color: #f0cfc8;
    background:
        radial-gradient(circle at top right, rgba(255, 136, 108, 0.18), transparent 28%),
        linear-gradient(135deg, #fff7f4 0%, #ffffff 48%, #fff9f5 100%);
}

.owner-launch-verdict.tone-warning {
    border-color: #f1dfb8;
    background:
        radial-gradient(circle at top right, rgba(255, 191, 118, 0.18), transparent 28%),
        linear-gradient(135deg, #fffaf1 0%, #ffffff 48%, #f7fbff 100%);
}

.owner-launch-verdict.tone-info {
    border-color: #dbe7fb;
    background:
        radial-gradient(circle at top right, rgba(114, 164, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #f4fbf6 100%);
}

.owner-launch-verdict.tone-success {
    border-color: #cfe8da;
    background:
        radial-gradient(circle at top right, rgba(83, 196, 120, 0.14), transparent 28%),
        linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #f3f9ff 100%);
}

.owner-launch-verdict-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.owner-launch-verdict-head h4 {
    margin: 6px 0 8px;
}

.owner-launch-verdict-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.owner-launch-verdict-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #17345a;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.owner-launch-verdict.tone-danger .owner-launch-verdict-badge {
    background: #d74a3a;
}

.owner-launch-verdict.tone-warning .owner-launch-verdict-badge {
    background: #d48814;
}

.owner-launch-verdict.tone-info .owner-launch-verdict-badge {
    background: #2d6cf6;
}

.owner-launch-verdict.tone-success .owner-launch-verdict-badge {
    background: #2d9657;
}

.owner-launch-verdict-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
    gap: 16px;
}

.owner-launch-verdict-main,
.owner-launch-verdict-list {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #dbe5ef;
    background: rgba(255, 255, 255, 0.96);
}

.owner-launch-verdict-main strong {
    font-size: 24px;
    color: #183055;
    line-height: 1.45;
}

.owner-launch-verdict-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-launch-verdict-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.owner-launch-verdict-item:hover {
    transform: translateY(-1px);
    border-color: #b8d2ff;
    box-shadow: 0 12px 22px rgba(31, 58, 147, 0.08);
}

.owner-launch-verdict-item strong {
    color: #183055;
}

.owner-launch-verdict-item span {
    display: block;
}

.owner-launch-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.owner-launch-command-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.owner-launch-command-step {
    display: inline-flex;
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.owner-launch-command-card code {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #20304f;
    color: #f8fbff;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.owner-immediate-action {
    display: grid;
    gap: 16px;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #dbe7fb;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 192, 118, 0.16), transparent 26%),
        linear-gradient(135deg, #fffdf8 0%, #ffffff 46%, #f2f9ff 100%);
    box-shadow: 0 16px 30px rgba(19, 48, 91, 0.08);
}

.owner-immediate-action.tone-warning {
    border-color: #f0ddbc;
}

.owner-immediate-action.tone-success {
    border-color: #cfe8da;
    background:
        radial-gradient(circle at top right, rgba(95, 198, 128, 0.16), transparent 26%),
        linear-gradient(135deg, #f7fff9 0%, #ffffff 46%, #f2f9ff 100%);
}

.owner-immediate-action-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.owner-immediate-action-head h4 {
    margin: 6px 0 8px;
}

.owner-immediate-action-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
    gap: 16px;
}

.owner-immediate-action-copy,
.owner-immediate-action-controls {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #dbe5ef;
    background: rgba(255, 255, 255, 0.96);
}

.owner-immediate-action-copy strong {
    font-size: 22px;
    color: #183055;
}

.owner-immediate-action-copy p {
    margin: 0;
}

.owner-immediate-action-badge {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.owner-immediate-action-controls code {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #20304f;
    color: #f8fbff;
    font-size: 12px;
    line-height: 1.55;
    word-break: break-all;
}

.inline-action-form {
    display: inline-flex;
}

.primary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d6cf6 0%, #5f8dff 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(45, 108, 246, 0.22);
}

.primary-link-button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.owner-runway-summary {
    display: grid;
    gap: 14px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 190, 118, 0.18), transparent 36%),
        linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(19, 48, 91, 0.05);
}

.owner-runway-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.owner-runway-summary-head p {
    margin: 6px 0 0;
}

.owner-runway-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.owner-runway-summary-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: rgba(255, 255, 255, 0.96);
}

.owner-runway-summary-card strong {
    color: #183055;
    font-size: 16px;
}

.owner-runway-summary-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.owner-runway-summary-card.tone-warning {
    border-color: #f1dfb8;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.owner-runway-summary-card.tone-success {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.owner-runway-summary-card.tone-info {
    border-color: #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.owner-ops-summary {
    background:
        radial-gradient(circle at top left, rgba(71, 163, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.owner-runway-notes {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.student-detail-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-context-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.payment-context-actions,
.booking-context-actions {
    margin-top: 0;
}

.booking-admin-glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0 12px;
}

.booking-admin-glance-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.booking-admin-glance-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.booking-admin-glance-card strong {
    color: #10213d;
    font-size: 30px;
    line-height: 1;
}

.booking-admin-glance-card small {
    color: #64748b;
    line-height: 1.6;
}

.booking-admin-glance-card.tone-success {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
}

.booking-admin-glance-card.tone-info {
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.booking-admin-glance-card.tone-warning {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.14), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.owner-attention-list {
    display: grid;
    gap: 10px;
}

.owner-attention-row {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e9f6;
    background: #fbfdff;
}

.owner-attention-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-report-grid {
    margin-top: 18px;
}

.owner-report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-report-lines {
    display: grid;
    gap: 6px;
}

.owner-smoke-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-smoke-rehearsal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.owner-smoke-rehearsal-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.owner-smoke-rehearsal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.owner-smoke-rehearsal-head p {
    margin: 4px 0 0;
}

.owner-smoke-card-actions {
    gap: 8px;
}

.owner-report-grid code {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #20304f;
    color: #f8fbff;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.owner-verification-digest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.owner-verification-digest-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.owner-verification-digest-card p {
    margin: 0;
    color: #5b6d87;
    line-height: 1.65;
}

.owner-verification-digest-card.tone-success {
    border-color: #d7eadf;
    background: linear-gradient(180deg, #ffffff 0%, #f5fcf7 100%);
}

.owner-verification-digest-card.tone-warning {
    border-color: #f0dfcf;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.owner-morning-check-card {
    display: grid;
    gap: 14px;
}

.owner-morning-check-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.owner-morning-check-head p {
    margin: 6px 0 0;
}

.owner-morning-check-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.owner-morning-check-progressbar {
    margin: 12px 0 14px;
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.owner-morning-check-progressbar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #35b36a 0%, #4d9cff 100%);
}

.owner-morning-check-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #deebf5;
}

.owner-morning-check-summary strong {
    color: #17345a;
}

.owner-morning-check-copybox {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.owner-morning-check-copybox-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    align-items: center;
}

.owner-morning-check-copybox pre {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: #17345a;
    color: #f8fbff;
    font-size: 0.93rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.materials-required-set {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.materials-required-set-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 14px;
    align-items: center;
}

.materials-required-set-head p {
    margin: 6px 0 0;
}

.materials-required-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.materials-required-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: #fff;
}

.materials-required-item.is-done {
    background: linear-gradient(180deg, #ffffff 0%, #f6fff8 100%);
    border-color: #d7ebdf;
}

.materials-required-item.is-pending {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    border-color: #f0dfcf;
}

.materials-required-item-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    align-items: center;
}

.owner-morning-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.owner-morning-check-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: #fff;
}

.owner-morning-check-item.is-ok {
    background: linear-gradient(180deg, #ffffff 0%, #f6fff8 100%);
    border-color: #d8eadf;
}

.owner-morning-check-item.is-alert {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    border-color: #f0dfcf;
}

.owner-morning-check-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.owner-morning-check-item p {
    margin: 0;
    color: #42536c;
    line-height: 1.7;
}

.owner-morning-check-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-flow-check-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(77, 156, 255, 0.14), transparent 34%),
        linear-gradient(180deg, #fefefe 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(19, 48, 91, 0.05);
}

.owner-flow-check-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.owner-flow-check-head p {
    margin: 6px 0 0;
}

.owner-flow-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.owner-flow-check-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: #fff;
}

.owner-flow-check-item.is-ok {
    background: linear-gradient(180deg, #ffffff 0%, #f4fff7 100%);
    border-color: #d7eadf;
}

.owner-flow-check-item.is-alert {
    background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
    border-color: #f0dfcf;
}

.owner-flow-check-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.owner-flow-check-item p {
    margin: 0;
    color: #42536c;
    line-height: 1.7;
}

.owner-flow-check-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-attention-buckets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.owner-attention-bucket {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.owner-attention-bucket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.owner-attention-bucket-head p {
    margin: 6px 0 0;
}

.owner-attention-bucket-list {
    display: grid;
    gap: 8px;
}

.owner-attention-bucket-row {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(250, 252, 255, 0.92);
    border: 1px solid #e4edf9;
}

.owner-attention-bucket-row .row-actions {
    margin-top: 2px;
}

.owner-day-flow-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 210, 118, 0.22), transparent 34%),
        linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(19, 48, 91, 0.05);
}

.owner-day-flow-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.owner-day-flow-head p {
    margin: 6px 0 0;
}

.owner-day-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.owner-day-flow-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe5ef;
    background: rgba(255, 255, 255, 0.95);
}

.owner-day-flow-card.tone-morning {
    border-color: #f1dcc2;
    background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.owner-day-flow-card.tone-live {
    border-color: #d4e7d6;
    background: linear-gradient(180deg, #f4fff7 0%, #ffffff 100%);
}

.owner-day-flow-card.tone-close {
    border-color: #d8e3fb;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.owner-day-flow-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.owner-day-flow-top strong {
    display: block;
    color: #183055;
    font-size: 18px;
}

.owner-day-flow-top p {
    margin: 4px 0 0;
    color: #62748f;
    font-size: 13px;
    line-height: 1.7;
}

.owner-day-flow-card .detail-list {
    gap: 8px;
}

.owner-day-flow-card .detail-list div {
    color: #42536c;
    font-size: 13px;
    line-height: 1.7;
}

.student-progress-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.student-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.student-progress-stat {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e3ebfb;
}

.student-progress-stat strong {
    color: #15305b;
    font-size: 20px;
}

.student-progress-stat span {
    color: #66758f;
    font-size: 13px;
}

.student-progress-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.student-progress-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.student-progress-admin-actions form {
    margin: 0;
}

.student-admin-material-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.student-admin-material-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #f9fbff;
}

.student-admin-material-main {
    min-width: 0;
}

.student-admin-material-main strong {
    display: block;
    color: #11233a;
}

.materials-preview-panel {
    margin-top: 18px;
}

.materials-next-action-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #dbe5ef;
    background:
        radial-gradient(circle at top right, rgba(255, 193, 118, 0.16), transparent 24%),
        linear-gradient(135deg, #fffdf7 0%, #ffffff 48%, #f4faff 100%);
    box-shadow: 0 12px 26px rgba(19, 48, 91, 0.06);
}

.materials-next-action-panel.tone-warning {
    border-color: #f0ddbc;
}

.materials-next-action-panel.tone-success {
    border-color: #cfe8da;
    background:
        radial-gradient(circle at top right, rgba(95, 198, 128, 0.16), transparent 24%),
        linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #f4faff 100%);
}

.materials-next-action-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.materials-next-action-head h4 {
    margin: 6px 0 8px;
}

.materials-next-action-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.9fr);
    gap: 14px;
}

.materials-next-action-copy,
.materials-next-action-controls {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5ef;
    background: rgba(255, 255, 255, 0.96);
}

.materials-next-action-copy strong {
    font-size: 20px;
    color: #183055;
}

.materials-next-action-copy p {
    margin: 0;
}

.materials-preview-verification {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.materials-preview-verification-head p {
    margin: 6px 0 0;
}

.materials-preview-verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.materials-preview-verification-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: #fff;
}

.materials-preview-quickchecks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.materials-preview-quickcheck-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: #fff;
}

.materials-preview-student-spotlight {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.materials-preview-student-spotlight-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.materials-preview-student-spotlight-head p {
    margin: 4px 0 0;
}

.materials-preview-student-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.materials-preview-quickcheck-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    align-items: center;
}

.payment-result-panel,
.materials-result-panel {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.student-result-panel {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.materials-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.materials-preview-simulation {
    display: grid;
    gap: 14px;
    margin: 14px 0 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #dbe7fb;
    background:
        radial-gradient(circle at top right, rgba(79, 172, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.materials-preview-simulation-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.materials-preview-simulation-head strong {
    display: block;
    color: #18345f;
    font-size: 18px;
    margin-bottom: 6px;
}

.materials-preview-simulation-head p {
    margin: 0;
}

.materials-preview-simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.materials-preview-simulation-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #d9e6f8;
    background: #ffffff;
}

.materials-preview-simulation-card strong {
    color: #18345f;
    font-size: 15px;
}

.materials-preview-simulation-card p {
    margin: 0;
    color: #4f647f;
    line-height: 1.65;
    font-size: 13px;
}

.materials-preview-simulation-card.tone-ready {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), #ffffff);
}

.materials-preview-simulation-card.tone-pending {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), #ffffff);
}

.materials-preview-simulation-step {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e7efff;
    color: #31528d;
    font-size: 11px;
    font-weight: 900;
}

.materials-summary-panel {
    margin: 18px 0;
}

.materials-summary-toolbar {
    display: grid;
    gap: 10px;
    margin: 14px 0 16px;
}

.materials-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.materials-summary-stat-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.materials-summary-stat-card strong {
    color: #15305b;
}

.materials-summary-stat-card span {
    color: #10213d;
    font-size: 22px;
    font-weight: 800;
}

.materials-summary-stat-card small {
    color: #5b6d87;
    line-height: 1.6;
}

.materials-summary-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.materials-family-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.materials-family-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.materials-family-summary-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.materials-family-summary-card.is-ready {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.materials-family-summary-card.is-warning {
    border-color: #f1dfb8;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.materials-family-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.materials-family-summary-head strong {
    color: #15305b;
    font-size: 16px;
}

.materials-family-summary-head p {
    margin: 4px 0 0;
}

.materials-summary-action-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.materials-summary-action-card strong {
    color: #15305b;
}

.materials-summary-action-card p {
    margin: 0;
    color: #24344f;
    line-height: 1.65;
}

.materials-summary-action-card.tone-warning {
    border-color: #f1dfb8;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.materials-summary-action-card.tone-success {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.materials-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.materials-summary-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.materials-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(19, 48, 91, 0.08);
}

.materials-summary-card.is-ready {
    border-color: #cfe8db;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.materials-summary-card.is-pending {
    border-color: #f1dfb8;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.materials-summary-card p {
    margin: 0;
}

.materials-summary-progress {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(19, 48, 91, 0.08);
    overflow: hidden;
}

.materials-summary-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8cac 0%, #ffd861 34%, #35b36a 68%, #4d9cff 100%);
}

.materials-summary-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.materials-summary-progress-meta strong {
    color: #17305b;
    font-size: 22px;
    line-height: 1;
}

.materials-summary-progress-meta span {
    color: #61748a;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.materials-problem-board {
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
    border: 1px solid #f0d5e1;
}

.materials-problem-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.materials-problem-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e6dce7;
    background: #ffffff;
}

.materials-problem-card.is-active {
    border-color: #7db6ff;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.materials-problem-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.materials-problem-card p {
    margin: 0;
}

.materials-problem-board-empty {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed #d8dfe9;
    background: #ffffff;
}

.materials-problem-ready-strip {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ead7e2;
}

.materials-problem-ready-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.materials-problem-ready-chip {
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid #dbe6f5;
    background: #f9fbff;
    color: #15305b;
    text-decoration: none;
}

.materials-problem-ready-chip.is-active {
    border-color: #7db6ff;
    background: #eef6ff;
}

.materials-problem-ready-chip small {
    color: #677891;
}

.materials-focus-strip {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe7fb;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.materials-focus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.materials-focus-chip {
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    color: #183055;
    text-decoration: none;
}

.materials-focus-chip small {
    color: #5b6d87;
    font-size: 12px;
    line-height: 1.5;
}

.materials-focus-chip:hover {
    border-color: #90b5ff;
    transform: translateY(-1px);
}

.materials-preview-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e2e9f6;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.materials-preview-item {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #edf2fb;
    background: #fff;
}

.slot-card,
.lesson-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.slot-card h4,
.lesson-card h4 {
    margin: 0 0 6px;
}

.slot-actions,
.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.course-pick-stack {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.course-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.course-pick-form {
    margin: 0;
}

.course-pick-btn {
    width: 100%;
}

.lesson-complete-panel {
    margin-top: 18px;
}

.row-actions {
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.asset-library-actions {
    align-items: stretch;
    max-width: 220px;
}

.asset-library-actions > a,
.asset-library-actions > button,
.asset-library-actions > form,
.asset-library-actions > form > button {
    width: 100%;
}

.weekday-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.weekday-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.weekday-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #506178;
    font-weight: 700;
    transition: all 0.2s ease;
}

.weekday-pill input:checked + span {
    background: #1463ff;
    border-color: #1463ff;
    color: #fff;
    box-shadow: 0 8px 20px rgba(20, 99, 255, 0.18);
}

.time-select-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.time-select-group select {
    width: auto;
    min-width: 78px;
}

.schedule-editor {
    display: grid;
    gap: 16px;
}

.schedule-block,
.schedule-meta {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.schedule-block label,
.schedule-meta label {
    font-weight: 700;
    color: #445977;
}

.schedule-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.time-stage {
    display: grid;
    gap: 12px;
}

.time-stage-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.time-stage-body .time-select-group {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 16px minmax(0, 1fr);
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.time-stage-body .time-select-group span {
    color: #60728c;
    font-weight: 700;
}

.time-stage-label {
    color: #445977;
    font-size: 13px;
    font-weight: 700;
}

.student-detail-panel {
    margin-bottom: 18px;
}

.student-command-hero {
    margin-bottom: 16px;
}

.student-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #dbe6df;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 252, 248, 0.96) 55%, rgba(239, 248, 255, 0.94) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.student-detail-head h3 {
    margin-bottom: 6px;
}

.student-detail-identity {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.student-profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin: 8px 0 12px;
}

.student-profile-summary-card {
    border: 1px solid #d9e7f8;
    border-radius: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffaf0 0%, #f2fbff 100%);
    box-shadow: 0 10px 24px rgba(22, 44, 72, 0.05);
}

.student-profile-summary-card span {
    display: block;
    color: #60738e;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.student-profile-summary-card strong {
    display: block;
    color: #06142b;
    font-size: 21px;
    line-height: 1.35;
}

.student-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #55677f;
    font-size: 14px;
    padding: 12px;
    border: 1px solid rgba(45, 49, 66, 0.09);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
}

.student-meta-list span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4f8fc;
    border: 1px solid #dde8f2;
}

.student-detail-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.student-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d9e7f8;
    border-radius: 16px;
    background: #f8fbff;
}

.student-month-switch-form {
    margin-left: auto;
}

.student-month-switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #355070;
}

.student-month-switch-label span {
    white-space: nowrap;
}

.student-month-switch-form input[type="month"] {
    min-width: 150px;
}

.student-section-jumpbar {
    margin-bottom: 16px;
}

.student-workspace-cockpit {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 190, 118, 0.12), transparent 26%),
        linear-gradient(135deg, #fffdf7 0%, #ffffff 48%, #f4fbff 100%);
    box-shadow: 0 12px 28px rgba(19, 48, 91, 0.05);
}

.student-workspace-cockpit-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.student-workspace-cockpit-head h4 {
    margin: 6px 0 8px;
}

.student-workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.student-workspace-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5ef;
    background: rgba(255, 255, 255, 0.96);
}

.student-workspace-card strong {
    color: #183055;
    font-size: 16px;
}

.student-workspace-card p {
    margin: 0;
    color: #5b6d87;
    line-height: 1.7;
    font-size: 13px;
}

.student-workspace-card.tone-warning {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.student-workspace-card.tone-success {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.student-workspace-card.tone-info {
    border-color: #d6e8ff;
    background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.student-workspace-card.tone-neutral {
    border-color: #dbe5ef;
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.student-focus-lane {
    margin-top: 14px;
}

.student-today-panel {
    margin-bottom: 16px;
}

.student-focus-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #d9e7fb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf6 50%, #eef7ff 100%);
}

.student-focus-card p {
    margin: 0;
}

.student-live-ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.student-live-ops-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe6f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 26px rgba(31, 58, 147, 0.06);
}

.student-live-ops-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.student-live-ops-head strong {
    color: #183055;
    font-size: 16px;
}

.student-live-ops-card p {
    margin: 0;
    color: #5b6d87;
    line-height: 1.7;
}

.student-live-ops-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-live-ops-card.tone-warning {
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
    border-color: #f3dfb5;
}

.student-live-ops-card.tone-info {
    background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
    border-color: #d6e8ff;
}

.student-live-ops-card.tone-success {
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
    border-color: #cde8db;
}

.student-live-ops-card.tone-neutral {
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
    border-color: #dbe5ef;
}

.student-restart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.student-restart-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #dbe7fb;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.student-restart-card strong {
    color: #183055;
    font-size: 16px;
}

.student-restart-card p {
    margin: 0;
    color: #5b6d87;
    line-height: 1.7;
}

.student-ops-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.student-ops-roadmap-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #d9e7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 26px rgba(31, 58, 147, 0.06);
}

.student-ops-roadmap-card p {
    margin: 0;
    color: #5d6d82;
    line-height: 1.7;
}

.student-ops-roadmap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.student-ops-roadmap-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #5b6c7d;
}

.student-ops-roadmap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-ops-panel {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #cfe0ff;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.student-ops-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.student-ops-form {
    display: grid;
    gap: 14px;
}

.student-ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.student-ops-grid label {
    display: block;
    margin-bottom: 6px;
}

.student-detail-shell {
    display: grid;
    gap: 16px;
}

.student-detail-name {
    margin: 8px 0 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #10213d;
}

.student-status-form {
    margin: 10px 0 18px;
    padding: 14px;
    border: 1px solid #d8eadf;
    border-radius: 18px;
    background: #f8fff9;
}

.student-status-grid {
    align-items: end;
}

.student-status-submit {
    align-self: end;
}

.student-booking-calendar-panel {
    margin-top: 16px;
}

.student-calendar-wrap {
    overflow-x: auto;
}

.student-month-calendar {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 6px;
}

.student-month-calendar th {
    padding: 8px;
    color: #50627a;
    text-align: center;
}

.student-month-calendar th.is-saturday,
.student-calendar-daynum.is-saturday {
    color: #1d6eea;
}

.student-month-calendar th.is-sunday,
.student-calendar-daynum.is-sunday {
    color: #e0382f;
}

.student-month-calendar td {
    height: 78px;
    padding: 8px;
    vertical-align: top;
    border: 1px solid #d7e3f0;
    border-radius: 16px;
    background: #fff;
}

.student-month-calendar td.is-empty {
    background: #f6f9fc;
    border-style: dashed;
}

.student-month-calendar td.has-booking {
    border-color: #19a850;
    background: #effbf3;
}

.student-calendar-daynum {
    font-weight: 800;
    margin-bottom: 8px;
    display: block;
}

.student-calendar-booking {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: #16a34a;
    font-weight: 800;
    width: fit-content;
    max-width: max-content;
    min-width: 0;
    white-space: nowrap;
    clear: both;
}

.student-calendar-booking small {
    color: inherit;
    font-weight: 700;
}

.student-calendar-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 2px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.student-calendar-cancel:hover,
.student-calendar-cancel:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

.student-booking-tools {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
    gap: 16px;
    margin-top: 18px;
}

.student-proxy-booking-form,
.student-booking-summary-card {
    padding: 14px;
    border: 1px solid #d7e3f0;
    border-radius: 18px;
    background: #fff;
}

.student-booking-summary-card {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
}

.student-proxy-booking-form {
    display: grid;
    gap: 12px;
    align-content: start;
}

.student-learning-actions {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.student-learning-actions form {
    margin: 0;
}

.student-learning-actions .compact-link[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.owner-completed-course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.owner-completed-course-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: linear-gradient(180deg, #f4fff8 0%, #ffffff 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.owner-completed-course-chip strong {
    color: #062047;
    font-size: 15px;
    line-height: 1.4;
}

body.staff-mode .student-subpanel {
    padding: 16px 18px;
}

body.staff-mode .compact-stats {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

body.staff-mode .student-ops-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.danger-soft {
    border-color: #ffb4b4;
    color: #c62828;
    background: #fff7f7;
}

@media (max-width: 760px) {
    .student-booking-tools {
        grid-template-columns: 1fr;
    }

    body.staff-mode .compact-stats,
    body.staff-mode .student-ops-grid {
        grid-template-columns: 1fr;
    }
}

.student-onboarding-panel {
    margin-top: 16px;
}

.student-onboarding-list {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #55677f;
}

.student-onboarding-list li + li {
    margin-top: 6px;
}

.student-next-actions-panel {
    margin-top: 16px;
}

.student-next-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.student-next-action-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.student-next-action-card strong {
    color: #183055;
    font-size: 16px;
}

.student-next-action-card p {
    margin: 0;
    color: #5b6d87;
    line-height: 1.7;
    font-size: 13px;
}

.student-next-action-step {
    display: inline-flex;
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.student-next-action-card.tone-danger {
    border-color: #f1caca;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.student-next-action-card.tone-danger .student-next-action-step {
    background: #ffe7e7;
    color: #c53d3d;
}

.student-next-action-card.tone-warning {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.student-next-action-card.tone-warning .student-next-action-step {
    background: #fff0cd;
    color: #a86b00;
}

.student-next-action-card.tone-success {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.student-next-action-card.tone-success .student-next-action-step {
    background: #e3f8ea;
    color: #238356;
}

.student-next-action-card.tone-info .student-next-action-step {
    background: #e8f3ff;
    color: #1f67d8;
}

.student-next-actions-empty {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.student-setup-workbench-panel {
    margin-top: 18px;
}

.student-setup-workbench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.student-setup-workbench-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #d9e7fb;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 26px rgba(31, 58, 147, 0.06);
}

.student-setup-workbench-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.student-setup-workbench-head strong {
    color: #183055;
    font-size: 18px;
}

.student-setup-workbench-head p,
.student-setup-workbench-card .muted {
    margin: 0;
}

.student-setup-workbench-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-setup-workbench-form {
    display: grid;
    gap: 12px;
}

.student-setup-workbench-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.student-setup-workbench-fields > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.student-setup-workbench-fields label {
    display: block;
    margin-bottom: 6px;
}

.payment-focus-card {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.payment-quick-card {
    border-color: #d8e7d8;
    background: linear-gradient(135deg, #ffffff 0%, #f6fff8 58%, #edf8ff 100%);
}

.payment-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.payment-quick-form {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.payment-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-quick-btn {
    width: 100%;
    justify-content: center;
}

.payment-quick-btn-secondary {
    background: linear-gradient(135deg, #2f77f6 0%, #1f9d7a 100%);
}

.payment-inline-quickpay-form {
    margin: 0;
}

.payment-queue-panel {
    margin-bottom: 18px;
}

.payment-buckets-panel {
    border-color: #dce8f7;
    background:
        radial-gradient(circle at top right, rgba(255, 211, 128, 0.16), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.payment-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.payment-queue-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #d9e7fb;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(31, 58, 147, 0.06);
}

.payment-queue-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-queue-head p {
    margin: 4px 0 0;
}

.payment-queue-actions {
    margin-top: -2px;
}

.context-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.context-summary-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.context-summary-card strong {
    color: #183055;
}

.context-summary-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.payment-focus-roadmap,
.booking-student-roadmap {
    border-color: #d4e4d8;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf6 55%, #eef7ff 100%);
}

.payment-release-card {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #d9e7fb;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf7 0%, #f7fbff 100%);
}

.payment-priority-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0 0 16px;
}

.payment-priority-strip {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(20, 54, 110, 0.05);
}

.payment-priority-strip.tone-danger {
    border-color: #f3d7d7;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.payment-priority-strip.tone-warning {
    border-color: #f1e3c8;
    background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}

.payment-priority-strip.tone-info {
    border-color: #d8e8fb;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.payment-priority-strip.tone-neutral {
    border-color: #dfe7e1;
    background: linear-gradient(180deg, #fbfefc 0%, #ffffff 100%);
}

.payment-priority-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.payment-priority-strip-label {
    color: #5b6d87;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.payment-priority-strip strong {
    color: #183055;
    font-size: 16px;
}

.payment-priority-strip p,
.payment-priority-strip small {
    margin: 0;
    color: #5b6d87;
    line-height: 1.7;
}

.payment-compact-stats {
    margin-bottom: 14px;
}

.payment-status-table-wrap {
    margin-top: 18px;
}

#payment-status-table {
    margin-top: 18px;
}

.payment-urgent-panel {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #d9e7fb;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.payment-urgent-list {
    display: grid;
    gap: 12px;
    margin: 12px 0;
}

.payment-urgent-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
}

.detail-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-weight: 700;
}

.lesson-lock-pill {
    background: #fff7df;
    color: #8a5b00;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    color: #445977;
}

.detail-list li + li {
    margin-top: 6px;
}

.student-booking-list li::marker {
    color: #5d7df7;
}

.student-detail-page {
    display: flex;
    flex-direction: column;
}

.student-detail-head {
    order: 0;
}

#student-next-session-memo {
    order: 5;
}

.student-detail-toolbar {
    order: 10;
}

#student-operational-setup {
    order: 20;
}

.student-booking-calendar-panel {
    order: 30;
}

#student-course-progress-admin {
    order: 40;
}

#student-monthly-plan-panel {
    order: 50;
}

#student-learning-material-fix {
    order: 55;
}

.student-detail-sections {
    order: 60;
}

.student-kpi-grid,
.student-detail-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.student-kpi-card,
.student-subpanel,
.student-form-panel,
.student-list-panel {
    border: 1px solid #dbe5ef;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.student-kpi-card,
.student-subpanel {
    padding: 18px;
}

.student-history-panel {
    align-self: start;
}

.student-empty-note {
    margin: 6px 0 0;
    line-height: 1.6;
}

.student-subpanel > :first-child,
.student-kpi-card > :first-child {
    margin-top: 0;
}

.student-month-status,
.student-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-focus-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.month-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.month-flow-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: #fff;
}

.month-flow-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.month-flow-card-label {
    color: #5b6d87;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.month-flow-card strong {
    color: #183055;
    font-size: 15px;
    line-height: 1.7;
}

.month-flow-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.month-flow-note {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.month-flow-actions {
    margin-top: 12px;
}

.month-flow-card.tone-danger {
    border-color: #f1caca;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.month-flow-card.tone-warning {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.month-flow-card.tone-success {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.month-flow-card.tone-info,
.month-flow-card.tone-neutral {
    border-color: #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ops-action-panel {
    display: grid;
    gap: 14px;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #dbe7fb;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ops-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ops-action-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
}

.ops-action-card strong {
    color: #183055;
    font-size: 16px;
}

.ops-action-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.ops-action-step {
    display: inline-flex;
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ops-action-card.tone-danger {
    border-color: #f1caca;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.ops-action-card.tone-danger .ops-action-step {
    background: #ffe7e7;
    color: #c53d3d;
}

.ops-action-card.tone-warning {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.ops-action-card.tone-warning .ops-action-step {
    background: #fff0cd;
    color: #a86b00;
}

.ops-action-card.tone-success {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.ops-action-card.tone-success .ops-action-step {
    background: #e3f8ea;
    color: #238356;
}

.ops-action-card.tone-info .ops-action-step {
    background: #e8f3ff;
    color: #1f67d8;
}

.ops-focus-panel {
    display: grid;
    gap: 14px;
    margin: 16px 0 18px;
    padding: 16px 18px;
    border: 1px solid #dbe7fb;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 190, 118, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    box-shadow: 0 10px 26px rgba(19, 48, 91, 0.05);
}

.ops-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ops-focus-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
}

.ops-focus-card strong {
    color: #183055;
    font-size: 16px;
}

.ops-focus-card p,
.ops-focus-card span {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.ops-focus-card.tone-danger {
    border-color: #f1caca;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.ops-focus-card.tone-warning {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.ops-focus-card.tone-success {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.ops-focus-card.tone-info,
.ops-focus-card.tone-neutral {
    border-color: #dbe7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.student-registration-guide {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.lesson-sequence-panel {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #dbe7fb;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.lesson-sequence-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lesson-sequence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.lesson-sequence-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lesson-sequence-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(32, 70, 110, 0.08);
}

.lesson-sequence-card strong {
    color: #183055;
    font-size: 14px;
    line-height: 1.6;
}

.lesson-sequence-step {
    display: inline-flex;
    justify-self: start;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1846b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.lesson-sequence-card.is-done {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.lesson-sequence-card.is-current {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.lesson-sequence-card.is-pending {
    border-color: #dbe5ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.lesson-sequence-link-label {
    color: #2f5fd0;
    font-size: 12px;
    font-weight: 800;
}

.student-sequence-jump-panel.admin-jump-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.student-sequence-jump-panel.admin-jump-panel .student-sequence-jump-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe7fb;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(32, 70, 110, 0.06);
}

.student-sequence-jump-panel.admin-jump-panel .student-sequence-jump-card.primary-jump {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        linear-gradient(135deg, rgba(82, 184, 255, 0.14), rgba(255, 214, 102, 0.12));
    border-color: rgba(82, 184, 255, 0.24);
}

.student-sequence-jump-panel.admin-jump-panel .student-sequence-jump-card.progress-jump {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 252, 0.98)),
        linear-gradient(135deg, rgba(67, 209, 125, 0.12), rgba(82, 184, 255, 0.08));
}

.student-sequence-jump-panel.admin-jump-panel .student-sequence-jump-card strong {
    color: #15305b;
    font-size: 17px;
    line-height: 1.5;
}

.student-sequence-jump-panel.admin-jump-panel .student-sequence-jump-card p {
    margin: 0;
}

.lesson-card.is-focus {
    border-color: #7db8ff;
    box-shadow: 0 0 0 3px rgba(92, 167, 255, 0.14), 0 18px 30px rgba(32, 70, 110, 0.08);
}

.student-registration-guide strong {
    display: block;
    margin-bottom: 8px;
}

.student-registration-guide ol {
    margin: 0;
    padding-left: 18px;
    color: #55677f;
}

.student-registration-guide li + li {
    margin-top: 6px;
}

.student-action-stack {
    align-items: stretch;
}

.student-action-stack a {
    min-width: 180px;
}

.student-list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.student-list-status-cards {
    margin-bottom: 14px;
}

.student-list-status-cards .stat {
    text-decoration: none;
    color: inherit;
}

.student-list-status-cards .stat.is-active-filter {
    border-color: #8fb4ff;
    box-shadow: 0 0 0 2px rgba(27, 92, 255, 0.08);
}

.student-list-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.student-list-summary-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(19, 48, 91, 0.05);
}

.student-list-summary-card strong {
    color: #183055;
    font-size: 16px;
}

.student-list-summary-card p {
    margin: 0;
    color: #5b6d87;
    font-size: 13px;
    line-height: 1.7;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-section-head.compact {
    margin-bottom: 14px;
}

.admin-section-head p {
    margin: 6px 0 0;
}

.admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ecf6ef;
    color: #1f7a44;
    font-weight: 800;
    white-space: nowrap;
}

.analytics-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.analytics-table-heading {
    margin-top: 24px;
    padding-top: 4px;
}

.analytics-payment-table {
    margin-top: 10px;
}

.analytics-pagination .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.admin-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 14px;
}

.admin-form-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 16px;
}

.name-link {
    color: #1463ff;
    font-weight: 700;
    text-decoration: none;
}

.name-link:hover {
    text-decoration: underline;
}

.student-login-cell {
    display: grid;
    gap: 6px;
}

.student-password-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-password-value {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    color: #52657d;
    letter-spacing: 0.04em;
}

.course-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5f9ff;
    border: 1px solid #d5e3fb;
    color: #2d4e8e;
    font-weight: 700;
}

.panel h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.student-table th,
.student-table td,
.student-completed-table th,
.student-completed-table td {
    vertical-align: middle;
}

.student-table tbody tr:nth-child(odd),
.student-completed-table tbody tr:nth-child(odd) {
    background: #fbfdff;
}

.student-completed-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.student-completed-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fbfdff;
}

.student-completed-item strong {
    line-height: 1.5;
}

.student-completed-item .muted {
    font-size: 13px;
}

.student-memo-preview {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.student-memo-preview p {
    margin: 0;
    line-height: 1.65;
}

.student-table-actions {
    margin-bottom: 10px;
}

.student-inline-form {
    align-items: center;
    gap: 10px;
}

.student-inline-form select {
    min-width: 180px;
}

.student-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.student-id-password-cell {
    display: grid;
    gap: 8px;
    min-width: 120px;
}

.student-password-reveal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-password-reveal:has(details[open]) .password-mask,
.student-meta-item:has(> details.student-password-reveal[open]) > .password-mask,
td:has(> .password-mask + details.student-password-reveal[open]) > .password-mask {
    display: none;
}

.password-mask {
    color: #637083;
    letter-spacing: 2px;
    font-weight: 800;
}

.student-password-reveal details {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

details.student-password-reveal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-password-reveal summary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #8bd4a0;
    border-radius: 10px;
    background: #fff;
    color: #00863f;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.student-password-reveal summary::-webkit-details-marker {
    display: none;
}

.student-password-reveal details[open] span {
    order: -1;
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 8px;
    background: #eef8ff;
    color: #0f2544;
    font-weight: 800;
}

details.student-password-reveal[open] span {
    order: -1;
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 8px;
    background: #eef8ff;
    color: #0f2544;
    font-weight: 800;
}

.student-primary-action {
    display: grid;
    gap: 6px;
    min-width: 180px;
    padding: 12px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
}

.student-primary-action strong {
    color: #183055;
    font-size: 14px;
}

.student-primary-action.tone-danger {
    border-color: #f1caca;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.student-primary-action.tone-warning {
    border-color: #f3dfb5;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.student-primary-action.tone-success {
    border-color: #cde8db;
    background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.payment-table-actions {
    margin-top: 10px;
}

.student-paid-at {
    display: inline-block;
    font-size: 12px;
}

.password-reset-inline {
    margin-top: 12px;
}

.student-meta-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.student-meta-item strong {
    color: var(--navy);
}

.copy-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.copy-action {
    min-width: auto;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.copy-action.is-copied {
    border-color: var(--ok);
    color: var(--ok);
}

.copy-action.is-copy-failed {
    border-color: var(--danger);
    color: var(--danger);
}

.materials-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.materials-jumpbar {
    margin: 14px 0 0;
}

.materials-workbench-panel {
    margin-top: 14px;
}

.students-workbench-panel {
    margin-top: 14px;
}

.payments-workbench-panel {
    margin-top: 14px;
}

.bookings-workbench-panel {
    margin-top: 14px;
}

.materials-form-grid-advanced {
    margin-top: 12px;
}

.materials-quick-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 2px;
}

.materials-form-course-spotlight {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.1), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f7fcf8 56%, #eef7ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.materials-form-course-spotlight strong {
    display: block;
    margin-bottom: 6px;
    color: #15305b;
}

.materials-quick-switch-btn {
    border-radius: 999px;
}

.materials-quick-switch-btn.is-active {
    background: linear-gradient(135deg, #1463ff, #0d43b8);
    color: #fff;
}

.materials-form-workflow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 14px 0 4px;
}

.materials-form-workflow-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.materials-form-workflow-card strong {
    color: #15305b;
    font-size: 14px;
}

.materials-form-workflow-card small {
    color: #5b6d87;
    line-height: 1.5;
}

.materials-form-workflow-card.is-ready {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), #ffffff);
}

.materials-form-workflow-card.is-pending {
    border-color: rgba(251, 191, 36, 0.24);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), #ffffff);
}

.materials-form-workflow-card.is-active {
    border-color: rgba(20, 99, 255, 0.32);
    box-shadow: 0 14px 26px rgba(20, 99, 255, 0.12);
    transform: translateY(-1px);
}

.materials-form-workflow-step {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8eefc;
    color: #2d4a86;
    font-size: 11px;
    font-weight: 900;
}

.materials-form-note {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.materials-form-note-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #d8e7fb;
    background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.materials-form-note-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
}

.problem-preview-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.problem-preview-stage .problem-viewer {
    gap: 16px;
}

.problem-preview-stage .problem-canvas {
    width: min(100%, var(--problem-width));
    margin: 0 auto;
}

.problem-preview-stage .problem-step-panel {
    width: min(100%, 960px);
    margin: 0 auto;
}

.materials-target-board {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.1), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 56%, #eef7ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.materials-save-route {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 15px 18px;
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background: linear-gradient(135deg, #ffffff 0%, #f7fcf8 54%, #eef7ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.materials-save-route-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.materials-save-route-actions {
    margin-top: 2px;
}

.materials-save-route-actions .compact-link {
    min-width: 0;
}

.materials-next-step-grid,
.problem-tool-next-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.materials-next-step-card,
.problem-tool-next-step-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.materials-next-step-card strong,
.problem-tool-next-step-card strong {
    color: #15305b;
}

.materials-next-step-card span,
.problem-tool-next-step-card span {
    color: #173055;
    font-weight: 800;
}

.materials-next-step-card small,
.problem-tool-next-step-card small {
    color: var(--muted);
    line-height: 1.6;
}

.materials-sequence-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(255, 211, 128, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f7fcf8 54%, #eef7ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.materials-sequence-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.materials-sequence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.materials-sequence-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.94);
}

.materials-sequence-card strong {
    color: #15305b;
    font-size: 14px;
}

.materials-sequence-step {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8eefc;
    color: #2d4a86;
    font-size: 11px;
    font-weight: 900;
}

.materials-sequence-card.is-current {
    border-color: rgba(20, 99, 255, 0.24);
    background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.materials-target-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.materials-target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.materials-target-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.94);
}

.materials-target-card strong {
    color: #15305b;
    font-size: 13px;
}

.materials-target-card span {
    color: #10213d;
    font-size: 16px;
    font-weight: 800;
}

.materials-target-card.tone-ok {
    border-color: rgba(34, 197, 94, 0.22);
    background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 100%);
}

.materials-target-card.tone-pending {
    border-color: rgba(255, 196, 78, 0.28);
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.materials-target-card.tone-focus {
    border-color: rgba(20, 99, 255, 0.22);
    background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.materials-advanced-settings {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed #d5e3d9;
    background: #fbfefc;
}

.materials-advanced-settings summary {
    cursor: pointer;
    color: #25506c;
    font-weight: 800;
}

.materials-advanced-settings p {
    margin: 12px 0 0;
}

.booking-admin-summary-row,
.booking-admin-student-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.booking-admin-filter-panel {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0 16px;
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    width: auto;
    max-width: 100%;
}

.booking-filter-focus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.seat-card-warning {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff2df;
    color: #a95d00;
    font-size: 12px;
    font-weight: 800;
}

.lesson-access-panel,
.lesson-lock-panel {
    margin-top: 16px;
}

.lesson-lock-panel p {
    margin: 8px 0 0;
}

.note-editor textarea {
    min-height: 140px;
    border-radius: 16px;
    background: #fcfeff;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-box {
    width: min(480px, 100%);
}

.login-box .hero {
    margin-bottom: 18px;
    text-align: center;
}

.login-box .hero h1 {
    margin-bottom: 0;
    text-align: center;
}

.login-form-panel {
    padding: 28px 22px 24px;
}

.login-form-panel .form-grid {
    margin-bottom: 22px;
}

.login-actions {
    justify-content: center;
    margin-top: 6px;
}

.login-submit-button {
    min-width: 160px;
    min-height: 48px;
    justify-content: center;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(27, 92, 255, 0.22);
}

.dashboard-intro,
.student-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-intro {
    margin-bottom: 16px;
    padding: 4px 6px;
}

.dashboard-intro h2,
.student-focus-card h3,
.next-booking-card h4 {
    margin: 8px 0 8px;
    color: var(--navy);
}

.student-focus-card,
.next-booking-card,
.course-summary-card,
.overview-note {
    position: relative;
    overflow: hidden;
}

.student-focus-card::after,
.next-booking-card::after,
.overview-note::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 92, 255, 0.12), transparent 65%);
}

.next-booking-time {
    margin: 10px 0 4px;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    color: var(--navy);
}

.next-booking-slot {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #35517c;
}

.student-summary-grid,
.compact-stats {
    align-items: stretch;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.compact-link {
    border-radius: 999px;
    padding-inline: 12px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 18px;
}

.student-list-panel,
.student-form-panel,
.course-admin-panel,
.course-form-panel {
    padding: 20px;
}

.course-table th,
.course-table td {
    vertical-align: middle;
}

.course-table tbody tr:nth-child(odd) {
    background: #fbfdff;
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.calendar-head h3 {
    margin-bottom: 4px;
}

.booking-calendar {
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.booking-calendar th {
    padding: 14px 10px;
    background: #f6f9ff;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}

.booking-calendar td {
    min-width: 132px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.booking-calendar td:first-child,
.booking-calendar th:first-child {
    min-width: 150px;
    text-align: left;
    background: #fcfdff;
}

.booking-panel {
    padding: 20px;
}

.booking-calendar-wrap {
    overflow-x: auto;
}

.booking-period-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fcfdff;
}

.calendar-cell-wrap {
    text-align: center;
    vertical-align: middle;
}

.calendar-cell-form,
.calendar-state {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.calendar-cell-form .muted,
.calendar-state .muted {
    font-size: 12px;
}

.calendar-book-btn {
    width: 100%;
    max-width: 108px;
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1463ff, #0d43b8);
    box-shadow: 0 10px 22px rgba(20, 99, 255, 0.18);
}

.calendar-state.booked {
    background: linear-gradient(180deg, #eef9f2, #f8fffb);
    border-color: #caead5;
    color: #18743b;
}

.calendar-state.full {
    background: linear-gradient(180deg, #fff7e8, #fffdf8);
    border-color: #f2ddb0;
    color: #ab6b00;
}

.calendar-state.locked {
    background: linear-gradient(180deg, #f2f5fb, #fafcff);
    border-color: #dbe3ef;
    color: #5d6e86;
}

.calendar-state.closed,
.calendar-state.past,
.calendar-state.none {
    background: #f5f7fb;
    color: #708198;
}

.calendar-state strong {
    font-size: 14px;
}

.booking-flex-note {
    display: inline-flex;
    align-items: center;
    margin: 8px 0 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff7df;
    color: #8a5b00;
    font-weight: 800;
}

.booking-change-form {
    margin: 0;
    width: 100%;
}

.booking-change-btn {
    width: 100%;
    min-height: 88px;
    padding: 12px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef9f2, #f8fffb);
    color: #fff;
    box-shadow: 0 10px 22px rgba(24, 121, 67, 0.12);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #18743b;
    font-weight: 800;
}

.booking-change-btn span {
    font-size: 15px;
    line-height: 1.2;
}

.booking-change-btn small {
    font-size: 11px;
    line-height: 1.4;
    color: #c53a4a;
    font-weight: 900;
    white-space: nowrap;
}

.booking-change-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    background: linear-gradient(180deg, #f4f5f7, #ffffff);
    color: #6a7486;
}

.booking-change-btn:disabled small {
    color: #d16d3f;
}

body.student-mode .booking-flex-note {
    border: 3px solid var(--pop-ink);
    background: #fffdf4;
    color: var(--pop-ink);
    box-shadow: 4px 4px 0 var(--pop-ink);
}

body.student-mode .booking-change-btn {
    border: 3px solid var(--pop-ink);
    background: linear-gradient(180deg, #ecfff5, #f9fffb);
    box-shadow: 3px 3px 0 var(--pop-ink);
    color: var(--pop-ink);
    font-weight: 900;
}

body.student-mode .booking-change-btn small {
    color: #d64555;
}

@media (max-width: 900px) {
    .page {
        padding: 12px 12px 28px;
    }

    .app-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border-radius: 20px;
    }

    .app-header-side {
        justify-content: space-between;
    }

    .dashboard-intro,
    .student-home-hero,
    body.student-mode .student-roadmap-hero,
    .split {
        grid-template-columns: 1fr;
    }

    body.student-mode .completed-course-grid,
    body.student-mode .course-track-row,
    body.student-mode .completed-course-item {
        grid-template-columns: 1fr;
    }

    body.student-mode .course-action-group {
        justify-content: flex-start;
    }

    .schedule-meta,
    .time-stage-body {
        grid-template-columns: 1fr;
    }

    .time-stage-body .time-select-group {
        grid-template-columns: 1fr 16px 1fr;
    }

    .time-stage-label {
        grid-column: 1 / -1;
    }

    .student-detail-head {
        flex-direction: column;
    }

    .student-profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .calendar-head {
        flex-direction: column;
    }

    .card-head {
        flex-direction: column;
    }

    .owner-go-live-cockpit-head,
    .owner-go-live-card-head,
    .owner-go-live-report-top,
    .owner-launch-verdict-head,
    .owner-immediate-action-head,
    .owner-runway-summary-head,
    .materials-next-action-head {
        flex-direction: column;
    }

    .owner-launch-verdict-body,
    .owner-immediate-action-body,
    .materials-next-action-body,
    .owner-go-live-order-item {
        grid-template-columns: 1fr;
    }

    .materials-migration-cockpit-head,
    .materials-migration-cockpit-card-head,
    .materials-migration-file-focus-top {
        flex-direction: column;
    }

    .materials-migration-fast-route-item {
        grid-template-columns: 1fr;
    }

    .student-workspace-cockpit-head {
        flex-direction: column;
    }

    body.student-mode .student-learning-head {
        flex-direction: column;
    }

    .booking-calendar {
        min-width: 920px;
    }
}

@media (max-width: 640px) {
    .brand-block h1 {
        font-size: 26px;
    }

    .account-chip {
        width: 100%;
    }

    .app-header-side {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        min-height: 40px;
        padding: 9px 14px;
    }

    .panel {
        padding: 16px;
        border-radius: 18px;
    }

    body.student-mode .brand-block {
        align-items: flex-start;
    }

    body.student-mode .student-brand-logo {
        width: 48px;
        height: 48px;
    }

    body.student-mode .student-roadmap-hero,
    body.student-mode .course-track-card {
        padding: 24px 18px;
    }

    body.student-mode .course-track-label {
        left: 10px;
        top: -18px;
        padding: 9px 16px;
    }

    body.student-mode .course-track-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body.student-mode .course-action {
        flex: 1 1 130px;
    }
}

/* Student refresh: calm SCROOM green dashboard inspired by the supplied mockup. */
body.student-mode {
    --student-green: #22a846;
    --student-green-dark: #168137;
    --student-blue: #1687e8;
    --student-teal: #18a6b8;
    --student-yellow: #ffc107;
    --student-bg: #f4f6f8;
    --student-card: #ffffff;
    --student-line: #d9dee5;
    --student-text: #0f172a;
    --student-muted: #64748b;
    --student-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    font-family: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
    background: var(--student-bg);
    color: var(--student-text);
    overflow-x: hidden;
}

body.student-mode .page {
    max-width: 1280px;
    padding: 0 18px 32px;
}

body.student-mode .app-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: center;
    margin: 0 calc(50% - 50vw) 16px;
    padding: 10px clamp(18px, 3.8vw, 42px);
    border: 0;
    border-radius: 0;
    background: var(--student-green);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    z-index: 30;
}

body.student-mode .brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.student-mode .student-brand-logo {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 9px;
    box-shadow: none;
    background: #fff;
}

body.student-mode .brand-kicker {
    display: none;
}

body.student-mode .brand-kicker::before,
body.student-mode .section-kicker::before,
body.student-mode .course-summary-card::before,
body.student-mode .student-booking-panel::before,
body.student-mode .student-learning-shell::before,
body.student-mode .student-roadmap-hero::after {
    display: none;
}

body.student-mode .brand-block h1 {
    margin: 0;
    color: #fff;
    font-family: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", sans-serif;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

body.student-mode .header-context-name,
body.student-mode .header-student-name {
    display: inline-block;
    margin-left: 0.28em;
    font-size: 0.95em;
    font-weight: 900;
    letter-spacing: 0;
    vertical-align: baseline;
    opacity: 0.96;
}

body.student-mode .app-header-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.student-mode .header-utility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

body.student-mode .header-utility-btn:hover,
body.student-mode .header-utility-btn:focus-visible,
body.student-mode .header-utility-btn.active {
    background: #fff;
    color: var(--student-green-dark);
}

body.student-mode .account-chip {
    display: none;
}

body.student-mode .account-chip span {
    display: none;
}

body.student-mode .header-logout,
body.student-mode button.secondary.header-logout {
    border: 0;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    box-shadow: none;
    min-height: 42px;
    padding: 0 18px;
    font-weight: 800;
}

body.student-mode .header-logout:hover,
body.student-mode .header-logout:focus-visible {
    background: #b42318;
    color: #fff;
}

body.student-mode .app-nav {
    grid-column: auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

body.student-mode .nav-link {
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
    font-weight: 800;
    white-space: nowrap;
}

body.student-mode .nav-link:hover,
body.student-mode .nav-link.active {
    background: #fff;
    color: var(--student-green-dark);
    box-shadow: none;
}

body.student-mode .panel,
body.student-mode .course-track-card,
body.student-mode .student-booking-panel,
body.student-mode .student-learning-shell,
body.student-mode .lesson-summary-panel,
body.student-mode .lesson-card,
body.student-mode .lesson-complete-panel {
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: var(--student-card);
    box-shadow: var(--student-shadow);
}

body.student-mode .student-status-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #27b34f;
    border-left: 8px solid var(--student-green);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--student-shadow);
}

body.student-mode .student-status-name {
    font-size: 20px;
    font-weight: 900;
}

body.student-mode .student-status-meta {
    margin-top: 5px;
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 700;
}

body.student-mode .student-status-meta-label {
    margin-top: 6px;
    color: var(--student-muted);
    font-size: 12px;
    font-weight: 800;
}

body.student-mode .student-status-meta-strong {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--student-text);
}

body.student-mode .status-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #e8f8ed;
    color: var(--student-green-dark);
    font-weight: 900;
    white-space: nowrap;
}

body.student-mode .student-quick-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

body.student-mode .student-dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 14px;
    margin-bottom: 18px;
}

body.student-mode .student-notice-card {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--student-line);
    border-left: 8px solid var(--student-blue);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--student-shadow);
}

body.student-mode .student-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--student-text);
    font-size: 18px;
    font-weight: 900;
}

body.student-mode .student-notice-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ecfdf3;
    font-size: 18px;
}

body.student-mode .student-notice-body {
    color: var(--student-muted);
    line-height: 1.8;
    font-weight: 700;
}

body.student-mode .student-action-checklist-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 20px;
}

body.student-mode .student-action-checklist-head h3 {
    margin: 6px 0 0;
}

body.student-mode .student-action-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.student-mode .student-action-checklist-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--student-line);
    background: #fff;
    box-shadow: var(--student-shadow);
}

body.student-mode .student-action-checklist-card strong {
    color: var(--student-text);
    font-size: 16px;
}

body.student-mode .student-action-checklist-card p {
    margin: 0;
    color: var(--student-muted);
    font-weight: 700;
    line-height: 1.7;
}

body.student-mode .student-action-checklist-step {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2f5fd0;
    font-size: 11px;
    font-weight: 900;
}

body.student-mode .student-action-checklist-card.action-booking {
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
}

body.student-mode .student-action-checklist-card.action-materials {
    background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

body.student-mode .student-action-checklist-card.action-problems {
    background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
}

body.student-mode .student-summary-box {
    padding: 16px;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--student-shadow);
}

body.student-mode .student-summary-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1;
}

body.student-mode .student-summary-box span {
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 800;
}

body.student-mode .student-focus-card,
body.student-mode .next-booking-card {
    display: grid;
    gap: 10px;
    padding: 20px;
}

body.student-mode .student-focus-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(52, 211, 153, 0.18), transparent 34%),
        radial-gradient(circle at 18% 78%, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body.student-mode .student-focus-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

body.student-mode .student-focus-pills {
    margin-top: 2px;
}

body.student-mode .student-focus-message {
    position: relative;
    margin: -2px 0 2px;
    color: #146c43;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.6;
}

body.student-mode .student-focus-contract-line {
    position: relative;
    display: grid;
    gap: 4px;
}

body.student-mode .student-focus-contract-line strong {
    color: var(--student-text);
    font-size: 18px;
    line-height: 1.6;
}

body.student-mode .student-focus-contract-line span {
    color: var(--student-muted);
    font-size: 14px;
    font-weight: 800;
}

body.student-mode .student-focus-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

body.student-mode .student-focus-stat-card {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.student-mode .student-focus-stat-card strong {
    color: var(--student-text);
    font-size: 18px;
    line-height: 1.45;
}

body.student-mode .student-focus-stat-card span {
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

body.student-mode .student-focus-stat-label {
    color: #285f9b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.student-mode .student-focus-stat-card.tone-plan {
    background: linear-gradient(180deg, rgba(237, 247, 255, 0.94), rgba(255, 255, 255, 0.98));
}

body.student-mode .student-focus-stat-card.tone-payment {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.98));
}

body.student-mode .student-focus-stat-card.tone-booking {
    background: linear-gradient(180deg, rgba(255, 249, 235, 0.95), rgba(255, 255, 255, 0.98));
}

body.student-mode .student-focus-stat-card.tone-joined {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

body.student-mode .student-focus-stat-card.tone-tenure {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
}

body.student-mode .student-focus-course-board {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #d9e5f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
}

body.student-mode .student-focus-course-label {
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 800;
}

body.student-mode .student-focus-course-name {
    color: var(--student-text);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.35;
}

body.student-mode .student-dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.student-mode .student-focus-card h3,
body.student-mode .next-booking-card h4 {
    margin: 0;
}

body.student-mode .next-booking-time {
    color: var(--student-text);
    font-size: 22px;
    font-weight: 900;
}

body.student-mode .next-booking-card h4,
body.student-mode .student-focus-card h3 {
    font-size: 28px;
    line-height: 1.35;
}

body.student-mode .next-booking-slot {
    color: var(--student-muted);
    font-size: 18px;
    font-weight: 800;
}

body.student-mode .student-booking-mini-list {
    display: grid;
    gap: 10px;
}

body.student-mode .student-booking-mini-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #fff;
}

body.student-mode .student-booking-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f8ed;
    color: var(--student-green-dark);
    font-size: 13px;
    font-weight: 900;
}

body.student-mode .student-booking-mini-badge.is-done {
    background: #eef2ff;
    color: #3150a5;
}

body.student-mode .student-booking-mini-main {
    display: grid;
    gap: 4px;
}

body.student-mode .student-booking-mini-main strong {
    color: var(--student-text);
    font-size: 17px;
    line-height: 1.4;
}

body.student-mode .student-booking-mini-main span {
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 700;
}

body.student-mode .student-mini-calendar {
    display: grid;
    gap: 12px;
}

body.student-mode .student-mini-calendar-weekdays,
body.student-mode .student-mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

body.student-mode .student-mini-calendar-weekday {
    text-align: center;
    color: var(--student-muted);
    font-size: 12px;
    font-weight: 900;
}

body.student-mode .student-mini-calendar-weekday.is-sunday {
    color: #d92d20;
}

body.student-mode .student-mini-calendar-weekday.is-saturday {
    color: #1d4ed8;
}

body.student-mode .student-mini-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid #d6e0ec;
    background: #f8fafc;
    color: var(--student-text);
    font-size: 15px;
    font-weight: 800;
}

body.student-mode .student-mini-calendar-day.is-sunday {
    color: #d92d20;
}

body.student-mode .student-mini-calendar-day.is-saturday {
    color: #1d4ed8;
}

body.student-mode .student-mini-calendar-day.is-empty {
    border-color: transparent;
    background: transparent;
}

body.student-mode .student-mini-calendar-day.has-booking.is-reserved {
    border-color: #15803d;
    background: #16a34a;
    color: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(20, 83, 45, 0.22);
}

body.student-mode .student-mini-calendar-day.has-booking.is-done {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(30, 64, 175, 0.22);
}

body.student-mode .student-mini-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px #0f172a;
}

body.student-mode .student-mini-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--student-muted);
    font-size: 12px;
    font-weight: 800;
}

body.student-mode .student-mini-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.student-mode .student-mini-calendar-legend i {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

body.student-mode .student-mini-calendar-legend i.is-reserved {
    background: #16a34a;
}

body.student-mode .student-mini-calendar-legend i.is-done {
    background: #2563eb;
}

body.student-mode .student-notice-card {
    position: relative;
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

body.student-mode .student-notice-body {
    padding: 18px 22px 22px;
    color: var(--student-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.9;
}

body.student-mode .student-notice-body a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 3px;
    color: var(--student-green-dark);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

body.student-mode .course-track-card {
    position: relative;
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
}

body.student-mode .course-track-card > .muted {
    margin: 0;
    padding: 28px 22px 0;
}

body.student-mode .student-empty-course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

body.student-mode .student-empty-course-row .muted {
    margin: 0;
    line-height: 1.8;
}

body.student-mode .course-track-card > .course-pick-stack,
body.student-mode .course-track-card > .course-roadmap-groups,
body.student-mode .course-track-card > .completed-course-grid {
    padding: 16px 22px 22px;
}

body.student-mode .course-track-label {
    position: static;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 15px 20px;
    border-radius: 0;
    background: #f8fafc;
    color: var(--student-text);
    box-shadow: none;
    transform: none;
    font-size: 20px;
    font-weight: 900;
}

body.student-mode .course-track-label::before,
body.student-mode .student-learning-shell h3::before,
body.student-mode .booking-panel h3::before {
    content: "";
    width: 7px;
    height: 24px;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--student-green);
}

body.student-mode .course-track-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px 10px;
}

body.student-mode .booking-summary-grid .context-summary-card {
    gap: 6px;
}

body.student-mode .booking-summary-grid .context-summary-card strong {
    font-size: 15px;
}

body.student-mode .booking-summary-grid .context-summary-card p {
    color: var(--student-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

body.student-mode .course-track-row,
body.student-mode .completed-course-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 22px;
    border-top: 1px solid var(--student-line);
}

body.student-mode .completed-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

body.student-mode .course-track-completed > .muted {
    padding: 18px 22px 10px;
    line-height: 1.8;
}

body.student-mode .completed-course-item {
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    border-radius: 0;
    box-shadow: none;
}

body.student-mode .completed-course-item:nth-child(odd),
body.student-mode .course-track-row:nth-child(odd) {
    background: #f8fafc;
}

body.student-mode .course-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--student-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    font-size: 20px;
}

body.student-mode .course-track-main h3,
body.student-mode .completed-course-item h3 {
    margin: 0 0 3px;
    color: var(--student-text);
    font-size: 21px;
    font-weight: 900;
}

body.student-mode .muted {
    color: var(--student-muted);
}

body.student-mode .status-pill,
body.student-mode .done-pill,
body.student-mode .detail-pill {
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

body.student-mode .status-pill {
    background: #e0f2fe;
    color: #075985;
}

body.student-mode .done-pill {
    background: #dcfce7;
    color: #166534;
}

body.student-mode .course-action-group {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

body.student-mode .course-action,
body.student-mode .course-pick-btn,
body.student-mode a.secondary,
body.student-mode button.secondary,
body.student-mode .calendar-book-btn,
body.student-mode .booking-change-btn {
    min-height: 40px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 900;
}

body.student-mode .course-action {
    color: #fff;
}

body.student-mode .material-action {
    background: var(--student-blue);
}

body.student-mode .problem-action {
    background: var(--student-teal);
}

body.student-mode .course-action-disabled,
body.student-mode .lesson-lock-pill {
    background: #f1f5f9;
    color: var(--student-muted);
}

body.student-mode .course-action-disabled {
    border: 1px solid #d7e0eb;
    cursor: not-allowed;
    opacity: 1;
}

body.student-mode .course-pick-btn {
    background: var(--student-green);
    color: #fff;
}

body.student-mode .course-pick-card {
    display: grid;
    justify-items: flex-start;
    gap: 8px;
    min-height: 132px;
    padding: 16px 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.92) 0%, rgba(22, 163, 74, 0.96) 100%);
    box-shadow: 0 16px 26px rgba(34, 139, 72, 0.18);
    text-align: left;
}

body.student-mode .course-pick-card-category,
body.student-mode .course-pick-card-grade,
body.student-mode .course-pick-card-meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

body.student-mode .course-pick-card-category {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

body.student-mode .course-pick-card strong {
    font-size: 20px;
    line-height: 1.4;
    color: #fff;
}

body.student-mode .course-pick-card-grade {
    background: rgba(255, 255, 255, 0.94);
    color: var(--student-green-dark);
}

body.student-mode .course-pick-card-meta {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
}

body.student-mode a.secondary,
body.student-mode button.secondary {
    background: #fff;
    color: var(--student-green-dark);
    border: 1px solid #9bd9aa;
}

body.student-mode .student-booking-panel,
body.student-mode .student-learning-shell {
    padding: 20px;
    overflow: visible;
}

body.student-mode .calendar-head,
body.student-mode .student-learning-head {
    align-items: center;
    margin-bottom: 10px;
}

body.student-mode .section-kicker {
    color: var(--student-green-dark);
    letter-spacing: 0;
    text-transform: none;
}

body.student-mode .booking-flex-note {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #e8f8ed;
    color: var(--student-green-dark);
    box-shadow: none;
    text-align: center;
}

body.student-mode .booking-course-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #f8fafc;
}

body.student-mode .booking-week-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    margin-top: 14px;
    margin-bottom: 14px;
}

body.student-mode .booking-week-toolbar-side {
    display: flex;
    align-items: stretch;
}

body.student-mode .booking-week-toolbar-side-right {
    justify-content: flex-end;
}

body.student-mode .booking-week-nav-btn {
    min-width: 112px;
}

body.student-mode .booking-time-head,
body.student-mode .booking-time-cell {
    position: sticky;
    left: 0;
    width: 116px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    box-shadow: 8px 0 16px rgba(15, 23, 42, 0.05);
}

body.student-mode .booking-time-head {
    z-index: 5;
}

body.student-mode .booking-time-cell {
    z-index: 4;
}

body.student-mode .booking-time-cell strong {
    display: inline-block;
}

body.student-mode .booking-day-head {
    text-align: center;
}

body.student-mode .booking-calendar th.booking-day-head.booking-day-sunday {
    color: #d92d20;
}

body.student-mode .booking-calendar th.booking-day-head.booking-day-saturday {
    color: #2563eb;
}

body.student-mode .booking-day-head .muted {
    display: inline-block;
    margin-top: 2px;
}

body.student-mode .booking-calendar th.booking-day-head.booking-day-sunday .muted {
    color: #d92d20;
}

body.student-mode .booking-calendar th.booking-day-head.booking-day-saturday .muted {
    color: #2563eb;
}

body.student-mode .booking-calendar {
    border-collapse: collapse;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--student-shadow);
}

body.student-mode .booking-calendar th {
    background: #fff;
    color: var(--student-text);
    border-bottom: 1px solid var(--student-line);
}

body.student-mode .booking-calendar td {
    border-bottom: 1px solid var(--student-line);
}

body.student-mode .booking-calendar tbody tr:nth-child(odd) {
    background: #f8fafc;
}

body.student-mode .calendar-cell-form,
body.student-mode .calendar-state,
body.student-mode .booking-change-btn {
    min-height: 74px;
    border: 1px solid var(--student-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

body.student-mode .calendar-book-btn {
    background: var(--student-green);
    color: #fff;
}

body.student-mode .booking-change-btn {
    background: #e8f8ed;
    color: var(--student-green-dark);
}

body.student-mode .booking-change-btn.is-temporary {
    background: #fff6dd;
    color: #8a5b00;
}

body.student-mode .booking-change-btn small {
    color: #c53a4a;
}

body.student-mode .booking-change-btn.is-temporary small {
    color: #a16207;
}

body.student-mode .calendar-state-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
}

body.student-mode .booking-change-btn:disabled {
    background: #f3f5f8;
    color: #6a7486;
}

body.student-mode .booking-change-btn:disabled small {
    color: #d16d3f;
}

body.student-mode .lesson-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

body.student-mode .lesson-card {
    padding: 20px;
}

body.student-mode .lesson-complete-panel {
    background: #fff;
}

.lesson-flow-panel {
    margin-bottom: 16px;
    padding: 18px 20px;
}

.lesson-flow-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.lesson-flow-panel-materials {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        linear-gradient(135deg, rgba(82, 184, 255, 0.14), rgba(255, 214, 102, 0.12));
}

.lesson-flow-panel-problems {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 252, 0.98)),
        linear-gradient(135deg, rgba(67, 209, 125, 0.18), rgba(82, 184, 255, 0.12));
}

.lesson-flow-panel-complete {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.98)),
        linear-gradient(135deg, rgba(255, 189, 89, 0.2), rgba(255, 118, 154, 0.12));
}

.lesson-flow-panel h4 {
    margin: 0 0 8px;
    color: var(--student-text);
    font-size: 22px;
    font-weight: 900;
}

.lesson-flow-panel p {
    margin: 0;
}

body.student-mode .compact-learning-head {
    justify-content: space-between;
    gap: 16px;
}

body.student-mode .learning-top-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.student-mode .account-settings-shell {
    display: grid;
    gap: 18px;
}

body.student-mode .account-settings-grid {
    display: grid;
    gap: 16px;
}

body.student-mode .account-settings-card {
    border: 1px solid var(--student-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

body.student-mode .account-settings-card-subtle {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.student-mode .account-settings-body {
    display: grid;
    gap: 14px;
    padding: 18px 22px 22px;
}

body.student-mode .account-settings-form {
    display: grid;
    gap: 12px;
}

body.student-mode .account-inline-note {
    margin: 0;
}

body.student-mode .learning-course-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #f8fafc;
}

body.student-mode .student-course-progress-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

body.student-mode .student-course-progress-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--student-line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(32, 70, 110, 0.06);
}

body.student-mode .student-course-progress-label {
    color: var(--student-accent-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.student-mode .student-course-progress-card strong {
    color: var(--student-text);
    font-size: 18px;
    line-height: 1.45;
}

body.student-mode .learning-roadmap-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid var(--student-line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 214, 102, 0.18), rgba(255, 255, 255, 0.92) 42%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(32, 70, 110, 0.08);
}

body.student-mode .learning-roadmap-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

body.student-mode .learning-roadmap-head h4 {
    margin: 0 0 6px;
}

body.student-mode .learning-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

body.student-mode .roadmap-step {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--student-line);
    background: #fff;
}

body.student-mode .roadmap-step h5 {
    margin: 0 0 4px;
    color: var(--student-text);
    font-size: 16px;
    font-weight: 900;
}

body.student-mode .roadmap-step p {
    margin: 0;
    color: var(--student-muted);
    font-size: 13px;
    line-height: 1.6;
}

body.student-mode .roadmap-step strong {
    color: var(--student-text);
    font-size: 13px;
}

body.student-mode .roadmap-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #eef2ff;
    color: #3b4c87;
    font-size: 15px;
    font-weight: 900;
}

body.student-mode .roadmap-step.is-current {
    border-color: transparent;
    background: linear-gradient(135deg, #e6fff0, #ffffff);
    box-shadow: 0 12px 26px rgba(39, 148, 95, 0.12);
}

body.student-mode .roadmap-step.is-current .roadmap-step-no {
    background: linear-gradient(135deg, #43d17d, #24a45d);
    color: #fff;
}

body.student-mode .roadmap-step.is-waiting {
    border-color: #d7def3;
    background: linear-gradient(135deg, #f7f9ff, #ffffff);
}

body.student-mode .roadmap-step.is-waiting .roadmap-step-no {
    background: linear-gradient(135deg, #7f8fc9, #6276b4);
    color: #fff;
}

body.student-mode .roadmap-step.is-done {
    border-color: #cdebd7;
    background: linear-gradient(135deg, #f0fff5, #ffffff);
}

body.student-mode .roadmap-step.is-done .roadmap-step-no {
    background: linear-gradient(135deg, #2fbe67, #1e8c49);
    color: #fff;
}

body.student-mode .roadmap-step.is-locked {
    background: #f8fafc;
    opacity: 0.82;
}

body.student-mode .roadmap-step.is-locked .roadmap-step-no {
    background: #e5e7eb;
    color: #6b7280;
}

body.student-mode .learning-course-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--student-text);
}

body.student-mode .learning-course-meta {
    margin-top: 4px;
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 700;
}

body.student-mode .learning-progress-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.student-mode .learning-progress-pill,
body.student-mode .mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

body.student-mode .learning-progress-pill {
    background: #e8f8ed;
    color: var(--student-green-dark);
}

body.student-mode .learning-progress-pill.learning-progress-pill-accent {
    background: #eef2ff;
    color: #3047a4;
}

body.student-mode .learning-mode-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.student-mode .mode-pill {
    border: 1px solid var(--student-line);
    background: #fff;
    color: var(--student-muted);
}

body.student-mode .mode-pill.active {
    border-color: transparent;
    background: var(--student-green);
    color: #fff;
}

body.student-mode .mode-pill.disabled {
    background: #f1f5f9;
    color: var(--student-muted);
}

body.student-mode .lesson-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

body.student-mode .lesson-title-with-mode {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.student-mode .lesson-mode-inline-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f8ed;
    color: var(--student-green-dark);
    font-size: 13px;
    font-weight: 900;
}

body.student-mode .student-next-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid var(--student-line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        linear-gradient(135deg, rgba(82, 184, 255, 0.14), rgba(255, 214, 102, 0.18));
    box-shadow: 0 18px 36px rgba(32, 70, 110, 0.08);
}

body.student-mode .student-next-action-card.action-problems {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 252, 0.98)),
        linear-gradient(135deg, rgba(67, 209, 125, 0.18), rgba(82, 184, 255, 0.12));
}

body.student-mode .student-next-action-card.action-complete {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.98)),
        linear-gradient(135deg, rgba(255, 189, 89, 0.2), rgba(255, 118, 154, 0.12));
}

body.student-mode .student-next-action-card.action-booking {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
        linear-gradient(135deg, rgba(119, 140, 255, 0.16), rgba(82, 184, 255, 0.12));
}

body.student-mode .context-summary-card {
    border: 2px solid var(--student-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(32, 70, 110, 0.06);
}

body.student-mode .context-summary-card strong {
    color: var(--student-ink);
}

body.student-mode .context-summary-card p {
    color: var(--student-muted);
}

body.student-mode .student-lesson-summary-grid {
    margin-top: 4px;
}

body.student-mode .student-lesson-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 18px;
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid var(--student-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 214, 102, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow: 0 18px 36px rgba(32, 70, 110, 0.08);
}

body.student-mode .student-lesson-hero.tone-booking {
    background:
        radial-gradient(circle at top right, rgba(114, 164, 255, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
}

body.student-mode .student-lesson-hero.tone-problems {
    background:
        radial-gradient(circle at top right, rgba(67, 209, 125, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 252, 0.98));
}

body.student-mode .student-lesson-hero.tone-complete {
    background:
        radial-gradient(circle at top right, rgba(255, 150, 116, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.98));
}

body.student-mode .student-lesson-hero-main h4 {
    margin: 0 0 8px;
    color: var(--student-text);
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

body.student-mode .student-lesson-hero-main p {
    margin: 0;
}

body.student-mode .student-lesson-hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
    align-content: start;
}

body.student-mode .student-lesson-hero-stat {
    display: grid;
    gap: 6px;
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.92);
}

body.student-mode .student-lesson-hero-stat span {
    color: var(--student-accent-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.student-mode .student-lesson-hero-stat strong {
    color: var(--student-text);
    font-size: 28px;
    line-height: 1;
}

body.student-mode .student-lesson-hero-stat small {
    color: var(--student-muted);
    font-size: 12px;
    line-height: 1.5;
}

body.student-mode .student-lesson-hero-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.student-mode .course-track-preview-panel {
    margin: 14px 22px 22px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 2px solid rgba(45, 58, 95, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

body.student-mode .course-track-preview-panel-next {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 255, 250, 0.96));
    border-color: rgba(47, 190, 103, 0.16);
}

body.student-mode .course-track-preview-panel strong {
    display: block;
    margin-bottom: 6px;
    color: var(--student-text);
    font-size: 16px;
}

body.student-mode .course-track-preview-panel p {
    margin: 0;
}

body.student-mode .course-track-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body.student-mode .student-notice-card-learning {
    margin-bottom: 16px;
}

body.student-mode .student-next-action-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--student-accent-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.student-mode .student-next-action-card h4 {
    margin: 0 0 8px;
    color: var(--student-text);
    font-size: 22px;
    font-weight: 900;
}

body.student-mode .student-next-action-card p {
    margin: 0;
}

body.student-mode .student-next-action-card.action-booking h4 {
    font-size: 28px;
}

body.student-mode .student-next-action-card.action-booking p {
    font-size: 17px;
    line-height: 1.8;
}

body.student-mode .student-next-action-cta {
    display: flex;
    justify-content: flex-end;
}

body.student-mode .student-next-action-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

body.student-mode .student-lesson-action-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

body.student-mode .student-sequence-jump-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

body.student-mode .student-sequence-jump-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--student-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(32, 70, 110, 0.06);
}

body.student-mode .student-sequence-jump-card.primary-jump {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        linear-gradient(135deg, rgba(82, 184, 255, 0.14), rgba(255, 214, 102, 0.14));
    border-color: rgba(82, 184, 255, 0.24);
}

body.student-mode .student-sequence-jump-card.progress-jump {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 252, 0.98)),
        linear-gradient(135deg, rgba(67, 209, 125, 0.12), rgba(82, 184, 255, 0.08));
}

body.student-mode .student-sequence-jump-card strong {
    color: var(--student-text);
    font-size: 17px;
    line-height: 1.5;
}

body.student-mode .student-sequence-jump-card p {
    margin: 0;
}

body.student-mode .student-lesson-action-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--student-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(32, 70, 110, 0.06);
}

body.student-mode .student-lesson-action-card strong {
    color: var(--student-text);
    font-size: 16px;
}

body.student-mode .student-lesson-action-card p {
    margin: 0;
}

body.student-mode .student-lesson-action-step {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2f5fd0;
    font-size: 11px;
    font-weight: 900;
}

body.student-mode .student-lesson-action-card.action-current {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248, 251, 255, 0.98));
    border-color: rgba(82, 184, 255, 0.24);
}

body.student-mode .student-lesson-action-card.action-booking {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246, 250, 255, 0.98));
}

body.student-mode .student-lesson-action-card.action-materials {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245, 252, 255, 0.98));
}

body.student-mode .student-lesson-action-card.action-problems {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247, 255, 252, 0.98));
}

body.student-mode .student-lesson-action-card.action-complete {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255, 250, 242, 0.98));
}

body.student-mode .course-action.ghost-action {
    background: rgba(255, 255, 255, 0.84);
    color: var(--student-text);
    border: 1px solid rgba(98, 122, 160, 0.24);
    box-shadow: none;
}

body.student-mode .lesson-card-meta {
    margin-top: 6px;
}

body.student-mode .student-lesson-context-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

body.student-mode .detail-pill-focus {
    background: rgba(71, 163, 255, 0.16);
    color: #165cb7;
    border-color: rgba(71, 163, 255, 0.3);
    font-weight: 900;
}

body.student-mode .lesson-step-guide {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cfe1ff;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

body.student-mode .lesson-step-guide.is-done {
    border-color: #bde6c8;
    background: linear-gradient(135deg, #effdf4, #ffffff);
}

body.student-mode .lesson-step-guide strong {
    color: var(--student-text);
    font-size: 14px;
}

body.student-mode .lesson-step-guide p {
    margin: 0;
    color: var(--student-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.student-mode .lesson-material-block {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--student-line);
    border-radius: 12px;
    background: #fff;
}

body.student-mode .lesson-material-block.is-material-mode {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.student-mode .lesson-material-block.problem-focused-material-block {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.student-mode .problem-focused-material-block .slot-actions {
    justify-content: center;
    margin-top: 22px;
}

body.student-mode .problem-focused-material-block .slot-actions .secondary {
    min-width: 220px;
    justify-content: center;
    padding: 15px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #0f766e);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
}

body.student-mode .problem-focused-material-block .slot-actions .secondary:disabled {
    background: #e7f5ec;
    color: #047857;
    box-shadow: none;
}

body.student-mode .lesson-next-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

body.student-mode .lesson-material-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

body.student-mode .lesson-material-actions .slot-actions {
    margin: 0;
}

body.student-mode .lesson-material-actions .secondary,
body.student-mode .lesson-material-actions .course-action {
    min-width: 168px;
    justify-content: center;
}

body.student-mode .lesson-material-actions .material-completed-button:disabled {
    border-color: rgba(220, 38, 38, 0.24);
    background: #fff1f2;
    color: #b91c1c;
    opacity: 1;
}

body.student-mode .lesson-problem-summary-panel {
    margin-bottom: 16px;
    border: 1px solid var(--student-line);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 255, 250, 0.98)),
        linear-gradient(135deg, rgba(67, 209, 125, 0.12), rgba(82, 184, 255, 0.08));
    box-shadow: 0 16px 32px rgba(32, 70, 110, 0.08);
}

body.student-mode .lesson-problem-summary-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

body.student-mode .lesson-problem-summary-head h4 {
    margin: 0 0 8px;
    color: var(--student-text);
}

body.student-mode .lesson-problem-summary-head p {
    margin: 0;
}

.learning-material-viewer {
    display: grid;
    gap: 12px;
}

.learning-material-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.learning-video-frame {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.learning-video-frame iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

.learning-video-frame.is-direct video {
    display: block;
    width: 100%;
    max-height: 76vh;
    background: #000;
}

.learning-material-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    line-height: 1.8;
}

.learning-material-note p {
    margin: 0;
}

.learning-material-note p + p {
    margin-top: 8px;
}

.learning-material-note a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.learning-material-link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.student-mode .completed-learning-panel {
    margin-top: 18px;
}

body.student-mode .student-course-library-digest {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.student-mode .student-course-library-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.student-mode .student-course-library-card strong {
    color: var(--student-text);
    font-size: 15px;
}

body.student-mode .student-course-library-card p {
    margin: 0;
    color: var(--student-text);
    font-size: 20px;
    font-weight: 900;
}

body.student-mode .student-course-library-card span {
    color: var(--student-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

body.student-mode .completed-course-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.student-mode .completed-course-grid-detailed .completed-course-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

body.student-mode .completed-course-grid-detailed .course-action-group {
    grid-column: 2 / -1;
}

body.student-mode .course-track-current .course-track-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

body.student-mode .course-track-current .course-track-main {
    min-width: 0;
}

body.student-mode .course-track-current .course-track-main h3 {
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

body.student-mode .completed-course-grid-detailed .completed-course-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

body.student-mode .completed-course-grid-detailed .completed-course-item > .course-icon + div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

body.student-mode .completed-course-grid-detailed .completed-course-item > .course-icon + div h3 {
    margin: 0;
    white-space: nowrap;
}

body.student-mode .completed-course-grid-detailed .completed-course-item .course-action-group {
    grid-column: auto;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

body.student-mode .completed-course-grid-detailed .student-completed-course-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-block: 14px;
}

body.student-mode .completed-course-grid-detailed .student-completed-course-item .course-action-group {
    grid-column: auto;
    align-items: center;
}

body.student-mode .student-completed-course-main {
    min-width: 0;
}

body.student-mode .next-course-panel {
    display: grid;
    gap: 16px;
}

body.student-mode .student-course-complete-banner {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    background:
        linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.96)),
        linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(82, 184, 255, 0.08));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

body.student-mode .student-course-complete-banner h4 {
    margin: 0;
    color: var(--student-text);
    font-size: 22px;
    font-weight: 900;
}

body.student-mode .student-course-complete-banner p {
    margin: 0;
}

.materials-student-flow-panel {
    margin-top: 16px;
}

.materials-student-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.materials-student-flow-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.materials-student-flow-card strong {
    color: var(--ink-soft);
    font-size: 16px;
}

.materials-student-flow-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.materials-student-flow-card.is-ready {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), #ffffff);
}

.materials-student-flow-card.is-pending {
    border-color: rgba(251, 191, 36, 0.24);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), #ffffff);
}

.materials-student-flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8eefc;
    color: #2d4a86;
    font-size: 12px;
    font-weight: 900;
}

.materials-impact-panel {
    margin-top: 16px;
}

.materials-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.materials-impact-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.materials-impact-card p {
    margin: 0;
    color: #5b6d87;
    line-height: 1.7;
}

.materials-impact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.materials-impact-head strong {
    color: var(--ink-soft);
    font-size: 16px;
}

.materials-impact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.materials-impact-actions {
    gap: 8px;
}

.materials-impact-empty {
    display: grid;
    gap: 10px;
}

body.student-mode table {
    border-collapse: collapse;
}

body.student-mode th {
    background: #fff;
    color: var(--student-text);
}

body.student-mode tbody tr:nth-child(odd) {
    background: #f8fafc;
}

@media (max-width: 900px) {
    body.student-mode .app-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
        margin: 0 calc(50% - 50vw) 14px;
        padding: 10px 12px 12px;
        border-radius: 0;
    }

    body.student-mode .app-header-side {
        width: 100%;
        justify-content: space-between;
    }

    body.student-mode .app-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 8px;
    }

    body.student-mode .nav-link {
        justify-content: center;
        padding: 9px 8px;
        font-size: 13px;
    }

    body.student-mode .header-context-name,
    body.student-mode .header-student-name {
        display: block;
        margin: 6px 0 0;
        font-size: 0.8em;
    }

    body.student-mode .student-status-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    body.student-mode .student-quick-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.student-mode .student-dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    body.student-mode .student-action-checklist-grid {
        grid-template-columns: 1fr;
    }

    body.student-mode .student-dashboard-links {
        flex-direction: column;
    }

    body.student-mode .student-focus-stats,
    body.student-mode .student-course-library-digest {
        grid-template-columns: 1fr;
    }

    body.student-mode .course-track-row,
    body.student-mode .completed-course-item {
        grid-template-columns: 1fr;
    }

    body.student-mode .course-action-group {
        justify-content: flex-start;
    }

    body.student-mode .student-empty-course-row {
        flex-direction: column;
        align-items: flex-start;
    }

    body.student-mode .compact-learning-head,
    body.student-mode .student-lesson-hero,
    body.student-mode .lesson-card-head,
    body.student-mode .learning-course-band,
    body.student-mode .learning-roadmap-head,
    body.student-mode .student-next-action-card,
    .lesson-flow-panel-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    body.student-mode .booking-course-band {
        grid-template-columns: 1fr;
    }

    body.student-mode .booking-week-toolbar {
        grid-template-columns: 1fr;
    }

    body.student-mode .booking-week-toolbar-side,
    body.student-mode .booking-week-toolbar-side-right {
        justify-content: stretch;
    }

    body.student-mode .booking-week-nav-btn {
        width: 100%;
    }

    body.student-mode .learning-roadmap-grid {
        grid-template-columns: 1fr;
    }

    body.student-mode .student-course-progress-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.student-mode .student-lesson-hero-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .materials-student-flow-grid {
        grid-template-columns: 1fr;
    }

    body.student-mode .booking-nav-actions {
        justify-content: flex-start;
    }

    body.student-mode .student-next-action-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .problem-tool-register-summary {
        grid-template-columns: 1fr;
    }

    .problem-viewer-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.student-mode .student-course-progress-board,
    body.student-mode .student-lesson-hero-side,
    body.student-mode .completed-course-grid-detailed {
        grid-template-columns: 1fr;
    }

    .problem-viewer-pills {
        justify-content: flex-start;
    }

    body.student-mode .student-next-action-links,
    body.student-mode .lesson-next-links {
        flex-direction: column;
    }

    body.student-mode .student-lesson-action-board {
        grid-template-columns: 1fr;
    }

    body.student-mode .student-sequence-jump-panel {
        grid-template-columns: 1fr;
    }

    .student-sequence-jump-panel.admin-jump-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.student-mode .student-quick-summary {
        grid-template-columns: 1fr;
    }

    body.student-mode .student-dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    body.student-mode .brand-block h1 {
        font-size: 22px;
    }

    body.student-mode .student-brand-logo {
        width: 38px;
        height: 38px;
    }
}

/* Staff refresh: brighter admin dashboard aligned with the student UI direction. */
body.staff-mode {
    --staff-ink: #2d3142;
    --staff-green: #35b36a;
    --staff-green-dark: #1f7a47;
    --staff-green-soft: #e9fbef;
    --staff-blue-soft: #eaf4ff;
    --staff-yellow: #ffd861;
    --staff-pink: #ff8cac;
    --staff-orange: #ff9f5a;
    --staff-line: rgba(45, 49, 66, 0.16);
    --staff-text: #2d3142;
    --staff-muted: #6c7288;
    --staff-shadow: 6px 6px 0 rgba(45, 49, 66, 0.92);
    background:
        radial-gradient(circle at top left, rgba(255, 140, 172, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(53, 179, 106, 0.18), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, #fdf7ea 56%, #f8fcfb 100%);
    color: var(--staff-text);
    overflow-x: hidden;
}

body.staff-mode .page {
    max-width: 1260px;
    padding: 24px 18px 40px;
}

body.staff-mode .app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 22px 16px;
    border: 3px solid var(--staff-ink);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 216, 97, 0.22), rgba(255, 255, 255, 0.96) 34%),
        rgba(255, 255, 255, 0.96);
    box-shadow: var(--staff-shadow);
    backdrop-filter: blur(10px);
}

body.staff-mode .brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.staff-mode .staff-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 3px solid var(--staff-ink);
    border-radius: 18px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--staff-ink);
}

body.staff-mode .brand-kicker {
    color: var(--staff-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

body.staff-mode .brand-block h1 {
    margin: 2px 0 0;
    color: var(--staff-text);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: 0;
}

body.staff-mode .app-header-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.staff-mode .account-chip {
    padding: 10px 15px;
    border: 3px solid var(--staff-ink);
    border-radius: 999px;
    background: var(--staff-yellow);
    color: var(--staff-ink);
    box-shadow: 4px 4px 0 var(--staff-ink);
}

body.staff-mode .account-chip span {
    color: rgba(45, 49, 66, 0.72);
}

body.staff-mode .header-logout {
    border-radius: 999px;
    background: #fff;
    color: #e24d65;
    border: 3px solid var(--staff-ink);
    box-shadow: 4px 4px 0 var(--staff-ink);
}

body.staff-mode .app-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}

body.staff-mode .nav-link {
    min-height: 42px;
    padding: 10px 16px;
    border: 3px solid var(--staff-ink);
    border-radius: 16px;
    background: #fff;
    color: var(--staff-ink);
    box-shadow: 3px 3px 0 var(--staff-ink);
    font-weight: 900;
}

body.staff-mode .nav-link:hover {
    background: #fff9e7;
    color: var(--staff-ink);
    border-color: var(--staff-ink);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--staff-ink);
}

body.staff-mode .nav-link.active {
    background: linear-gradient(135deg, #4d9cff, #35b36a);
    color: #fff;
    border-color: var(--staff-ink);
    box-shadow: 4px 4px 0 var(--staff-ink);
}

body.staff-mode .flash {
    border-radius: 14px;
    border-width: 1px;
    box-shadow: var(--staff-shadow);
    font-weight: 800;
}

body.staff-mode .flash-success {
    background: #ecf9ef;
    border-color: #bfe7c9;
    color: var(--staff-green-dark);
}

body.staff-mode .flash-error {
    background: #fff5f5;
    border-color: #f3c6cb;
    color: #b23645;
}

body.staff-mode .panel,
body.staff-mode .student-kpi-card,
body.staff-mode .student-subpanel,
body.staff-mode .student-list-panel,
body.staff-mode .student-form-panel,
body.staff-mode .course-admin-panel,
body.staff-mode .course-form-panel {
    border: 3px solid var(--staff-ink);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--staff-shadow);
}

body.staff-mode .panel h3,
body.staff-mode .panel h4 {
    color: var(--staff-text);
}

body.staff-mode .muted,
body.staff-mode label {
    color: var(--staff-muted);
}

body.staff-mode .dashboard-intro {
    margin-bottom: 18px;
    padding: 20px 24px;
    border: 3px solid var(--staff-ink);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 216, 97, 0.92) 0%, rgba(255, 159, 90, 0.88) 48%, rgba(255, 140, 172, 0.84) 100%);
    box-shadow: var(--staff-shadow);
}

body.staff-mode .dashboard-intro h2 {
    margin: 8px 0 6px;
    color: var(--staff-text);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
}

body.staff-mode .section-kicker {
    color: rgba(45, 49, 66, 0.82);
    font-weight: 900;
    letter-spacing: 0.04em;
}

body.staff-mode .compact-stats .panel {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 18px;
    border-width: 3px;
}

body.staff-mode .compact-stats .panel::after {
    content: "";
    position: absolute;
    inset: auto -24px -24px auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 156, 255, 0.18), transparent 70%);
}

body.staff-mode .compact-stats .panel:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 216, 97, 0.3), #fff);
}

body.staff-mode .compact-stats .panel:nth-child(2) {
    background: linear-gradient(135deg, rgba(53, 179, 106, 0.2), #fff);
}

body.staff-mode .compact-stats .panel:nth-child(3) {
    background: linear-gradient(135deg, rgba(77, 156, 255, 0.18), #fff);
}

body.staff-mode .compact-stats .panel strong {
    color: var(--staff-ink);
    font-size: 34px;
}

body.staff-mode .overview-note {
    background: linear-gradient(180deg, #ffffff, #fff8e9);
}

body.staff-mode .overview-note::after {
    background: radial-gradient(circle, rgba(255, 140, 172, 0.18), transparent 65%);
}

body.staff-mode .panel.stat {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 18px;
    border-width: 3px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(77, 156, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fffdf5 44%, #f3fbf7 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.staff-mode a.panel.stat:hover,
body.staff-mode .panel.stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
    border-color: rgba(45, 49, 66, 0.24);
}

body.staff-mode .panel.stat .muted {
    display: block;
    margin-bottom: 8px;
    color: #5f7288;
    font-weight: 800;
}

body.staff-mode .panel.stat strong {
    display: block;
    color: var(--staff-ink);
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.1;
}

body.staff-mode .panel.stat:nth-child(4n + 1) {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.2), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fff9e8 44%, #ffffff 100%);
}

body.staff-mode .panel.stat:nth-child(4n + 2) {
    background:
        radial-gradient(circle at top right, rgba(53, 179, 106, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f2fff6 44%, #ffffff 100%);
}

body.staff-mode .panel.stat:nth-child(4n + 3) {
    background:
        radial-gradient(circle at top right, rgba(77, 156, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f3f9ff 44%, #ffffff 100%);
}

body.staff-mode .panel.stat:nth-child(4n + 4) {
    background:
        radial-gradient(circle at top right, rgba(255, 140, 172, 0.16), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fff5f8 44%, #ffffff 100%);
}

body.staff-mode .students-workbench-panel,
body.staff-mode .student-setup-workbench-panel,
body.staff-mode .payment-note-panel,
body.staff-mode .student-list-panel {
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.14), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8fcf9 56%, #eef8ff 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

body.staff-mode .admin-section-head.compact {
    gap: 10px;
    align-items: flex-start;
}

body.staff-mode .admin-section-head.compact h3,
body.staff-mode .admin-section-head.compact h4 {
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
}

body.staff-mode .student-subpanel {
    padding: 14px;
}

body.staff-mode .student-detail-sections {
    gap: 12px;
    margin-top: 12px;
}

body.staff-mode .lesson-card {
    padding: 14px;
}

body.staff-mode .learning-material-link-row {
    margin-top: 8px;
}

body.staff-mode .learning-material-note p {
    margin: 0;
}

body.staff-mode .student-admin-material-row {
    background: #ffffff;
}

body.staff-mode .ops-action-card {
    position: relative;
    overflow: hidden;
    gap: 12px;
    padding: 18px 18px 20px;
    border-width: 2px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(77, 156, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fffdf7 44%, #f4fbf6 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

body.staff-mode .ops-action-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, #ff8cac 0%, #ffd861 48%, #35b36a 100%);
}

body.staff-mode .ops-action-card strong {
    font-size: 18px;
    color: #163055;
    line-height: 1.4;
}

body.staff-mode .ops-action-card p {
    color: #5e7187;
    line-height: 1.75;
}

body.staff-mode .ops-action-card .row-actions {
    margin-top: 4px;
}

body.staff-mode .ops-action-card.tone-info {
    background:
        radial-gradient(circle at top right, rgba(77, 156, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f3f9ff 44%, #ffffff 100%);
}

body.staff-mode .ops-action-card.tone-success {
    background:
        radial-gradient(circle at top right, rgba(53, 179, 106, 0.16), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f2fff6 44%, #ffffff 100%);
}

body.staff-mode .ops-action-card.tone-warning {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fff8ed 44%, #ffffff 100%);
}

body.staff-mode .owner-runway-summary-card,
body.staff-mode .owner-verification-digest-card,
body.staff-mode .owner-flow-check-item,
body.staff-mode .owner-attention-bucket,
body.staff-mode .owner-attention-bucket-row {
    border-width: 2px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

body.staff-mode input,
body.staff-mode select,
body.staff-mode textarea {
    border: 2px solid rgba(45, 49, 66, 0.18);
    border-radius: 12px;
    background: #fffefb;
    color: var(--staff-text);
}

body.staff-mode input:focus,
body.staff-mode select:focus,
body.staff-mode textarea:focus {
    outline: none;
    border-color: #4d9cff;
    box-shadow: 0 0 0 4px rgba(77, 156, 255, 0.12);
}

body.staff-mode button {
    border: 3px solid var(--staff-ink);
    border-radius: 14px;
    background: linear-gradient(135deg, #4d9cff, #35b36a);
    color: #fff;
    box-shadow: 4px 4px 0 var(--staff-ink);
}

body.staff-mode button.secondary,
body.staff-mode a.secondary {
    background: #fff;
    color: var(--staff-ink);
    border: 3px solid var(--staff-ink);
    box-shadow: 3px 3px 0 var(--staff-ink);
}

body.staff-mode a.success {
    background: #ebfff4;
    color: var(--staff-green-dark);
    border: 3px solid var(--staff-ink);
    box-shadow: 3px 3px 0 var(--staff-ink);
}

body.staff-mode button.danger {
    background: #fff1f4;
    color: #bd3344;
    border: 3px solid var(--staff-ink);
    box-shadow: 3px 3px 0 var(--staff-ink);
}

body.staff-mode .table-wrap {
    border: 2px solid rgba(45, 49, 66, 0.12);
    border-radius: 16px;
    background: #fff;
}

body.staff-mode table {
    border-collapse: collapse;
}

body.staff-mode th {
    background: #fff6d8;
    color: var(--staff-ink);
    font-size: 13px;
    font-weight: 900;
}

body.staff-mode td {
    color: var(--staff-text);
}

body.staff-mode tbody tr:nth-child(odd) {
    background: #fbfefc;
}

body.staff-mode .student-meta-list span,
body.staff-mode .course-chip {
    background: var(--staff-blue-soft);
    border: 2px solid rgba(45, 49, 66, 0.12);
    color: #2e5b74;
}

body.staff-mode .detail-pill {
    background: var(--staff-green-soft);
    color: var(--staff-green-dark);
}

body.staff-mode .admin-count-badge {
    background: #fff;
    color: var(--staff-ink);
    border: 3px solid var(--staff-ink);
    box-shadow: 3px 3px 0 var(--staff-ink);
}

body.staff-mode .student-subpanel,
body.staff-mode .student-kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
}

body.staff-mode .student-detail-panel {
    padding: 22px;
}

body.staff-mode .student-detail-head {
    margin-bottom: 8px;
}

body.staff-mode .student-table-actions,
body.staff-mode .student-inline-form,
body.staff-mode .row-actions {
    gap: 8px;
}

body.staff-mode .admin-stack {
    grid-template-columns: 1fr;
}

body.staff-mode .page > * + * {
    margin-top: 18px;
}

body.staff-mode .staff-form-panel,
body.staff-mode .course-form-panel,
body.staff-mode .schedule-form-panel,
body.staff-mode .plan-form-panel,
body.staff-mode .payment-entry-panel,
body.staff-mode .materials-form-panel {
    order: -1;
}

body.staff-mode .student-list-panel,
body.staff-mode .staff-list-panel,
body.staff-mode .schedule-list-panel,
body.staff-mode .plan-list-panel,
body.staff-mode .course-admin-panel,
body.staff-mode .materials-list-panel,
body.staff-mode .payment-note-panel,
body.staff-mode .problem-tool-guide-panel {
    width: 100%;
}

body.staff-mode .admin-booking-panel .booking-nav-actions {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

body.staff-mode .course-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

body.staff-mode .course-admin-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.staff-mode .course-category-summary.is-static {
    cursor: default;
}

body.staff-mode .course-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 3px solid var(--staff-ink);
    border-radius: 16px;
    background: #fff;
    color: var(--staff-ink);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--staff-ink);
}

body.staff-mode .course-filter-chip.active {
    border-color: var(--staff-ink);
    background: linear-gradient(135deg, #ff9f5a, #ffd861);
    color: #fff;
}

body.staff-mode .course-hierarchy-list,
body.staff-mode .lesson-list {
    display: grid;
    gap: 18px;
}

body.staff-mode .course-category-section {
    display: block;
    padding: 0;
    border: 3px solid var(--staff-ink);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
    overflow: hidden;
}

body.staff-mode .course-category-summary {
    display: block;
    list-style: none;
    cursor: pointer;
    padding: 18px;
}

body.staff-mode .course-category-summary::-webkit-details-marker {
    display: none;
}

body.staff-mode .course-category-section[open] .course-category-summary {
    border-bottom: 1px solid rgba(24, 48, 85, 0.08);
}

body.staff-mode .course-category-head,
body.staff-mode .course-family-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.staff-mode .course-category-head strong,
body.staff-mode .course-family-head h4 {
    color: var(--staff-text);
}

body.staff-mode .course-family-grid,
body.staff-mode .course-family-materials {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

body.staff-mode .course-family-card {
    padding: 16px;
    border: 2px solid rgba(45, 49, 66, 0.12);
    border-radius: 18px;
    background: #fff;
}

body.staff-mode .materials-course-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

body.staff-mode .materials-course-head h4 {
    margin-bottom: 6px;
}

body.staff-mode .materials-structure-line {
    margin: 6px 0 0;
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 700;
}

body.staff-mode .materials-course-lane {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

body.staff-mode .materials-course-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

body.staff-mode .materials-course-slot {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #d9e8dc;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
}

body.staff-mode .materials-course-slot.is-ready {
    border-color: #bee3cb;
    background: linear-gradient(180deg, #ffffff 0%, #f5fcf7 100%);
}

body.staff-mode .materials-course-slot.is-missing {
    border-color: #dce7f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.staff-mode .materials-course-slot.problem-slot {
    min-height: 168px;
}

body.staff-mode .materials-course-slot-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

body.staff-mode .materials-course-slot-label {
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body.staff-mode .materials-course-slot strong {
    color: var(--staff-text);
    font-size: 16px;
    line-height: 1.5;
}

body.staff-mode .materials-course-slot p {
    margin: 0;
}

body.staff-mode .materials-course-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

body.staff-mode .materials-block + .materials-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2ece5;
}

body.staff-mode .materials-block h5 {
    margin: 0 0 12px;
    color: var(--staff-text);
    font-size: 15px;
}

body.staff-mode .materials-table td {
    vertical-align: top;
}

body.staff-mode .material-form-preview {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #deebe2;
    border-radius: 14px;
    background: #fbfefc;
}

body.staff-mode .material-form-preview strong {
    color: var(--staff-text);
    font-size: 13px;
}

body.staff-mode .material-form-preview span {
    color: var(--staff-muted);
    font-size: 14px;
    font-weight: 700;
}

body.staff-mode .admin-booking-band {
    grid-template-columns: 1fr;
}

body.staff-mode .seat-layout-band {
    margin-bottom: 18px;
}

body.staff-mode .admin-booking-calendar {
    min-width: 980px;
}

body.staff-mode .admin-booking-calendar th,
body.staff-mode .admin-booking-calendar td {
    text-align: center;
    vertical-align: top;
}

body.staff-mode .admin-booking-calendar td:first-child,
body.staff-mode .admin-booking-calendar th:first-child {
    text-align: left;
    min-width: 170px;
}

body.staff-mode .admin-booking-summary-link {
    display: grid;
    gap: 4px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #cfe4d5;
    border-radius: 12px;
    background: #ebf8ef;
    text-decoration: none;
    text-align: left;
}

body.staff-mode .admin-booking-summary-link strong {
    color: var(--staff-green-dark);
    font-size: 18px;
}

body.staff-mode .admin-booking-summary-link span {
    color: #5f766d;
    font-size: 12px;
    font-weight: 700;
}

body.staff-mode .admin-booking-summary-link.is-empty {
    background: #f8fbff;
    border-color: #d8e6f5;
}

body.staff-mode .admin-booking-quick-add-form {
    margin: 0;
}

body.staff-mode .admin-booking-summary-link.is-action {
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

body.staff-mode .booking-admin-create-panel {
    margin-bottom: 18px;
}

body.staff-mode .booking-admin-create-form {
    display: grid;
    gap: 12px;
}

body.staff-mode .seat-layout-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.staff-mode .seat-pool-dropzone,
body.staff-mode .seat-box {
    border: 1px dashed #bfdcc7;
    border-radius: 16px;
    background: #f9fcfa;
    padding: 14px;
}

body.staff-mode .seat-pool-dropzone h4,
body.staff-mode .seat-box-head {
    margin: 0 0 12px;
    color: var(--staff-text);
    font-weight: 900;
}

body.staff-mode .seat-box-note {
    margin: -4px 0 12px;
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

body.staff-mode .seat-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

body.staff-mode .seat-preview-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #deebe2;
    border-radius: 14px;
    background: #fbfefc;
}

body.staff-mode .seat-preview-card strong {
    color: var(--staff-text);
}

body.staff-mode .seat-app-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

body.staff-mode .seat-app-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef7ff;
    color: #23546b;
    font-size: 12px;
    font-weight: 800;
}

body.staff-mode .seat-card-list,
body.staff-mode .seat-grid {
    display: grid;
    gap: 12px;
}

body.staff-mode .seat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.staff-mode .seat-student-card,
body.staff-mode .seat-empty {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid #deebe2;
    border-radius: 10px;
    background: #fff;
    min-height: 84px;
}

body.staff-mode .seat-student-card {
    cursor: grab;
    box-shadow: 0 10px 18px rgba(28, 59, 45, 0.06);
}

body.staff-mode .seat-student-card.is-dragging {
    opacity: 0.5;
}

body.staff-mode .seat-box.is-drop-target,
body.staff-mode .seat-pool-dropzone.is-drop-target {
    border-color: #43b861;
    background: #eef9f1;
}

body.staff-mode .seat-student-card strong {
    color: var(--staff-text);
}

body.staff-mode .seat-student-card span,
body.staff-mode .seat-empty {
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 700;
}

body.staff-mode .seat-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf7ff;
    color: #2357b8;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

body.staff-mode .seat-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

body.staff-mode .seat-card-inline-form {
    margin: 0;
}

body.staff-mode .seat-card-button {
    min-height: 32px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

body.staff-mode .seat-empty {
    place-items: center;
    text-align: center;
    background: #f6fbf7;
}

/* Staff calm alignment: match the current green-and-card student dashboard. */
body.staff-mode {
    --staff-green: #22a846;
    --staff-green-dark: #168137;
    --staff-blue: #1687e8;
    --staff-teal: #18a6b8;
    --staff-yellow: #ffc107;
    --staff-bg: #f4f6f8;
    --staff-card: #ffffff;
    --staff-line: #d9dee5;
    --staff-text: #0f172a;
    --staff-muted: #64748b;
    --staff-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    font-family: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
    background: var(--staff-bg);
    color: var(--staff-text);
}

body.staff-mode .page {
    max-width: 1180px;
    padding: 22px 14px 36px;
}

body.staff-mode .app-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
    margin: -22px -14px 22px;
    padding: 12px 22px;
    border: 0;
    border-radius: 0;
    background: var(--staff-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: none;
}

body.staff-mode .brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.staff-mode .staff-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

body.staff-mode .brand-kicker {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

body.staff-mode .brand-block h1 {
    margin: 1px 0 0;
    color: #fff;
    font-family: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
}

body.staff-mode .account-chip {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
}

body.staff-mode .account-chip span {
    color: rgba(255, 255, 255, 0.78);
}

body.staff-mode .header-logout,
body.staff-mode .nav-link:hover,
body.staff-mode .nav-link.active {
    background: #fff;
    color: var(--staff-green-dark);
    box-shadow: none;
}

body.staff-mode .header-logout {
    border: 0;
    border-radius: 999px;
}

body.staff-mode .app-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 0;
}

body.staff-mode .nav-link {
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
    font-weight: 800;
}

body.staff-mode .nav-link:hover {
    transform: none;
}

body.staff-mode .panel,
body.staff-mode .student-kpi-card,
body.staff-mode .student-subpanel,
body.staff-mode .student-list-panel,
body.staff-mode .student-form-panel,
body.staff-mode .course-admin-panel,
body.staff-mode .course-form-panel,
body.staff-mode .schedule-form-panel,
body.staff-mode .schedule-list-panel,
body.staff-mode .plan-form-panel,
body.staff-mode .plan-list-panel,
body.staff-mode .payment-entry-panel,
body.staff-mode .materials-form-panel,
body.staff-mode .materials-list-panel {
    border: 1px solid var(--staff-line);
    border-radius: 14px;
    background: var(--staff-card);
    box-shadow: var(--staff-shadow);
}

body.staff-mode .dashboard-intro {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #27b34f;
    border-left: 8px solid var(--staff-green);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--staff-shadow);
}

body.staff-mode .dashboard-intro h2 {
    margin: 4px 0 6px;
    color: var(--staff-text);
    font-size: 24px;
    font-weight: 900;
}

body.staff-mode .section-kicker {
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

body.staff-mode .compact-stats .panel {
    padding: 16px;
    border: 1px solid var(--staff-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--staff-shadow);
}

body.staff-mode .compact-stats .panel::after,
body.staff-mode .overview-note::after {
    display: none;
}

body.staff-mode .compact-stats .panel strong {
    display: block;
    margin-top: 4px;
    color: var(--staff-text);
    font-size: 24px;
    line-height: 1;
}

body.staff-mode .overview-note {
    border: 1px solid var(--staff-line);
    border-left: 8px solid var(--staff-blue);
    background: #fff;
}

body.staff-mode input,
body.staff-mode select,
body.staff-mode textarea {
    border: 1px solid var(--staff-line);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-text);
}

body.staff-mode input:focus,
body.staff-mode select:focus,
body.staff-mode textarea:focus {
    border-color: var(--staff-green);
    box-shadow: 0 0 0 3px rgba(34, 168, 70, 0.12);
}

body.staff-mode button,
body.staff-mode a.success {
    border: 0;
    border-radius: 8px;
    background: var(--staff-green);
    color: #fff;
    box-shadow: none;
}

body.staff-mode button.secondary,
body.staff-mode a.secondary {
    border: 1px solid #9bd9aa;
    border-radius: 8px;
    background: #fff;
    color: var(--staff-green-dark);
    box-shadow: none;
}

body.staff-mode button.danger {
    border: 0;
    background: #e3344d;
    color: #fff;
    box-shadow: none;
}

body.staff-mode .table-wrap {
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: var(--staff-shadow);
    overflow: hidden;
}

body.staff-mode table {
    border: 1px solid var(--staff-line);
    border-radius: 14px;
    background: #fff;
    border-collapse: collapse;
    overflow: hidden;
}

body.staff-mode th,
body.staff-mode td {
    border-bottom: 1px solid var(--staff-line);
}

body.staff-mode th {
    background: #fff;
    color: var(--staff-text);
    font-size: 14px;
    font-weight: 900;
}

body.staff-mode tbody tr:nth-child(odd) {
    background: #f1f1f1;
}

body.staff-mode tbody tr:nth-child(even) {
    background: #fff;
}

body.staff-mode .admin-count-badge,
body.staff-mode .status-badge,
body.staff-mode .detail-pill {
    border: 0;
    border-radius: 999px;
    background: #e8f8ed;
    color: var(--staff-green-dark);
    box-shadow: none;
    font-weight: 900;
}

body.staff-mode .course-filter-chip,
body.staff-mode .course-chip {
    border: 1px solid var(--staff-line);
    border-radius: 999px;
    background: #fff;
    color: var(--staff-muted);
    box-shadow: none;
    font-weight: 800;
}

body.staff-mode .course-filter-chip.active {
    background: var(--staff-green);
    color: #fff;
    border-color: var(--staff-green);
}

body.staff-mode .course-category-section,
body.staff-mode .course-family-card,
body.staff-mode .seat-preview-card,
body.staff-mode .seat-pool-dropzone,
body.staff-mode .seat-box {
    border: 1px solid var(--staff-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--staff-shadow);
}

body.staff-mode .seat-student-card,
body.staff-mode .seat-empty {
    border: 1px solid var(--staff-line);
    border-radius: 10px;
    box-shadow: none;
}

body.staff-mode .permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 16px 0 10px;
}

body.staff-mode .permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--staff-line);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-text);
    font-weight: 800;
}

body.staff-mode .permission-grid input {
    width: auto;
    min-height: auto;
}

body.staff-mode {
    background:
        radial-gradient(circle at top left, rgba(34, 168, 70, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(22, 135, 232, 0.1), transparent 24%),
        linear-gradient(180deg, #f6fbf7 0%, #eef4f0 100%);
}

body.staff-mode .page {
    max-width: 1240px;
    padding-top: 26px;
}

body.staff-mode .app-header {
    gap: 16px 20px;
    margin: 0 0 24px;
    padding: 18px 22px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, #24b05f 0%, #16924b 48%, #1578d8 100%);
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.staff-mode .app-header::after {
    content: "";
    grid-column: 1 / -1;
    display: block;
    height: 1px;
    margin-top: -2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
}

body.staff-mode .app-header::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 216, 97, 0.34) 0%, rgba(255, 216, 97, 0.08) 42%, transparent 72%);
    pointer-events: none;
}

body.staff-mode .brand-block {
    gap: 14px;
}

body.staff-mode .staff-brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

body.staff-mode .brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.staff-mode .brand-kicker::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

body.staff-mode .brand-block h1 {
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.05;
}

body.staff-mode .app-header-side {
    gap: 10px;
}

body.staff-mode .account-chip {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

body.staff-mode .header-logout {
    padding-inline: 18px;
    font-weight: 800;
}

body.staff-mode .app-nav {
    gap: 10px;
    align-items: stretch;
    padding: 10px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.staff-mode .nav-link {
    position: relative;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.staff-mode .nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
}

body.staff-mode .nav-link.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #24b05f 0%, #1578d8 100%);
}

body.staff-mode .nav-link.active {
    background: #ffffff;
    color: #173055;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

body.staff-mode .flash {
    border-radius: 18px;
    border-width: 1px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body.staff-mode .dashboard-intro {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid #d6e7da;
    border-left: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(71, 163, 255, 0.18), transparent 22%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 55%, #eef7ff 100%);
}

body.staff-mode .dashboard-intro::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(180deg, #24b05f 0%, #1578d8 100%);
}

body.staff-mode .panel,
body.staff-mode .student-kpi-card,
body.staff-mode .student-subpanel,
body.staff-mode .student-list-panel,
body.staff-mode .student-form-panel,
body.staff-mode .course-admin-panel,
body.staff-mode .course-form-panel,
body.staff-mode .schedule-form-panel,
body.staff-mode .schedule-list-panel,
body.staff-mode .plan-form-panel,
body.staff-mode .plan-list-panel,
body.staff-mode .payment-entry-panel,
body.staff-mode .materials-form-panel,
body.staff-mode .materials-list-panel {
    border-radius: 24px;
}

body.staff-mode .panel h3,
body.staff-mode .panel h4 {
    letter-spacing: -0.01em;
}

body.staff-mode .platform-priority-item,
body.staff-mode .ops-action-card,
body.staff-mode .materials-import-step,
body.staff-mode .owner-shortcut-card,
body.staff-mode .student-primary-action,
body.staff-mode .materials-summary-card {
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

body.staff-mode .platform-priority-item,
body.staff-mode .materials-import-step,
body.staff-mode .student-primary-action {
    border: 1px solid #d9e4dc;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

body.staff-mode .ops-action-card {
    border-color: #d9e4dc;
}

body.staff-mode .owner-command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 18px;
    margin: 18px 0;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid #d7e7dc;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.18), transparent 26%),
        linear-gradient(135deg, #f8fff8 0%, #edf8ff 45%, #fff8ec 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.staff-mode .owner-command-hero.owner-command-hero-compact {
    margin: 0 0 18px;
    padding: 18px 20px;
    border-radius: 24px;
}

body.staff-mode .owner-command-hero-main,
body.staff-mode .owner-command-hero-side {
    display: grid;
    gap: 16px;
}

body.staff-mode .owner-command-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #1e7a4d;
    border: 1px solid #dbe8de;
    font-weight: 900;
}

body.staff-mode .owner-command-hero h3 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    color: #11233a;
}

body.staff-mode .owner-command-hero.owner-command-hero-compact h3 {
    font-size: 28px;
}

body.staff-mode .student-heading-id {
    display: inline-block;
    margin-left: 10px;
    color: #52627a;
    font-size: 0.72em;
    font-weight: 900;
    letter-spacing: 0.01em;
    vertical-align: baseline;
}

body.staff-mode .owner-command-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

body.staff-mode .owner-command-hero.owner-command-hero-compact .owner-command-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body.staff-mode .owner-command-metric,
body.staff-mode .owner-command-progress-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #dce8e0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

body.staff-mode .owner-command-metric span,
body.staff-mode .owner-command-progress-card strong {
    color: #52657d;
    font-weight: 800;
}

body.staff-mode .owner-command-metric strong {
    font-size: 30px;
    line-height: 1;
    color: #11233a;
}

body.staff-mode .owner-command-hero.owner-command-hero-compact .owner-command-metric strong {
    font-size: 24px;
}

body.staff-mode .owner-command-metric small {
    color: #6b7b8f;
    font-size: 12px;
}

body.staff-mode .owner-daily-board {
    margin: 18px 0;
    padding: 14px 22px 22px;
    border: 1px solid #d9e7df;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f5fbf8 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

body.staff-mode .owner-daily-board-head,
body.staff-mode .owner-daily-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body.staff-mode .owner-daily-board-head h3 {
    margin: 2px 0 0;
    font-size: 28px;
    color: #11233a;
}

body.staff-mode .owner-daily-board-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body.staff-mode .owner-daily-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
    gap: 16px;
    margin-top: 12px;
    align-items: start;
}

body.staff-mode .owner-daily-stack {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

body.staff-mode .owner-daily-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dfe8e2;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
}

body.staff-mode .owner-daily-messages {
    align-self: start;
    display: block;
    height: auto;
}

body.staff-mode .owner-daily-messages .owner-daily-card-head {
    margin-bottom: 14px;
}

body.staff-mode .owner-daily-card-head strong {
    font-size: 18px;
    color: #11233a;
}

body.staff-mode .owner-message-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

body.staff-mode .owner-message-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #dfe8e2;
    background: #f8fbff;
}

body.staff-mode .owner-message-item.tone-warning {
    border-color: #f4d58d;
    background: #fffaf0;
}

body.staff-mode .owner-message-item.tone-danger {
    border-color: #ffc4c4;
    background: #fff5f5;
}

body.staff-mode .owner-message-item p {
    margin: 6px 0 0;
    color: #53657a;
}

body.staff-mode .owner-seat-timetable {
    display: grid;
    gap: 12px;
}

body.staff-mode .owner-seat-row {
    display: grid;
    grid-template-columns: 82px 92px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

body.staff-mode .owner-seat-period {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 12px 10px;
    border-radius: 18px;
    background: #eff6ff;
    border: 1px solid #cfe0ff;
    color: #14335f;
}

body.staff-mode .owner-seat-period strong {
    font-size: 22px;
    line-height: 1;
}

body.staff-mode .owner-seat-period span {
    font-size: 12px;
    font-weight: 800;
}

body.staff-mode .owner-seat-time {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: #123524;
    color: #fff;
}

body.staff-mode .owner-seat-time strong {
    font-size: 22px;
    line-height: 1;
}

body.staff-mode .owner-seat-time span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

body.staff-mode .owner-seat-grid {
    display: grid;
    grid-template-columns: repeat(var(--owner-seat-columns, 5), minmax(120px, 1fr));
    gap: 8px;
}

body.staff-mode .owner-seat-cell {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid #dfe8e2;
    background: #f8fafc;
    text-decoration: none;
}

body.staff-mode .owner-seat-cell.is-booked {
    border-color: #a7e6bf;
    background: linear-gradient(135deg, #e8fff0 0%, #ffffff 100%);
}

body.staff-mode .owner-seat-cell.status-temporary {
    border-color: #f4d58d;
    background: linear-gradient(135deg, #fff7df 0%, #ffffff 100%);
}

body.staff-mode .owner-seat-cell.status-completed {
    border-color: #b9d3ff;
    background: linear-gradient(135deg, #edf4ff 0%, #ffffff 100%);
}

body.staff-mode .owner-seat-label {
    color: #527061;
    font-size: 12px;
    font-weight: 900;
}

body.staff-mode .owner-seat-cell.is-empty {
    border-style: dashed;
    background: #f8fafc;
    opacity: 0.88;
}

body.staff-mode .owner-seat-cell.is-empty strong {
    color: #527061;
}

body.staff-mode .owner-seat-cell strong {
    color: #11233a;
    font-size: 16px;
}

body.staff-mode .owner-seat-cell small {
    color: #68788d;
    font-weight: 800;
}

body.staff-mode .owner-seat-unassigned {
    grid-column: 3 / 4;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px dashed #f4d58d;
    border-radius: 16px;
    background: #fffaf0;
}

body.staff-mode .owner-seat-unassigned strong {
    color: #11233a;
    font-size: 15px;
}

body.staff-mode .settings-split-hero {
    margin: 18px 0;
    padding: 24px;
    border: 1px solid #d9e7df;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.12), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

body.staff-mode .settings-split-hero-main h3 {
    margin: 6px 0;
    font-size: 30px;
    color: #11233a;
}

body.staff-mode .settings-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

body.staff-mode .settings-split-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #dfe8e2;
    background: rgba(255, 255, 255, 0.96);
}

body.staff-mode .settings-split-card strong {
    font-size: 20px;
    color: #11233a;
}

body.staff-mode .settings-split-card-direct {
    border-color: #b7e2c4;
}

body.staff-mode .settings-split-card-linked {
    border-color: #bfd8ff;
}

body.staff-mode .settings-split-card p {
    margin: 0;
}

body.staff-mode .settings-split-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.staff-mode .settings-split-caption {
    color: #607287;
    font-size: 13px;
    font-weight: 700;
}

body.staff-mode .materials-list-panel > .ops-action-panel,
body.staff-mode .materials-migration-desk,
body.staff-mode #materials-post-import-actions,
body.staff-mode #materials-prelaunch-issues,
body.staff-mode .materials-operational-panel,
body.staff-mode .materials-summary-actions,
body.staff-mode .materials-workflow-panel,
body.staff-mode .materials-checklist-panel,
body.staff-mode .materials-focus-summary,
body.staff-mode .materials-preview-quickchecks,
body.staff-mode .materials-preview-panel .materials-check-item,
body.staff-mode .materials-impact-panel,
body.staff-mode .materials-preview-verification,
body.staff-mode .materials-preview-panel .context-summary-grid,
body.staff-mode .materials-preview-panel .ops-focus-panel,
body.staff-mode .materials-next-action-panel,
body.staff-mode .materials-next-step-card,
body.staff-mode .problem-tool-flow-grid,
body.staff-mode .problem-tool-guide-panel,
body.staff-mode .ops-focus-panel,
body.staff-mode .payment-focus-roadmap,
body.staff-mode .payment-context-bar,
body.staff-mode .payment-release-card,
body.staff-mode .payment-buckets-panel,
body.staff-mode .payment-queue-panel,
body.staff-mode .payment-urgent-panel,
body.staff-mode .payment-entry-panel > .payment-compact-stats,
body.staff-mode .payment-compact-stats,
body.staff-mode .payment-entry-panel > .admin-inline-meta,
body.staff-mode .payment-entry-panel > .context-summary-grid,
body.staff-mode .payment-priority-strip-grid,
body.staff-mode .payment-table-actions,
body.staff-mode #payment-airregi-panel .ops-action-panel,
body.staff-mode #payment-airregi-panel,
body.staff-mode .booking-student-roadmap,
body.staff-mode .booking-week-action-panel,
body.staff-mode .admin-booking-panel .booking-admin-glance-grid,
body.staff-mode .admin-booking-panel > .context-summary-grid,
body.staff-mode .admin-booking-panel .booking-admin-summary-row,
body.staff-mode .admin-booking-panel .booking-context-actions,
body.staff-mode .admin-booking-panel > .booking-course-band,
body.staff-mode .seat-layout-panel > .booking-course-band,
body.staff-mode .seat-card-actions .seat-card-link,
body.staff-mode .booking-filter-focus a[href*="tab=students"],
body.staff-mode .booking-filter-focus a[href*="tab=payments"],
body.staff-mode .student-today-panel,
body.staff-mode .student-focus-lane,
body.staff-mode .student-live-ops-grid,
body.staff-mode .student-next-actions-panel,
body.staff-mode #student-learning-material-fix,
body.staff-mode .student-handout-card,
body.staff-mode .student-registration-guide,
body.staff-mode .student-list-summary-grid.owner-top-summary-grid,
body.staff-mode .owner-command-hero.owner-command-hero-compact .owner-command-metrics,
body.staff-mode .admin-form-intro,
body.staff-mode .owner-morning-check-card,
body.staff-mode .owner-setup-roadmap,
body.staff-mode .owner-setup-progress-card,
body.staff-mode .owner-launch-defaults-card,
body.staff-mode .owner-launch-defaults-grid,
body.staff-mode .owner-day-run-card,
body.staff-mode .owner-go-live-heading,
body.staff-mode .owner-go-live-cockpit,
body.staff-mode .owner-launch-verdict,
body.staff-mode .owner-runway-summary,
body.staff-mode .owner-immediate-action,
body.staff-mode .owner-flow-check-panel,
body.staff-mode .owner-verification-digest-grid,
body.staff-mode .owner-smoke-helper,
body.staff-mode .owner-smoke-rehearsal-grid,
body.staff-mode .owner-launch-priority-panel,
body.staff-mode .owner-launch-command-grid,
body.staff-mode .launch-checklist-panel,
body.staff-mode #owner-go-live-report,
body.staff-mode #owner-suite-report,
body.staff-mode #owner-prelaunch-report,
body.staff-mode #owner-launch-rehearsal-report,
body.staff-mode #owner-airregi-report,
body.staff-mode #owner-migration-report,
body.staff-mode #owner-readiness,
body.staff-mode #owner-launch-runway {
    display: none !important;
}

/* 日常運用の教室トップから、移行・本番前検証用の旧パネルを隠す。 */
body:not(.platform-mode) .owner-smoke-helper,
body:not(.platform-mode) .owner-smoke-rehearsal-grid,
body:not(.platform-mode) .owner-day-run-card,
body:not(.platform-mode) .owner-verification-history,
body:not(.platform-mode) .owner-verification-digest,
body:not(.platform-mode) .launch-checklist-panel,
body:not(.platform-mode) #owner-go-live-report,
body:not(.platform-mode) #owner-suite-report,
body:not(.platform-mode) #owner-prelaunch-report,
body:not(.platform-mode) #owner-launch-rehearsal-report,
body:not(.platform-mode) #owner-airregi-report,
body:not(.platform-mode) #owner-migration-report {
    display: none !important;
}

body.staff-mode #analytics-student-table th:last-child,
body.staff-mode #analytics-student-table td:last-child {
    display: none !important;
}

body.staff-mode .owner-command-progress-list {
    display: grid;
    gap: 10px;
}

body.staff-mode .settings-menu-grid {
    display: grid !important;
}

body.staff-mode .student-list-summary-grid.owner-top-summary-grid.settings-menu-grid {
    display: grid !important;
}

body.staff-mode .settings-menu-panel {
    margin: 18px 0;
}

body.staff-mode .settings-menu-panel .admin-section-head {
    margin-bottom: 14px;
}

body.staff-mode .settings-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body.staff-mode .settings-menu-button {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid #9bd8ad;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #087334;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.staff-mode .settings-menu-button strong,
body.staff-mode .settings-menu-button span {
    line-height: 1.2;
}

body.staff-mode .settings-menu-button strong {
    display: block;
    font-size: 16px;
}

body.staff-mode .settings-menu-button span {
    display: block;
    color: #5e7188;
    font-size: 13px;
    font-weight: 800;
}

body.staff-mode .settings-menu-button.active {
    border-color: #22a94f;
    background: #22a94f;
    color: #fff;
}

body.staff-mode .settings-menu-button.active span {
    color: rgba(255, 255, 255, 0.88);
}

body.staff-mode .anchor-target {
    display: block;
    height: 1px;
    scroll-margin-top: 96px;
}

body.staff-mode .payment-entry-panel .owner-command-hero.owner-command-hero-compact .owner-command-metrics {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

body.staff-mode .owner-command-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe6df;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
    color: #15305b;
    text-decoration: none;
    font-weight: 800;
}

body.staff-mode .owner-command-link::after {
    content: ">";
    color: #1c8f56;
    font-weight: 900;
}

body.staff-mode .owner-section-jumpbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

body.staff-mode .owner-section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d7e6dc;
    background: rgba(255, 255, 255, 0.95);
    color: #24506b;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.staff-mode .owner-launch-defaults-card {
    border: 1px solid #d9e4dc;
    border-radius: 20px;
    background: linear-gradient(135deg, #f3fff7 0%, #ffffff 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

body.staff-mode .owner-day-run-card {
    border: 1px solid #dbe5f4;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

body.staff-mode .owner-day-run-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

body.staff-mode .owner-day-run-step {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dfe8f4;
    background: #fff;
}

body.staff-mode .owner-day-run-step p {
    margin: 0;
}

body.staff-mode .owner-morning-check-card {
    border: 1px solid #dbe5f4;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

body.staff-mode .owner-morning-check-item {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body.staff-mode .owner-launch-default-card {
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

body.staff-mode .owner-launch-default-card.is-ok {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f3fff7 100%);
}

body.staff-mode .owner-launch-default-card.is-alert {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.14), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
}

body.staff-mode .student-handout-card {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dfe8f4;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

body.staff-mode .student-handout-text {
    min-height: 220px;
    font-size: 14px;
    line-height: 1.8;
    background: #fff;
}

body.staff-mode .materials-summary-card.is-ready {
    background: linear-gradient(180deg, #ffffff 0%, #f3fff7 100%);
}

body.staff-mode .materials-summary-card.is-pending {
    background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
}

body.staff-mode .course-filter-row {
    gap: 10px;
}

body.staff-mode .panel,
body.staff-mode .student-kpi-card,
body.staff-mode .student-subpanel,
body.staff-mode .student-list-panel,
body.staff-mode .student-form-panel,
body.staff-mode .course-admin-panel,
body.staff-mode .course-form-panel,
body.staff-mode .schedule-form-panel,
body.staff-mode .schedule-list-panel,
body.staff-mode .plan-form-panel,
body.staff-mode .plan-list-panel,
body.staff-mode .payment-entry-panel,
body.staff-mode .payment-note-panel,
body.staff-mode .materials-form-panel,
body.staff-mode .materials-list-panel,
body.staff-mode .admin-booking-panel,
body.staff-mode .problem-tool-form-panel,
body.staff-mode .problem-tool-guide-panel,
body.staff-mode .staff-list-panel,
body.staff-mode .staff-form-panel {
    position: relative;
    overflow: hidden;
}

body.staff-mode .panel::before,
body.staff-mode .student-kpi-card::before,
body.staff-mode .student-subpanel::before,
body.staff-mode .student-list-panel::before,
body.staff-mode .student-form-panel::before,
body.staff-mode .course-admin-panel::before,
body.staff-mode .course-form-panel::before,
body.staff-mode .schedule-form-panel::before,
body.staff-mode .schedule-list-panel::before,
body.staff-mode .plan-form-panel::before,
body.staff-mode .plan-list-panel::before,
body.staff-mode .payment-entry-panel::before,
body.staff-mode .payment-note-panel::before,
body.staff-mode .materials-form-panel::before,
body.staff-mode .materials-list-panel::before,
body.staff-mode .admin-booking-panel::before,
body.staff-mode .problem-tool-form-panel::before,
body.staff-mode .problem-tool-guide-panel::before,
body.staff-mode .staff-list-panel::before,
body.staff-mode .staff-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #24b05f 0%, #16924b 38%, #1578d8 100%);
    opacity: 0.92;
}

body.staff-mode .admin-section-head {
    margin-bottom: 18px;
}

body.staff-mode .admin-section-head h3,
body.staff-mode .admin-section-head h4,
body.staff-mode .calendar-head h3,
body.staff-mode .materials-course-head h4 {
    margin-bottom: 4px;
    color: #122033;
    font-weight: 900;
}

/* 実運用画面では、旧LMS移行や本番投入前チェックの内部作業UIは表示しない。 */
body.staff-mode .materials-migration-desk,
body.staff-mode #materials-post-import-actions,
body.staff-mode #materials-prelaunch-issues {
    display: none;
}

body.staff-mode .admin-section-head p,
body.staff-mode .calendar-head p,
body.staff-mode .materials-course-head p {
    color: #6a778b;
}

body.staff-mode .ops-action-panel,
body.staff-mode .booking-admin-filter-panel,
body.staff-mode .payment-focus-card,
body.staff-mode .payment-release-card,
body.staff-mode .student-focus-card,
body.staff-mode .student-ops-roadmap-card,
body.staff-mode .materials-workflow-card,
body.staff-mode .materials-summary-card,
body.staff-mode .materials-check-item,
body.staff-mode .materials-import-step,
body.staff-mode .owner-day-run-step,
body.staff-mode .owner-shortcut-card,
body.staff-mode .student-primary-action,
body.staff-mode .seat-preview-card,
body.staff-mode .seat-pool-dropzone,
body.staff-mode .seat-box,
body.staff-mode .course-family-card,
body.staff-mode .course-category-section,
body.staff-mode .student-handout-card {
    border-radius: 20px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

body.staff-mode .payment-focus-card,
body.staff-mode .student-focus-card,
body.staff-mode .materials-workflow-panel,
body.staff-mode .materials-summary-panel,
body.staff-mode .materials-checklist-panel {
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 54%, #eef7ff 100%);
}

body.staff-mode .ops-action-card,
body.staff-mode .materials-summary-card,
body.staff-mode .materials-workflow-card,
body.staff-mode .student-ops-roadmap-card,
body.staff-mode .student-primary-action {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.staff-mode .ops-action-card:hover,
body.staff-mode .materials-summary-card:hover,
body.staff-mode .materials-workflow-card:hover,
body.staff-mode .student-ops-roadmap-card:hover,
body.staff-mode .student-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
    border-color: #bdd7c4;
}

body.staff-mode .admin-count-badge,
body.staff-mode .status-badge,
body.staff-mode .detail-pill {
    background: linear-gradient(180deg, #edf9f1 0%, #e5f5ea 100%);
}

body.staff-mode .admin-inline-meta,
body.staff-mode .admin-form-intro {
    position: relative;
    z-index: 1;
}

body.staff-mode .admin-inline-meta .detail-pill,
body.staff-mode .admin-form-intro .detail-pill {
    border: 1px solid #d6e6d8;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.04);
}

body.staff-mode .course-chip,
body.staff-mode .course-filter-chip {
    background: rgba(255, 255, 255, 0.92);
    color: #456174;
}

body.staff-mode .materials-migration-summary-card {
    position: relative;
    overflow: hidden;
    border-width: 2px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(77, 156, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fffdf7 42%, #f4fbf6 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

body.staff-mode .materials-migration-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, #ff8cac 0%, #ffd861 48%, #35b36a 100%);
}

body.staff-mode .materials-migration-summary-card.tone-success {
    background:
        radial-gradient(circle at top right, rgba(53, 179, 106, 0.16), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f2fff6 44%, #ffffff 100%);
}

body.staff-mode .materials-migration-summary-card.tone-warning {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #fff8ed 44%, #ffffff 100%);
}

body.staff-mode .table-wrap {
    border-radius: 18px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
}

body.staff-mode table {
    border-radius: 18px;
}

body.staff-mode th {
    background: linear-gradient(180deg, #fffdf7 0%, #fff5d9 100%);
    color: #1f2e44;
}

body.staff-mode tbody tr:nth-child(odd) {
    background: #f8fbf9;
}

body.staff-mode tbody tr:hover {
    background: #eef8f1;
}

body.staff-mode .calendar-head,
body.staff-mode .materials-course-head {
    margin-bottom: 18px;
}

body.staff-mode .admin-booking-summary-link {
    border-radius: 16px;
    border: 1px solid #d6e6d8;
    background:
        radial-gradient(circle at top right, rgba(36, 176, 95, 0.08), transparent 28%),
        linear-gradient(180deg, #f5fcf7 0%, #ebf8ef 100%);
    box-shadow: 0 8px 18px rgba(22, 129, 55, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.staff-mode .admin-booking-summary-link:hover {
    transform: translateY(-2px);
    border-color: #b9d7c0;
    box-shadow: 0 14px 26px rgba(22, 129, 55, 0.12);
}

body.staff-mode .admin-booking-summary-link.is-empty {
    background:
        radial-gradient(circle at top right, rgba(22, 135, 232, 0.08), transparent 28%),
        linear-gradient(180deg, #fafdff 0%, #f1f7ff 100%);
    border-color: #dbe8f5;
}

body.staff-mode .booking-admin-glance-card {
    border-radius: 20px;
    border-color: #dbe6df;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.staff-mode .booking-admin-glance-card strong {
    color: #11233a;
}

body.staff-mode .booking-period-cell {
    background:
        linear-gradient(180deg, #fffef8 0%, #fff8e8 100%);
    box-shadow: 8px 0 18px rgba(15, 23, 42, 0.04);
}

body.staff-mode .admin-booking-calendar td {
    transition: background 0.18s ease;
}

body.staff-mode .admin-booking-calendar tbody tr:hover td {
    background: #f5fbf7;
}

body.staff-mode .admin-booking-calendar tbody tr:hover .booking-period-cell {
    background:
        linear-gradient(180deg, #fffdf1 0%, #fff5d8 100%);
}

body.staff-mode .problem-tool-flow-card {
    border-color: #dbe6df;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.1), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 55%, #eef7ff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.staff-mode .problem-tool-flow-step {
    background: linear-gradient(180deg, #edf9f1 0%, #e4f6ea 100%);
    color: #1b7b47;
}

body.staff-mode .materials-form-note-card,
body.staff-mode .material-form-preview {
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.staff-mode .materials-quick-switch-btn {
    border: 1px solid #d8e5db;
    background: rgba(255, 255, 255, 0.95);
    color: #24506b;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

body.staff-mode .materials-quick-switch-btn.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #24b05f 0%, #1578d8 100%);
    color: #fff;
    box-shadow: 0 12px 20px rgba(21, 120, 216, 0.16);
}

body.staff-mode .materials-target-board {
    border-radius: 22px;
    border-color: #dbe6df;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.staff-mode .materials-save-route {
    border-radius: 22px;
    border-color: #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f5fbff 52%, #f4fbf6 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.staff-mode .materials-next-step-card,
body.staff-mode .problem-tool-next-step-card {
    border-radius: 20px;
    border-color: #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

body.staff-mode .materials-target-card {
    border-radius: 18px;
}

body.staff-mode .materials-target-card span {
    color: #11233a;
}

body.staff-mode .materials-advanced-settings {
    border-radius: 20px;
    border-color: #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.06), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
}

body.staff-mode .materials-advanced-settings summary {
    color: #1f7a44;
}

body.staff-mode .materials-mode-banner {
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #d9e6dc;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 78, 0.16), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 55%, #eef8ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

body.staff-mode .materials-mode-banner[data-mode="problem"] {
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.14), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f5fbff 52%, #eef9f3 100%);
}

body.staff-mode .materials-mode-banner strong {
    display: block;
    margin-bottom: 6px;
    color: #173055;
}

body.staff-mode .context-summary-grid {
    gap: 14px;
}

body.staff-mode .context-summary-card,
body.staff-mode .student-list-summary-card,
body.staff-mode .school-form-helper-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #d9e6dc;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f4fbf6 56%, #eef8ff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

body.staff-mode .context-summary-card::before,
body.staff-mode .student-list-summary-card::before,
body.staff-mode .school-form-helper-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #24b05f 0%, #1578d8 58%, #ffd861 100%);
}

body.staff-mode .context-summary-card strong,
body.staff-mode .student-list-summary-card strong,
body.staff-mode .school-form-helper-card strong {
    color: #163055;
    font-size: 16px;
    font-weight: 900;
}

body.staff-mode .context-summary-card p,
body.staff-mode .student-list-summary-card p,
body.staff-mode .school-form-helper-card p {
    color: #64748b;
    line-height: 1.75;
}

body.staff-mode .ops-focus-panel {
    border: 1px solid #dce8df;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f6fbf7 48%, #eef8ff 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

body.staff-mode .ops-focus-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border-width: 1px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
}

body.staff-mode .ops-focus-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #24b05f 0%, #1578d8 100%);
}

body.staff-mode .ops-focus-card.tone-success {
    background: linear-gradient(135deg, #f2fff6 0%, #ffffff 100%);
}

body.staff-mode .ops-focus-card.tone-warning {
    background: linear-gradient(135deg, #fffaf1 0%, #ffffff 100%);
}

body.staff-mode .ops-focus-card.tone-info,
body.staff-mode .ops-focus-card.tone-neutral {
    background: linear-gradient(135deg, #f4fbff 0%, #ffffff 100%);
}

body.staff-mode .ops-focus-card strong {
    color: #183055;
    font-size: 17px;
}

body.staff-mode .ops-focus-card p {
    color: #5f7288;
    line-height: 1.75;
}

body.staff-mode .school-launch-panel .ops-action-card,
body.staff-mode .school-form-panel .ops-action-card {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.16), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 50%, #f3fff7 100%);
}

body.staff-mode .school-launch-card-head {
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(82, 101, 125, 0.24);
}

body.staff-mode .school-launch-card-head .detail-pill {
    background: linear-gradient(180deg, #eef8f0 0%, #e2f4e8 100%);
}

body.staff-mode .school-admin-summary-grid .panel {
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.14), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f5fbf6 52%, #eef8ff 100%);
}

body.staff-mode .school-admin-summary-grid .panel strong {
    font-size: 30px;
}

.fixup-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.fixup-summary-card {
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    padding: 16px 18px;
}

.fixup-summary-card .detail-list {
    margin-top: 10px;
}

.fixup-summary-card .detail-list li {
    line-height: 1.55;
}

.launch-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.launch-checklist-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(71, 163, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.launch-checklist-card strong {
    color: #183055;
}

.launch-checklist-card .detail-list {
    margin: 0;
}

.launch-checklist-card .detail-list li {
    line-height: 1.65;
}

.owner-setup-roadmap {
    margin-bottom: 18px;
    border-radius: 24px;
    border: 1px solid #dbe6df;
    background:
        radial-gradient(circle at top right, rgba(255, 173, 96, 0.15), transparent 26%),
        radial-gradient(circle at bottom left, rgba(71, 163, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fbfff8 52%, #f7fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    padding: 20px 22px;
}

.owner-setup-roadmap-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.owner-setup-roadmap-head h4 {
    margin: 0 0 6px;
    color: #183055;
}

.owner-setup-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.owner-setup-roadmap-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 217, 206, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 250, 0.98) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.owner-setup-roadmap-card strong {
    color: #183055;
    font-size: 18px;
}

.owner-setup-roadmap-step {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1b82e1 0%, #1ec46f 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body.staff-mode .booking-filter-focus,
body.staff-mode .payment-focus-pills,
body.staff-mode .student-ops-roadmap-meta,
body.staff-mode .course-material-status {
    gap: 8px;
}

body.staff-mode .student-ops-roadmap-title,
body.staff-mode .materials-workflow-head strong {
    color: #183055;
}

body.staff-mode .seat-student-card,
body.staff-mode .seat-empty {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
}

body.staff-mode .course-filter-chip {
    min-height: 40px;
    border-width: 1px;
    border-color: #d2dfd6;
    border-radius: 999px;
    box-shadow: none;
}

body.staff-mode .course-filter-chip.active {
    background: linear-gradient(135deg, #24b05f 0%, #1578d8 100%);
}

body.staff-mode .form-help-text {
    margin: 6px 0 0;
    color: var(--staff-muted);
    font-size: 12px;
}

body.staff-mode .table-wrap {
    border-radius: 20px;
}

@media (max-width: 900px) {
    .analytics-mini-kpi-grid {
        grid-template-columns: 1fr;
    }

    body.staff-mode .page {
        padding: 14px 12px 32px;
    }

    body.staff-mode .app-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
        padding: 16px;
    }

    body.staff-mode .app-header-side {
        width: 100%;
        justify-content: space-between;
    }

    body.staff-mode .app-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    body.staff-mode .nav-link {
        justify-content: center;
        font-size: 13px;
        padding: 10px 8px;
    }

    body.staff-mode .dashboard-intro,
    body.staff-mode .owner-daily-grid,
    body.staff-mode .split,
    body.staff-mode .student-kpi-grid,
    body.staff-mode .student-detail-sections,
    .fixup-summary-grid,
    .owner-setup-roadmap-grid,
    .student-setup-workbench-fields,
    .problem-tool-flow-grid {
        grid-template-columns: 1fr;
    }

    body.staff-mode .admin-section-head,
    body.staff-mode .student-detail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.staff-mode .owner-command-hero {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    body.staff-mode .owner-command-progress-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.staff-mode .owner-command-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.staff-mode .owner-daily-board-head,
    body.staff-mode .owner-daily-card-head {
        flex-direction: column;
    }

    body.staff-mode .owner-message-item,
    body.staff-mode .owner-seat-row {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-message-list {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-seat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.staff-mode .settings-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.staff-mode .app-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    body.staff-mode .owner-command-hero h3 {
        font-size: 28px;
    }

    body.staff-mode .owner-command-metrics {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-command-progress-list {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-day-run-grid {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-seat-grid {
        grid-template-columns: 1fr;
    }

    .owner-morning-check-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .owner-setup-roadmap-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.staff-mode .admin-booking-calendar {
        min-width: 860px;
    }

    body.staff-mode .seat-layout-shell {
        grid-template-columns: 1fr;
    }

    body.staff-mode .materials-course-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.staff-mode .brand-block h1 {
        font-size: 23px;
    }

    .problem-tool-capture-status {
        grid-template-columns: 1fr;
    }
}

body.staff-mode .account-security-panel {
    margin-bottom: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.16), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f3fff7 100%);
}

body.staff-mode .account-security-panel .form-grid {
    align-items: end;
}

body.staff-mode .account-security-panel input[readonly] {
    background: #f6f8fb;
    color: #475569;
}

body.staff-mode .account-settings-shell {
    display: grid;
    gap: 18px;
}

body.staff-mode .account-settings-grid {
    display: grid;
    gap: 16px;
}

body.staff-mode .account-settings-card {
    border: 1px solid #dbe6df;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

body.staff-mode .account-settings-body {
    display: grid;
    gap: 14px;
    padding: 18px 22px 22px;
}

body.staff-mode .account-settings-form {
    display: grid;
    gap: 12px;
}

body.staff-mode .account-inline-note {
    margin: 0;
}

body.staff-mode .owner-section-jumpbar {
    position: static;
    top: auto;
    z-index: 8;
    padding: 12px 14px;
    border: 1px solid #dbe6df;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
}

body.staff-mode .owner-section-chip {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body.staff-mode .owner-section-chip:hover {
    transform: translateY(-1px);
    border-color: #bcd7c6;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbf6 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body.staff-mode .owner-command-link {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.staff-mode .owner-command-link:hover {
    transform: translateY(-1px);
    border-color: #c3dbc9;
    background: linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

body.staff-mode .panel::before,
body.staff-mode .student-kpi-card::before,
body.staff-mode .student-subpanel::before,
body.staff-mode .student-list-panel::before,
body.staff-mode .student-form-panel::before,
body.staff-mode .course-admin-panel::before,
body.staff-mode .course-form-panel::before,
body.staff-mode .schedule-form-panel::before,
body.staff-mode .schedule-list-panel::before,
body.staff-mode .plan-form-panel::before,
body.staff-mode .plan-list-panel::before,
body.staff-mode .payment-entry-panel::before,
body.staff-mode .payment-note-panel::before,
body.staff-mode .materials-form-panel::before,
body.staff-mode .materials-list-panel::before,
body.staff-mode .admin-booking-panel::before,
body.staff-mode .problem-tool-form-panel::before,
body.staff-mode .problem-tool-guide-panel::before,
body.staff-mode .staff-list-panel::before,
body.staff-mode .staff-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #ff8cac 0%, #ffd861 34%, #35b36a 68%, #4d9cff 100%);
    pointer-events: none;
}

body.staff-mode .owner-command-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 20px;
    padding: 24px 24px 22px;
    border: 2px solid #d9e7dc;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 18%, rgba(77, 156, 255, 0.16), transparent 20%),
        radial-gradient(circle at 10% 110%, rgba(255, 140, 172, 0.18), transparent 22%),
        linear-gradient(135deg, #fff9e8 0%, #ffffff 42%, #eef8ff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.staff-mode .owner-command-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, #ff8cac 0%, #ffd861 34%, #35b36a 68%, #4d9cff 100%);
}

body.staff-mode .payment-entry-panel-compact {
    padding-top: 22px;
    padding-bottom: 18px;
}

body.staff-mode .payment-entry-panel-compact .admin-section-head {
    align-items: center;
}

body.staff-mode .payment-entry-panel-compact .admin-section-head p {
    margin: 6px 0 0;
}

body.staff-mode .payment-note-panel-empty {
    padding-bottom: 18px;
}

body.staff-mode .payment-note-panel-empty .table-empty-state {
    min-height: 0;
    padding: 18px 20px;
}

body.staff-mode .payment-note-panel-empty .table-empty-state p {
    margin: 8px 0 0;
}

body.staff-mode .owner-command-progress-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #d8e5db;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

body.staff-mode .owner-command-progress-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, #35b36a 0%, #4d9cff 100%);
}

body.staff-mode .owner-command-progress-card strong {
    display: block;
    margin-bottom: 12px;
    padding-left: 8px;
    font-size: 20px;
    color: #16304e;
}

body.staff-mode .owner-command-progress-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.staff-mode .owner-command-link {
    min-height: 64px;
    align-content: center;
    justify-content: flex-start;
    padding: 14px 16px;
    border: 2px solid #dbe6df;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
    line-height: 1.35;
}

body.staff-mode .owner-command-link::after {
    content: "→";
    margin-left: auto;
    color: #1c8f56;
    font-size: 15px;
    font-weight: 900;
}

body.staff-mode .owner-section-jumpbar {
    top: 88px;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d7e6dc;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 249, 0.98) 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

body.staff-mode .owner-section-chip {
    min-height: 44px;
    padding: 11px 18px;
    border-width: 2px;
}

body.staff-mode .owner-launch-priority-panel {
    margin: 18px 0;
    padding: 20px 22px 22px;
    border: 1px solid #dce8df;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 97, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8fcf9 52%, #eef7ff 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

body.staff-mode .owner-launch-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.staff-mode .owner-launch-priority-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #dbe6df;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

body.staff-mode .owner-launch-priority-card strong {
    font-size: 19px;
    color: #16304e;
}

body.staff-mode .owner-launch-priority-card p {
    margin: 0;
    color: #20324d;
    line-height: 1.65;
}

body.staff-mode .owner-launch-priority-card.tone-danger {
    border-color: rgba(214, 74, 87, 0.28);
    background: linear-gradient(135deg, rgba(255, 245, 246, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .owner-launch-priority-card.tone-warning {
    border-color: rgba(238, 165, 55, 0.32);
    background: linear-gradient(135deg, rgba(255, 249, 239, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .owner-launch-priority-card.tone-success {
    border-color: rgba(53, 179, 106, 0.28);
    background: linear-gradient(135deg, rgba(244, 255, 249, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .owner-launch-priority-card.tone-info,
body.staff-mode .owner-launch-priority-card.tone-neutral {
    border-color: rgba(77, 156, 255, 0.22);
    background: linear-gradient(135deg, rgba(241, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .inline-filter-form,
body.staff-mode .slot-actions {
    position: relative;
    z-index: 1;
}

body.staff-mode .inline-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    padding: 12px 14px;
    border: 1px solid #dbe6df;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f4fbf6 100%);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

body.staff-mode .inline-filter-form label {
    display: grid;
    gap: 6px;
    min-width: 150px;
    margin: 0;
    font-weight: 800;
}

body.staff-mode .inline-filter-form input[type="text"],
body.staff-mode .inline-filter-form input[type="month"],
body.staff-mode .inline-filter-form select {
    min-height: 44px;
    background: #fff;
}

body.staff-mode .student-detail-toolbar,
body.staff-mode .payment-context-bar {
    padding: 14px 16px;
    border: 1px solid #dbe6df;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, #f6fbf7 58%, #eef7ff 100%);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

body.staff-mode .student-detail-quicknav,
body.staff-mode .payment-context-actions {
    gap: 10px;
}

body.staff-mode .student-quick-ops-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

body.staff-mode .student-quick-ops-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe6df;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f4fbf6 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

body.staff-mode .student-quick-ops-card.tone-warning {
    border-color: rgba(237, 174, 73, 0.28);
    background: linear-gradient(135deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .student-quick-ops-card.tone-info {
    border-color: rgba(77, 156, 255, 0.22);
    background: linear-gradient(135deg, rgba(241, 248, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .student-quick-ops-card.tone-success {
    border-color: rgba(53, 179, 106, 0.24);
    background: linear-gradient(135deg, rgba(244, 255, 249, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.staff-mode .student-quick-ops-card.tone-neutral {
    border-color: rgba(144, 160, 183, 0.22);
}

body.staff-mode .student-quick-ops-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

body.staff-mode .student-quick-ops-kicker {
    color: var(--staff-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

body.staff-mode .student-quick-ops-card strong {
    color: var(--staff-text);
}

body.staff-mode .student-quick-ops-card p {
    margin: 0;
    color: var(--staff-muted);
    line-height: 1.7;
}

body.staff-mode .booking-admin-filter-panel form,
body.staff-mode .analytics-filter-panel .inline-filter-form,
body.staff-mode .student-list-filter {
    width: 100%;
}

body.staff-mode .booking-admin-filter-panel .booking-filter-form {
    width: auto;
    flex: 0 1 auto;
    min-width: min(100%, 360px);
}

body.staff-mode .booking-admin-filter-panel {
    overflow: visible;
}

body.staff-mode .booking-admin-filter-panel-compact {
    padding: 12px 16px;
    margin-top: 6px;
}

body.staff-mode .booking-admin-filter-panel-compact .booking-filter-form {
    gap: 10px;
    align-items: center;
}

body.staff-mode .booking-admin-filter-panel-compact .booking-filter-form select {
    min-height: 44px;
}

body.staff-mode .booking-admin-filter-panel-compact .secondary {
    min-height: 44px;
}

body.staff-mode .student-list-filter-compact {
    padding: 14px 16px;
    gap: 10px;
    margin-bottom: 16px;
}

body.staff-mode .student-list-filter-compact input,
body.staff-mode .student-list-filter-compact select,
body.staff-mode .student-list-filter-compact .secondary {
    min-height: 44px;
}

body.staff-mode .analytics-filter-panel-compact {
    padding: 14px 16px;
}

body.staff-mode .analytics-filter-panel-compact .panel-head-inline {
    align-items: center;
    margin-bottom: 0;
}

body.staff-mode .analytics-filter-panel-compact h3 {
    margin: 0;
    white-space: nowrap;
}

body.staff-mode .analytics-filter-panel-compact .inline-filter-form {
    gap: 10px;
}

body.staff-mode .analytics-filter-panel-compact input,
body.staff-mode .analytics-filter-panel-compact .secondary {
    min-height: 44px;
}

@media (max-width: 900px) {
    body.staff-mode .owner-section-jumpbar {
        top: 88px;
        padding: 10px 12px;
    }

    body.staff-mode .owner-launch-priority-grid {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-command-progress-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.staff-mode .student-detail-toolbar,
    body.staff-mode .payment-context-bar {
        padding: 12px;
    }

    body.staff-mode .student-quick-ops-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.staff-mode .owner-section-jumpbar {
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.staff-mode .owner-command-progress-list {
        grid-template-columns: 1fr;
    }

    body.staff-mode .owner-command-link {
        min-height: 56px;
        padding: 12px 14px;
    }

    body.staff-mode .owner-launch-priority-panel {
        padding: 16px;
        border-radius: 22px;
    }

    body.staff-mode .inline-filter-form {
        padding: 12px;
    }

    body.staff-mode .inline-filter-form label {
        width: 100%;
        min-width: 0;
    }
}

body.staff-mode .student-list-panel .table-wrap {
    overflow: auto;
}

body.staff-mode .student-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

body.staff-mode .student-table td {
    vertical-align: top;
}

body.staff-mode .student-table th:nth-child(1),
body.staff-mode .student-table td:nth-child(1) {
    min-width: 72px;
}

body.staff-mode .student-table th:nth-child(6),
body.staff-mode .student-table td:nth-child(6) {
    min-width: 180px;
}

body.staff-mode .student-table th:nth-child(7),
body.staff-mode .student-table td:nth-child(7) {
    min-width: 240px;
}

body.staff-mode .student-table th:nth-child(8),
body.staff-mode .student-table td:nth-child(8) {
    min-width: 190px;
}

body.staff-mode .student-table th:nth-child(9),
body.staff-mode .student-table td:nth-child(9) {
    min-width: 220px;
}

body.staff-mode .student-table th:nth-child(10),
body.staff-mode .student-table td:nth-child(10) {
    min-width: 250px;
}

body.staff-mode .student-memo-preview,
body.staff-mode .student-primary-action {
    height: 100%;
}

body.staff-mode .student-table-actions {
    gap: 8px;
}

body.staff-mode .student-inline-form {
    padding-top: 10px;
    border-top: 1px dashed #dbe6df;
}

body.staff-mode .booking-calendar-wrap {
    overflow-x: auto;
    padding-bottom: 6px;
}

body.staff-mode .admin-booking-calendar {
    min-width: 980px;
}

body.staff-mode .admin-booking-calendar th {
    position: sticky;
    top: 0;
    z-index: 2;
}

body.staff-mode .admin-booking-calendar th:first-child,
body.staff-mode .admin-booking-calendar td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
}

body.staff-mode .admin-booking-calendar th:first-child {
    z-index: 4;
}

body.staff-mode .calendar-cell-wrap {
    min-width: 120px;
}

body.staff-mode .admin-booking-summary-link {
    min-height: 86px;
    justify-content: center;
}

body.staff-mode .booking-admin-summary-row {
    margin-bottom: 14px;
}

.course-roadmap-groups {
    display: grid;
    gap: 18px;
}

.course-picker-groups {
    display: grid;
    gap: 16px;
}

.course-picker-category {
    display: grid;
    gap: 12px;
}

.course-picker-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-picker-category-head h5 {
    margin: 0;
    font-size: 1rem;
}

.course-picker-family-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.course-picker-family-card {
    padding: 16px;
    border-radius: 22px;
    border: 2px solid rgba(45, 58, 95, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    box-shadow: 0 14px 28px rgba(35, 46, 88, 0.08);
    display: grid;
    gap: 12px;
}

.course-picker-family-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.course-picker-family-head strong {
    font-size: 1rem;
}

.course-picker-buttons {
    display: grid;
    gap: 10px;
}

.course-pick-card-compact {
    width: 100%;
}

body.student-mode .student-course-picker-panel {
    margin-top: 18px;
}

body.student-mode .student-course-picker-panel .course-picker-groups {
    gap: 18px;
}

body.student-mode .student-course-picker-panel .course-picker-category {
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe6f2;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.student-mode .student-course-picker-panel .course-picker-family-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body.student-mode .student-course-picker-panel .course-picker-family-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.student-mode .student-course-picker-panel .course-picker-buttons {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body.student-mode .student-course-picker-panel .course-pick-card {
    min-height: 92px;
    padding: 16px 18px;
    align-content: center;
    gap: 10px;
}

body.student-mode .student-course-picker-panel .course-pick-card strong {
    font-size: 18px;
    line-height: 1.35;
}

body.student-mode .student-course-picker-panel .course-pick-card-meta {
    margin-top: 0;
}

.course-roadmap-category {
    display: grid;
    gap: 12px;
}

.course-roadmap-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-roadmap-category-head h5 {
    margin: 0;
    font-size: 1rem;
}

.course-roadmap-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.course-roadmap-card {
    border: 2px solid rgba(45, 58, 95, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.96));
    box-shadow: 0 16px 32px rgba(35, 46, 88, 0.08);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.course-roadmap-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.course-roadmap-card-head strong {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.course-roadmap-card-head p {
    margin: 0;
}

.course-roadmap-items {
    display: grid;
    gap: 10px;
}

.course-roadmap-item {
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(45, 58, 95, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.course-roadmap-item-main {
    display: grid;
    gap: 3px;
}

.course-roadmap-item-main strong {
    font-size: 0.98rem;
}

.course-roadmap-item-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.course-roadmap-item.is-current {
    border-color: rgba(255, 124, 73, 0.35);
    background: rgba(255, 243, 235, 0.96);
}

.course-roadmap-item.is-completed {
    border-color: rgba(48, 198, 127, 0.28);
    background: rgba(239, 255, 246, 0.96);
}

.course-roadmap-item.is-available {
    border-color: rgba(70, 140, 255, 0.22);
    background: rgba(244, 248, 255, 0.96);
}

.course-roadmap-item.is-contract-locked {
    align-items: flex-start;
    border-color: rgba(245, 158, 11, 0.32);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.course-roadmap-contract-note {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #92400e;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.5;
}

.course-roadmap-contract-note small {
    color: #6b7280;
    font-weight: 700;
}

.course-roadmap-contract-note a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.pill-current {
    background: #fff1e8;
    color: #d96d2d;
}

.pill-completed {
    background: #e8fff0;
    color: #1c9958;
}

.pill-available {
    background: #edf4ff;
    color: #2c69d8;
}

.pill-contract-locked {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 720px) {
    .course-roadmap-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-roadmap-item-status {
        justify-content: flex-start;
    }

    .course-roadmap-contract-note {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* Compact unified header for staff/admin screens. */
body.staff-mode .page {
    padding-top: 0;
}

body.staff-mode .app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: center;
    margin: 0 calc(50% - 50vw) 16px;
    padding: 10px clamp(18px, 3.8vw, 42px);
    border: 0;
    border-radius: 0;
    background: var(--staff-green);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    backdrop-filter: none;
    overflow-x: clip;
}

body.staff-mode .app-header::before,
body.staff-mode .app-header::after {
    display: none;
}

body.staff-mode .brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.staff-mode .brand-block > div {
    min-width: 0;
}

body.staff-mode .staff-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

body.staff-mode .brand-kicker {
    display: none;
}

body.staff-mode .brand-kicker::before {
    display: none;
}

body.staff-mode .brand-block h1 {
    margin: 1px 0 0;
    color: #fff;
    font-family: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

body.staff-mode .header-context-name {
    display: inline-block;
    margin-left: 0.32em;
    font-size: 0.9em;
    font-weight: 900;
    letter-spacing: 0;
    vertical-align: baseline;
    opacity: 0.96;
}

body.staff-mode .app-header-side {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
}

body.staff-mode .account-chip {
    display: none;
}

body.staff-mode .header-logout,
body.staff-mode button.secondary.header-logout {
    border: 0;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    box-shadow: none;
    min-height: 42px;
    padding: 0 18px;
    font-weight: 800;
}

body.staff-mode .header-logout:hover,
body.staff-mode .header-logout:focus-visible {
    background: #b42318;
    color: #fff;
}

body.staff-mode .header-utility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

body.staff-mode .header-utility-btn:hover,
body.staff-mode .header-utility-btn:focus-visible,
body.staff-mode .header-utility-btn.active {
    background: #fff;
    color: var(--staff-green-dark);
}

body.staff-mode .app-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    justify-self: end;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    scrollbar-width: none;
}

body.staff-mode .nav-link {
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
    font-weight: 800;
    backdrop-filter: none;
    transition: none;
}

body.staff-mode .nav-link:hover,
body.staff-mode .nav-link.active {
    background: #fff;
    color: var(--staff-green-dark);
    box-shadow: none;
    transform: none;
}

.settings-accordion {
    overflow: hidden;
}

.settings-accordion summary {
    list-style: none;
}

.settings-accordion summary::-webkit-details-marker {
    display: none;
}

.settings-accordion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    cursor: pointer;
}

.settings-accordion-summary-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.settings-accordion-summary-main h3 {
    margin: 0;
}

.settings-accordion-summary-main p {
    margin: 0;
    color: #5f6f86;
    font-size: 13px;
}

.settings-accordion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #cfe0ef;
    background: #f8fbff;
    color: #16355c;
    flex-shrink: 0;
}

.settings-accordion-toggle::before {
    content: "+";
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.settings-accordion[open] .settings-accordion-toggle::before {
    content: "-";
}

.settings-accordion-body {
    margin-top: 16px;
}

.settings-accordion-wide > .settings-accordion-body > .admin-stack {
    margin-top: 0;
}

@media (max-width: 900px) {
    body.staff-mode .app-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
        padding: 14px 16px;
        margin: 0 calc(50% - 50vw) 18px;
    }

    body.staff-mode .app-header-side {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        justify-content: flex-end;
    }

    body.staff-mode .app-nav {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .settings-accordion-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .settings-accordion-summary .course-material-status {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body.staff-mode .brand-block h1 {
        font-size: 23px;
    }

    body.staff-mode .staff-brand-logo {
        width: 38px;
        height: 38px;
    }

    body.staff-mode .header-context-name {
        display: block;
        margin: 6px 0 0;
        font-size: 0.8em;
    }
}

@media (max-width: 900px) {
    body.student-mode {
        --student-booking-sticky-top: 64px;
    }

    body.student-mode .app-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding: 10px 14px;
    }

    body.student-mode .app-nav,
    body.student-mode .app-header-side {
        display: none;
    }

    body.student-mode .mobile-menu-button {
        display: inline-flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, 0.38);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.16);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
        cursor: pointer;
    }

    body.student-mode .mobile-menu-button span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
    }

    body.student-mode .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(6, 32, 71, 0.42);
        backdrop-filter: blur(2px);
    }

    body.student-mode .mobile-menu-panel {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 90;
        width: min(330px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 16px;
        border: 1px solid rgba(34, 197, 94, 0.22);
        border-radius: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f5fff8 100%);
        box-shadow: 0 24px 60px rgba(6, 32, 71, 0.28);
    }

    body.student-mode .mobile-menu-check:checked ~ .mobile-menu-backdrop,
    body.student-mode .mobile-menu-check:checked ~ .mobile-menu-panel {
        display: block;
    }

    body.student-mode .mobile-menu-check:checked ~ .mobile-menu-button {
        background: rgba(255, 255, 255, 0.28);
    }

    body.student-mode .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    body.student-mode .mobile-menu-head strong {
        color: var(--student-text);
        font-size: 18px;
        font-weight: 900;
    }

    body.student-mode .mobile-menu-close {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #e9f8ee;
        color: var(--student-green-dark);
        font-size: 28px;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
    }

    body.student-mode .mobile-menu-links {
        display: grid;
        gap: 9px;
    }

    body.student-mode .mobile-menu-links .nav-link {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(34, 197, 94, 0.18);
        border-radius: 14px;
        background: #fff;
        color: var(--student-text);
        box-shadow: none;
        text-decoration: none;
        font-size: 15px;
    }

    body.student-mode .mobile-menu-links .nav-link.active {
        background: var(--student-green);
        color: #fff;
    }

    body.student-mode .mobile-menu-logout-form {
        margin: 14px 0 0;
    }

    body.student-mode .mobile-menu-logout,
    body.student-mode button.secondary.mobile-menu-logout {
        width: 100%;
        min-height: 50px;
        border: 0;
        border-radius: 999px;
        background: #d92d20;
        color: #fff;
        font-weight: 900;
    }
}

body.student-mode .student-focus-stats.student-focus-stats-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.student-mode .student-focus-stats-overview .student-focus-stat-card.is-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    body.student-mode .student-focus-stats.student-focus-stats-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.student-mode .student-focus-stats-overview .student-focus-stat-card.is-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    body.student-mode .student-focus-stats.student-focus-stats-overview {
        grid-template-columns: 1fr;
    }

    body.student-mode .student-focus-stats-overview .student-focus-stat-card.is-wide {
        grid-column: auto;
    }
}

body.student-mode .student-booking-panel .booking-calendar-wrap {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
}

body.student-mode .student-booking-panel .booking-calendar {
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible;
}

body.student-mode .student-booking-panel .booking-calendar-sticky-head {
    position: sticky;
    top: var(--student-booking-sticky-top);
    z-index: 12;
    margin-bottom: -1px;
    background: #fff;
}

body.student-mode .student-booking-panel .booking-calendar-sticky-head-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    background: #fff;
}

body.student-mode .student-booking-panel .booking-calendar-sticky-head-scroll::-webkit-scrollbar {
    display: none;
}

body.student-mode .student-booking-panel .booking-calendar-sticky-table {
    margin-bottom: 0;
}

body.student-mode .student-booking-panel .booking-calendar-native-head {
    display: none;
}

body.student-mode .student-booking-panel .booking-calendar th:first-child,
body.student-mode .student-booking-panel .booking-calendar td:first-child,
body.student-mode .student-booking-panel .booking-time-head,
body.student-mode .student-booking-panel .booking-time-cell {
    position: sticky;
    left: 0;
    z-index: 6;
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    background: #fff;
    box-shadow: 10px 0 18px rgba(15, 23, 42, 0.08);
}

body.student-mode .student-booking-panel .booking-calendar th:first-child,
body.student-mode .student-booking-panel .booking-time-head {
    z-index: 8;
    background: #fff6d8;
}

body.student-mode .student-booking-panel .booking-calendar tbody tr:nth-child(odd) td:first-child,
body.student-mode .student-booking-panel .booking-calendar tbody tr:nth-child(odd) .booking-time-cell {
    background: #f8fafc;
}

body.student-mode .student-booking-panel .booking-calendar-sticky-head .booking-day-head,
body.student-mode .student-booking-panel .booking-calendar-sticky-head .booking-time-head {
    background: #fff6d8;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
}


