/* StudyFlow: a quiet violet workspace with subject-coded class cards. */
body.theme-light{--bg:#f6f5fa;--card-bg:#fff;--card-hover:#faf9fd;--surface:#f0edf8;--text:#29263d;--text-muted:#706b83;--accent:#6848be;--accent-secondary:#7559c8;--accent-hover:#55379f;--border:#e7e3ee;--border-hover:#c4b7e0;--danger:#ad354f;--success:#20704d;--warning:#875b0b;--nav-active-bg:#ede7fa;--nav-active-text:#5835a9}
body.theme-cyberpunk{--bg:#171521;--card-bg:#211e2e;--card-hover:#2b263c;--surface:#302a43;--text:#f1edf9;--text-muted:#bdb4cf;--accent:#bea5fa;--accent-secondary:#d4c2ff;--accent-hover:#d6c4ff;--border:#3b334e;--border-hover:#6c568d;--nav-active-bg:#3c2e56;--nav-active-text:#e2d2ff}
body{font-family:'Segoe UI Variable Text','Segoe UI',system-ui,sans-serif}.sidebar-brand{letter-spacing:-1px}.brand-mark{border-radius:12px;transform:rotate(-5deg)}.sidebar-brand small{letter-spacing:1px}.nav-btn{border-radius:11px;min-height:43px}.nav-btn.active:after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;margin-left:auto}.btn{border-radius:11px;min-height:42px;font-weight:600}.btn.primary{box-shadow:0 3px 0 #00000010}.page-heading h1,.overview-hero h1,.week-intro h2{font-family:'Segoe UI Variable Display','Segoe UI',system-ui,sans-serif;font-weight:730;letter-spacing:-1.5px}.page-heading h1{font-size:35px}.page-heading .eyebrow{color:var(--accent);letter-spacing:2px}.page-heading{margin-bottom:24px}.overview-hero h1{font-size:56px}.overview-hero .hero-book{background:#7456b5;border-color:#573c94;color:#fff5db;box-shadow:12px 14px 0 #e0d6f1}.orbit{background:radial-gradient(ellipse,#e7dcfb90,transparent 70%);border-color:#cbbbdf}.floating-check{background:#eae3f4;color:#5b4094}
.section-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:0 0 18px;background:var(--card-bg);border:1px solid var(--border);border-radius:16px}.section-identity{display:flex;align-items:center;gap:13px;min-width:0}.section-monogram{display:grid;place-items:center;min-width:48px;min-height:48px;padding:8px;background:var(--surface);border-radius:13px;color:var(--accent);font-weight:750;font-size:16px}.section-identity strong{display:block;font-size:13px}.section-identity span:not(.section-monogram){display:block;font-size:11px;color:var(--text-muted);margin-top:4px}.section-selectors{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.section-selectors label{font-size:10px;font-weight:600;color:var(--text-muted);display:block}.section-selectors select{display:block;margin-top:4px;font-size:12px;min-width:95px}.section-selectors>.btn{font-size:11px}.batch-notice{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-muted);margin:0 0 24px;padding:0 4px;line-height:1.6}.batch-notice svg{color:var(--accent);width:17px}.metric-grid{gap:16px;margin:24px 0}.metric{border-radius:16px;position:relative;overflow:hidden}.metric:first-child{background:var(--accent);color:#fff;border-color:transparent}.metric:first-child span,.metric:first-child small{color:inherit;opacity:.87}.metric:first-child strong{color:inherit}.metric:first-child:after{content:'';position:absolute;right:-30px;top:-45px;width:140px;height:140px;border-radius:50%;border:23px solid #ffffff13;pointer-events:none}body:not(.theme-light) .metric:first-child{color:#241936}.metric:nth-child(2){border-top:3px solid #d89c64}.metric:nth-child(3){border-top:3px solid #77bba3}.metric strong{font-weight:720;letter-spacing:-1px}.metric em{font-weight:400;letter-spacing:0}
.attendance-workspace{grid-template-columns:minmax(0,1fr) 285px;gap:22px}.panel{border-radius:18px}.panel-heading h2{font-weight:700;font-size:18px}.register-progress{padding:14px 0 18px}.register-progress>div{display:flex;justify-content:space-between;font-size:11px;color:var(--text-muted);gap:10px}.register-progress strong{color:var(--accent);font-size:11px}.register-progress progress{display:block;width:100%;height:5px;appearance:none;border:0;border-radius:8px;background:var(--surface);margin-top:10px}.register-progress progress::-webkit-progress-bar{background:var(--surface);border-radius:8px}.register-progress progress::-webkit-progress-value{background:var(--accent);border-radius:8px}.class-row{border-left:4px solid var(--subject);padding:17px 18px;border-radius:13px;background:linear-gradient(110deg,color-mix(in srgb,var(--subject) 5%,var(--card-bg)),var(--card-bg));margin-bottom:12px}.class-row h3{font-size:17px;font-weight:700;line-height:1.3;margin:9px 0 5px}.class-top .class-time{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}.status-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:start;margin-top:16px}.status-actions>.btn{flex:1;min-height:44px;font-size:12px;min-width:90px}.status-actions>.quick-present{color:#246747;background:#eff9f1;border-color:#cde7d4}.status-actions>.quick-present:hover{background:#dfefe4}.status-actions>.quick-absent{color:#a4314e;background:#fff4f5;border-color:#f1d5dc}.status-actions>.quick-absent:hover{background:#fbe5ea}.status-actions>.quick-present.selected{background:#246747;color:white;border-color:#246747}.status-actions>.quick-absent.selected{background:#ab3b53;color:white;border-color:#ab3b53}.cross-icon{transform:rotate(45deg)}.more-status{flex:0 0 auto;min-width:85px}.more-status summary{list-style:none;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:11px;display:flex;gap:6px;align-items:center;justify-content:center;font-size:11px;cursor:pointer;color:var(--text-muted);background:var(--card-bg)}.more-status summary::-webkit-details-marker{display:none}.more-status summary svg{width:14px;height:14px}.more-status>div{display:flex;flex-direction:column;gap:5px;margin-top:6px}.more-status .btn{min-height:42px}.quick-tip{font-size:11px;color:var(--text-muted);padding:0 0 10px}.register-footer{gap:10px}.register-footer .primary{margin-right:auto}.register-footer .btn{min-height:42px}.health-top strong{font-size:12px}.health-hint{padding:8px 10px;border-radius:8px;background:var(--surface);font-size:10px}.health-hint.at-risk{background:color-mix(in srgb,var(--danger) 8%,var(--card-bg))}.date-toolbar{gap:7px}.date-toolbar input{font-size:12px;min-width:140px}.date-toolbar select{max-width:100%;font-size:11px;flex:1}.status-pill{font-weight:600;font-size:9px;letter-spacing:.2px}
#timetable-grid{display:block;background:none;border:0;padding:0;overflow:visible}.week-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 20px}.week-intro h2{font-size:30px;margin:0 0 5px}.week-intro p:not(.eyebrow){color:var(--text-muted);font-size:12px}.course-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--text-muted);margin-bottom:20px}.course-legend>span{display:flex;align-items:center;gap:5px}.course-legend i{display:inline-block;width:7px;height:7px;border-radius:50%}.legend-lab{padding:2px 7px;border:1px dashed var(--border-hover);border-radius:5px}.section-week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.schedule-day{min-width:0}.schedule-day-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--border);padding:12px 2px 15px;margin-bottom:15px}.schedule-day-head h3{text-transform:uppercase;font-size:11px;letter-spacing:1.4px}.schedule-day-head span{color:var(--text-muted);font-size:10px}.is-today .schedule-day-head{color:var(--accent);border-color:var(--accent)}.schedule-card{background:linear-gradient(145deg,color-mix(in srgb,var(--course) 9%,var(--card-bg)),var(--card-bg));border:1px solid color-mix(in srgb,var(--course) 25%,var(--border));border-top:3px solid var(--course);border-radius:13px;padding:15px 12px;margin-bottom:12px;overflow-wrap:anywhere}.schedule-time{font-size:12px;font-weight:650;color:var(--text);font-variant-numeric:tabular-nums}.schedule-time>span{display:block;font-size:10px;font-weight:400;color:var(--text-muted);margin-top:2px}.schedule-card h4{font-size:19px;font-weight:750;margin:14px 0 3px;letter-spacing:-.5px;color:var(--text)}.course-full-name{font-size:10px;line-height:1.45;color:var(--text-muted);min-height:30px}.class-kind{display:inline-block;font-size:9px;font-weight:650;color:var(--text-muted);background:var(--card-bg);border:1px solid var(--border);border-radius:5px;padding:3px 6px;margin:10px 0 3px}.is-lab .class-kind{border-style:dashed;color:var(--accent)}.schedule-room{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--text-muted);margin:8px 0}.schedule-room svg{width:13px;height:13px;flex-basis:13px}.schedule-actions{display:flex;justify-content:space-between;border-top:1px solid var(--border);margin-top:10px;padding-top:3px}.schedule-actions .btn{font-size:10px;min-height:35px;padding:4px}.batch-other{border-style:dashed;background:var(--card-bg)}.batch-caption{display:block;font-size:10px;line-height:1.5;color:var(--text-muted);border-left:2px solid var(--border-hover);padding-left:7px;margin-top:10px}.day-free{padding:24px 5px;color:var(--text-muted);font-size:11px;line-height:1.8}.day-free span{font-size:10px}.schedule-footnote{display:flex;gap:10px;padding:18px 0;color:var(--text-muted);font-size:11px;line-height:1.7}.monthly-planner{margin-top:24px;border:1px solid var(--border);padding:20px;border-radius:16px;background:var(--card-bg)}.monthly-planner>summary{cursor:pointer;font-size:14px;font-weight:600}.monthly-planner>summary span{font-size:11px;font-weight:400;color:var(--text-muted);margin-left:12px}.monthly-planner[open]>summary{margin-bottom:24px}#tab-calendar>.section-header{margin-top:0!important}
@media(min-width:1550px){.attendance-workspace{grid-template-columns:minmax(0,1fr) 340px}.class-register{display:grid;grid-template-columns:1fr 1fr;gap:12px}.class-row{margin-bottom:0}.class-row h3{min-height:45px}}
@media(max-width:1250px){.attendance-workspace{grid-template-columns:1fr}.section-context{align-items:flex-start;flex-wrap:wrap}.section-week{gap:8px}.schedule-card{padding:12px 10px}.schedule-day-head{flex-direction:column;align-items:start;gap:5px}}
@media(max-width:1000px){.section-week{grid-template-columns:repeat(3,minmax(0,1fr))}.page-heading h1{font-size:30px}.section-selectors{width:100%}.section-selectors label{flex:1}.section-selectors select{width:100%}.section-context{padding:16px}.overview-hero h1{font-size:48px}}
@media(max-width:600px){.page-heading h1{font-size:29px;line-height:1.15;letter-spacing:-1.2px}.section-week{grid-template-columns:1fr;gap:22px}.schedule-day{display:grid;grid-template-columns:1fr 1fr;gap:10px}.schedule-day-head{grid-column:1/-1;flex-direction:row;align-items:center;margin-bottom:0;padding:10px 2px}.schedule-card{margin:0;padding:15px}.section-selectors>.btn{font-size:10px;min-height:42px}.section-selectors{gap:8px}.section-selectors select{min-width:80px;font-size:11px}.section-monogram{min-width:42px;min-height:42px;font-size:14px}.section-identity strong{font-size:12px}.section-identity span:not(.section-monogram){font-size:10px}.section-context{gap:14px}.batch-notice{font-size:10px;align-items:start;padding:0 3px}.week-intro{align-items:start;flex-direction:column;gap:14px}.week-intro h2{font-size:28px}.metric-grid{margin:18px 0}.class-row{padding:15px 12px}.status-actions{gap:6px}.status-actions>.btn{min-width:75px}.more-status{min-width:72px}.more-status summary{padding:10px 8px}.register-footer .primary{width:100%}.register-footer .btn:not(.primary){flex:1}.date-toolbar input{flex:1}.date-toolbar select{flex-basis:100%}.schedule-footnote{font-size:10px}.overview-hero h1{font-size:45px}.header-leading .breadcrumb{font-size:10px}.course-full-name{min-height:28px}.monthly-planner{padding:15px}}
#timetable-grid{white-space:normal;min-width:0}.batch-notice>span,.schedule-footnote>p{min-width:0;white-space:normal}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
