:root {
  --page: #f4f7fb; --surface: #fff; --surface-soft: #f7f9fc; --text: #17233c;
  --muted: #718097; --line: #e5eaf1; --brand: #1768e5; --brand-soft: #eaf2ff;
  --cyan: #16a7be; --violet: #7959d8; --amber: #d58a18; --warning: #9a5c00;
  --shadow: 0 12px 34px rgba(33, 55, 90, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
.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; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; color: var(--text); font-size: 18px; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #146bea, #204dbd); color: #fff; font-size: 14px; box-shadow: 0 8px 18px rgba(23, 104, 229, .24); }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border-radius: 10px; color: #5f6d83; font-size: 14px; text-decoration: none; }
.nav-item > span { width: 20px; color: #8793a6; font-size: 17px; text-align: center; }
.nav-item:hover { background: var(--surface-soft); color: var(--text); }
.nav-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.nav-item.is-active > span { color: var(--brand); }
.sidebar-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.preview-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e3a126; }

.workspace { min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); }
.search-box { width: min(430px, 48vw); height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-soft); color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.role-actions { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.role-actions a { text-decoration: none; }
.role-current { color: var(--brand); font-weight: 750; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }

main { width: min(1320px, calc(100vw - 208px)); margin: 0 auto; padding: 32px clamp(22px, 3vw, 46px) 54px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.015em; }
.welcome-row p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.primary-button, .small-button, .wide-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; text-decoration: none; font-weight: 750; }
.primary-button { min-height: 44px; padding: 0 19px; background: var(--brand); color: #fff; box-shadow: 0 9px 22px rgba(23, 104, 229, .2); }
.preview-notice { margin: 22px 0; padding: 10px 14px; border: 1px solid #f0dfbd; border-radius: 9px; background: #fffaf0; color: #86602a; font-size: 12px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.summary-card { min-height: 112px; display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.summary-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 19px; font-weight: 800; }
.summary-card small, .summary-card span { display: block; color: var(--muted); font-size: 11px; }
.summary-card strong { display: block; margin: 3px 0; font-size: 22px; line-height: 1.15; }
.accent-cyan .summary-icon { background: #e7f8fa; color: var(--cyan); }
.accent-violet .summary-icon { background: #f0ecff; color: var(--violet); }
.accent-amber .summary-icon { background: #fff4df; color: var(--amber); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 16px; margin-top: 16px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.task-panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading > a, .panel-heading > span { color: var(--brand); font-size: 12px; text-decoration: none; }
.filter-row { display: flex; gap: 7px; margin: 20px 0 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.filter { padding: 5px 12px; border-radius: 15px; color: var(--muted); font-size: 12px; }
.filter.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.task-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 82px; padding: 13px 5px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-type { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.task-type.muted { background: var(--surface-soft); color: var(--muted); }
.task-copy strong, .task-copy span { display: block; }
.task-copy strong { margin-bottom: 5px; font-size: 14px; }
.task-copy span, .task-meta { color: var(--muted); font-size: 11px; }
.small-button { min-width: 58px; min-height: 32px; padding: 0 12px; background: var(--brand); color: #fff; font-size: 12px; }
.disabled { background: #eef1f5 !important; color: #9aa5b4 !important; cursor: not-allowed; box-shadow: none; }
.right-column { display: grid; gap: 16px; }
.diagnostic-card { position: relative; min-height: 240px; overflow: hidden; padding: 24px; background: linear-gradient(145deg, #eef6ff, #fff 62%); }
.diagnostic-card h2 { max-width: 210px; margin-bottom: 10px; font-size: 21px; }
.diagnostic-card > p:not(.eyebrow) { max-width: 250px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.card-visual { position: absolute; top: 18px; right: 18px; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(145deg, #1c7aff, #6b5de7); color: #fff; box-shadow: 0 14px 24px rgba(48, 91, 210, .22); transform: rotate(4deg); }
.card-visual span { position: absolute; top: 9px; font-size: 9px; opacity: .8; }
.card-visual strong { padding-top: 10px; font-size: 30px; }
.wide-button { min-height: 36px; width: 100%; margin-top: 6px; font-size: 12px; }
.mini-panel { padding: 20px; }
.panel-heading.compact { align-items: center; }
.panel-heading.compact h2 { font-size: 15px; }
.panel-heading.compact span { color: var(--muted); }
.empty-state { min-height: 94px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.empty-state > span { font-size: 26px; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.6; }

.journey-panel { margin-top: 16px; padding: 22px; }
.state-label { padding: 5px 10px; border-radius: 14px; background: var(--brand-soft); }
.journey-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 24px 0 0; padding: 0; }
.journey-list li { position: relative; display: flex; gap: 10px; align-items: center; min-width: 0; }
.journey-list li::after { content: ""; position: absolute; left: 37px; right: 8px; top: 15px; height: 1px; background: var(--line); }
.journey-list li:last-child::after { display: none; }
.journey-list li > span { z-index: 1; display: grid; flex: 0 0 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 11px; }
.journey-list li.is-current > span { border-color: var(--brand); background: var(--brand); color: #fff; }
.journey-list strong, .journey-list small { display: block; position: relative; z-index: 1; background: var(--surface); }
.journey-list strong { padding-right: 7px; font-size: 12px; }
.journey-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.system-status { margin-top: 16px; padding: 16px 20px; border: 1px dashed #cfd7e3; border-radius: 12px; background: rgba(255,255,255,.58); color: var(--muted); font-size: 12px; }
.system-status summary { cursor: pointer; font-weight: 700; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.status-grid article { padding: 13px; border-radius: 9px; background: var(--surface); }
.status-grid span, .status-grid small, .status-grid strong { display: block; }
.status-grid strong { margin: 4px 0; color: var(--text); font-size: 20px; }
.status-message { margin: 10px 0 0; }
.status-message.is-warning { color: var(--warning); }
a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(23, 104, 229, .3); outline-offset: 3px; }

.task-center-page { max-width: none; }
.task-data-notice { margin-top: 0; }
.task-center-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 142px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.task-subnav { padding: 28px 16px; border-right: 1px solid var(--line); background: #f7f9fc; }
.task-subnav h1 { padding: 0 10px; margin-bottom: 22px; font-size: 22px; }
.status-filter-list { display: grid; gap: 4px; }
.status-filter-row { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #40506a; cursor: pointer; text-align: left; }
.status-filter-row strong { font-size: 12px; font-weight: 650; }
.status-filter-row:hover { background: #edf1f7; }
.status-filter-row.is-active { background: #e6efff; color: var(--brand); font-weight: 750; }
.subnav-divider { height: 1px; margin: 14px 8px; background: var(--line); }
.task-results { min-width: 0; padding: 28px; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.results-heading h2 { font-size: 25px; }
.result-count { color: var(--muted); font-size: 12px; }
.filter-matrix { display: grid; gap: 12px; margin-top: 24px; padding: 18px 20px; border-radius: 11px; background: var(--surface-soft); }
.filter-line { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 8px; }
.filter-line > strong { padding-top: 7px; color: var(--muted); font-size: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #526179; cursor: pointer; font-size: 12px; }
.filter-chip:hover { background: #edf1f7; }
.filter-chip.is-active { background: #e3edff; color: var(--brand); font-weight: 750; }
.task-tools { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.inline-search { width: min(410px, 48%); height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.inline-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); }
.task-tools select { height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #526179; font-size: 12px; }
.view-toggle { display: flex; margin-left: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.view-toggle button { width: 38px; height: 36px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.view-toggle button:last-child { border-right: 0; }
.view-toggle button.is-active { background: var(--brand-soft); color: var(--brand); }
.active-filter-summary { min-height: 20px; margin: 14px 0 4px; color: var(--muted); font-size: 11px; }
.date-group { margin-top: 18px; }
.date-heading { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.task-card-grid { display: grid; grid-template-columns: repeat(2, minmax(270px, 1fr)); gap: 14px; }
.full-task-card { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid #91a0b4; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(33, 55, 90, .06); }
.full-task-card.status-todo { border-left-color: var(--brand); }
.full-task-card.status-in_progress { border-left-color: var(--cyan); }
.full-task-card.status-completed { border-left-color: #27a779; }
.full-task-card.status-waiting_review { border-left-color: var(--amber); }
.task-card-top, .task-card-foot, .task-card-controls { display: flex; align-items: center; }
.task-card-top, .task-card-foot { justify-content: space-between; gap: 12px; }
.task-kind { color: var(--muted); font-size: 11px; }
.task-state { padding: 4px 8px; border-radius: 6px; background: #edf1f6; color: #627087; font-size: 10px; font-weight: 750; }
.task-state-todo { background: #e8f0ff; color: var(--brand); }
.task-state-in_progress { background: #e4f8fa; color: #087f92; }
.task-state-completed { background: #e7f7f0; color: #15825d; }
.task-state-waiting_review { background: #fff3de; color: #a56608; }
.full-task-card h3 { margin: 15px 0 7px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.task-description { min-height: 36px; margin-bottom: 13px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.task-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 17px; }
.task-facts div { min-width: 0; }
.task-facts dt { color: #9aa5b5; font-size: 9px; }
.task-facts dd { margin: 2px 0 0; overflow: hidden; color: #536178; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-card-foot { padding-top: 13px; border-top: 1px solid var(--line); }
.subject-label { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 12px; background: #f0f3f8; color: #65738a; font-size: 10px; }
.task-card-controls { gap: 8px; }
.favorite-button { width: 32px; height: 32px; border: 0; background: transparent; color: #8793a5; cursor: pointer; font-size: 20px; }
.favorite-button.is-active { color: #e8a21c; }
.task-action { display: inline-flex; min-width: 74px; min-height: 34px; align-items: center; justify-content: center; padding: 0 11px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; cursor: pointer; font-size: 11px; font-weight: 750; text-decoration: none; }
.task-action-secondary { background: #eef2f7; color: #56657c; }
.task-groups.is-list .task-card-grid { grid-template-columns: 1fr; }
.task-groups.is-list .full-task-card { display: grid; grid-template-columns: 110px minmax(180px, 1fr) minmax(240px, 1fr) auto; align-items: center; gap: 14px; }
.task-groups.is-list .task-card-top { display: contents; }
.task-groups.is-list .task-state { justify-self: start; grid-column: 1; grid-row: 1; }
.task-groups.is-list .task-kind { grid-column: 1; grid-row: 2; }
.task-groups.is-list .full-task-card h3 { grid-column: 2; grid-row: 1; margin: 0; }
.task-groups.is-list .task-description { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; }
.task-groups.is-list .task-facts { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.task-groups.is-list .task-card-foot { grid-column: 4; grid-row: 1 / 3; padding: 0; border: 0; gap: 15px; }
.task-empty { margin-top: 30px; padding: 54px 20px; border: 1px dashed #ccd5e1; border-radius: 11px; color: var(--muted); text-align: center; }
.task-empty strong { color: var(--text); }
.task-empty p { font-size: 12px; }
.task-empty button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; cursor: pointer; }
.load-error { padding: 30px; border-radius: 10px; background: #fff4f0; color: #a33c26; }

.task-dialog { width: min(520px, calc(100vw - 28px)); padding: 27px; border: 0; border-radius: 14px; color: var(--text); box-shadow: 0 24px 80px rgba(22, 35, 57, .24); }
.task-dialog::backdrop { background: rgba(18, 29, 48, .46); }
.dialog-close { position: absolute; top: 12px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f4f8; color: #647188; cursor: pointer; font-size: 20px; }
.task-dialog h2 { margin: 0 36px 20px 0; font-size: 22px; }
.task-dialog dl { display: grid; gap: 10px; margin: 0; padding: 16px; border-radius: 10px; background: var(--surface-soft); }
.task-dialog dl div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }
.task-dialog dt { color: var(--muted); font-size: 11px; }
.task-dialog dd { margin: 0; font-size: 11px; }
.dialog-description { margin: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dialog-confirm { border: 0; background: var(--brand); color: #fff; cursor: pointer; }
.dialog-secondary { border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.session-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.session-dialog-actions form { margin: 0; }
.session-dialog-actions .wide-button { min-height: 44px; }
.session-entry-result { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.classroom-entry-page { max-width: 1080px; }
.classroom-entry-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 25px; }
.classroom-entry-hero p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.classroom-session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.classroom-session-card { padding: 19px; }
.classroom-session-card h2 { margin: 9px 0 6px; font-size: 18px; }
.classroom-session-card p, .classroom-session-card small { color: var(--muted); font-size: 11px; line-height: 1.65; }
.classroom-session-state { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: #eef2f7; color: #5e6d83; font-size: 10px; font-weight: 750; }
.classroom-session-state.state-ready { background: #e7f7f0; color: #15825d; }
.classroom-session-state.state-error { background: #fff0eb; color: #b64c31; }
.classroom-session-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.classroom-session-actions button, .session-bootstrap button { min-height: 44px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; font-weight: 750; }
.classroom-session-actions button:disabled { background: #edf1f6; color: #8793a5; cursor: not-allowed; }
.session-bootstrap { padding: 24px; }
.session-bootstrap-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.session-bootstrap button { min-width: 170px; padding: 0 15px; }
.classroom-service-state { padding: 13px 16px; border-radius: 9px; background: #f3f6fb; color: #59677c; font-size: 11px; line-height: 1.65; }
#switchSession { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }

.page-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.page-breadcrumb a { text-decoration: none; }
.page-breadcrumb strong { color: var(--text); }
.student-detail-page { max-width: 1260px; }
.detail-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px; }
.detail-page-heading h1 { margin-bottom: 5px; font-size: 27px; }
.detail-page-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.schedule-panel { overflow: hidden; }
.schedule-actions { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.schedule-actions button { min-width: 60px; height: 34px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.schedule-actions button:last-child { border-right: 0; }
.schedule-actions button.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.calendar-weekdays span { padding: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-day { min-width: 0; min-height: 118px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-outside { background: #fbfcfe; }
.calendar-day.is-today { background: #f5f9ff; box-shadow: inset 0 0 0 1px #b9d1fa; }
.calendar-date { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.calendar-day.is-today .calendar-date { color: var(--brand); font-weight: 750; }
.calendar-event { width: 100%; display: block; margin: 4px 0; padding: 6px; overflow: hidden; border: 0; border-radius: 6px; background: var(--brand-soft); color: var(--brand); cursor: pointer; text-align: left; }
.calendar-event strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-list { padding: 10px 24px 24px; }
.agenda-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda-date { text-align: center; }
.agenda-date strong, .agenda-date span { display: block; }
.agenda-date strong { font-size: 22px; }
.agenda-date span { color: var(--muted); font-size: 10px; }
.agenda-event { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--text); cursor: pointer; text-align: left; }
.agenda-event span { color: var(--muted); font-size: 10px; }
.schedule-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.next-session-card, .schedule-rule-card { padding: 22px; }
.next-session-card h2, .schedule-rule-card h2 { margin-bottom: 14px; }
.next-session-title { display: block; margin-bottom: 8px; font-size: 17px; }
.next-session-card p { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.next-session-card .agenda-event { margin-top: 14px; }
.schedule-rule-card ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 12px; line-height: 2; }

.growth-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px; background: linear-gradient(135deg, #eef5ff, #fff 65%); }
.growth-hero h1 { margin-bottom: 7px; }
.growth-hero > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; }
.program-progress { flex: 0 0 220px; }
.program-progress > strong, .program-progress > span, .program-progress > small { display: block; }
.program-progress > strong { color: var(--brand); font-size: 28px; }
.program-progress > span, .program-progress > small { color: var(--muted); font-size: 10px; }
.program-progress > div { height: 7px; margin: 9px 0; overflow: hidden; border-radius: 4px; background: #dfe7f2; }
.program-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.growth-tabs { display: flex; gap: 5px; margin: 16px 0; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.growth-tabs button { min-height: 38px; flex: 1 0 auto; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.growth-tabs button.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.growth-stack { display: grid; gap: 16px; }
.growth-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.growth-stat-card { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.growth-stat-card span, .growth-stat-card strong, .growth-stat-card small { display: block; }
.growth-stat-card span, .growth-stat-card small { color: var(--muted); font-size: 10px; }
.growth-stat-card strong { margin: 8px 0; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.growth-detail-card, .competence-panel, .report-gate { padding: 22px; }
.growth-detail-card > p:last-of-type, .report-gate > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.7; }
.missing-evidence { margin-top: 16px; padding: 14px; border-radius: 9px; background: #fff8eb; color: #8b621e; font-size: 11px; }
.missing-evidence ul { margin: 7px 0 0; padding-left: 18px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title-row > span, .section-title-row > small, .section-title-row time { color: var(--muted); font-size: 10px; }
.competence-row { display: grid; grid-template-columns: 180px minmax(120px, 1fr) 38px 62px; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.competence-row:last-child { border-bottom: 0; }
.competence-row strong, .competence-row small { display: block; }
.competence-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.competence-meter { height: 7px; overflow: hidden; border-radius: 4px; background: #e9edf3; }
.competence-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.competence-score { text-align: right; }
.trend { display: inline-flex; justify-content: center; padding: 4px 7px; border-radius: 6px; background: #edf1f6; color: #65738a; font-size: 9px; }
.trend-up, .trend-improving { background: #e7f7f0; color: #15825d; }
.trend-down, .trend-worsening { background: #fff0eb; color: #b64c31; }
.mistake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.mistake-card { padding: 19px; }
.mistake-card h2 { margin: 14px 0 10px; }
.mistake-card p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.mistake-action { min-height: 54px; padding: 10px; border-radius: 7px; background: var(--surface-soft); }
.feedback-layout { display: grid; grid-template-columns: 1fr 310px; gap: 16px; }
.feedback-list { display: grid; gap: 12px; }
.feedback-card, .feedback-rule { padding: 20px; }
.feedback-card p, .feedback-rule p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.feedback-card small { color: #8d99aa; font-size: 9px; }
.report-list { display: grid; gap: 10px; }
.report-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(180px, .6fr) auto; align-items: center; gap: 20px; padding: 18px; }
.report-row strong, .report-row span { display: block; }
.report-row > div:first-child span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.report-completeness { position: relative; height: 24px; overflow: hidden; border-radius: 12px; background: #edf1f6; }
.report-completeness span { position: relative; z-index: 1; padding: 5px 10px; color: #4b5a70; font-size: 9px; }
.report-completeness i { position: absolute; inset: 0 auto 0 0; background: #dce9ff; }
.report-status { padding: 5px 8px; border-radius: 6px; background: #fff3de; color: #9a630e; font-size: 9px; }

@media (max-width: 1050px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr 1fr; }
  .journey-list { grid-template-columns: 1fr; gap: 15px; }
  .journey-list li::after { left: 14px; right: auto; top: 30px; bottom: -16px; width: 1px; height: auto; }
  .task-center-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .task-card-grid { grid-template-columns: 1fr; }
  .task-groups.is-list .full-task-card { display: block; }
  .task-groups.is-list .task-card-top, .task-groups.is-list .task-card-foot { display: flex; }
  .task-groups.is-list .full-task-card h3 { margin: 15px 0 7px; }
  .task-groups.is-list .task-description { margin-bottom: 13px; }
  .task-groups.is-list .task-facts { margin-bottom: 17px; }
  .task-groups.is-list .task-card-foot { padding-top: 13px; border-top: 1px solid var(--line); }
  .growth-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .mistake-grid { grid-template-columns: 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 66px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: 66px; padding: 6px 7px; border-top: 1px solid var(--line); border-right: 0; }
  .brand, .sidebar-foot { display: none; }
  .side-nav { height: 100%; grid-template-columns: repeat(5, 1fr); }
  .nav-item { min-height: 52px; flex-direction: column; justify-content: center; gap: 1px; padding: 0 2px; font-size: 10px; }
  .nav-item > span { font-size: 16px; }
  .nav-item:nth-child(n+6) { display: none; }
  .topbar { height: 58px; padding: 0 14px; }
  .search-box { width: 52%; }
  .role-actions { gap: 10px; }
  .role-actions a, .role-current { display: none; }
  main { width: 100%; padding: 22px 14px 30px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .welcome-row .primary-button { width: 100%; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .summary-card { min-height: 104px; padding: 13px; gap: 9px; }
  .summary-icon { flex-basis: 34px; height: 34px; }
  .summary-card strong { font-size: 17px; }
  .task-panel { padding: 17px; }
  .task-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .task-meta { display: none; }
  .small-button { min-width: 52px; }
  .right-column { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .task-center-page { padding-left: 10px; padding-right: 10px; }
  .task-center-layout { display: block; border: 0; background: transparent; box-shadow: none; }
  .task-subnav { padding: 13px 0; border: 0; background: transparent; }
  .task-subnav h1 { padding: 0; margin-bottom: 12px; }
  .status-filter-list { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .status-filter-row { width: auto; flex: 0 0 auto; min-height: 34px; gap: 8px; padding: 0 11px; background: #fff; }
  .subnav-divider, .task-subnav > [data-special-filter] { display: none; }
  .task-results { padding: 18px 0 0; }
  .filter-matrix { padding: 14px; }
  .filter-line { grid-template-columns: 1fr; }
  .task-tools { flex-wrap: wrap; }
  .inline-search { width: 100%; }
  .view-toggle { margin-left: 0; }
  .task-card-grid { grid-template-columns: 1fr; }
  .task-facts { grid-template-columns: 1fr 1fr; }
  .page-breadcrumb { font-size: 11px; }
  .detail-page-heading, .growth-hero { align-items: flex-start; flex-direction: column; }
  .calendar-weekdays { display: none; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-day, .calendar-day.is-outside { display: none; }
  .calendar-day:has(.calendar-event) { display: block; min-height: auto; border-right: 0; }
  .schedule-bottom-grid { grid-template-columns: 1fr; }
  .schedule-actions { width: 100%; }
  .schedule-actions button { flex: 1; }
  .program-progress { width: 100%; flex-basis: auto; }
  .growth-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .competence-row { grid-template-columns: 1fr 52px; }
  .competence-meter { grid-column: 1 / 3; grid-row: 2; }
  .competence-score { grid-column: 2; grid-row: 1; }
  .competence-row .trend { grid-column: 1 / 3; width: fit-content; }
  .report-row { grid-template-columns: 1fr; gap: 12px; }
  .classroom-entry-hero { align-items: flex-start; flex-direction: column; }
  .classroom-session-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .summary-card { align-items: flex-start; flex-direction: column; }
  .task-copy span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.home-next-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; justify-content: flex-end; }
.home-next-actions .small-button { display: inline-flex; align-items: center; min-height: 42px; }
@media (max-width: 720px) { .home-next-actions { width: 100%; justify-content: stretch; } .home-next-actions > * { flex: 1 1 100%; justify-content: center; text-align: center; } }

/* HOME-VISUAL-001: student home visual hierarchy */
.student-home .home-main {
  width: min(1180px, calc(100vw - 248px));
  padding: 36px 28px 64px;
}
.student-home .home-hero,
.student-home .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #dce5f1;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 55%, #eaf3ff);
  box-shadow: 0 18px 50px rgba(31, 60, 104, .09);
}
.student-home .today-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #52657e;
  font-size: 13px;
  font-weight: 750;
}
.student-home .demo-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.student-home .hero-copy h1,
.student-home .hero-card h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.student-home .hero-copy > p:last-of-type,
.student-home .hero-card > div > p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #5c6d84;
  font-size: 15px;
  line-height: 1.75;
}
.student-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.student-home .hero-actions .primary-button {
  min-height: 50px;
  padding: 0 23px;
  border-radius: 11px;
  font-size: 15px;
}
.student-home .secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  color: #43546b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.student-home .secondary-button:hover { border-color: #9abcf0; color: var(--brand); }
.student-home .hero-focus {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid #cfe0f7;
  border-radius: 17px;
  background: rgba(255,255,255,.88);
}
.student-home .focus-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}
.student-home .hero-focus strong { margin-top: 13px; font-size: 22px; line-height: 1.3; }
.student-home .hero-focus p,
.student-home .hero-focus small { color: var(--muted); line-height: 1.55; }
.student-home .hero-focus p { margin: 8px 0 18px; font-size: 12px; }
.student-home .hero-focus small { margin-top: 8px; font-size: 10px; }
.student-home .focus-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e2e9f2; }
.student-home .focus-progress i { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); }

.student-home .account-context,
.student-home .preview-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #677990;
  font-size: 12px;
  line-height: 1.6;
}
.student-home .account-context > span[aria-hidden] {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border: 1px solid #b8cae1;
  border-radius: 50%;
  color: var(--brand);
  font-size: 11px;
}
.student-home .account-context a { color: var(--brand); text-decoration: none; }
.student-home .home-summary,
.student-home .overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.student-home .home-summary .summary-card,
.student-home .overview-grid .summary-card {
  min-height: 112px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(34, 58, 94, .07);
}
.student-home .home-summary .summary-card strong { font-size: 20px; }
.student-home .learning-chain {
  margin-top: 18px;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(34, 58, 94, .05);
}
.student-home .learning-chain h2 { font-size: 21px; }
.student-home .learning-chain a { transition: border-color .15s, background .15s, transform .15s; }
.student-home .learning-chain a:hover { border-color: #91b9f2; background: #f6f9ff; transform: translateY(-1px); }

.student-home .home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 16px;
  margin-top: 18px;
}
.student-home .home-side-stack { display: grid; align-content: start; gap: 16px; }
.student-home .home-task-panel,
.student-home .next-class-card,
.student-home .start-card,
.student-home .progress-panel,
.student-home .quick-panel {
  padding: 22px;
  border-radius: 16px;
}
.student-home .home-heading h2,
.student-home .next-class-card h2,
.student-home .start-card h2,
.student-home .progress-panel h2,
.student-home .quick-panel h2 { margin: 5px 0 7px; line-height: 1.3; }
.student-home .home-heading > div > p:last-child,
.student-home .next-class-content p,
.student-home .start-card p,
.student-home .progress-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.student-home .eyebrow,
.student-home .start-step {
  margin: 0;
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.student-home .home-loading,
.student-home .home-task-list > p {
  min-height: 74px;
  margin: 16px 0 0;
  padding: 20px;
  border-radius: 12px;
  background: #f6f8fb;
  color: #65768d;
  line-height: 1.6;
}
.student-home .next-class-content { margin-top: 17px; padding: 16px; border-radius: 12px; background: #f5f8fc; }
.student-home .next-class-content strong { display: block; margin-bottom: 6px; }
.student-home .start-card { background: linear-gradient(145deg, #f1f7ff, #fff 70%); }
.student-home .start-actions { display: grid; gap: 8px; margin-top: 16px; }
.student-home .start-actions a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #cfe0f6;
  border-radius: 9px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.student-home .start-actions a:first-child { border-color: var(--brand); background: var(--brand); color: #fff; }
.student-home .home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  margin-top: 16px;
}
.student-home .progress-empty { display: flex; align-items: center; gap: 15px; min-height: 116px; margin-top: 14px; padding: 18px; border-radius: 12px; background: #f6f8fb; }
.student-home .progress-empty > span { color: var(--brand); font-size: 28px; }
.student-home .progress-empty strong { display: block; margin-bottom: 6px; }
.student-home .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.student-home .quick-grid a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  background: #f9fbfe;
  text-decoration: none;
}
.student-home .quick-grid a > span { grid-row: 1 / 3; color: var(--brand); font-size: 20px; }
.student-home .quick-grid strong,
.student-home .quick-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-home .quick-grid strong { font-size: 12px; }
.student-home .quick-grid small { color: var(--muted); font-size: 10px; }

.student-home .all-learning-functions,
.student-home .all-tools {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.student-home .all-learning-functions > h2,
.student-home .all-learning-functions > p,
.student-home .all-learning-functions > .all-learning-grid {
  margin-left: 22px;
  margin-right: 22px;
}
.student-home .all-learning-functions > h2 { margin-top: 20px; }
.student-home .all-learning-grid,
.student-home .all-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.student-home .all-learning-grid a,
.student-home .all-tools-grid a {
  min-width: 0;
  min-height: 44px;
  justify-content: flex-start;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #52637a;
  font-size: 12px;
  font-weight: 700;
}
.student-home details.all-tools > summary {
  padding: 18px 22px;
  color: #40536c;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .student-home .home-main { width: calc(100vw - 208px); }
  .student-home .home-hero,
  .student-home .hero-card { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; }
  .student-home .home-layout,
  .student-home .home-lower-grid { grid-template-columns: 1fr; }
  .student-home .home-side-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .student-home .home-main { width: 100%; padding: 22px 14px 36px; }
  .student-home .home-hero,
  .student-home .hero-card { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 18px; }
  .student-home .hero-copy h1,
  .student-home .hero-card h1 { font-size: clamp(31px, 8vw, 42px); }
  .student-home .hero-actions { align-items: stretch; flex-direction: column; }
  .student-home .hero-actions .primary-button { width: 100%; }
  .student-home .hero-actions .secondary-button { min-height: 40px; border: 0; background: transparent; }
  .student-home .hero-focus { padding: 18px; }
  .student-home .home-summary,
  .student-home .overview-grid { grid-template-columns: 1fr 1fr; }
  .student-home .home-side-stack { grid-template-columns: 1fr; }
  .student-home .panel-heading { align-items: flex-start; }
  .student-home .home-lower-grid { grid-template-columns: 1fr; }
  .student-home .all-learning-grid,
  .student-home .all-tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 390px) {
  .student-home .home-main { padding-left: 11px; padding-right: 11px; }
  .student-home .home-hero,
  .student-home .hero-card { padding: 21px 17px; }
  .student-home .hero-copy h1,
  .student-home .hero-card h1 { font-size: 31px; }
  .student-home .hero-actions .secondary-button { justify-content: flex-start; padding-left: 0; }
  .student-home .home-summary,
  .student-home .overview-grid { grid-template-columns: 1fr; }
  .student-home .home-summary .summary-card { min-height: 92px; flex-direction: row; }
  .student-home .learning-chain,
  .student-home .home-task-panel,
  .student-home .next-class-card,
  .student-home .start-card,
  .student-home .progress-panel,
  .student-home .quick-panel { padding: 17px; }
  .student-home .quick-grid,
  .student-home .all-learning-grid,
  .student-home .all-tools-grid { grid-template-columns: 1fr; }
  .student-home .progress-empty { align-items: flex-start; }
}

/* HOME-VISUAL-CONTRACT-002: HOME-IA final class contract */
.student-home .home-hero .hero-copy:only-child { grid-column: 1 / -1; }
.student-home .next-class-card { margin-top: 18px; }
.student-home .all-tools > p,
.student-home .all-tools > .all-tools-grid {
  margin-left: 22px;
  margin-right: 22px;
}
.student-home .all-tools > p {
  margin-top: 0;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.student-home .nav-section-label {
  margin: 0 12px 8px;
  color: #98a3b3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.student-home .service-state { display: flex; align-items: center; gap: 8px; }
.student-home .service-state strong,
.student-home .service-state small { display: block; }
.student-home .service-state strong { color: #52637a; font-size: 11px; }
.student-home .service-state small { margin-top: 2px; }
.student-home .service-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #1aa06d;
  box-shadow: 0 0 0 4px #e3f6ef;
}
.student-home .help-link { color: #53647b; font-weight: 700; }
.student-home .session-button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.student-home .secondary-session-button { border: 1px solid var(--line); background: #fff; color: #53647b; }

.student-home .route-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 17px 19px;
  border: 1px solid #edc17d;
  border-radius: 13px;
  background: #fff9ee;
}
.student-home .route-recovery[hidden] { display: none; }
.student-home .route-recovery strong { color: #87540b; }
.student-home .route-recovery p { margin: 5px 0 0; color: #7a6749; font-size: 12px; line-height: 1.6; }
.student-home .route-recovery-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.student-home .route-recovery-actions button,
.student-home .route-recovery-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #ddac61;
  border-radius: 9px;
  background: #fff;
  color: #805008;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.student-home .route-recovery-actions button { border-color: #b87512; background: #b87512; color: #fff; }

.student-home .synthetic-session-dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(20, 37, 64, .28);
}
.student-home .synthetic-session-dialog::backdrop { background: rgba(18, 31, 52, .52); backdrop-filter: blur(3px); }
.student-home .synthetic-session-dialog form { margin: 0; padding: 27px; }
.student-home .synthetic-session-dialog h2 { margin: 6px 0 10px; font-size: 24px; }
.student-home .synthetic-session-dialog form > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.student-home .synthetic-session-dialog dl { display: grid; gap: 7px; margin: 17px 0; padding: 14px; border-radius: 11px; background: #f5f8fc; }
.student-home .synthetic-session-dialog dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.student-home .synthetic-session-dialog dt { color: var(--muted); }
.student-home .synthetic-session-dialog dd { margin: 0; font-weight: 750; }
.student-home .session-boundary { padding: 11px 13px; border-radius: 9px; background: #fff8eb; color: #7d5d25 !important; }
.student-home .session-dialog-status { padding: 10px 12px; border-radius: 9px; background: #fff0eb; color: #a24431 !important; }
.student-home .synthetic-session-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.student-home .synthetic-session-actions button { min-height: 44px; border: 0; cursor: pointer; }

@media (max-width: 768px) {
  .student-home .nav-section-label { display: none; }
  .student-home .route-recovery { align-items: flex-start; flex-direction: column; }
  .student-home .route-recovery-actions { width: 100%; }
  .student-home .route-recovery-actions > * { flex: 1; }
}
@media (max-width: 390px) {
  .student-home .all-tools > p,
  .student-home .all-tools > .all-tools-grid { margin-left: 17px; margin-right: 17px; }
  .student-home details.all-tools > summary { padding: 16px 17px; }
  .student-home .route-recovery-actions,
  .student-home .synthetic-session-actions { grid-template-columns: 1fr; flex-direction: column; }
  .student-home .route-recovery-actions > * { width: 100%; }
  .student-home .synthetic-session-dialog form { padding: 22px 18px; }
}


