/* Phone first. One column, big tap targets, light or dark to match the phone. */
:root { --bg: #f6f5f1; --card: #fff; --ink: #1c1b19; --soft: #6b675f; --line: #e4e1d9; --go: #2f6fed; --go-ink: #fff; --bad: #c0392b; --good: #1e8e5a; --raise: #efede7; --r: 16px; }
@media (prefers-color-scheme: dark) { :root { --bg: #111214; --card: #1b1d21; --ink: #f1f1ee; --soft: #a2a39f; --line: #2c2f35; --go: #6d9bff; --go-ink: #0b1020; --bad: #ff7a6b; --good: #4fd093; --raise: #25282e; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 18px 16px 80px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; padding: 16px 16px 0; }
header.top b { font-size: 20px; letter-spacing: -0.02em; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; margin: 14px 0 6px; }
h2 { font-size: 15px; color: var(--soft); font-weight: 650; margin: 26px 4px 8px; }
p { margin: 8px 0; }
.small { font-size: 14.5px; color: var(--soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 12px 0; }
label { display: block; font-size: 14.5px; font-weight: 600; color: var(--soft); margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select { width: 100%; font: inherit; color: inherit; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--go); outline-offset: 1px; }
button { font: inherit; font-weight: 650; border: 0; border-radius: 99px; padding: 12px 20px; min-height: 48px; background: var(--go); color: var(--go-ink); cursor: pointer; }
button.wide { width: 100%; margin-top: 16px; }
button.soft { background: var(--raise); color: var(--ink); border: 1px solid var(--line); }
button.link { background: none; color: var(--go); padding: 6px 0; min-height: 0; border-radius: 0; font-weight: 600; }
button.danger { background: none; color: var(--bad); border: 1px solid var(--line); }
button[disabled] { opacity: .55; }
.say { border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: var(--raise); }
.say.bad { color: var(--bad); }
.say.good { color: var(--good); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; min-height: 60px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font-weight: 400; }
.item:first-child { border-top: 0; }
.item b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.item .chev { color: var(--soft); font-size: 22px; }
.code { font: 600 22px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.hide { display: none !important; }
details.more { margin: 12px 0; }
details.more > summary { cursor: pointer; color: var(--go); font-weight: 600; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }

/* ---- the part screen */
.stage { text-align: center; padding: 8px 8px 10px; }
canvas.view { display: block; width: 100%; aspect-ratio: 1 / 0.82; border-radius: 12px; background: var(--raise); cursor: grab; }
.facts { margin: 8px 0 0; }
.sizes { padding: 6px 16px 14px; }
.size { padding: 10px 0 4px; border-top: 1px solid var(--line); }
.size:first-child { border-top: 0; }
.size label { margin: 0; color: var(--ink); font-size: 16px; }
.size .unit input { width: 92px; min-height: 42px; padding: 8px 10px; text-align: right; }
.size .unit .small { width: 26px; text-align: left; }
input[type=range] { width: 100%; margin: 8px 0 4px; accent-color: var(--go); height: 28px; }
