
/* Focus OS standalone shell: isolate from global site navigation styles */
body.focus-os-page .focus-topbar{
  position:sticky!important;top:0;z-index:80;
  width:100%;box-sizing:border-box;min-height:72px;
  display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:24px;
  padding:14px 22px!important;margin:0!important;
  color:var(--f-text)!important;
}
body.focus-os-page .focus-topbar .brand{display:flex!important;align-items:center!important;gap:10px!important;color:var(--f-text)!important;text-decoration:none!important;min-width:180px}
body.focus-os-page .focus-topbar .brand-mark{display:grid!important;place-items:center!important;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#7c5cff,#21d4fd);color:#fff!important;font-weight:900}
body.focus-os-page .focus-topbar .brand-text{color:var(--f-text)!important;font-weight:800!important;font-size:16px!important}
body.focus-os-page .focus-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:22px!important;flex:1!important}
body.focus-os-page .focus-nav a{display:block!important;color:var(--f-muted)!important;text-decoration:none!important;font-size:14px!important;font-weight:600!important}
body.focus-os-page .focus-top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:180px}
body.focus-os-page .icon-btn,body.focus-os-page .ghost-btn{font:inherit!important;line-height:1!important}
@media(max-width:760px){body.focus-os-page .focus-topbar{padding:12px 14px!important;min-height:62px}.focus-topbar .brand{min-width:auto}.focus-topbar .brand-text{font-size:14px!important}.focus-nav{display:none!important}.focus-top-actions{min-width:auto!important}}

/* JS boot diagnostic */
.focus-os-page .focus-boot-fallback{position:fixed;inset:0;display:grid;place-items:center;background:#070a12;color:#f7f8ff;z-index:9999;padding:24px;text-align:center}
.focus-os-page .focus-boot-fallback[hidden]{display:none}
:root{--f-bg:#070a12;--f-panel:rgba(17,23,38,.84);--f-panel2:rgba(11,16,29,.92);--f-line:rgba(255,255,255,.09);--f-text:#f7f8ff;--f-muted:#98a2bc;--f-accent:#7c5cff;--f-accent2:#21d4fd;--f-good:#66f0b0;--f-warn:#ffb454;--f-shadow:0 30px 80px rgba(0,0,0,.32)}
body.focus-os-page{background:radial-gradient(circle at 15% 10%,rgba(124,92,255,.14),transparent 32%),radial-gradient(circle at 85% 5%,rgba(33,212,253,.10),transparent 28%),var(--f-bg);color:var(--f-text);font-family:Inter,system-ui,sans-serif;min-height:100vh}.focus-topbar{background:rgba(7,10,18,.74)!important;backdrop-filter:blur(18px);border-bottom:1px solid var(--f-line)}.focus-topbar .brand{font-family:'Space Grotesk',sans-serif}.focus-nav{display:flex;gap:20px}.focus-nav a{color:var(--f-muted);text-decoration:none;font-size:14px}.focus-nav a:hover{color:var(--f-text)}.focus-top-actions{display:flex;gap:10px;align-items:center}.icon-btn,.ghost-btn,.secondary-btn,.quick-row button,.text-btn{border:1px solid var(--f-line);background:rgba(255,255,255,.04);color:var(--f-text);border-radius:12px;cursor:pointer}.icon-btn{width:40px;height:40px}.ghost-btn{padding:10px 14px}.focus-shell{max-width:1320px;margin:0 auto;padding:42px 22px 28px}.focus-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:26px}.eyebrow,.panel-kicker{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#8d7cff;font-weight:800}.focus-hero h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(40px,5vw,70px);line-height:.98;margin:8px 0 12px;letter-spacing:-.04em}.focus-hero h1 span{background:linear-gradient(110deg,#9b8cff,#21d4fd);-webkit-background-clip:text;background-clip:text;color:transparent}.focus-hero p{color:var(--f-muted);max-width:760px;line-height:1.65;font-size:15px}.live-pill{min-width:160px;border:1px solid var(--f-line);background:var(--f-panel);box-shadow:var(--f-shadow);padding:13px 15px;border-radius:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}.live-pill i{width:8px;height:8px;border-radius:50%;background:#70798f;box-shadow:0 0 16px #70798f}.live-pill.running i{background:var(--f-good);box-shadow:0 0 18px var(--f-good)}.live-pill span{font-size:11px;color:var(--f-muted);letter-spacing:.14em}.live-pill b{font-family:'Space Grotesk';font-size:18px}.focus-grid{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:16px}.bottom-grid{display:grid;grid-template-columns:1.3fr .9fr;gap:16px;margin-top:16px}.panel{background:linear-gradient(180deg,rgba(18,24,41,.9),rgba(11,16,29,.88));border:1px solid var(--f-line);box-shadow:var(--f-shadow);border-radius:24px;padding:20px;position:relative;overflow:hidden}.panel:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(124,92,255,.05),transparent 45%,rgba(33,212,253,.04));pointer-events:none}.panel-head{display:flex;align-items:center;justify-content:space-between;position:relative}.panel-head h2{margin:4px 0 0;font-family:'Space Grotesk';font-size:20px}.status-dot{width:10px;height:10px;border-radius:50%;background:#64708b}.status-dot.active{background:var(--f-good);box-shadow:0 0 18px var(--f-good)}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.mode-card{padding:14px;border-radius:16px;border:1px solid var(--f-line);background:rgba(255,255,255,.03);color:var(--f-text);text-align:left;cursor:pointer;transition:.2s}.mode-card:hover{transform:translateY(-1px);border-color:rgba(124,92,255,.45)}.mode-card.active{border-color:rgba(124,92,255,.7);box-shadow:0 0 0 1px rgba(124,92,255,.2),0 12px 30px rgba(124,92,255,.12);background:linear-gradient(180deg,rgba(124,92,255,.15),rgba(255,255,255,.03))}.mode-card span{display:block;color:#a79cff;margin-bottom:9px}.mode-card strong{display:block;font-size:14px}.mode-card small{display:block;color:var(--f-muted);margin-top:4px}.task-box{padding:14px;border:1px solid var(--f-line);border-radius:16px;background:rgba(255,255,255,.025)}.task-box label{display:block;color:var(--f-muted);font-size:12px;margin-bottom:8px}.task-box input,.modal-card textarea{width:100%;box-sizing:border-box;border:1px solid var(--f-line);background:#090d18;color:var(--f-text);border-radius:13px;padding:12px 13px;outline:none}.task-box input:focus,.modal-card textarea:focus{border-color:rgba(124,92,255,.65);box-shadow:0 0 0 3px rgba(124,92,255,.12)}.task-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:9px;font-size:11px;color:#6f7a94}.text-btn{background:none;border:0;padding:0;color:#8e83ff}.mini-actions{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;margin-top:12px}.primary-btn{border:0;background:linear-gradient(100deg,#7258ff,#21bff8);color:white;font-weight:800;border-radius:14px;padding:12px 15px;cursor:pointer;box-shadow:0 14px 32px rgba(74,92,255,.2)}.secondary-btn{padding:12px 14px}.secondary-btn:disabled{opacity:.4;cursor:not-allowed}.quick-row{display:flex;gap:8px;margin-top:10px}.quick-row button{padding:9px 11px;font-size:11px;color:#bcc5d9}.timer-panel{display:flex;flex-direction:column;align-items:center;min-height:610px}.timer-top{display:flex;width:100%;justify-content:space-between;color:#8792ab;font-size:11px;letter-spacing:.16em;font-weight:800}.orb-wrap{width:min(100%,470px);aspect-ratio:1/1;position:relative;display:grid;place-items:center;margin:auto}.ring-glow{position:absolute;width:64%;height:64%;border-radius:50%;background:radial-gradient(circle,rgba(124,92,255,.20),transparent 65%);filter:blur(22px);animation:pulse 3.5s ease-in-out infinite}.timer-ring{position:absolute;width:100%;height:100%;transform:rotate(-90deg)}.ring-track,.ring-progress{fill:none;stroke-width:10}.ring-track{stroke:rgba(255,255,255,.07)}.ring-progress{stroke:url(#none);stroke:#8d7cff;stroke-linecap:round;filter:drop-shadow(0 0 10px rgba(124,92,255,.75));transition:stroke-dashoffset .4s linear}.timer-core{text-align:center;z-index:1}.timer-core>div:first-child{font-family:'Space Grotesk';font-size:clamp(54px,7vw,84px);font-weight:700;letter-spacing:-.05em}.timer-core small{display:block;color:#8190ae;letter-spacing:.17em;font-size:10px;font-weight:800}.focus-score-badge{display:inline-flex!important;gap:5px;align-items:baseline;margin-top:16px;border:1px solid var(--f-line);background:rgba(255,255,255,.04);border-radius:999px;padding:7px 11px}.focus-score-badge span{font-family:'Space Grotesk';font-size:16px!important}.focus-score-badge small{letter-spacing:.08em!important;font-size:8px!important}.timer-under{display:grid;grid-template-columns:1fr 1.6fr 1fr;align-items:center;width:100%;gap:12px}.timer-under>div{text-align:center}.timer-under b{display:block;font-family:'Space Grotesk';font-size:18px}.timer-under span,.timer-under small{color:#7f89a2;font-size:10px}.breath{padding:10px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid var(--f-line)}.breath span{width:10px;height:10px;border-radius:50%;display:inline-block;background:#21d4fd;margin-right:7px;animation:breath 4s ease-in-out infinite}.breath b{display:inline!important;font-size:12px!important}.breath small{display:block;margin-top:4px}.ai-badge{font-size:9px;letter-spacing:.13em;color:#a99dff;padding:7px 8px;border:1px solid rgba(124,92,255,.35);border-radius:999px}.ai-plan{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin:18px 0;padding:13px;border:1px solid rgba(124,92,255,.28);background:linear-gradient(100deg,rgba(124,92,255,.14),rgba(33,212,253,.07));border-radius:16px;color:var(--f-text);text-align:left;cursor:pointer}.ai-plan>span{font-size:20px;color:#a99dff}.ai-plan strong{display:block;font-size:13px}.ai-plan small{display:block;color:#8e99b2;margin-top:4px}.ai-plan>b{font-size:20px;color:#9c92ff}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.metric-grid>div{padding:13px;border:1px solid var(--f-line);background:rgba(255,255,255,.025);border-radius:14px}.metric-grid span,.metric-grid small{display:block;color:#7f89a2;font-size:10px}.metric-grid strong{display:block;font-family:'Space Grotesk';font-size:22px;margin:3px 0}.timeline{margin-top:14px}.timeline-head{display:flex;justify-content:space-between;font-size:11px;color:#8892aa;margin-bottom:9px}.timeline-bars{display:flex;gap:4px;align-items:flex-end;height:70px;padding:5px 0}.timeline-bars i{flex:1;min-width:4px;border-radius:4px 4px 2px 2px;background:linear-gradient(180deg,#8f7cff,#21d4fd);opacity:.8}.tip-card{display:flex;gap:10px;margin-top:12px;padding:12px;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid var(--f-line)}.tip-card span{color:#21d4fd}.tip-card p{margin:0;color:#a0a8bc;font-size:11px;line-height:1.55}small{padding:8px 10px}.switch-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--f-line)}.switch-row:last-of-type{border-bottom:0}.switch-row strong,.switch-row small{display:block}.switch-row strong{font-size:12px}.switch-row small{color:#7f89a2;font-size:10px;margin-top:3px}.switch-row input{display:none}.switch-row i{width:42px;height:24px;border-radius:999px;background:#252d40;position:relative;cursor:pointer}.switch-row i:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#9099ab;transition:.2s}.switch-row input:checked+i{background:linear-gradient(90deg,#6e55ff,#20bfe7)}.switch-row input:checked+i:after{left:21px;background:white}.shortcut-row{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr;gap:8px;align-items:center;margin-top:16px;font-size:10px;color:#77829b}.shortcut-row span:nth-child(odd){padding:5px 7px;border:1px solid var(--f-line);border-radius:6px;color:#c7cee0;background:rgba(255,255,255,.03)}.focus-footer{text-align:center;color:#5f6981;padding:18px 20px 30px;font-size:11px}.modal{position:fixed;inset:0;background:rgba(2,4,10,.72);backdrop-filter:blur(14px);display:grid;place-items:center;padding:20px;z-index:100}.modal[hidden]{display:none}.modal-card{width:min(560px,100%);padding:24px;border-radius:24px;border:1px solid var(--f-line);background:#101625;box-shadow:0 40px 120px rgba(0,0,0,.55);position:relative}.modal-card h2{font-family:'Space Grotesk';font-size:28px;margin:8px 0}.modal-card p{color:#8e98b0;font-size:13px;line-height:1.6}.modal-close{position:absolute;right:15px;top:12px;background:none;border:0;color:#a5afc1;font-size:26px;cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.plan-result{margin-top:14px}.plan-result .plan-chip{display:inline-block;padding:7px 9px;border:1px solid var(--f-line);border-radius:999px;color:#c0c8d9;font-size:10px;margin:3px}.focus-os-page.shield .focus-nav,.focus-os-page.shield .focus-top-actions,.focus-os-page.shield .bottom-grid,.focus-os-page.shield .focus-hero p{opacity:.35}.focus-os-page.shield .focus-grid{grid-template-columns:.8fr 1.8fr .8fr}.focus-os-page.shield .timer-panel{min-height:calc(100vh - 170px)}@keyframes pulse{0%,100%{transform:scale(.94);opacity:.75}50%{transform:scale(1.06);opacity:1}}@keyframes breath{0%,100%{transform:scale(.8);opacity:.6}50%{transform:scale(1.6);opacity:1}}@media(max-width:1050px){.focus-grid{grid-template-columns:1fr 1.25fr}.insight-panel{grid-column:1/-1}.timer-panel{min-height:540px}.focus-os-page.shield .focus-grid{grid-template-columns:1fr 1.25fr}}@media(max-width:760px){.focus-nav{display:none}.focus-top-actions .ghost-btn{display:none}.focus-shell{padding:28px 13px}.focus-hero{display:block}.live-pill{margin-top:12px;width:max-content}.focus-grid,.bottom-grid{grid-template-columns:1fr}.timer-panel{min-height:480px}.mini-actions{grid-template-columns:1.2fr 1fr 1fr}.timer-under{grid-template-columns:1fr 1fr}.breath{grid-column:1/-1;grid-row:1}.timer-under>div:first-child{grid-column:1}.timer-under>div:last-child{grid-column:2}.shortcut-row{grid-template-columns:auto 1fr auto 1fr}.shortcut-row span:nth-child(5),.shortcut-row span:nth-child(6){display:none}}
:root{color-scheme:dark}html[data-focus-theme="light"]{--f-bg:#f3f6fb;--f-panel:rgba(255,255,255,.92);--f-panel2:rgba(255,255,255,.95);--f-line:rgba(16,24,40,.10);--f-text:#11182a;--f-muted:#667085}html[data-focus-theme="light"] body.focus-os-page{background:radial-gradient(circle at 15% 10%,rgba(124,92,255,.10),transparent 32%),radial-gradient(circle at 85% 5%,rgba(33,212,253,.08),transparent 28%),var(--f-bg)}html[data-focus-theme="light"] .task-box input,html[data-focus-theme="light"] .modal-card textarea{background:#fff;color:#11182a}html[data-focus-theme="light"] .modal-card{background:#fff} 

/* FUTURE FOCUS UNIVERSE */
.future-suite{margin:8px 0 22px;position:relative;overflow:hidden;padding:20px 18px 18px;border:1px solid rgba(139,124,255,.24);border-radius:26px;background:radial-gradient(circle at 50% 15%,rgba(129,91,255,.15),transparent 35%),linear-gradient(180deg,rgba(9,12,30,.86),rgba(10,14,27,.68));box-shadow:0 30px 90px rgba(31,18,86,.22),inset 0 1px 0 rgba(255,255,255,.04)}
.future-suite:before{content:"";position:absolute;inset:-40% -10%;background:radial-gradient(circle at 50% 45%,rgba(44,203,255,.08),transparent 28%);pointer-events:none}
.future-suite-head{position:relative;display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}.future-suite-head h2{margin:4px 0 3px;font:700 27px/1.1 'Space Grotesk',sans-serif;color:var(--f-text)}.future-suite-head p{margin:0;max-width:720px;color:#8490aa;font-size:12px;line-height:1.55}.future-suite-hint{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#69758f;white-space:nowrap}.future-suite-hint span{color:#a99dff;font-size:14px;margin:0 5px}
.future-carousel{position:relative;display:grid;grid-template-columns:46px 1fr 46px;align-items:center;gap:10px}.future-arrow{width:40px;height:40px;border-radius:50%;border:1px solid rgba(164,147,255,.35);background:rgba(91,70,163,.2);color:#e6e5ff;font-size:28px;cursor:pointer;justify-self:center;transition:.2s}.future-arrow:hover{transform:scale(1.05);background:rgba(124,92,255,.28)}.future-track{position:relative;overflow:visible;touch-action:pan-y}.future-track-inner{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:14px;align-items:stretch;transition:transform .45s cubic-bezier(.22,.88,.32,1);will-change:transform}.future-card{position:relative;min-height:156px;padding:14px 12px 16px;border:1px solid rgba(141,125,255,.17);border-radius:22px;background:linear-gradient(160deg,rgba(31,28,67,.78),rgba(10,16,32,.9));color:var(--f-text);cursor:pointer;overflow:hidden;transform:translateY(8px) scale(.93) rotate(var(--tilt,0deg));opacity:.56;transition:transform .35s ease,opacity .35s ease,border-color .35s ease,box-shadow .35s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.future-card:nth-child(1),.future-card:nth-child(5){--tilt:-2deg}.future-card:nth-child(2),.future-card:nth-child(4){--tilt:2deg}.future-card:nth-child(3){--tilt:0deg}.future-card.is-center{transform:translateY(-4px) scale(1.02) rotate(0deg);opacity:1;border-color:rgba(177,164,255,.68);box-shadow:0 18px 45px rgba(87,63,182,.24),0 0 0 1px rgba(124,92,255,.18),inset 0 1px 0 rgba(255,255,255,.08)}.future-card:hover{opacity:1;transform:translateY(-2px) scale(.97) rotate(0deg)}.future-card.is-center:hover{transform:translateY(-7px) scale(1.035)}.future-card-glow{position:absolute;left:20%;top:-8%;width:60%;height:58%;border-radius:50%;background:radial-gradient(circle,rgba(115,92,255,.23),transparent 65%);filter:blur(12px)}.future-icon{position:relative;display:grid;place-items:center;width:72px;height:72px;margin:3px auto 13px;border-radius:20px;border:1px solid rgba(207,200,255,.24);background:#060813;box-shadow:0 14px 34px rgba(0,0,0,.32),inset 0 0 25px rgba(124,92,255,.12);font-size:42px;font-family:'Space Grotesk',sans-serif}.future-card strong,.future-card small{position:relative;display:block;text-align:center}.future-card strong{font:700 16px/1.2 'Space Grotesk',sans-serif}.future-card small{margin-top:6px;color:#8290aa;font-size:10px;line-height:1.4}.ekagra-icon{color:#20e5ee;text-shadow:0 0 20px rgba(32,229,238,.68)}.dhyan-icon{color:#bc9dff}.exam-icon{color:#e7c68b}.nishtha-icon{color:#79b7ff}.mehfil-icon{color:#f8acd5}
.future-dots{display:flex;justify-content:center;gap:7px;margin-top:14px}.future-dot{width:7px;height:7px;border-radius:50%;border:0;background:#3f4760;cursor:pointer;padding:0}.future-dot.active{width:20px;border-radius:99px;background:linear-gradient(90deg,#8e7cff,#21d4fd)}
.future-tool-stage{margin-top:4px;overflow:hidden}.future-tool-stage[hidden],.focus-grid[hidden],.bottom-grid[hidden]{display:none!important}.future-stage-head{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:18px}.future-stage-head h2{margin:3px 0 3px;font:700 28px/1.1 'Space Grotesk',sans-serif}.future-stage-head p{margin:0;color:#8390aa;font-size:12px}.future-tool-view[hidden]{display:none}
.dhyan-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}.dhyan-orb{min-height:360px;display:grid;place-items:center;position:relative;border-radius:24px;background:radial-gradient(circle,rgba(107,89,255,.15),transparent 58%),linear-gradient(180deg,rgba(15,17,37,.86),rgba(8,14,25,.9));overflow:hidden}.dhyan-orb:before,.dhyan-orb:after{content:"";position:absolute;border:1px solid rgba(155,134,255,.25);border-radius:50%;animation:dhyanOrbit 8s linear infinite}.dhyan-orb:before{width:250px;height:250px}.dhyan-orb:after{width:320px;height:320px;opacity:.45;animation-direction:reverse}.dhyan-core{text-align:center;z-index:2;width:205px;height:205px;border-radius:50%;display:grid;place-content:center;gap:7px;border:1px solid rgba(179,162,255,.42);background:radial-gradient(circle at 50% 35%,rgba(124,92,255,.22),rgba(4,7,17,.94) 68%);box-shadow:0 0 60px rgba(117,90,255,.2),inset 0 0 45px rgba(38,212,245,.08)}.dhyan-core span{font-size:9px;letter-spacing:.2em;color:#8ea0c5}.dhyan-core strong{font:700 48px/1 'Space Grotesk';letter-spacing:-.04em}.dhyan-core small{color:#8490aa;font-size:10px}.dhyan-controls{display:grid;gap:10px}.future-choice-row{display:flex;gap:8px;margin-bottom:8px}.future-choice-row button{border:1px solid var(--f-line);border-radius:999px;padding:10px 13px;background:rgba(255,255,255,.035);color:#b4bdd0;cursor:pointer}.future-choice-row button.active{border-color:rgba(124,92,255,.6);color:white;background:rgba(124,92,255,.18)}.dhyan-coach{margin-top:8px;padding:15px;border:1px solid var(--f-line);border-radius:16px;color:#9ea9bf;font-size:12px;line-height:1.65;background:rgba(255,255,255,.025)}
.exam-builder,.nishtha-layout,.mehfil-layout{display:grid;gap:12px}.future-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.exam-builder label,.nishtha-layout label{display:grid;gap:7px;color:#8994aa;font-size:11px}.exam-builder input,.exam-builder textarea,.nishtha-layout input,.nishtha-layout select,.mehfil-layout textarea{width:100%;box-sizing:border-box;border:1px solid var(--f-line);border-radius:14px;background:#090d18;color:var(--f-text);padding:12px 13px;outline:none;font:inherit}.exam-builder textarea{resize:vertical}.exam-builder input:focus,.exam-builder textarea:focus,.nishtha-layout input:focus,.nishtha-layout select:focus,.mehfil-layout textarea:focus{border-color:rgba(124,92,255,.6);box-shadow:0 0 0 3px rgba(124,92,255,.10)}.exam-result{margin-top:2px;display:grid;gap:8px}.exam-summary{display:flex;justify-content:space-between;align-items:center;padding:14px;border:1px solid rgba(124,92,255,.2);border-radius:16px;background:linear-gradient(100deg,rgba(124,92,255,.11),rgba(33,212,253,.05))}.exam-summary strong{font-size:13px}.exam-summary span{color:#8390aa;font-size:10px}.exam-day{display:grid;grid-template-columns:65px 1fr;gap:10px;padding:11px 12px;border:1px solid var(--f-line);border-radius:14px;background:rgba(255,255,255,.025)}.exam-day>strong{color:#b0a5ff;font-size:11px}.exam-day>div{display:flex;flex-wrap:wrap;gap:6px}.exam-day span{padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--f-line);color:#adb7ca;font-size:10px}
.future-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.future-stat-grid>div{padding:14px;border:1px solid var(--f-line);border-radius:16px;background:rgba(255,255,255,.025)}.future-stat-grid span,.future-stat-grid small{display:block;color:#808ba4;font-size:10px}.future-stat-grid strong{display:block;font:700 26px/1.1 'Space Grotesk';margin:5px 0}.nishtha-history,.mehfil-history{display:grid;gap:8px;margin-top:3px}.nishtha-history>div{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--f-line);border-radius:13px;background:rgba(255,255,255,.025)}.nishtha-history b{font-size:10px;color:#b5bece}.nishtha-history span{font-size:10px;color:#8791a8;text-align:right}.empty-note{margin:0;color:#6f7b92;font-size:11px;padding:12px}.mehfil-prompt{padding:17px;border-radius:17px;border:1px solid rgba(124,92,255,.18);background:radial-gradient(circle at 80% 0,rgba(124,92,255,.15),transparent 42%),rgba(255,255,255,.025);font:600 18px/1.4 'Space Grotesk';color:#dedfff}.mehfil-layout textarea{min-height:190px;resize:vertical}.mehfil-actions{display:flex;gap:8px;flex-wrap:wrap}.mehfil-history article{padding:12px 14px;border:1px solid var(--f-line);border-radius:14px;background:rgba(255,255,255,.025)}.mehfil-history small{color:#68748b;font-size:9px}.mehfil-history p{margin:5px 0 0;color:#a8b1c3;font-size:11px;line-height:1.55;white-space:pre-wrap}
html[data-focus-theme="light"] .future-suite,html[data-focus-theme="light"] .dhyan-orb{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(246,248,252,.98))}html[data-focus-theme="light"] .future-card{background:linear-gradient(160deg,rgba(255,255,255,.98),rgba(241,244,250,.98))}html[data-focus-theme="light"] .future-icon{background:#fff}html[data-focus-theme="light"] .exam-builder input,html[data-focus-theme="light"] .exam-builder textarea,html[data-focus-theme="light"] .nishtha-layout input,html[data-focus-theme="light"] .nishtha-layout select,html[data-focus-theme="light"] .mehfil-layout textarea{background:#fff;color:#11182a}
@keyframes dhyanOrbit{from{transform:rotate(0deg) scale(1)}50%{transform:rotate(180deg) scale(1.04)}to{transform:rotate(360deg) scale(1)}}
@media(max-width:1050px){.future-track-inner{grid-template-columns:repeat(5,minmax(105px,1fr));gap:8px}.future-card{min-height:145px}.future-icon{width:60px;height:60px;font-size:34px}.future-card strong{font-size:13px}.dhyan-layout{grid-template-columns:1fr}}
@media(max-width:760px){.future-suite{padding:16px 11px}.future-suite-head{display:block}.future-suite-head h2{font-size:22px}.future-suite-hint{margin-top:8px}.future-carousel{grid-template-columns:36px 1fr 36px}.future-track{overflow:hidden}.future-track-inner{display:flex;gap:8px}.future-card{flex:0 0 calc(68% - 4px);min-height:150px}.future-card:not(.is-center){opacity:.45}.future-arrow{width:34px;height:34px;font-size:24px}.future-stage-head{display:block}.future-stage-head .secondary-btn{margin-top:10px}.future-form-grid,.future-stat-grid{grid-template-columns:1fr}.exam-day{grid-template-columns:1fr}.exam-summary{display:grid;gap:4px}.mehfil-actions{display:grid;grid-template-columns:1fr}.dhyan-orb{min-height:320px}}

/* Focus soundscapes */
.soundscape-panel{margin-top:16px;padding:20px 20px 18px}.soundscape-head{display:flex;justify-content:space-between;gap:18px;align-items:end}.soundscape-head h2{margin:4px 0 4px;font:700 24px/1.1 'Space Grotesk',sans-serif}.soundscape-head p{margin:0;color:#7f89a2;font-size:11px;line-height:1.55}.soundscape-now{min-width:115px;padding:10px 12px;border:1px solid var(--f-line);border-radius:14px;text-align:center;background:rgba(255,255,255,.025)}.soundscape-now span{display:block;color:#808ba3;font-size:9px;letter-spacing:.14em}.soundscape-now b{display:block;margin-top:3px;font:700 16px 'Space Grotesk';color:var(--f-text)}.soundscape-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}.soundscape-card{display:grid;grid-template-columns:38px 1fr 22px;align-items:center;gap:9px;text-align:left;padding:11px 12px;border:1px solid var(--f-line);border-radius:16px;background:rgba(255,255,255,.025);color:var(--f-text);cursor:pointer;transition:.2s}.soundscape-card:hover{transform:translateY(-2px);border-color:rgba(124,92,255,.45)}.soundscape-card.is-playing{border-color:rgba(33,212,253,.6);box-shadow:0 0 0 1px rgba(33,212,253,.12),0 14px 30px rgba(33,212,253,.07)}.soundscape-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(124,92,255,.17),rgba(33,212,253,.1));border:1px solid rgba(141,125,255,.2);font:700 20px 'Space Grotesk';color:#9f92ff}.soundscape-card strong{display:block;font-size:12px}.soundscape-card small{display:block;margin-top:3px;color:#7f89a2;font-size:9px;line-height:1.35}.soundscape-card>b{font-size:13px;color:#9b8cff}.soundscape-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.soundscape-volume,.soundscape-autoplay{display:flex;gap:7px;align-items:center;font-size:10px;color:#8590a8;margin-left:auto}.soundscape-volume input{width:100px;accent-color:#7d68ff}.soundscape-autoplay{margin-left:0}.soundscape-autoplay input{accent-color:#7d68ff}
html[data-focus-theme="light"] .soundscape-head p,html[data-focus-theme="light"] .soundscape-card small{color:#667085}html[data-focus-theme="light"] .soundscape-card{background:rgba(255,255,255,.8)}html[data-focus-theme="light"] .soundscape-now{background:#fff}html[data-focus-theme="dark"] .focus-hero h1{color:#f5f7ff}html[data-focus-theme="dark"] .focus-hero h1 span{color:transparent}
@media(max-width:760px){.soundscape-head{display:block}.soundscape-now{margin-top:10px;width:max-content}.soundscape-grid{grid-template-columns:1fr 1fr}.soundscape-volume{margin-left:0}}

/* FINAL THEME ISOLATION: prevent global site typography from turning Focus OS headings black */
body.focus-os-page,
body.focus-os-page p,
body.focus-os-page h1,
body.focus-os-page h2,
body.focus-os-page h3,
body.focus-os-page h4,
body.focus-os-page strong,
body.focus-os-page b,
body.focus-os-page label,
body.focus-os-page small,
body.focus-os-page span,
body.focus-os-page button,
body.focus-os-page a {
  color: inherit;
}

html[data-focus-theme="dark"] body.focus-os-page,
html[data-focus-theme="dark"] body.focus-os-page .focus-shell,
html[data-focus-theme="dark"] body.focus-os-page .focus-hero,
html[data-focus-theme="dark"] body.focus-os-page .future-suite,
html[data-focus-theme="dark"] body.focus-os-page .future-tool-stage,
html[data-focus-theme="dark"] body.focus-os-page .panel,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-panel {
  color: #f7f8ff;
}

html[data-focus-theme="dark"] body.focus-os-page .focus-hero h1,
html[data-focus-theme="dark"] body.focus-os-page .future-suite-head h2,
html[data-focus-theme="dark"] body.focus-os-page .future-stage-head h2,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-head h2,
html[data-focus-theme="dark"] body.focus-os-page .panel-head h2,
html[data-focus-theme="dark"] body.focus-os-page .timer-core,
html[data-focus-theme="dark"] body.focus-os-page .timer-core > div:first-child,
html[data-focus-theme="dark"] body.focus-os-page .timer-panel,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-panel,
html[data-focus-theme="dark"] body.focus-os-page .settings-panel,
html[data-focus-theme="dark"] body.focus-os-page .insight-panel,
html[data-focus-theme="dark"] body.focus-os-page .future-card strong,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-card strong,
html[data-focus-theme="dark"] body.focus-os-page .exam-summary strong,
html[data-focus-theme="dark"] body.focus-os-page .future-stat-grid strong,
html[data-focus-theme="dark"] body.focus-os-page .dhyan-core strong,
html[data-focus-theme="dark"] body.focus-os-page .mehfil-prompt {
  color: #f7f8ff !important;
}

html[data-focus-theme="dark"] body.focus-os-page .focus-hero h1 span {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(110deg,#9b8cff,#21d4fd) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

html[data-focus-theme="dark"] body.focus-os-page .focus-hero p,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-head p,
html[data-focus-theme="dark"] body.focus-os-page .future-suite-head p,
html[data-focus-theme="dark"] body.focus-os-page .future-stage-head p,
html[data-focus-theme="dark"] body.focus-os-page .future-suite-hint,
html[data-focus-theme="dark"] body.focus-os-page .task-box label,
html[data-focus-theme="dark"] body.focus-os-page .timer-top,
html[data-focus-theme="dark"] body.focus-os-page .timer-under span,
html[data-focus-theme="dark"] body.focus-os-page .timer-under small,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-card small,
html[data-focus-theme="dark"] body.focus-os-page .future-card small,
html[data-focus-theme="dark"] body.focus-os-page .metric-grid span,
html[data-focus-theme="dark"] body.focus-os-page .metric-grid small,
html[data-focus-theme="dark"] body.focus-os-page .switch-row small,
html[data-focus-theme="dark"] body.focus-os-page .tip-card p,
html[data-focus-theme="dark"] body.focus-os-page .dhyan-core small,
html[data-focus-theme="dark"] body.focus-os-page .dhyan-coach,
html[data-focus-theme="dark"] body.focus-os-page .exam-summary span,
html[data-focus-theme="dark"] body.focus-os-page .exam-day span,
html[data-focus-theme="dark"] body.focus-os-page .empty-note {
  color: #98a2bc !important;
}

html[data-focus-theme="dark"] body.focus-os-page input,
html[data-focus-theme="dark"] body.focus-os-page textarea,
html[data-focus-theme="dark"] body.focus-os-page select {
  color: #f7f8ff !important;
  background: #090d18 !important;
  -webkit-text-fill-color: #f7f8ff !important;
}

html[data-focus-theme="dark"] body.focus-os-page .soundscape-card,
html[data-focus-theme="dark"] body.focus-os-page .mode-card,
html[data-focus-theme="dark"] body.focus-os-page .ai-plan,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-card,
html[data-focus-theme="dark"] body.focus-os-page .metric-grid > div,
html[data-focus-theme="dark"] body.focus-os-page .tip-card,
html[data-focus-theme="dark"] body.focus-os-page .future-stat-grid > div {
  color: #f7f8ff !important;
}

html[data-focus-theme="light"] body.focus-os-page,
html[data-focus-theme="light"] body.focus-os-page .focus-shell,
html[data-focus-theme="light"] body.focus-os-page .focus-hero,
html[data-focus-theme="light"] body.focus-os-page .future-suite,
html[data-focus-theme="light"] body.focus-os-page .future-tool-stage,
html[data-focus-theme="light"] body.focus-os-page .panel,
html[data-focus-theme="light"] body.focus-os-page .soundscape-panel {
  color: #172033;
}

html[data-focus-theme="light"] body.focus-os-page .focus-hero h1,
html[data-focus-theme="light"] body.focus-os-page .future-suite-head h2,
html[data-focus-theme="light"] body.focus-os-page .future-stage-head h2,
html[data-focus-theme="light"] body.focus-os-page .soundscape-head h2,
html[data-focus-theme="light"] body.focus-os-page .panel-head h2,
html[data-focus-theme="light"] body.focus-os-page .timer-core,
html[data-focus-theme="light"] body.focus-os-page .timer-core > div:first-child,
html[data-focus-theme="light"] body.focus-os-page .future-card strong,
html[data-focus-theme="light"] body.focus-os-page .soundscape-card strong {
  color: #172033 !important;
}

html[data-focus-theme="light"] body.focus-os-page .focus-hero h1 span {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(110deg,#6546d8,#079bc2) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* =========================================================
   FOCUS OS ACTIVITY + PROGRESS SYSTEM
   ========================================================= */
.progress-os{margin-top:16px;padding:22px;background:linear-gradient(145deg,rgba(16,22,39,.96),rgba(10,14,26,.98));overflow:hidden}
.progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.progress-head h2{margin:5px 0 5px;font:800 25px/1.08 'Space Grotesk',sans-serif}.progress-head p{margin:0;max-width:760px;color:#8e99b4;font-size:11px;line-height:1.6}.progress-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.danger-btn{border:1px solid rgba(255,94,125,.35);background:rgba(255,94,125,.07);color:#ff9eb5;border-radius:12px;padding:10px 13px;cursor:pointer;font:700 11px 'Inter',sans-serif}.danger-btn:hover{border-color:rgba(255,94,125,.6);background:rgba(255,94,125,.12)}
.progress-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-top:17px}.progress-stat{padding:15px;border:1px solid var(--f-line);border-radius:15px;background:rgba(255,255,255,.025);min-height:72px}.progress-stat span,.progress-stat small{display:block;color:#7f8ba6;font-size:9px;letter-spacing:.04em}.progress-stat strong{display:block;margin:6px 0 3px;color:#f4f7ff;font:800 21px 'Space Grotesk',sans-serif}.progress-main-grid{display:grid;grid-template-columns:1.25fr .95fr;gap:12px;margin-top:12px} .progress-main-grid-single{grid-template-columns:1fr}.progress-card{border:1px solid var(--f-line);border-radius:18px;background:rgba(255,255,255,.02);padding:17px}.progress-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:13px}.progress-card h3{margin:5px 0 0;font:750 17px/1.15 'Space Grotesk',sans-serif}.micro-label{font-size:9px;color:#7985a0;letter-spacing:.08em;text-transform:uppercase}.date-nav{display:flex;gap:5px}.date-nav button,.activity-calendar button{font:700 10px 'Inter',sans-serif}.date-nav button{border:1px solid var(--f-line);background:rgba(255,255,255,.03);color:#cbd3e7;padding:7px 9px;border-radius:9px;cursor:pointer}.date-nav button:hover{border-color:rgba(124,92,255,.55)}
.activity-timeline{max-height:390px;overflow:auto;padding-right:4px}.activity-item{position:relative;display:grid;grid-template-columns:12px 1fr;gap:10px;padding:10px 6px 10px 0;border-bottom:1px dashed rgba(255,255,255,.08)}.activity-item:last-child{border-bottom:0}.activity-dot{width:8px;height:8px;margin-top:6px;border-radius:50%;background:linear-gradient(135deg,#9b8cff,#21d4fd);box-shadow:0 0 14px rgba(33,212,253,.28)}.activity-item time{display:block;color:#7f8ca9;font-size:9px;letter-spacing:.03em}.activity-item strong{display:block;margin-top:2px;color:#f1f4fc;font-size:11px}.activity-item span{display:block;margin-top:2px;color:#9aa5bd;font-size:9px;line-height:1.45}.activity-empty{padding:25px 16px;text-align:center;border:1px dashed rgba(255,255,255,.1);border-radius:14px;color:#8994ad}.activity-empty strong{display:block;color:#e4e8f4;font-size:11px}.activity-empty span{display:block;margin-top:5px;font-size:9px;line-height:1.55}
.week-bars{display:flex;align-items:flex-end;gap:7px;height:165px;padding-top:8px}.week-bar-wrap{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0;border:0;background:transparent;cursor:pointer;color:inherit}.week-bar-wrap .week-bar{width:min(30px,75%);min-height:8px;border-radius:9px 9px 4px 4px;background:linear-gradient(180deg,#8d7cff,#21d4fd);box-shadow:0 8px 24px rgba(70,116,255,.18)}.week-bar-wrap b{font-size:9px;color:#a6b0c5}.week-bar-wrap small{font-size:8px;color:#74809a}.progress-insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:7px;margin-top:14px}.progress-insights>div,.progress-insights>span{border:1px solid var(--f-line);border-radius:12px;padding:10px;background:rgba(255,255,255,.02)}.progress-insights strong{display:block;color:#f6f8ff;font:750 14px 'Space Grotesk'}.progress-insights span{display:block;color:#8190aa;font-size:8px;line-height:1.4;margin-top:3px}
.activity-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.cal-head{text-align:center;color:#6f7c98;font-size:8px;padding:2px 0}.cal-empty{min-height:28px}.cal-day{min-height:30px;border:1px solid rgba(255,255,255,.05);background:rgba(255,255,255,.025);color:#aeb8cb;border-radius:8px;cursor:pointer}.cal-day:hover{border-color:rgba(124,92,255,.5);transform:translateY(-1px)}.cal-day.level-1{background:rgba(75,128,255,.15);border-color:rgba(75,128,255,.2)}.cal-day.level-2{background:rgba(92,108,255,.24);border-color:rgba(92,108,255,.28)}.cal-day.level-3{background:rgba(115,97,255,.34);border-color:rgba(115,97,255,.42)}.cal-day.level-4{background:linear-gradient(135deg,rgba(125,100,255,.5),rgba(33,212,253,.3));border-color:rgba(135,127,255,.55);box-shadow:0 0 16px rgba(89,103,255,.14)}.cal-day.selected{outline:2px solid rgba(33,212,253,.55);outline-offset:1px;color:#fff}
.history-list{display:grid;gap:6px;max-height:305px;overflow:auto}.history-list article{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;padding:8px 9px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:rgba(255,255,255,.018)}.history-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:rgba(124,92,255,.12);color:#a99dff;font-size:12px}.history-list strong{display:block;font-size:10px;color:#e8ebf6}.history-list small{display:block;margin-top:3px;color:#78859e;font-size:8px;line-height:1.4}.history-list article>b{font-size:9px;color:#a9b7d3;white-space:nowrap}.history-list select{color:#dbe2f2;background:#0a0f1c;border:1px solid var(--f-line)}
.target-progress-board{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.target-progress-card{display:grid;grid-template-columns:1fr 34px;gap:7px;align-items:center;padding:11px;border:1px solid rgba(255,255,255,.06);border-radius:13px;background:rgba(255,255,255,.02)}.target-progress-card>div:first-child{grid-column:1/-1}.target-progress-card strong{display:block;color:#eff2fb;font-size:10px;line-height:1.4}.target-progress-card small{display:block;margin-top:3px;color:#7f8ca6;font-size:8px}.target-progress-card-track{height:5px;background:rgba(255,255,255,.07);border-radius:999px;overflow:hidden}.target-progress-card-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8d7cff,#21d4fd)}.target-progress-card>button{justify-self:end;width:28px;height:28px;border:1px solid var(--f-line);border-radius:8px;background:rgba(255,255,255,.03);color:#a9b7d3;cursor:pointer}.data-safety{margin-top:11px;border-top:1px solid rgba(255,255,255,.07);padding-top:11px}.data-safety summary{cursor:pointer;color:#9eabc5;font-size:10px}.data-safety-copy{padding-top:8px;color:#77849f;font-size:9px;line-height:1.6}.data-safety-copy p{margin:4px 0}
html[data-focus-theme="light"] .progress-os{background:linear-gradient(145deg,#f8faff,#eef3fb)}html[data-focus-theme="light"] .progress-stat strong,html[data-focus-theme="light"] .activity-item strong,html[data-focus-theme="light"] .progress-card h3,html[data-focus-theme="light"] .progress-head h2{color:#172033!important}html[data-focus-theme="light"] .progress-head p,html[data-focus-theme="light"] .activity-item span,html[data-focus-theme="light"] .activity-item time,html[data-focus-theme="light"] .progress-stat span,html[data-focus-theme="light"] .progress-stat small,html[data-focus-theme="light"] .micro-label,html[data-focus-theme="light"] .activity-empty,html[data-focus-theme="light"] .data-safety-copy,html[data-focus-theme="light"] .data-safety summary{color:#63708a!important}html[data-focus-theme="light"] .progress-stat,html[data-focus-theme="light"] .progress-card,html[data-focus-theme="light"] .target-progress-card,html[data-focus-theme="light"] .history-list article{background:rgba(255,255,255,.74);border-color:#dbe2ee}html[data-focus-theme="light"] .date-nav button,html[data-focus-theme="light"] .cal-day,.history-list select{color:#243049!important}html[data-focus-theme="light"] .cal-day{background:#f7f9fc}.progress-os select{border:1px solid var(--f-line);border-radius:9px;padding:6px 8px;font-size:9px;color:#dce3f3;background:#0b1020}.progress-os button:focus-visible,.progress-os select:focus-visible{outline:2px solid rgba(33,212,253,.55);outline-offset:2px}
@media(max-width:1100px){.progress-stat-grid{grid-template-columns:repeat(3,1fr)}.progress-main-grid{grid-template-columns:1fr}.target-progress-board{grid-template-columns:1fr}}
@media(max-width:760px){.progress-head{display:block}.progress-actions{justify-content:flex-start;margin-top:12px}.progress-stat-grid{grid-template-columns:repeat(2,1fr)}.progress-card-head{display:block}.date-nav{margin-top:10px}.progress-insights{grid-template-columns:1fr}.activity-timeline{max-height:none}.target-progress-board{grid-template-columns:1fr}}

/* =========================================================
   DAILY TASKS & TARGETS
   ========================================================= */
.daily-target-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 10px;padding:10px 12px;border:1px solid var(--f-line);border-radius:13px;background:rgba(255,255,255,.022);position:relative}
.daily-target-summary>span{font-size:10px;color:#8490aa}.daily-target-summary strong{color:#f0f3fb;font:800 17px 'Space Grotesk';margin-right:4px}.daily-target-summary-note{margin-left:auto;color:#68748d!important}
.daily-target-list{display:grid;gap:9px;position:relative}.daily-target-empty{display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed rgba(255,255,255,.1);border-radius:16px;color:#8793aa}.daily-target-empty>span{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;border:1px solid rgba(124,92,255,.35);color:#a99cff;background:rgba(124,92,255,.08);font-size:16px}.daily-target-empty strong{display:block;font-size:12px;color:#e7ebf5}.daily-target-empty small{display:block;margin-top:4px;font-size:9px;color:#77839d}
.daily-target-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.075);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.028),rgba(255,255,255,.018));transition:.2s}.daily-target-card:hover{border-color:rgba(124,92,255,.35);transform:translateY(-1px)}.daily-target-card.active{border-color:rgba(33,212,253,.42);box-shadow:0 0 0 1px rgba(33,212,253,.09),0 10px 28px rgba(33,212,253,.05)}.daily-target-card.done{opacity:.72}.daily-target-main{display:flex;gap:10px;align-items:flex-start;min-width:0}.target-check{flex:0 0 auto;width:23px;height:23px;border-radius:50%;border:1px solid #65708a;background:rgba(255,255,255,.025);color:#071b13;cursor:pointer;display:grid;place-items:center;font-weight:900}.daily-target-card.done .target-check{background:var(--f-good);border-color:var(--f-good)}.daily-target-copy{min-width:0;flex:1}.daily-target-title-row{display:flex;gap:8px;align-items:center;min-width:0}.daily-target-copy strong{display:block;color:#edf1fb;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-target-copy small{display:block;color:#7f8ba4;margin-top:4px;font-size:9px}.target-active-badge{font-size:7px;letter-spacing:.12em;padding:4px 5px;border-radius:999px;border:1px solid rgba(33,212,253,.3);color:#8ce9ff;background:rgba(33,212,253,.08);white-space:nowrap}.daily-target-track{height:5px;margin-top:8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.075)}.daily-target-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8d7cff,#21d4fd);transition:width .25s ease}.daily-target-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.daily-target-actions button,.target-board-actions button,.carry-forward-list button{border:1px solid var(--f-line);background:rgba(255,255,255,.03);color:#aeb8cc;border-radius:9px;padding:7px 8px;font:700 8px 'Inter',sans-serif;cursor:pointer}.daily-target-actions button:hover,.target-board-actions button:hover,.carry-forward-list button:hover{border-color:rgba(124,92,255,.5);color:#e8ebf5}.daily-target-actions button[data-target-delete]{width:29px;font-size:14px;padding:5px;color:#718099}.daily-target-actions button[data-target-edit]{color:#bbaeff}.carry-forward-strip{padding:11px 12px;border:1px dashed rgba(255,180,84,.22);border-radius:14px;background:rgba(255,180,84,.035)}.carry-forward-strip>div:first-child strong{display:block;color:#ddd2bc;font-size:10px}.carry-forward-strip>div:first-child small{display:block;color:#837b6f;font-size:8px;margin-top:3px;line-height:1.5}.carry-forward-list{display:grid;gap:6px;margin-top:8px}.carry-forward-list button{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;text-align:left}.carry-forward-list span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#bbc2d0}.carry-forward-list small{font-size:8px;color:#778199}.carry-forward-list b{font-size:8px;color:#e0bd83}
.target-progress-board{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.target-progress-card{padding:12px;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.018)}.target-progress-card strong{display:block;color:#eff2fb;font-size:10px;line-height:1.4}.target-progress-card small{display:block;margin-top:3px;color:#7f8ca6;font-size:8px}.target-progress-card .daily-target-track{margin-top:9px}.target-board-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:9px}.target-board-actions button{font-size:8px;padding:6px 8px}
.target-field{display:block;margin-top:13px;color:#b7c0d0;font-size:10px}.target-field input,.target-field select{width:100%;box-sizing:border-box;margin-top:7px;border:1px solid var(--f-line);background:#090d18;color:var(--f-text);border-radius:13px;padding:11px 12px;outline:none}.target-field input:focus,.target-field select:focus{border-color:rgba(124,92,255,.65);box-shadow:0 0 0 3px rgba(124,92,255,.12)}.target-field small{display:block;margin-top:5px;color:#6f7b92;font-size:8px;line-height:1.5}.target-field select{appearance:auto}
#currentTargetMeta{display:block;color:#6f7b92;font-size:9px;margin-top:3px}.task-meta>span{min-width:0}.task-meta b{font-size:10px;color:#b7c0d0;font-weight:700}
html[data-focus-theme="light"] .daily-target-summary,html[data-focus-theme="light"] .daily-target-card,html[data-focus-theme="light"] .daily-target-empty,html[data-focus-theme="light"] .target-progress-card{background:rgba(255,255,255,.72);border-color:#dbe2ee}html[data-focus-theme="light"] .daily-target-copy strong,html[data-focus-theme="light"] .daily-target-summary strong,html[data-focus-theme="light"] .target-progress-card strong{color:#172033!important}html[data-focus-theme="light"] .daily-target-copy small,html[data-focus-theme="light"] .daily-target-summary>span,html[data-focus-theme="light"] .daily-target-summary-note,html[data-focus-theme="light"] .daily-target-empty small,html[data-focus-theme="light"] .target-progress-card small{color:#63708a!important}html[data-focus-theme="light"] .target-field input,html[data-focus-theme="light"] .target-field select{background:#fff;color:#172033}.daily-target-panel{min-height:100%}
@media(max-width:760px){.daily-target-card{grid-template-columns:1fr}.daily-target-actions{justify-content:flex-start}.daily-target-summary-note{width:100%;margin-left:0}.target-progress-board{grid-template-columns:1fr}.carry-forward-list button{grid-template-columns:1fr auto}.carry-forward-list b{grid-column:1/-1}}


/* =========================================================
   MOBILE HARDENING
   Purpose: keep Focus OS fully usable on narrow touch screens
   without changing the desktop visual system.
   ========================================================= */
body.focus-os-page{
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body.focus-os-page *,
body.focus-os-page *::before,
body.focus-os-page *::after{box-sizing:border-box}

@media (max-width: 980px){
  body.focus-os-page .focus-shell{width:100%;max-width:100%;padding-left:16px;padding-right:16px}
  body.focus-os-page .focus-hero{gap:16px}
  body.focus-os-page .focus-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
  body.focus-os-page .insight-panel{grid-column:1/-1}
  body.focus-os-page .timer-panel{min-width:0}
  body.focus-os-page .orb-wrap{width:min(100%,420px)}
  body.focus-os-page .future-suite,
  body.focus-os-page .soundscape-panel,
  body.focus-os-page .progress-os{min-width:0}
}

@media (max-width: 760px){
  body.focus-os-page{
    width:100%;
    min-width:0;
  }

  /* Header */
  body.focus-os-page .focus-topbar{
    position:sticky!important;
    top:0;
    width:100%;
    min-height:58px;
    padding:9px 12px!important;
    gap:8px;
  }
  body.focus-os-page .focus-topbar .brand{
    min-width:0!important;
    max-width:58vw;
    gap:8px!important;
  }
  body.focus-os-page .focus-topbar .brand-mark{width:34px;height:34px;border-radius:10px;flex:0 0 auto}
  body.focus-os-page .focus-topbar .brand-text{
    min-width:0;
    max-width:calc(58vw - 42px);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:14px!important;
  }
  body.focus-os-page .focus-nav{display:none!important}
  body.focus-os-page .focus-top-actions{min-width:0!important;gap:7px;flex:0 0 auto}
  body.focus-os-page .icon-btn{width:40px;height:40px;min-width:40px;padding:0}
  body.focus-os-page .focus-top-actions .ghost-btn{display:none}

  /* Main shell / hero */
  body.focus-os-page .focus-shell{
    width:100%;
    max-width:100%;
    margin:0;
    padding:24px 12px 22px;
  }
  body.focus-os-page .focus-hero{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:18px;
  }
  body.focus-os-page .focus-hero>div:first-child{min-width:0}
  body.focus-os-page .focus-hero h1{
    font-size:clamp(34px,11vw,52px);
    line-height:.98;
    margin:7px 0 10px;
    overflow-wrap:anywhere;
  }
  body.focus-os-page .focus-hero p{
    max-width:none;
    font-size:13px;
    line-height:1.55;
    margin:0;
  }
  body.focus-os-page .live-pill{
    width:100%;
    min-width:0;
    margin:0;
    justify-content:flex-start;
    padding:11px 13px;
    border-radius:14px;
  }

  /* Future study-mode carousel */
  body.focus-os-page .future-suite{margin:6px 0 16px;padding:15px 10px 13px;border-radius:18px}
  body.focus-os-page .future-suite-head{display:block;margin-bottom:13px}
  body.focus-os-page .future-suite-head h2{font-size:20px;line-height:1.12}
  body.focus-os-page .future-suite-head p{font-size:10px;line-height:1.5;margin-top:5px}
  body.focus-os-page .future-suite-hint{font-size:8px;margin-top:7px}
  body.focus-os-page .future-carousel{grid-template-columns:30px minmax(0,1fr) 30px;gap:6px}
  body.focus-os-page .future-arrow{width:30px;height:36px;font-size:20px}
  body.focus-os-page .future-track{min-width:0}
  body.focus-os-page .future-track-inner{gap:7px}
  body.focus-os-page .future-card{flex-basis:calc(82% - 4px);min-height:138px;padding:12px}
  body.focus-os-page .future-icon{width:52px;height:52px;font-size:28px;border-radius:15px}
  body.focus-os-page .future-card strong{font-size:12px}
  body.focus-os-page .future-card small{font-size:8px;line-height:1.4}

  /* Tool stages */
  body.focus-os-page .future-stage-head{display:block;margin-bottom:13px}
  body.focus-os-page .future-stage-head h2{font-size:22px}
  body.focus-os-page .future-stage-head p{font-size:10px;line-height:1.5}
  body.focus-os-page .future-stage-head .secondary-btn{width:100%;margin-top:9px}
  body.focus-os-page .future-form-grid,
  body.focus-os-page .future-stat-grid,
  body.focus-os-page .dhyan-layout{grid-template-columns:1fr}
  body.focus-os-page .future-stat-grid strong{font-size:22px}
  body.focus-os-page .dhyan-orb{min-height:270px;border-radius:18px}
  body.focus-os-page .dhyan-core{width:175px;height:175px}
  body.focus-os-page .dhyan-core strong{font-size:40px}
  body.focus-os-page .dhyan-orb:before{width:210px;height:210px}
  body.focus-os-page .dhyan-orb:after{width:260px;height:260px}
  body.focus-os-page .future-choice-row{flex-wrap:wrap}
  body.focus-os-page .future-choice-row button{flex:1 1 90px;min-height:42px}
  body.focus-os-page .exam-summary{display:grid;gap:6px}
  body.focus-os-page .exam-day{grid-template-columns:1fr;gap:7px}
  body.focus-os-page .exam-day>div{min-width:0}
  body.focus-os-page .nishtha-history>div{align-items:flex-start}
  body.focus-os-page .mehfil-actions{display:grid;grid-template-columns:1fr}
  body.focus-os-page .mehfil-prompt{font-size:16px}

  /* Soundscapes */
  body.focus-os-page .soundscape-panel{margin-top:12px;padding:15px 13px}
  body.focus-os-page .soundscape-head{display:block}
  body.focus-os-page .soundscape-head h2{font-size:20px}
  body.focus-os-page .soundscape-head p{font-size:10px;line-height:1.5}
  body.focus-os-page .soundscape-now{width:100%;min-width:0;margin-top:9px}
  body.focus-os-page .soundscape-grid{grid-template-columns:1fr;gap:8px;margin-top:12px}
  body.focus-os-page .soundscape-card{grid-template-columns:38px minmax(0,1fr) 22px;min-width:0}
  body.focus-os-page .soundscape-controls{align-items:stretch}
  body.focus-os-page .soundscape-volume{width:100%;margin-left:0}
  body.focus-os-page .soundscape-volume input{flex:1;min-width:0}

  /* Core Pomodoro */
  body.focus-os-page .focus-grid,
  body.focus-os-page .bottom-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px;
  }
  body.focus-os-page .panel{
    min-width:0;
    width:100%;
    padding:15px;
    border-radius:18px;
  }
  body.focus-os-page .panel-head{gap:10px;align-items:flex-start}
  body.focus-os-page .panel-head>div{min-width:0}
  body.focus-os-page .panel-head h2{font-size:18px;line-height:1.1;overflow-wrap:anywhere}
  body.focus-os-page .panel-head .small{flex:0 0 auto;min-height:40px}

  body.focus-os-page .mode-grid{grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
  body.focus-os-page .mode-card{min-width:0;padding:12px;border-radius:14px}
  body.focus-os-page .mode-card strong{font-size:12px;overflow-wrap:anywhere}
  body.focus-os-page .mode-card small{font-size:9px}
  body.focus-os-page .mode-card span{margin-bottom:6px}

  body.focus-os-page .task-box{padding:12px;border-radius:14px}
  body.focus-os-page .task-box label{font-size:11px}
  body.focus-os-page .task-box input,
  body.focus-os-page .modal-card textarea,
  body.focus-os-page .exam-builder input,
  body.focus-os-page .exam-builder textarea,
  body.focus-os-page .nishtha-layout input,
  body.focus-os-page .nishtha-layout select,
  body.focus-os-page .mehfil-layout textarea{
    font-size:16px!important;
  }
  body.focus-os-page .task-meta{align-items:flex-start}
  body.focus-os-page .task-meta>span{min-width:0;overflow-wrap:anywhere}
  body.focus-os-page .task-meta .text-btn{flex:0 0 auto;padding:3px 0}

  body.focus-os-page .mini-actions{grid-template-columns:1fr 1fr;gap:8px}
  body.focus-os-page .mini-actions .primary-btn{grid-column:1/-1}
  body.focus-os-page .primary-btn,
  body.focus-os-page .secondary-btn,
  body.focus-os-page .quick-row button,
  body.focus-os-page .text-btn{min-height:44px}
  body.focus-os-page .quick-row{display:grid;grid-template-columns:1fr;gap:7px}
  body.focus-os-page .quick-row button{text-align:center}

  body.focus-os-page .timer-panel{
    min-height:0!important;
    padding:14px 12px 15px;
  }
  body.focus-os-page .timer-top{font-size:9px;letter-spacing:.1em;gap:10px}
  body.focus-os-page .timer-top span:last-child{text-align:right}
  body.focus-os-page .orb-wrap{
    width:min(100%,270px);
    margin:16px auto 12px;
  }
  body.focus-os-page .ring-track,
  body.focus-os-page .ring-progress{stroke-width:8}
  body.focus-os-page .timer-core>div:first-child{
    font-size:clamp(48px,15vw,70px);
  }
  body.focus-os-page .timer-core small{font-size:8px;letter-spacing:.13em}
  body.focus-os-page .focus-score-badge{margin-top:11px;padding:6px 9px}
  body.focus-os-page .focus-score-badge span{font-size:14px!important}
  body.focus-os-page .focus-score-badge small{font-size:7px!important}

  body.focus-os-page .timer-under{
    grid-template-columns:1fr 1fr!important;
    width:100%;
    gap:8px;
  }
  body.focus-os-page .timer-under>div{min-width:0}
  body.focus-os-page .timer-under>div:first-child{grid-column:1;grid-row:2}
  body.focus-os-page .timer-under>div:last-child{grid-column:2;grid-row:2}
  body.focus-os-page .timer-under .breath{grid-column:1/-1;grid-row:1}
  body.focus-os-page .breath{padding:9px;min-width:0}
  body.focus-os-page .breath b{font-size:11px!important}
  body.focus-os-page .timer-under b{font-size:16px}

  /* Insight cockpit */
  body.focus-os-page .ai-plan{grid-template-columns:auto minmax(0,1fr) auto;gap:9px;padding:11px;margin:14px 0;border-radius:14px}
  body.focus-os-page .ai-plan>span{font-size:18px}
  body.focus-os-page .ai-plan strong{font-size:12px}
  body.focus-os-page .ai-plan small{font-size:9px;line-height:1.35}
  body.focus-os-page .metric-grid{grid-template-columns:1fr 1fr;gap:8px}
  body.focus-os-page .metric-grid>div{padding:11px;border-radius:13px}
  body.focus-os-page .metric-grid strong{font-size:20px}
  body.focus-os-page .timeline-bars{height:58px}
  body.focus-os-page .tip-card{padding:10px}

  /* Missions */
  body.focus-os-page .mission-list{margin-top:10px}
  body.focus-os-page .mission{
    grid-template-columns:22px minmax(0,1fr) auto;
    gap:8px;
    padding:10px;
  }
  body.focus-os-page .mission strong,
  body.focus-os-page .mission small{overflow-wrap:anywhere}
  body.focus-os-page .mission button{min-width:28px;min-height:36px}

  /* Settings */
  body.focus-os-page .switch-row{gap:10px;padding:12px 0}
  body.focus-os-page .switch-row span{min-width:0}
  body.focus-os-page .shortcut-row{
    grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);
    gap:6px;
    font-size:9px;
  }
  body.focus-os-page .shortcut-row span:nth-child(5),
  body.focus-os-page .shortcut-row span:nth-child(6){display:none}

  /* Progress */
  body.focus-os-page .progress-os{margin-top:12px;padding:14px}
  body.focus-os-page .progress-head{display:block}
  body.focus-os-page .progress-head h2{font-size:21px;line-height:1.12}
  body.focus-os-page .progress-head p{font-size:10px;line-height:1.5}
  body.focus-os-page .progress-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    justify-content:stretch;
    margin-top:10px;
  }
  body.focus-os-page .progress-actions button{width:100%;min-height:42px}
  body.focus-os-page .progress-actions .danger-btn{grid-column:1/-1}
  body.focus-os-page .progress-stat-grid{grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}
  body.focus-os-page .progress-stat{padding:11px;min-height:66px}
  body.focus-os-page .progress-stat strong{font-size:18px}
  body.focus-os-page .progress-main-grid{grid-template-columns:1fr;gap:9px;margin-top:9px}
  body.focus-os-page .progress-card{padding:13px;border-radius:15px}
  body.focus-os-page .progress-card-head{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:10px}
  body.focus-os-page .progress-card-head>div{min-width:0}
  body.focus-os-page .date-nav{margin-top:0;display:flex;max-width:100%;flex-wrap:wrap}
  body.focus-os-page .date-nav button{min-height:38px}
  body.focus-os-page .week-bars{height:135px;gap:4px}
  body.focus-os-page .activity-calendar{gap:4px}
  body.focus-os-page .cal-day{min-height:34px}
  body.focus-os-page .history-list{max-height:none}
  body.focus-os-page .history-list article{grid-template-columns:28px minmax(0,1fr);gap:8px}
  body.focus-os-page .history-list article>b{grid-column:2;justify-self:start}
  body.focus-os-page .mission-progress-board{grid-template-columns:1fr}
  body.focus-os-page .mission-progress{min-width:0}
  body.focus-os-page .data-safety-copy{font-size:9px;overflow-wrap:anywhere}

  /* Modals */
  body.focus-os-page .modal,
  body.focus-os-page .quiz-modal,
  body.focus-os-page .gl-modal,
  body.focus-os-page .mt-modal,
  body.focus-os-page .mv-modal{
    padding:8px!important;
    align-items:flex-start!important;
  }
  body.focus-os-page .modal-card,
  body.focus-os-page .modal-content,
  body.focus-os-page .modal-dialog,
  body.focus-os-page .mv-modal-card,
  body.focus-os-page .gl-modal-card,
  body.focus-os-page .mt-modal-card{
    width:100%!important;
    max-width:none!important;
    max-height:calc(100dvh - 16px)!important;
    margin:0!important;
    overflow:auto!important;
    border-radius:16px!important;
  }
  body.focus-os-page .modal-actions{display:grid;grid-template-columns:1fr;gap:8px}
  body.focus-os-page .modal-actions>*{width:100%;min-height:44px}

  /* Prevent long generated text from expanding the viewport */
  body.focus-os-page pre,
  body.focus-os-page code,
  body.focus-os-page .plan-result,
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .activity-timeline,
  body.focus-os-page .history-list{max-width:100%;overflow-wrap:anywhere}
}

@media (max-width: 440px){
  body.focus-os-page .focus-shell{padding-left:9px;padding-right:9px}
  body.focus-os-page .focus-topbar{padding-left:9px!important;padding-right:9px!important}
  body.focus-os-page .focus-topbar .brand{max-width:62vw}
  body.focus-os-page .focus-topbar .brand-text{max-width:calc(62vw - 42px);font-size:13px!important}
  body.focus-os-page .focus-topbar .brand-mark{width:32px;height:32px}

  body.focus-os-page .future-suite{padding-left:8px;padding-right:8px}
  body.focus-os-page .future-carousel{grid-template-columns:28px minmax(0,1fr) 28px;gap:5px}
  body.focus-os-page .future-arrow{width:28px;height:34px}
  body.focus-os-page .future-card{flex-basis:88%;min-height:134px}

  body.focus-os-page .panel{padding:13px;border-radius:16px}
  body.focus-os-page .mode-grid{grid-template-columns:1fr}
  body.focus-os-page .mini-actions{grid-template-columns:1fr}
  body.focus-os-page .mini-actions .primary-btn{grid-column:auto}
  body.focus-os-page .quick-row{grid-template-columns:1fr}
  body.focus-os-page .timer-panel{padding:13px 10px 14px}
  body.focus-os-page .orb-wrap{width:min(100%,235px);margin-top:14px}
  body.focus-os-page .timer-core>div:first-child{font-size:48px}
  body.focus-os-page .timer-under{gap:6px}
  body.focus-os-page .metric-grid{grid-template-columns:1fr 1fr}
  body.focus-os-page .mission{grid-template-columns:22px minmax(0,1fr) 28px}

  body.focus-os-page .progress-actions{grid-template-columns:1fr}
  body.focus-os-page .progress-actions .danger-btn{grid-column:auto}
  body.focus-os-page .progress-stat-grid{grid-template-columns:1fr 1fr}
  body.focus-os-page .progress-card-head{gap:7px}
  body.focus-os-page .date-nav{width:100%}
  body.focus-os-page .date-nav button{flex:1 1 auto}
}

@media (max-width: 360px){
  body.focus-os-page .focus-hero h1{font-size:32px}
  body.focus-os-page .live-pill b{font-size:16px}
  body.focus-os-page .timer-top{font-size:8px}
  body.focus-os-page .timer-core>div:first-child{font-size:44px}
  body.focus-os-page .progress-stat-grid{grid-template-columns:1fr}
}


/* =========================================================
   MOBILE LAYOUT V2
   Strictly contain every Focus OS child inside the viewport.
   This is intentionally appended after the legacy responsive
   rules so the mobile layout wins over sitewide desktop rules.
   ========================================================= */
html, body.focus-os-page {
  max-width: 100%;
  overflow-x: clip;
}

body.focus-os-page .focus-shell,
body.focus-os-page .focus-hero,
body.focus-os-page .future-suite,
body.focus-os-page .soundscape-panel,
body.focus-os-page .future-tool-stage,
body.focus-os-page .focus-grid,
body.focus-os-page .bottom-grid,
body.focus-os-page .progress-os {
  min-width: 0;
  max-width: 100%;
}

body.focus-os-page img,
body.focus-os-page svg,
body.focus-os-page video,
body.focus-os-page canvas,
body.focus-os-page input,
body.focus-os-page textarea,
body.focus-os-page select,
body.focus-os-page button {
  max-width: 100%;
}

@media (max-width: 760px) {
  body.focus-os-page .focus-shell {
    padding: 20px 12px 24px !important;
    width: 100% !important;
  }

  body.focus-os-page .focus-hero,
  body.focus-os-page .focus-grid,
  body.focus-os-page .bottom-grid,
  body.focus-os-page .progress-main-grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.focus-os-page .future-suite,
  body.focus-os-page .soundscape-panel,
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .control-panel,
  body.focus-os-page .timer-panel,
  body.focus-os-page .insight-panel,
  body.focus-os-page .mission-panel,
  body.focus-os-page .settings-panel,
  body.focus-os-page .progress-os {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Never let a tool view retain a desktop two-column minimum. */
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .future-tool-view,
  body.focus-os-page .future-tool-view > *,
  body.focus-os-page .dhyan-layout,
  body.focus-os-page .nishtha-layout,
  body.focus-os-page .exam-builder,
  body.focus-os-page .mehfil-layout {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.focus-os-page .dhyan-layout,
  body.focus-os-page .future-form-grid,
  body.focus-os-page .future-stat-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.focus-os-page .future-stage-head {
    width: 100%;
    min-width: 0;
  }

  body.focus-os-page .future-stage-head > div,
  body.focus-os-page .future-suite-head > div,
  body.focus-os-page .soundscape-head > div,
  body.focus-os-page .panel-head > div,
  body.focus-os-page .progress-head > div,
  body.focus-os-page .progress-card-head > div {
    min-width: 0 !important;
    max-width: 100%;
  }

  body.focus-os-page .future-stage-head h2,
  body.focus-os-page .future-suite-head h2,
  body.focus-os-page .soundscape-head h2,
  body.focus-os-page .panel-head h2,
  body.focus-os-page .progress-head h2,
  body.focus-os-page .progress-card h3,
  body.focus-os-page .future-card strong,
  body.focus-os-page .future-card small,
  body.focus-os-page .soundscape-card strong,
  body.focus-os-page .soundscape-card small,
  body.focus-os-page .mission strong,
  body.focus-os-page .mission small,
  body.focus-os-page .history-list strong,
  body.focus-os-page .history-list small,
  body.focus-os-page .activity-item strong,
  body.focus-os-page .activity-item span,
  body.focus-os-page .nishtha-history span,
  body.focus-os-page .nishtha-history b,
  body.focus-os-page .mehfil-history p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Soundscape: one clean column, no clipped fourth card. */
  body.focus-os-page .soundscape-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.focus-os-page .soundscape-card {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 40px minmax(0, 1fr) 22px !important;
  }
  body.focus-os-page .soundscape-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100%;
  }
  body.focus-os-page .soundscape-controls > button {
    width: 100%;
  }
  body.focus-os-page .soundscape-volume,
  body.focus-os-page .soundscape-autoplay {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }
  body.focus-os-page .soundscape-volume input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  /* Pomodoro controls: deliberate vertical flow on phones. */
  body.focus-os-page .mode-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  body.focus-os-page .task-box,
  body.focus-os-page .task-box input {
    width: 100% !important;
    min-width: 0 !important;
  }
  body.focus-os-page .mini-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.focus-os-page .mini-actions .primary-btn {
    grid-column: auto !important;
  }
  body.focus-os-page .quick-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.focus-os-page .quick-row button,
  body.focus-os-page .mini-actions button {
    width: 100%;
  }

  body.focus-os-page .timer-panel {
    min-height: 0 !important;
  }
  body.focus-os-page .orb-wrap {
    width: min(78vw, 280px) !important;
    max-width: 280px !important;
    margin: 16px auto 12px !important;
  }
  body.focus-os-page .timer-under {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  body.focus-os-page .timer-under .breath {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  /* Mission cards stay usable even with long task names. */
  body.focus-os-page .mission {
    width: 100%;
    min-width: 0;
    grid-template-columns: 22px minmax(0, 1fr) 30px !important;
  }
  body.focus-os-page .mission-copy {
    min-width: 0;
  }

  /* Progress and history. Nothing should create a horizontal scrollbar. */
  body.focus-os-page .progress-head,
  body.focus-os-page .progress-stat-grid,
  body.focus-os-page .progress-main-grid,
  body.focus-os-page .progress-card,
  body.focus-os-page .history-list,
  body.focus-os-page .activity-timeline,
  body.focus-os-page .activity-calendar,
  body.focus-os-page .week-bars,
  body.focus-os-page .mission-progress-board {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.focus-os-page .progress-stat-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  body.focus-os-page .progress-actions {
    width: 100%;
  }
  body.focus-os-page .progress-card-head {
    width: 100%;
  }
  body.focus-os-page .date-nav {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) !important;
  }
  body.focus-os-page .date-nav button {
    width: 100%;
  }
  body.focus-os-page .activity-timeline {
    overflow-x: hidden !important;
    overflow-y: auto;
    max-height: 430px;
  }
  body.focus-os-page .activity-item {
    grid-template-columns: 14px minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
  }
  body.focus-os-page .history-list {
    overflow-x: hidden !important;
  }
  body.focus-os-page .history-list article {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
  }
  body.focus-os-page .history-list article > b {
    grid-column: 2;
  }
  body.focus-os-page .activity-calendar {
    gap: 4px;
  }
  body.focus-os-page .cal-day {
    min-width: 0 !important;
    width: 100%;
  }
}

@media (max-width: 480px) {
  body.focus-os-page .focus-shell {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
  body.focus-os-page .panel,
  body.focus-os-page .future-suite,
  body.focus-os-page .soundscape-panel,
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .progress-os {
    border-radius: 16px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.focus-os-page .future-carousel {
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
    gap: 5px !important;
  }
  body.focus-os-page .future-track {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  body.focus-os-page .future-card {
    flex-basis: 86% !important;
    min-width: 0 !important;
  }
  body.focus-os-page .mode-grid,
  body.focus-os-page .progress-stat-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.focus-os-page .timer-core > div:first-child {
    font-size: 48px !important;
  }
  body.focus-os-page .progress-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.focus-os-page .progress-actions .danger-btn {
    grid-column: auto !important;
  }
}

@media (max-width: 360px) {
  body.focus-os-page .focus-topbar {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
  body.focus-os-page .focus-shell {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
  body.focus-os-page .panel,
  body.focus-os-page .future-suite,
  body.focus-os-page .soundscape-panel,
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .progress-os {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  body.focus-os-page .future-suite-head h2 {
    font-size: 18px !important;
  }
  body.focus-os-page .timer-core > div:first-child {
    font-size: 43px !important;
  }
  body.focus-os-page .live-pill {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* =========================================================
   DAILY TARGET MOBILE HARDENING
   Preserve the Daily Targets feature while making every target
   control usable on narrow touch screens.
   ========================================================= */
@media (max-width: 760px){
  body.focus-os-page .daily-target-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    align-items:stretch;
  }
  body.focus-os-page .daily-target-summary>span{
    min-width:0;
    padding:9px 10px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:10px;
    background:rgba(255,255,255,.018);
  }
  body.focus-os-page .daily-target-summary-note{
    grid-column:1/-1;
    width:100%;
    margin-left:0!important;
  }
  body.focus-os-page .daily-target-card{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
    min-width:0;
    gap:10px;
  }
  body.focus-os-page .daily-target-main,
  body.focus-os-page .daily-target-copy,
  body.focus-os-page .daily-target-title-row{
    min-width:0;
    max-width:100%;
  }
  body.focus-os-page .daily-target-title-row{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  body.focus-os-page .daily-target-copy strong{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  body.focus-os-page .daily-target-copy small{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  body.focus-os-page .daily-target-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    justify-content:stretch;
  }
  body.focus-os-page .daily-target-actions button{
    width:100%;
    min-height:40px;
  }
  body.focus-os-page .daily-target-actions button[data-target-delete]{
    width:100%;
  }
  body.focus-os-page .carry-forward-strip{padding:10px}
  body.focus-os-page .carry-forward-list button{
    width:100%;
    min-width:0;
    grid-template-columns:minmax(0,1fr) auto!important;
    padding:9px;
  }
  body.focus-os-page .carry-forward-list span{
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.focus-os-page .carry-forward-list b{
    grid-column:auto!important;
    white-space:nowrap;
  }
  body.focus-os-page .target-progress-board{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
  }
  body.focus-os-page .target-progress-card{
    min-width:0;
    width:100%;
  }
  body.focus-os-page .target-modal-card .modal-actions{
    grid-template-columns:1fr 1fr;
  }
  body.focus-os-page .target-field input,
  body.focus-os-page .target-field select{
    width:100%;
    max-width:100%;
    font-size:16px!important;
    min-height:44px;
  }
}
@media (max-width: 440px){
  body.focus-os-page .daily-target-summary{grid-template-columns:1fr}
  body.focus-os-page .daily-target-summary-note{grid-column:auto}
  body.focus-os-page .daily-target-actions{grid-template-columns:1fr 1fr 1fr}
  body.focus-os-page .target-modal-card .modal-actions{grid-template-columns:1fr}
}


/* =========================================================
   LIVE STUDY CALENDAR
   ========================================================= */
body.focus-os-page .calendar-head{align-items:flex-start;gap:18px}
body.focus-os-page .calendar-subtitle{margin:7px 0 0;color:#7f8ba5;font-size:10px;line-height:1.55;max-width:520px}
body.focus-os-page .calendar-controls{display:grid;grid-template-columns:34px minmax(120px,1fr) 34px auto;gap:6px;align-items:center;flex:0 0 auto}
body.focus-os-page .date-nav-btn,
body.focus-os-page .calendar-month-label,
body.focus-os-page .calendar-today-btn{border:1px solid var(--f-line);background:rgba(255,255,255,.035);color:#dbe2f0;border-radius:10px;min-height:32px;font:700 10px 'Inter',sans-serif;cursor:pointer;transition:.2s ease}
body.focus-os-page .date-nav-btn:hover:not(:disabled),
body.focus-os-page .calendar-month-label:hover,
body.focus-os-page .calendar-today-btn:hover{border-color:rgba(124,92,255,.55);transform:translateY(-1px);box-shadow:0 7px 18px rgba(0,0,0,.12)}
body.focus-os-page .date-nav-btn:disabled{opacity:.3;cursor:not-allowed}
body.focus-os-page .calendar-month-label{padding:0 10px}
body.focus-os-page .calendar-today-btn{padding:0 11px;color:#bcaeff}
body.focus-os-page .calendar-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:4px 0 12px;color:#78849d;font-size:8px}
body.focus-os-page .calendar-legend>span{display:inline-flex;align-items:center;gap:5px}
body.focus-os-page .legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block;box-shadow:0 0 8px rgba(33,212,253,.12)}
body.focus-os-page .legend-dot.level-0{background:rgba(255,255,255,.09)}
body.focus-os-page .legend-dot.level-1{background:rgba(75,128,255,.55)}
body.focus-os-page .legend-dot.level-2{background:rgba(92,108,255,.75)}
body.focus-os-page .legend-dot.level-3{background:rgba(115,97,255,.95)}
body.focus-os-page .legend-dot.level-4{background:#21d4fd;box-shadow:0 0 10px rgba(33,212,253,.45)}
body.focus-os-page .activity-calendar{isolation:isolate}
body.focus-os-page .cal-day{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:2px;min-height:48px !important;padding:7px 4px 5px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease}
body.focus-os-page .cal-day::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 52%);opacity:0;transition:.25s ease;pointer-events:none}
body.focus-os-page .cal-day:hover::before,body.focus-os-page .cal-day.selected::before{opacity:1}
body.focus-os-page .cal-day-number{font:750 11px 'Space Grotesk',sans-serif;position:relative;z-index:1}
body.focus-os-page .cal-day-meta{display:flex;align-items:center;gap:4px;min-height:9px;color:#dfe9ff;font-size:7px;letter-spacing:.05em;position:relative;z-index:1}
body.focus-os-page .cal-day-meta i{width:4px;height:4px;border-radius:50%;background:#21d4fd;box-shadow:0 0 8px rgba(33,212,253,.55)}
body.focus-os-page .cal-day.today{box-shadow:inset 0 0 0 1px rgba(33,212,253,.7),0 0 16px rgba(33,212,253,.06)}
body.focus-os-page .cal-day.today::after{content:"TODAY";position:absolute;left:50%;bottom:1px;transform:translateX(-50%);font-size:5px;letter-spacing:.14em;color:#7de8ff;opacity:.82}
body.focus-os-page .cal-day.selected{outline:2px solid rgba(124,92,255,.62);outline-offset:2px;z-index:2;box-shadow:0 0 0 1px rgba(33,212,253,.14),0 10px 22px rgba(33,212,253,.08)}
body.focus-os-page .cal-day.future{opacity:.42}
body.focus-os-page .cal-day.just-selected{animation:calendarPick .42s ease both}
@keyframes calendarPick{0%{transform:scale(.9);box-shadow:0 0 0 rgba(33,212,253,0)}45%{transform:scale(1.08);box-shadow:0 0 26px rgba(33,212,253,.22)}100%{transform:scale(1)}}
body.focus-os-page .calendar-day-detail{margin-top:14px;border:1px solid rgba(124,92,255,.18);border-radius:16px;background:linear-gradient(145deg,rgba(124,92,255,.055),rgba(33,212,253,.018));overflow:hidden;animation:calendarDetailIn .28s ease both}
@keyframes calendarDetailIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
body.focus-os-page .calendar-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 16px 13px;border-bottom:1px solid rgba(255,255,255,.06)}
body.focus-os-page .calendar-detail-kicker{display:block;color:#8ee9ff;font-size:7px;letter-spacing:.17em;text-transform:uppercase}
body.focus-os-page .calendar-detail-top h4{margin:5px 0 0;color:#f2f5fc;font:750 17px/1.15 'Space Grotesk',sans-serif}
body.focus-os-page .calendar-detail-top p{margin:5px 0 0;color:#7f8aa2;font-size:9px;line-height:1.5}
body.focus-os-page .calendar-day-score{flex:0 0 auto;text-align:right}
body.focus-os-page .calendar-day-score strong{display:block;color:#f3f7ff;font:800 21px 'Space Grotesk',sans-serif}
body.focus-os-page .calendar-day-score span{display:block;margin-top:2px;color:#77839c;font-size:7px;letter-spacing:.12em;text-transform:uppercase}
body.focus-os-page .calendar-detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:11px 12px}
body.focus-os-page .calendar-detail-stats span{display:block;padding:9px 10px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:rgba(255,255,255,.02);color:#78849c;font-size:8px;text-align:center}
body.focus-os-page .calendar-detail-stats b{color:#e9eef8;font:800 13px 'Space Grotesk',sans-serif;margin-right:3px}
body.focus-os-page .calendar-activity-list{display:grid;gap:0;max-height:320px;overflow:auto;border-top:1px solid rgba(255,255,255,.05)}
body.focus-os-page .calendar-activity-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:10px 14px;border-bottom:1px dashed rgba(255,255,255,.07);animation:calendarRowIn .3s ease both}
body.focus-os-page .calendar-activity-item:last-child{border-bottom:0}
@keyframes calendarRowIn{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:translateX(0)}}
body.focus-os-page .calendar-activity-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;color:#bdb2ff;background:rgba(124,92,255,.09);border:1px solid rgba(124,92,255,.15);font-size:11px}
body.focus-os-page .calendar-activity-item time{display:block;color:#68758f;font-size:7px}
body.focus-os-page .calendar-activity-item strong{display:block;margin-top:2px;color:#ecf1fb;font-size:10px}
body.focus-os-page .calendar-activity-item span{display:block;margin-top:2px;color:#818ca3;font-size:8px;line-height:1.45;overflow-wrap:anywhere}
body.focus-os-page .calendar-no-activity{padding:22px 16px;text-align:center}
body.focus-os-page .calendar-no-activity strong{display:block;color:#e6ebf4;font-size:11px}
body.focus-os-page .calendar-no-activity span{display:block;margin-top:5px;color:#78849c;font-size:8px;line-height:1.55}
body.focus-os-page .goal-helper{display:block;margin-top:7px;color:#71809b;font-size:8px;line-height:1.55}
html[data-focus-theme="light"] body.focus-os-page .calendar-day-detail{background:linear-gradient(145deg,rgba(124,92,255,.06),rgba(255,255,255,.75));border-color:#dbe2ee}
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-top h4,html[data-focus-theme="light"] body.focus-os-page .calendar-activity-item strong{color:#172033!important}
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-top p,html[data-focus-theme="light"] body.focus-os-page .calendar-activity-item span,html[data-focus-theme="light"] body.focus-os-page .calendar-activity-item time,html[data-focus-theme="light"] body.focus-os-page .calendar-detail-stats span,html[data-focus-theme="light"] body.focus-os-page .calendar-no-activity span{color:#63708a!important}
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-stats span{background:rgba(255,255,255,.72);border-color:#dbe2ee}
@media(max-width:760px){body.focus-os-page .calendar-head{display:block}body.focus-os-page .calendar-controls{margin-top:11px;grid-template-columns:34px minmax(0,1fr) 34px auto}body.focus-os-page .calendar-month-label{min-width:0}body.focus-os-page .calendar-detail-top{padding:13px 12px;flex-direction:column}body.focus-os-page .calendar-day-score{text-align:left}body.focus-os-page .calendar-detail-stats{grid-template-columns:repeat(2,1fr)}body.focus-os-page .cal-day{min-height:44px!important;padding:6px 3px 5px}body.focus-os-page .calendar-legend{gap:7px 11px}}
@media(max-width:420px){body.focus-os-page .calendar-controls{grid-template-columns:31px minmax(0,1fr) 31px;gap:5px}body.focus-os-page .calendar-today-btn{grid-column:1/-1}body.focus-os-page .calendar-detail-stats{grid-template-columns:1fr 1fr}body.focus-os-page .cal-day{min-height:40px!important}}

/* =========================================================
   MOBILE RESPONSIVE FINAL PASS
   Designed for real phones (320-767 CSS px), including browsers
   that report a wider layout viewport or contain legacy desktop
   grid rules. Daily Targets and the live calendar remain enabled.
   ========================================================= */
@media screen and (max-width: 767px) {
  html { width:100%; min-width:0 !important; overflow-x:hidden !important; }
  body.focus-os-page {
    width:100% !important;
    min-width:0 !important;
    max-width:100vw !important;
    overflow-x:hidden !important;
  }
  body.focus-os-page .focus-topbar,
  body.focus-os-page .focus-shell,
  body.focus-os-page .focus-hero,
  body.focus-os-page .future-suite,
  body.focus-os-page .soundscape-panel,
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .focus-grid,
  body.focus-os-page .bottom-grid,
  body.focus-os-page .progress-os {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  body.focus-os-page .focus-topbar {
    display:flex !important;
    flex-wrap:nowrap !important;
    padding:8px 10px !important;
    gap:8px !important;
  }
  body.focus-os-page .focus-topbar .brand { min-width:0 !important; flex:1 1 auto !important; max-width:none !important; }
  body.focus-os-page .focus-topbar .brand-text { max-width:100% !important; min-width:0 !important; }
  body.focus-os-page .focus-top-actions { flex:0 0 auto !important; min-width:0 !important; }

  body.focus-os-page .focus-shell {
    margin:0 !important;
    padding:18px 10px 28px !important;
  }
  body.focus-os-page .focus-hero {
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    margin-bottom:14px !important;
  }
  body.focus-os-page .focus-hero > * { min-width:0 !important; max-width:100% !important; }
  body.focus-os-page .focus-hero h1 { font-size:clamp(32px,10.5vw,48px) !important; }
  body.focus-os-page .focus-hero p { max-width:100% !important; }
  body.focus-os-page .live-pill { width:100% !important; min-width:0 !important; }

  /* The five-mode carousel is horizontal by design, but only the
     carousel track may scroll. The page itself must never scroll sideways. */
  body.focus-os-page .future-suite { overflow:hidden !important; }
  body.focus-os-page .future-carousel {
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:32px minmax(0,1fr) 32px !important;
  }
  body.focus-os-page .future-track {
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    scrollbar-width:none;
  }
  body.focus-os-page .future-track::-webkit-scrollbar { display:none; }
  body.focus-os-page .future-card {
    flex:0 0 82% !important;
    max-width:82% !important;
    min-width:0 !important;
  }

  /* Soundscape cards: two columns only when the phone is genuinely wide. */
  body.focus-os-page .soundscape-grid {
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.focus-os-page .soundscape-card {
    min-width:0 !important;
    width:100% !important;
    grid-template-columns:34px minmax(0,1fr) 18px !important;
    padding:10px !important;
  }
  body.focus-os-page .soundscape-card > div { min-width:0 !important; }
  body.focus-os-page .soundscape-card strong,
  body.focus-os-page .soundscape-card small { overflow-wrap:anywhere !important; }
  body.focus-os-page .soundscape-controls {
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  }
  body.focus-os-page .soundscape-controls > * { min-width:0 !important; }

  /* Never squeeze the main Pomodoro cockpit into desktop columns. */
  body.focus-os-page .focus-grid,
  body.focus-os-page .bottom-grid {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    min-width:0 !important;
    gap:12px !important;
  }
  body.focus-os-page .control-panel,
  body.focus-os-page .timer-panel,
  body.focus-os-page .insight-panel,
  body.focus-os-page .daily-target-panel,
  body.focus-os-page .settings-panel {
    grid-column:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.focus-os-page .timer-panel { min-height:0 !important; }
  body.focus-os-page .orb-wrap { width:min(76vw,270px) !important; max-width:270px !important; }

  /* Controls must never create skinny vertical words. */
  body.focus-os-page .mode-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.focus-os-page .mode-card,
  body.focus-os-page .task-box,
  body.focus-os-page .mini-actions,
  body.focus-os-page .quick-row { min-width:0 !important; max-width:100% !important; }
  body.focus-os-page .mini-actions { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.focus-os-page .mini-actions .primary-btn { grid-column:1/-1 !important; }
  body.focus-os-page .quick-row { display:grid !important; grid-template-columns:1fr !important; }
  body.focus-os-page .quick-row button { width:100% !important; min-width:0 !important; }
  body.focus-os-page .task-box input { min-width:0 !important; max-width:100% !important; }

  /* Timer controls and readouts. */
  body.focus-os-page .timer-under {
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  }
  body.focus-os-page .timer-under .breath { grid-column:1/-1 !important; grid-row:1 !important; }
  body.focus-os-page .timer-under > div { min-width:0 !important; }
  body.focus-os-page .timer-top { width:100% !important; min-width:0 !important; }

  /* Insight cockpit. */
  body.focus-os-page .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.focus-os-page .ai-plan { min-width:0 !important; max-width:100% !important; }
  body.focus-os-page .ai-plan > div { min-width:0 !important; }

  /* Daily Targets. */
  body.focus-os-page .daily-target-summary { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.focus-os-page .daily-target-summary > * { min-width:0 !important; }
  body.focus-os-page .daily-target-card {
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.focus-os-page .daily-target-main,
  body.focus-os-page .daily-target-copy,
  body.focus-os-page .daily-target-title-row { min-width:0 !important; max-width:100% !important; }
  body.focus-os-page .daily-target-actions {
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  body.focus-os-page .daily-target-actions button { min-width:0 !important; width:100% !important; }

  /* Progress is a single-column reading experience on phones. */
  body.focus-os-page .progress-head,
  body.focus-os-page .progress-card-head { min-width:0 !important; max-width:100% !important; }
  body.focus-os-page .progress-actions { width:100% !important; min-width:0 !important; }
  body.focus-os-page .progress-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.focus-os-page .progress-main-grid,
  body.focus-os-page .progress-main-grid-single { grid-template-columns:minmax(0,1fr) !important; width:100% !important; }
  body.focus-os-page .progress-card { width:100% !important; min-width:0 !important; }

  /* Real 7-column calendar. Do not allow the calendar itself to become
     a horizontally scrolling desktop table. */
  body.focus-os-page .calendar-head { display:block !important; width:100% !important; }
  body.focus-os-page .calendar-head > div { min-width:0 !important; max-width:100% !important; }
  body.focus-os-page .calendar-controls {
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:36px minmax(0,1fr) 36px !important;
    margin-top:12px !important;
  }
  body.focus-os-page .calendar-today-btn { grid-column:1/-1 !important; }
  body.focus-os-page .activity-calendar {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:3px !important;
  }
  body.focus-os-page .cal-day {
    width:100% !important;
    min-width:0 !important;
    min-height:43px !important;
    padding:5px 2px !important;
  }
  body.focus-os-page .cal-day-number { font-size:10px !important; }
  body.focus-os-page .cal-day-meta { font-size:6px !important; }
  body.focus-os-page .calendar-day-detail { width:100% !important; min-width:0 !important; }
  body.focus-os-page .calendar-detail-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.focus-os-page .calendar-activity-list { max-height:360px !important; }

  /* Prevent any legacy list/table from defining the viewport width. */
  body.focus-os-page table,
  body.focus-os-page pre,
  body.focus-os-page .history-list,
  body.focus-os-page .activity-timeline,
  body.focus-os-page .plan-result,
  body.focus-os-page .exam-result,
  body.focus-os-page .nishtha-history,
  body.focus-os-page .mehfil-history {
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
  }
}

@media screen and (max-width: 480px) {
  body.focus-os-page .focus-shell { padding-left:8px !important; padding-right:8px !important; }
  body.focus-os-page .panel,
  body.focus-os-page .future-suite,
  body.focus-os-page .soundscape-panel,
  body.focus-os-page .future-tool-stage,
  body.focus-os-page .progress-os { padding-left:12px !important; padding-right:12px !important; }
  body.focus-os-page .soundscape-grid { grid-template-columns:1fr !important; }
  body.focus-os-page .mode-grid { grid-template-columns:1fr 1fr !important; }
  body.focus-os-page .metric-grid { grid-template-columns:1fr 1fr !important; }
  body.focus-os-page .daily-target-summary { grid-template-columns:1fr !important; }
  body.focus-os-page .daily-target-actions { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  body.focus-os-page .progress-stat-grid { grid-template-columns:1fr 1fr !important; }
  body.focus-os-page .progress-actions { grid-template-columns:1fr 1fr !important; }
  body.focus-os-page .progress-actions .danger-btn { grid-column:1/-1 !important; }
  body.focus-os-page .calendar-detail-top { flex-direction:column !important; gap:8px !important; }
  body.focus-os-page .calendar-day-score { text-align:left !important; }
}

@media screen and (max-width: 360px) {
  body.focus-os-page .mode-grid,
  body.focus-os-page .metric-grid,
  body.focus-os-page .progress-stat-grid { grid-template-columns:1fr !important; }
  body.focus-os-page .mini-actions { grid-template-columns:1fr !important; }
  body.focus-os-page .mini-actions .primary-btn { grid-column:auto !important; }
  body.focus-os-page .calendar-controls { grid-template-columns:32px minmax(0,1fr) 32px !important; }
  body.focus-os-page .cal-day { min-height:39px !important; }
}


/* =========================================================
   THEME SYSTEM V6
   One coherent palette for every Focus OS surface.
   Light mode must be genuinely light, not dark cards with
   a white page around them. Dark mode must remain deep and
   readable. All theme-sensitive UI is isolated here so later
   component rules cannot accidentally undo the theme.
   ========================================================= */
:root {
  color-scheme: dark;
  --focus-page: #070a12;
  --focus-page-2: #0b1020;
  --focus-surface: rgba(17,23,38,.90);
  --focus-surface-strong: rgba(11,16,29,.96);
  --focus-surface-soft: rgba(255,255,255,.035);
  --focus-surface-hover: rgba(255,255,255,.055);
  --focus-border: rgba(255,255,255,.10);
  --focus-border-soft: rgba(255,255,255,.065);
  --focus-heading: #f7f8ff;
  --focus-body: #c4ccdc;
  --focus-muted: #8f9ab2;
  --focus-faint: #707c96;
  --focus-input: #090d18;
  --focus-button: rgba(255,255,255,.045);
  --focus-shadow: 0 26px 70px rgba(0,0,0,.30);
  --focus-calendar-empty: rgba(255,255,255,.025);
  --focus-calendar-text: #c7d0e2;
  --focus-track: rgba(255,255,255,.075);
}

html[data-focus-theme="light"] {
  color-scheme: light;
  --focus-page: #f3f6fb;
  --focus-page-2: #eaf0f8;
  --focus-surface: rgba(255,255,255,.96);
  --focus-surface-strong: #ffffff;
  --focus-surface-soft: rgba(20,32,55,.045);
  --focus-surface-hover: rgba(92,70,216,.065);
  --focus-border: rgba(23,32,51,.13);
  --focus-border-soft: rgba(23,32,51,.085);
  --focus-heading: #172033;
  --focus-body: #33415a;
  --focus-muted: #63708a;
  --focus-faint: #7b879d;
  --focus-input: #ffffff;
  --focus-button: rgba(255,255,255,.92);
  --focus-shadow: 0 22px 55px rgba(39,55,86,.12);
  --focus-calendar-empty: #f8fafd;
  --focus-calendar-text: #34415a;
  --focus-track: rgba(23,32,51,.09);
}

html[data-focus-theme="dark"] body.focus-os-page,
html[data-focus-theme="light"] body.focus-os-page {
  color: var(--focus-body) !important;
  background:
    radial-gradient(circle at 15% 8%, rgba(124,92,255,.12), transparent 32%),
    radial-gradient(circle at 85% 5%, rgba(33,212,253,.08), transparent 28%),
    linear-gradient(180deg,var(--focus-page),var(--focus-page-2)) !important;
}

html[data-focus-theme="dark"] body.focus-os-page .focus-topbar,
html[data-focus-theme="light"] body.focus-os-page .focus-topbar {
  background: color-mix(in srgb, var(--focus-page) 88%, transparent) !important;
  border-bottom-color: var(--focus-border) !important;
  color: var(--focus-heading) !important;
}

/* Shared surfaces */
html[data-focus-theme="dark"] body.focus-os-page .panel,
html[data-focus-theme="dark"] body.focus-os-page .future-suite,
html[data-focus-theme="dark"] body.focus-os-page .future-tool-stage,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-panel,
html[data-focus-theme="dark"] body.focus-os-page .progress-os,
html[data-focus-theme="light"] body.focus-os-page .panel,
html[data-focus-theme="light"] body.focus-os-page .future-suite,
html[data-focus-theme="light"] body.focus-os-page .future-tool-stage,
html[data-focus-theme="light"] body.focus-os-page .soundscape-panel,
html[data-focus-theme="light"] body.focus-os-page .progress-os {
  color: var(--focus-body) !important;
  border-color: var(--focus-border) !important;
  box-shadow: var(--focus-shadow) !important;
}

html[data-focus-theme="dark"] body.focus-os-page .panel,
html[data-focus-theme="dark"] body.focus-os-page .progress-os {
  background: linear-gradient(180deg,rgba(18,24,41,.92),rgba(11,16,29,.92)) !important;
}
html[data-focus-theme="light"] body.focus-os-page .panel,
html[data-focus-theme="light"] body.focus-os-page .progress-os {
  background: linear-gradient(180deg,#ffffff,#f7f9fd) !important;
}
html[data-focus-theme="light"] body.focus-os-page .future-suite,
html[data-focus-theme="light"] body.focus-os-page .future-tool-stage,
html[data-focus-theme="light"] body.focus-os-page .soundscape-panel {
  background: linear-gradient(180deg,#ffffff,#f7f9fd) !important;
}

/* Typography */
html[data-focus-theme="dark"] body.focus-os-page h1,
html[data-focus-theme="dark"] body.focus-os-page h2,
html[data-focus-theme="dark"] body.focus-os-page h3,
html[data-focus-theme="dark"] body.focus-os-page h4,
html[data-focus-theme="dark"] body.focus-os-page strong,
html[data-focus-theme="dark"] body.focus-os-page b,
html[data-focus-theme="light"] body.focus-os-page h1,
html[data-focus-theme="light"] body.focus-os-page h2,
html[data-focus-theme="light"] body.focus-os-page h3,
html[data-focus-theme="light"] body.focus-os-page h4,
html[data-focus-theme="light"] body.focus-os-page strong,
html[data-focus-theme="light"] body.focus-os-page b {
  color: var(--focus-heading) !important;
}
html[data-focus-theme="dark"] body.focus-os-page p,
html[data-focus-theme="dark"] body.focus-os-page label,
html[data-focus-theme="dark"] body.focus-os-page small,
html[data-focus-theme="light"] body.focus-os-page p,
html[data-focus-theme="light"] body.focus-os-page label,
html[data-focus-theme="light"] body.focus-os-page small {
  color: var(--focus-muted);
}
html[data-focus-theme="dark"] body.focus-os-page .focus-nav a,
html[data-focus-theme="light"] body.focus-os-page .focus-nav a,
html[data-focus-theme="dark"] body.focus-os-page .focus-hero p,
html[data-focus-theme="light"] body.focus-os-page .focus-hero p,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-head p,
html[data-focus-theme="light"] body.focus-os-page .soundscape-head p,
html[data-focus-theme="dark"] body.focus-os-page .future-suite-head p,
html[data-focus-theme="light"] body.focus-os-page .future-suite-head p,
html[data-focus-theme="dark"] body.focus-os-page .future-stage-head p,
html[data-focus-theme="light"] body.focus-os-page .future-stage-head p {
  color: var(--focus-muted) !important;
}
html[data-focus-theme="light"] body.focus-os-page .brand-text,
html[data-focus-theme="light"] body.focus-os-page .focus-nav a:hover,
html[data-focus-theme="light"] body.focus-os-page .focus-nav a:focus-visible {
  color: var(--focus-heading) !important;
}

/* Cards, controls and fields */
html[data-focus-theme="dark"] body.focus-os-page .mode-card,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-card,
html[data-focus-theme="dark"] body.focus-os-page .task-box,
html[data-focus-theme="dark"] body.focus-os-page .metric-grid > div,
html[data-focus-theme="dark"] body.focus-os-page .tip-card,
html[data-focus-theme="dark"] body.focus-os-page .future-card,
html[data-focus-theme="dark"] body.focus-os-page .future-stat-grid > div,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-card,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-summary,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-empty,
html[data-focus-theme="dark"] body.focus-os-page .target-progress-card,
html[data-focus-theme="dark"] body.focus-os-page .progress-stat,
html[data-focus-theme="dark"] body.focus-os-page .progress-card,
html[data-focus-theme="dark"] body.focus-os-page .history-list article,
html[data-focus-theme="light"] body.focus-os-page .mode-card,
html[data-focus-theme="light"] body.focus-os-page .soundscape-card,
html[data-focus-theme="light"] body.focus-os-page .task-box,
html[data-focus-theme="light"] body.focus-os-page .metric-grid > div,
html[data-focus-theme="light"] body.focus-os-page .tip-card,
html[data-focus-theme="light"] body.focus-os-page .future-card,
html[data-focus-theme="light"] body.focus-os-page .future-stat-grid > div,
html[data-focus-theme="light"] body.focus-os-page .daily-target-card,
html[data-focus-theme="light"] body.focus-os-page .daily-target-summary,
html[data-focus-theme="light"] body.focus-os-page .daily-target-empty,
html[data-focus-theme="light"] body.focus-os-page .target-progress-card,
html[data-focus-theme="light"] body.focus-os-page .progress-stat,
html[data-focus-theme="light"] body.focus-os-page .progress-card,
html[data-focus-theme="light"] body.focus-os-page .history-list article {
  border-color: var(--focus-border-soft) !important;
  color: var(--focus-body) !important;
}
html[data-focus-theme="dark"] body.focus-os-page .mode-card,
html[data-focus-theme="dark"] body.focus-os-page .soundscape-card,
html[data-focus-theme="dark"] body.focus-os-page .task-box,
html[data-focus-theme="dark"] body.focus-os-page .metric-grid > div,
html[data-focus-theme="dark"] body.focus-os-page .tip-card,
html[data-focus-theme="dark"] body.focus-os-page .future-card,
html[data-focus-theme="dark"] body.focus-os-page .future-stat-grid > div,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-card,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-summary,
html[data-focus-theme="dark"] body.focus-os-page .daily-target-empty,
html[data-focus-theme="dark"] body.focus-os-page .target-progress-card,
html[data-focus-theme="dark"] body.focus-os-page .progress-stat,
html[data-focus-theme="dark"] body.focus-os-page .progress-card,
html[data-focus-theme="dark"] body.focus-os-page .history-list article {
  background: var(--focus-surface-soft) !important;
}
html[data-focus-theme="light"] body.focus-os-page .mode-card,
html[data-focus-theme="light"] body.focus-os-page .soundscape-card,
html[data-focus-theme="light"] body.focus-os-page .task-box,
html[data-focus-theme="light"] body.focus-os-page .metric-grid > div,
html[data-focus-theme="light"] body.focus-os-page .tip-card,
html[data-focus-theme="light"] body.focus-os-page .future-card,
html[data-focus-theme="light"] body.focus-os-page .future-stat-grid > div,
html[data-focus-theme="light"] body.focus-os-page .daily-target-card,
html[data-focus-theme="light"] body.focus-os-page .daily-target-summary,
html[data-focus-theme="light"] body.focus-os-page .daily-target-empty,
html[data-focus-theme="light"] body.focus-os-page .target-progress-card,
html[data-focus-theme="light"] body.focus-os-page .progress-stat,
html[data-focus-theme="light"] body.focus-os-page .progress-card,
html[data-focus-theme="light"] body.focus-os-page .history-list article {
  background: rgba(255,255,255,.78) !important;
}

html[data-focus-theme="light"] body.focus-os-page .mode-card:hover,
html[data-focus-theme="light"] body.focus-os-page .soundscape-card:hover,
html[data-focus-theme="light"] body.focus-os-page .daily-target-card:hover {
  background: #ffffff !important;
}

html[data-focus-theme="dark"] body.focus-os-page .icon-btn,
html[data-focus-theme="dark"] body.focus-os-page .ghost-btn,
html[data-focus-theme="dark"] body.focus-os-page .secondary-btn,
html[data-focus-theme="dark"] body.focus-os-page .quick-row button,
html[data-focus-theme="dark"] body.focus-os-page .date-nav button,
html[data-focus-theme="dark"] body.focus-os-page .calendar-month-label,
html[data-focus-theme="dark"] body.focus-os-page .calendar-today-btn,
html[data-focus-theme="dark"] body.focus-os-page .date-nav-btn,
html[data-focus-theme="light"] body.focus-os-page .icon-btn,
html[data-focus-theme="light"] body.focus-os-page .ghost-btn,
html[data-focus-theme="light"] body.focus-os-page .secondary-btn,
html[data-focus-theme="light"] body.focus-os-page .quick-row button,
html[data-focus-theme="light"] body.focus-os-page .date-nav button,
html[data-focus-theme="light"] body.focus-os-page .calendar-month-label,
html[data-focus-theme="light"] body.focus-os-page .calendar-today-btn,
html[data-focus-theme="light"] body.focus-os-page .date-nav-btn {
  background: var(--focus-button) !important;
  color: var(--focus-heading) !important;
  border-color: var(--focus-border) !important;
}

html[data-focus-theme="light"] body.focus-os-page .icon-btn:hover,
html[data-focus-theme="light"] body.focus-os-page .ghost-btn:hover,
html[data-focus-theme="light"] body.focus-os-page .secondary-btn:hover,
html[data-focus-theme="light"] body.focus-os-page .date-nav button:hover,
html[data-focus-theme="light"] body.focus-os-page .date-nav-btn:hover:not(:disabled),
html[data-focus-theme="light"] body.focus-os-page .calendar-month-label:hover,
html[data-focus-theme="light"] body.focus-os-page .calendar-today-btn:hover {
  background: #ffffff !important;
}

html[data-focus-theme="dark"] body.focus-os-page input,
html[data-focus-theme="dark"] body.focus-os-page textarea,
html[data-focus-theme="dark"] body.focus-os-page select,
html[data-focus-theme="light"] body.focus-os-page input,
html[data-focus-theme="light"] body.focus-os-page textarea,
html[data-focus-theme="light"] body.focus-os-page select {
  color: var(--focus-heading) !important;
  background: var(--focus-input) !important;
  border-color: var(--focus-border) !important;
  -webkit-text-fill-color: var(--focus-heading) !important;
}
html[data-focus-theme="light"] body.focus-os-page input,
html[data-focus-theme="light"] body.focus-os-page textarea,
html[data-focus-theme="light"] body.focus-os-page select {
  background: #ffffff !important;
  -webkit-text-fill-color: #172033 !important;
}
html[data-focus-theme="light"] body.focus-os-page input::placeholder,
html[data-focus-theme="light"] body.focus-os-page textarea::placeholder {
  color: #8995aa !important;
  opacity: 1;
}
html[data-focus-theme="dark"] body.focus-os-page option { background:#090d18;color:#f7f8ff }
html[data-focus-theme="light"] body.focus-os-page option { background:#fff;color:#172033 }

/* Modal / planner surfaces */
html[data-focus-theme="light"] body.focus-os-page .modal-card,
html[data-focus-theme="light"] body.focus-os-page .target-modal-card {
  background:#ffffff !important;
  color:#33415a !important;
  border-color:#d7dfec !important;
  box-shadow:0 28px 80px rgba(34,48,77,.18) !important;
}
html[data-focus-theme="dark"] body.focus-os-page .modal-card,
html[data-focus-theme="dark"] body.focus-os-page .target-modal-card {
  background:#0e1423 !important;
  color:#c4ccdc !important;
}
html[data-focus-theme="light"] body.focus-os-page .modal-card h2,
html[data-focus-theme="light"] body.focus-os-page .target-modal-card h2,
html[data-focus-theme="light"] body.focus-os-page .modal-card h3,
html[data-focus-theme="light"] body.focus-os-page .target-modal-card h3 {
  color:#172033 !important;
}

/* Timer and meditation surfaces */
html[data-focus-theme="light"] body.focus-os-page .timer-panel,
html[data-focus-theme="light"] body.focus-os-page .dhyan-orb,
html[data-focus-theme="light"] body.focus-os-page .dhyan-core {
  color:#172033 !important;
}
html[data-focus-theme="light"] body.focus-os-page .dhyan-orb {
  background:radial-gradient(circle,rgba(107,89,255,.10),transparent 58%),linear-gradient(180deg,#f8faff,#edf2f9) !important;
}
html[data-focus-theme="light"] body.focus-os-page .dhyan-core {
  background:radial-gradient(circle at 50% 35%,rgba(124,92,255,.13),rgba(255,255,255,.97) 70%) !important;
  border-color:rgba(99,77,216,.32) !important;
  box-shadow:0 0 50px rgba(117,90,255,.12),inset 0 0 35px rgba(38,160,245,.05) !important;
}
html[data-focus-theme="light"] body.focus-os-page .ring-track { stroke:rgba(23,32,51,.10) !important }
html[data-focus-theme="light"] body.focus-os-page .breath,
html[data-focus-theme="light"] body.focus-os-page .focus-score-badge,
html[data-focus-theme="light"] body.focus-os-page .soundscape-now {
  background:rgba(255,255,255,.72) !important;
  border-color:var(--focus-border) !important;
}

/* Daily targets and calendar */
html[data-focus-theme="light"] body.focus-os-page .daily-target-summary-note,
html[data-focus-theme="light"] body.focus-os-page .daily-target-copy small,
html[data-focus-theme="light"] body.focus-os-page .daily-target-empty small,
html[data-focus-theme="light"] body.focus-os-page .goal-helper,
html[data-focus-theme="light"] body.focus-os-page .calendar-subtitle,
html[data-focus-theme="light"] body.focus-os-page .calendar-legend,
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-top p,
html[data-focus-theme="light"] body.focus-os-page .calendar-day-score span,
html[data-focus-theme="light"] body.focus-os-page .calendar-activity-item time,
html[data-focus-theme="light"] body.focus-os-page .calendar-activity-item span,
html[data-focus-theme="light"] body.focus-os-page .calendar-no-activity span {
  color:#63708a !important;
}
html[data-focus-theme="light"] body.focus-os-page .cal-head { color:#6d7890 !important }
html[data-focus-theme="light"] body.focus-os-page .cal-day {
  background:var(--focus-calendar-empty) !important;
  color:var(--focus-calendar-text) !important;
  border-color:#d9e1ed !important;
}
html[data-focus-theme="light"] body.focus-os-page .cal-day.selected {
  color:#172033 !important;
}
html[data-focus-theme="light"] body.focus-os-page .calendar-day-detail {
  background:linear-gradient(145deg,rgba(124,92,255,.055),rgba(255,255,255,.96)) !important;
  border-color:#d7dfec !important;
}
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-top,
html[data-focus-theme="light"] body.focus-os-page .calendar-activity-list {
  border-color:#e0e6ef !important;
}
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-stats span {
  background:#ffffff !important;
  border-color:#dbe2ee !important;
  color:#63708a !important;
}
html[data-focus-theme="light"] body.focus-os-page .calendar-detail-stats b {
  color:#172033 !important;
}

/* Progress */
html[data-focus-theme="light"] body.focus-os-page .progress-head p,
html[data-focus-theme="light"] body.focus-os-page .progress-stat span,
html[data-focus-theme="light"] body.focus-os-page .progress-stat small,
html[data-focus-theme="light"] body.focus-os-page .micro-label,
html[data-focus-theme="light"] body.focus-os-page .week-bar-wrap b,
html[data-focus-theme="light"] body.focus-os-page .week-bar-wrap small,
html[data-focus-theme="light"] body.focus-os-page .progress-insights span,
html[data-focus-theme="light"] body.focus-os-page .data-safety-copy,
html[data-focus-theme="light"] body.focus-os-page .data-safety summary {
  color:#63708a !important;
}
html[data-focus-theme="light"] body.focus-os-page .progress-stat strong,
html[data-focus-theme="light"] body.focus-os-page .progress-insights strong,
html[data-focus-theme="light"] body.focus-os-page .history-list strong,
html[data-focus-theme="light"] body.focus-os-page .history-list article>b {
  color:#172033 !important;
}
html[data-focus-theme="light"] body.focus-os-page .history-list small { color:#71809a !important }
html[data-focus-theme="light"] body.focus-os-page .history-list select,
html[data-focus-theme="light"] body.focus-os-page .progress-os select {
  color:#243049 !important;
  background:#ffffff !important;
}

/* Switches */
html[data-focus-theme="light"] body.focus-os-page .switch-row i {
  background:#d3dae5 !important;
}
html[data-focus-theme="light"] body.focus-os-page .switch-row i:after {
  background:#ffffff !important;
  box-shadow:0 1px 3px rgba(20,30,45,.2);
}

/* Accessibility and interaction states */
html[data-focus-theme="light"] body.focus-os-page :focus-visible {
  outline-color:#6546d8 !important;
}
html[data-focus-theme="dark"] body.focus-os-page ::selection { background:rgba(124,92,255,.35);color:#fff }
html[data-focus-theme="light"] body.focus-os-page ::selection { background:rgba(101,70,216,.18);color:#172033 }

/* Prevent native controls from reverting to the browser's dark palette */
html[data-focus-theme="light"] body.focus-os-page button,
html[data-focus-theme="light"] body.focus-os-page input,
html[data-focus-theme="light"] body.focus-os-page select,
html[data-focus-theme="light"] body.focus-os-page textarea {
  color-scheme:light;
}
html[data-focus-theme="dark"] body.focus-os-page button,
html[data-focus-theme="dark"] body.focus-os-page input,
html[data-focus-theme="dark"] body.focus-os-page select,
html[data-focus-theme="dark"] body.focus-os-page textarea {
  color-scheme:dark;
}


/* RESET CONFIRMATION · V7
   Replaces the unreliable mobile browser prompt with an accessible in-app dialog. */
#focusResetConfirm{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;font-family:inherit}
#focusResetConfirm .reset-confirm-backdrop{position:absolute;inset:0;background:rgba(4,7,14,.72);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#focusResetConfirm .reset-confirm-card{position:relative;width:min(520px,100%);padding:26px;border:1px solid var(--focus-border);border-radius:24px;background:var(--focus-surface-strong);color:var(--focus-body);box-shadow:0 30px 90px rgba(0,0,0,.38);animation:resetDialogIn .22s ease-out}
#focusResetConfirm .reset-confirm-kicker{display:block;margin-bottom:8px;font-size:11px;letter-spacing:.18em;font-weight:800;color:#ff7fae}
#focusResetConfirm h3{margin:0 0 10px;color:var(--focus-heading);font-size:24px;line-height:1.2}
#focusResetConfirm p{margin:0 0 10px;color:var(--focus-body);font-size:14px;line-height:1.65}
#focusResetConfirm .reset-confirm-note{color:var(--focus-muted);font-size:12px}
#focusResetConfirm .reset-confirm-check{display:flex;align-items:flex-start;gap:10px;margin:18px 0;padding:12px;border:1px solid var(--focus-border-soft);border-radius:14px;background:var(--focus-surface-soft);font-size:12px;line-height:1.5;color:var(--focus-body);cursor:pointer}
#focusResetConfirm .reset-confirm-check input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:#7c5cff}
#focusResetConfirm .reset-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#focusResetConfirm .reset-confirm-actions button{min-height:46px;border:1px solid var(--focus-border);border-radius:13px;background:var(--focus-button);color:var(--focus-heading);font:600 13px inherit;cursor:pointer}
#focusResetConfirm #resetConfirmBtn{border-color:rgba(255,93,145,.45);background:linear-gradient(135deg,rgba(255,93,145,.14),rgba(255,93,145,.06));color:#ff8eb5}
#focusResetConfirm #resetConfirmBtn:disabled{opacity:.45;cursor:not-allowed}
#focusResetConfirm .reset-confirm-actions button:active{transform:translateY(1px)}
html[data-focus-theme="light"] #focusResetConfirm .reset-confirm-backdrop{background:rgba(20,27,43,.34)}
html[data-focus-theme="light"] #focusResetConfirm .reset-confirm-card{background:#fff;box-shadow:0 28px 80px rgba(39,55,86,.22)}
html[data-focus-theme="light"] #focusResetConfirm .reset-confirm-check{background:#f7f9fc}
@keyframes resetDialogIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:520px){#focusResetConfirm{padding:14px}#focusResetConfirm .reset-confirm-card{padding:21px;border-radius:20px}#focusResetConfirm h3{font-size:21px}#focusResetConfirm .reset-confirm-actions{grid-template-columns:1fr}#focusResetConfirm .reset-confirm-actions button{min-height:48px}}

/* =========================================================
   FOCUS OS V3 POLISH LAYER
   Intentional responsive design, accessibility, motion, and
   interaction states layered over the retained visual system.
   ========================================================= */
body.focus-os-page {
  --v3-bg-0: #070a12;
  --v3-bg-1: #0b1020;
  --v3-surface: rgba(16, 22, 38, .88);
  --v3-surface-2: rgba(20, 27, 46, .72);
  --v3-border: rgba(156, 171, 211, .15);
  --v3-text: #f4f7ff;
  --v3-muted: #95a1bb;
  --v3-dim: #6f7b95;
  --v3-a: #8d7cff;
  --v3-b: #21d4fd;
  --v3-good: #50e3a4;
  --v3-shadow: 0 24px 70px rgba(0,0,0,.26);
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 89, 255, .16), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(33, 212, 253, .11), transparent 24%),
    linear-gradient(180deg, var(--v3-bg-0), var(--v3-bg-1));
  color: var(--v3-text);
}

body.focus-os-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .24;
  background-image: radial-gradient(rgba(255,255,255,.06) .6px, transparent .6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

body.focus-os-page .focus-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom-color: var(--v3-border) !important;
  background: rgba(6, 10, 18, .76) !important;
}

body.focus-os-page .focus-shell { padding-top: 34px; }
body.focus-os-page .focus-hero { align-items: end; }
body.focus-os-page .focus-hero h1 { text-wrap: balance; }
body.focus-os-page .focus-hero p { text-wrap: pretty; }

body.focus-os-page .panel,
body.focus-os-page .future-suite,
body.focus-os-page .soundscape-panel {
  border-color: var(--v3-border);
  box-shadow: var(--v3-shadow);
}

body.focus-os-page .panel::after,
body.focus-os-page .future-suite::after,
body.focus-os-page .soundscape-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.045), transparent 26%, transparent 74%, rgba(255,255,255,.02));
  opacity: .7;
}

body.focus-os-page button,
body.focus-os-page input,
body.focus-os-page textarea,
body.focus-os-page select { -webkit-tap-highlight-color: transparent; }

body.focus-os-page button:focus-visible,
body.focus-os-page input:focus-visible,
body.focus-os-page textarea:focus-visible,
body.focus-os-page select:focus-visible,
body.focus-os-page a:focus-visible {
  outline: 2px solid var(--v3-b);
  outline-offset: 3px;
}

body.focus-os-page .primary-btn,
body.focus-os-page .secondary-btn,
body.focus-os-page .danger-btn,
body.focus-os-page .quick-row button,
body.focus-os-page .mode-card,
body.focus-os-page .future-card,
body.focus-os-page .soundscape-card,
body.focus-os-page .ai-plan,
body.focus-os-page .week-bar-wrap,
body.focus-os-page .cal-day,
body.focus-os-page .date-nav-btn,
body.focus-os-page .calendar-today-btn,
body.focus-os-page .calendar-month-label,
body.focus-os-page .target-check {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

body.focus-os-page .primary-btn:hover:not(:disabled),
body.focus-os-page .secondary-btn:hover:not(:disabled),
body.focus-os-page .danger-btn:hover:not(:disabled),
body.focus-os-page .quick-row button:hover:not(:disabled),
body.focus-os-page .date-nav-btn:hover:not(:disabled),
body.focus-os-page .calendar-today-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.focus-os-page .primary-btn:active:not(:disabled),
body.focus-os-page .secondary-btn:active:not(:disabled),
body.focus-os-page .danger-btn:active:not(:disabled),
body.focus-os-page .quick-row button:active:not(:disabled),
body.focus-os-page .future-card:active,
body.focus-os-page .mode-card:active,
body.focus-os-page .soundscape-card:active {
  transform: translateY(0) scale(.985);
}

/* Timer state */
body.focus-os-page .timer-panel {
  isolation: isolate;
}
body.focus-os-page .timer-panel.is-running {
  box-shadow: 0 30px 90px rgba(73, 69, 166, .2), var(--v3-shadow);
}
body.focus-os-page .timer-panel.is-running .ring-glow {
  opacity: .95;
  animation: v3-pulse 2.7s ease-in-out infinite;
}
body.focus-os-page .timer-panel.is-paused .ring-glow {
  opacity: .55;
  animation-duration: 5s;
}
body.focus-os-page .ring-progress {
  will-change: stroke-dashoffset;
}
body.focus-os-page .timer-core {
  min-width: 0;
}
body.focus-os-page .timer-core > div:first-child {
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: 0 4px 28px rgba(126, 108, 255, .12);
}
body.focus-os-page .breath.active span {
  animation: v3-breathe 4.8s ease-in-out infinite;
}
body.focus-os-page .status-dot.active {
  animation: v3-status 1.6s ease-in-out infinite;
}
body.focus-os-page .live-pill.running i {
  animation: v3-status 1.6s ease-in-out infinite;
}

/* AI Coach */
body.focus-os-page .ai-coach-card {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(141, 124, 255, .20);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(141,124,255,.11), rgba(33,212,253,.05));
  position: relative;
  overflow: hidden;
}
body.focus-os-page .ai-coach-card::before {
  content: "";
  position: absolute;
  inset: -50% 30% auto -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(141,124,255,.18), transparent 70%);
  pointer-events: none;
}
body.focus-os-page .ai-coach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
body.focus-os-page .ai-coach-head > span {
  color: #b0a5ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
body.focus-os-page .ai-coach-head button {
  border: 1px solid rgba(156,171,211,.14);
  background: rgba(255,255,255,.04);
  color: var(--v3-muted);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 9px;
  cursor: pointer;
}
body.focus-os-page .ai-coach-card p {
  position: relative;
  margin: 9px 0 6px;
  color: #d2d8e7;
  font-size: 11px;
  line-height: 1.58;
}
body.focus-os-page .ai-coach-card small {
  position: relative;
  display: block;
  padding: 0;
  color: var(--v3-dim);
  font-size: 8px;
  line-height: 1.45;
}
body.focus-os-page .ai-coach-card p.loading {
  opacity: .55;
  animation: v3-shimmer 1.15s linear infinite;
}

/* Target cards */
body.focus-os-page .daily-target-card {
  animation: v3-rise .34s ease both;
}
body.focus-os-page .daily-target-card.active {
  box-shadow: inset 0 0 0 1px rgba(141,124,255,.14), 0 12px 36px rgba(88, 82, 170, .1);
}
body.focus-os-page .daily-target-track {
  overflow: hidden;
}
body.focus-os-page .daily-target-track i {
  min-width: 0;
  transition: width .35s ease;
}

/* Progress */
body.focus-os-page .progress-stat,
body.focus-os-page .progress-card,
body.focus-os-page .metric-grid > div,
body.focus-os-page .target-progress-board-card,
body.focus-os-page .calendar-day-detail {
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.focus-os-page .progress-stat:hover,
body.focus-os-page .target-progress-board-card:hover {
  transform: translateY(-1px);
  border-color: rgba(141,124,255,.24);
}
body.focus-os-page .week-bar-wrap .week-bar {
  transform-origin: bottom center;
  animation: v3-grow .55s ease both;
}
body.focus-os-page .week-bar-wrap:hover .week-bar { filter: brightness(1.08); }
body.focus-os-page .calendar-subtitle {
  max-width: 680px;
  text-wrap: pretty;
}
body.focus-os-page .cal-day {
  position: relative;
  overflow: hidden;
}
body.focus-os-page .cal-day span,
body.focus-os-page .cal-day small {
  position: relative;
  z-index: 1;
}
body.focus-os-page .cal-day.future { opacity: .28; cursor: default; }
body.focus-os-page .cal-day.outside:not(.selected) { opacity: .45; }
body.focus-os-page .calendar-detail-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
body.focus-os-page .calendar-detail-main h4 { margin: 5px 0 0; font: 700 16px/1.2 'Space Grotesk', sans-serif; }
body.focus-os-page .calendar-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(72px, 1fr)); gap: 8px; }
body.focus-os-page .calendar-detail-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--v3-border);
  border-radius: 10px;
  color: var(--v3-dim);
  font-size: 8px;
  text-align: center;
}
body.focus-os-page .calendar-detail-stats b { color: var(--v3-text); font: 700 13px 'Space Grotesk', sans-serif; }
body.focus-os-page .calendar-detail-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
body.focus-os-page .calendar-detail-list span {
  display: grid;
  grid-template-columns: 8px auto 1fr;
  align-items: center;
  gap: 7px;
  color: #b4bdd0;
  font-size: 9px;
}
body.focus-os-page .calendar-detail-list i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--v3-a), var(--v3-b)); }
body.focus-os-page .calendar-detail-list b { color: #dce2ee; font-size: 10px; }
body.focus-os-page .calendar-detail-list small { padding: 0; color: var(--v3-dim); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.focus-os-page .calendar-empty-detail {
  border: 1px dashed var(--v3-border);
  padding: 14px;
  border-radius: 12px;
  color: var(--v3-dim);
  font-size: 10px;
  text-align: center;
}
body.focus-os-page .calendar-detail-note {
  margin-top: 9px;
  color: #8e99b2;
  font-size: 9px;
}

/* Soundscape */
body.focus-os-page .soundscape-panel.is-playing {
  border-color: rgba(33,212,253,.22);
}
body.focus-os-page .soundscape-card.selected {
  border-color: rgba(141,124,255,.45);
  background: linear-gradient(135deg, rgba(141,124,255,.11), rgba(255,255,255,.025));
}
body.focus-os-page .soundscape-panel.is-playing .soundscape-card.active .soundscape-icon {
  animation: v3-float 1.7s ease-in-out infinite;
}

/* Tool stage */
body.focus-os-page .future-tool-stage:not([hidden]) {
  animation: v3-rise .35s ease both;
}
body.focus-os-page .future-card.is-center {
  box-shadow: 0 20px 50px rgba(80, 73, 178, .16);
}
body.focus-os-page .future-dot { transition: transform .16s ease, width .16s ease; }
body.focus-os-page .future-dot.active { transform: scale(1.1); }
body.focus-os-page .dhyan-orb.running .dhyan-core { animation: v3-dhyan-core 4.8s ease-in-out infinite; }
body.focus-os-page .dhyan-orb.running::before { animation: v3-dhyan-orb 4.8s ease-in-out infinite; }

/* Fullscreen */
body.focus-os-page.is-fullscreen .focus-topbar { display: none !important; }
body.focus-os-page.is-fullscreen .focus-shell { max-width: 1500px; padding-top: 20px; }
body.focus-os-page.is-fullscreen .focus-hero { margin-bottom: 14px; }
body.focus-os-page.is-fullscreen .focus-hero h1 { font-size: clamp(34px, 4vw, 54px); }
body.focus-os-page.is-fullscreen .timer-panel { min-height: calc(100vh - 150px); }
body.focus-os-page.is-fullscreen .orb-wrap { width: min(64vh, 560px); }
body.focus-os-page.is-fullscreen .focus-shell > .bottom-grid,
body.focus-os-page.is-fullscreen .progress-os { display: none !important; }

/* Toasts */
body.focus-os-page .focus-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
body.focus-os-page .focus-toast {
  pointer-events: auto;
  border: 1px solid var(--v3-border);
  background: rgba(11, 16, 29, .92);
  color: #eaf0fc;
  padding: 11px 13px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(16px);
}
body.focus-os-page .focus-toast.show { opacity: 1; transform: translateY(0) scale(1); }
body.focus-os-page .focus-toast.error { border-color: rgba(255, 111, 127, .28); }

/* Completion feedback */
body.focus-os-page.phase-complete-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(circle at center, rgba(141,124,255,.18), transparent 38%);
  animation: v3-flash .65s ease both;
}

/* Mobile */
@media (max-width: 760px) {
  body.focus-os-page .focus-shell { padding-top: 20px; }
  body.focus-os-page .focus-hero { align-items: stretch; }
  body.focus-os-page .focus-hero h1 { text-wrap: pretty; }
  body.focus-os-page .calendar-detail-main { display: grid; gap: 10px; }
  body.focus-os-page .calendar-detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.focus-os-page .calendar-detail-list span { grid-template-columns: 7px auto; }
  body.focus-os-page .calendar-detail-list small { grid-column: 2; }
  body.focus-os-page .ai-coach-card { margin-top: 10px; }
  body.focus-os-page .soundscape-controls { gap: 8px; }
  body.focus-os-page .soundscape-autoplay { width: 100%; }
  body.focus-os-page .progress-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body.focus-os-page .progress-actions .danger-btn { grid-column: 1 / -1; }
  body.focus-os-page .progress-stat-grid { gap: 7px; }
  body.focus-os-page .progress-stat { min-height: 76px; }
  body.focus-os-page .calendar-controls { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 6px; }
  body.focus-os-page .calendar-today-btn { grid-column: 1 / -1; width: 100%; }
  body.focus-os-page .calendar-month-label { width: 100%; }
  body.focus-os-page .focus-toast-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

@media (max-width: 420px) {
  body.focus-os-page .mode-grid { grid-template-columns: 1fr; }
  body.focus-os-page .mini-actions { grid-template-columns: 1fr; }
  body.focus-os-page .mini-actions .primary-btn { grid-column: auto; }
  body.focus-os-page .shortcut-row { grid-template-columns: auto 1fr; }
  body.focus-os-page .shortcut-row span:nth-child(even) { text-align: right; }
  body.focus-os-page .future-carousel { grid-template-columns: 26px minmax(0,1fr) 26px; }
  body.focus-os-page .future-card { flex-basis: 86%; }
}

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

@keyframes v3-pulse { 0%,100% { transform: scale(.96); opacity: .65; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes v3-status { 0%,100% { transform: scale(.85); opacity: .72; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes v3-breathe { 0%,100% { transform: scale(.82); opacity: .7; } 50% { transform: scale(1.3); opacity: 1; } }
@keyframes v3-dhyan-core { 0%,100% { transform: scale(.94); } 50% { transform: scale(1.045); } }
@keyframes v3-dhyan-orb { 0%,100% { transform: scale(.96); opacity: .5; } 50% { transform: scale(1.06); opacity: .9; } }
@keyframes v3-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v3-grow { from { transform: scaleY(.2); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
@keyframes v3-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes v3-shimmer { 0% { opacity: .5; } 50% { opacity: .92; } 100% { opacity: .5; } }
@keyframes v3-flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* Light theme refinement */
html[data-focus-theme="light"] body.focus-os-page {
  --v3-bg-0: #f7f9fc;
  --v3-bg-1: #eef3fa;
  --v3-surface: rgba(255,255,255,.86);
  --v3-surface-2: rgba(255,255,255,.72);
  --v3-border: rgba(50,67,99,.12);
  --v3-text: #172033;
  --v3-muted: #5e6d87;
  --v3-dim: #7b879d;
  --v3-shadow: 0 22px 60px rgba(58, 73, 105, .14);
  background:
    radial-gradient(circle at 10% 0%, rgba(109,89,255,.10), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(33,212,253,.09), transparent 26%),
    linear-gradient(180deg, var(--v3-bg-0), var(--v3-bg-1));
}
html[data-focus-theme="light"] body.focus-os-page .focus-topbar { background: rgba(250,252,255,.8) !important; }
html[data-focus-theme="light"] body.focus-os-page .ai-coach-card p { color: #34425d; }
html[data-focus-theme="light"] body.focus-os-page .ai-coach-card small { color: #7b879d; }
html[data-focus-theme="light"] body.focus-os-page .focus-toast { background: rgba(255,255,255,.94); color: #1d2940; border-color: rgba(50,67,99,.13); }
html[data-focus-theme="light"] body.focus-os-page.phase-complete-flash::after { background: radial-gradient(circle at center, rgba(109,89,255,.12), transparent 40%); }

@media (max-width: 900px) {
  body.focus-os-page .calendar-detail-stats { width: 100%; }
}


/* =========================================================
   FOCUS OS V5 · INTELLIGENCE + MOTION LAYER
   ========================================================= */
:root{--f-accent:#8d7cff;--f-cyan:#21d4fd;--f-glass:rgba(255,255,255,.045);--f-glow:rgba(124,92,255,.22)}
body.focus-os-page{background:
 radial-gradient(800px 500px at 8% -5%,rgba(124,92,255,.17),transparent 60%),
 radial-gradient(900px 600px at 92% 2%,rgba(33,212,253,.10),transparent 60%),
 radial-gradient(700px 700px at 50% 80%,rgba(124,92,255,.055),transparent 65%),var(--f-bg);}
body.focus-os-page:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 70%);z-index:-1}
.panel,.analytics-card{transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.panel:hover,.analytics-card:hover{transform:translateY(-2px);border-color:rgba(141,124,255,.22);box-shadow:0 24px 70px rgba(0,0,0,.20)}
.primary-btn,.secondary-btn,.icon-btn,.ghost-btn,.mode-card,.future-card,.soundscape-card,.date-nav-btn,.calendar-today-btn,.ai-plan,.target-check{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.primary-btn:hover:not(:disabled),.secondary-btn:hover:not(:disabled),.icon-btn:hover,.ghost-btn:hover,.date-nav-btn:hover,.calendar-today-btn:hover{transform:translateY(-1px)}
.primary-btn:active:not(:disabled),.secondary-btn:active:not(:disabled),.future-card:active,.mode-card:active{transform:scale(.98)}
.orb-wrap:after{content:"";position:absolute;width:78%;height:78%;border-radius:50%;border:1px solid rgba(141,124,255,.12);animation:orbitPulse 4.8s ease-in-out infinite}
.timer-panel.is-running .ring-glow{animation:pulse 2.2s ease-in-out infinite, hueDrift 7s linear infinite}
.timer-panel.is-running .timer-core>div:first-child{animation:timerFloat 3s ease-in-out infinite}
.timer-panel.is-paused .timer-core>div:first-child{opacity:.86}
@keyframes orbitPulse{0%,100%{transform:scale(.96);opacity:.45}50%{transform:scale(1.03);opacity:.95}}
@keyframes hueDrift{0%{filter:blur(22px) hue-rotate(0)}100%{filter:blur(22px) hue-rotate(35deg)}}
@keyframes timerFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}

.smart-queue-card,.focus-health-card{margin-top:12px;padding:13px;border:1px solid rgba(124,92,255,.16);border-radius:16px;background:linear-gradient(150deg,rgba(124,92,255,.08),rgba(33,212,253,.03));position:relative;overflow:hidden}
.smart-queue-card:after,.focus-health-card:after{content:"";position:absolute;inset:auto -30% -65% 20%;height:120px;background:radial-gradient(circle,rgba(33,212,253,.12),transparent 66%);pointer-events:none}
.smart-queue-head,.focus-health-head{display:flex;align-items:center;justify-content:space-between;color:#8f9ab2;font-size:9px;letter-spacing:.12em;font-weight:800}
.queue-main{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin-top:12px}.queue-index{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(124,92,255,.15);border:1px solid rgba(124,92,255,.28);font:800 13px 'Space Grotesk';color:#c0b7ff}.queue-main strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-main small{display:block;color:#7e8aa4;font-size:9px;margin-top:4px}.queue-actions{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.queue-actions .text-btn{font-size:9px}
.focus-health-head strong{font:800 22px 'Space Grotesk';color:#e8ecf6}.health-meter{height:6px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden;margin:10px 0}.health-meter i{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#ffbf69,#8d7cff,#21d4fd);transition:width .5s ease}.focus-health-card p{margin:0;color:#8590aa;font-size:10px;line-height:1.55}

.sound-visualizer{height:40px;display:flex;align-items:flex-end;justify-content:center;gap:4px;margin-top:10px;opacity:.45}.sound-visualizer span{width:5px;height:10px;border-radius:5px;background:linear-gradient(to top,#7f6dff,#21d4fd);transform-origin:bottom;animation:wave 1.1s ease-in-out infinite}.sound-visualizer span:nth-child(2n){animation-delay:-.2s}.sound-visualizer span:nth-child(3n){animation-delay:-.4s}.sound-visualizer span:nth-child(4n){animation-delay:-.65s}.sound-visualizer span:nth-child(5n){animation-delay:-.85s}.sound-playing .sound-visualizer{opacity:1}.sound-playing .sound-visualizer span{animation-duration:.72s}
@keyframes wave{0%,100%{height:7px;opacity:.45}50%{height:32px;opacity:1}}

.advanced-analytics{display:grid;grid-template-columns:1.35fr .9fr .9fr;gap:14px;margin:16px 0}.analytics-card{border:1px solid var(--f-line);background:linear-gradient(180deg,rgba(255,255,255,.036),rgba(255,255,255,.018));border-radius:20px;padding:18px;position:relative;overflow:hidden}.analytics-wide{grid-column:span 1}.advanced-analytics .analytics-wide:first-child{grid-column:span 2}.advanced-analytics .analytics-wide:last-child{grid-column:1/-1}.analytics-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.analytics-head h3{margin:3px 0 0;font:700 18px 'Space Grotesk'}.analytics-head p{margin:4px 0 0;color:#707d97;font-size:9px}.analytics-total{font:800 18px 'Space Grotesk';color:#bfb6ff}.trend-chart{display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:9px;height:190px;margin-top:20px;padding-top:14px}.trend-col{height:100%;display:grid;grid-template-rows:1fr auto auto;align-items:end;gap:5px;text-align:center}.trend-col i{display:block;width:100%;max-width:34px;justify-self:center;border-radius:9px 9px 3px 3px;background:linear-gradient(180deg,#9a8bff,#21d4fd);box-shadow:0 10px 30px rgba(100,90,255,.15);animation:growBar .55s ease both;transform-origin:bottom}.trend-col:nth-child(2) i{animation-delay:.04s}.trend-col:nth-child(3) i{animation-delay:.08s}.trend-col:nth-child(4) i{animation-delay:.12s}.trend-col:nth-child(5) i{animation-delay:.16s}.trend-col:nth-child(6) i{animation-delay:.20s}.trend-col:nth-child(7) i{animation-delay:.24s}.trend-col span{font-size:8px;color:#69758e}.trend-col b{font-size:8px;color:#9ca8bf}
@keyframes growBar{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.hour-chart{height:160px;display:grid;grid-template-columns:repeat(6,1fr);gap:7px;align-items:end;margin-top:18px}.hour-col{height:100%;display:grid;grid-template-rows:1fr auto;gap:7px;align-items:end;text-align:center}.hour-col i{display:block;min-height:4px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#21d4fd,#8d7cff);animation:growBar .5s ease both}.hour-col span{font-size:8px;color:#727e95}.focus-heatmap{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;margin-top:18px}.focus-heatmap i{aspect-ratio:1;border-radius:5px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.025);transition:transform .16s ease}.focus-heatmap i:hover{transform:scale(1.18)}.heat-1{background:rgba(33,212,253,.18)!important}.heat-2{background:rgba(33,212,253,.36)!important}.heat-3{background:rgba(141,124,255,.62)!important}.heat-4{background:linear-gradient(135deg,#8d7cff,#21d4fd)!important;box-shadow:0 0 12px rgba(33,212,253,.14)}.mode-mix{display:grid;gap:9px;margin-top:16px}.mix-row{display:grid;grid-template-columns:110px 1fr 25px;align-items:center;gap:8px}.mix-row span{font-size:9px;color:#7f8ca5;letter-spacing:.04em}.mix-row div{height:7px;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden}.mix-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8d7cff,#21d4fd);transition:width .5s ease}.mix-row b{font:800 10px 'Space Grotesk';text-align:right;color:#b9c2d4}.analytics-insights{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.analytics-insights span{padding:10px;border:1px solid rgba(255,255,255,.055);border-radius:12px;background:rgba(255,255,255,.018);font-size:9px;color:#7e8aa2}.analytics-insights b{display:block;color:#e2e7f2;font:800 16px 'Space Grotesk';margin-bottom:3px}
.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.weekly-review{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.weekly-review>div{padding:12px;border:1px solid rgba(255,255,255,.055);border-radius:12px;background:rgba(255,255,255,.018)}.weekly-review strong{display:block;font:800 20px 'Space Grotesk';color:#e9edf7}.weekly-review span{display:block;color:#77839b;font-size:8px;margin-top:3px}.weekly-review p{grid-column:1/-1;margin:2px 0 0;color:#8894ab;line-height:1.6;font-size:10px}.review-grade{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,rgba(141,124,255,.22),rgba(33,212,253,.12));border:1px solid rgba(141,124,255,.26);font:800 15px 'Space Grotesk';color:#d5d0ff}.note-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.note-grid label,.note-wide{display:block;font-size:9px;color:#78849d}.note-grid select,.note-grid input,.note-wide textarea{width:100%;margin-top:6px;border:1px solid var(--f-line);background:#0a0f1b;color:var(--f-text);border-radius:11px;padding:10px;outline:none}.note-wide{margin-top:10px}.note-wide textarea{resize:vertical;min-height:76px}.privacy-note{display:block;color:#65718b;font-size:8px;margin-top:8px}
body.focus-os-page[data-focus-mode="running"] .focus-hero,.focus-shield-active .focus-hero{opacity:.72}.focus-shield-active .focus-grid .control-panel,.focus-shield-active .focus-grid .insight-panel{filter:saturate(.88)}

/* Fix accidental tiny-text inheritance from shared styles for v5 controls. */
body.focus-os-page .soundscape-panel small,body.focus-os-page .future-tool-stage small{padding:0}

@media(max-width:1100px){.advanced-analytics{grid-template-columns:1fr 1fr}.advanced-analytics .analytics-wide:first-child{grid-column:1/-1}.advanced-analytics .analytics-wide:last-child{grid-column:1/-1}.analytics-insights{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){
  .advanced-analytics,.review-grid{grid-template-columns:1fr}.advanced-analytics .analytics-wide:first-child,.advanced-analytics .analytics-wide:last-child{grid-column:auto}.analytics-card{padding:15px}.trend-chart{height:155px;gap:6px}.hour-chart{height:135px}.focus-heatmap{grid-template-columns:repeat(10,1fr);gap:4px}.analytics-insights{grid-template-columns:1fr 1fr}.weekly-review{grid-template-columns:1fr 1fr}.weekly-review p{font-size:9px}.note-grid{grid-template-columns:1fr}.smart-queue-card,.focus-health-card{padding:12px}.sound-visualizer{height:30px}.sound-visualizer span{width:4px}.focus-hero h1{font-size:42px}.timer-panel{min-height:540px}.orb-wrap{width:min(100%,350px)}
}
@media(max-width:420px){.analytics-insights{grid-template-columns:1fr}.weekly-review{grid-template-columns:1fr}.trend-col b{font-size:7px}.focus-heatmap{gap:3px}.analytics-head h3{font-size:16px}}

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

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.exam-day{position:relative}.exam-use-day{margin-top:8px;font-size:8px!important;padding:7px 9px!important}.exam-use-day:hover{border-color:rgba(33,212,253,.42)!important;color:#d8f9ff!important}

/* Final scoped repair for SEO support content injected into Focus OS. */
body.focus-os-page .mv-seo-support {
  max-width: 1100px;
  margin: 28px auto 56px;
  padding: 20px 22px;
  border: 1px solid var(--f-line) !important;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,24,41,.92), rgba(11,16,29,.92)) !important;
  color: var(--f-text) !important;
  box-shadow: var(--f-shadow);
}
body.focus-os-page .mv-seo-support h2 {
  margin: 0 0 8px;
  color: var(--f-text) !important;
  font: 700 20px/1.2 'Space Grotesk', sans-serif;
}
body.focus-os-page .mv-seo-support p {
  margin: 0 0 14px;
  color: var(--f-muted) !important;
  line-height: 1.6;
}
body.focus-os-page .mv-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.focus-os-page .mv-seo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--f-line) !important;
  border-radius: 11px;
  background: rgba(255,255,255,.045) !important;
  color: var(--f-text) !important;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
body.focus-os-page .mv-seo-links a:hover,
body.focus-os-page .mv-seo-links a:focus-visible {
  background: rgba(124,92,255,.14) !important;
  border-color: rgba(124,92,255,.45) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
html[data-focus-theme="light"] body.focus-os-page .mv-seo-support {
  background: linear-gradient(180deg, #fff, #f7f9fd) !important;
  color: #101828 !important;
  border-color: rgba(16,24,40,.12) !important;
}
html[data-focus-theme="light"] body.focus-os-page .mv-seo-support h2 { color: #101828 !important; }
html[data-focus-theme="light"] body.focus-os-page .mv-seo-support p { color: #667085 !important; }
html[data-focus-theme="light"] body.focus-os-page .mv-seo-links a {
  background: #fff !important;
  border-color: rgba(16,24,40,.12) !important;
  color: #101828 !important;
}
html[data-focus-theme="light"] body.focus-os-page .mv-seo-links a:hover,
html[data-focus-theme="light"] body.focus-os-page .mv-seo-links a:focus-visible {
  background: #f2efff !important;
  border-color: rgba(124,92,255,.35) !important;
  color: #24184f !important;
}
@media (max-width: 640px) {
  body.focus-os-page .mv-seo-support { margin: 20px 14px 40px; padding: 16px; }
  body.focus-os-page .mv-seo-links { display: grid; grid-template-columns: 1fr; }
  body.focus-os-page .mv-seo-links a { justify-content: center; }
}
