:root{--bg:#f8f6ef;--surface:#fffdf8;--ink:#272923;--muted:#676a60;--subtle:#7c7f74;--green:#b86b49;--green-hover:#9f5636;--green-soft:#f3e5db;--border:#deded4;--field:#f0efe7;color-scheme:light;font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:default;opacity:.4}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6b9fea;outline-offset:3px}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap;overflow:hidden;border:0}.skip-link{position:fixed;top:10px;left:10px;z-index:100;background:var(--green);color:#fff;padding:10px 18px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}
.site-header,main,.site-footer{width:calc(100% - 64px);max-width:1200px;margin:auto}.site-header{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:20px}.brand{display:flex;gap:9px;align-items:center;font-size:22px;font-weight:750;letter-spacing:-1px}.brand-clock{width:27px;height:27px}.site-header nav{display:flex;align-items:center;gap:24px;color:var(--muted);font-size:13px}.site-header nav a:hover,.text-button:hover{color:var(--green)}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;padding:0;color:var(--muted);font-size:12px;min-height:34px}.text-button .icon{width:16px;height:16px}.icon-button{width:38px;height:38px;display:inline-grid;place-items:center;background:transparent;border-radius:4px;color:var(--muted);padding:0}.icon-button:hover{background:var(--field);color:var(--ink)}.theme-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 13px;background:#17191d;color:#fff;border:1px solid #17191d;border-radius:4px;font-size:12px;font-weight:650;white-space:nowrap}.theme-button:hover{background:#34373d}.theme-button .icon{width:17px;height:17px}.fullscreen-button{display:flex;align-items:center;gap:6px;padding:6px 8px;min-height:38px;background:transparent;font-size:12px;color:var(--muted);border:1px solid var(--border);border-radius:4px;white-space:nowrap}.fullscreen-button:hover{color:var(--ink);background:var(--field)}.fullscreen-button .icon{width:17px;height:17px}
.intro{display:flex;align-items:baseline;gap:18px;padding:27px 0 23px}.intro h1{font-size:23px;line-height:1.3;margin:0;letter-spacing:-.8px;font-weight:700}.intro p{margin:0;color:var(--muted);font-size:12px}.app-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:32px;align-items:start}.timer-column,.sidebar,.side-card{min-width:0}.mode-tabs{display:flex;gap:28px;border-bottom:1px solid var(--border);margin-bottom:18px}.mode-tab{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 3px 13px;background:none;color:var(--muted);border-bottom:2px solid transparent;font-size:14px;white-space:nowrap;min-width:0}.mode-tab .icon{width:17px;height:17px}.mode-tab.active{color:var(--ink);border-bottom-color:var(--ink);font-weight:700}.mode-tab:hover{color:var(--ink)}.timer-panel{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:21px 28px 0;overflow:hidden}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.phase-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);white-space:nowrap}.status-dot{height:6px;width:6px;background:var(--green);border-radius:50%;display:inline-block;flex-shrink:0}.panel-top-actions{display:flex;gap:7px;align-items:center}.session-label{text-align:center;color:var(--muted);font-size:13px;margin:29px 0 17px}.timer-readout{display:flex;justify-content:center;align-items:flex-start;position:relative;white-space:nowrap}.time-button{position:relative;background:none;color:var(--ink);padding:0;font-family:"Arial","Segoe UI",sans-serif;font-size:clamp(66px,8.3vw,112px);font-weight:500;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.time-button:disabled{opacity:1}.time-button #timeDisplay{display:flex;align-items:flex-start;justify-content:center}.time-part{display:flex;flex-direction:column;align-items:center}.time-number{display:block;line-height:1}.time-unit{font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:0;color:var(--muted);margin-top:12px}.time-colon{color:#9ca1aa;line-height:.88;letter-spacing:0;margin:0 .08em;font-weight:400}.seconds-part .time-unit{color:var(--green);font-weight:700}.edit-hint{position:absolute;right:-22px;top:42%;width:15px;height:15px;color:var(--muted);opacity:0}.time-button:hover .edit-hint,.time-button:focus-visible .edit-hint{opacity:1}.centiseconds{font-family:Arial,sans-serif;font-size:22px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums;margin-left:6px}.timer-caption{text-align:center;margin:18px 0 27px;font-size:11px;color:var(--subtle);min-height:18px}.progress-track{height:3px;background:var(--border);overflow:hidden}.progress-track span{display:block;width:0%;height:100%;background:var(--green);transition:width .2s linear}.time-details{display:flex;justify-content:space-between;gap:12px;margin-top:12px;font-size:11px;color:var(--muted)}.time-details strong{color:var(--ink);font-weight:600;margin-left:5px;font-variant-numeric:tabular-nums}.timer-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin:28px 0 26px}.primary-control{height:52px;min-width:190px;display:flex;justify-content:center;align-items:center;gap:9px;border-radius:4px;background:var(--green);color:#fff;font-size:15px;font-weight:650}.primary-control:hover{background:var(--green-hover)}.primary-control .icon{width:17px;height:17px;fill:currentColor;stroke-width:0}.primary-control.is-running .icon{fill:none;stroke-width:3}.secondary-control{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:70px;height:52px;background:var(--field);border:1px solid var(--border);border-radius:4px;color:var(--muted);font-size:10px}.secondary-control:hover{color:var(--ink);border-color:var(--subtle)}.secondary-control .icon{width:17px;height:17px}.panel-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding:12px 0;font-size:10px;color:var(--subtle);gap:15px}.panel-bottom>div{display:flex;gap:20px}.panel-bottom kbd{margin-right:4px}.panel-bottom .text-button{font-size:11px}kbd{font-family:inherit;font-size:10px;border:1px solid var(--border);background:var(--field);padding:2px 5px;border-radius:3px;color:var(--muted)}.local-summary{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);padding:17px 0 0;flex-wrap:wrap}.summary-icon{color:var(--muted);display:grid;place-items:center}.summary-icon .icon{width:15px;height:15px}.local-summary strong{font-weight:600;color:var(--ink);margin-left:4px}.summary-divider{height:11px;width:1px;background:var(--border);margin:0 3px}.local-tag{margin-left:auto;font-size:10px;color:var(--subtle)}
.sidebar{display:flex;flex-direction:column;gap:24px;padding-top:4px}.side-card{background:var(--surface);padding:0 0 22px;border-bottom:1px solid var(--border)}.side-card:last-child{border:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-head h2{margin:0;font-size:13px;letter-spacing:-.2px;font-weight:700}.section-head .icon{width:17px;height:17px}.card-description{margin:11px 0 16px;font-size:12px;color:var(--muted);line-height:1.8}.preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px}.preset-grid button{display:flex;align-items:center;justify-content:center;gap:3px;height:46px;background:var(--surface);border:1px solid var(--border);border-radius:4px;font-family:Arial,"Malgun Gothic",sans-serif;font-size:18px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}.preset-grid button span{font-size:10px;color:var(--muted);margin-top:3px}.preset-grid button:hover{border-color:var(--ink)}.preset-grid button.selected{background:var(--green-soft);border-color:var(--green);color:var(--green)}.preset-grid button.selected span{color:var(--green)}.custom-time-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;width:100%;margin-top:9px;border:1px solid var(--border);border-radius:4px;background:var(--field);color:var(--muted);font-size:11px}.custom-time-button:hover{color:var(--ink);border-color:var(--subtle)}.custom-time-button .icon{width:14px;height:14px}.muted{color:var(--subtle)}.sound-select-label{display:block;font-size:11px;color:var(--muted);margin:14px 0 6px}.sound-select-row{display:flex;gap:7px}select{width:100%;min-width:0;border:1px solid var(--border);padding:8px 10px;border-radius:4px;background:var(--surface);color:var(--ink);font-size:12px}select option{background:var(--surface);color:var(--ink)}.outlined{border:1px solid var(--border);flex-shrink:0;width:38px;height:38px}.outlined .icon{width:16px;height:16px}.volume-row{display:flex;align-items:center;gap:10px;margin:17px 0;color:var(--muted)}.volume-row .icon{width:15px;height:15px}.volume-row input{flex:1;min-width:0;accent-color:var(--green);height:4px;cursor:pointer}.volume-row output{font-size:10px;width:30px;text-align:right}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}.toggle-row input{appearance:none;width:30px;height:18px;background:#c9cdd3;border-radius:12px;position:relative;cursor:pointer;margin:0;flex-shrink:0}.toggle-row input:before{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .2s}.toggle-row input:checked{background:var(--green)}.toggle-row input:checked:before{transform:translateX(12px)}.warning-toggle{border-top:1px solid var(--border);padding-top:14px}.sound-note{font-size:10px;color:var(--subtle);margin:12px 0 0;line-height:1.7}.count-badge{font-size:11px;color:var(--muted)}.empty-saved{font-size:11px;color:var(--subtle);line-height:1.8;margin:12px 0 0}.saved-preset{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--border);padding:10px 0}.saved-preset:last-child{border:0;padding-bottom:0}.saved-preset>button:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;flex:1;min-width:0;padding:0;background:none}.saved-preset strong{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.saved-preset small{font-size:10px;color:var(--muted)}.saved-preset .icon-button{width:28px;height:28px}.saved-preset .icon{width:14px;height:14px}.pomodoro-form{display:flex;flex-direction:column;gap:12px}.pomodoro-form>label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:10px}.pomodoro-form>label>span{display:flex;align-items:center;gap:7px}.pomodoro-form input[type=number]{width:54px;border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:4px;padding:5px 4px 5px 8px;font-size:12px}.pomodoro-form .toggle-row{border-top:1px solid var(--border);padding-top:13px;margin-top:4px}.small-primary{background:var(--green-soft);color:var(--green);font-weight:650;font-size:12px;padding:9px;border-radius:4px;margin-top:3px}.small-primary:hover{background:var(--green);color:#fff}.pomodoro-stages{display:flex;justify-content:center;gap:8px;margin-bottom:24px}.stage-dot{width:29px;height:4px;background:var(--border)}.stage-dot.done{background:var(--green)}.stage-dot.current{background:#80afea}.stopwatch-note{font-size:11px;color:var(--muted);margin:13px 0}.laps-panel{border:1px solid var(--border);border-radius:4px;margin-top:16px;padding:20px 25px}.laps-scroll{max-height:240px;overflow:auto;margin-top:9px}.laps-panel table{width:100%;border-collapse:collapse;text-align:right;font-size:12px;font-variant-numeric:tabular-nums}.laps-panel td,.laps-panel th{padding:8px 6px;border-bottom:1px solid var(--border)}.laps-panel th{font-size:10px;color:var(--muted);font-weight:600}.laps-panel th:first-child,.laps-panel td:first-child{text-align:left}.laps-panel tbody tr:first-child td{color:var(--green)}
.sponsor-strip:not(.advertisement){display:none}.sponsor-strip.advertisement{position:relative;display:block;border-top:1px solid var(--border);padding:25px 12px 12px;min-height:130px;margin-top:32px}.advertisement-label{position:absolute;top:5px;left:12px;font-size:9px;color:var(--muted)}.advertisement .adsbygoogle{min-height:90px}.tool-reference{display:flex;flex-wrap:wrap;gap:10px 25px;padding:26px 0;margin-top:28px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.tool-reference a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}.faq-section{display:grid;grid-template-columns:1fr 2fr;gap:40px;border-top:1px solid var(--border);padding:30px 0 45px}.faq-section h2{font-size:17px;margin:8px 0;letter-spacing:-.5px;font-weight:650}.faq-list details{border-bottom:1px solid var(--border)}.faq-list summary{position:relative;list-style:none;cursor:pointer;padding:14px 28px 14px 0;font-size:12px;font-weight:500}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";position:absolute;right:5px;font-size:19px;font-weight:300;color:var(--muted);top:8px}.faq-list details[open] summary:after{content:"−"}.faq-list details p{font-size:12px;color:var(--muted);line-height:1.85;margin:0 0 17px;max-width:630px}.site-footer{border-top:1px solid var(--border);padding:23px 0 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted)}.copyright{font-size:10px;margin:0}.site-footer nav{display:flex;gap:20px;font-size:11px;flex-wrap:wrap}.site-footer nav a:hover{color:var(--green)}
.app-dialog{border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--ink);width:min(440px,calc(100vw - 32px));padding:26px;box-shadow:0 12px 60px #0002}.app-dialog::backdrop{background:#0007}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h2{margin:0;font-size:19px;letter-spacing:-.5px}.dialog-head .icon-button{width:30px;height:30px}.dialog-description{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 20px}.time-inputs{display:flex;align-items:center;gap:10px;padding:8px 0 4px}.time-inputs label{display:flex;flex:1;flex-direction:column;align-items:center;gap:9px;font-size:12px;color:var(--muted);min-width:0}.time-inputs input{width:100%;min-width:0;text-align:center;background:var(--field);border:1px solid var(--border);border-radius:4px;padding:14px 0;color:var(--ink);font:34px Arial,sans-serif;appearance:textfield}.time-inputs input::-webkit-inner-spin-button{appearance:none}.time-inputs>span{color:var(--subtle);font-size:23px;align-self:flex-start;margin-top:16px}.dialog-primary{width:100%;min-height:44px;border-radius:4px;background:var(--green);color:#fff;font-size:13px;font-weight:650;margin-top:8px;padding:11px 15px}.dialog-primary:hover{background:var(--green-hover)}.form-error{font-size:11px;color:#c03c33;min-height:18px;margin:12px 0 3px}.dialog-label{display:block;font-size:12px;margin:18px 0 7px;color:var(--muted)}.text-input{width:100%;padding:11px;background:var(--field);border:1px solid var(--border);border-radius:4px;color:var(--ink);font-size:13px}.shortcut-list{margin:16px 0}.shortcut-list>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.shortcut-list dd{margin:0}.shortcut-list kbd{font-size:11px;padding:5px 10px}.finish-dialog{text-align:center;padding:32px}.finish-icon{display:grid;place-items:center;color:var(--green);margin:0 auto 15px}.finish-icon .icon{width:34px;height:34px}.finish-dialog h2{font-size:24px;margin:0 0 10px}.finish-dialog p{font-size:13px;color:var(--muted);margin:0 0 16px}.finish-dialog>.text-button{margin-top:13px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 20px;border-radius:4px;background:#17191d;color:#fff;font-size:12px;box-shadow:0 4px 20px #0002;z-index:100;text-align:center}.noscript-notice{margin:20px auto;max-width:1160px;padding:20px;background:var(--green-soft)}
body[data-theme=dark]{--bg:#0b0d10;--surface:#0b0d10;--ink:#f5f6f7;--muted:#b5b9c2;--subtle:#949ba8;--green:#69a8ff;--green-hover:#86b9ff;--green-soft:#14253e;--border:#30343d;--field:#171a20;color-scheme:dark}body[data-theme=dark] .theme-button{background:#f5f6f7;color:#17191d;border-color:#f5f6f7}body[data-theme=dark] .theme-button:hover{background:#d8dce2}body[data-theme=dark] .primary-control,body[data-theme=dark] .dialog-primary{color:#0b1a2e}body[data-theme=dark] .toggle-row input{background:#555b67}body[data-theme=dark] .toggle-row input:checked{background:var(--green)}body[data-theme=dark] .toast{background:#f5f6f7;color:#17191d}
@media(max-width:1050px){.site-header,main,.site-footer{width:calc(100% - 48px)}.app-layout{grid-template-columns:minmax(0,1fr) 235px;gap:24px}.timer-panel{padding-left:22px;padding-right:22px}.time-button{font-size:clamp(62px,8.5vw,92px)}.mode-tabs{gap:22px}.panel-theme-button{padding:7px 9px}.panel-top-actions{gap:5px}.panel-theme-button .icon{display:none}}
@media(max-width:800px){.site-header,main,.site-footer{width:calc(100% - 40px)}.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding-top:0}.side-card:last-child{border-bottom:1px solid var(--border)}.timer-panel{padding-left:24px;padding-right:24px}.time-button{font-size:clamp(66px,12.5vw,112px)}.intro{padding:23px 0 18px}.intro h1{font-size:21px}.faq-section{grid-template-columns:1fr;gap:10px}.tool-reference{margin-top:18px}.panel-theme-button .icon{display:block}.site-footer{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:480px){.site-header,main,.site-footer{width:calc(100% - 28px)}.site-header{height:67px;gap:10px}.brand{font-size:20px;gap:6px}.brand-clock{width:23px;height:23px}.site-header nav{gap:13px;font-size:12px}.site-header nav .text-button{display:none}.theme-button{font-size:11px;min-height:36px;padding:6px 10px}.intro{gap:13px;padding:22px 0 15px}.intro h1{font-size:20px}.intro p{font-size:11px}.mode-tabs{gap:0;justify-content:space-between;margin-bottom:12px}.mode-tab{font-size:13px;gap:5px;padding:9px 4px 11px}.mode-tab .icon{width:16px;height:16px}.timer-panel{padding:15px 14px 0}.panel-top{gap:6px}.phase-badge{font-size:10px;gap:5px}.panel-top-actions{gap:4px}.panel-theme-button{padding:5px 8px;font-size:10px;min-height:32px}.panel-theme-button .icon{display:none}.fullscreen-button{font-size:10px;min-height:32px;padding:5px 7px;gap:4px}.fullscreen-button .icon{width:15px;height:15px}.panel-top .icon-button{width:30px;height:32px}.panel-top .icon-button .icon{width:17px;height:17px}.session-label{font-size:12px;margin:27px 0 17px}.time-button{font-size:clamp(53px,14vw,68px)}.time-unit{font-size:11px;margin-top:10px}.centiseconds{font-size:16px;line-height:1.6;margin-left:2px}.timer-caption{font-size:10px;margin:17px 0 24px}.timer-controls{gap:8px;margin:24px 0}.primary-control{min-width:0;flex:1;max-width:180px;height:50px;font-size:14px}.secondary-control{min-width:0;flex:0 0 55px;height:50px;font-size:9px}.time-details{font-size:10px;gap:5px}.time-details strong{margin-left:3px}.panel-bottom>span{font-size:9px}.panel-bottom>div{gap:12px}.panel-bottom .text-button{font-size:10px;gap:4px}.panel-bottom .text-button .icon{width:13px;height:13px}.local-summary{gap:7px;font-size:10px;padding-top:14px}.summary-divider{margin:0}.local-tag{font-size:9px}.sidebar{gap:20px 18px}.preset-grid{gap:5px}.preset-grid button{font-size:16px;height:43px}.custom-time-button{font-size:10px}.section-head h2{font-size:12px}.card-description{font-size:11px}.sound-note{font-size:9px}.toggle-row{font-size:10px}.empty-saved{font-size:10px}.tool-reference{font-size:11px;gap:10px 20px;padding:22px 0}.faq-section{padding:23px 0 32px}.faq-section h2{font-size:16px}.faq-list summary{font-size:11px}.site-footer nav{gap:13px;font-size:10px}.timer-panel:fullscreen,.timer-panel.focus-view{padding:70px 5vw 24px}.timer-panel:fullscreen .panel-top,.timer-panel.focus-view .panel-top{left:14px;right:14px;top:17px}.timer-panel:fullscreen .time-button,.timer-panel.focus-view .time-button{font-size:15.5vw}.timer-panel:fullscreen .time-unit,.timer-panel.focus-view .time-unit{font-size:13px;margin-top:12px}.timer-panel:fullscreen .session-label,.timer-panel.focus-view .session-label{font-size:14px}.timer-panel:fullscreen .time-details,.timer-panel.focus-view .time-details{font-size:11px}.timer-panel:fullscreen .timer-controls,.timer-panel.focus-view .timer-controls{margin-top:27px}.timer-panel:fullscreen .primary-control,.timer-panel.focus-view .primary-control{min-width:0;max-width:180px}}
@media(max-width:360px){.sidebar{grid-template-columns:minmax(0,1fr)}.local-tag{width:100%;margin:0 0 0 22px}.time-button{font-size:14vw}.panel-bottom>div{gap:9px}.site-header nav{gap:10px}.secondary-control{flex-basis:50px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

body.focus-active{overflow:hidden}
/* A quiet display for a projector. Controls never move the centered clock. */
.timer-panel:is(:fullscreen,.focus-view){
  background:var(--bg);width:100vw;height:100dvh;max-height:100dvh;
  border:0;border-radius:0;padding:0 4vw;overflow:hidden;
  display:flex;flex-direction:column;justify-content:center;color:var(--ink);cursor:none;
}
.timer-panel.focus-view{position:fixed;inset:0;z-index:50}
body[data-theme=dark] .timer-panel:is(:fullscreen,.focus-view){background:#000}
.timer-panel:is(:fullscreen,.focus-view) :is(.session-label,.time-unit,.timer-caption,.time-details,.pomodoro-stages,.panel-bottom,.exit-focus,.phase-badge,.edit-hint,.centiseconds){display:none!important}
.timer-panel:is(:fullscreen,.focus-view) .timer-readout{align-items:center}
.timer-panel:is(:fullscreen,.focus-view) .time-button{font-size:min(20vw,68dvh);letter-spacing:-.035em;pointer-events:none;cursor:inherit}
.timer-panel:is(:fullscreen,.focus-view) .time-button.time-long{font-size:min(17vw,68dvh)}
.timer-panel:is(:fullscreen,.focus-view) .time-colon{color:var(--ink);opacity:.6}
.timer-panel:is(:fullscreen,.focus-view) .panel-top{
  position:absolute;top:24px;left:24px;right:24px;justify-content:flex-end;
}
.timer-panel:is(:fullscreen,.focus-view) .timer-controls{
  position:absolute;bottom:28px;left:50%;transform:translateX(-50%);margin:0;max-width:calc(100% - 32px);
}
.timer-panel:is(:fullscreen,.focus-view) :is(.panel-top,.timer-controls){
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s;
}
.timer-panel:is(:fullscreen,.focus-view).projection-controls-visible{cursor:auto}
.timer-panel:is(:fullscreen,.focus-view).projection-controls-visible :is(.panel-top,.timer-controls){
  opacity:1;visibility:visible;pointer-events:auto;
}
body.focus-active .toast{display:none!important}
@media(max-width:480px){
  .timer-panel:is(:fullscreen,.focus-view) .panel-top{top:14px;left:14px;right:14px}
  .timer-panel:is(:fullscreen,.focus-view) .timer-controls{width:calc(100% - 40px);bottom:24px}
}


.timer-panel:is(:fullscreen,.focus-view)[data-timer-status=running] .time-colon{
  animation:projection-second 1s ease-in-out infinite;
}
@keyframes projection-second{0%,100%{opacity:.7}50%{opacity:.3}}


/* One centered composition: a clear time readout and its remaining-time ring. */
.projection-dial{display:none}
.timer-panel:is(:fullscreen,.focus-view){
  --projection-size:min(82dvh,86vw);
  display:grid;grid-template-columns:1fr;grid-template-rows:1fr;
  place-items:center;gap:0;padding:0;outline:none;
}
.timer-panel:is(:fullscreen,.focus-view) .projection-dial{
  --dial-track:#e8e5da;--dial-fill:#bd7653;
  display:block;grid-area:1/1;width:var(--projection-size);aspect-ratio:1;
  pointer-events:none;
}
body[data-theme=dark] .timer-panel:is(:fullscreen,.focus-view) .projection-dial{
  --dial-track:#242720;--dial-fill:#d29975;
}
.projection-dial svg{display:block;width:100%;height:100%;overflow:visible}
.projection-dial circle{fill:none;stroke-width:12}
.ring-track{stroke:var(--dial-track)}
.ring-remaining{stroke:var(--dial-fill);stroke-linecap:round;stroke-dasharray:100 100}
.timer-panel:is(:fullscreen,.focus-view) .timer-readout{
  grid-area:1/1;width:var(--projection-size);min-width:0;justify-content:center;
  align-items:center;z-index:1;pointer-events:none;transform:translateY(calc(var(--projection-size)*-.015));
}
.timer-panel:is(:fullscreen,.focus-view) .time-button{
  font-family:"Segoe UI",Arial,sans-serif;font-size:calc(var(--projection-size)*.18);
  font-weight:400;letter-spacing:-.055em;
}
.timer-panel:is(:fullscreen,.focus-view) .time-button.time-compact{font-size:calc(var(--projection-size)*.29)}
.timer-panel:is(:fullscreen,.focus-view) .time-button.time-long{font-size:calc(var(--projection-size)*.155)}
.timer-panel:is(:fullscreen,.focus-view) .time-colon{margin:0 .055em;opacity:.4}
.timer-panel:is(:fullscreen,.focus-view) .progress-track{display:none!important}
.timer-panel:is(:fullscreen,.focus-view)[data-mode=stopwatch]{display:flex;justify-content:center}
.timer-panel:is(:fullscreen,.focus-view)[data-mode=stopwatch] .timer-readout{width:100%;transform:none}
.timer-panel:is(:fullscreen,.focus-view)[data-mode=stopwatch] .time-button{font-size:min(20vw,68dvh)}
.timer-panel:is(:fullscreen,.focus-view)[data-mode=stopwatch] .time-button.time-compact{font-size:min(30vw,68dvh)}
.timer-panel:is(:fullscreen,.focus-view)[data-mode=stopwatch] .time-button.time-long{font-size:min(17vw,68dvh)}

/* Warm paper and ink carry through the setup screen, too. */
body[data-theme=dark]{--bg:#11130f;--surface:#151711;--ink:#f4f1e7;--muted:#b7b9ad;--subtle:#969b8b;--green:#d29975;--green-hover:#dfad8c;--green-soft:#31251b;--border:#35382f;--field:#20231b}
body[data-theme=dark] .timer-panel:is(:fullscreen,.focus-view){background:#050604}
.time-button{font-family:"Segoe UI",Arial,sans-serif;font-weight:400;letter-spacing:-.045em}
.timer-panel:not(:fullscreen):not(.focus-view){border-color:transparent;border-radius:12px;padding-top:26px}
.timer-panel:not(:fullscreen):not(.focus-view) .session-label{margin-top:34px;color:var(--subtle)}
.theme-button{background:var(--ink);border-color:var(--ink);border-radius:6px}
body[data-theme=dark] .theme-button{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.primary-control{border-radius:7px;background:var(--ink);color:var(--surface);font-weight:550}
.primary-control:hover{background:var(--muted)}
body[data-theme=dark] .primary-control{background:var(--ink);color:#151711}
body[data-theme=dark] .dialog-primary{color:#21180f}
.secondary-control,.preset-grid button,.custom-time-button{border-radius:7px}
.time-colon{color:var(--subtle)}
.brand{letter-spacing:-.8px}
.brand-clock{color:var(--green)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-color:var(--green)}

/* A compact language choice, kept outside the projector display. */
.language-switch{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:3px 2px;font-size:12px;white-space:nowrap;color:var(--muted);text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:4px}
.language-switch:hover{color:var(--green);text-decoration-color:currentColor}
html[lang=en] .brand{letter-spacing:-.6px}
html[lang=en] .site-footer{flex-wrap:wrap}
html[lang=en] .local-tag{font-size:9px}
@media(max-width:480px){.site-header nav{gap:10px}.language-switch{font-size:11px}.intro{flex-wrap:wrap;row-gap:4px}html[lang=en] .custom-time-button{font-size:9px}html[lang=en] .local-summary{row-gap:6px}html[lang=en] .panel-bottom>div{gap:9px}}
