:root { --ink: #1F2328; --muted: #5B636B; --line: #D9DCDF; --bg: #FBFAF7; --card: #FFFFFF; --accent: #2F6F73; --warn: #8A5A00; --warnbg: #FFF4DB; --err: #9B1C1C; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; line-height: 1.25; margin: 8px 0; }
h2 { font-size: 18px; margin: 0 0 8px; }
.lead, .hint, .meta { color: var(--muted); }
.hint { font-size: 14px; margin: 4px 0 8px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 0 0 12px; padding: 12px 14px; }
legend { font-weight: 600; padding: 0 4px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
input[inputmode], select { display: block; width: 100%; margin-top: 4px; padding: 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shapes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--ink); margin: 0; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ink); text-decoration: none; text-align: center; margin: 0; }
.sw input { position: absolute; opacity: 0; }
.sw span { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); }
.sw input:checked + span, .sw.on span { outline: 3px solid var(--accent); outline-offset: 2px; }
button, .btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
button { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 8px 0 16px; }
.actions a:not(.btn) { color: var(--accent); }
.error { background: #FDECEC; color: var(--err); border-radius: 8px; padding: 10px 12px; }
.warn { background: var(--warnbg); color: var(--warn); border-radius: 8px; padding: 10px 12px 10px 28px; }
.pick { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; break-inside: avoid; }
.svg svg { width: 100%; height: auto; max-height: 70vh; display: block; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.list td:not(:first-child), .list th:not(:first-child) { text-align: right; }
.note { font-size: 12px; color: var(--muted); }
[hidden] { display: none !important; }
@media (min-width: 900px) { .swatches { grid-template-columns: repeat(8, 1fr); } }
body.print { background: #fff; font-size: 12px; }
body.print main { max-width: none; padding: 0; }
body.print .sheet { border: 0; padding: 0; margin-bottom: 8mm; }
body.print .svg svg { max-height: 120mm; }
@media print { .top .tag { display: none; } }

.quote { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.quote .consent { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.quote .ok { color: var(--accent); font-weight: 600; }

.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
