/* Shared Mac visual language, laid out for touch. */
:root{--bg:#0b1017;--panel:#101722;--panel2:#141e2a;--line:#253244;--text:#edf1f6;--muted:#92a4bb;--blue:#2f80ff;--accent:#1975b1;--side:#0c121b}
html,body{background:var(--bg);color:var(--text);font-size:14px;overscroll-behavior-y:auto}body{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation;color:inherit}button:disabled{opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:active{filter:brightness(1.12)}button,.primary,.ghost,.small-btn,.icon-btn{min-height:44px}.primary,.ghost,.small-btn,.danger-button{font-size:13px;border-radius:10px;padding:11px 15px}.primary{color:#fff;background:var(--accent);border:1px solid color-mix(in srgb,var(--accent),white 18%)}.primary:hover{background:var(--accent);filter:brightness(1.1)}.ghost,.small-btn{background:var(--panel2);border-color:var(--line);color:var(--text)}.icon-btn{border:1px solid var(--line);background:var(--panel2);border-radius:10px;width:44px;flex-shrink:0;font-size:22px;display:inline-grid;place-items:center;padding:0}.text-btn{border:0;background:none;color:var(--blue);font-size:13px;padding:6px;min-height:36px}.danger{color:#f77}.glyph{display:inline-grid;place-items:center;width:24px;flex-shrink:0;font-size:23px;line-height:1}.grow{flex:1;min-width:0}.muted{color:var(--muted);font-size:13px;line-height:1.65}.hidden{display:none!important}.app-shell{display:grid;grid-template-columns:242px minmax(0,1fr)}.main{min-width:0;background:var(--bg);padding:0 0 30px;min-height:100dvh}.content{padding:22px 24px 40px;max-width:1900px;margin:auto}.topbar{height:76px;padding:12px 24px;position:sticky;top:0;background:color-mix(in srgb,var(--bg),transparent 6%);border-bottom:1px solid var(--line);backdrop-filter:blur(20px);z-index:8}.topbar h1{font-size:23px;margin-top:4px;color:var(--text)}.topbar small{color:var(--muted);font-size:11px;letter-spacing:.15px}.top-actions{gap:9px}.top-heading{min-width:0}.profile-chip{border-radius:50%;padding:0;border:1px solid var(--line);width:40px;height:40px}.profile-chip span{width:38px;height:38px;border-radius:50%;font-size:14px;background:var(--accent);color:#fff}.profile-chip b{display:none}.sidebar{position:sticky;top:0;height:100dvh;background:var(--side);border-right:1px solid var(--line);padding:22px 14px 16px;display:flex;flex-direction:column;overflow-y:auto;width:auto;border-radius:0;box-shadow:none}.side-brand{padding:0 8px 6px;justify-content:flex-start;gap:8px;flex-shrink:0}.side-brand img{width:36px;height:36px;object-fit:contain}.side-brand strong{font-size:26px;letter-spacing:-1px}.workspace-subtitle{color:var(--muted);font-size:12px;padding:8px 10px 18px;line-height:1.4}.term-chip{border:1px solid var(--line);border-radius:9px;background:var(--panel);text-align:left;display:flex;align-items:center;gap:8px;margin:0 3px 15px;font-size:12px;padding:10px}.term-chip span{flex:1}.sidebar nav{display:flex;flex-direction:column;height:auto;gap:3px}.sidebar nav button,.sidebar-bottom button{font-size:14px;font-weight:600;justify-content:flex-start;flex-direction:row;gap:12px;padding:11px 12px;color:var(--muted);position:relative;min-height:44px;height:auto;flex-shrink:0;border-radius:9px}.sidebar nav button:after{display:none}.sidebar nav button span{font-size:inherit;width:auto;text-align:left}.sidebar nav button .glyph,.sidebar-bottom .glyph{font-size:22px;width:24px}.sidebar nav button.active{background:var(--accent);color:#fff}.sidebar nav button:hover{color:var(--text)}.sidebar nav .nav-label{font-size:14px}.sidebar nav i{position:static;transform:none;margin-left:auto}.sidebar-bottom{display:flex;flex-direction:column;margin-top:14px;border-color:var(--line)}.sidebar-bottom span{font-size:13px}.sync-box{margin-top:22px;background:var(--panel);border-color:var(--line);flex-shrink:0}.sync-box div{font-size:12px}.sync-box b{font-size:11px}.sync-box small{font-size:10px;color:var(--muted)}.sync-box button{font-size:19px}.menu-trigger,.drawer-close,.bottom-nav{display:none}.section-title{margin:0 0 22px;align-items:center}.section-title h2{font-size:29px;letter-spacing:-.8px;line-height:1.15}.section-title p{font-size:13px;color:var(--muted);margin-top:7px;max-width:none}.toolbar{gap:8px;margin:0 0 18px}.toolbar button{font-size:13px}.panel{border-radius:16px;background:var(--panel);border:1px solid var(--line);box-shadow:none;padding:20px}.panel-head h3{font-size:17px;display:flex;gap:10px;align-items:center;margin:0}.panel-head span{font-size:12px;color:var(--muted)}.dashboard-panel{padding:0;overflow:hidden;min-width:0}.dashboard-panel>.panel-head{padding:16px 19px;border-bottom:1px solid var(--line);margin:0;min-height:64px;gap:10px}.panel-body{padding:18px}.dashboard-hero{border-radius:17px;padding:32px 28px;margin-bottom:20px;min-height:239px;background:linear-gradient(90deg,#07111dd9,#07111d35),linear-gradient(0deg,#07111dc4,transparent 65%),url('../assets/mountain_hero.png') center 43%/cover;color:#f3f5fa;overflow:hidden}.hero-date{font-size:12px;color:#bac9da;margin-bottom:18px}.dashboard-hero h2{font-size:clamp(29px,3.5vw,46px);letter-spacing:-1.3px;margin:0;line-height:1.13}.dashboard-hero h2 span{white-space:nowrap}.dashboard-hero p{font-size:16px;color:#bac9da;margin:13px 0 24px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-actions button{font-size:14px;min-height:46px;white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(285px,.95fr);gap:20px;margin-bottom:20px}.dashboard-main,.dashboard-side{display:flex;flex-direction:column;gap:20px;min-width:0}.dashboard-main .panel-body:has(.calendar-scroll){padding:0 9px 18px}.dashboard-side>.panel:first-child{flex:1}.calendar-scroll{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%}.week-grid{display:grid;grid-template-columns:49px repeat(var(--days),minmax(110px,1fr));min-width:900px;padding:10px 4px 14px 0}.week-grid.compact{min-width:615px;grid-template-columns:45px repeat(var(--days),minmax(110px,1fr))}.day-heading{border:0;color:var(--muted);background:none;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;border-radius:10px;font-size:12px;margin:0 2px 12px;min-height:56px}.day-heading b{font-size:12px;font-weight:600}.day-heading.today{background:var(--accent);color:#fff}.time-rail{position:relative;margin-top:1px}.time-rail span{position:absolute;right:8px;font-size:10px;white-space:nowrap;color:var(--muted);transform:translateY(-50%)}.day-column{position:relative;border:1px solid var(--line);border-right:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour-height) - 1px),var(--line) calc(var(--hour-height) - 1px),var(--line) var(--hour-height))}.day-column:last-child{border-right:1px solid var(--line)}.schedule-block{position:absolute;border:1px solid color-mix(in srgb,var(--course),transparent 65%);border-left:4px solid var(--course);background:color-mix(in srgb,var(--course) 20%,var(--panel));border-radius:8px;text-align:left;padding:5px 6px;color:var(--text);min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.schedule-block strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.schedule-block span,.schedule-block small{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:color-mix(in srgb,var(--text),transparent 20%);display:block;flex-shrink:0}.schedule-block small{color:var(--muted)}.calendar-hint{font-size:12px;padding:12px;color:var(--muted)}.mac-courses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mac-course{border:1px solid var(--line);border-left:5px solid var(--course);border-radius:13px;display:flex;align-items:center;gap:13px;background:var(--panel2);text-align:left;padding:19px 15px;min-height:108px;width:100%;color:var(--text)}.course-symbol{display:grid;place-items:center;width:49px;height:49px;border-radius:13px;background:color-mix(in srgb,var(--course),transparent 85%);color:var(--course);flex-shrink:0}.course-symbol .glyph{font-size:29px}.mac-course strong{font-size:18px;display:block;line-height:1.3}.mac-course small{font-size:12px;color:var(--muted);display:block;margin-top:4px;line-height:1.35}.mac-course .schedule-line{font-size:11px}.chevron{color:var(--muted);font-size:24px}.deadline-empty{text-align:center;padding:42px 16px}.deadline-empty>span{display:grid;place-items:center;background:#26bd59;color:#073317;border-radius:50%;width:38px;height:38px;font-size:28px;margin:0 auto 20px}.deadline-empty h3{font-size:18px;margin:0}.deadline-empty p{font-size:13px;line-height:1.6;color:var(--muted)}.deadline-row{display:flex;align-items:center;gap:11px;padding:13px 5px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.deadline-row i{height:33px;width:4px;border-radius:4px}.deadline-row strong,.deadline-row small{display:block}.deadline-row strong{font-size:14px}.deadline-row small{font-size:12px;color:var(--muted);margin-top:5px}.study-summary{display:flex;align-items:center;gap:20px;padding:10px 0;flex-wrap:wrap}.study-ring{width:132px;height:132px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--blue) calc(var(--progress)*1%),var(--line) 0)}.study-ring>div{border-radius:50%;width:112px;height:112px;background:var(--panel);display:flex;flex-direction:column;justify-content:center;align-items:center}.study-ring strong{font-size:34px}.study-ring small{font-size:12px;color:var(--muted);margin-top:5px}.week-bars{flex:1;min-width:120px;display:flex;flex-direction:column;gap:10px}.week-bars>div{display:flex;align-items:center;gap:7px}.week-bars span{font-size:11px;color:var(--muted);width:27px}.week-bars small{font-size:10px;color:var(--muted);width:28px}.week-bars i{height:9px;border-radius:9px;background:var(--line);flex:1;overflow:hidden}.week-bars b{display:block;height:100%;background:var(--blue);border-radius:9px}.segmented{display:flex;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:3px;max-width:100%;overflow:auto}.segmented button{padding:8px 14px;white-space:nowrap;font-size:13px;border:0;color:var(--muted);background:none;border-radius:7px;min-height:36px}.segmented .selected{background:var(--accent);color:#fff}.calendar-toolbar{align-items:center;justify-content:space-between}.calendar-controls{display:flex;gap:5px}.calendar-panel{padding:12px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}.month-grid>b{text-align:center;padding:12px;background:var(--panel);font-size:12px;color:var(--muted)}.month-day{min-height:108px;background:var(--panel);border:0;text-align:left;padding:8px;display:flex;flex-direction:column;gap:5px;overflow:hidden}.month-day strong{font-size:13px;align-self:flex-start;padding:5px;min-width:25px;text-align:center}.month-day.today strong{background:var(--accent);color:white;border-radius:50%}.month-day span{font-size:10px;border-left:3px solid var(--course);padding:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:color-mix(in srgb,var(--course),transparent 85%);width:100%;border-radius:3px}.month-day.outside{opacity:.5}.month-day small{font-size:10px}.agenda-day{font-size:16px;margin:15px 4px}.agenda-event{display:flex;gap:18px;border:1px solid var(--line);border-left:4px solid var(--course);background:var(--panel2);border-radius:11px;padding:15px;text-align:left}.agenda-event strong,.agenda-event small{display:block}.agenda-event small{color:var(--muted);font-size:12px;margin-top:6px}.detail-tabs{margin-bottom:20px;width:fit-content}.row,.task-row,.study-row,.friend-row,.activity-row{background:var(--panel2);border:1px solid var(--line);padding:15px;border-radius:12px}.row strong,.task-row h4,.friend-row strong,.study-row strong,.activity-row strong{font-size:14px}.row small,.task-row p,.friend-row small,.study-row small,.activity-row small{font-size:12px;line-height:1.45;color:var(--muted)}.row-content{border:0;background:none;flex:1;text-align:left;min-width:0;padding:0}.row-content strong,.row-content small{display:block}.row-content small{margin-top:5px}.check{width:28px;height:28px;min-height:28px;flex-shrink:0}.task-item .priority{font-size:10px;padding:5px 7px;border-radius:6px;background:var(--panel);margin-left:auto}.priority.high{color:#ffab83}.task-item.done strong{text-decoration:line-through;opacity:.6}.assessment-card{border:1px solid var(--line);border-left:4px solid var(--course);padding:18px 14px;background:var(--panel);border-radius:13px;display:flex;align-items:center;gap:15px;text-align:left}.assessment-card strong,.assessment-card small{display:block}.assessment-card strong{font-size:16px;margin:5px 0}.assessment-card small{font-size:12px;color:var(--muted)}.date-chip{width:45px;flex-shrink:0}.date-chip b{font-size:23px}.weight{font-size:13px;color:var(--course)}.note-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.note-card{border:1px solid var(--line);border-radius:13px;background:var(--panel2);padding:19px;text-align:left;min-height:160px}.note-card small{font-size:10px;letter-spacing:.5px;color:var(--muted)}.note-card h3{font-size:18px;margin:12px 0 8px}.note-card p{font-size:13px;line-height:1.6;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.note-card footer{font-size:11px;color:var(--muted);margin-top:20px}.search-input{padding:11px 14px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;font-size:14px;min-width:0;width:min(100%,350px)}.empty{color:var(--muted);font-size:13px;line-height:1.5;grid-column:1/-1;padding:26px 15px}.modal-backdrop{z-index:60;background:#03070dcc;backdrop-filter:blur(8px);overflow:auto;padding:30px 14px;align-items:flex-start}.modal-card{width:min(600px,100%);max-height:calc(100dvh - 60px);overflow:auto;border-radius:19px;background:var(--panel);border:1px solid var(--line);padding:25px;margin:auto}.modal-card h2{font-size:26px;margin:12px 0 22px}.modal-card h3{font-size:16px}.modal-card label,.settings-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted);margin-bottom:15px}.modal-card input,.modal-card select,.modal-card textarea,.settings-grid input,.settings-grid select,.settings-grid textarea,.browser-form input{padding:12px;font-size:15px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:9px;width:100%;min-height:44px}.modal-card textarea{line-height:1.65;resize:vertical}.modal-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.modal-kicker{color:var(--muted)}.form-error{color:#ff9292;font-size:13px}.meeting-editor{border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:15px;margin-bottom:12px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.settings-grid .panel-body{padding:18px}.focus-toggle{background:var(--bg);border-color:var(--line);padding:13px;margin-top:10px}.focus-toggle span b{font-size:14px}.focus-toggle span small{font-size:12px;line-height:1.45;max-width:none}.focus-toggle span{color:var(--text);font-size:13px}.focus-toggle input{margin:0;flex-shrink:0}.lock-status{padding:15px;background:var(--bg);border:1px solid var(--line);border-radius:12px;display:flex;gap:12px;align-items:center;margin-bottom:15px}.lock-status strong,.lock-status small{display:block}.lock-status strong{font-size:14px}.lock-status small{font-size:12px;line-height:1.5;color:var(--muted);margin-top:5px}.lock-orb{width:12px;height:12px;border-radius:50%;background:#e4a749;flex-shrink:0}.lock-status.on .lock-orb{background:#42d787;box-shadow:0 0 0 5px #42d78720}.focus-hero,.music-banner{text-align:center;padding:26px 15px 34px}.focus-shield{width:62px;height:62px;border-radius:19px;display:grid;place-items:center;background:#1975b122;color:#59b5ef;margin:0 auto 14px}.focus-shield .glyph{font-size:40px}.focus-hero h2,.music-banner h2{font-size:30px;margin:12px 0}.focus-hero p,.music-banner p{color:var(--muted);font-size:14px}.lock-options{margin-bottom:20px}.lock-options>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.lock-options span{color:var(--muted)}.browser-form{display:flex;gap:8px}.browser-form input{min-width:0}.site-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.site-card{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left}.site-card .glyph{color:var(--blue)}.site-card small{font-size:12px;color:var(--muted)}.music-banner{background:linear-gradient(135deg,#173e5c,#191b30);border:1px solid var(--line);border-radius:18px;margin-bottom:20px;color:white}.music-banner>.glyph{font-size:38px}.file-button{position:relative;overflow:hidden;display:inline-flex;align-items:center;cursor:pointer}.file-button input{position:absolute;opacity:0;inset:0;cursor:pointer;width:100%}audio{width:100%;margin-top:20px}.timer-card,.stats-card,.study-live,.panel.inset{background:var(--panel);border-color:var(--line);color:var(--text)}.study-start-card label,.study-live label,.panel.inset label{font-size:13px}.study-start-card input,.study-start-card textarea,.study-start-card select,.study-live input,.study-live textarea,.study-live select{font-size:15px;background:var(--bg);color:var(--text);padding:12px;border-color:var(--line)}.study-start-card>p{font-size:14px}.study-start-card h2{font-size:28px}.study-live-head h2{font-size:29px}.study-live-head p{font-size:13px}.study-live .timer{font-size:36px}.cloud-explain{font-size:12px;line-height:1.6}.mini-feature b{font-size:14px}.mini-feature small{font-size:12px}.android-device-status b{font-size:13px}.android-device-status small{font-size:11px}.metric small{font-size:11px}.metric strong{font-size:28px}.permission-card p{font-size:13px}.permission-card h3{font-size:17px}.profile-card p{font-size:13px}.setting-row b{font-size:14px}.setting-row small{font-size:12px}.search-box input{font-size:14px}.auth-message{display:block}.auth-message h1{font-size:48px;letter-spacing:-2px}.auth-form label{font-size:13px}.auth-form input{font-size:16px}.auth-form small,.auth-status{font-size:12px}.auth-tabs button{font-size:14px}.toast{z-index:100;max-width:500px;font-size:13px;padding:14px 18px}.light{--bg:#f0f4f8;--panel:#fff;--panel2:#f5f8fb;--line:#d7e0eb;--text:#17283d;--muted:#587087;--side:#e8eef5}.light .sidebar nav button.active{color:#fff}.light .side-brand strong{color:var(--text)}.light .row,.light .friend-row{background:var(--panel2)}.light .panel.inset{background:var(--panel2)!important}.light .study-ring>div{background:var(--panel)}.light .auth-screen{color:#fff}.reduce-motion *{animation:none!important;transition:none!important}
@media(max-width:1250px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:850px){.app-shell{display:block}.main{padding-bottom:85px}.content{padding:16px 16px 28px}.topbar{padding:10px 16px;height:71px;gap:10px}.topbar small{font-size:10px}.topbar h1{font-size:22px}.menu-trigger{display:inline-grid;border:0;background:none;width:34px}.top-actions{gap:5px}.top-actions .icon-btn{width:36px;height:38px;min-height:38px;font-size:22px}.profile-chip,.profile-chip span{width:35px;height:35px;min-height:35px}.sidebar{position:fixed;z-index:41;top:0;bottom:0;left:0;right:auto;width:min(310px,86vw);height:100dvh;transform:translateX(-102%);transition:transform .2s ease;border-right:1px solid var(--line);padding:22px 16px;display:flex;border-radius:0;overflow-y:auto;background:var(--side);backdrop-filter:none;box-shadow:none}.sidebar nav{display:flex;grid-template-columns:none;height:auto}.sidebar nav button{font-size:14px;flex-direction:row;padding:11px 12px;min-height:46px;gap:12px;justify-content:flex-start}.sidebar nav button span{font-size:inherit}.sidebar nav button:after{display:none}.sidebar .side-brand,.sidebar .sync-box,.sidebar .sidebar-bottom{display:flex}.sidebar .side-brand strong{display:block;font-size:26px}.sidebar nav .nav-label{font-size:14px}.sidebar .workspace-subtitle{display:block}.sidebar-bottom button{font-size:14px;flex-direction:row}.sync-box div,.sync-box button{font-size:12px}.drawer-close{display:inline-grid;margin-left:auto;background:none;border:0;width:32px;font-size:27px}.drawer-shade{position:fixed;inset:0;background:#020710a8;z-index:40;border:0;backdrop-filter:blur(5px)}.menu-open{overflow:hidden}.menu-open .sidebar{transform:none}.bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:color-mix(in srgb,var(--side),transparent 4%);backdrop-filter:blur(20px)}.bottom-nav button{min-height:53px;border:0;background:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;border-radius:10px}.bottom-nav .glyph{font-size:24px}.bottom-nav button.active{background:color-mix(in srgb,var(--accent),transparent 82%);color:var(--blue)}.dashboard-hero{min-height:245px;padding:24px;margin-bottom:16px;background-position:53% center}.dashboard-hero h2{font-size:33px;max-width:440px}.hero-date{margin-bottom:16px}.dashboard-hero p{font-size:14px;line-height:1.5}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:500px}.hero-actions button{font-size:12px;padding:10px 8px;min-height:46px}.dashboard-grid,.dashboard-main,.dashboard-side{gap:16px}.settings-grid{grid-template-columns:1fr}.study-start-grid,.study-control-grid{grid-template-columns:1fr}.friend-layout,.profile-grid{grid-template-columns:1fr}.auth-layout{margin-top:12vh}.auth-message{display:none}.auth-screen{padding:24px}.auth-card{max-width:460px;margin:auto}.top-actions .ghost:after{display:none}.top-actions .ghost{font-size:13px}.dashboard-panel>.panel-head{padding:14px 16px;min-height:58px}.panel-head h3{font-size:16px}.panel-head .text-btn{font-size:12px}.panel-body{padding:15px}.mac-course{padding:16px 12px;min-height:101px}.mac-course strong{font-size:17px}.content .section-title h2{font-size:28px}.study-live-head{display:flex}.study-live-head>div:last-child{margin:0}.study-live .timer{font-size:29px}.main,.content{-webkit-overflow-scrolling:touch}}
@media(max-width:520px){.content{padding:14px 12px 32px}.topbar{padding:10px 12px}.topbar small{font-size:9px}.top-actions #quickAdd{display:none}.dashboard-hero{padding:23px 18px 19px;border-radius:15px}.dashboard-hero h2{font-size:31px;letter-spacing:-1px;max-width:315px}.dashboard-hero p{font-size:13px;max-width:270px;margin-bottom:21px}.hero-date{font-size:11px}.dashboard-side{display:flex}.mac-courses{grid-template-columns:1fr}.mac-course small{font-size:12px}.week-grid.compact{min-width:595px}.panel-body{padding:14px}.dashboard-panel>.panel-head{padding:12px 15px;gap:5px}.panel-head .glyph{font-size:21px;width:22px}.panel-head h3{font-size:15px;gap:8px}.deadline-empty{padding:25px 15px}.study-summary{gap:23px;flex-wrap:nowrap}.study-ring{width:129px;height:129px}.study-ring>div{width:109px;height:109px}.calendar-controls{width:100%;justify-content:flex-start}.calendar-controls .primary{margin-left:auto}.calendar-toolbar{gap:12px}.month-day{min-height:83px;padding:3px}.month-day span{font-size:8px;min-height:7px}.month-day strong{font-size:12px}.month-grid>b{padding:9px}.calendar-panel{padding:6px}.modal-backdrop{padding:12px 8px;align-items:center}.modal-card{max-height:calc(100dvh - 24px);padding:22px 18px;border-radius:17px}.modal-card input,.modal-card select,.modal-card textarea{font-size:16px}.modal-actions>*{flex:1}.quick-add-grid{grid-template-columns:1fr 1fr}.note-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr 1fr}.section-title p{font-size:12px}.toolbar{gap:7px}.toolbar .primary,.toolbar .ghost{font-size:12px}.study-live{padding:17px}.study-live-head h2{font-size:25px}.study-live-head .timer{font-size:25px}.study-live-actions{display:flex}.study-live-actions>*{flex:1 1 140px}.focus-toggle span small{font-size:11px;max-width:none}.android-device-actions{flex-wrap:wrap}.auth-layout{margin-top:21vh}.auth-screen{background:linear-gradient(0deg,#080c12 40%,#080c1255),url('../assets/mountain_hero.png') center top/auto 45vh no-repeat,#080c12}.auth-brand-row .brand strong{font-size:23px}.auth-card{padding:24px 21px}.auth-status{font-size:12px}.settings-grid .panel-head h3{font-size:16px}.study-start-card{padding:20px!important}.study-start-card label,.study-live label{font-size:13px}.study-start-card input,.study-start-card textarea,.study-start-card select,.study-live input,.study-live textarea,.study-live select{font-size:16px}.activity-row small{font-size:11px}.permission-card p{font-size:12px}.row strong,.study-row strong,.friend-row strong{font-size:14px}.row small,.study-row small,.friend-row small{font-size:12px}.toast{left:12px;right:12px;top:12px}}
html.android-app .content{padding-bottom:32px}html.android-app .sidebar{bottom:0}html.android-app .topbar{padding-top:10px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.sidebar nav button:not(.active) span.nav-label{font-size:14px}.sidebar nav{align-items:stretch}.sidebar nav button{width:100%}

.glyph{height:24px;width:24px;vertical-align:middle}.course-symbol .glyph{height:28px;width:28px}.focus-shield .glyph{height:35px;width:35px}.music-banner>.glyph{height:40px;width:40px}.dashboard-hero{background-image:linear-gradient(90deg,#07111d9c,#07111d12),linear-gradient(0deg,#07111dc4,transparent 75%),url('../assets/mountain_hero.png');background-position:center 51%}.sidebar nav button .glyph{width:22px;height:22px}.sidebar nav{align-items:stretch}

.week-swipe-hint{display:none}@media(max-width:850px){.week-swipe-hint{display:block;text-align:right;font-size:11px;color:var(--muted);padding:12px 12px 0}.focus-hero{padding:12px 10px 20px}.focus-hero h2{font-size:25px}.focus-shield{width:48px;height:48px;margin-bottom:9px}.focus-hero p{font-size:13px}.focus-shield .glyph{width:28px;height:28px}}

/* Browser font fallbacks and full-width account actions. */
button,input,select,textarea{font-family:inherit}.sidebar-bottom button span{width:auto;flex:1;text-align:left}.toolbar a.primary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px}
