:root { color-scheme: light; color: #202930; background: #f4f6f7; font: 16px system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
h2 { font-size: 1.2rem; }
button, input, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, input, textarea, summary { min-height: 44px; }
:focus-visible { outline: 3px solid #1265a2; outline-offset: 3px; }
.header, main { max-width: 1500px; margin: auto; padding: 20px clamp(12px, 3vw, 36px); }
.header, .section-head, dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: #52646c; font-weight: 650; }
main { padding-top: 0; }
.panel { background: white; border: 1px solid #dce2e6; border-radius: 16px; }
.toolbar, .overview, .section-head, .login { padding: 16px; }
.toolbar { position: sticky; top: 0; z-index: 2; margin-bottom: 16px; box-shadow: 0 3px 12px #2437460b; }
.palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 580px; }
.palette button, .seat { background: var(--fill); color: var(--ink); border: 1px solid var(--edge); border-radius: 8px; font-weight: 700; }
.palette button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.save { margin-top: 10px; min-height: 1.4em; color: #52646c; }
.save.error { color: #a12626; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 16px; align-items: start; }
.scroll { overflow: auto; padding: 12px; }
.map { width: max-content; min-width: 100%; display: grid; justify-content: center; gap: 5px; }
.stage { margin: 0 0 11px 28px; text-align: center; background: #263b49; color: white; padding: 10px; border-radius: 8px; }
.row { display: flex; align-items: center; gap: 6px; }
.row-label { width: 24px; color: #52646c; text-align: center; font-size: .8rem; }
.block { display: flex; gap: 3px; }
.aisle { width: 18px; align-self: stretch; border-radius: 4px; background: #f1f3f4; }
.seat { width: 44px; height: 44px; padding: 0; font-size: .75rem; }
.free { --fill: #e9f4eb; --ink: #20512e; --edge: #bbdac3; }
.occupied { --fill: #f9e5e5; --ink: #802b2b; --edge: #e6b6b6; }
.reserved { --fill: #fff1cd; --ink: #644707; --edge: #e8ce8a; }
.team { --fill: #e3edfc; --ink: #264b82; --edge: #b7ccee; }
dl div { margin-bottom: 6px; padding: 8px 10px; color: var(--ink); background: var(--fill); border-radius: 6px; }
dd { margin: 0; font-weight: 700; }
summary { cursor: pointer; padding-top: 12px; font-weight: 650; }
form label { display: block; font-weight: 650; }
#layout-help { margin: 6px 0; color: #52646c; font-size: .875rem; }
input, textarea { width: 100%; border: 1px solid #a3afb7; border-radius: 8px; padding: 10px; margin: 6px 0; }
.primary, .secondary { padding: 8px 14px; border-radius: 8px; font-weight: 650; }
.primary { background: #263b49; color: white; border: 1px solid #263b49; }
.secondary { background: white; color: #263b49; border: 1px solid #a3afb7; }
.login { max-width: 400px; }
@media (max-width: 1050px) { .workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .palette button { font-size: .82rem; padding: 2px; } }
