@font-face{font-family:Onest;src:url('/assets/onest.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{font-family:Onest,Arial,sans-serif;font-synthesis:none;letter-spacing:0;font-kerning:normal;--bg:#141614;--surface:#20231f;--ink:#f1f0e7;--muted:#b8bcb3;--rule:#454b43;--accent:#a8c2ff;--accent-ink:#172b52;--good:#b9d5a8;--warn:#edd28e;--bad:#ffc0b2;--stop:#f1d2c8;--stop-ink:#602b21;--eye:#dfe2d5;--silhouette:#7e8879;--face:#253326;--line:#254ce2;color-scheme:dark;background:var(--bg);color:var(--ink)}
:root[data-theme=light]{--bg:#f2f1e9;--surface:#e8e8df;--ink:#202820;--muted:#53604f;--rule:#b8bfb1;--accent:#254dcc;--accent-ink:#fff;--good:#385b25;--warn:#785507;--bad:#9d3428;--stop:#572c23;--stop-ink:#fff0e8;--eye:#d8ded0;--silhouette:#818c7b;--face:#263824;--line:#214bcf;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;letter-spacing:0;color:inherit}button,a,summary,select{touch-action:manipulation}button,select,input,textarea{border:1px solid var(--rule);border-radius:8px;background:var(--surface)}button{min-height:44px;padding:10px 14px;cursor:pointer;font-weight:570;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.3}button:hover:not(:disabled){border-color:var(--ink);background:var(--rule)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.53;cursor:not-allowed}a{color:var(--accent);text-underline-offset:4px}button.link{padding:8px 0;background:none;border:0;color:var(--accent);text-align:left;justify-content:flex-start}button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:650}button.primary:hover:not(:disabled){filter:brightness(.92)}:focus-visible{outline:3px solid var(--accent);outline-offset:4px}::selection{background:var(--accent);color:var(--accent-ink)}input,textarea{caret-color:var(--accent)}textarea::placeholder,input::placeholder{color:var(--muted);opacity:1}h1,h2,h3,p,figure,dl{margin:0}h1{font-size:1.75rem;font-weight:590;line-height:1.18;letter-spacing:-.025em;max-width:25ch}h2{font-size:1.15rem;font-weight:620;line-height:1.35}h3{font-size:1rem;font-weight:650;line-height:1.4}p{line-height:1.55;max-width:65ch}small,.small{font-size:.8rem;line-height:1.5}.muted{color:var(--muted)}.icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-80px;left:12px;z-index:20;background:var(--bg);padding:12px}.skip:focus{top:8px}.shell{max-width:1120px;margin:auto;padding:0 20px}.topbar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:22px 0 12px}.wordmark{font-size:2rem;letter-spacing:0;font-weight:760;line-height:1}.tools{display:flex;align-items:center;gap:7px}.tools select{width:108px;padding:10px 7px;min-height:44px;font-size:.85rem}.icon-button{width:44px;padding:10px;background:none}.tabs{display:flex;border-bottom:1px solid var(--rule);gap:20px}.tabs a{font-size:.82rem;padding:15px 0 12px;color:var(--muted);text-decoration:none;min-height:46px;display:flex;align-items:center;border-bottom:2px solid transparent;text-align:center}.tabs a[aria-current=page]{border-color:var(--accent);color:var(--ink);font-weight:650}.connection-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;font-size:.75rem;min-height:44px}.connection-strip button{font-size:.75rem;min-height:32px;padding:4px 0}.demo-banner{padding:9px 12px;margin:0 -20px;background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.72rem}.demo-banner button{font-size:.72rem;min-height:32px;padding:4px 0;flex-shrink:0}.page{padding:23px 0 230px}.page-heading{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:24px}.page-heading .icon{width:24px;height:24px}.live-grid{display:grid;gap:0}.status{margin-bottom:18px}.status h2{font-size:1.6rem;letter-spacing:-.015em;display:flex;align-items:center;gap:9px}.status p{font-size:.85rem;color:var(--muted);margin-top:6px}.status[data-tone=good] h2{color:var(--good)}.status[data-tone=bad] h2{color:var(--bad)}.status[data-tone=warn] h2{color:var(--warn)}.scene-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.scene-heading h2{font-size:.9rem}.scene-heading span{font-size:.65rem;color:var(--muted);text-align:right}.scene-frame{position:relative;margin:14px -10px 5px}.eye-view{display:block;width:100%;height:auto}.eye-ground{fill:var(--eye)}.floor-lines{fill:none;stroke:#9aa691;stroke-width:.7}.silhouette{fill:var(--silhouette)}.face-mask{fill:var(--face)}.counting-line,.entry-arrow{stroke:var(--line);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.counting-line{stroke-dasharray:4 4}.crossing-pulse{stroke:var(--line);stroke-width:16;opacity:0}.crossing-silhouette{transform:translateX(-45px)}.scene-frame.unavailable .eye-view{opacity:.15}.scene-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:600}.scene-note{font-size:.72rem;color:var(--muted);margin-top:7px;line-height:1.5}.scene-legend{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.75rem}.scene-legend button{min-height:40px;font-size:.75rem}.reading{display:flex;align-items:baseline;gap:18px;margin:15px 0 10px}.count{font-size:8.8rem;letter-spacing:-.04em;line-height:.95;font-weight:530;font-variant-numeric:tabular-nums}.count.long{font-size:6rem}.count-word{font-size:2.7rem;line-height:1.15;letter-spacing:-.03em;overflow-wrap:anywhere}.count-label{font-size:.85rem;line-height:1.4;max-width:150px}.count-label small{display:block;margin-top:5px;color:var(--muted);font-size:.72rem}.crossings{display:flex;border-top:1px solid var(--rule);padding-top:16px;margin-top:20px;gap:32px}.crossings>div{flex:1}.crossings dt{font-size:.8rem;color:var(--muted)}.crossings dd{font-size:2rem;margin:3px 0 0;font-variant-numeric:tabular-nums}.coverage{margin-top:10px;font-size:.73rem;color:var(--muted)}.coverage.gap{color:var(--warn)}.privacy-detail{border-top:1px solid var(--rule);margin-top:28px;padding-top:23px}.privacy-detail h2{font-size:1rem}.privacy-detail p{font-size:.82rem;color:var(--muted);margin-top:8px}.privacy-detail .school{color:var(--warn)}.motor-detail{font-size:.8rem;margin-top:12px}.review-controls{margin-top:25px;color:var(--muted);font-size:.8rem}.review-controls select{width:100%;padding:12px;margin-top:10px}.review-controls label{display:block;margin-top:15px}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;font-size:.85rem}summary::before{content:'+';font-size:1.2rem;font-weight:400}details[open]>summary::before{content:'−'}summary::-webkit-details-marker{display:none}.dock{position:fixed;bottom:0;left:0;right:0;background:var(--bg);border-top:1px solid var(--rule);z-index:5;padding:12px 20px max(12px,env(safe-area-inset-bottom))}.dock-inner{max-width:1080px;margin:auto}.privacy-strip{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;font-size:.72rem;margin-bottom:10px;color:var(--muted)}.privacy-strip .camera{display:flex;align-items:center;gap:6px;color:var(--ink);font-size:.8rem}.stop-button{width:100%;background:var(--stop);border-color:var(--stop);color:var(--stop-ink);min-height:50px;font-weight:650}.stop-button .icon{fill:currentColor;stroke:none;width:15px;height:15px}.stop-button:hover:not(:disabled){background:var(--stop);filter:brightness(.9);border-color:var(--stop)}.dock-note{font-size:.65rem;color:var(--muted);margin-top:6px;min-height:1em}.notice{padding:12px 14px;background:var(--surface);font-size:.82rem;margin-bottom:20px;border-radius:8px;overflow-wrap:anywhere}.notice.error{color:var(--bad)}.notice p+p{margin-top:5px}.section-intro{color:var(--muted);font-size:.88rem;margin:10px 0 22px}.setup-grid{display:grid;gap:35px}.prompt-form label{display:block;font-size:.9rem;font-weight:600;margin-bottom:10px}.prompt-form textarea{display:block;width:100%;min-height:150px;resize:vertical;padding:15px;font-size:1rem;line-height:1.55;background:transparent}.prompt-meta{display:flex;justify-content:space-between;gap:10px;margin:8px 0 16px;color:var(--muted);font-size:.72rem}.examples{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.examples button{font-size:.77rem;padding:8px 11px;min-height:40px;background:transparent}.prompt-form .primary{width:100%;min-height:50px}.disclosure{font-size:.73rem;color:var(--muted);margin:12px 0 0}.plan-header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--rule)}.plan-header small{color:var(--muted);text-align:right}.plan-list{list-style:none;padding:0;margin:0}.plan-list li{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--rule);font-size:.9rem;align-items:center}.step-number{font-size:.75rem;color:var(--muted);width:20px;flex:0 0 20px;font-variant-numeric:tabular-nums}.plan-list .icon{width:15px;height:15px;flex-basis:15px;color:var(--muted);margin-left:auto}.plan-foot{color:var(--muted);font-size:.8rem;margin-top:14px}.file-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.file-actions button{font-size:.78rem}.recipe-json{overflow:auto;max-height:350px;max-width:100%;background:var(--surface);border-radius:8px;padding:15px;font-size:.75rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.setup-local{margin-top:30px;font-size:.8rem;color:var(--muted);border-top:1px solid var(--rule);padding-top:20px}.trial-selector{width:100%;padding:12px;min-height:48px;margin-bottom:20px}.trial-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}.trial-toolbar .tally{font-size:1.8rem;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.trial-toolbar .tally small{color:var(--muted);font-size:.75rem;letter-spacing:0}.trial-toolbar button{font-size:.8rem}.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.8rem;text-align:left;table-layout:fixed}caption{text-align:left;color:var(--muted);font-size:.72rem;margin-bottom:12px}th{color:var(--muted);font-weight:500;font-size:.72rem}td,th{border-bottom:1px solid var(--rule);padding:13px 5px;vertical-align:top;overflow-wrap:anywhere}td:first-child,th:first-child{width:34px;padding-left:0;font-variant-numeric:tabular-nums}th:last-child{width:45%}td small{display:block;color:var(--muted);font-size:.65rem;margin-top:5px}.result{font-size:.75rem;display:inline-flex;gap:5px;align-items:center}.result.pass{color:var(--good)}.result.fail{color:var(--bad)}.result.unknown{color:var(--muted)}.result .icon{width:13px;height:13px;flex-basis:13px}.row-save{font-size:.65rem;min-height:34px;margin-top:6px;padding:5px 8px}section.proof{margin-top:36px;padding-top:24px;border-top:1px solid var(--rule)}.proof>h2{margin-bottom:18px}.chain{border-top:1px solid var(--rule);padding:18px 0}.chain:first-of-type{border-top:0;padding-top:0}.chain-badge{font-size:.8rem;display:flex;gap:8px;align-items:flex-start;color:var(--muted);margin-bottom:18px}.chain-badge.complete{color:var(--good)}.chain-steps{list-style:none;padding:0;margin:0}.chain-steps li{display:grid;grid-template-columns:26px 1fr;gap:10px;position:relative;padding:0 0 22px}.chain-steps li:last-child{padding-bottom:0}.chain-steps li:not(:last-child):before{position:absolute;content:'';top:26px;bottom:0;left:12px;border-left:1px solid var(--rule)}.chain-index{display:grid;place-content:center;width:26px;height:26px;border:1px solid var(--rule);border-radius:50%;font-size:.7rem;color:var(--muted)}.chain-steps h3{font-size:.76rem;color:var(--muted);font-weight:500}.chain-steps p{font-size:1rem;margin-top:2px}.chain-steps code{font-size:.7rem;color:var(--muted)}.chain-change{font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:10px}.trial-form{padding:18px;background:var(--surface);border-radius:10px;margin-bottom:24px}.trial-form label{display:block;font-size:.8rem;margin-top:15px;margin-bottom:6px}.trial-form select,.trial-form input{width:100%;padding:12px;background:var(--bg)}.trial-form .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.trial-form .actions button{font-size:.8rem}.saved-row{padding:16px 0;border-bottom:1px solid var(--rule);font-size:.85rem}.saved-row button{font-size:.72rem;margin-top:8px}.saved-row p{margin-top:5px}.empty{font-size:.85rem;color:var(--muted);padding:10px 0}dialog{background:var(--bg);color:var(--ink);border:1px solid var(--rule);border-radius:12px;padding:24px;max-width:480px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#0009}dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}dialog label{display:block;font-size:.85rem;margin:20px 0 8px}dialog input{width:100%;padding:12px}dialog .primary{width:100%;margin-top:14px}dialog p{font-size:.8rem;color:var(--muted);margin-top:12px}dialog code{font-size:.75rem;overflow-wrap:anywhere}dialog .token-value{display:block;padding:14px;background:var(--surface);margin-top:15px;user-select:all}.dialog-error{color:var(--bad)!important}.font-proof{font-size:.8rem;line-height:2;margin-top:15px}button,input,textarea,select{max-width:100%}[hidden]{display:none!important}
@media(min-width:760px){.shell{padding:0 40px}.topbar{padding:30px 0 14px}.tabs{gap:32px}.tabs a{font-size:.9rem}.page{padding-top:35px;padding-bottom:180px}.demo-banner{margin:0;padding:9px 14px;border-radius:6px}.page-heading{margin-bottom:35px}h1{font-size:2rem}.live-grid{grid-template-columns:1.2fr 1fr;gap:10px 55px}.status{grid-column:2;grid-row:1;margin-bottom:10px;align-self:end}.scene{grid-column:1;grid-row:1 / span 2;align-self:center}.scene-heading h2{font-size:1rem}.scene-frame{margin:24px -10px 12px}.readout{grid-column:2;grid-row:2}.reading{margin:12px 0 0}.count{font-size:10rem}.count.long{font-size:7rem}.privacy-detail{margin-top:36px}.dock{padding:15px 40px}.dock-inner{display:grid;grid-template-columns:1fr 340px;gap:0 28px;align-items:center}.privacy-strip{margin:0}.stop-button,.dock-actions,.dock-todo{grid-column:2;grid-row:1 / span 2}.dock-note{grid-column:1;margin-top:4px}.setup-grid{grid-template-columns:1.15fr 1fr;gap:55px}.prompt-form textarea{min-height:180px}.trials-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:55px}.trials-layout section.proof{margin:0;padding:0;border:0}.trial-selector{max-width:420px}.table-wrap{min-width:0}.connection-strip{padding:10px 0}.privacy-strip .camera{font-size:.85rem}.privacy-strip{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.is-demo .connection-strip{display:none}
.camera-choice{margin-bottom:20px}.camera-choice select{width:100%;min-height:48px;padding:12px;font-size:.9rem}
.publication{margin-top:24px;border-top:1px solid var(--rule);padding-top:20px}.publication p,.publication a{display:block;margin:12px 0}.share-summary{display:flex;align-items:center;gap:10px;padding:8px 0}.share-summary input{width:20px;min-height:20px;margin:0}
.planner-report{font-size:.75rem;color:var(--muted);margin-top:12px;line-height:1.5}.planner-report span{color:var(--ink)}.status .planner-report{font-size:.75rem;margin-top:12px}.target-axis{fill:none;stroke:var(--face);stroke-width:1;opacity:.6}.target-ring{fill:var(--eye);stroke:var(--line);stroke-width:3}.target-dot{fill:var(--line)}.target-legend{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;font-size:.75rem;color:var(--muted);margin:0 24px}.target-legend .current{color:var(--ink);font-weight:650;text-decoration:underline;text-underline-offset:5px}.without-scene .status,.without-scene .readout{grid-column:1 / -1}
@media(max-width:759px){.topbar{padding:15px 0 8px}.demo-banner{padding-top:5px;padding-bottom:5px}.screen-live .page{padding-top:18px}.screen-live .page-heading{margin-bottom:16px}.screen-live .status{margin-bottom:14px}.screen-live .status h2{font-size:1.5rem}.screen-live .scene-frame{margin:8px 0 2px}.screen-live .scene-heading span{font-size:.62rem}.screen-live .scene-legend button{min-height:32px}.screen-live .reading{margin:12px 0 0}.screen-live .count{font-size:7.8rem}.screen-live .count.long{font-size:5.5rem}}
.tabs a{min-width:0;overflow-wrap:anywhere;flex:1;justify-content:center}.tabs{gap:12px}.reading{flex-wrap:wrap}.live-grid>*{min-width:0}.count.long{font-size:min(6rem,calc((100vw - 60px) / var(--digits) / .65))}
@media(max-width:759px){.screen-live .count.long{font-size:min(5.5rem,calc((100vw - 60px) / var(--digits) / .65))}}
@media(min-width:760px){.tabs a{flex:0 1 auto}.tabs{gap:32px}}

/* The picture fits wholly inside the eye. Closing removes it immediately; only the lid moves. */
.live-eye{position:relative;aspect-ratio:1.8}.live-eye-shape{width:100%;height:100%;display:block}.eye-picture{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:url(#eye-clip);animation:eye-open .32s cubic-bezier(.16,1,.3,1) both}@keyframes eye-open{from{opacity:0}to{opacity:1}}.eye-clip-def{position:absolute;width:0;height:0}.eye-rim{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.eye-rim path{fill:none;stroke:var(--rule);stroke-width:1.5;vector-effect:non-scaling-stroke}.eye-lid{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;opacity:0;transition:opacity .2s ease-out}.live-eye.is-closed .live-eye-shape{opacity:.4}.live-eye.is-closed .eye-lid{opacity:1}.eye-label{font-size:.75rem;color:var(--muted);line-height:1.5;margin-top:8px}.eye-reason{position:absolute;left:16%;right:16%;top:24%;margin:0;text-align:center;font-size:.85rem;font-weight:560;line-height:1.35;color:var(--ink);text-wrap:balance}.eye-label{text-align:center}.local-eye .scene-heading span{flex-shrink:0}
@media(prefers-reduced-motion:reduce){.eye-lid{transition:none}}
/* UX pass (Oct 18): every state says why and what to do; one obvious action in the dock. */
.status h2 .countdown{margin-left:auto;flex-shrink:0;white-space:nowrap;font-size:1rem;font-weight:520;color:var(--muted);font-variant-numeric:tabular-nums}
.status[data-tone=neutral] h2{color:var(--ink)}
.status .todo{color:var(--ink);font-weight:560;margin-top:10px;line-height:1.45}
.test-progress{height:6px;margin:14px 0 6px;border-radius:3px;background:var(--rule);overflow:hidden}
.test-progress span{display:block;height:100%;background:var(--warn);transform-origin:left;transform:scaleX(var(--p));animation:test-fill 3s linear forwards}
@keyframes test-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.status .test-round{font-size:.75rem;margin-top:0}
.count.is-unknown,.screen-live .count.is-unknown{font-size:3.4rem;font-weight:300;color:var(--muted);letter-spacing:0;line-height:1}
.crossings dd .dash{color:var(--muted);font-weight:300}
.motor-hint{font-size:.78rem;color:var(--warn);margin-top:6px;line-height:1.45}
.dock-actions{display:grid;gap:10px}
.dock-actions.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.dock-actions.two.stacked{grid-template-columns:minmax(0,1fr)}
.dock-actions button{width:100%;min-height:50px;padding:10px 12px}
.dock-actions .icon{width:16px;height:16px;flex:0 0 16px}
.dock-second{background:transparent}
.dock-todo{font-size:.85rem;font-weight:560;line-height:1.45;padding:8px 0}
/* The eye opens a large view (Oct 18). The picture inside the eye is a button only while open. */
.live-eye:not(.is-closed){cursor:zoom-in}
.live-eye:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:50%}
.eye-hint{margin-top:2px}
dialog.eye-large{padding:0;border:0;border-radius:0;background:transparent;max-width:none;max-height:none;width:100vw;height:100dvh;overflow:hidden;cursor:zoom-out}
dialog.eye-large[open]{display:grid;place-items:center;align-content:center;gap:12px;animation:eye-large-in .18s ease-out}
dialog.eye-large::backdrop{background:rgb(10 12 10 / .97)}
dialog.eye-large img{display:block;max-width:min(96vw,1100px);max-height:calc(100dvh - 90px);width:auto;height:auto;border-radius:14px;object-fit:contain}
.eye-large-note{margin:0;padding:0 16px;color:#e8e9e1;font-size:.82rem;text-align:center}
@keyframes eye-large-in{from{opacity:0}to{opacity:1}}


.device-status{font-weight:600;margin-bottom:12px}.device-status.is-live{color:var(--good,inherit)}
.dialog-warning{background:var(--surface);color:var(--warn);padding:10px 12px;border-radius:8px;margin:12px 0}
.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}

/* Design review, Oct 22 */
@media(max-width:759px){.live-grid .readout{order:2}.live-grid .scene{order:3;margin-top:18px}}  /* phones: the reading before the diagram */
.dialog-section{padding:16px 0;border-top:1px solid var(--rule)}.dialog-section:first-of-type{border-top:0;padding-top:0}
.dialog-section h3{font-size:.95rem;margin-bottom:8px}.dialog-foot{display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:14px;border-top:1px solid var(--rule)}
.icon-button .icon{width:18px;height:18px}
.status[data-step="stopped"] h2 .icon path,.status[data-step="stoppedByYou"] h2 .icon path{fill:currentColor}
.more-rows td{padding-top:12px;font-size:.85rem}
@media(min-width:760px){.trials-layout section.proof section.proof{margin-top:36px;padding-top:24px;border-top:1px solid var(--rule)}}
.dialog-section .publication{margin-top:0;border-top:0;padding-top:0}  /* the section already draws the line */

/* ── Visual pass (Oct 22): direction D, finished ──────────────────────────────────────────────
   Islombek: "easy to use and understand, cutting edge"; too plain, text too small and grey, not
   like a real app, colours and the eye. Same idea (eye, giant reading, Stop bar), finished: one
   level of panels instead of thin rules, a tinted status panel per state, a dark lens for the
   eye, nothing under 13 px, app-like controls. Panels never nest; no gradients or glows; one
   soft shadow only on floating layers (windows). */
:root{--bg:#0b0e0c;--surface:#141815;--surface-2:#1d221e;--ink:#f3f2ea;--muted:#a9b0a5;--rule:#262c27;--line-strong:#363e37;
 --accent:#9cb7ff;--accent-ink:#0c1a3a;--good:#a6df8a;--warn:#f1cd70;--bad:#ff9e8b;--stop:#cf3f2a;--stop-ink:#fff;
 --eye:#18201b;--eye-rim:#3a4a40;--silhouette:#c6d0c0;--face:#0b0e0c;--floor:#2e3a32;--line:#7f9fff;--radius:20px;--shadow:0 24px 60px -24px #000d}
:root[data-theme=light]{--bg:#f3f2eb;--surface:#fff;--surface-2:#eceee5;--ink:#1a201b;--muted:#566052;--rule:#dfe2d6;--line-strong:#c9cdbf;
 --accent:#2348c4;--accent-ink:#fff;--good:#2d6a1d;--warn:#7a5600;--bad:#a12f1e;--stop:#c63a26;--stop-ink:#fff;
 --eye:#e5eae0;--eye-rim:#c3cbbb;--silhouette:#6c7866;--face:#1d281f;--floor:#cbd3c4;--line:#2348c4;--shadow:0 24px 50px -28px #4a503f66}
small,.small{font-size:.8125rem}
button,select,input,textarea{border-radius:12px;border-color:var(--line-strong)}
button:hover:not(:disabled){border-color:var(--muted);background:var(--surface-2)}
button:disabled{opacity:.45}
button.primary{border-radius:14px}
h1{font-size:2rem;font-weight:650;letter-spacing:-.03em;line-height:1.1}

/* header: wordmark, a segmented tab switch, the connection as a pill */
.topbar{padding:18px 0 12px}
.wordmark{font-size:1.6rem;font-weight:780;letter-spacing:-.02em}
.tools select,.icon-button{background:var(--surface);border-color:var(--rule);border-radius:12px}
.tabs{border:0;background:var(--surface);border-radius:14px;padding:4px;gap:4px}
.tabs a{border:0;border-radius:10px;min-height:42px;padding:8px 10px;font-size:.875rem;font-weight:560;color:var(--muted)}
.tabs a[aria-current=page]{background:var(--surface-2);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}
.connection-strip{padding:14px 0 2px;min-height:auto;font-size:.8125rem}
.link-state{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--surface);font-weight:560}
.link-state .dot{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.link-state.is-on .dot{background:var(--good)}
.link-state.is-off{color:var(--muted)}
.connection-strip button.link{font-size:.8125rem;min-height:34px;padding:6px 14px;border:1px solid var(--line-strong);border-radius:999px}
.notice{border-radius:14px;font-size:.875rem;padding:12px 16px}
.page{padding-top:22px}

/* Live: a status panel tinted by its state, the reading and the diagram on their own panels */
.live-grid{gap:12px}
.status,.readout,.scene{background:var(--surface);border-radius:var(--radius);padding:20px}
.status{margin:0;--tone:var(--muted)}
.status[data-tone=good]{--tone:var(--good)}.status[data-tone=warn]{--tone:var(--warn)}.status[data-tone=bad]{--tone:var(--bad)}
.status[data-tone=good],.status[data-tone=warn],.status[data-tone=bad]{background:color-mix(in srgb,var(--tone) 9%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 24%,transparent)}
.status h2,.screen-live .status h2{font-size:1.7rem;letter-spacing:-.02em;gap:12px}
.status h2 .icon{width:34px;height:34px;flex-basis:34px;padding:7px;border-radius:50%;background:color-mix(in srgb,currentColor 16%,transparent)}
.status p{font-size:.95rem;color:var(--ink);opacity:.88;margin-top:8px}
.status .todo{opacity:1;margin-top:14px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--bg) 50%,transparent);font-weight:600}
.status .planner-report,.planner-report{display:inline-flex;align-items:center;gap:4px;margin-top:14px;padding:5px 11px;border-radius:999px;background:color-mix(in srgb,var(--bg) 50%,transparent);font-size:.8125rem;opacity:1}
.status .test-round{font-size:.8125rem}
.test-progress{height:8px;border-radius:4px;background:color-mix(in srgb,var(--bg) 60%,transparent)}
.readout{padding:20px 22px}
.reading{margin:0}
.count{font-weight:620;letter-spacing:-.05em}
.count-label{font-size:1rem;font-weight:600;max-width:190px}
.count-label small{font-size:.8125rem;font-weight:500}
.crossings{border-top:0;padding-top:0;margin-top:18px;gap:10px}
.crossings>div{background:var(--surface-2);border-radius:14px;padding:12px 14px}
.crossings dt{font-size:.8125rem}
.crossings dd{font-size:2.2rem;font-weight:620}
.coverage{font-size:.8125rem;margin-top:12px}
.motor-detail,.motor-hint{font-size:.875rem}
.scene-heading h2,.screen-live .scene-heading h2{font-size:1rem}
.scene-heading span,.screen-live .scene-heading span{font-size:.8125rem;color:var(--muted)}
.scene-frame,.screen-live .scene-frame{margin:14px 0 6px}
.eye-ground{fill:var(--eye);stroke:var(--eye-rim);stroke-width:1.5}
.floor-lines{stroke:var(--floor);stroke-width:1}
.scene-frame.unavailable .eye-view{opacity:.3}
.scene-cover b{padding:8px 16px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line-strong);font-size:.9rem;font-weight:600}
.scene-legend{font-size:.8125rem;color:var(--muted)}
.target-axis{stroke:var(--floor);opacity:1}
.target-legend{font-size:.8125rem}
.privacy-detail{border-top:0;margin-top:20px;padding:0 4px}
.privacy-detail h2{font-size:.95rem}
.privacy-detail p{font-size:.875rem}

/* the bottom bar: content scrolls under it; facts as chips; one solid Stop */
.dock{background:color-mix(in srgb,var(--bg) 84%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top-color:var(--rule);padding:12px 16px max(14px,env(safe-area-inset-bottom))}
.privacy-strip{gap:6px;margin-bottom:10px}
.privacy-strip>span{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:var(--surface);font-size:.8125rem;color:var(--muted)}
.privacy-strip .camera,.privacy-strip>span.camera{color:var(--ink);font-size:.8125rem}
.privacy-strip .camera .icon{width:16px;height:16px;flex-basis:16px}
.stop-button{border-radius:16px;min-height:56px;font-size:1.05rem;font-weight:700}
.stop-button:hover:not(:disabled){filter:brightness(1.08)}
.dock-actions button{min-height:54px;border-radius:16px;font-size:1rem}
.dock-second{background:var(--surface);border-color:var(--line-strong)}
.dock-note{font-size:.8125rem}.dock-note:empty{display:none}
.dock-todo{font-size:.95rem}

/* Set up a job: the text box is the main surface; examples as chips; the plan as a panel */
.prompt-form label{font-size:1rem}
.prompt-form textarea{background:var(--surface);border-color:var(--line-strong);border-radius:18px;padding:18px;font-size:1.05rem;min-height:160px}
.prompt-form textarea:focus{outline:none;border-color:var(--accent)}
.prompt-meta{font-size:.8125rem}
.examples{gap:8px}
.examples button{border-radius:999px;background:var(--surface);border-color:var(--rule);font-size:.875rem;padding:8px 14px}
.prompt-form .primary{min-height:56px;border-radius:16px;font-size:1.05rem}
.disclosure{font-size:.8125rem}
.plan{background:var(--surface);border-radius:var(--radius);padding:20px}
.plan-header small{font-size:.8125rem}
.plan-list li{font-size:.95rem}
.plan-foot{font-size:.875rem}
.file-actions button{font-size:.875rem;background:var(--surface-2)}
.camera-choice select{border-radius:14px;background:var(--surface)}

/* Trials: the table on a panel, a clear tally */
.trial-selector{border-radius:14px;background:var(--surface)}
.trial-toolbar .tally{font-size:2.4rem}.trial-toolbar .tally small{font-size:.875rem}
.trial-toolbar button{font-size:.875rem}
.table-wrap{background:var(--surface);border-radius:var(--radius);padding:4px 16px}
table{font-size:.875rem} th,caption{font-size:.8125rem} td small{font-size:.75rem}
tbody tr:last-child td{border-bottom:0}
.trial-form{border-radius:var(--radius)}
.row-save{font-size:.75rem}
.empty{font-size:.875rem}
.chain-steps h3,.chain-index{font-size:.8125rem}

/* windows float */
dialog{background:var(--surface);border-color:var(--rule);border-radius:24px;padding:22px;box-shadow:var(--shadow)}
dialog::backdrop{background:#000b}
dialog p{font-size:.875rem}
dialog label{font-size:.9rem}
dialog .token-value{border-radius:12px;background:var(--surface-2)}
.dialog-section h3{font-size:1rem}
.device-status{font-size:.95rem}

@media(min-width:760px){
 .shell{padding:0 40px}
 .topbar{padding:28px 0 16px}
 .tabs{display:inline-flex}
 .tabs a{padding:8px 18px;font-size:.9rem}
 h1{font-size:2.5rem}
 .live-grid{grid-template-columns:1.15fr 1fr;gap:16px}
 .scene{align-self:stretch;display:flex;flex-direction:column}
 .scene .scene-frame{flex:1;display:flex;align-items:center}
 .status{align-self:stretch}
 .setup-grid{gap:32px}
 .trials-layout{gap:32px}
 .trials-layout>section.proof{background:var(--surface);border-radius:var(--radius);padding:20px}
 .dock{padding:14px 40px}
 .privacy-strip{margin:0}
}

/* Visual pass, round 2: the lens stands out from its panel; phone tabs stay on one line */
:root{--eye:#1f2923;--eye-rim:#4b5e51;--floor:#364539}
:root[data-theme=light]{--eye:#e5eae0;--eye-rim:#c3cbbb;--floor:#cbd3c4}
@media(max-width:759px){.shell{padding:0 16px}.tabs a{padding:8px 4px;font-size:.8125rem;line-height:1.2}}
.tabs a,.tabs a[aria-current=page]{font-weight:600}  /* same width active or not: the active tab is marked by its surface, so labels never jump or wrap */
@media(max-width:759px){.plan-header{flex-direction:column;align-items:flex-start;gap:4px}.plan-header small{text-align:left}}  /* the title never squeezes beside its hint */

/* Dropdowns (Oct 22: Safari drew them in its own old style): one look everywhere */
select{-webkit-appearance:none;appearance:none;background-color:var(--surface);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a9b0a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding:10px 38px 10px 14px;border:1px solid var(--line-strong);border-radius:12px;min-height:44px;color:var(--ink);font-size:.9375rem;font-weight:560;line-height:1.3;cursor:pointer}
:root[data-theme=light] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23566052' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E")}
select:hover{border-color:var(--muted)}
.tools select{width:auto;min-width:118px;padding:10px 36px 10px 14px;font-size:.875rem}
.trial-selector,.camera-choice select,.trial-form select{width:100%;min-height:50px;font-size:1rem;border-radius:14px}
.trial-form select{background-color:var(--bg)}
/* What Koʻz can do, said before the first job; the Trials scope; the judges' sample-run button */
.capability{font-size:.875rem;color:var(--muted);margin:-6px 0 18px;line-height:1.5}
.trials-scope{font-size:.875rem;color:var(--muted);margin:-12px 0 20px;max-width:62ch;line-height:1.5}
.status-cta{margin-top:16px}.status-cta .primary{min-height:50px;padding:10px 20px;border-radius:14px}

select,.tools select,.trial-selector,.camera-choice select,.trial-form select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a9b0a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}  /* the arrow survives the panel colours */
:root[data-theme=light] select,:root[data-theme=light] .tools select,:root[data-theme=light] .trial-selector,:root[data-theme=light] .camera-choice select,:root[data-theme=light] .trial-form select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23566052' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E")}

/* The eye picture of THIS computer on the AWS page (Oct 22): drawn by the browser over the diagram,
   clipped to the eye; the diagram returns at once when the job stops or the picture can't come. */
[data-mac-eye]{position:relative}
.mac-eye{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:url(#mac-eye-clip);cursor:zoom-in;animation:eye-open .32s cubic-bezier(.16,1,.3,1) both}
.scene-frame.has-picture .eye-view,.scene-frame.has-picture .target-legend{opacity:0}
/* Oct 25 (Islombek): the owner chooses the eye's shape (eye or square) and size; the choice stays in this browser. */
.view-controls{display:flex;gap:8px;justify-content:flex-end;margin:8px 0 0}.view-controls button.chip{min-height:36px;padding:6px 12px;font-size:.78rem;border-radius:999px;background:var(--surface)}
:root[data-eye-shape=square] .eye-picture,:root[data-eye-shape=square] .mac-eye{clip-path:none;object-fit:contain;background:#000;border-radius:12px}
:root[data-eye-shape=square] .live-eye:not(.is-closed) .live-eye-shape,:root[data-eye-shape=square] .live-eye:not(.is-closed) .eye-rim{opacity:0}
:root[data-eye-size=large] .live-grid{grid-template-columns:1fr!important}:root[data-eye-size=large] .live-grid .scene{grid-column:1/-1!important;grid-row:auto!important;order:-1}
:root[data-entry=right_to_left] .entry-arrow{transform:scaleX(-1);transform-box:view-box;transform-origin:180px 178px}
:root[data-eye-size=large] .live-grid .status,:root[data-eye-size=large] .live-grid .readout{grid-column:1!important;grid-row:auto!important}:root[data-eye-size=large] .live-grid .scene{grid-row:1!important}:root[data-eye-size=large] .live-grid .status{grid-row:2!important}:root[data-eye-size=large] .live-grid .readout{grid-row:3!important}
