:root {
  color-scheme: light;
  --ink: #24282c;
  --ink-soft: #51575c;
  --muted: #737a80;
  --quiet: #959ba0;
  --paper: #e4e7e9;
  --surface: #f5f6f7;
  --surface-soft: #e9ebed;
  --line: #cbd0d3;
  --steel: #4e5459;
  --steel-deep: #373c40;
  --steel-mid: #858c91;
  --silver: #c6cbce;
  --silver-light: #f7f8f9;
  --shadow: 0 12px 32px rgba(39, 44, 48, .09);
  font-family: "vivo Sans", "MiSans", "HarmonyOS Sans SC", "Noto Sans CJK SC", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); }
body { min-height: 100vh; min-height: 100dvh; margin: 0; background: radial-gradient(ellipse at 50% -24%, #fff 0%, rgba(255,255,255,.4) 34%, transparent 72%), linear-gradient(145deg, #e8eaec 0%, #dfe2e4 48%, #eceeef 100%); color: var(--ink); }
button, a { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(92, 99, 104, .48); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; min-height: 100dvh; }
.app-topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(186, 192, 196, .78); background: rgba(237, 239, 241, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-inner { display: flex; width: min(100% - 48px, 1120px); min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: flex; width: 35px; height: 35px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding-left: 8px; border: 1px solid #c5cacf; border-radius: 10px; background: linear-gradient(145deg, #fbfcfc, #dadddf); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 3px 9px rgba(39,44,48,.09); }
.brand-mark span { width: 17px; height: 3px; border-radius: 3px; background: #62696e; }
.brand-mark span:nth-child(2) { width: 12px; opacity: .76; }
.brand-mark span:nth-child(3) { width: 8px; opacity: .52; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; font-weight: 760; letter-spacing: .04em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.topbar-meta { display: flex; align-items: center; gap: 13px; }
.term-tag { color: var(--muted); font-size: 11px; }
.install-button, .return-button { min-height: 38px; padding: 0 13px; border: 1px solid #cbd0d3; border-radius: 10px; background: linear-gradient(145deg, #fbfcfc, #e9ebed); color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 650; transition: border-color .18s ease, background .18s ease, transform .18s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 8px rgba(39,44,48,.04); }
.install-button:hover, .return-button:hover { border-color: #aeb4b8; background: #f7f8f9; }
.install-button:active, .return-button:active { transform: scale(.97); }
.install-button span { margin-right: 6px; color: var(--steel); font-size: 15px; }

.main-column { width: min(100% - 48px, 920px); min-height: calc(100vh - 68px); margin: 0 auto; padding: 38px 0 48px; }
.page-header { display: flex; min-height: 103px; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: #71787d; font-size: 10px; font-weight: 760; letter-spacing: .18em; text-transform: uppercase; }
.page-header h1 { margin: 0; font-family: "vivo Sans", "MiSans", "HarmonyOS Sans SC", "Noto Sans CJK SC", sans-serif; font-size: clamp(31px, 4vw, 40px); font-weight: 820; letter-spacing: .035em; line-height: 1.12; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .035em; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.date-control { display: flex; min-height: 46px; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid #cbd0d3; border-radius: 12px; background: linear-gradient(145deg, #f8f9fa, #e8eaec); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 4px 11px rgba(39,44,48,.05); }
.icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #737a80; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.icon-button:hover { background: rgba(80,86,91,.09); color: var(--ink); }
.icon-button:active { transform: scale(.9); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.date-control-copy { display: grid; min-width: 75px; gap: 1px; text-align: center; }
.date-control-copy span { font-size: 12px; font-weight: 730; letter-spacing: .025em; }
.date-control-copy small { color: var(--muted); font-size: 10px; }

.today-layout { display: block; }
.schedule-column { width: min(100%, 820px); margin: 0 auto; }
.status-card { position: relative; isolation: isolate; overflow: hidden; min-height: 146px; padding: 21px 23px 19px; border: 1px solid #c5cacf; border-radius: 16px; background: linear-gradient(132deg, #fafbfb 0%, #e8ebed 42%, #f9fafb 73%, #e1e4e6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), var(--shadow); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.status-card::before { position: absolute; z-index: -1; right: -54px; bottom: -134px; width: 290px; height: 230px; border: 1px solid rgba(91, 98, 103, .14); border-radius: 50%; content: ""; transform: rotate(-22deg); }
.status-card::after { position: absolute; z-index: 0; top: -25%; bottom: -25%; left: -40%; width: 25%; transform: translateX(-170%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.04) 12%, rgba(255,255,255,.35) 50%, rgba(255,255,255,.04) 88%, transparent); content: ""; pointer-events: none; }
.status-card[data-state="class"] { border-color: #555c61; background: linear-gradient(116deg, #4b5156 0%, #777e83 28%, #565d62 54%, #858c91 78%, #494f54 100%); background-size: 240% 240%; color: #fbfcfc; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 15px 34px rgba(43,48,52,.2), 0 0 0 1px rgba(255,255,255,.3); animation: chrome-drift 8s ease-in-out infinite; }
.status-card[data-state="class"]::before { border-color: rgba(255,255,255,.18); }
.status-card[data-state="class"]::after { animation: active-sweep 5.3s ease-in-out infinite; }
.status-card-top, .status-mainline, .status-card > p, .status-progress { position: relative; z-index: 1; }
.status-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-label { display: inline-flex; min-height: 27px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(87,94,99,.13); border-radius: 8px; background: rgba(255,255,255,.55); color: #454b50; font-size: 11px; font-weight: 720; }
.status-card[data-state="class"] .status-label { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.16); color: #fff; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #747b80; box-shadow: 0 0 0 4px rgba(90,97,102,.12); }
.status-card[data-state="class"] .status-pulse { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.19); animation: pulse 1.5s ease-in-out infinite; }
.live-clock { color: #555c61; font-family: "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-size: 15px; font-weight: 700; font-stretch: condensed; font-variant-numeric: tabular-nums; letter-spacing: .075em; }
.status-card[data-state="class"] .live-clock { color: #fff; }
.status-mainline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.status-card h2 { margin: 0; font-family: "vivo Sans", "MiSans", "HarmonyOS Sans SC", "Noto Sans CJK SC", sans-serif; font-size: clamp(25px, 3vw, 31px); font-weight: 800; letter-spacing: .025em; }
.status-date { color: #70777c; font-size: 11px; font-weight: 620; letter-spacing: .06em; }
.status-card[data-state="class"] .status-date { color: #e4e7e9; }
.status-card > p { margin: 7px 0 0; color: #4e555a; font-size: 12px; font-weight: 500; letter-spacing: .025em; line-height: 1.5; }
.status-card[data-state="class"] > p { color: #f0f2f3; }
.status-progress { overflow: hidden; height: 5px; margin-top: 13px; border-radius: 5px; background: rgba(255,255,255,.25); }
.status-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #666d72; transition: width .4s ease; }
.status-card[data-state="class"] .status-progress span { background: linear-gradient(90deg, #c7cbce, #fff, #adb3b7, #fff); background-size: 240% 100%; animation: progress-glint 2.6s linear infinite; }

.courses-section { margin-top: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-heading .section-kicker { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font-family: "vivo Sans", "MiSans", "HarmonyOS Sans SC", "Noto Sans CJK SC", sans-serif; font-size: 20px; font-weight: 780; letter-spacing: .025em; }
.section-count { padding: 6px 10px; border: 1px solid #cbd0d3; border-radius: 20px; background: linear-gradient(145deg, #f8f9fa, #e6e8ea); color: #555c61; font-size: 11px; font-weight: 680; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.95); }
.course-list { display: grid; gap: 11px; }
.today-event-note { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #d8c79f; border-radius: 11px; background: linear-gradient(135deg, #fbf7ed, #f0e8d7); color: #655638; }
.today-event-note strong { font-size: 11px; font-weight: 740; }
.today-event-note span { color: #786d54; font-size: 10px; line-height: 1.5; }
.course-card { position: relative; isolation: isolate; display: grid; overflow: hidden; grid-template-columns: minmax(0, .92fr) minmax(290px, 1.08fr); align-items: center; min-height: 124px; border: 1px solid #c8cdd0; border-radius: 15px; background: linear-gradient(120deg, #e5e8ea 0%, #f9fafb 34%, #e9ebed 68%, #f5f6f7 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 5px 15px rgba(39,44,48,.055); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-1px); border-color: #aeb4b8; box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 9px 22px rgba(39,44,48,.1); }
.course-card.is-active { border-color: #535a5f; background: linear-gradient(116deg, #484e53 0%, #858c91 27%, #555c61 53%, #90969b 78%, #474d52 100%); background-size: 240% 240%; color: #fbfcfc; box-shadow: inset 0 1px 0 rgba(255,255,255,.23), 0 13px 30px rgba(43,48,52,.21), 0 0 0 1px rgba(255,255,255,.34); animation: chrome-drift 7s ease-in-out infinite, active-edge 2.8s ease-in-out infinite; }
.course-card.is-next { border-color: #aeb4b8; box-shadow: inset 3px 0 0 #898f94, inset 0 1px 0 rgba(255,255,255,.96), 0 5px 15px rgba(39,44,48,.055); }
.course-card::after { position: absolute; z-index: 0; top: -25%; bottom: -25%; left: -35%; width: 27%; transform: translateX(-170%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06) 12%, rgba(255,255,255,.5) 50%, rgba(255,255,255,.06) 88%, transparent); content: ""; pointer-events: none; }
.course-card.is-active::after { animation: active-sweep 5.1s ease-in-out infinite; }
.course-card-main, .lesson-list { position: relative; z-index: 1; }
.course-card-main { min-width: 0; padding: 18px 22px; }
.course-period { display: flex; align-items: center; gap: 9px; color: #737a80; font-size: 11px; font-weight: 680; letter-spacing: .045em; }
.course-sequence { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #c9ced1; border-radius: 7px; background: linear-gradient(145deg, #fafbfc, #d8dcde); color: #51585d; font-family: "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-size: 12px; font-weight: 760; font-stretch: condensed; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255,255,255,.95); }
.course-title-line { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 10px; }
.course-title-line h3 { overflow: hidden; margin: 0; font-family: "vivo Sans", "MiSans", "HarmonyOS Sans SC", "Noto Sans CJK SC", sans-serif; font-size: clamp(20px, 2.2vw, 24px); font-weight: 790; letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap; }
.course-range { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #454c51; font-family: "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-size: 18px; font-weight: 720; font-stretch: condensed; font-variant-numeric: tabular-nums; letter-spacing: .07em; }
.course-range span { color: #92999e; font-size: 13px; font-weight: 500; }
.course-state { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(76,83,88,.12); border-radius: 7px; background: linear-gradient(145deg, #f9fafb, #dadde0); color: #454c51; font-size: 10px; font-weight: 740; letter-spacing: .02em; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.95); }
.course-state.is-next { background: #e4e7e9; color: #555c61; }
.course-card.is-active .course-period { color: #e2e5e7; }
.course-card.is-active .course-sequence { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.course-card.is-active .course-range { color: #fff; }
.course-card.is-active .course-range span { color: #d8dcde; }
.course-card.is-active .course-state { border-color: rgba(255,255,255,.28); background: linear-gradient(145deg, #f6f7f8, #c6cacc); color: #373c40; box-shadow: 0 0 18px rgba(255,255,255,.24); }
.lesson-list { display: grid; gap: 7px; margin: 14px 18px 14px 0; padding: 12px 0 12px 18px; border-left: 1px solid #d2d6d9; }
.lesson-row { display: grid; grid-template-columns: 25px minmax(68px, 1fr) auto; align-items: center; gap: 9px; min-height: 34px; padding: 0 10px; border: 1px solid #d8dcde; border-radius: 8px; background: rgba(250,251,251,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.96); }
.lesson-number { color: #7d8489; font-family: "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-size: 11px; font-weight: 760; font-stretch: condensed; font-variant-numeric: tabular-nums; }
.lesson-name { display: flex; align-items: center; gap: 7px; color: #555c61; font-size: 11px; font-weight: 640; letter-spacing: .02em; white-space: nowrap; }
.lesson-time { display: flex; align-items: center; gap: 5px; color: #30363a; font-family: "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-size: 15px; font-weight: 730; font-stretch: condensed; font-variant-numeric: tabular-nums; letter-spacing: .055em; white-space: nowrap; }
.lesson-time span { color: #8f969b; font-size: 12px; font-weight: 500; }
.lesson-live { padding: 3px 6px; border-radius: 5px; background: #d9dddf; color: #41474b; font-size: 9px; font-weight: 740; letter-spacing: .02em; }
.course-card.is-active .lesson-list { border-left-color: rgba(255,255,255,.28); }
.course-card.is-active .lesson-row { border-color: rgba(255,255,255,.21); background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.course-card.is-active .lesson-number { color: #e0e3e5; }
.course-card.is-active .lesson-name, .course-card.is-active .lesson-time { color: #fff; }
.course-card.is-active .lesson-time span { color: #d1d6d9; }
.course-card.is-active .lesson-row.is-current { border-color: rgba(255,255,255,.53); background: rgba(255,255,255,.2); }
.course-card.is-active .lesson-live { background: #f1f2f3; color: #3c4246; }

.empty-state { display: grid; min-height: 188px; place-content: center; justify-items: center; gap: 8px; border: 1px dashed #c5cacf; border-radius: 15px; background: rgba(245,246,247,.72); text-align: center; }
.empty-state strong { font-size: 15px; font-weight: 730; }
.empty-state span { color: var(--muted); font-size: 11px; }
.empty-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 2px; border: 1px solid #c7ccd0; border-radius: 10px; background: linear-gradient(145deg, #fafbfc, #dfe2e4); color: #50575c; font-size: 16px; font-weight: 720; box-shadow: inset 0 1px 0 rgba(255,255,255,.95); }

@keyframes active-sweep { 0%, 56% { transform: translateX(-170%) skewX(-18deg); } 79%, 100% { transform: translateX(560%) skewX(-18deg); } }
@keyframes chrome-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes active-edge { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 26px rgba(43,48,52,.19), 0 0 0 1px rgba(255,255,255,.28); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 15px 32px rgba(43,48,52,.24), 0 0 0 2px rgba(255,255,255,.48); } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255,255,255,.16); } 50% { transform: scale(1.18); box-shadow: 0 0 0 7px rgba(255,255,255,.09); } }
@keyframes progress-glint { to { background-position: -240% 0; } }

.toast { position: fixed; z-index: 40; right: 20px; bottom: 20px; max-width: min(400px, calc(100vw - 40px)); padding: 12px 16px; transform: translateY(8px); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: #484e53; color: #fff; box-shadow: 0 10px 28px rgba(39,44,48,.2); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 700px) {
  .topbar-inner { width: calc(100% - 32px); min-height: 60px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-copy strong { font-size: 13px; }
  .term-tag { display: none; }
  .topbar-meta { margin-left: auto; }
  .install-button { min-height: 34px; padding: 0 10px; border-radius: 9px; font-size: 10px; }
  .main-column { width: calc(100% - 32px); min-height: calc(100vh - 60px); padding: 27px 0 calc(28px + env(safe-area-inset-bottom)); }
  .page-header { min-height: 88px; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
  .eyebrow { margin-bottom: 6px; font-size: 9px; }
  .page-header h1 { font-size: 31px; }
  .page-subtitle { margin-top: 6px; font-size: 11px; }
  .header-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
  .date-control { min-height: 40px; gap: 2px; padding: 3px; border-radius: 10px; }
  .icon-button { width: 27px; height: 29px; }
  .icon-button svg { width: 15px; height: 15px; }
  .date-control-copy { min-width: 60px; }
  .date-control-copy span { font-size: 10px; }
  .date-control-copy small { font-size: 9px; }
  .return-button { min-height: 29px; padding: 0 10px; font-size: 10px; }
  .status-card { min-height: 139px; padding: 17px 17px 16px; border-radius: 14px; }
  .status-card-top { gap: 7px; }
  .status-label { min-height: 25px; font-size: 10px; }
  .live-clock { font-size: 14px; }
  .status-mainline { margin-top: 15px; }
  .status-card h2 { font-size: 25px; }
  .status-date { font-size: 10px; }
  .status-card > p { margin-top: 6px; font-size: 11px; }
  .courses-section { margin-top: 24px; }
  .section-heading { align-items: flex-end; margin-bottom: 10px; }
  .section-heading h2 { font-size: 18px; }
  .section-count { padding: 5px 9px; font-size: 10px; }
  .course-list { gap: 9px; }
  .course-card { grid-template-columns: 1fr; min-height: 0; border-radius: 13px; }
  .course-card-main { padding: 13px 15px 7px; }
  .course-period { gap: 8px; font-size: 10px; }
  .course-sequence { width: 22px; height: 22px; }
  .course-title-line { margin-top: 8px; }
  .course-title-line h3 { font-size: 20px; }
  .course-range { margin-top: 6px; font-size: 17px; }
  .lesson-list { gap: 6px; margin: 7px 12px 12px; padding: 9px 0 0; border-top: 1px solid #d2d6d9; border-left: 0; }
  .lesson-row { min-height: 33px; grid-template-columns: 23px minmax(65px, 1fr) auto; gap: 8px; padding: 0 9px; }
  .lesson-name { font-size: 10px; }
  .lesson-time { font-size: 14px; }
  .toast { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; max-width: none; text-align: center; }
}

@media (max-width: 375px) {
  .topbar-inner, .main-column { width: calc(100% - 26px); }
  .page-header { gap: 5px; }
  .page-header h1 { font-size: 28px; }
  .page-subtitle { font-size: 10px; }
  .date-control-copy { min-width: 53px; }
  .course-title-line h3 { font-size: 18px; }
  .lesson-row { grid-template-columns: 18px minmax(58px, 1fr) auto; gap: 6px; padding: 0 7px; }
  .lesson-time { gap: 3px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Bright silver finish with restrained champagne details. */
:root { --gold: #b28d4d; --gold-light: #e8d6ad; --gold-pale: #f5efdf; --gold-ink: #755d31; }
.brand-mark { background: linear-gradient(145deg, #fff, #e3e5e7); border-color: #c3c7ca; }
.brand-mark span:nth-child(3) { background: var(--gold); opacity: 1; }
.brand-copy strong { letter-spacing: .055em; }
.quick-button, .calendar-button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #c7cacf; border-radius: 9px; background: linear-gradient(145deg, #fff, #e5e7e9); color: #4e5459; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .035em; box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 3px 8px rgba(39,44,48,.045); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.quick-button:hover, .calendar-button:hover { border-color: #b89c63; box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(127,102,54,.12); }
.quick-button:active, .calendar-button:active { transform: scale(.96); }
.quick-button svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.7; }
.calendar-button { width: 40px; min-width: 40px; height: 40px; padding: 0; }
.calendar-button svg { width: 19px; height: 19px; fill: none; stroke: #5a6065; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.calendar-button svg rect { stroke: var(--gold); }
.install-button span { color: var(--gold); }
.eyebrow, .section-kicker { color: #8d7342; }
.section-count { border-color: #d3c6a8; background: linear-gradient(145deg, #fff, #f2ecdd); color: #695838; }
.status-card[data-state="class"] { border-color: #b59658; background: linear-gradient(118deg, #d9dcde 0%, #fbfcfc 27%, #c4c8cb 54%, #f7f8f8 78%, #d3d6d8 100%); background-size: 240% 240%; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 14px 34px rgba(65,62,55,.15), 0 0 0 1px rgba(178,141,77,.34); }
.status-card[data-state="class"]::before { border-color: rgba(178,141,77,.28); }
.status-card[data-state="class"]::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.1) 10%, rgba(255,255,255,.85) 50%, rgba(232,214,173,.4) 65%, transparent); }
.status-card[data-state="class"] .status-label { border-color: #d4c29a; background: linear-gradient(145deg, #fff, #eee6d4); color: #685431; }
.status-card[data-state="class"] .status-pulse { background: var(--gold); box-shadow: 0 0 0 4px rgba(178,141,77,.18); }
.status-card[data-state="class"] .live-clock, .status-card[data-state="class"] h2 { color: #25292d; }
.status-card[data-state="class"] .status-date, .status-card[data-state="class"] > p { color: #4c5257; }
.status-card[data-state="class"] .status-progress { background: rgba(91,97,102,.16); }
.status-card[data-state="class"] .status-progress span { background: linear-gradient(90deg, #94743b, #f5e4b7, #b18c4a, #f8e9c4); }
.course-card.is-active { border-color: #b59658; background: linear-gradient(116deg, #d6d9db 0%, #fcfdfd 26%, #c5c9cc 51%, #f7f8f8 76%, #d2d5d7 100%); background-size: 240% 240%; color: #24282c; box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 13px 30px rgba(55,52,46,.16), 0 0 0 1px rgba(178,141,77,.3); }
.course-card.is-active::before { position: absolute; z-index: 2; top: 13px; bottom: 13px; left: 0; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #e5d4ad, #a78443, #f1e4c6); box-shadow: 0 0 12px rgba(178,141,77,.3); content: ""; }
.course-card.is-active::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.1) 10%, rgba(255,255,255,.88) 48%, rgba(232,214,173,.48) 64%, transparent); }
.course-card.is-active .course-period { color: #53595e; }
.course-card.is-active .course-sequence { border-color: #c4ad78; background: linear-gradient(145deg, #fff, #e9dfc8); color: #715b31; }
.course-card.is-active .course-title-line h3, .course-card.is-active .course-range { color: #24282c; }
.course-card.is-active .course-range span { color: #747a7f; }
.course-card.is-active .course-state { border-color: #c5ad77; background: linear-gradient(145deg, #f8efd9, #e3d2a9); color: #604d29; box-shadow: 0 0 16px rgba(178,141,77,.2); }
.course-card.is-active .lesson-list { border-left-color: rgba(150,121,65,.35); }
.course-card.is-active .lesson-row { border-color: rgba(160,139,97,.24); background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.94); }
.course-card.is-active .lesson-number { color: #8a7040; }
.course-card.is-active .lesson-name { color: #51575c; }
.course-card.is-active .lesson-time { color: #262a2e; }
.course-card.is-active .lesson-time span { color: #83898e; }
.course-card.is-active .lesson-row.is-current { border-color: #c3a66b; background: rgba(247,239,220,.86); }
.course-card.is-active .lesson-live { background: linear-gradient(145deg, #f5e8c8, #e5d2a5); color: #634f2a; }
.course-state { border-color: #dcc99f; background: linear-gradient(145deg, #fff, #f2ead7); color: #705a31; }
.course-state.is-next { background: #e8eaeb; color: #555c61; }
.empty-icon { border-color: #d9cba9; background: linear-gradient(145deg, #fff, #f1ead9); color: #8b7040; }

.app-dialog { width: min(820px, calc(100vw - 28px)); max-width: none; max-height: min(88dvh, 900px); padding: 0; overflow: auto; border: 1px solid #bfc4c7; border-radius: 18px; background: linear-gradient(150deg, #f9fafb 0%, #e8eaec 45%, #f4f5f6 100%); color: var(--ink); box-shadow: 0 24px 80px rgba(30,34,37,.28), inset 0 1px 0 rgba(255,255,255,.95); }
.app-dialog::backdrop { background: rgba(34,37,40,.42); backdrop-filter: blur(5px); }
.dialog-shell { padding: 22px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.dialog-kicker { margin: 0 0 5px; color: #8d7342; font-size: 9px; font-weight: 760; letter-spacing: .18em; }
.dialog-header h2 { margin: 0; font-size: 23px; font-weight: 790; letter-spacing: .025em; }
.dialog-header p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #c9ced1; border-radius: 9px; background: linear-gradient(145deg, #fff, #e4e6e8); color: #53595e; cursor: pointer; font-size: 22px; line-height: 1; }
.dialog-close:hover { border-color: #b99d62; color: #755d31; }
.week-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.week-preview-day { min-width: 0; overflow: hidden; border: 1px solid #cbd0d3; border-radius: 11px; background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.95); }
.week-preview-day > header { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #d7dbde; background: linear-gradient(100deg, #e3e6e8, #f8f9f9); }
.preview-day-number { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #cbb88e; border-radius: 7px; background: #f6efdf; color: #79643b; font: 700 10px "Roboto Condensed", "sans-serif-condensed", sans-serif; }
.week-preview-day h3 { margin: 0; font-size: 12px; font-weight: 730; }
.preview-course-list { display: grid; gap: 0; padding: 3px 10px; }
.preview-course { display: grid; grid-template-columns: minmax(83px, .9fr) minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid rgba(201,206,209,.7); }
.preview-course:last-child { border-bottom: 0; }
.preview-course time { color: #4f565b; font: 650 12px "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-stretch: condensed; font-variant-numeric: tabular-nums; letter-spacing: .035em; white-space: nowrap; }
.preview-course strong { overflow: hidden; font-size: 11px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.preview-course small { color: #858b90; font-size: 9px; white-space: nowrap; }
.preview-empty { padding: 12px; color: #8b9196; font-size: 10px; }

.calendar-dialog { width: min(610px, calc(100vw - 24px)); }
.calendar-dialog .dialog-shell { padding: 20px; }
.calendar-dialog-header { margin-bottom: 12px; }
.calendar-month-bar { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; margin-bottom: 9px; }
.calendar-month-bar strong { text-align: center; font-size: 17px; font-weight: 770; letter-spacing: .04em; }
.month-nav { width: 36px; height: 34px; border: 1px solid #c8cdd0; border-radius: 9px; background: linear-gradient(145deg, #fff, #e2e5e7); color: #555c61; cursor: pointer; font-size: 22px; line-height: 1; }
.month-nav:hover { border-color: #b99d62; color: #755d31; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.calendar-weekdays { margin-bottom: 4px; }
.calendar-weekdays span { display: grid; min-height: 23px; place-items: center; color: #747b80; font-size: 10px; font-weight: 690; }
.calendar-weekdays span:nth-last-child(-n+2) { color: #9a8150; }
.calendar-day { display: grid; min-width: 0; min-height: 53px; grid-template-rows: 20px 1fr; justify-items: center; gap: 1px; padding: 4px 1px 3px; border: 1px solid transparent; border-radius: 8px; background: rgba(255,255,255,.48); color: #363c40; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.calendar-day:hover { border-color: #b7bdc1; background: #fff; transform: translateY(-1px); }
.calendar-day.is-outside { opacity: .42; }
.calendar-day.is-selected { border-color: #b59658; background: linear-gradient(145deg, #fff, #f0e8d7); box-shadow: inset 0 0 0 1px rgba(181,150,88,.17); }
.calendar-day.is-today .day-number { border-bottom: 2px solid var(--gold); font-weight: 800; }
.calendar-day.is-dayoff { background: rgba(245,239,223,.65); }
.day-number { display: grid; min-width: 21px; min-height: 20px; place-items: center; font: 700 12px "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-stretch: condensed; font-variant-numeric: tabular-nums; }
.day-markers { display: flex; max-width: 100%; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.day-holiday, .day-festival, .day-makeup, .day-school-event, .day-course-mark { display: inline-flex; min-width: 0; align-items: center; padding: 1px 3px; border-radius: 4px; font-size: 7px; line-height: 1.4; white-space: nowrap; }
.day-holiday { background: #f3ead5; color: #765e31; }
.day-festival { background: #f4f1e9; color: #8a7855; }
.day-makeup { background: #e7e9ea; color: #646b70; }
.day-school-event { background: #e6e9e7; color: #526b5f; }
.day-course-mark { background: #dfe2e4; color: #565d62; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 11px 1px 12px; color: #70777c; font-size: 9px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; }
.legend-class { background: #969da2; }
.legend-holiday { background: #c3a569; }
.legend-makeup { background: #d0d4d6; border: 1px solid #aeb4b8; }
.legend-school { background: #91a99a; }
.calendar-day-detail { min-height: 80px; padding: 11px 12px; border: 1px solid #c9ced1; border-radius: 11px; background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(230,233,235,.82)); }
.calendar-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.calendar-detail-heading > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail-date-label { color: #41474b; font-size: 11px; font-weight: 730; }
.detail-tag { padding: 4px 7px; border: 1px solid #d8c69d; border-radius: 6px; background: #f4ecd9; color: #755d31; font-size: 9px; font-weight: 700; }
.detail-tag.is-makeup { border-color: #cdd1d3; background: #e6e9ea; color: #5f666b; }
.detail-tag.is-festival { border-color: #e2d9c5; background: #f6f3ec; color: #877653; }
.detail-tag.is-school-event { border-color: #c4d1c9; background: #e6ece8; color: #4f6759; }
.term-week-chip { padding: 4px 7px; border: 1px solid #ded1af; border-radius: 6px; background: #f6f0e2; color: #79643b; font-size: 9px; font-weight: 700; white-space: nowrap; }
.calendar-detail-heading p { margin: 1px 0 0; color: #7b8287; font-size: 9px; text-align: right; }
.calendar-context-line { margin: 7px 0 0; color: #727a7f; font-size: 9px; line-height: 1.45; }
.detail-course-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.detail-course { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid #d4d8da; border-radius: 7px; background: rgba(255,255,255,.72); }
.detail-course time { color: #51585d; font: 650 10px "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", sans-serif; font-stretch: condensed; font-variant-numeric: tabular-nums; white-space: nowrap; }
.detail-course strong { color: #33393d; font-size: 10px; font-weight: 680; white-space: nowrap; }
.detail-empty { margin: 10px 0 1px; color: #858b90; font-size: 10px; }
.calendar-note { margin: 9px 1px 0; color: #777e83; font-size: 9px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.calendar-today, .dialog-primary { min-height: 36px; padding: 0 14px; border: 1px solid #c5cacf; border-radius: 8px; background: linear-gradient(145deg, #fff, #e4e7e9); color: #51575c; cursor: pointer; font-size: 10px; font-weight: 700; }
.dialog-primary { border-color: #ab8b4e; background: linear-gradient(145deg, #d9c38f, #b59455); color: #342b1a; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 10px rgba(141,112,56,.15); }
.calendar-today:hover, .dialog-primary:hover { filter: brightness(1.04); }

@media (max-width: 700px) {
  .topbar-inner { gap: 8px; }
  .quick-button { min-height: 34px; gap: 5px; padding: 0 8px; font-size: 9px; }
  .quick-button svg { width: 14px; height: 14px; }
  .calendar-button { width: 35px; min-width: 35px; height: 35px; }
  .header-actions { flex-direction: row; align-items: center; gap: 5px; }
  .date-control { min-height: 38px; }
  .dialog-shell { padding: 17px; }
  .week-preview-grid { grid-template-columns: 1fr; gap: 8px; }
  .week-preview-day > header { padding: 7px 9px; }
  .preview-course-list { padding: 2px 9px; }
  .preview-course { min-height: 32px; }
  .calendar-dialog .dialog-shell { padding: 15px 12px; }
  .calendar-dialog .dialog-header { padding: 0 3px; }
  .calendar-day { min-height: 49px; border-radius: 7px; }
  .day-holiday, .day-festival, .day-makeup, .day-school-event, .day-course-mark { padding: 1px 2px; font-size: 6px; }
  .calendar-detail-heading { flex-direction: column; gap: 4px; }
  .calendar-detail-heading p { text-align: left; }
}

@media (max-width: 390px) {
  .topbar-inner { width: calc(100% - 22px); }
  .brand { gap: 7px; }
  .brand-copy small { font-size: 9px; }
  .quick-button { padding: 0 6px; }
  .calendar-button { width: 32px; min-width: 32px; }
  .header-actions { gap: 3px; }
  .date-control { gap: 0; }
  .date-control-copy { min-width: 48px; }
  .calendar-grid, .calendar-weekdays { gap: 2px; }
  .calendar-day { min-height: 45px; }
  .day-markers { gap: 1px; }
  .day-holiday, .day-festival, .day-makeup, .day-school-event, .day-course-mark { font-size: 5.5px; }
}

@media (max-width: 350px) {
  .quick-button span { display: none; }
  .quick-button { width: 34px; min-width: 34px; padding: 0; }
  .topbar-inner { gap: 6px; }
  .calendar-button { width: 30px; min-width: 30px; }
  .date-control-copy { min-width: 44px; }
}

/* Clear end-of-day state: replace the vague curved flourish with a check badge. */
.status-title-group { display: flex; min-width: 0; align-items: center; gap: 10px; }
.status-complete-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #c6ad72; border-radius: 50%; background: linear-gradient(145deg, #fffdf7, #e8d8b3); color: #755d31; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 4px 12px rgba(143,115,62,.18); animation: complete-badge-pop .55s cubic-bezier(.2,.85,.25,1.25) both; }
.status-complete-mark svg { width: 19px; height: 19px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.status-complete-mark path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: complete-check-draw .38s ease-out .2s forwards; }
.status-card[data-state="done"] { border-color: #d7c99f; background: linear-gradient(125deg, #faf9f5 0%, #f4f1e8 48%, #e8e7e2 100%); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 30px rgba(91,79,53,.11), 0 0 0 1px rgba(178,141,77,.12); }
.status-card[data-state="done"]::before, .status-card[data-state="done"]::after { content: none; }
.status-card[data-state="done"] .status-label { border-color: #dfd2b4; background: linear-gradient(145deg, #fffdf8, #f0e8d6); color: #6d5933; }
.status-card[data-state="done"] h2 { color: #34383b; }
.status-card[data-state="done"] .status-date { color: #746a54; }
.status-card[data-state="done"] > p { color: #65645f; }
@keyframes complete-badge-pop { 0% { transform: scale(.55) rotate(-16deg); opacity: 0; } 70% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes complete-check-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 390px) { .status-title-group { gap: 7px; } .status-complete-mark { width: 30px; height: 30px; } .status-complete-mark svg { width: 17px; height: 17px; } }
@media (prefers-reduced-motion: reduce) { .status-complete-mark, .status-complete-mark path { animation: none; } .status-complete-mark path { stroke-dashoffset: 0; } }
