@font-face{font-family:Kalam;src:url(/fonts/Kalam-Regular.ttf)format("truetype");font-display:swap}:root{--ink:#1c1c1e;--muted:#6b6b70;--line:#e4e2dc;--bg:#f6f5f2;--card:#fff;--red:#d4141a;--red-dark:#b00f14;--soft:#fbeaea;--focus:#2463eb;--radius:18px;--shadow:0 1px 2px #0000000a, 0 8px 28px #00000012;color-scheme:light}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{color:var(--ink);background:var(--bg);margin:0;font:17px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,system-ui,sans-serif}main{max-width:64rem;padding:0 16px calc(32px + env(safe-area-inset-bottom));margin:0 auto}h1,h2{letter-spacing:-.01em;margin:0}p{margin:0}button,.button{font:inherit;border:1px solid var(--line);background:var(--card);min-height:48px;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:10px 18px;transition:background .15s,transform 50ms;display:inline-flex}button:active,.button:active{transform:scale(.98)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--red);border-color:var(--red);color:#fff;font-weight:600}.primary:hover{background:var(--red-dark)}.button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}button:focus-visible,.button:focus-within,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}input:not([type=checkbox]):not([type=file]),select{width:100%;font:inherit;border:1px solid var(--line);background:#fff;border-radius:12px;margin-top:6px;padding:12px 14px;display:block}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow)}.error{color:#8a1116;background:#fdecec;border-radius:12px;padding:12px 14px}.notice{background:#fff6db;border-radius:12px;margin:8px 0;padding:10px 14px}.mode.off{color:var(--muted);font-size:.95rem}.start{text-align:center;flex-direction:column;gap:14px;max-width:30rem;margin:max(6vh,24px) auto 0;padding:36px 24px 28px;display:flex}.logo{background:var(--soft);width:64px;height:64px;color:var(--red);border-radius:20px;margin:0 auto 4px;font-size:34px;line-height:64px;transform:rotate(-8deg)}.start h1{font-size:1.6rem}.start .lead{color:var(--muted);margin-bottom:6px}.start .big{border-radius:16px;min-height:64px;font-size:1.2rem}.link-like{color:var(--red);background:0 0;border:0;min-height:44px}.token{text-align:left;font-size:.95rem;font-weight:600}.demo{color:var(--muted);background:0 0;border:0;min-height:40px;margin-top:6px;font-size:.9rem;text-decoration:underline}.running{place-items:center;min-height:70vh;margin-top:16px;display:grid;position:relative}.running .ghost{object-fit:contain;filter:blur(6px)saturate(.7);opacity:.35;border-radius:var(--radius);width:100%;height:100%;position:absolute;inset:0}.running-box{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:28px 32px;display:flex;position:relative}.running-box h1{font-size:1.3rem}.running-box p{color:var(--muted)}.spinner{border:5px solid var(--soft);border-top-color:var(--red);border-radius:50%;width:48px;height:48px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.pill{color:#7a5a00;background:#fff6db;border-radius:99px;margin:12px 0 0;padding:4px 12px;font-size:.85rem;display:inline-block}.bar{z-index:5;backdrop-filter:blur(10px);background:#f6f5f2eb;align-items:center;gap:10px;padding:10px 0;display:flex;position:sticky;top:0}.bar .back{color:var(--red);white-space:nowrap;background:0 0;border:0;padding-left:0;font-weight:600}.bar-title{text-align:center;flex:1;min-width:0;font-size:1.05rem;font-weight:700}.bar-title .sub{color:var(--muted);font-size:.9rem;font-weight:400}.bar .primary{min-width:84px}.subbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:2px 0 10px;display:flex}.seg{background:#ebe9e3;border-radius:12px;padding:3px;display:inline-flex}.seg button{background:0 0;border:0;border-radius:10px;min-height:38px;padding:6px 16px;font-size:.95rem}.seg button[aria-pressed=true]{background:#fff;font-weight:600;box-shadow:0 1px 3px #0000001f}.hint{color:var(--muted);font-size:.9rem}.note{color:var(--muted);margin:0 0 8px;font-size:.9rem}.footnote{color:var(--muted);margin-top:10px;font-size:.8rem}.page{margin:0}.stage{box-shadow:var(--shadow);background:#fff;border-radius:12px;position:relative;overflow:hidden}.stage img{user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;width:100%;height:auto;display:block}.overlay{width:100%;height:100%;position:absolute;inset:0}.overlay .candidate{fill:#0000;cursor:pointer}.overlay .candidate.selected{fill:#ffdc0052}.overlay .mark,.overlay .mark-thin{stroke:var(--red);stroke-linecap:round;fill:none}.overlay .pen,.overlay .hit{cursor:pointer}.overlay .hit{fill:#0000;pointer-events:all}.overlay .label-text{fill:var(--red);paint-order:stroke;stroke:#ffffffd9;stroke-width:.28em;stroke-linejoin:round;pointer-events:none;font-family:Kalam,Bradley Hand,Segoe Print,cursive}.overlay .pen.selected .label-text{fill:var(--red-dark)}.sheet{z-index:6;background:var(--card);padding:10px 20px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;margin:12px -16px 0;position:sticky;bottom:0;box-shadow:0 -10px 30px #00000024}.sheet:before{content:"";background:#d9d6cf;border-radius:3px;width:40px;height:5px;margin:0 auto 10px;display:block}.sheet-head{align-items:center;gap:10px;font-size:1.15rem;display:flex}.sheet-head .words{flex:1}.sheet .close{background:#f1efea;border:0;border-radius:50%;width:40px;min-width:40px;min-height:40px;padding:0;font-size:1.4rem}.sheet>p{color:#3a3a3d;margin:8px 0 4px}.actions{flex-wrap:wrap;gap:8px;margin:10px 0 0;display:flex}.edit label{margin:10px 0;font-size:.95rem;font-weight:600;display:block}.nudge{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.chip{background:var(--red);color:#fff;border-radius:8px;padding:1px 8px;font-size:.9rem;font-weight:700}.adjust{background:var(--card);box-shadow:var(--shadow);border-radius:14px;margin-top:14px;padding:4px 14px}.adjust>summary{cursor:pointer;align-items:center;min-height:48px;font-weight:600;list-style:none;display:flex}.adjust>summary:after{content:"›";color:var(--muted);margin-left:auto;font-size:1.3rem;transition:transform .15s}.adjust[open]>summary:after{transform:rotate(90deg)}.adjust>summary::-webkit-details-marker{display:none}.adjust>button{margin:6px 0 10px}.findings{gap:6px;margin:0 0 10px;padding:0;list-style:none;display:grid}.finding{background:#faf9f6;border-radius:12px}.finding.current{outline:2px solid var(--red)}.finding.removed{opacity:.5}.finding-head{text-align:left;background:0 0;border:0;justify-content:flex-start;gap:10px;width:100%;min-height:48px}.finding-head .words{flex:1}.state{color:var(--muted);font-size:.85rem}.check{align-items:center;gap:10px;min-height:48px;display:flex}.check input{width:22px;height:22px;accent-color:var(--red);margin:0}.meta{color:var(--muted);margin:4px 0 10px;font-size:.9rem}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.help{max-width:40rem;color:var(--muted);margin:28px auto 0;font-size:.9rem}.help summary{cursor:pointer;justify-content:center;align-items:center;min-height:44px;display:flex}@media (width<=520px){body{font-size:16px}.start{margin-top:16px;padding:28px 18px 22px}.bar .back,.bar-title{font-size:.95rem}.bar-title .sub{font-size:.8rem;display:block}.bar{gap:6px}.bar .primary{min-width:0;padding:10px 14px}}@media print{body{background:#fff}}
