:root{--bg:#080c12;--panel:#0f151e;--panel2:#141c28;--line:#263244;--text:#f4f6f8;--muted:#8e9bad;--orange:#f1a04c;--blue:#6c9dff;--green:#56cc8d;--red:#ff6b6b}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.toast{position:fixed;right:22px;top:22px;background:#15202c;border:1px solid #304056;color:#fff;padding:12px 16px;border-radius:12px;opacity:0;transform:translateY(-10px);transition:.2s;z-index:100;pointer-events:none;font-size:12px}.toast.show{opacity:1;transform:none}.toast.error{border-color:#6e3333;background:#281516}.mark{width:31px;height:31px;border-radius:4px 15px 15px 4px;background:linear-gradient(145deg,#ffd06d,#e77b2d);position:relative;display:inline-block;overflow:hidden}.mark:before{content:"";position:absolute;width:16px;height:10px;border-radius:20px 20px 0 0;background:#fff0c0;left:7px;top:5px}.mark i,.mark b,.mark em{position:absolute;left:0;height:3px;background:#7a2c18aa}.mark i{width:100%;top:17px}.mark b{width:88%;top:23px}.mark em{width:65%;top:28px}.mark.mini{width:25px;height:25px}.brand,.side-brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none}.auth-screen{min-height:100vh;padding:28px max(28px,5vw);background:radial-gradient(circle at 15% 8%,#25395955,transparent 32%),radial-gradient(circle at 90% 85%,#8a4a2250,transparent 30%),#080c12}.auth-brand-row{display:flex;justify-content:space-between;align-items:center}.auth-brand-row .brand strong{font-size:20px}.back-link{font-size:12px;color:#8f9caf;text-decoration:none}.auth-layout{width:min(1050px,100%);margin:11vh auto 0;display:grid;grid-template-columns:1.05fr .75fr;gap:90px;align-items:center}.auth-message>span,.modal-kicker{font-size:10px;letter-spacing:1.6px;color:#8f9caf;font-weight:800}.auth-message h1{font-size:58px;letter-spacing:-3px;line-height:1.02;margin:18px 0}.auth-message>p{color:#9ba8ba;font-size:16px;line-height:1.7;max-width:570px}.auth-points{margin-top:34px}.auth-points>div{display:flex;gap:15px;border-top:1px solid #202a37;padding:14px 0;color:#b8c1ce;font-size:12px}.auth-points b{font-size:9px;color:#657286;padding-top:3px}.auth-card{background:#0f151f;border:1px solid #283446;border-radius:24px;padding:26px;box-shadow:0 35px 90px #0008}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#0a0f16;border-radius:11px;padding:4px;margin-bottom:22px}.auth-tabs button{border:0;background:transparent;color:#738095;padding:10px;border-radius:8px}.auth-tabs button.active{background:#1a2432;color:white}.auth-form{display:flex;flex-direction:column;gap:14px}.auth-form label,.modal-card label{display:flex;flex-direction:column;gap:7px;font-size:10px;color:#9ba7b8}.auth-form input,.modal-card input,.modal-card textarea,.modal-card select{background:#0b1119;border:1px solid #293649;border-radius:10px;padding:12px;color:white;outline:none}.auth-form input:focus,.modal-card input:focus,.modal-card textarea:focus,.modal-card select:focus{border-color:#557ab6}.username{display:flex;align-items:center;background:#0b1119;border:1px solid #293649;border-radius:10px}.username span{padding-left:12px;color:#6e7b8f}.username input{border:0;flex:1;background:transparent}.primary,.ghost,.small-btn{border-radius:10px;border:1px solid #354358;padding:10px 14px;font-weight:700}.primary{background:#f3f5f7;color:#11161d;border-color:#f3f5f7}.ghost,.small-btn{background:#151e2a;color:#dfe4eb}.wide{width:100%;margin-top:4px}.auth-form small,.auth-status{font-size:10px;color:#718096;line-height:1.5}.auth-status{min-height:18px}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#090d13;border-right:1px solid #1b2330;padding:20px 14px;display:flex;flex-direction:column}.side-brand{padding:2px 8px 24px}.side-brand strong{font-size:15px}.side-brand small{margin-left:auto;font-size:8px;color:#667286;text-transform:uppercase}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav button,.sidebar-bottom button{border:0;background:transparent;color:#8290a4;text-align:left;padding:10px 11px;border-radius:9px;display:flex;gap:10px;align-items:center;font-size:12px}.sidebar nav button:hover,.sidebar-bottom button:hover,.sidebar nav button.active{background:#151d28;color:#fff}.sidebar nav button span,.sidebar-bottom span{width:18px;text-align:center}.sidebar nav i{margin-left:auto;background:#d75b5b;color:white;border-radius:8px;font-size:8px;min-width:15px;height:15px;display:none;place-items:center;font-style:normal}.sync-box{margin-top:auto;background:#101822;border:1px solid #222f40;border-radius:12px;padding:10px;display:flex;align-items:center;gap:8px}.sync-box>span{width:8px;height:8px;border-radius:50%;background:#55cc8b;box-shadow:0 0 11px #55cc8b66}.sync-box b,.sync-box small{display:block}.sync-box b{font-size:9px}.sync-box small{font-size:7px;color:#69778b;margin-top:2px}.sync-box button{margin-left:auto;border:0;background:transparent;color:#8f9caf}.sidebar-bottom{border-top:1px solid #1c2532;margin-top:12px;padding-top:10px}.main{min-width:0;background:radial-gradient(circle at 85% 0,#17264045,transparent 30%),#0a0f16}.topbar{height:94px;padding:24px 32px;border-bottom:1px solid #1a2330;display:flex;align-items:center;position:sticky;top:0;background:#0a0f16e8;backdrop-filter:blur(20px);z-index:8}.topbar small{font-size:8px;letter-spacing:1px;color:#677489}.topbar h1{font-size:24px;margin:4px 0 0;letter-spacing:-.8px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.profile-chip{display:flex;align-items:center;gap:8px;background:#111923;border:1px solid #263244;color:white;padding:5px 10px 5px 5px;border-radius:11px}.profile-chip span,.avatar,.big-avatar{display:grid;place-items:center;background:#28374b;border-radius:9px;font-weight:800}.profile-chip span{width:29px;height:29px;font-size:9px}.profile-chip b{font-size:10px}.content{padding:28px 32px 60px;max-width:1250px}.hero-row{display:grid;grid-template-columns:1.5fr .5fr;gap:14px}.hello-card,.panel,.metric,.profile-card{background:linear-gradient(145deg,#111924,#0d141d);border:1px solid #222e3e;border-radius:18px}.hello-card{padding:28px}.hello-card small,.panel-title small{font-size:8px;letter-spacing:1px;color:#718096}.hello-card h2{font-size:31px;letter-spacing:-1.5px;margin:8px 0}.hello-card p{color:#8694a8;font-size:12px}.today-card{padding:24px;background:linear-gradient(145deg,#241c16,#151412);border:1px solid #463121;border-radius:18px}.today-card small{font-size:8px;color:#a17e63}.today-card strong{font-size:42px;display:block;margin-top:7px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:14px 0}.metric{padding:16px}.metric small{font-size:8px;color:#748196;display:block}.metric strong{font-size:25px;display:block;margin-top:7px}.grid-2{display:grid;grid-template-columns:1.35fr .65fr;gap:13px}.panel{padding:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.panel-head h3{font-size:13px;margin:0}.panel-head span{font-size:9px;color:#69778a}.list{display:flex;flex-direction:column;gap:7px}.row,.friend-row,.course-row,.event-row,.study-row{display:flex;align-items:center;gap:10px;padding:11px;background:#121a25;border:1px solid #202c3c;border-radius:11px}.row .grow,.friend-row .grow{flex:1}.row strong,.row small,.friend-row strong,.friend-row small,.course-row strong,.course-row small,.event-row strong,.event-row small,.study-row strong,.study-row small{display:block}.row strong,.friend-row strong,.course-row strong,.event-row strong,.study-row strong{font-size:11px}.row small,.friend-row small,.course-row small,.event-row small,.study-row small{font-size:8px;color:#728095;margin-top:3px}.check{width:18px;height:18px;border:1px solid #44536a;border-radius:5px;background:transparent;color:white}.check.done{background:#315d47;border-color:#477d60}.course-dot{width:8px;height:28px;border-radius:5px;background:var(--blue)}.empty{padding:28px;text-align:center;color:#667489;font-size:11px;border:1px dashed #293548;border-radius:12px}.toolbar{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.toolbar .primary,.toolbar .ghost{font-size:10px}.section-title{display:flex;align-items:end;margin-bottom:16px}.section-title h2{margin:0;font-size:23px}.section-title p{margin:0 0 2px auto;color:#728095;font-size:10px}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.course-card{background:#111a25;border:1px solid #253244;border-radius:15px;padding:17px;position:relative}.course-card:before{content:"";display:block;width:35px;height:4px;border-radius:3px;background:var(--course,#6c9dff);margin-bottom:18px}.course-card small{font-size:8px;color:#758398}.course-card h3{font-size:16px;margin:5px 0}.course-card p{font-size:9px;color:#77859a;min-height:30px}.course-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.course-card footer button{border:0;background:transparent;color:#77859a;font-size:9px}.calendar-list{display:flex;flex-direction:column;gap:9px}.date-chip{width:50px;text-align:center;border-right:1px solid #2b3748;padding-right:10px}.date-chip b,.date-chip small{display:block}.date-chip b{font-size:18px}.date-chip small{font-size:8px;color:#748195}.task-list{display:flex;flex-direction:column;gap:8px}.task-row{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:13px;background:#101822;border:1px solid #222e3f;border-radius:12px}.task-row.done{opacity:.5}.task-row h4{margin:0;font-size:11px}.task-row p{margin:3px 0 0;font-size:8px;color:#748196}.priority{font-size:7px;border:1px solid #354257;border-radius:8px;padding:4px 7px;color:#a7b2c1}.study-hero{display:grid;grid-template-columns:1fr .7fr;gap:14px}.timer-card{background:linear-gradient(145deg,#161d27,#111720);border:1px solid #2b3748;border-radius:20px;padding:28px;text-align:center}.timer-card small{font-size:8px;letter-spacing:1px;color:#768398}.timer{font:700 52px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-3px;margin:20px 0}.timer-actions{display:flex;justify-content:center;gap:8px}.stats-card{background:#111923;border:1px solid #253244;border-radius:20px;padding:23px}.stats-card strong{font-size:35px;display:block;margin:8px 0}.stats-card small{font-size:9px;color:#768398}.friend-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:13px}.search-box{display:flex;gap:8px}.search-box input{flex:1;background:#0a1017;border:1px solid #2b384b;color:white;border-radius:10px;padding:10px}.avatar{width:35px;height:35px;font-size:9px}.status-dot{width:7px;height:7px;border-radius:50%;background:#56cd8e;display:inline-block;margin-right:5px}.status-chip{font-size:8px;color:#718095}.profile-grid{display:grid;grid-template-columns:.65fr 1.35fr;gap:14px}.profile-card{padding:24px}.big-avatar{width:72px;height:72px;border-radius:20px;font-size:20px}.profile-card h2{margin:14px 0 4px}.profile-card>p{color:#758297;font-size:10px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid #222c3a}.setting-row b,.setting-row small{display:block}.setting-row b{font-size:11px}.setting-row small{font-size:8px;color:#748196;margin-top:4px}.toggle{accent-color:#5ea1ff}.modal-backdrop{position:fixed;inset:0;background:#000a;backdrop-filter:blur(10px);z-index:50;display:grid;place-items:center;padding:20px}.modal-card{width:min(520px,100%);max-height:90vh;overflow:auto;background:#101720;border:1px solid #314056;border-radius:22px;padding:24px;box-shadow:0 30px 90px #000b}.modal-card h2{font-size:23px;margin:8px 0 20px}.modal-card form{display:flex;flex-direction:column;gap:13px}.modal-actions{display:flex;gap:8px;margin-top:8px}.modal-actions>*{flex:1}.small-btn{font-size:8px;padding:7px 10px}.danger{color:#ff8d8d}.sync-warning{padding:11px 13px;background:#2a2016;border:1px solid #5a3b20;border-radius:10px;color:#d9ae81;font-size:9px;margin-bottom:13px}@media(max-width:900px){.auth-layout{grid-template-columns:1fr;gap:30px;margin-top:7vh}.auth-message h1{font-size:44px}.app-shell{grid-template-columns:74px 1fr}.side-brand strong,.side-brand small,.sidebar nav button:not(.active) span+*,.sidebar nav button{font-size:0}.side-brand{justify-content:center}.sidebar nav button{justify-content:center;font-size:15px}.sidebar nav button span{font-size:15px}.sync-box div,.sync-box button,.sidebar-bottom button{font-size:0;justify-content:center}.sidebar-bottom span{font-size:15px}.hero-row,.grid-2,.study-hero,.friend-layout,.profile-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.course-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.auth-screen{padding:20px}.auth-message{display:none}.auth-layout{margin-top:12vh}.app-shell{display:block}.sidebar{position:fixed;z-index:20;bottom:0;top:auto;width:100%;height:62px;display:block;padding:7px;background:#0a0f17e8;backdrop-filter:blur(18px);border-right:0;border-top:1px solid #253043}.side-brand,.sync-box,.sidebar-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.sidebar nav button{padding:8px 2px;display:flex;flex-direction:column;gap:3px;font-size:0}.sidebar nav button span{font-size:15px}.sidebar nav button:after{content:attr(data-view);font-size:7px;text-transform:capitalize}.main{padding-bottom:70px}.topbar{height:76px;padding:17px 16px}.profile-chip b{display:none}.content{padding:18px 14px 80px}.hello-card{padding:20px}.hello-card h2{font-size:26px}.hero-row{grid-template-columns:1fr}.today-card{display:none}.metrics{grid-template-columns:repeat(2,1fr)}.course-grid{grid-template-columns:1fr}.timer{font-size:42px}}

/* Dayframe 5 Focus */
.focus-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.focus-builder label{display:flex;flex-direction:column;gap:6px;font-size:9px;color:#7d899a;margin:12px 0}.focus-builder input,.focus-builder textarea{background:#0a1017;border:1px solid #2b384b;color:#fff;border-radius:10px;padding:11px;font:inherit;resize:vertical}.focus-builder label>small{font-size:8px;color:#677489}.focus-toggle{flex-direction:row!important;align-items:center;justify-content:space-between;background:#0e151e;border:1px solid #222e3e;padding:12px;border-radius:11px}.focus-toggle span b,.focus-toggle span small{display:block}.focus-toggle span b{font-size:10px;color:#dce4ef}.focus-toggle span small{font-size:8px;margin-top:3px}.focus-active{max-width:820px;background:linear-gradient(145deg,#111d1a,#0d1517);border:1px solid #28503d;border-radius:20px;padding:28px}.focus-active>small{font-size:8px;letter-spacing:1px;color:#68d39b}.focus-active h2{font-size:26px;margin:7px 0}.focus-active .timer{text-align:left;margin:18px 0}.site-chips{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 18px}.site-chips span{font-size:9px;padding:7px 10px;border-radius:999px;background:#173326;color:#74dca8;border:1px solid #29533e}.focus-note{font-size:9px;color:#8492a6;background:#0c131a;border:1px solid #1f2d3b;border-radius:10px;padding:11px;margin-bottom:16px}.focus-steps p{font-size:10px;color:#8694a8;line-height:1.55}.focus-steps b{color:#dce5ef;margin-right:5px}@media(max-width:900px){.focus-grid{grid-template-columns:1fr}}

/* Dayframe 6 — portal visual system: match the native Mac app */
:root{--bg:#0a0d12;--panel:#11161e;--panel2:#161d27;--line:#252d39;--text:#f4f5f7;--muted:#8c96a5;--orange:#d9914f;--blue:#789bca;--green:#62ca94;--red:#ef777f}
body{background:#0a0d12}.app-shell{grid-template-columns:236px 1fr}.sidebar{background:linear-gradient(180deg,#0b0f15,#090c11);padding:24px 16px;border-color:#222936}.side-brand{padding:2px 10px 28px}.side-brand strong{font-size:19px;letter-spacing:-.7px}.side-brand small{font-size:7px;letter-spacing:1px}.sidebar nav{gap:5px}.sidebar nav button,.sidebar-bottom button{min-height:42px;padding:10px 12px;border-radius:12px;color:#909aa9}.sidebar nav button.active{background:linear-gradient(90deg,#26384f,#1c2838);box-shadow:inset 3px 0 #d8e5f6;color:#fff}.sync-box{border-radius:14px;background:#111821}.main{background:radial-gradient(circle at 90% -10%,#24364e60,transparent 32%),#0c1016}.topbar{height:88px;padding:20px 34px;background:#0c1016e8;border-color:#222a35}.topbar h1{font-size:25px;letter-spacing:-1px}.content{padding:30px 34px 70px;max-width:1320px}.hello-card,.panel,.metric,.profile-card,.course-card,.timer-card,.stats-card{background:linear-gradient(145deg,#131a24,#0f151d);border-color:#283342;box-shadow:0 12px 32px #0000001c}.hello-card{min-height:220px;padding:32px;position:relative;overflow:hidden;background:linear-gradient(90deg,#0e151fcc 0 48%,#0e151f55),url('../assets/mountain_hero.png') center 47%/cover}.hello-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#111923 0%,#111923b8 45%,transparent 78%);pointer-events:none}.hello-card>*{position:relative;z-index:1}.hello-card h2{font-size:36px;max-width:540px}.hello-card p{max-width:500px;line-height:1.55}.today-card{background:linear-gradient(145deg,#2a2017,#171411);border-color:#483521}.metrics{gap:12px}.metric{min-height:94px;padding:18px}.metric strong{font-size:28px}.panel{border-radius:18px}.section-title{align-items:center;margin-bottom:20px}.section-title h2{font-size:29px;letter-spacing:-1.1px}.section-title p{margin:5px 0 0;font-size:10px}.section-title>div+*{margin-left:auto}.primary,.ghost,.small-btn,.danger-button{border-radius:10px}.primary{background:#edf2f7;border-color:#edf2f7;color:#0b1016}.primary:hover{background:white}.ghost{background:#171f2a}.danger-button{border:1px solid #67343a;background:#351b20;color:#ffabb2;padding:10px 14px;font-weight:700}.row,.friend-row,.course-row,.event-row,.study-row,.task-row{border-radius:12px;background:#121923}.live-pill{font-size:8px;letter-spacing:1px;border:1px solid #344156;padding:7px 10px;border-radius:999px;color:#8290a3}.live-pill.on{color:#71dba7;border-color:#2f5a45;background:#12291f}.study-start-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.study-start-card{text-align:left}.study-start-card h2{font-size:27px;margin:8px 0 4px}.study-start-card>p{color:#8592a5;font-size:11px;line-height:1.5;margin:0 0 18px}.study-start-card label,.study-live label,.panel.inset label{display:flex;flex-direction:column;gap:6px;color:#8b97a8;font-size:9px;margin:11px 0}.study-start-card input,.study-start-card textarea,.study-start-card select,.study-live input,.study-live textarea,.study-live select,.panel.inset input,.panel.inset textarea,.panel.inset select{width:100%;background:#0b1118;border:1px solid #2c3848;color:#f3f5f7;border-radius:10px;padding:10px;outline:none}.study-start-card input:focus,.study-start-card textarea:focus,.study-start-card select:focus,.study-live input:focus,.study-live textarea:focus,.study-live select:focus{border-color:#6788b5}.form-row{display:grid;grid-template-columns:1fr 1.25fr;gap:9px}.focus-toggle.compact{margin:11px 0}.study-live{background:linear-gradient(145deg,#101b18,#0d1518);border:1px solid #2b5140;border-radius:22px;padding:24px;box-shadow:0 16px 50px #0003}.study-live-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #23342e;padding-bottom:18px}.study-live-head>div:last-child{text-align:right}.study-live-head small{font-size:8px;letter-spacing:1px;color:#6ccf9d}.study-live-head h2{font-size:31px;margin:7px 0 3px}.study-live-head p{margin:0;color:#8e9caa;font-size:11px}.study-live .timer{font-size:42px;margin:0}.study-control-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:12px;margin-top:14px}.panel.inset{background:#0d141b;border-color:#20302b;padding:16px}.browser-lock-panel{background:#0d1618!important}.focus-toggle{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:14px;background:#0b1219;border:1px solid #22303f;padding:11px;border-radius:11px}.focus-toggle input{width:auto!important;accent-color:#6ba3e6}.focus-toggle span b,.focus-toggle span small{display:block}.focus-toggle span b{color:#e1e6ec;font-size:10px}.focus-toggle span small{font-size:8px;color:#748397;margin-top:3px;line-height:1.35}.study-live-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.cloud-explain{margin-top:12px;padding:11px 12px;border-radius:10px;background:#0b1218;border:1px solid #20313c;color:#82909f;font-size:9px;line-height:1.5}.cloud-explain b{color:#cbd5df}.app-match-card{text-align:left}.mini-feature{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #253140}.mini-feature i{width:31px;height:31px;border-radius:9px;background:#192535;display:grid;place-items:center;font-style:normal}.mini-feature b,.mini-feature small{display:block}.mini-feature b{font-size:10px}.mini-feature small{font-size:8px;color:#7c899a;margin-top:3px;line-height:1.4}.recent-panel{margin-top:14px}.auth-screen{background:linear-gradient(90deg,#090d13de 0 43%,#090d1388),url('../assets/mountain_hero.png') center/cover fixed}.auth-card{background:#0e151edc;backdrop-filter:blur(22px);border-color:#344153}.auth-message h1{font-size:61px}.profile-chip{border-radius:12px;background:#121923}
@media(max-width:1000px){.study-start-grid,.study-control-grid{grid-template-columns:1fr}.app-shell{grid-template-columns:82px 1fr}.side-brand strong,.side-brand small,.sidebar nav button{font-size:0}.side-brand{justify-content:center}.sidebar nav button{justify-content:center}.sidebar nav button span{font-size:15px}.sync-box div,.sync-box button,.sidebar-bottom button{font-size:0}.sidebar-bottom span{font-size:15px}.content{padding:25px 22px 60px}}
@media(max-width:620px){.app-shell{display:block}.sidebar{position:fixed;z-index:20;bottom:0;top:auto;width:100%;height:66px;display:block;padding:7px;border-right:0;border-top:1px solid #27313e}.side-brand,.sync-box,.sidebar-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(6,1fr);gap:2px}.sidebar nav button{min-height:49px;padding:7px 2px;display:flex;flex-direction:column;gap:3px}.sidebar nav button span{font-size:15px}.sidebar nav button:after{content:attr(data-view);font-size:6.5px;text-transform:capitalize}.main{padding-bottom:72px}.topbar{height:74px;padding:15px}.content{padding:18px 13px 86px}.hello-card{min-height:200px;padding:20px}.hello-card h2{font-size:27px}.study-live-head{display:block}.study-live-head>div:last-child{text-align:left;margin-top:18px}.study-live .timer{font-size:36px}.study-live-actions>*{flex:1}.form-row{grid-template-columns:1fr}.auth-screen{padding:20px}.auth-message{display:none}.auth-layout{display:block;margin-top:11vh}.metrics{grid-template-columns:repeat(2,1fr)}.course-grid{grid-template-columns:1fr}}

/* Dayframe 6.1 — shared device-lock controls */
.device-lock-panel{background:linear-gradient(145deg,#101722,#0c131b)!important;border-color:#2a3545!important}
.device-lock-panel .panel-head span{letter-spacing:1px;font-weight:800;color:#72829a}
.android-device-status{margin-top:12px;padding:12px;border:1px solid #293648;border-radius:13px;background:#0a1017;display:flex;align-items:center;justify-content:space-between;gap:10px}
.android-device-status>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.android-device-status b,.android-device-status small{display:block}.android-device-status b{font-size:10px}.android-device-status small{font-size:8px;color:#76859a;margin-top:3px;line-height:1.35}.android-device-status.on{border-color:#2d5a43;background:#0d1d17}.status-orb{width:9px;height:9px;border-radius:50%;background:#7d8ca0;box-shadow:0 0 0 4px #7d8ca018}.android-device-status.on .status-orb{background:#62d099;box-shadow:0 0 0 4px #62d09918,0 0 18px #62d09955}.android-device-actions{display:flex;gap:6px;flex:0 0 auto}.study-start-button{margin-top:14px!important}

/* Mac-like switches instead of browser-default checkboxes */
.focus-toggle input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:42px!important;height:24px!important;border:0!important;border-radius:999px!important;background:#263242!important;padding:0!important;position:relative;flex:0 0 42px;transition:background .18s ease,box-shadow .18s ease;box-shadow:inset 0 0 0 1px #ffffff0c}
.focus-toggle input[type="checkbox"]:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#e9edf2;box-shadow:0 2px 7px #0007;transition:transform .18s ease}
.focus-toggle input[type="checkbox"]:checked{background:#668bb9!important;box-shadow:inset 0 0 0 1px #a8c8ee33,0 0 18px #668bb927}
.focus-toggle input[type="checkbox"]:checked:before{transform:translateX(18px)}

/* Phone layout: deliberately feels like the native Mac app shrunk to a handset. */
@media(max-width:620px){
  html,body{background:#090d13;overscroll-behavior-y:none}
  body{-webkit-tap-highlight-color:transparent}
  .toast{left:14px;right:14px;top:14px;text-align:center;border-radius:14px;padding:12px 14px;font-size:11px;backdrop-filter:blur(18px)}
  .main{background:radial-gradient(circle at 92% -4%,#334d7055,transparent 34%),#0b1016;padding-bottom:100px;min-height:100vh}
  .topbar{height:72px;padding:13px 16px 12px;background:#0b1016d9;backdrop-filter:blur(24px) saturate(145%);border-bottom-color:#ffffff0b;box-shadow:0 10px 28px #00000018}
  .topbar small{font-size:7px;letter-spacing:1.25px;color:#748196}.topbar h1{font-size:23px;letter-spacing:-.9px;margin-top:3px}
  .top-actions{gap:7px}.top-actions .ghost{font-size:0;width:38px;height:38px;padding:0;border-radius:12px;background:#141d28;border-color:#293648}.top-actions .ghost:after{content:"＋";font-size:19px;font-weight:400}.profile-chip{padding:4px;border-radius:12px;background:#141d28}.profile-chip span{width:30px;height:30px}.profile-chip b{display:none}
  .content{padding:20px 14px 104px;max-width:none}
  .section-title{align-items:flex-start;margin:3px 2px 18px}.section-title h2{font-size:30px;letter-spacing:-1.4px;line-height:1}.section-title p{font-size:9px;line-height:1.4;margin-top:7px;max-width:250px}.live-pill{margin-top:1px;padding:6px 9px}
  .hello-card{min-height:235px;padding:24px 21px;border-radius:22px;background:linear-gradient(90deg,#0e151fef 0 43%,#0e151f76 70%,#0e151f2f),url('../assets/mountain_hero.png') center 48%/cover;box-shadow:0 20px 55px #0007}.hello-card:after{background:linear-gradient(90deg,#0c121bdd 0%,#0c121ba3 52%,transparent 88%)}.hello-card h2{font-size:32px;letter-spacing:-1.6px;line-height:1.02;max-width:280px}.hello-card p{font-size:10px;max-width:260px;line-height:1.55}
  .metrics{gap:8px;margin:10px 0}.metric{min-height:88px;padding:15px;border-radius:16px}.metric small{font-size:7px}.metric strong{font-size:25px}
  .panel,.timer-card,.stats-card,.profile-card,.course-card{border-radius:19px;box-shadow:0 12px 34px #0000002f}.panel{padding:16px}.panel-head{margin-bottom:11px}.panel-head h3{font-size:12px}.panel-head span{font-size:7px}
  .row,.friend-row,.course-row,.event-row,.study-row,.task-row{border-radius:14px;padding:12px;background:#111923;border-color:#263140}
  .primary,.ghost,.small-btn,.danger-button{min-height:42px;border-radius:12px;padding:10px 13px}.small-btn{min-height:34px;padding:7px 10px}
  .study-start-grid,.study-control-grid{grid-template-columns:1fr;gap:10px}.study-start-card{padding:21px!important}.study-start-card>small{font-size:8px;letter-spacing:1.1px}.study-start-card h2{font-size:29px;letter-spacing:-1.1px;line-height:1.04;margin:9px 0 7px}.study-start-card>p{font-size:10px;margin-bottom:17px}
  .study-start-card label,.study-live label,.panel.inset label{font-size:8px;margin:10px 0}.study-start-card input,.study-start-card textarea,.study-start-card select,.study-live input,.study-live textarea,.study-live select,.panel.inset input,.panel.inset textarea,.panel.inset select{font-size:12px;border-radius:12px;padding:12px;background:#0a1017;border-color:#2a3544}.study-start-card textarea,.study-live textarea{min-height:94px}
  .focus-toggle{padding:12px 13px;border-radius:14px;background:#0a1118;border-color:#273443}.focus-toggle span b{font-size:11px}.focus-toggle span small{font-size:8px;line-height:1.4;margin-top:4px;max-width:240px}
  .study-live{border-radius:22px;padding:18px;background:linear-gradient(145deg,#0f1c18,#0d1519);border-color:#315642}.study-live-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px}.study-live-head>div:first-child{min-width:0;flex:1}.study-live-head>div:last-child{text-align:right;margin:0}.study-live-head h2{font-size:26px;line-height:1.05}.study-live-head p{font-size:9px}.study-live .timer{font-size:30px;letter-spacing:-1.5px}.study-live-head>div:last-child small{font-size:7px}
  .panel.inset{padding:14px;border-radius:16px}.browser-lock-panel{background:#0b1517!important}.device-lock-panel{background:#0d141d!important}.study-live-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.study-live-actions .danger-button{grid-column:1/-1}.cloud-explain{font-size:8px;border-radius:13px;padding:12px;line-height:1.5}
  .android-device-status{display:block;padding:12px;border-radius:14px}.android-device-actions{margin-top:10px}.android-device-actions>*{flex:1}.android-device-status b{font-size:10px}.android-device-status small{font-size:7.5px}
  .app-match-card{padding:20px}.app-match-card>strong{font-size:44px}.mini-feature{padding:13px 0}.mini-feature i{width:34px;height:34px;border-radius:11px}
  .recent-panel{margin-top:10px}
  .sidebar{left:10px;right:10px;bottom:10px;width:auto;height:70px;padding:7px;border:1px solid #2a3442;border-radius:21px;background:#0c121ae8;backdrop-filter:blur(26px) saturate(140%);box-shadow:0 18px 55px #000c;overflow:hidden}.sidebar nav{height:100%;grid-template-columns:repeat(6,1fr);align-items:center}.sidebar nav button{height:55px;min-height:55px;padding:6px 1px;border-radius:14px;color:#738094}.sidebar nav button.active{background:#1a2737;box-shadow:none;color:#eaf0f6}.sidebar nav button span{font-size:16px;line-height:18px}.sidebar nav button:after{font-size:6px;letter-spacing:.1px;margin-top:2px}.sidebar nav i{position:absolute;margin:0;transform:translate(8px,-13px)}
  .auth-screen{padding:18px;background:linear-gradient(180deg,#080c12a3 0 18%,#080c12e6 47%,#080c12 75%),url('../assets/mountain_hero.png') center top/auto 48vh no-repeat,#080c12}.auth-brand-row{padding-top:7px}.auth-brand-row .back-link{display:none}.auth-layout{margin-top:22vh}.auth-card{border-radius:24px;padding:22px;background:#0d141edc;backdrop-filter:blur(24px);box-shadow:0 30px 80px #000b}.auth-tabs{border-radius:13px}.auth-tabs button{padding:11px}.auth-form input{padding:13px;border-radius:12px}
}

/* APK-specific polish. Kept separate so the normal web portal still behaves like a website. */
html.android-app{background:#090d13}
html.android-app body{user-select:none;-webkit-user-select:none}
html.android-app input,html.android-app textarea,html.android-app select{user-select:text;-webkit-user-select:text}
html.android-app .auth-brand-row .back-link{display:none}
html.android-app .side-brand small{display:none}
html.android-app .topbar{padding-top:max(13px,env(safe-area-inset-top))}
html.android-app .sidebar{bottom:max(10px,env(safe-area-inset-bottom))}
html.android-app .content{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
html.android-app .main,html.android-app .content{-webkit-overflow-scrolling:touch}


/* Dayframe 7 mobile activity + parity polish */
.activity-timeline{display:flex;flex-direction:column;gap:8px}.activity-row{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid #243140;border-radius:14px;background:#0d151f}.activity-icon{width:34px;height:34px;border-radius:11px;background:#182536;display:grid;place-items:center;font-size:15px;flex:0 0 auto}.activity-row.study .activity-icon{background:#163126}.activity-row.website .activity-icon{background:#25213a}.activity-row.focus .activity-icon{background:#2f2618}.activity-row strong,.activity-row small{display:block}.activity-row strong{font-size:11px}.activity-row small{font-size:8px;color:#7f8ea2;margin-top:4px}.permission-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;background:linear-gradient(145deg,#111a27,#0c131b)}.permission-card h3{margin:0 0 6px;font-size:13px}.permission-card p{margin:0;color:#8090a5;font-size:9px;line-height:1.5}.permission-card .primary{flex:0 0 auto}@media(max-width:620px){.sidebar nav{grid-template-columns:repeat(7,1fr)}.sidebar nav button:after{font-size:5.8px}.activity-row{padding:11px}.permission-card{display:block}.permission-card .primary{width:100%;margin-top:12px}}
