/* Deliberately plain. Matching the real app's look is not what this experiment tests. */
:root { color-scheme: light dark; }
body { font: 15px/1.45 system-ui, sans-serif; margin: 0; background: Canvas; color: CanvasText; }
main { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
h1 small { font-weight: 400; font-size: 0.6em; opacity: 0.7; }
.note { opacity: 0.8; max-width: 46rem; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
fieldset { border: 1px solid color-mix(in srgb, CanvasText 25%, transparent); border-radius: 6px; padding: 0.5rem 0.9rem 0.9rem; }
legend { font-weight: 600; padding: 0 0.3rem; }
label { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
input, select { width: 10rem; padding: 0.25rem 0.4rem; font: inherit; }
button { margin-top: 1rem; padding: 0.5rem 1.5rem; font: inherit; font-weight: 600; cursor: pointer; }
.problems { border: 1px solid #c0392b; background: color-mix(in srgb, #c0392b 12%, transparent); padding: 0.5rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.field-validation-error { color: #c0392b; }
table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; }
th, td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid color-mix(in srgb, CanvasText 15%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals { max-width: 38rem; }
.totals .sub td { font-weight: 600; }
.final { font-size: 1.3rem; }
.picker { display: flex; gap: 1.5rem; margin: 1rem 0; }
.picker select { width: auto; }
tr.left-out td { opacity: 0.45; text-decoration: line-through; }
td select { width: 11rem; }

/* The door drawing. Class names match the React drawing's, so the two read alike. */
.drawing { height: 26rem; margin: 1rem 0; }
.drawing-svg { height: 100%; width: auto; max-width: 100%; }
.stroke-ink { stroke: CanvasText; }
.stroke-border-strong { stroke: color-mix(in srgb, CanvasText 45%, transparent); }
.stroke-ink-muted { stroke: color-mix(in srgb, CanvasText 60%, transparent); }
.fill-ink-muted { fill: color-mix(in srgb, CanvasText 60%, transparent); }
.stroke-accent { stroke: #3b82f6; }
.opacity-60 { opacity: 0.6; }
.hit { fill: transparent; cursor: pointer; }
.hit:hover { fill: color-mix(in srgb, #3b82f6 15%, transparent); }

.fill-surface { fill: Canvas; }
.opacity-40 { opacity: 0.4; }
.count-button { cursor: pointer; transition: transform 0.1s; transform-box: fill-box; transform-origin: center; }
.count-button:hover { transform: scale(1.1); }
.count-button:active { transform: scale(0.9); }
