:root { color-scheme: light dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --bg:#f3f4f6; --panel:#fff; --fg:#171717; --muted:#666; --line:#d4d4d4; --accent:#111827; --danger:#b42318; }
@media (prefers-color-scheme:dark) { :root { --bg:#101114; --panel:#191b20; --fg:#f5f5f5; --muted:#aaa; --line:#3a3d45; --accent:#f5f5f5; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--fg); }
main { width:min(100%, 720px); margin:0 auto; padding:24px 16px 56px; }
header { padding:20px 4px; }
h1 { margin:.2rem 0 .5rem; font-size:clamp(2rem,8vw,3.5rem); line-height:1; }
h2 { margin-top:0; font-size:1.15rem; }
.eyebrow { font-size:.72rem; letter-spacing:.16em; color:var(--muted); }
.panel { margin:14px 0; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--panel); box-shadow:0 8px 24px rgb(0 0 0 / .05); }
label { display:grid; gap:7px; margin:12px 0; font-weight:600; }
input[type=password],input[type=search] { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:transparent; color:inherit; font:inherit; }
.file-control { display:flex; align-items:center; justify-content:center; min-height:52px; border:1px dashed var(--line); border-radius:12px; cursor:pointer; }
.file-control input { position:absolute; opacity:0; width:1px; height:1px; }
.notice { padding:12px; border-left:4px solid #d97706; background:rgb(217 119 6 / .09); font-size:.9rem; }
figure { margin:14px 0; }
figure img { width:100%; max-height:420px; object-fit:contain; border-radius:12px; background:#eee; }
figcaption,.status { color:var(--muted); font-size:.88rem; }
.consent { display:flex; grid-template-columns:20px 1fr; align-items:start; font-weight:400; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
button { min-height:44px; padding:10px 16px; border:1px solid var(--accent); border-radius:999px; background:var(--accent); color:var(--bg); font:600 .92rem inherit; cursor:pointer; }
button.secondary { background:transparent; color:var(--fg); border-color:var(--line); }
button.danger { background:var(--danger); border-color:var(--danger); color:white; }
button:disabled { opacity:.45; cursor:not-allowed; }
.product { display:grid; gap:14px; }
.product img { width:100%; max-height:360px; object-fit:contain; border-radius:12px; }
.product dl { display:grid; grid-template-columns:minmax(90px,.6fr) 1.4fr; gap:7px 12px; margin:0; }
.product dt { color:var(--muted); }
.product dd { margin:0; overflow-wrap:anywhere; }
.variants { width:100%; border-collapse:collapse; font-size:.82rem; }
.variants th,.variants td { padding:7px 4px; border-bottom:1px solid var(--line); text-align:left; }
.parameters { display:grid; gap:10px; min-width:0; padding-top:8px; border-top:1px solid var(--line); }
.parameters h3 { margin:0; font-size:1rem; }
.parameters details { min-width:0; padding:10px; border:1px solid var(--line); border-radius:10px; }
.parameters summary { cursor:pointer; font-weight:700; overflow-wrap:anywhere; }
.parameters .parameter-grid { grid-template-columns:minmax(110px,.8fr) 1.2fr; margin-top:12px; font-size:.78rem; }
.parameters dt { overflow-wrap:anywhere; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.75rem; }
.search-results { display:grid; gap:10px; margin-top:12px; }
.search-card { padding:12px; border:1px solid var(--line); border-radius:10px; }
.search-card button { margin-top:8px; }
.hint { color:var(--muted); font-size:.82rem; line-height:1.45; }
.divider { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.78rem; }
.divider::before,.divider::after { content:""; flex:1; border-top:1px solid var(--line); }
.warning { margin:12px 0; padding:12px; border:1px solid #d97706; border-radius:10px; background:rgb(217 119 6 / .09); font-size:.86rem; }
.warning ul { margin:.5rem 0; padding-left:1.25rem; }
.warning label { display:flex; grid-template-columns:20px 1fr; align-items:start; font-weight:600; }
.camera-stage { position:relative; width:100%; margin-top:12px; aspect-ratio:4 / 3; overflow:hidden; border-radius:12px; background:#111; }
.camera-stage video { width:100%; height:100%; object-fit:cover; }
.eyewear-guide { position:absolute; left:6%; top:50%; width:88%; aspect-ratio:2 / 1; transform:translateY(-50%); border:3px solid white; border-radius:28%; box-shadow:0 0 0 999px rgb(0 0 0 / .22); }
.candidate-browser { display:grid; gap:12px; min-width:0; margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.candidate-browser h3 { margin:0; }
.threshold-control { margin:0; }
.threshold-control input { width:100%; }
.show-all { display:flex; grid-template-columns:20px 1fr; align-items:center; margin:0; }
.candidate-list { display:grid; gap:8px; max-height:360px; overflow-y:auto; padding:2px; }
.candidate-button { width:100%; min-width:0; height:auto; border-color:var(--line); border-radius:10px; background:transparent; color:var(--fg); text-align:left; white-space:normal; overflow-wrap:anywhere; }
.candidate-button.active { border-color:var(--accent); outline:2px solid var(--accent); outline-offset:1px; }
.compact-product { padding:12px; border:1px solid var(--line); border-radius:12px; }
.compact-product img { max-height:240px; }
[hidden] { display:none !important; }
@media (max-width:360px) { main { padding-inline:10px; } .panel { padding:14px; } button { width:100%; } }
