:root{color-scheme:dark;--bg-0: #070b0d;--bg-1: #0b1114;--bg-2: #121b20;--bg-3: #18232a;--line: #223038;--line-strong: #2c3d46;--text: #eaf6f8;--text-dim: #93a8b0;--accent: #2ee6d6;--accent-ink: #04211f;--accent-dim: color-mix(in srgb, var(--accent) 14%, transparent);--accent-hover: color-mix(in srgb, var(--accent) 82%, #ffffff);--warn: #ffc457;--danger: #ff6b6b;--radius: 8px;--font: ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace}html[data-theme=quirofano]{--bg-0: #060b12;--bg-1: #0a121b;--bg-2: #101c27;--bg-3: #16232e;--line: #1f2f3d;--line-strong: #2b4055;--text: #e7f0fa;--text-dim: #8fa6bb}html[data-theme=oled]{--bg-0: #000000;--bg-1: #060606;--bg-2: #0d0d0d;--bg-3: #141414;--line: #232323;--line-strong: #333333;--text: #f2f7f7;--text-dim: #9aa4a4}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg-0);color:var(--text);font-family:var(--font);font-size:13px;-webkit-font-smoothing:antialiased;overflow:hidden}#app{height:100vh;height:100dvh}.app{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%}.appbar{display:flex;align-items:center;gap:18px;padding:10px 16px;background:linear-gradient(180deg,var(--bg-2),var(--bg-1));border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;min-width:210px}.brand__mark{display:block;border-radius:8px}.brand__text{display:flex;flex-direction:column;line-height:1.15}.brand__name{font-size:16px;font-weight:700;letter-spacing:.02em}.brand__sub{font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em}.appbar__template{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.chip{display:inline-flex;align-items:center;gap:8px;max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 12px;border-radius:999px;background:var(--bg-2);border:1px solid var(--line);color:var(--text-dim);font-size:12px}.appbar__actions{display:flex;align-items:center;gap:8px}.appbar__util{display:none}.formatpick{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:34px;border-radius:var(--radius);border:1px solid var(--line);background:var(--bg-2);color:var(--text-dim);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.formatpick select{border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;text-transform:none;letter-spacing:0;cursor:pointer}.formatpick select:focus-visible{outline:1px solid var(--accent);outline-offset:2px}.formatpick option{background:var(--bg-1);color:var(--text)}.btn{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:var(--radius);border:1px solid var(--line);background:var(--bg-2);color:var(--text);font:inherit;font-size:12px;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease}.btn:hover{background:var(--bg-3);border-color:var(--line-strong)}.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.btn--primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.btn--primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.btn--accent{border-color:color-mix(in srgb,var(--accent) 45%,transparent);color:var(--accent)}.btn--danger{border-color:#ff6b6b66;color:var(--danger)}.btn--block{width:100%;justify-content:center}.btn--tools{border-color:color-mix(in srgb,var(--accent) 35%,transparent);color:var(--accent)}.btn--tools:hover{background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 60%,transparent);color:var(--accent)}.btn--tools[aria-expanded=true]{background:var(--accent-dim);border-color:var(--accent)}.drawer{position:fixed;inset:0;z-index:60;visibility:hidden;transition:visibility 0s linear .22s}.drawer.is-open{visibility:visible;transition-delay:0s}.drawer__scrim{position:absolute;inset:0;padding:0;border:0;background:#03080a94;opacity:0;cursor:pointer;transition:opacity .2s ease}.drawer.is-open .drawer__scrim{opacity:1}.drawer__panel{position:absolute;top:0;bottom:0;left:0;display:flex;flex-direction:column;width:284px;max-width:88vw;background:var(--bg-1);border-right:1px solid var(--line);box-shadow:14px 0 36px #00000080;transform:translate(-102%);transition:transform .22s cubic-bezier(.22,.61,.36,1);outline:none}.drawer.is-open .drawer__panel{transform:none}.drawer__head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 10px 12px 14px;border-bottom:1px solid var(--line)}.drawer__title{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-dim)}.drawer__close{width:28px;height:26px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text-dim);font-size:18px;line-height:1;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.drawer__close:hover,.drawer__close:focus-visible{background:var(--bg-3);border-color:var(--line);color:var(--text);outline:none}.drawer__body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding:12px 10px 20px}.toolgroup{display:flex;flex-direction:column;gap:7px}.toolgroup__title{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-dim)}.toolgroup__row{display:flex;flex-direction:column;gap:3px}.tool{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:var(--radius);border:1px solid transparent;background:var(--bg-2);color:var(--text-dim);font:inherit;font-size:12px;line-height:1.2;text-align:left;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.tool span{display:block;flex:1;min-width:0}.tool svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.tool:hover{background:var(--bg-3);color:var(--text)}.tool:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}.tool.is-active{background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) var(--panel-width, 320px);min-height:0}.workspace.is-panel-collapsed{grid-template-columns:minmax(0,1fr) 36px}.stage{position:relative;min-width:0;background:var(--bg-0);overflow:hidden}.stage__image,.stage__overlay{position:absolute;inset:0;display:block;width:100%;height:100%}.stage__overlay{touch-action:none;cursor:crosshair}.stage__hint{position:absolute;left:14px;bottom:14px;max-width:min(620px,70%);padding:8px 12px;border-radius:var(--radius);background:#060e11e0;border:1px solid var(--line);color:var(--text-dim);font-size:12px;line-height:1.4;opacity:0;transform:translateY(6px);transition:opacity .14s ease,transform .14s ease;pointer-events:none}.stage__hint.is-visible{opacity:1;transform:translateY(0)}.stage__zoom,.stage__viewactions{position:absolute;right:14px;display:flex;gap:6px;background:#060e11db;border:1px solid var(--line);border-radius:var(--radius);padding:5px}.stage__zoom{top:14px}.stage__viewactions{top:60px}.stage__zoom button,.stage__viewactions button{min-width:30px;height:28px;padding:0 8px;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--text-dim);font:inherit;font-size:12px;cursor:pointer}.stage__zoom button:hover,.stage__viewactions button:hover{background:var(--bg-3);color:var(--text)}.stage__viewactions button.is-active{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,transparent)}.stage__viewactions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.panel{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--bg-1);border-left:1px solid var(--line)}.panel__inner{display:flex;flex-direction:column;flex:1;min-height:0}.panel__head{display:none}.panel__meta{font-size:11px;color:var(--text-dim);white-space:nowrap}.panel__meta b{color:var(--text);font-size:13px}.panel__collapse{position:absolute;top:8px;right:8px;width:26px;height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text-dim);opacity:.45;cursor:pointer;transition:opacity .12s ease,background .12s ease,color .12s ease,border-color .12s ease}.panel__collapse:hover,.panel__collapse:focus-visible{opacity:1;background:var(--bg-3);border-color:var(--line);color:var(--accent);outline:none}.panel__collapse svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .14s ease}.panel__resizer{position:absolute;left:-3px;top:0;bottom:0;width:8px;cursor:col-resize;background:transparent;transition:background .12s ease;z-index:3}.panel__resizer:hover,.panel__resizer.is-dragging{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent) 50%,transparent))}.tabs{display:flex;gap:4px;padding:8px 10px 0;border-bottom:1px solid var(--line)}.tab{flex:1;min-width:0;padding:8px 6px 9px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--text-dim);font:inherit;font-size:11.5px;letter-spacing:.02em;cursor:pointer;transition:color .12s ease,border-color .12s ease,background .12s ease}.tab:hover{color:var(--text);background:#ffffff08}.tab.is-active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.tab:focus-visible{outline:1px solid var(--accent);outline-offset:-2px}.panes{flex:1;min-height:0;display:flex;flex-direction:column}.pane{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:12px 14px;overflow-y:auto}.pane[hidden]{display:none}.pane--list{overflow:hidden}.workspace.is-panel-collapsed .panel__inner,.workspace.is-panel-collapsed .panel__resizer{display:none}.workspace.is-panel-collapsed .panel__collapse{position:static;margin:8px auto;opacity:.8}.workspace.is-panel-collapsed .panel__collapse svg{transform:rotate(180deg)}.filefield{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--text);cursor:pointer;font-size:12px}.filefield svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.filefield input{display:none}.hint{margin:0;color:var(--text-dim);font-size:11.5px;line-height:1.45}.calib__state{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.calib__value{font-size:11.5px;color:var(--text-dim)}.calib__form{display:flex;flex-direction:column;gap:7px;margin-bottom:12px;padding:10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-2)}.calib__form label{font-size:11.5px;color:var(--text-dim)}.calib__row{display:flex;gap:6px}.calib__row input,.calib__row select{flex:1;min-width:0;padding:6px 8px;border-radius:6px;border:1px solid var(--line);background:var(--bg-1);color:var(--text);font:inherit;font-size:12px}.calib__row button{flex:0 0 auto}.badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;border:1px solid transparent}.badge--ok{background:color-mix(in srgb,var(--accent) 16%,transparent);border-color:color-mix(in srgb,var(--accent) 50%,transparent);color:var(--accent)}.badge--warn{background:#ffc45729;border-color:#ffc45780;color:var(--warn)}.mlist{list-style:none;margin:0;padding:0 2px 0 0;display:flex;flex-direction:column;gap:8px;overflow-y:auto;flex:1;min-height:80px}.mlist__empty{display:flex;gap:10px;align-items:flex-start;padding:14px 12px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--text-dim);font-size:11.5px;line-height:1.45}.mlist__empty svg{flex:0 0 auto;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.7}.mlist__item{display:flex;align-items:stretch;gap:4px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-2);overflow:hidden;transition:border-color .12s ease,background .12s ease}.mlist__item:hover{border-color:var(--line-strong);background:var(--bg-3)}.mlist__item.is-selected{border-color:#ff6b6b99;background:#ff6b6b0f}.mlist__main{flex:1;display:flex;flex-direction:column;gap:3px;padding:8px 10px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}.mlist__main:focus-visible{outline:1px solid var(--accent);outline-offset:-2px}.mlist__name{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;border:1px solid var(--line);background:#ffffff0d;color:var(--text-dim);font-size:10.5px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mlist__head{display:flex;align-items:center;justify-content:space-between;gap:8px}.badge--mini{padding:2px 7px;font-size:10px;font-weight:600}.mlist__detail{font-size:10.5px;line-height:1.35;color:var(--text-dim);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.mlist__value{display:flex;align-items:baseline;gap:5px;font-size:19px;font-weight:700;line-height:1.1}.mlist__number{font-variant-numeric:tabular-nums;letter-spacing:-.01em}.mlist__unit{font-size:11.5px;font-weight:600;color:var(--text-dim)}.mlist__remove{width:34px;border:0;background:transparent;color:var(--text-dim);opacity:0;cursor:pointer;transition:opacity .12s ease,color .12s ease,background .12s ease}.mlist__item:hover .mlist__remove,.mlist__item.is-selected .mlist__remove,.mlist__remove:focus-visible{opacity:1}.mlist__remove:hover{color:var(--danger);background:#ff6b6b1f}.mlist__remove svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.statusbar{display:flex;align-items:center;gap:16px;padding:7px 16px;background:var(--bg-1);border-top:1px solid var(--line);font-size:11.5px;color:var(--text-dim)}.statusbar__spacer{flex:1}.statusbar__item--tool{color:var(--text);font-weight:600}@media (max-width: 1100px){.workspace{grid-template-columns:minmax(0,1fr) min(var(--panel-width, 320px),300px)}}@media (max-width: 860px){.appbar{flex-wrap:wrap}.workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.panel{max-height:42vh;border-left:0;border-top:1px solid var(--line)}.workspace.is-panel-collapsed{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 36px}.panel__resizer{display:none}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.tool--action{border-color:color-mix(in srgb,var(--accent) 28%,transparent);color:var(--accent)}.tool--action:hover{background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}.patient{border-bottom:1px solid var(--line);padding:9px 10px 11px}.patient__bar{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}.patient__label{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-dim)}.patient__count{font-size:10.5px;color:var(--text-dim)}.patient__thumbs{display:flex;gap:8px;min-height:76px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}.patient__empty{align-self:center;margin:0;padding:10px 12px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--text-dim);font-size:11px;line-height:1.4}.thumb{position:relative;flex:0 0 auto}.thumb__pick{display:flex;flex-direction:column;gap:4px;width:76px;padding:4px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-2);color:var(--text-dim);font:inherit;font-size:9.5px;cursor:pointer;transition:border-color .12s ease,background .12s ease,color .12s ease}.thumb__pick img{width:100%;height:54px;object-fit:cover;border-radius:4px;background:var(--bg-0)}.thumb__name{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.thumb__pick:hover{border-color:var(--line-strong);color:var(--text)}.thumb__pick:focus-visible{outline:1px solid var(--accent);outline-offset:1px}.thumb.is-active .thumb__pick{border-color:var(--accent);background:var(--accent-dim);color:var(--accent)}.thumb__remove{position:absolute;top:-6px;right:-6px;width:18px;height:18px;display:none;align-items:center;justify-content:center;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--bg-1);color:var(--text-dim);font-size:12px;line-height:1;cursor:pointer}.thumb:hover .thumb__remove,.thumb__remove:focus-visible{display:inline-flex}.thumb__remove:hover{color:var(--danger);border-color:var(--danger)}.thumb__pair{position:absolute;left:-6px;top:-6px;width:22px;height:22px;display:none;align-items:center;justify-content:center;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--bg-1);color:var(--text-dim);cursor:pointer}.thumb__pair svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.thumb__pair:hover{color:var(--accent);border-color:var(--accent)}.thumb__pair:focus-visible{outline:1px solid var(--accent);outline-offset:1px}@media (hover: hover){.thumb:hover .thumb__pair{display:inline-flex}}.statusbar__gear{display:inline-flex;align-items:center;justify-content:center;width:26px;height:24px;margin-right:6px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text-dim);opacity:.6;text-decoration:none;cursor:pointer;transition:opacity .12s ease,color .12s ease,background .12s ease,border-color .12s ease}.statusbar__gear:hover,.statusbar__gear:focus-visible{opacity:1;background:var(--bg-3);border-color:var(--line);color:var(--accent);outline:none}.statusbar__gear svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.statusbar__clock{margin-right:10px}.statusbar__clock.is-on{opacity:1;color:var(--accent)}.favorites{display:flex;align-items:center;gap:4px}.favorites[hidden]{display:none}.favbtn{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;background:var(--bg-2);color:var(--text-dim);cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.favbtn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.favbtn:hover{background:var(--bg-3);border-color:var(--line);color:var(--text)}.favbtn:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}.favbtn.is-active{background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}.patient__name{flex:1;min-width:0;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--bg-2);color:var(--text);font:inherit;font-size:11.5px}.patient__name:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}.patient__row{display:flex;align-items:center;gap:6px;margin-bottom:8px}.patient__save{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--bg-2);color:var(--text-dim);cursor:pointer;transition:color .12s ease,border-color .12s ease,background .12s ease}.patient__save:hover,.patient__save:focus-visible{background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 60%,transparent);color:var(--accent);outline:none}.patient__save:disabled{opacity:.5;cursor:progress}.patient__save svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.deck{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0}.deck>.stage:not(.stage--secondary){grid-area:1 / 1}.deck__resizer{grid-area:1 / 2;display:none;cursor:col-resize;background:var(--line);transition:background .12s ease}.deck.is-split .deck__resizer{display:block}.deck.is-split .deck__resizer:hover{background:var(--accent)}.stage--secondary{grid-area:1 / 3;border-left:1px solid var(--line)}.stage--secondary .stage__zoom{top:56px}.stage__tag{position:absolute;top:12px;left:12px;z-index:3;max-width:min(320px,62%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 10px;border-radius:999px;background:#060e11db;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);color:var(--accent);font-size:11px;letter-spacing:.04em}.stage__pair{position:absolute;top:12px;right:12px;z-index:3;display:flex;gap:6px;padding:5px;border-radius:var(--radius);background:#060e11db;border:1px solid var(--line)}.stage__pair button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:28px;padding:0 8px;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--text-dim);cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.stage__pair button:hover,.stage__pair button:focus-visible{background:var(--bg-3);color:var(--text);outline:none}.stage__pair button[aria-pressed=true]{background:var(--accent-dim);border-color:color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}.stage__pair svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.stage__overlay--readonly{cursor:grab}.stage__overlay--readonly:active{cursor:grabbing}.deck__zones{position:absolute;inset:0;z-index:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;pointer-events:none}.deck__zones[hidden]{display:none}.deck.is-split .deck__zones{grid-template-columns:repeat(2,minmax(0,1fr))}.deck.is-split .deck__zone[data-zone=center]{display:none}.deck__zone{display:flex;align-items:center;justify-content:center;border-radius:var(--radius);border:1px dashed color-mix(in srgb,var(--accent) 35%,transparent);background:#060e118c;color:var(--text-dim);font-size:12px;letter-spacing:.08em;text-transform:uppercase;transition:background .12s ease,border-color .12s ease,color .12s ease}.deck__zone.is-over{border-style:solid;border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}.thumb{position:relative}.thumb__pick{cursor:grab}.thumb__pick:active{cursor:grabbing}.thumb__side{position:absolute;top:4px;left:4px;z-index:2;padding:1px 6px;border-radius:999px;background:#060e11db;border:1px solid color-mix(in srgb,var(--accent) 50%,transparent);color:var(--accent);font-size:10px;letter-spacing:.04em}.thumb.is-secondary .thumb__pick{outline:1px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:-1px}.thumb.is-dragging{opacity:.5}.clock{position:fixed;z-index:40;display:grid;gap:8px;min-width:168px;padding:10px 12px 11px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--bg-1) 88%,transparent);box-shadow:0 14px 34px #00000073;backdrop-filter:blur(6px);user-select:none}.clock[hidden]{display:none}.clock__screen{display:grid;gap:2px;cursor:grab;touch-action:none}.clock.is-dragging .clock__screen{cursor:grabbing}.clock__time{font-family:var(--font-mono);font-size:calc(40px * var(--clock-scale, 1));font-variant-numeric:tabular-nums;font-weight:600;line-height:1;letter-spacing:1.5px;white-space:nowrap;color:var(--text);text-shadow:0 0 18px color-mix(in srgb,var(--accent) 22%,transparent)}.clock__state{font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;color:var(--text-dim)}.clock.is-running .clock__time{color:var(--accent)}.clock__actions{display:flex;align-items:center;gap:6px}.clock__btn{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:11.5px;cursor:pointer;transition:opacity .16s ease,background .16s ease,border-color .16s ease}.clock__btn svg{width:14px;height:14px}.clock__btn:hover,.clock__btn:focus-visible{border-color:var(--accent);background:var(--accent-dim)}.clock__btn--main{border-color:color-mix(in srgb,var(--accent) 45%,transparent);color:var(--text)}.clock__btn--main.is-pause{border-color:color-mix(in srgb,var(--warn) 55%,transparent)}.clock__btn--hide{margin-left:auto;padding:5px 7px;opacity:.6}.clock.is-running .clock__btn{opacity:.55}.clock:hover .clock__btn,.clock:focus-within .clock__btn{opacity:1}@media (max-width: 900px){.clock__time{font-size:calc(32px * var(--clock-scale, 1))}}@media (hover: none){.btn,.tool,.tab,.favbtn,.stage__zoom button,.stage__viewactions button,.stage__pair button,.statusbar__gear,.drawer__close{min-height:40px;touch-action:manipulation}.btn,.favbtn,.stage__zoom button,.stage__viewactions button,.stage__pair button{min-width:40px}.tool{padding:11px 12px}.thumb__pair{display:inline-flex}}@media (max-width: 720px){.appbar{flex-wrap:wrap;gap:8px;padding:6px 10px;padding-top:max(6px,env(safe-area-inset-top))}.brand{min-width:0}.brand__mark{width:26px;height:26px}.brand__text,.appbar .btn>span,.formatpick>span{display:none}.appbar__template,.appbar__actions{gap:6px}.chip{display:none}.formatpick{height:40px;padding:0 6px}.favorites{order:3;width:100%;overflow-x:auto;padding-bottom:2px}.panel{max-height:44vh}.clock__time{font-size:calc(32px*min(var(--clock-scale, 1),1.5))}.clock{max-width:46vw}.mlist__main{padding:10px 8px}.thumb__pick{width:84px}.statusbar{gap:10px;padding:6px 10px;padding-bottom:max(6px,env(safe-area-inset-bottom))}#stCursor,#stScale{display:none}.stage__hint{left:8px;right:8px;bottom:8px;max-width:none}}@media (max-width: 720px) and (orientation: portrait){.deck.is-split .deck__resizer{display:none}.deck.is-split .stage--secondary{grid-area:2 / 1;border-left:0;border-top:1px solid var(--line)}}@media (max-width: 720px){.stage__zoom,.stage__viewactions,.tabs,.calib__state,.calib__form--spacing,.formatpick,.statusbar{display:none}.appbar__util{display:inline-flex}.panel__inner{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
