/* The planner's styles, shared by the free planner (planner.html) and the hosted planner (hosted/index.html). */
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; padding-top: 16px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }   /* 1fr alone grows to the seat map's width */
.panel { position: sticky; top: calc(var(--keys-h, 80px) + 12px); max-height: calc(100vh - var(--keys-h, 80px) - 24px); overflow: auto; }
@media (max-width: 900px) { .panel { position: static; max-height: none; } }
.group { padding: 12px 0; border-top: 1px solid var(--line); }
.group:first-of-type { border-top: 0; padding-top: 0; }
.group h3 { font-size: 13px; margin: 0 0 8px; font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.group h3 small { font-weight: 400; color: var(--muted); }
.help { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: default; }
.cats { display: grid; gap: 6px; }
.cat { display: grid; grid-template-columns: 22px minmax(0, 1fr) 84px; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.cat input[type="color"] { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: none; cursor: pointer; }
.cat input[type="text"], .cat input[type="number"], .field input, .field textarea {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; min-width: 0; width: 100%; }
.cat .meta { grid-column: 2 / 4; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat .meta .btns { display: flex; gap: 4px; }
:root { --res: #7c3aed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --res: #c4a5ff; } }
:root[data-theme="dark"] { --res: #c4a5ff; }
.cat.status { grid-template-columns: 22px minmax(0, 1fr); }
.cat.status .meta { grid-column: 2 / 3; }
.res-swatch { width: 22px; height: 22px; border-radius: 5px; background: var(--seat); border: 2px dashed var(--res); }
.block-swatch { width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, var(--x-bg) 0 3px, var(--line) 3px 6px); }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.field textarea { min-height: 70px; resize: vertical; }
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.viewtoggle button { border: 0; background: var(--panel); padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink); }
.viewtoggle button[aria-pressed="true"] { background: var(--acc); color: var(--panel); }
/* seats in the planner */
#map svg { user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.seat.priced rect { stroke: color-mix(in srgb, var(--cat) 70%, #000); }
.seat.priced text { fill: #1d1d1b; }
.seat.blocked rect { fill: url(#blockfill); }
.seat.reserved rect { stroke: var(--res); stroke-width: 2; stroke-dasharray: 3 1.6; }
.seat.public rect { fill: color-mix(in srgb, var(--ok) 26%, var(--seat)); }
.seat.reserved.status rect { fill: color-mix(in srgb, var(--res) 30%, var(--seat)); }
/* People view: fill = the name's own light shade; border = the price category's colour (dashed if reserved) */
#map.people .seat.named rect { fill: var(--grp); }
#map.people .seat.catline rect { stroke: var(--catline); stroke-width: 2; }
#map.people .seat.reserved rect { stroke: var(--catline, var(--res)); stroke-width: 2; stroke-dasharray: 3 1.6; }
#map .seat.sel rect, #map.people .seat.sel rect { stroke: var(--acc); stroke-width: 2.6; stroke-dasharray: none; }
.seat.drop-ok rect { stroke: var(--ok); stroke-width: 2.8; stroke-dasharray: none; }
.seat.drop-bad rect { stroke: var(--bad); stroke-width: 2.8; stroke-dasharray: none; }
.seat.named { cursor: grab; }
.dragging, .dragging .seat { cursor: grabbing !important; }
.seat.named text { font-weight: 700; }
.seat.sel rect { stroke: var(--acc); stroke-width: 2.6; }
.seat.off { cursor: not-allowed; }
.rowlabel { cursor: pointer; }
.rowlabel:hover { fill: var(--acc); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--seat-line); background: var(--seat); }
.legend i.cat { background: linear-gradient(90deg, #f4a261 50%, #8ecae6 50%); }
.legend i.block { background: repeating-linear-gradient(45deg, var(--x-bg) 0 3px, var(--line) 3px 6px); }
.legend i.res { border: 2px dashed var(--res); }
.legend i.sel { border: 2.5px solid var(--acc); }
.legend i.off { opacity: .3; border-style: dashed; }
.legend i.pub { background: color-mix(in srgb, var(--ok) 26%, var(--seat)); }
.legend i.resfill { background: color-mix(in srgb, var(--res) 30%, var(--seat)); border: 2px dashed var(--res); }
.legend i.grpfill { background: linear-gradient(90deg, hsl(30 75% 86%) 50%, hsl(200 75% 86%) 50%); }
.legend i.catline { border: 2px solid #f4a261; }
.legend i.catdash { border: 2px dashed #f4a261; }
.legend i.named { font-style: normal; font-size: 8px; font-weight: 700; line-height: 11px; text-align: center; color: var(--seat-ink); }
.namebox-alt summary { font-size: 12px; color: var(--muted); cursor: pointer; margin-top: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.marquee { fill: color-mix(in srgb, var(--acc) 12%, transparent); stroke: var(--acc); stroke-dasharray: 4 3; stroke-width: 1; pointer-events: none; }
/* summary */
.below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; padding-bottom: 32px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.grid2 > *, .below > * { min-width: 0; }   /* wide tables scroll in their frame instead of widening the page */
td.num, th.num { text-align: right; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.gap-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.gap-out { display: grid; gap: 6px; font-size: 13.5px; }
.gap-out div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.gap-out b { font-variant-numeric: tabular-nums; }
.gap-out .short b { color: var(--bad); } .gap-out .ok b { color: var(--ok); }
.files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.files input[type="file"] { display: none; }
.notice { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--r-bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--r) 40%, transparent); margin: 0 0 12px; }
.notice.ok { background: var(--acc-bg); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
/* consent */
dialog.consent { max-width: 620px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--panel); color: var(--ink); }
dialog.consent::backdrop { background: rgb(0 0 0 / .45); }
.consent .in { padding: 22px 24px; }
.consent h2 { margin: 0 0 6px; font-size: 20px; }
.consent ul { padding-left: 18px; margin: 12px 0; } .consent li { margin-bottom: 8px; font-size: 14px; }
.consent .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 14px 0; }
.consent .agree input { margin-top: 3px; accent-color: var(--acc); }
.consent .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gated { visibility: hidden; }
dialog.small { max-width: 460px; }
.small .field { color: var(--ink); font-size: 13px; }
.small .opt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 10px 0 4px; }
.small .opt input { margin-top: 3px; accent-color: var(--acc); }
.small .warn { color: var(--bad); font-size: 13px; margin: 8px 0 0; }
.small .muted { color: var(--muted); font-size: 12.5px; margin: 4px 0 0 24px; }
/* utility classes instead of inline style attributes (the hosted planner's CSP allows no inline styles) */
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .m0 { margin: 0; }
.cat.status b { font-size: 13px; }
.dot.block-swatch { width: 10px; height: 10px; }
