:root{color-scheme:light dark;--bg:#eef2f3;--surface:#ffffffc9;--text:#202e38;--muted:#6d7b85;--line:#dce3e6;--glass:#f8fbfc80;--selected:#ffffffe8;--accent:#456d66;--accent-soft:#e9f0ee;--warning:#946c32;--warning-soft:#f7f0e5;--error:#a8504c;--error-soft:#f8eeec;--radius:22px;--inset-radius:16px;--space:20px;--shadow:0 1px 2px #21344206;--glass-shadow:0 5px 16px #2134420a;--focus:#527e99;font-family:MiSans,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;font-weight:400;line-height:1.6;-webkit-tap-highlight-color:transparent}
@media(prefers-color-scheme:dark){:root{--bg:#151c22;--surface:#222b32e6;--text:#e8edf0;--muted:#a0aeb7;--line:#36414a;--glass:#2c38418c;--selected:#43505cdc;--accent:#a1c7bc;--accent-soft:#263c36;--warning:#dec395;--warning-soft:#393226;--error:#eeaaa5;--error-soft:#3b2b2c;--shadow:0 1px 3px #00000016;--glass-shadow:0 5px 16px #00000020;--focus:#9dc6df}}
*{box-sizing:border-box}body{margin:0;min-width:0;background:var(--bg);color:var(--text)}body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 16% 0%,#75a7bc17,transparent 44%),radial-gradient(ellipse at 95% 52%,#cfb3940c,transparent 40%)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,main:focus-visible{outline:3px solid var(--focus);outline-offset:4px}button:focus:not(:focus-visible),main:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}.app-shell{width:100%;max-width:620px;margin:0 auto;padding:calc(24px + env(safe-area-inset-top)) var(--space) calc(108px + env(safe-area-inset-bottom));min-height:100svh}.page-header{margin-bottom:28px}.page-header:empty{display:none}.eyebrow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;margin-bottom:20px;color:var(--muted);font-size:12px;letter-spacing:.12em}.eyebrow .live{letter-spacing:0}.live,.status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.live:before,.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}.live{color:var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.28;letter-spacing:-.025em;font-weight:500;overflow-wrap:anywhere}h2{font-size:18px;font-weight:500;line-height:1.4}h3{font-size:16px;font-weight:500;line-height:1.4}.subtitle{margin-top:10px;color:var(--muted);font-size:13px;line-height:1.65}.icon{display:inline-block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.glass{background:linear-gradient(145deg,var(--glass-sheen),transparent 72%),var(--glass);border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow),inset 0 1px 0 var(--glass-sheen)}.filter{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;border-radius:var(--radius);margin-bottom:26px}.filter button{border:0;background:transparent;min-height:44px;border-radius:var(--inset-radius);display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap;padding:7px 3px}.filter button[aria-pressed=true]{color:var(--text)}.count{font-variant-numeric:tabular-nums;opacity:.65}.section-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:400;margin:25px 3px 12px}.section-label:first-child{margin-top:0}.stack{display:grid;gap:12px}.card{width:100%;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(155deg,var(--surface-sheen),transparent 68%),var(--surface);box-shadow:var(--shadow);text-align:left;min-width:0}.card-button{transition:transform 180ms var(--ease-fluid),opacity 140ms ease}.card-button:not(:disabled):active{transform:scale(.988);opacity:.9;transition-duration:85ms}.task-top,.device-top{display:flex;align-items:center;gap:12px}.brand{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none}.brand img{width:32px;height:32px;object-fit:contain}.task-main,.grow{flex:1;min-width:0}.task-title{font-size:15px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.source{font-size:11px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere;line-height:1.65}.chevron{width:16px;height:16px;color:var(--muted)}.task-body{padding-left:46px;margin-top:12px}.preview{font-size:12px;color:var(--muted);line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.meta-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:14px;font-size:11px;color:var(--muted)}.status{font-size:11px;color:var(--muted)}.status.running,.status.completed{color:var(--accent)}.status.waiting{color:var(--warning)}.status.error{color:var(--error)}.status.stale{color:var(--muted)}.muted{color:var(--muted)}.navigation{position:fixed;z-index:20;bottom:calc(16px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 40px);max-width:580px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;border-radius:var(--radius)}.navigation button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px;border:0;border-radius:var(--inset-radius);background:transparent;color:var(--muted);font-size:13px}.navigation button[aria-current=page]{color:var(--text)}.back{display:inline-flex;align-items:center;gap:3px;min-height:44px;padding:0;margin:-9px 0 16px -6px;border:0;background:transparent;color:var(--muted);font-size:12px}.empty{text-align:center;padding:42px 16px}.empty>.icon{width:36px;height:36px;color:var(--muted);margin-bottom:20px}.empty h1,.empty h2{font-size:18px}.empty p{color:var(--muted);font-size:13px;margin:10px auto 0;max-width:290px}.empty .button{margin-top:22px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 18px;min-height:48px;background:var(--text);color:var(--bg);border:1px solid transparent;border-radius:var(--inset-radius);font-size:13px;font-weight:500;text-align:center;line-height:1.6;text-decoration:none}.button.full{display:flex;width:100%}.button.secondary{background:var(--surface);color:var(--text);border-color:var(--line)}.button.danger{background:var(--error-soft);color:var(--error);border-color:var(--error-soft)}.text-button{border:0;background:transparent;color:var(--accent);font-size:12px;min-height:44px;padding:0 6px;text-decoration:underline;text-underline-offset:4px}.footnote{margin:20px 3px;color:var(--muted);font-size:12px;line-height:1.8;overflow-wrap:anywhere}.connection,.notice{border:1px solid var(--line);background:var(--surface);border-radius:var(--inset-radius);padding:12px 14px;margin-bottom:20px;font-size:12px;line-height:1.6}.connection{background:var(--warning-soft);color:var(--warning);border-color:transparent}.notice{color:var(--error)}.connection button,.notice button{font-size:12px;background:none;border:0;color:inherit;min-height:36px;padding:3px 0;display:block;text-decoration:underline;text-underline-offset:4px}.detail-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.detail-heading h1{font-size:24px}.detail-heading .brand{width:40px;height:40px}.detail-heading .brand img{width:38px;height:38px}.details{display:grid;gap:0}.details>div{padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;font-size:12px}.details>div:first-child{padding-top:0}.details>div:last-child{padding-bottom:0;border:0}.details dt{color:var(--muted)}.details dd{margin:0;overflow-wrap:anywhere}.output{margin:0;font:12px/1.85 MiSans,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:460px;overflow-y:auto}.output.empty-output{color:var(--muted)}.inline-note{border-radius:var(--inset-radius);background:var(--accent-soft);color:var(--accent);padding:13px 15px;font-size:12px;line-height:1.75;margin-bottom:16px}.inline-note.warning{background:var(--warning-soft);color:var(--warning)}.profile{display:flex;align-items:center;gap:14px;padding:22px 0 28px}.avatar{display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);width:54px;height:54px;border-radius:18px;flex:none}.avatar .icon{width:26px;height:26px}.profile h2{font-size:21px;overflow-wrap:anywhere}.profile p{font-size:12px;margin-top:4px;color:var(--muted)}.menu-row{display:flex;align-items:center;gap:14px;min-height:80px}.menu-row>.icon:first-child{width:23px;height:23px;color:var(--muted)}.menu-row h3{font-size:14px}.menu-row p{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.65}.menu-row>.chevron{margin-left:auto}.row-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--muted);flex:none}.row-icon .icon{width:25px;height:25px}.device-top h2{font-size:15px}.device-state{margin-top:14px;padding-left:52px;font-size:12px;color:var(--muted)}.device-state .status{font-size:12px}.setting{display:flex;gap:18px;align-items:center}.setting h3{font-size:14px}.setting p{font-size:12px;color:var(--muted);margin-top:5px}.switch{appearance:none;-webkit-appearance:none;width:44px;height:26px;min-width:44px;background:var(--line);border:1px solid transparent;border-radius:16px;position:relative;margin:0;transition:background-color 180ms ease;cursor:pointer}.switch:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform 220ms var(--ease-fluid)}.switch:checked{background:var(--accent)}.switch:checked:before{transform:translateX(18px)}.session-card{display:flex;align-items:flex-start;gap:12px}.session-card h3{font-size:14px}.session-card p{font-size:12px;color:var(--muted);margin-top:4px}.session-actions{padding-left:33px;margin-top:12px}.badge{font-size:10px;background:var(--accent-soft);color:var(--accent);padding:3px 8px;border-radius:8px;white-space:nowrap}.pairing-code{text-align:center;padding:26px 12px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);font-size:30px;line-height:1.5;letter-spacing:.12em;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.steps{padding:0;list-style:none;margin:24px 0;display:grid;gap:20px;counter-reset:steps}.steps li{counter-increment:steps;display:flex;gap:12px;font-size:13px;line-height:1.8}.steps li:before{content:counter(steps);display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);border-radius:50%;width:26px;height:26px;flex:none;font-size:12px}.auth{max-width:410px;margin:0 auto;padding-top:8svh}.auth-mark{width:48px;height:48px;margin-bottom:28px}.auth h1{font-size:28px}.auth-form{margin-top:32px;display:grid;gap:20px}.field{display:block}.field span{display:block;font-size:12px;margin-bottom:8px;color:var(--muted)}.field input{display:block;width:100%;min-height:50px;border:1px solid var(--line);border-radius:var(--inset-radius);background:var(--surface);padding:12px 14px;font-size:16px}.field input::placeholder{color:var(--muted);opacity:.7}.field small{display:block;color:var(--muted);margin-top:7px;font-size:11px}.auth-form .button{margin-top:4px}.form-error{color:var(--error);font-size:12px;line-height:1.7}.auth-footer{font-size:11px;line-height:1.8;color:var(--muted);margin-top:24px}.sync-summary{display:flex;gap:12px;align-items:center;padding:20px}.sync-summary>.icon{color:var(--accent)}.sync-summary h2{font-size:15px}.sync-summary p{font-size:12px;color:var(--muted);margin-top:3px}dialog{max-width:370px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:var(--radius);padding:24px;background:var(--bg);color:var(--text);box-shadow:0 16px 48px #00000026}dialog::backdrop{background:#16212c66}dialog h2{font-size:19px}dialog p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:12px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.spinner{display:inline-block;width:26px;height:26px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:16px}.noscript{padding:24px;text-align:center}.empty .empty-note{font-size:12px;margin-top:16px}.spaced{margin-top:24px}.section-actions{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}.section-actions .section-label{margin:0}
@keyframes spin{to{transform:rotate(360deg)}}
#main>section[data-key="attention"]+section[data-key="other"]{margin-top:25px}
/* Scrollable surfaces use static translucency; only the fixed navigation samples the backdrop. */
:root{--ease-fluid:cubic-bezier(.2,.8,.2,1);--glass-sheen:#ffffff66;--glass-edge:#ffffffa6;--surface-sheen:#ffffff24}
@media(prefers-color-scheme:dark){:root{--glass-sheen:#ffffff0c;--glass-edge:#ffffff1c;--surface-sheen:#ffffff04}}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  .navigation.glass{backdrop-filter:blur(14px) saturate(115%);-webkit-backdrop-filter:blur(14px) saturate(115%)}
}
/* Keep these containers mounted. JS changes only --active-index and the accessible selection state. */
.filter::before,.navigation::before{content:"";position:absolute;z-index:0;pointer-events:none;top:5px;bottom:5px;left:5px;width:calc((100% - 18px)/3);border-radius:var(--inset-radius);background:var(--selected);box-shadow:0 1px 3px #2134420b,inset 0 1px 0 var(--glass-sheen);transform:translateX(calc(var(--active-index,0)*(100% + 4px)));transition:transform 240ms var(--ease-fluid)}
.filter>button,.navigation>button{position:relative;z-index:1;transition:color 150ms ease,transform 180ms var(--ease-fluid),opacity 120ms ease}
.filter>button:not(:disabled):active,.navigation>button:not(:disabled):active{transform:scale(.965);opacity:.85;transition-duration:75ms}
.button,.back,.text-button,.info-button{transition:transform 180ms var(--ease-fluid),opacity 140ms ease}
.button:not(:disabled):active{transform:scale(.975);opacity:.9;transition-duration:85ms}
.back:not(:disabled):active,.text-button:not(:disabled):active,.info-button:not(:disabled):active{transform:scale(.96);opacity:.75;transition-duration:85ms}
dialog[open]{animation:dialog-enter 190ms var(--ease-fluid)}
dialog[open]::backdrop{animation:backdrop-enter 170ms ease-out}
@keyframes dialog-enter{from{opacity:0;transform:translateY(7px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes backdrop-enter{from{opacity:0}to{opacity:1}}
@media(min-width:700px){.app-shell{padding-top:44px}.page-header{margin-bottom:30px}.auth{padding-top:6svh}h1{font-size:34px}.task-title{font-size:16px}.source,.meta-row,.status{font-size:12px}.preview{font-size:13px}.filter button{font-size:13px}.card{padding:22px}.navigation{bottom:24px}}
@media(max-width:359px){:root{--space:16px}.navigation{width:calc(100% - 32px)}.card{padding:16px}.task-body{padding-left:0}.filter button{font-size:11px;gap:4px}.filter{padding:5px}.navigation button{gap:6px;font-size:12px}.eyebrow{font-size:11px}.details>div{grid-template-columns:70px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:active{transform:none!important}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.app-shell{padding-left:max(var(--space),env(safe-area-inset-left));padding-right:max(var(--space),env(safe-area-inset-right))}
.navigation{width:calc(100% - var(--space) * 2 - env(safe-area-inset-left) - env(safe-area-inset-right))}
@media(min-width:700px){.app-shell{padding-top:calc(44px + env(safe-area-inset-top))}.navigation{bottom:calc(24px + env(safe-area-inset-bottom))}}
.title-row{display:flex;align-items:center;gap:8px;min-width:0}.title-row h1{flex:0 1 auto;min-width:0}.info-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:var(--inset-radius);background:transparent;color:var(--muted)}.info-button .icon{width:17px;height:17px}.info-button:active{background:var(--surface)}.detail-heading h1{flex:1;min-width:0}.detail-heading .info-button{margin-left:-4px}.help-content{font-size:13px}.menu-row.compact{min-height:68px}.pairing-address{padding:15px 18px;margin-bottom:20px;overflow-wrap:anywhere;font-size:13px}.pairing-address dt{font-size:11px;color:var(--muted);margin-bottom:4px}.pairing-address dd{margin:0}.device-state.compact{display:flex;align-items:center;justify-content:space-between;gap:12px}.setting-value{color:var(--muted);font-size:12px;white-space:nowrap}.task-body.compact{margin-top:0}.task-body.compact .meta-row{margin-top:12px}#help-dialog{max-height:calc(100svh - 40px);overflow:auto}#help-dialog h2{padding-right:4px}#help-content{display:grid;gap:14px;margin:20px 0 24px}#help-content p{margin:0;color:var(--muted);font-size:13px;line-height:1.85;overflow-wrap:anywhere}#help-dialog .button{margin-top:0}
