:root{color-scheme:dark;--bg:#101718;--panel:#182122;--line:#2c3939;--text:#e4ece8;--muted:#98aaa6;--accent:#a3e7cb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 "Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:5px}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,p{margin-top:0}h1{font-size:30px;margin:4px 0 0;letter-spacing:1px}h2{font-size:18px;font-weight:600;margin-bottom:15px}small,.small{font-size:12px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{max-width:1660px;margin:auto;display:grid;grid-template-columns:236px 1fr;min-height:100vh}aside{border-right:1px solid var(--line);padding:38px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:19px}.brand b{font-size:40px;color:var(--accent);line-height:1}.brand small{display:block;font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-top:4px}.nav-label{font-size:12px;letter-spacing:2px;color:var(--muted);margin:64px 14px 18px}nav{display:grid;gap:10px}nav button{display:flex;gap:16px;align-items:center;text-align:left;padding:13px 16px;border-radius:8px;color:var(--muted);font-size:20px}nav button span{font-size:14px}nav button.active{background:#253c34;color:var(--accent)}nav button:hover{background:#21302d}.sidebar-bottom{margin-top:auto;padding-top:80px}.badge{border:1px solid var(--line);border-radius:5px;padding:4px 9px;color:var(--accent);font-size:12px;letter-spacing:0}.sidebar-bottom p{font-size:12px;color:var(--muted);margin-top:20px}.sidebar-bottom small{color:#92a59b}main{padding:40px 48px 20px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.eyebrow{font-size:12px;letter-spacing:3px;color:var(--accent)}#date-label{font-size:14px;color:var(--muted)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px}.focus-layout{display:grid;grid-template-columns:minmax(350px,1.18fr) minmax(280px,1fr);gap:24px}.timer-panel{padding:25px 32px 20px;text-align:center;background:radial-gradient(ellipse at 50% 35%,#213330 0,var(--panel) 65%)}.panel-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;letter-spacing:2px}.mode-tabs{display:flex;justify-content:center;gap:5px;background:#111b1b;border:1px solid var(--line);border-radius:8px;padding:5px;width:max-content;max-width:100%;margin:27px auto 13px}.mode-tabs button{padding:7px 20px;color:var(--muted);font-size:14px;border-radius:5px}.mode-tabs button.selected{background:#30463d;color:var(--accent)}.clock-wrap{position:relative;width:min(310px,100%);aspect-ratio:1;margin:10px auto 16px}.clock-wrap svg{width:100%;height:100%;transform:rotate(-90deg)}.clock-wrap circle{fill:none;stroke-width:2;stroke:var(--accent);stroke-dasharray:879.646;stroke-linecap:round}.clock-wrap .track{stroke:#364641}.clock-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.clock-content span{font-size:12px;color:var(--muted)}#timer{font-size:68px;font-weight:400;line-height:1.55;letter-spacing:-3px;font-variant-numeric:tabular-nums}.task-label{display:block;font-size:14px;color:var(--muted);margin-bottom:6px}select,input,textarea{border:1px solid #3c4c48;background:#111b1b;color:var(--text);border-radius:7px;padding:10px 12px;min-width:0}#active-task{width:80%;font-size:14px}.timer-actions{display:flex;align-items:center;justify-content:center;gap:18px;margin:22px 0}.primary{background:var(--accent);color:#132b22;border-radius:7px;padding:12px 24px;font-weight:700;font-size:14px}.primary:hover{background:#c1f4df}#start{min-width:170px}.icon-button{width:40px;height:40px;border:1px solid #41534b;border-radius:50%;font-size:22px}.timer-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px;font-size:12px;color:var(--muted)}#round-dots{color:var(--accent);letter-spacing:3px}.right-column{display:flex;flex-direction:column;gap:24px}.companion{min-height:310px;padding:24px;display:flex;flex-direction:column}.companion-empty{flex:1;text-align:center;padding:32px 0 26px}.empty-symbol{border:1px dashed #52625c;width:46px;height:46px;border-radius:50%;margin:0 auto 19px;font-size:24px;color:#899e94;display:grid;place-items:center}.companion h2{font-size:16px;margin-bottom:7px;font-weight:400}.companion p{font-size:12px;color:var(--muted);margin:0}.companion-footer{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px;text-align:center}.tasks{padding:23px;flex:1}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.section-heading h2{margin:0}.muted{color:var(--muted);font-size:14px}#task-form{display:flex;margin:18px 0 14px;gap:7px}#task-input{width:100%;font-size:14px}.add-button{background:#30463d;color:var(--accent);border-radius:7px;width:42px;flex-shrink:0;font-size:22px}.task-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:10px 0;font-size:14px}.task-row input{accent-color:var(--accent);width:17px;height:17px}.task-name{flex:1;overflow-wrap:anywhere;cursor:pointer}.task-row.done .task-name{text-decoration:line-through;color:var(--muted)}.task-row button{color:var(--muted);font-size:15px}.empty-text{color:var(--muted);text-align:center;font-size:14px;padding:20px 5px}.today-strip{display:grid;grid-template-columns:1fr 1fr 1.3fr;border:1px solid var(--line);border-radius:12px;margin-top:24px;padding:22px 0}.today-strip>div{padding:0 28px;border-right:1px solid var(--line)}.today-strip>div:last-child{border:0}.today-strip span{display:block;font-size:14px;color:var(--muted)}.today-strip strong{display:block;font-size:29px;line-height:1.5;font-weight:500}.today-strip small{font-size:12px;color:var(--muted)}.goal-track{height:3px;background:#35463e;margin-top:7px}.goal-track div{height:100%;background:var(--accent);max-width:100%}footer{margin-top:34px;display:flex;justify-content:space-between;font-size:12px;color:#90a399}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-panel{padding:26px;margin-bottom:20px}.settings-panel label:not(.file-button){display:flex;justify-content:space-between;align-items:center;margin:15px 0;gap:20px;font-size:14px}.settings-panel input[type=number]{width:90px}.settings-panel .check-label{justify-content:flex-start!important}.secondary{border:1px solid #4a5f55;border-radius:7px;padding:9px 15px;font-size:14px;display:inline-block}.file-button{cursor:pointer;margin:12px 0}.danger{color:#f4aaaa;border:1px solid #71504d;padding:9px 15px;border-radius:7px;font-size:14px}.record-card{padding:22px;margin-top:16px}.record-meta{font-size:12px;color:var(--muted)}.record-card textarea{width:100%;min-height:80px;margin-top:14px;font-size:14px}.record-card h2{overflow-wrap:anywhere;margin:6px 0}.record-card strong{color:var(--accent)}.stats-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.stat{padding:25px}.stat strong{display:block;font-size:36px;color:var(--accent)}.chart-panel{padding:28px}.weekly-chart{display:flex;gap:18px;height:280px;padding-top:25px;align-items:end}.chart-column{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;gap:9px;font-size:12px;color:var(--muted)}.chart-bar{width:65%;background:#79b89e;border-radius:5px 5px 0 0;min-height:3px}.chart-column:last-child .chart-bar{background:var(--accent)}dialog{background:#1d2a26;color:var(--text);border:1px solid #506158;border-radius:14px;padding:30px;width:440px;max-width:calc(100% - 32px)}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}dialog textarea{width:100%;height:120px;margin:12px 0 20px}dialog label{font-size:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#c4efdb;color:#143025;padding:12px 22px;border-radius:8px;box-shadow:0 5px 30px #0005;max-width:90%;z-index:10;font-size:14px}.warning{background:#493629;border:1px solid #876844;padding:12px;border-radius:8px;margin-bottom:15px;font-size:14px}@media(max-width:1150px){.shell{grid-template-columns:190px 1fr}aside{padding:30px 15px}main{padding:30px 25px}.focus-layout{gap:16px;grid-template-columns:minmax(290px,1.1fr) minmax(250px,1fr)}.timer-panel{padding:22px 18px}.brand{font-size:16px}.brand small{font-size:9px}.mode-tabs button{padding:7px 15px}#timer{font-size:59px}.today-strip>div{padding:0 20px}}@media(max-width:900px){.shell{display:block}aside{padding:18px 22px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:18px}.brand small{display:none}.brand b{font-size:28px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;margin-top:20px;gap:5px;justify-content:space-between}nav button{padding:7px 10px;gap:7px}nav button span{font-size:14px}.focus-layout{grid-template-columns:1fr 1fr}main{padding:25px 22px}.timer-panel{padding:20px 12px}.mode-tabs button{padding:6px 12px}.settings-grid{grid-template-columns:1fr}}@media(max-width:650px){.focus-layout{display:flex;flex-direction:column}.timer-panel{padding:23px}.clock-wrap{width:285px}.companion{min-height:230px}.companion-empty{padding:22px 0}.right-column{gap:16px}.today-strip{grid-template-columns:1fr 1fr;padding:18px 0;gap:16px}.today-strip>div:nth-child(2){border:0}.today-strip>div:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:15px}h1{font-size:25px}.eyebrow{font-size:12px;letter-spacing:1px}#date-label{font-size:12px;max-width:100px;text-align:right}nav button{font-size:17px;padding:8px 5px;gap:5px}nav button span{font-size:12px}main{padding:24px 16px}aside{padding:16px}.stats-summary{gap:8px}.stat{padding:15px 10px}.stat strong{font-size:25px}.stat .muted{font-size:12px}.weekly-chart{gap:8px}.chart-panel{padding:20px 12px}footer{font-size:12px;gap:12px;flex-wrap:wrap}.timer-foot{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Daylight theme: airy blue, white and clear cyan. */
:root{color-scheme:light;--bg:#edf7ff;--panel:#ffffff;--line:#d8e7f0;--text:#243c54;--muted:#61778b;--accent:#147fba}
body{background:radial-gradient(ellipse at 85% 0%,#ddfaff 0,transparent 48%),radial-gradient(ellipse at 5% 90%,#e5edff 0,transparent 45%),#f2f8fd}
.panel{background:rgba(255,255,255,.88);border-color:#fff;box-shadow:0 5px 24px #397ba30a;border-radius:20px}
.brand b{color:#189bc5}.badge{background:#e8f8ff;border-color:#ccebf7;color:#14759b}.sidebar-bottom small{color:var(--muted)}
nav button.active{background:#e0f3ff;color:#137cab}nav button:hover{background:#edf7fe}.eyebrow{color:#3186ad}
.timer-panel{background:radial-gradient(ellipse at 50% 42%,#effaff 0,#fff 70%)}
.mode-tabs{background:#edf5fb;border-color:transparent;border-radius:12px}.mode-tabs button{border-radius:8px}.mode-tabs button.selected{background:#fff;color:#147bac;box-shadow:0 2px 8px #2b739615}
.clock-wrap .track{stroke:#dceef8}.clock-wrap circle{stroke:#46b8dc;stroke-width:3}#timer{color:#244761;font-weight:500;letter-spacing:-2px}.clock-content span{color:#57758c}
select,input,textarea{background:#f8fcff;border-color:#d8e7f0;color:var(--text)}input::placeholder,textarea::placeholder{color:#748a9b}
.primary{background:#168fc6;color:#fff;box-shadow:0 4px 12px #168fc622;border-radius:10px}.primary:hover{background:#087cb2}.icon-button{border-color:#d2e5f0;color:#3882a8;background:#fff}.icon-button:hover{background:#edf9ff}
.add-button{background:#e2f5ff;color:#1685b9;border-radius:9px}.empty-symbol{border-color:#a8d6e9;color:#6eb6d2;background:#f1fbff}.companion{background:linear-gradient(135deg,#fff,#f0fbff)}.companion h2{color:#466c83}.companion-footer{border-color:#deeff5}
.today-strip{background:#ffffffb8;border-color:#fff;box-shadow:0 5px 24px #397ba308;border-radius:16px}.today-strip strong{color:#24516f}.goal-track{background:#dceef7;border-radius:4px}.goal-track div{background:#55b9dd;border-radius:4px}footer{color:#648297}.secondary{background:#fff;border-color:#cbdfe9;color:#386884}.secondary:hover{background:#f0faff}.danger{color:#b54452;background:#fff6f7;border-color:#f0d4d8}.chart-bar{background:#b9dfef}.chart-column:last-child .chart-bar{background:#50b4dc}
dialog{background:#fff;color:var(--text);border-color:#d2e7f1;box-shadow:0 20px 90px #1e52652b}dialog::backdrop{background:#294d6455}#toast{background:#e5f7ff;color:#1b5774;border:1px solid #b8e3f3;box-shadow:0 6px 24px #27648620}.warning{background:#fff6df;border-color:#f0d69b;color:#745422}
/* On laptops the workspace follows the available height, not a fixed tall card. */
@media(min-width:901px) and (min-height:620px){
 .shell{max-width:none;display:flex;flex-direction:column;height:100dvh;min-height:0}
 aside{height:72px;flex:none;padding:0 32px;border-right:0;border-bottom:1px solid #d8e9f2;background:#ffffffb8;flex-direction:row;align-items:center;gap:36px}
 .brand{font-size:19px;gap:10px;flex-shrink:0}.brand b{font-size:32px}.brand small{font-size:9px;letter-spacing:1.8px;margin-top:0}.nav-label{display:none}
 nav{display:flex;gap:6px;margin:0}nav button{padding:9px 17px;gap:9px;font-size:20px;border-radius:10px}nav button span{font-size:14px}
 .sidebar-bottom{margin:0 0 0 auto;padding:0}.sidebar-bottom p,.sidebar-bottom small{display:none}.sidebar-bottom .badge{white-space:nowrap}
 main{width:100%;max-width:1800px;margin:0 auto;padding:18px 32px 12px;flex:1;min-height:0;display:flex;flex-direction:column}
 header{height:50px;flex:none;margin-bottom:14px}h1{font-size:25px;margin:0}.eyebrow{font-size:10px;letter-spacing:2.3px}.view{min-height:0;flex:1;overflow:auto;scrollbar-gutter:stable}
 #view-focus{display:grid;grid-template-rows:minmax(0,1fr) 78px;gap:14px;overflow:visible;scrollbar-gutter:auto}
 .focus-layout{min-height:0;grid-template-columns:minmax(360px,1.12fr) minmax(300px,1fr);gap:20px}
 .timer-panel{min-height:0;padding:16px 28px;display:grid;grid-template-rows:20px 38px minmax(100px,1fr) 18px 36px 44px 22px;gap:4px;justify-items:center}
 .timer-panel>.panel-top{width:100%}.mode-tabs{margin:0;padding:4px;align-self:center}.mode-tabs button{padding:4px 23px}
 .clock-wrap{width:100%;height:100%;min-height:0;aspect-ratio:auto;margin:0}.clock-wrap svg{max-width:100%;height:100%;display:block;margin:auto}
 .clock-content #timer{font-size:clamp(46px,7.5vh,78px);line-height:1.4}.clock-content span{font-size:12px}
 .task-label{font-size:12px;margin:0}#active-task{width:min(340px,85%);height:36px;padding:5px 12px}
 .timer-actions{margin:0;gap:20px;align-self:center}.timer-actions .primary{padding:10px 28px;min-width:190px}.icon-button{width:36px;height:36px}
 .timer-foot{width:100%;padding-top:4px;font-size:12px}.right-column{min-height:0;display:grid;grid-template-rows:minmax(140px,.9fr) minmax(170px,1fr);gap:16px}
 .companion{min-height:0;padding:18px 22px}.companion-empty{min-height:0;padding:6px 0;display:flex;flex-direction:column;justify-content:center}.empty-symbol{width:38px;height:38px;margin:0 auto 10px;font-size:22px}.companion h2{margin-bottom:5px}.companion-footer{padding-top:8px}.tasks{padding:18px 22px;min-height:0;display:flex;flex-direction:column}.tasks .section-heading{flex:none}.tasks h2{font-size:17px}#task-form{margin:12px 0 8px;flex:none}#task-input{padding:8px 12px}#task-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.empty-text{padding:12px 4px;margin:0}.task-row{padding:8px 0}
 .today-strip{margin:0;padding:12px 0;align-items:center;grid-template-columns:1fr 1fr 1.3fr}.today-strip>div{padding:0 28px}.today-strip span{font-size:12px}.today-strip strong{font-size:25px;line-height:1.25}.goal-track{margin-top:5px}.today-strip>div:last-child{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px}.today-strip>div:last-child .goal-track{grid-column:1/-1}
 footer{flex:none;margin-top:10px;font-size:11px;line-height:18px}.settings-grid{gap:18px}.settings-panel{padding:20px;margin-bottom:14px}.settings-panel label:not(.file-button){margin:12px 0}.settings-panel p{font-size:14px}.chart-panel{padding:22px}.weekly-chart{height:clamp(210px,34vh,340px)}
}
@media(min-width:901px) and (max-width:1150px){aside{padding-left:22px;padding-right:22px;gap:20px}nav button{padding:9px 12px}.sidebar-bottom .badge{font-size:11px}.brand{font-size:17px}main{padding-left:24px;padding-right:24px}}
@media(min-width:901px) and (min-height:620px) and (max-height:720px){aside{height:60px}main{padding-top:12px}header{height:43px;margin-bottom:10px}.timer-panel{padding:12px 22px;grid-template-rows:18px 34px minmax(100px,1fr) 16px 32px 40px 20px;gap:3px}.clock-content #timer{font-size:46px}.clock-content span{font-size:11px}.companion{padding:12px 20px}.empty-symbol{width:30px;height:30px;margin-bottom:5px}.companion-footer{font-size:11px}.tasks{padding:12px 20px}.right-column{gap:12px}#view-focus{grid-template-rows:minmax(0,1fr) 68px;gap:10px}.today-strip{padding:8px 0}.today-strip strong{font-size:23px}footer{margin-top:6px}}
@media(max-width:900px){aside{background:#ffffffba}main{padding-top:20px}.timer-panel{background:radial-gradient(ellipse at 50% 35%,#ecf9ff,#fff 72%)}.today-strip{background:#fff}.sidebar-bottom{display:none}}
@media(max-width:650px){.clock-wrap{width:245px}.timer-panel{padding:20px}.mode-tabs{margin-top:18px}.timer-actions{margin:16px 0}.companion{min-height:210px}.panel{border-radius:16px}header{margin-bottom:22px}}

/* Functional controls and dialogs */
.timer-actions .icon-button{width:auto;min-width:68px;border-radius:9px;font-size:18px;display:flex;gap:5px;align-items:center;justify-content:center;padding:0 9px}.icon-button span{font-size:12px}#edit-goal{font-size:12px;color:#147fba;border-bottom:1px dashed #80b7d0;padding:0 3px}.task-row .task-name{font-size:14px;color:var(--text);text-align:left;padding:2px 0;white-space:normal}.task-name:hover{color:var(--accent);text-decoration:underline}.task-name[aria-pressed=true]{color:var(--accent);font-weight:600}.task-row button:not(.task-name){min-width:32px;min-height:32px;border-radius:6px}.task-row button:hover{background:#e9f7ff}#edit-value{display:block;width:100%;margin:10px 0 24px}#backup-dialog{width:620px;max-height:90dvh;overflow:auto}#backup-text{height:200px;font:13px/1.5 monospace}.backup-actions{display:flex;gap:10px;flex-wrap:wrap}#toast{z-index:2147483647;pointer-events:none}dialog #toast{position:fixed}button:focus-visible{outline:2px solid #147fba;outline-offset:3px}.empty-symbol{border-style:solid;border-color:transparent;background:none;cursor:default}@media(max-width:650px){.timer-actions{gap:10px}.timer-actions .primary{min-width:140px;padding:12px 16px}.timer-actions .icon-button{min-width:58px}}
/* Decorative timer graphics must never cover or intercept controls. */
.clock-wrap{pointer-events:none;overflow:hidden}
.clock-wrap svg{transform:none;pointer-events:none}
.clock-wrap circle{transform:rotate(-90deg);transform-origin:150px 150px;pointer-events:none}

/* Chisaki focus scene */
.companion-preview{flex:1;min-height:0;display:grid;grid-template-columns:45% 1fr;align-items:center;gap:8px;overflow:hidden}.companion-preview img{width:100%;height:100%;min-height:0;max-height:190px;object-fit:cover;pointer-events:none}.companion-preview h2{font-size:16px;margin:0 0 8px}.companion-preview p{margin-bottom:12px}.companion-preview .secondary{font-size:12px;padding:6px 10px}
body.focus-stage-open{overflow:hidden}.focus-stage{position:fixed;inset:0;z-index:1000;height:100dvh;width:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:24px 4vw 18px;background:radial-gradient(ellipse at 25% 35%,#e9f8ff 0,transparent 55%),linear-gradient(125deg,#f5faff,#fff 63%,#f1faff);color:var(--text);overflow:auto}.stage-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;height:48px;max-width:none}.stage-brand{display:flex;align-items:center;gap:12px;font-size:22px;color:#228ab3}.stage-brand>span:first-child{font-size:17px;color:var(--text);font-weight:600}.stage-divider{color:#c1d7e4;font-weight:300}.stage-companion{font-size:13px;color:var(--muted)}.stage-top-actions{display:flex;gap:10px}.stage-top-actions button{background:#ffffffa8;font-size:13px}.stage-layout{display:grid;grid-template-columns:1.12fr 1fr;align-items:center;gap:5vw;min-height:0}.focus-character{height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.character-crop{width:100%;height:calc(100% - 78px);max-height:710px;min-height:0;overflow:hidden;pointer-events:none}.character-crop img{width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;user-select:none}.character-caption{text-align:center;flex:none;padding-bottom:10px}.character-caption>span{font-size:22px;letter-spacing:4px;font-weight:600;color:#324e68}.character-caption p{font-size:13px;color:var(--muted);margin:5px 0 0}.stage-timer{max-width:590px;width:100%;padding-right:2vw;text-align:center}.stage-timer>.eyebrow{font-size:13px;letter-spacing:3px}.stage-timer h2{font-size:21px;font-weight:400;color:#59748a;margin:22px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-timer #stage-time{font-size:clamp(76px,9.4vw,168px);line-height:1.4;font-weight:300;letter-spacing:-5px;font-variant-numeric:tabular-nums;color:#244b68}.stage-progress{height:3px;background:#dfeef5;width:75%;margin:12px auto 26px;border-radius:4px;overflow:hidden}.stage-progress div{height:100%;background:#57b6d6;max-width:100%}#stage-status{color:#687f91;font-size:14px;margin-bottom:32px}.stage-controls{display:flex;justify-content:center;gap:14px}.stage-controls .primary{min-width:166px;padding:14px 30px;font-size:16px}.stage-controls .secondary{padding:13px 24px;background:#ffffffaa;font-size:14px}.stage-reset{font-size:13px;color:#6b8294;margin-top:22px;padding:8px 15px;border-radius:8px}.stage-reset:hover{background:#eaf5fb}.stage-footer{margin:0;height:28px;font-size:12px;letter-spacing:.3px;align-items:center;gap:16px;color:#7890a1}.focus-stage-open .shell{pointer-events:none}html:fullscreen,html:fullscreen body{width:100%;height:100%;background:#f5faff}
@media(min-width:901px) and (max-height:760px){.focus-stage{padding-top:14px;padding-bottom:10px}.stage-header{height:40px}.character-crop{height:calc(100% - 64px)}.stage-timer h2{margin:10px 0 0}.stage-timer #stage-time{font-size:clamp(76px,9vw,136px)}.stage-progress{margin:6px auto 18px}#stage-status{margin-bottom:20px}.stage-reset{margin-top:12px}}
@media(max-width:900px){.focus-stage{padding:16px 22px}.stage-layout{gap:12px;grid-template-columns:1fr 1fr}.stage-brand{gap:8px}.stage-companion,.stage-divider{display:none}.stage-timer{padding:0}.stage-timer #stage-time{font-size:clamp(60px,10vw,105px)}.stage-timer h2{font-size:18px}.stage-controls{gap:8px}.stage-controls .primary{min-width:120px;padding:12px 18px}.stage-controls .secondary{padding:12px 16px}.character-caption p{max-width:240px}.stage-footer span:last-child{display:none}}
@media(max-width:600px) and (orientation:portrait){.focus-stage{padding:12px 18px 10px;grid-template-rows:40px minmax(0,1fr) 38px}.stage-header{height:40px;gap:6px}.stage-brand>span:first-child{font-size:14px}.stage-top-actions{gap:5px}.stage-top-actions button{font-size:12px;padding:6px 8px}.stage-layout{grid-template-columns:1fr;grid-template-rows:minmax(160px,1fr) auto;gap:0}.character-crop{height:100%;max-height:340px}.character-crop img{object-fit:contain;transform:scale(1.28)}.character-caption{display:none}.stage-timer{padding:0 0 4px}.stage-timer>.eyebrow{font-size:11px}.stage-timer h2{margin:8px 0 0;font-size:16px}.stage-timer #stage-time{font-size:76px;line-height:1.2}.stage-progress{margin:8px auto 12px}#stage-status{font-size:12px;margin-bottom:14px}.stage-controls .primary{padding:10px 28px}.stage-controls .secondary{padding:10px 20px}.stage-reset{margin-top:7px;padding:5px 12px}.stage-footer{font-size:10px;gap:10px;height:auto}.companion-preview{min-height:140px}}
@media(max-height:500px) and (orientation:landscape){.focus-stage{padding:8px 20px}.stage-header{height:34px}.stage-timer h2{margin:5px 0}.stage-timer #stage-time{font-size:70px;line-height:1.1}.stage-progress{margin:6px auto 10px}#stage-status{margin-bottom:10px}.stage-reset{margin-top:4px;padding:3px 8px}.character-caption{display:none}.character-crop{height:100%}.stage-footer{font-size:10px}}
/* Keep the supplied animation small and sharp; never stretch it to fill a column. */
.character-crop{flex:none;width:min(100%,560px);height:auto;aspect-ratio:1248 / 760;max-height:52vh;margin:auto 0 16px}
.character-crop img{width:100%;height:100%;object-fit:contain;transform:none}
.focus-character{justify-content:center}.character-caption{margin:0 0 auto}
@media(max-width:600px) and (orientation:portrait){.character-crop{width:min(100%,400px);max-height:30vh;margin:0;aspect-ratio:1248 / 760}.character-crop img{object-fit:contain;transform:none}.character-caption{display:none}.focus-character{justify-content:center}}
@media(max-height:500px) and (orientation:landscape){.character-crop{width:min(100%,400px);height:auto;max-height:65vh;margin:0}.character-caption{display:none}}

/* Preserve the existing media frame and position when replacing the GIF. */
.companion-video{position:relative;width:100%;height:100%;max-height:190px;min-height:0}.character-crop>.scene-media{position:relative;width:100%;height:100%}.scene-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;visibility:hidden;pointer-events:none;border-radius:10px}.scene-video.is-active{visibility:visible}.scene-media{overflow:hidden;isolation:isolate}.scene-retry{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;background:#fffefb;color:#275476;border:1px solid #b5d8e9;border-radius:8px;padding:8px 12px;font-size:12px;pointer-events:auto;white-space:nowrap}.character-crop .scene-retry{pointer-events:auto}.scene-period{font-size:12px;color:var(--muted)}

/* A quiet, single-column home with a compact companion selector. */
#view-focus{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;overflow:visible}.focus-layout{display:block;width:min(100%,740px);flex:none;height:auto;min-height:0}.timer-panel{width:100%;padding:18px 28px;background:#ffffffb8;box-shadow:0 12px 40px #4387ad09}.mode-tabs{margin:12px auto}.clock-wrap{width:230px;height:230px;max-width:none;max-height:none;aspect-ratio:1;margin:0 auto}.clock-content #timer{font-size:62px}.clock-content>span{font-size:12px}.timer-actions{margin:10px 0}.timer-foot{margin-top:8px}.character-picker{width:min(100%,740px)}.character-picker-heading{display:flex;justify-content:space-between;font-size:12px;color:#718ba0;margin:0 4px 8px}.character-picker-heading #character-selection{color:#25799e}.character-carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;touch-action:pan-y;scrollbar-width:thin;padding:3px 3px 7px}.character-carousel>button{display:flex;align-items:center;gap:14px;text-align:left;flex:1 0 calc(50% - 12px);min-width:230px;scroll-snap-align:center;border:1px solid #dfebf3;background:#ffffffaa;border-radius:14px;padding:14px 18px;user-select:none}.character-carousel>button[aria-pressed=true]{border-color:#70b6d5;background:#eefaff}.character-monogram{display:grid;place-items:center;background:#dff1fa;width:42px;height:42px;border-radius:50%;font-size:20px;color:#4e809c;flex:none}.character-carousel strong{font-size:15px;font-weight:500;display:block}.character-carousel small{font-size:11px;color:#7991a4;display:block;margin-top:4px}.character-check{margin-left:auto;color:#2991b8;visibility:hidden}.character-carousel [aria-pressed=true] .character-check{visibility:visible}.companionship-panel{padding:18px 24px;margin:16px 0}.companion-stat{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #e7f0f5;font-size:14px}.companion-stat strong{font-weight:500;color:#2b779e}.stats-summary .stat strong{font-size:26px}.chart-panel{padding:20px 24px}.weekly-chart{height:168px}.solo-stage{grid-template-columns:1fr}.solo-stage .stage-timer{margin:auto;padding:0}#alarm-banner{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:1100;display:flex;gap:20px;align-items:center;background:#fff;border:1px solid #9dcbe1;border-radius:14px;padding:12px 18px;box-shadow:0 8px 36px #34799825;color:#32627e;white-space:nowrap}#completion-dialog p{margin:20px 0}#completion-dialog .primary{width:100%}
@media(min-width:901px){#view-focus{overflow:hidden}main{padding-top:12px}main>header{margin-bottom:8px;height:42px}main>footer{margin-top:8px}.timer-panel .clock-wrap{width:clamp(180px,29vh,270px);height:clamp(180px,29vh,270px)}.timer-panel .mode-tabs{margin:8px auto}.timer-panel .timer-actions{margin:8px 0}.timer-panel .timer-foot{margin-top:6px}}
@media(max-width:650px){#view-focus{gap:14px}.timer-panel{padding:16px}.character-carousel>button{flex:0 0 85%;min-width:230px}.character-carousel{touch-action:pan-y}.character-picker-heading{padding:0 6px}.stats-summary .stat strong{font-size:19px}.companionship-panel .section-heading{align-items:flex-start;gap:8px;flex-direction:column}.stats-summary{gap:8px}#alarm-banner{font-size:12px;gap:10px;max-width:95vw}.clock-wrap{width:220px;height:220px}}

.timer-panel{min-height:0;height:auto}.stats-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.solo-stage{grid-template-rows:1fr}@media(max-width:650px){.stats-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.timer-panel{display:block}.timer-foot{padding-top:10px}
