.stt{--stt-acc:#fff;max-width:760px;margin:0 auto;font-family:inherit}
.stt *{box-sizing:border-box}
.stt-card{position:relative;background:var(--stt-bg,#4c3fd6);border-radius:24px;padding:14px 14px 10px;color:#fff;box-shadow:0 18px 50px -18px rgba(40,30,120,.55);overflow:hidden;transition:background .6s}
.stt-card:before{content:"";position:absolute;inset:0;background:radial-gradient(60% 50% at 50% 38%,rgba(255,255,255,.18),transparent 70%);pointer-events:none}
.stt-lightbg{color:#1f2238}
.stt-card button{font:inherit;cursor:pointer;border:0;background:none;color:inherit;-webkit-tap-highlight-color:transparent}
.stt-card svg{width:22px;height:22px;fill:currentColor;display:block}
.stt-modes{position:relative;display:flex;gap:4px;justify-content:center;background:rgba(255,255,255,.14);border-radius:999px;padding:4px;max-width:380px;margin:0 auto}
.stt-lightbg .stt-modes{background:rgba(30,30,70,.07)}
.stt-modes button{flex:1;padding:7px 6px;border-radius:999px;font-size:13px;font-weight:600;opacity:.85;white-space:nowrap}
.stt-modes button.on{background:#fff;color:#2b2470;opacity:1;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.stt-main{position:relative;display:flex;flex-direction:column;align-items:center}
.stt-ring{position:relative;width:min(232px,58vw,34vh);aspect-ratio:1;margin:10px auto 6px}
.stt-ring svg{width:100%!important;height:100%!important;transform:rotate(-90deg)}
.stt-trk{fill:none;stroke:rgba(255,255,255,.22);stroke-width:9}
.stt-lightbg .stt-trk{stroke:rgba(40,40,90,.12)}
.stt-prg{fill:none;stroke:#fff;stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .25s linear;filter:drop-shadow(0 0 6px rgba(255,255,255,.55))}
.stt-lightbg .stt-prg{stroke:#5b47e0;filter:none}
.stt-card[data-mode=short] .stt-prg{stroke:#b8ffd9}.stt-card[data-mode=long] .stt-prg{stroke:#bfe3ff}
.stt-lightbg[data-mode=short] .stt-prg{stroke:#14966b}.stt-lightbg[data-mode=long] .stt-prg{stroke:#1f74c9}
.stt-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 14%}
.stt-time{font-size:clamp(40px,11vw,62px);font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1}
.stt-lab{font-size:13px;opacity:.85;margin-top:6px;font-weight:600}
.stt-task-now{font-size:12px;opacity:.85;margin-top:4px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stt-ctrl{display:flex;align-items:center;gap:18px;margin:2px 0 8px}
.stt-b{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.18)!important;display:flex;align-items:center;justify-content:center}
.stt-lightbg .stt-b{background:rgba(40,40,90,.08)!important}
.stt-go{display:flex;align-items:center;gap:8px;background:#fff!important;color:#2b2470!important;padding:13px 30px;border-radius:999px;font-weight:800!important;font-size:17px!important;box-shadow:0 8px 22px -6px rgba(0,0,0,.35);min-width:150px;justify-content:center;transition:transform .12s}
.stt-lightbg .stt-go{background:#4c3fd6!important;color:#fff!important}
.stt-go:active{transform:scale(.96)}
.stt-pre{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.stt-pre button{font-size:12.5px;font-weight:700;padding:5px 11px;border-radius:999px;border:1px solid rgba(255,255,255,.35)!important}
.stt-lightbg .stt-pre button{border-color:rgba(40,40,90,.18)!important}
.stt-pre button.on{background:rgba(255,255,255,.95);color:#2b2470}
.stt-lightbg .stt-pre button.on{background:#4c3fd6;color:#fff}
.stt-goal{display:flex;align-items:center;gap:8px;font-size:12px;opacity:.9;margin:8px 0 2px;flex-wrap:wrap;justify-content:center}
.stt-dots{display:flex;gap:4px}.stt-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.3)}.stt-dots i.on{background:#fff}
.stt-lightbg .stt-dots i{background:rgba(40,40,90,.15)}.stt-lightbg .stt-dots i.on{background:#4c3fd6}
.stt-bar{position:relative;display:flex;justify-content:space-around;border-top:1px solid rgba(255,255,255,.18);margin-top:8px;padding-top:6px}
.stt-lightbg .stt-bar{border-color:rgba(40,40,90,.1)}
.stt-bar button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:600;padding:4px 6px;border-radius:10px;opacity:.88}
.stt-bar button.on,.stt-bar button:hover{background:rgba(255,255,255,.16);opacity:1}
.stt-bar button.lit svg{filter:drop-shadow(0 0 5px #fff)}
.stt-pan{position:relative;background:rgba(255,255,255,.97);color:#1f2238;border-radius:16px;padding:14px;margin-top:8px;text-align:left;font-size:14px;max-height:60vh;overflow:auto}
.stt-pan h3{margin:0 0 10px;font-size:16px;color:#1f2238}.stt-pan h3 small{font-weight:400;color:#667;font-size:12px}
.stt-x{position:absolute;top:6px;right:10px;font-size:22px!important;color:#667!important}
.stt-pan input[type=text],.stt-pan input[type=number],.stt-pan select{border:1px solid #d7d9e6;border-radius:10px;padding:8px 10px;font:inherit;font-size:14px;background:#fff;color:#1f2238;min-width:0}
.stt-tf{display:flex;gap:6px}.stt-tf input[type=text]{flex:1}.stt-tf input[type=number]{width:58px}
.stt-tf button{background:#4c3fd6!important;color:#fff!important;border-radius:10px;padding:8px 14px;font-weight:700}
.stt-tl{list-style:none;margin:10px 0 0;padding:0}
.stt-tl li{display:flex;align-items:center;gap:8px;padding:7px 4px;border-bottom:1px solid #eef0f6}
.stt-tl li.act{background:#f3f0ff;border-radius:10px}
.stt-tl li.done .stt-tt{text-decoration:line-through;opacity:.5}
.stt-tchk{width:22px;height:22px;border-radius:50%;border:2px solid #b9bdd6!important;color:#4c3fd6!important;font-size:13px!important;line-height:1;flex:none}
.stt-tt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stt-tp{font-size:12px;color:#667;white-space:nowrap}
.stt-tact{font-size:12px!important;color:#4c3fd6!important;font-weight:700!important;white-space:nowrap}.stt-tdel{color:#999!important;font-size:18px!important}
.stt-snd{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.stt-snd label{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:12px;background:#f4f5fa;font-weight:600;font-size:13px}
.stt-snd label.on{background:#ece8ff}
.stt-pan input[type=range]{width:100%;accent-color:#4c3fd6;-webkit-appearance:auto;appearance:auto}
.stt-th{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.stt-th button{height:58px;border-radius:12px;position:relative;border:2px solid transparent!important}
.stt-th button.on{border-color:#1f2238!important}
.stt-th span{position:absolute;bottom:4px;left:0;right:0;font-size:10.5px;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.stt-kpi{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;text-align:center}
.stt-kpi div{background:#f4f5fa;border-radius:12px;padding:8px 4px}.stt-kpi b{display:block;font-size:18px}.stt-kpi span{font-size:11px;color:#667}
.stt-chart{display:flex;gap:6px;height:120px;align-items:flex-end;margin:12px 0 4px}
.stt-chart div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.stt-chart i{display:block;width:70%;min-height:3px;background:linear-gradient(#7b5cf0,#4c3fd6);border-radius:6px 6px 2px 2px}
.stt-chart em{font-style:normal;font-size:10.5px;color:#667}.stt-chart span{font-size:11px;color:#445}
.stt-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.stt-grid label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:#445}
.stt-tg{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}
.stt-sw{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.stt-sw input{position:absolute;opacity:0;width:1px;height:1px}
.stt-sw i{width:36px;height:20px;border-radius:999px;background:#c9ccdc;position:relative;flex:none;transition:.2s}
.stt-sw i:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s}
.stt-sw input:checked+i{background:#4c3fd6}.stt-sw input:checked+i:after{left:18px}
.stt-sw input:focus-visible+i{outline:2px solid #4c3fd6;outline-offset:2px}
.stt-row{display:flex;gap:14px;margin-top:10px;flex-wrap:wrap}
.stt-link{color:#4c3fd6!important;font-weight:700!important;font-size:13px!important;padding:0!important}
.stt-hint{font-size:12px;color:#667;margin:8px 0 0}
.stt-toast{position:absolute;left:50%;top:12px;transform:translate(-50%,-30px);background:rgba(20,20,40,.88);color:#fff;font-size:13px;padding:7px 14px;border-radius:999px;opacity:0;transition:.3s;pointer-events:none;white-space:nowrap;z-index:5}
.stt-toast.on{opacity:1;transform:translate(-50%,0)}
.stt-card.running .stt-pre{opacity:.55}
/* focus / fullscreen mode */
.stt-card.stt-zen{position:fixed;inset:0;z-index:99999;border-radius:0;display:flex;flex-direction:column;justify-content:center;padding:20px}
.stt-zen .stt-ring{width:min(70vw,58vh)}
.stt-zen .stt-time{font-size:clamp(56px,13vw,120px)}
.stt-zen .stt-pre,.stt-zen .stt-goal{display:none}
.stt-zen .stt-bar{border:0;max-width:520px;margin:10px auto 0;width:100%}
.stt-zen .stt-pan{max-width:620px;margin:8px auto 0;width:100%}
html.stt-zen-on{overflow:hidden}
.stt-card :focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:400px){.stt-card{padding:10px 10px 6px;border-radius:20px}.stt-ring{margin:6px auto 4px}.stt-ctrl{gap:14px;margin-bottom:6px}.stt-go{padding:11px 24px;min-width:132px}.stt-bar span{font-size:10px}.stt-bar button{padding:3px 3px}.stt-kpi{grid-template-columns:repeat(3,1fr)}.stt-th{grid-template-columns:repeat(4,1fr)}.stt-goal{margin-top:6px}}
@media (min-width:900px){.stt-ring{width:min(250px,34vh)}}
@media (prefers-reduced-motion:reduce){.stt-prg,.stt-card,.stt-toast{transition:none}}
.stt-card .stt-b svg,.stt-card .stt-go svg,.stt-card .stt-bar svg{width:22px!important;height:22px!important;min-width:22px}
.stt-pre button{line-height:1.2;min-height:0}
@media (max-width:420px){.stt-pre{gap:5px;flex-wrap:nowrap}.stt-pre button{font-size:12px;padding:5px 8px}}
@media (max-width:350px){.stt-pre button{padding:4px 6px;font-size:11.5px}}

/* v1.1 Calm black default: solid near-black, low-glare text, soft accent (#8fb3c9) */
.stt-card[data-theme=black]{background:#0b0b0f;color:#e8e8ea;box-shadow:0 10px 30px -18px rgba(0,0,0,.45);border:1px solid #1d1d24}
.stt-card[data-theme=black]:before{display:none}
.stt-card[data-theme=black] .stt-modes{background:#17171d}
.stt-card[data-theme=black] .stt-modes button{color:#b4b4bc;opacity:1}
.stt-card[data-theme=black] .stt-modes button.on{background:#2a2a33;color:#e8e8ea;box-shadow:none}
.stt-card[data-theme=black] .stt-trk{stroke:#23232b}
.stt-card[data-theme=black] .stt-prg{stroke:#8fb3c9;filter:none}
.stt-card[data-theme=black][data-mode=short] .stt-prg{stroke:#8fc4a5}.stt-card[data-theme=black][data-mode=long] .stt-prg{stroke:#aaa5d8}
.stt-card[data-theme=black] .stt-time{color:#e8e8ea;font-weight:700}
.stt-card[data-theme=black] .stt-lab,.stt-card[data-theme=black] .stt-task-now,.stt-card[data-theme=black] .stt-goal{color:#a1a1aa;opacity:1}
.stt-card[data-theme=black] .stt-b{background:#1c1c23!important;color:#d4d4d8}
.stt-card[data-theme=black] .stt-go{background:#8fb3c9!important;color:#0b0b0f!important;box-shadow:none}
.stt-card[data-theme=black] .stt-pre button{border-color:#3a3a44!important;color:#c8c8ce}
.stt-card[data-theme=black] .stt-pre button.on{background:#2a2a33;color:#e8e8ea;border-color:#8fb3c9!important}
.stt-card[data-theme=black].running .stt-pre{opacity:.75}
.stt-card[data-theme=black] .stt-dots i{background:#2e2e36}.stt-card[data-theme=black] .stt-dots i.on{background:#8fb3c9}
.stt-card[data-theme=black] .stt-bar{border-color:#1f1f26}
.stt-card[data-theme=black] .stt-bar button{color:#b4b4bc;opacity:1}
.stt-card[data-theme=black] .stt-bar button.on,.stt-card[data-theme=black] .stt-bar button:hover{background:#1c1c23;color:#e8e8ea}
.stt-card[data-theme=black] .stt-bar button.lit{color:#8fb3c9}.stt-card[data-theme=black] .stt-bar button.lit svg{filter:none}
.stt-card[data-theme=black] .stt-pan{background:#15151b;color:#e8e8ea;border:1px solid #23232b}
.stt-card[data-theme=black] .stt-pan h3{color:#e8e8ea}.stt-card[data-theme=black] .stt-pan h3 small{color:#a1a1aa}
.stt-card[data-theme=black] .stt-x{color:#a1a1aa!important}
.stt-card[data-theme=black] .stt-pan input[type=text],.stt-card[data-theme=black] .stt-pan input[type=number],.stt-card[data-theme=black] .stt-pan select{background:#0b0b0f;border-color:#3a3a44;color:#e8e8ea}
.stt-card[data-theme=black] .stt-pan input::placeholder{color:#8a8a94}
.stt-card[data-theme=black] .stt-tf button{background:#8fb3c9!important;color:#0b0b0f!important}
.stt-card[data-theme=black] .stt-tl li{border-color:#23232b}.stt-card[data-theme=black] .stt-tl li.act{background:#1d1d26}
.stt-card[data-theme=black] .stt-tchk{border-color:#5a5a64!important;color:#8fb3c9!important}
.stt-card[data-theme=black] .stt-tp{color:#a1a1aa}.stt-card[data-theme=black] .stt-tact{color:#8fb3c9!important}.stt-card[data-theme=black] .stt-tdel{color:#8a8a94!important}
.stt-card[data-theme=black] .stt-snd label{background:#1c1c23;color:#e8e8ea}.stt-card[data-theme=black] .stt-snd label.on{background:#232a33}
.stt-card[data-theme=black] .stt-pan input[type=range]{accent-color:#8fb3c9}
.stt-card[data-theme=black] .stt-th button{border-color:#2a2a33!important}.stt-card[data-theme=black] .stt-th button.on{border-color:#e8e8ea!important}
.stt-card[data-theme=black] .stt-kpi div{background:#1c1c23}.stt-card[data-theme=black] .stt-kpi span{color:#a1a1aa}
.stt-card[data-theme=black] .stt-chart i{background:#8fb3c9}.stt-card[data-theme=black] .stt-chart em,.stt-card[data-theme=black] .stt-chart span{color:#a1a1aa}
.stt-card[data-theme=black] .stt-grid label{color:#c8c8ce}
.stt-card[data-theme=black] .stt-sw i{background:#3a3a44}.stt-card[data-theme=black] .stt-sw i:after{background:#e8e8ea}.stt-card[data-theme=black] .stt-sw input:checked+i{background:#8fb3c9}
.stt-card[data-theme=black] .stt-sw input:focus-visible+i,.stt-card[data-theme=black] :focus-visible{outline-color:#8fb3c9}
.stt-card[data-theme=black] .stt-link{color:#8fb3c9!important}.stt-card[data-theme=black] .stt-hint{color:#a1a1aa}
.stt-card[data-theme=black] .stt-toast{background:#1c1c23;color:#e8e8ea;border:1px solid #2a2a33}
.stt .stt-tl{margin:10px 0 0!important;padding:0!important}.stt .stt-tl li{margin:0!important}
/* v1.3.0 panel drawer / bottom sheet */
.stt-bd{position:fixed;inset:0;background:rgba(0,0,0,.55);opacity:0;transition:opacity .25s;z-index:100000}
.stt-bd.open{opacity:1}
.stt-card .stt-pan{position:fixed;top:0;right:0;bottom:0;left:auto;width:min(420px,92vw);max-height:none;height:100%;margin:0;border-radius:20px 0 0 20px;padding:0;z-index:100001;overflow:hidden;display:flex;flex-direction:column;transform:translateX(104%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:-20px 0 60px rgba(0,0,0,.5);outline:none;text-align:left}
.stt-card .stt-pan[hidden]{display:none}
.stt-card .stt-pan.open{transform:none}
.stt-pin{overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:22px 22px 26px;flex:1}
.stt-pan h2{margin:0 44px 16px 0;font-size:18px;line-height:1.3;font-weight:700;color:inherit;letter-spacing:0}
.stt-pan h2 small{display:block;font-weight:400;font-size:12.5px;opacity:.7;margin-top:2px}
.stt-card .stt-x{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;font-size:24px!important;background:rgba(127,127,140,.15)!important}
.stt-card .stt-x:hover,.stt-card .stt-x:focus-visible{background:rgba(127,127,140,.3)!important}
.stt-card[data-theme=black] .stt-pan{background:#121217;border:0;border-left:1px solid #23232b}
.stt-bar button:focus-visible,.stt-pan :focus-visible{outline:2px solid #8fb3c9;outline-offset:2px}
.stt-bar button.on{box-shadow:inset 0 -2px 0 #8fb3c9}
.stt-zen .stt-pan{max-width:none;margin:0}
@media (max-width:640px){
 .stt-card .stt-pan{top:auto;left:0;right:0;width:100%;height:auto;max-height:78vh;max-height:78dvh;border-radius:20px 20px 0 0;transform:translateY(104%);box-shadow:0 -20px 60px rgba(0,0,0,.5)}
 .stt-card[data-theme=black] .stt-pan{border:0;border-top:1px solid #23232b}
 .stt-card .stt-pan::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:rgba(160,160,170,.45);margin:8px auto 0;flex:none}
 .stt-pin{padding:12px 18px calc(22px + env(safe-area-inset-bottom))}
 .stt-card .stt-x{top:12px}
}
@media (prefers-reduced-motion:reduce){.stt-card .stt-pan,.stt-bd{transition:none}}
/* chips one line at 320-400px */
@media(max-width:400px){.stt-pre{flex-wrap:nowrap;gap:4px;overflow-x:auto;scrollbar-width:none;justify-content:flex-start;max-width:100%}.stt-pre::-webkit-scrollbar{display:none}.stt-pre button{white-space:nowrap;flex:0 0 auto;font-size:11.5px;padding:5px 8px;letter-spacing:-.1px}}
@media(max-width:400px){.stt-pre button:first-child{margin-left:auto}.stt-pre button:last-child{margin-right:auto}}
.stt-go *{pointer-events:none}
@media (max-width:400px) and (max-height:620px){.st-hero .kt-row-column-wrap{padding-top:6px!important}.st-hero h1{margin-top:0!important}.st-hero .st-sub{font-size:13px!important;line-height:1.3!important;margin-bottom:6px!important}.stt-ring{width:150px!important;margin:2px auto!important}}
.stt-stop{display:block;margin:6px auto 2px;background:#e5302f!important;color:#fff!important;border:0!important;border-radius:999px;font-weight:700;font-size:15px;padding:9px 22px;cursor:pointer;animation:sttpulse 1.2s ease-in-out infinite}
.stt-stop[hidden]{display:none!important}
.stt-stop:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.stt-stop{animation:none}}
@keyframes sttpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
/* time always one line, fits ring (1.3.15) */
.stt-ring{container-type:inline-size}
.stt-time{white-space:nowrap!important;font-variant-numeric:tabular-nums;max-width:none}
@supports (width:1cqw){.stt-ring .stt-time{font-size:min(clamp(40px,11vw,62px),25cqw)}.stt-zen .stt-ring .stt-time{font-size:min(clamp(56px,13vw,120px),25cqw)}
.stt-ring .stt-time.stt-hrs,.stt-zen .stt-ring .stt-time.stt-hrs{font-size:18cqw;letter-spacing:-.5px}}
@supports not (width:1cqw){.stt-time.stt-hrs{font-size:.72em}}
