@charset "UTF-8";
:root{color-scheme:dark;--background:#0f0f1a;--panel:#1b1b25;--ink:#fff;--muted:#96969f;--green:#30d158;--cyan:#64d2ff;--red:#ff453a;--line:#ffffff14;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue","PingFang SC",sans-serif;background:var(--background);color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:15px;padding:12px;background:var(--panel);z-index:5}.skip:focus{top:12px}.app-shell{max-width:620px;margin:auto;min-height:100dvh;padding:22px 30px 18px}.topbar{display:flex;align-items:center;gap:14px;height:66px}.brand{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.brand img{object-fit:contain;flex:none}.brand>span{display:flex;flex-direction:column;gap:3px;min-width:0}.brand strong{font-size:22px;font-weight:700;line-height:1.2;white-space:nowrap}.brand small{font-size:10px;letter-spacing:2px;color:var(--muted);font-family:ui-monospace,"SFMono-Regular",Menlo,monospace;white-space:nowrap}.topbar nav{display:flex;gap:8px}.icon-button{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:10px;background:#ffffff1a;color:#fff;font-size:20px;font-weight:600}.icon-button svg{width:19px;height:19px}.icon-button:hover{background:#ffffff26}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.mode-tabs{display:flex;gap:8px;margin-top:20px}.mode-tabs button{display:flex;flex:1;flex-direction:column;align-items:center;gap:7px;padding:14px 4px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:12px;font-size:14px;font-weight:600}.mode-tabs svg{width:21px;height:21px}.mode-tabs button[aria-pressed=true]{background:#30d15833;color:#fff;border-color:#30d15880}.mode-tabs button:hover:not(:disabled){background:#ffffff0a}.mode-tabs button[aria-pressed=true]:hover:not(:disabled){background:#30d15840}.room-info{width:100%;margin-top:12px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:12px;background:#64d2ff1f;color:var(--cyan);font-size:15px;font-weight:600}.room-info svg{width:20px;height:20px}.room-info span{font-size:12px;font-weight:400;margin-left:auto;opacity:.8}.sound-bar{width:100%;display:flex;align-items:center;gap:8px;background:#ffffff0d;border-radius:10px;padding:12px 16px;margin-top:12px;color:#fff;text-align:left}.sound-bar svg{width:18px;height:18px;color:var(--cyan)}.sound-bar strong{font-size:14px;font-weight:600}.sound-bar span{margin-left:auto;font-size:12px;color:var(--muted)}.sound-bar b{font-size:20px;color:var(--muted);font-weight:400}.console{padding-top:25px}.instrument{display:flex;align-items:center;flex-direction:column}.instrument-top{display:none}.countdown-ring{position:relative;width:260px;height:260px;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring-graphic{position:absolute;inset:0;width:100%;height:100%;stroke-width:8;transform:rotate(-90deg)}.ring-track{stroke:#ff9f0a26}.ring-graphic #ring-progress{stroke:#ff9f0a;stroke-dasharray:823.1;stroke-dashoffset:823.1;transition:stroke-dashoffset .2s linear;stroke-linecap:round}.readout{font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;font-weight:900;font-size:112px;line-height:1.1;text-align:center;letter-spacing:-7px;color:var(--green);z-index:1;max-width:235px}.instrument[data-phase=idle] .readout{color:#ffffff33}.instrument #status{position:absolute;bottom:48px;left:34px;right:34px;font-size:14px;font-weight:500;color:var(--muted);text-align:center;line-height:1.45;margin:0;z-index:1}.instrument:not([data-phase=idle]) #status{font-size:12px}.instrument[data-phase=arm] .readout,.instrument[data-phase=waiting] .readout{font-size:44px;letter-spacing:0;color:#ff9f0a}.instrument[data-phase=cancelled] .readout{font-size:36px;letter-spacing:0;color:var(--red)}.instrument[data-phase=countdown] .readout{color:#fff}.instrument[data-final-tick=true] .readout{color:#ff9f0a}.instrument[data-phase=go] .ring-track{stroke:#30d15826}.instrument[data-phase=go] #ring-progress{stroke:var(--green)}.instrument[data-phase=cancelled] .ring-track{stroke:#ff453a26}.instrument[data-phase=go] .readout{font-size:90px;letter-spacing:-5px;color:var(--green)}.instrument[data-phase=go] .countdown-ring{filter:drop-shadow(0 0 14px #30d15833)}.instrument[data-phase=laps] .readout{font-size:39px;letter-spacing:-2px;color:var(--cyan)}.instrument[data-phase=laps] .ring-track{stroke:#64d2ff26}.instrument-bottom{display:none}.actions{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px;min-height:174px}.primary,.stop,.lap-action{display:grid;place-items:center;width:174px;height:174px;flex:none;border-radius:50%;font-family:ui-monospace,"SFMono-Regular",Menlo,monospace;font-size:27px;line-height:1;font-weight:900;color:#fff;background:linear-gradient(150deg,#36de64,#20ad49);box-shadow:0 0 20px #30d15855;transition:transform .12s}.primary:hover:not(:disabled),.stop:hover:not(:disabled),.lap-action:hover:not(:disabled){filter:brightness(1.08);transform:scale(1.02)}.primary:active,.stop:active,.lap-action:active{transform:scale(.96)}.stop{background:linear-gradient(150deg,#ff625c,#db2f30);box-shadow:0 0 20px #ff453a44}.lap-action{background:linear-gradient(150deg,#64d2ff,#169abf);box-shadow:0 0 20px #64d2ff44}.actions.lap-running .lap-action{width:158px;height:158px;font-size:24px}.actions.lap-running .stop{width:90px;height:90px;font-size:20px}.settings{display:flex;justify-content:center;margin-top:24px}fieldset{border:0;padding:0;margin:0}legend{text-align:center;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:12px;padding:0;width:100%;font-family:ui-monospace,monospace;letter-spacing:1px}.duration-row{display:flex;align-items:center;justify-content:center;gap:10px}.duration-row button,.custom-duration{height:40px;border-radius:9px;color:var(--muted);background:#ffffff0d;border:1px solid transparent;font-size:14px;font-weight:600;padding:9px 20px}.duration-row button[aria-pressed=true]{color:var(--green);background:#30d15826;border-color:#30d15866}.custom-duration{display:flex;align-items:center;gap:4px;padding:0 10px}.custom-duration input{width:39px;background:transparent;color:#fff;border:0;border-bottom:1px solid #ffffff30;text-align:center;font-size:14px;appearance:textfield;-moz-appearance:textfield}.custom-duration input::-webkit-inner-spin-button{display:none}.custom-duration:focus-within{border-color:var(--green)}.under-control{text-align:center;color:var(--muted);font-size:12px;line-height:1.7;max-width:420px;margin:17px auto 0;padding:0 10px}footer{display:flex;justify-content:center;gap:18px;padding:24px 0 2px;font-size:11px;color:#73737f}footer span+span{color:#9b9baa}dialog{color:var(--ink);background:#1b1b26;border:1px solid #ffffff1a;border-radius:20px;width:min(500px,calc(100% - 32px));max-height:85dvh;padding:24px;box-shadow:0 20px 100px #0008}dialog::backdrop{background:#0009;backdrop-filter:blur(8px)}dialog p{font-size:16px;line-height:1.75;color:#c1c1cb;margin:18px 0}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.dialog-heading h2,dialog h2{font-size:23px;margin:0}.dialog-heading .icon-button{font-size:24px;width:34px;height:34px;color:var(--muted);border-radius:50%}.sound-control{padding:18px;background:#ffffff08;border-radius:12px}.sound-control label{display:block;font-size:16px}.sound-control output{float:right;color:var(--cyan)}.sound-control input{display:block;width:100%;margin:24px 0 6px;accent-color:var(--cyan)}.muted{color:var(--muted)!important}.session-title,.session-stat,.history-header{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:14px}.text-button{background:transparent;color:var(--cyan);font-size:14px;padding:6px 0}.session-total{display:flex;align-items:baseline;gap:14px;margin:20px 0}.session-total strong{font-size:48px;font-weight:700;color:var(--green);font-variant-numeric:tabular-nums}.session-total span{color:var(--muted);font-size:14px}.session-stat{padding-bottom:20px;border-bottom:1px solid var(--line);color:var(--muted)}.session-stat strong{font-weight:400}.history-header{margin-top:20px}.history-header span+span{color:var(--muted)}.history{list-style:none;padding:0;margin:12px 0;max-height:280px;overflow:auto}.history li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.history li div{display:flex;flex-direction:column;gap:6px}.history small{color:var(--muted);font-size:12px}.history strong{color:var(--green);font-family:ui-monospace,monospace}.empty{text-align:center;padding:25px 0}.empty span{font-size:13px;color:var(--muted)}.clear{color:var(--red)}.session-note{font-size:13px!important;color:var(--muted)!important;margin-bottom:0!important}#storage-error{font-size:14px;line-height:1.6;color:#ff9f0a;margin-top:16px}.guide h3{color:var(--green);font-size:17px;margin:24px 0 8px}.guide p{margin:0}.dialog-actions{display:flex;gap:12px;margin-top:24px}.dialog-actions button{border-radius:10px;font-size:15px;padding:14px;flex:1;color:#fff;background:#ffffff14}.dialog-actions .danger{background:#ff453a26;color:#ff6960}.policy{max-width:720px;padding:40px 24px;margin:auto}.policy h1{font-size:30px}.policy h2{font-size:21px;color:var(--green);margin-top:30px}.policy p{font-size:16px;line-height:1.9;color:#c1c1cb}.policy a{color:var(--cyan)}
@media(min-height:950px){.console{padding-top:35px}.actions{min-height:200px}.primary,.stop,.lap-action{width:200px;height:200px}.app-shell{padding-top:32px}}
@media(max-width:480px){.app-shell{padding:12px 20px 14px}.topbar{gap:6px}.brand{gap:2px}.brand img{width:48px;height:48px}.brand strong{font-size:20px}.brand small{font-size:8px;letter-spacing:1.6px}.topbar nav{gap:6px}.icon-button{width:35px;height:35px;font-size:17px}.mode-tabs{margin-top:16px}.mode-tabs button{font-size:12px;padding:12px 3px}.console{padding-top:22px}.room-info{font-size:14px}.room-info span{font-size:11px}.countdown-ring{width:236px;height:236px}.readout{font-size:104px}.instrument #status{bottom:40px}.actions{margin-top:20px;min-height:164px}.primary,.stop,.lap-action{width:164px;height:164px;font-size:25px}.settings{margin-top:20px}footer{padding-top:20px}.duration-row{gap:8px}.duration-row button{padding:9px 17px}}
@media(max-width:365px){.app-shell{padding-left:14px;padding-right:14px}.brand img{width:40px;height:40px}.brand strong{font-size:18px}.brand small{font-size:7px}.topbar nav{gap:5px}.icon-button{width:32px;height:32px}.room-info span{font-size:10px}.duration-row button{padding:9px 14px}}
@media(max-width:480px) and (max-height:760px){.topbar{height:56px}.mode-tabs{margin-top:10px}.mode-tabs button{padding:8px 3px;gap:4px}.room-info,.sound-bar{margin-top:8px;min-height:38px;padding-top:8px;padding-bottom:8px}.console{padding-top:14px}.countdown-ring{width:200px;height:200px}.readout{font-size:86px}.instrument[data-phase=go] .readout{font-size:74px}.instrument #status,.instrument:not([data-phase=idle]) #status{bottom:40px;left:26px;right:26px;font-size:11px}.actions{margin-top:14px;min-height:132px}.primary,.stop,.lap-action{width:132px;height:132px;font-size:22px}.actions.lap-running .lap-action{width:128px;height:128px}.actions.lap-running .stop{width:80px;height:80px}.settings{margin-top:14px}}
@media(max-width:480px) and (max-height:620px){.app-shell{padding-top:6px}.topbar{height:48px}.brand img{width:38px;height:38px}.mode-tabs button svg{display:none}.room-info,.sound-bar{min-height:34px;padding-top:6px;padding-bottom:6px}.console{padding-top:8px}.countdown-ring{width:170px;height:170px}.readout{font-size:72px}.instrument[data-phase=go] .readout{font-size:62px}.instrument #status,.instrument:not([data-phase=idle]) #status{bottom:30px;left:22px;right:22px;font-size:10px}.actions{margin-top:10px;min-height:112px}.primary,.stop,.lap-action{width:112px;height:112px;font-size:20px}.actions.lap-running .lap-action{width:108px;height:108px}.actions.lap-running .stop{width:70px;height:70px;font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}dialog::backdrop{backdrop-filter:none}}
.policy h3{font-size:17px;color:#fff;margin-top:26px}.policy ul{padding-left:20px}.policy li p{margin:6px 0}.policy code{font-size:14px;color:#c1c1cb}.policy nav p{font-size:14px}.policy-summary{padding:6px 18px;background:#ffffff08;border-radius:12px}
.not-found{text-align:center;padding-top:80px}.not-found img{border-radius:16px}.not-found-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 22px}
#export-data{width:100%;height:240px;resize:vertical;background:#0f0f1a;color:#c1c1cb;border:1px solid #ffffff26;border-radius:10px;padding:14px;font:13px/1.6 ui-monospace,monospace}textarea:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
