:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #211e2b; background: #f7f5ff; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body { padding: clamp(16px, 3vw, 34px); }
main { width: min(1240px, 100%); margin: auto; }
.poc-header { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.poc-header span { color: #7047ff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.poc-header h1 { margin: 5px 0 7px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.poc-header p { margin: 0; color: #6d6878; }
.poc-header a, button { border: 1px solid #ded5ff; border-radius: 10px; padding: 10px 13px; color: #7047ff; background: #fff; font: inherit; font-weight: 800; text-decoration: none; }
.poc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 20px 0; padding: 13px 16px; border: 1px solid #ded8ea; border-radius: 15px; background: #fff; }
.character-picker { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 6px; }
.character-picker button { width: 44px; height: 44px; padding: 0; font-size: 21px; }
.character-picker button span, .target-character > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.picker-character-svg { width: 34px; height: 34px; }
.picker-character-svg path, .target-character-svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.picker-character-svg path { stroke-width: 60; }
.character-picker button.active { border-color: #7047ff; color: #fff; background: #7047ff; }
.poc-toolbar label { display: flex; align-items: center; gap: 8px; color: #655f70; font-size: 13px; font-weight: 700; }
.poc-toolbar input[type="checkbox"] { width: 18px; height: 18px; accent-color: #7047ff; }
.poc-toolbar input[type="range"] { accent-color: #7047ff; }
.poc-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
.poc-instructions, .recognition-stage, .poc-log { border: 1px solid #ded8ea; border-radius: 18px; background: #fff; }
.poc-instructions { padding: 20px; }
.poc-instructions > span { color: #7047ff; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.target-character { margin: 10px 0; font-size: 82px; font-weight: 800; }
.target-character-svg { display: block; width: 92px; height: 92px; color: #211e2b; }
.target-character-svg path { stroke-width: 48; }
.poc-instructions h2 { margin: 0 0 7px; font-size: 20px; }
.poc-instructions p { margin: 0; color: #6d6878; line-height: 1.45; }
.score-list { display: grid; gap: 8px; margin-top: 25px; }
.score-list div { display: flex; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid #eeeaf4; color: #797383; font-size: 12px; }
.score-list b { color: #282333; }
.recognition-stage { padding: 16px; }
.recognition-canvas-wrap { position: relative; width: 100%; height: min(62vh, 610px); min-height: 420px; overflow: hidden; border: 1px solid #d8cbb9; border-radius: 16px; background: #fffdfa; }
.recognition-canvas-wrap::before, .recognition-canvas-wrap::after { position: absolute; z-index: 0; content: ""; pointer-events: none; }
.recognition-canvas-wrap::before { top: 50%; left: 0; right: 0; border-top: 1px dashed #eadbc7; }
.recognition-canvas-wrap::after { top: 0; bottom: 0; left: 50%; border-left: 1px dashed #eadbc7; }
.recognition-canvas-wrap svg, .recognition-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.recognition-canvas-wrap svg { z-index: 1; pointer-events: none; }
.recognition-canvas-wrap canvas { z-index: 2; touch-action: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
.template-character-path { fill: none; stroke: rgba(112,71,255,.1); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.template-path { fill: none; stroke: rgba(112,71,255,.52); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12 21; animation: template-flow .9s linear infinite; }
.template-start { fill: #7047ff; }
.template-start-label { fill: #fff; font-size: 22px; font-weight: 900; text-anchor: middle; dominant-baseline: central; }
.template-end { fill: #fffdfa; stroke: rgba(112,71,255,.65); stroke-width: 6; }
@keyframes template-flow { to { stroke-dashoffset: -33; } }
.recognition-feedback { display: flex; gap: 9px; align-items: baseline; margin-top: 12px; padding: 11px 13px; border-radius: 11px; }
.recognition-feedback.neutral { color: #504b5b; background: #f1eff5; }
.recognition-feedback.success { color: #176457; background: #e8f8f3; }
.recognition-feedback.error { color: #a63b35; background: #fff0ee; }
.recognition-feedback span { font-size: 13px; }
.poc-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.poc-actions .primary { color: #fff; background: #7047ff; }
.poc-actions button:disabled { opacity: .45; }
.poc-log { margin-top: 18px; padding: 15px; }
.poc-log header { display: flex; justify-content: space-between; align-items: center; }
.poc-log header button { padding: 6px 9px; font-size: 11px; }
.poc-log [data-recognition-log] { display: grid; gap: 6px; max-height: 150px; overflow: auto; margin-top: 10px; }
.poc-log p { margin: 0; color: #6d6878; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 760px) { .poc-workspace { grid-template-columns: 1fr; } .poc-header { display: grid; } .recognition-canvas-wrap { min-height: 360px; height: 48vh; } .score-list { grid-template-columns: repeat(2, 1fr); } }
