:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1d2330;background:#f5f6f8;font-synthesis:none;--accent:#255ce8;--border:#e1e4eb}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;border:0;border-radius:11px;padding:11px 15px;font-weight:650;white-space:nowrap}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #8ca8ff;outline-offset:3px}button.primary{background:var(--accent);color:#fff}button.secondary{background:#fff;color:#323b4c;border:1px solid var(--border)}header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px clamp(16px,4vw,54px);background:#ffffffeb;backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;font-size:22px;font-weight:750;letter-spacing:-.7px}.logo{display:grid;place-items:center;background:#255ce8;color:white;border-radius:11px;width:34px;height:34px;font-weight:800}.header-actions,.edit-actions{display:flex;align-items:center;gap:8px}.privacy{font-size:12px;color:#576173;margin-right:12px;white-space:nowrap}.privacy i{display:inline-block;width:8px;height:8px;background:#30a56b;border-radius:50%;margin-right:5px}main{max-width:1500px;margin:auto;padding:30px clamp(16px,4vw,54px)}.intro{display:flex;justify-content:space-between;align-items:end;margin:10px 0 28px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:750;color:#687589}h1{font-size:clamp(36px,6vw,58px);letter-spacing:-2.8px;line-height:1;margin:9px 0 13px}h2,h3{letter-spacing:-.4px}p{color:#626d7d;line-height:1.5;margin:8px 0}.muted{color:#687589;font-size:13px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px}.tile{position:relative;background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden}.tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover;cursor:pointer}.tile-info{display:flex;align-items:center;gap:8px;padding:8px}.tile-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px}.tile-info button{padding:8px;background:#f5f6f8;color:#6e7584}.empty{padding:60px 18px;text-align:center;border:1px dashed #cbd3e1;border-radius:22px;background:#fff}.empty-icon{font-size:48px;color:#8b9bb7}.empty h2{margin:8px}.empty button{margin-top:16px}.foot{font-size:12px;margin-top:24px}.editor-top{display:flex;align-items:center;gap:15px;margin-bottom:20px;flex-wrap:wrap}.editor-top h2{font-size:18px;margin:0;max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-actions{margin-left:auto;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:18px}.stage{min-height:350px;height:min(70vh,760px);background:#e8ebf1;border:1px solid var(--border);border-radius:20px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px}#imageWrap{position:relative;flex:none;background:conic-gradient(#e4e4e4 25%,#fff 0 50%,#e4e4e4 0 75%,#fff 0) 0 0/18px 18px}#photo{display:block;width:100%;height:100%}#mask,#ocr{position:absolute;inset:0;width:100%;height:100%}#mask{touch-action:none;cursor:crosshair}#ocr{user-select:text;-webkit-user-select:text;overflow:hidden}.word{position:absolute;white-space:pre;line-height:1;cursor:text;color:transparent;background:#4b82fa28;border-bottom:1px solid #4b82fa85;font-family:Arial,sans-serif;user-select:text;-webkit-user-select:text;transform-origin:left top}.word::selection{background:#2864ee;color:white}aside{background:#fff;padding:18px;border-radius:20px;border:1px solid var(--border);align-self:start}aside h3{margin:0 0 12px;font-size:17px}.tool{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:12px 8px;background:#fff;border:1px solid transparent;white-space:normal}.tool:hover,.tool.active{background:#f0f4ff;border-color:#d9e3ff}.symbol{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#edf2ff;color:#255ce8;font-size:22px;flex:none}.tool b,.tool small{display:block}.tool small{font-size:11px;color:#687589;margin-top:4px}#options{border-top:1px solid var(--border);margin-top:12px;padding-top:12px;font-size:13px}#options button{margin-top:8px;white-space:normal}#options textarea{width:100%;height:90px;border:1px solid var(--border);border-radius:8px;padding:8px;font:inherit}#options input[type=range]{width:100%}#status{font-size:13px;line-height:1.5;margin-top:10px;color:#38475f;overflow-wrap:anywhere}#progress{width:100%;margin-top:8px;accent-color:var(--accent)}.note{font-size:11px;color:#758094;border-top:1px solid var(--border);margin-top:16px;padding-top:12px;line-height:1.5}dialog{border:1px solid var(--border);border-radius:18px;max-width:360px;padding:24px}dialog::backdrop{background:#0006}[hidden]{display:none!important}@media(max-width:720px){header{padding:10px 12px}.brand{font-size:19px}.privacy{display:none}.header-actions button{font-size:12px;padding:10px}.workspace{grid-template-columns:1fr;gap:12px}.stage{min-height:230px;height:42vh}.edit-actions{margin-left:0;width:100%;gap:5px}.edit-actions button{font-size:12px;padding:9px}.grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px}main{padding:16px 12px}.editor-top{gap:8px}.editor-top h2{max-width:58vw}.intro{align-items:start}.tool{padding:10px 5px}.note{margin-top:10px}}

:root{color:#111;background:#fff;--accent:#111;--border:#e8e8e8}header{background:#fff;padding:16px 24px}.logo{background:transparent;color:#111;font-size:32px}.brand{font-weight:650}main{max-width:none;padding:20px 24px}.grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.tile{border:0;border-radius:12px}.tile-info{background:#fff}.tile-info button,.symbol{background:#f4f4f4;color:#111}.tool:hover,.tool.active{background:#eee;border-color:#ddd}.stage{background:#f7f7f7;border:0;border-radius:12px}.workspace{grid-template-columns:minmax(0,1fr) 230px;gap:16px}aside{border:0;border-left:1px solid #eee;border-radius:0;padding:12px}.tool{font-size:13px}.empty{border:0;background:#fafafa}.empty-icon,.muted,#status{color:#666}.word{background:#7773;border-color:#777}.word::selection{background:#333;color:white}button.secondary{color:#111}button:focus-visible,a:focus-visible{outline-color:#555}@media(max-width:720px){main{padding:12px}.grid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:6px}.workspace{grid-template-columns:1fr}aside{border-left:0;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#options,#status,#progress,#cancel{grid-column:1/-1}.stage{height:48vh}.tool{padding:8px 4px}.symbol{width:30px;height:30px}header{padding:10px 12px}}
:root{--border:#e7e7e7;background:#fafafa;color:#171717}body{overscroll-behavior:none}header{height:70px;padding:0 28px;background:#fff;box-shadow:0 1px 0 #00000006}.brand{font-size:23px;letter-spacing:-1px;gap:10px}.logo{width:38px;height:38px;border-radius:12px}main{padding:24px 28px}.grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}.tile{background:white;border:1px solid #e9e9e9;border-radius:18px;box-shadow:0 3px 12px #00000005}.tile-info{padding:10px 12px}.tile-info button{border-radius:50%;width:30px;height:30px;padding:0}.empty{min-height:calc(100dvh - 140px);display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent}.empty-icon{width:64px;height:64px;color:#999}.empty h2{font-size:18px;font-weight:550}.empty button{border-radius:14px}.workspace{gap:14px;grid-template-columns:minmax(0,1fr) 248px}.stage{position:relative;height:calc(100dvh - 170px);min-height:240px;border:1px solid #e8e8e8;background:#ededed;border-radius:20px;touch-action:none;overscroll-behavior:contain;isolation:isolate;cursor:grab}.stage:active{cursor:grabbing}#imageWrap{transform-origin:center;will-change:transform;box-shadow:0 8px 32px #0002;touch-action:none}aside{border:1px solid #e7e7e7;border-radius:20px;padding:12px;box-shadow:0 4px 16px #00000005}.tool{border-radius:12px;padding:12px 8px;font-size:14px}.tool.active{background:#e9e9e9}.symbol{background:white;border:1px solid #ddd;border-radius:12px;width:40px;height:40px}.zoom-controls{position:absolute;z-index:3;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;background:#fffffff5;border:1px solid #ddd;border-radius:15px;box-shadow:0 4px 18px #0001;padding:3px;touch-action:manipulation}.zoom-controls button{background:transparent;padding:9px 14px;min-width:40px}.zoom-controls button:hover{background:#eee}#resetZoom{font-size:12px;font-variant-numeric:tabular-nums}.editor-top{margin-bottom:14px}.editor-top h2{font-size:15px}button{transition:background .15s,opacity .15s}button:active{opacity:.7}#ocr{touch-action:none}.word{touch-action:none} @media(max-width:720px){header{height:58px;padding:0 12px}.logo{width:32px;height:32px}main{padding:10px}.grid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:8px}.tile{border-radius:12px}.workspace{grid-template-columns:1fr;gap:8px}.stage{height:48dvh;min-height:200px;border-radius:15px}aside{border-radius:15px;padding:6px}.tool{font-size:12px;padding:6px}.symbol{width:32px;height:32px}.editor-top{margin-bottom:8px}.zoom-controls{bottom:8px}.zoom-controls button{padding:6px 12px}}
