*{box-sizing:border-box}:root{color:#1b242c;background:#eef2f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}body{margin:0;min-width:320px;min-height:100vh;background:#eef2f5}button,input{font:inherit}button{cursor:pointer}.app-shell{width:min(1440px,100%);min-height:100vh;margin:0 auto;padding:24px}.app-header{display:flex;min-height:86px;align-items:end;justify-content:space-between;gap:18px;border-bottom:1px solid #cfd8df;padding-bottom:18px}.app-header h1,.app-header p,.section-header h2,.result-header h2,.analysis-panel h2{margin:0}.eyebrow{margin-bottom:5px;color:#52616c;font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}h1{color:#111820;font-size:clamp(2rem,5vw,4.6rem);line-height:.95}.mode-tabs{display:inline-grid;grid-template-columns:repeat(3,minmax(84px,1fr));overflow:hidden;border:1px solid #bec9d1;border-radius:8px;background:#fff}.mode-tab{min-height:44px;border:0;padding:0 16px;color:#31404c;background:transparent;font-weight:800}.mode-tab-active{color:#fff;background:#255f85}.workspace{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:20px;padding-top:20px}.control-column,.result-column{display:grid;align-content:start;gap:16px;min-width:0}.sample-section,.drawing-section,.settings-section,.analysis-panel{border:1px solid #cfdae2;border-radius:8px;background:#fff}.sample-section,.drawing-section,.settings-section{padding:14px}.section-header,.analysis-panel-header,.result-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-header h2,.result-header h2,.analysis-panel h2{color:#17212a;font-size:1rem;line-height:1.2}.sample-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}.sample-button{display:grid;grid-template-rows:minmax(0,1fr) 18px;gap:4px;min-width:0;border:1px solid #d8e0e6;border-radius:8px;padding:6px;color:#27343e;background:#f9fbfc;font-size:.72rem;font-weight:800}.sample-button-active{border-color:#b84d3e;outline:2px solid rgba(184,77,62,.24)}.sample-canvas{width:100%;aspect-ratio:1;image-rendering:pixelated}.drawing-canvas{width:100%;max-width:360px;aspect-ratio:1;border:1px solid #b9c6cf;border-radius:8px;margin-top:12px;background:linear-gradient(#fff 0,#fff 0) padding-box,repeating-linear-gradient(0deg,rgba(37,95,133,.07) 0 1px,transparent 1px 20px),repeating-linear-gradient(90deg,rgba(37,95,133,.07) 0 1px,transparent 1px 20px);touch-action:none}.clear-button{min-height:34px;border:1px solid #c7d2da;border-radius:8px;padding:0 12px;color:#1e303c;background:#f7fafc;font-size:.85rem;font-weight:800}.settings-section{display:grid;gap:14px}.range-control{display:grid;gap:8px}.range-control span{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#4c5b66;font-size:.88rem}.range-control strong{color:#12202b;font-variant-numeric:tabular-nums}.range-control input{width:100%;margin:0;accent-color:#255f85}.result-header{align-items:start;border:1px solid #cfdae2;border-radius:8px;padding:16px;background:#fff}.result-header h2{font-size:1.35rem}.metrics{display:grid;grid-template-columns:repeat(4,minmax(96px,1fr));gap:8px;min-width:min(100%,640px);margin:0}.metrics div{min-width:0;border-left:3px solid #2f8068;padding-left:9px}.metrics dt{color:#65737e;font-size:.72rem;font-weight:800;text-transform:uppercase}.metrics dd{overflow-wrap:anywhere;margin:0;color:#121a21;font-size:.95rem;font-weight:800}.analysis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.analysis-panel{min-width:0;overflow:hidden}.analysis-panel-header{border-bottom:1px solid #dce4ea;padding:12px 14px}.analysis-panel-header span{color:#687781;font-size:.8rem;font-weight:800}.analysis-panel-body{display:grid;min-height:310px;place-items:center;padding:18px;background:linear-gradient(45deg,#f7fafc 25%,transparent 25%),linear-gradient(-45deg,#f7fafc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f7fafc 75%),linear-gradient(-45deg,transparent 75%,#f7fafc 75%);background-color:#fff;background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.raster-preview,.analysis-svg,.vector-output svg{width:min(100%,300px);aspect-ratio:1}.raster-preview{object-fit:contain;image-rendering:pixelated}.analysis-svg,.vector-output svg{overflow:visible}.skeleton-pixels{fill:#d85c45}.centerline-path{stroke:#255f85;stroke-linecap:round;stroke-linejoin:round}.vector-output{display:grid;width:100%;place-items:center}.vector-output path{stroke:#101820}.curve-tabs{display:grid;width:100%}.curve-tabs .mode-tab{min-height:36px}.range-control label{color:#4c5b66}.range-auto strong{color:#255f85}.range-control .auto-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.range-control .auto-switch{display:inline-flex;align-items:center;gap:5px;color:#31404c;font-size:.8rem;font-weight:800;white-space:nowrap}.range-control .auto-switch input{width:auto}.range-control input:disabled{opacity:.45}.clear-button:disabled{opacity:.5}.recording-panel{display:grid;gap:8px;margin-top:10px}.recording-actions{display:flex;flex-wrap:wrap;gap:6px}.file-button{display:inline-flex;align-items:center;cursor:pointer}.file-button input{display:none}.recording-text summary{color:#31404c;font-size:.85rem;font-weight:800;cursor:pointer}.recording-text pre{max-height:220px;overflow:auto;margin:8px 0 0;border-radius:8px;padding:10px;color:#1e303c;background:#f3f6f8;font-size:.75rem}.settings-note{margin:0;color:#4c5b66;font-size:.85rem}.settings-error{color:#a23b2c;font-weight:800}.upload-control{display:grid;gap:8px;margin:12px 0 10px;border:1px dashed #9fb1be;border-radius:8px;padding:16px;color:#31404c;background:#f7fafc;font-size:.88rem;font-weight:800;overflow-wrap:anywhere}.upload-control input{max-width:100%}.network-view,.replay-view{display:grid;gap:10px;width:100%;justify-items:center}.network-link{stroke:#255f85;stroke-linecap:round;stroke-linejoin:round}.network-link-retraced{stroke:#b84d3e}.network-link-completed{stroke:#2f8068}.network-point{fill:#fff;stroke:#31404c;stroke-width:.3}.network-point-end{fill:#255f85}.network-point-junction{fill:#b7791f}.network-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;margin:0;padding:0;color:#4c5b66;font-size:.75rem;font-weight:800;list-style:none}.network-legend li{display:inline-flex;align-items:center;gap:5px}.network-legend span{display:inline-block;width:11px;height:11px;border-radius:50%}.legend-end{background:#255f85}.legend-junction{background:#b7791f}.legend-start{border:2px solid #255f85}.legend-retraced,.legend-completed{height:3px!important;border-radius:0!important}.legend-retraced{background:repeating-linear-gradient(90deg,#b84d3e 0 4px,transparent 4px 6px)}.legend-completed{background:#2f8068}.replay-ghost{stroke:#dfe6eb;stroke-linecap:round;stroke-linejoin:round}.replay-path{stroke-dasharray:1 2;stroke-dashoffset:1;stroke-linecap:round;stroke-linejoin:round;animation-name:draw-stroke;animation-timing-function:linear;animation-fill-mode:forwards}.replay-starts{font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:.25em}@keyframes draw-stroke{to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.replay-path{animation:none;stroke-dashoffset:0}}.lino-output{width:100%;max-height:300px;margin:0;overflow:auto;color:#1b242c;font-size:.72rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}button:focus-visible,input:focus-visible,.drawing-canvas:focus-visible{outline:3px solid rgba(37,95,133,.3);outline-offset:2px}@media(max-width:1120px){.workspace,.analysis-grid{grid-template-columns:1fr}.sample-grid{grid-template-columns:repeat(10,minmax(0,1fr))}.result-header{display:grid}}@media(max-width:720px){.app-shell{padding:16px}.app-header{display:grid;align-items:start}.mode-tabs{width:100%}.sample-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-panel-body{min-height:250px;padding:14px}}
