/* BookMyStall — one stylesheet for the public site and the ERP. No build step needed. */
:root {
  --ink: #12312f;
  --ink-2: #1d4643;
  --marigold: #f2a93b;
  --marigold-d: #c9821a;
  --ground: #f3f4ef;
  --surface: #ffffff;
  --line: #dcdfd6;
  --line-2: #e9ebe4;
  --text: #1a2321;
  --muted: #5e6964;
  --good: #2f9e6e;
  --warn: #d9950f;
  --bad: #b4424e;
  --avail: #2f9e6e;
  --reserved: #e3a21a;
  --booked: #b4424e;
  --blocked: #a3aaa6;
  --focus: #2b6cb0;
  --radius: 10px;
  --radius-s: 6px;
  --font-display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(18, 49, 47, .06), 0 8px 24px -16px rgba(18, 49, 47, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--ground); }
img { max-width: 100%; display: block; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- layout helpers ---------- */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-s);
  border: 1px solid transparent; font: 600 14px/1.2 var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: #fff; transition: background .15s; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn-accent { background: var(--marigold); color: #2a1a00; }
.btn-accent:hover { background: #f5b65a; color: #2a1a00; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: #c5cabe; }
.btn-danger { background: transparent; color: var(--bad); border-color: #e5c4c8; }
.btn-danger:hover { background: #fbeff0; color: var(--bad); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* ---------- forms ---------- */
label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search],
input[type=tel], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
  font: 14.5px/1.4 var(--font-body); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); outline: 2px solid rgba(29, 70, 67, .18); outline-offset: 0; }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 16px; }
.field .error, .error-text { color: var(--bad); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix input { padding-left: 26px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1.05rem; margin-bottom: 10px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 20px; }
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }

.flash { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.flash-ok { background: #ecf7f1; border-color: #bfe3cf; color: #1d5c41; }
.flash-err { background: #fbeff0; border-color: #ebc7cc; color: #7d2733; }
.flash-info { background: #fff7e8; border-color: #f2d9a6; color: #6b4a0b; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.tag-good { background: #e3f3ea; color: #1e6b49; }
.tag-warn { background: #fdf1d8; color: #87580a; }
.tag-bad { background: #f8e3e5; color: #8e2f3b; }
.tag-muted { background: #eceee9; color: #515a56; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbf8; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fbfcf9; }
.t .right { text-align: right; }
.t tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: #fafbf8; }
.t .strong { font-weight: 600; color: var(--ink); }
.t-compact td, .t-compact th { padding: 8px 12px; }

/* ---------- stat tiles ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font: 700 1.6rem/1.2 var(--font-display); color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.is-good .v { color: var(--good); }
.stat.is-bad .v { color: var(--bad); }

.meter { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; display: flex; }
.meter > span { display: block; height: 100%; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---------- pagination ---------- */
nav[role=navigation] { margin-top: 16px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.pager a, .pager span { padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; background: #fff; font-size: 14px; }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .is-disabled { color: #aab; }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem var(--font-display); letter-spacing: -0.02em; }
.brand svg { flex: none; }
.brand b { color: var(--marigold-d); font-weight: 700; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { padding: 8px 12px; text-decoration: none; color: var(--text); border-radius: var(--radius-s); font-weight: 500; }
.site-nav a:hover { background: var(--ground); }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
}

.hero { background: var(--ink); color: #e8efe9; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; letter-spacing: -0.025em; max-width: 14ch; }
.hero p.lead { font-size: 1.12rem; color: #c3d4cd; max-width: 46ch; }
.hero-search { background: #fff; border-radius: var(--radius); padding: 8px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; margin-top: 26px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.hero-search input, .hero-search select { border: 0; background: var(--ground); }
.hero-facts { display: flex; gap: 28px; margin-top: 22px; color: #c3d4cd; font-size: 14px; flex-wrap: wrap; }
.hero-facts strong { color: #fff; font: 700 1.25rem var(--font-display); display: block; }
.hero-plan { background: #0d2624; border: 1px solid #2a524e; border-radius: 14px; padding: 18px; }
.hero-plan svg { width: 100%; height: auto; }
.hero-plan .cap { display: flex; gap: 14px; font-size: 12.5px; color: #a9bdb6; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search .q { grid-column: span 2; }
  .hero-plan { display: none; }
}
@media (max-width: 520px) { .hero-search { grid-template-columns: 1fr; } .hero-search .q { grid-column: auto; } }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot-available { background: var(--avail); } .dot-reserved { background: var(--reserved); } .dot-booked { background: var(--booked); } .dot-blocked { background: var(--blocked); }

.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 1.7rem; }

.expo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.expo-card:hover { border-color: #b9c0b3; color: inherit; }
.expo-card .cover { aspect-ratio: 16 / 7; background: var(--ink-2); position: relative; overflow: hidden; }
.expo-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.expo-card .cover .date-chip { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); border-radius: 6px; padding: 4px 9px; font-weight: 700; font-size: 13px; }
.expo-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.expo-card h3 { margin: 0; font-size: 1.08rem; }
.expo-card .meta { color: var(--muted); font-size: 13.5px; }
.expo-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.expo-card .price { font-weight: 700; color: var(--ink); }
.cover-pattern { position: absolute; inset: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--text); font-size: 14px; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip span { color: var(--muted); margin-left: 4px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { list-style: none; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--marigold); color: #2a1a00; font-weight: 700; margin-bottom: 10px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.filters { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }

.expo-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0; }
.expo-hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.expo-hero .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.expo-hero .crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin-top: 18px; }
.facts div { font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.book-box { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
.book-box .from { font: 700 1.6rem var(--font-display); color: var(--ink); }
@media (max-width: 900px) { .expo-hero .wrap { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose p { margin-bottom: .9em; }

.site-footer { background: var(--ink); color: #b8c9c2; padding: 40px 0 28px; margin-top: 56px; font-size: 14px; }
.site-footer a { color: #dfe9e4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

.auth-shell { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(480px, 100%); }
.auth-card.wide { width: min(640px, 100%); }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.role-switch label { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; cursor: pointer; font-weight: 500; background: #fff; margin: 0; }
.role-switch input { position: absolute; opacity: 0; }
.role-switch label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f6f8f3; }
.role-switch label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.role-switch strong { display: block; color: var(--ink); }
.role-switch small { color: var(--muted); }

/* =========================================================
   APP SHELL (ERP)
   ========================================================= */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--ink) 236px, transparent 236px); }
.sidebar { background: var(--ink); color: #c8d7d1; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { color: #fff; padding: 4px 10px 18px; }
.sidebar .brand b { color: var(--marigold); }
.side-group { margin-bottom: 14px; }
.side-group .gl { font-size: 12px; color: #86a39a; padding: 6px 10px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); color: #dbe6e1; text-decoration: none; font-size: 14.5px; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.active { background: rgba(242, 169, 59, .16); color: #fff; box-shadow: inset 3px 0 0 var(--marigold); }
.side-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-link .count { margin-left: auto; background: var(--marigold); color: #2a1a00; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 99px; }
.sidebar .who { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 10px 0; font-size: 13px; }
.sidebar .who strong { color: #fff; display: block; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.topbar .title { font: 650 1.15rem var(--font-display); color: var(--ink); margin: 0; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { padding: 24px 28px 48px; max-width: 1320px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; background: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .nav-toggle { display: inline-flex; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 12px 16px; }
}
.page-intro { color: var(--muted); margin: -8px 0 20px; max-width: 70ch; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.ledger-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; }
.ledger-line.total { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; padding-top: 10px; margin-top: 4px; font-size: 16px; }
.ledger-line.sub { padding-left: 14px; color: var(--muted); font-size: 13.5px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: 12.5px; }
.chart-box { position: relative; min-height: 260px; }
details.inline > summary { cursor: pointer; list-style: none; }
details.inline > summary::-webkit-details-marker { display: none; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(520px, 100% - 32px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(18, 49, 47, .45); }
dialog .panel-body { padding: 20px; }

/* =========================================================
   FLOOR PLAN (viewer + editor)
   ========================================================= */
.fp { position: relative; }
.fp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fp-tabs button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 99px; cursor: pointer; font: 500 14px var(--font-body); }
.fp-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-tabs button.on .muted { color: #b9cdc6; }
.fp-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; position: relative; max-height: 72vh; }
.fp-canvas { position: relative; background-color: #fbfcf8;
  background-image: linear-gradient(#eef0ea 1px, transparent 1px), linear-gradient(90deg, #eef0ea 1px, transparent 1px); transform-origin: 0 0; }
.fp-stall { position: absolute; border: 1.5px solid rgba(0,0,0,.18); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1.1; font-weight: 700; color: #fff; text-align: center; overflow: hidden; user-select: none; padding: 2px; white-space: nowrap; }
.fp-stall small { font-weight: 500; font-size: 9.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fp-stall.available { background: var(--avail); cursor: pointer; }
.fp-stall.reserved { background: var(--reserved); color: #3b2800; }
.fp-stall.booked { background: var(--booked); }
.fp-stall.blocked { background: repeating-linear-gradient(45deg, #c5cbc8, #c5cbc8 4px, #b2b9b5 4px, #b2b9b5 8px); color: #454c49; }
.fp-stall.available:hover { filter: brightness(1.08); }
.fp-stall.selected { background: var(--ink); box-shadow: 0 0 0 3px var(--marigold); z-index: 3; }
.fp-el { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #4d5753; border: 1px dashed #b6bdb4; background: rgba(233, 236, 228, .8); border-radius: 3px; text-align: center; overflow: hidden; }
.fp-el.entrance, .fp-el.exit { background: #e1f0ff; border-color: #9cc3ea; color: #1f4f80; }
.fp-el.stage { background: #f2e8ff; border-color: #c7aee8; color: #55327e; }
.fp-el.pillar { background: #8c948f; border: 0; color: #fff; }
.fp-el.food { background: #fff2dc; border-color: #ecc98d; color: #7a5313; }
.fp-el.toilet, .fp-el.office { background: #eef0f4; }
.fp-el.aisle { background: transparent; border-style: dotted; }
.fp-el.label { background: transparent; border: 0; font-size: 13px; color: var(--ink); }
.fp-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.fp-tip { position: absolute; z-index: 40; background: var(--ink); color: #fff; border-radius: 6px; padding: 8px 10px; font-size: 12.5px; pointer-events: none; max-width: 220px; box-shadow: var(--shadow); }
.fp-zoom { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.fp-zoom button { border: 0; background: #fff; padding: 5px 10px; cursor: pointer; font-size: 15px; }
.fp-zoom button + button { border-left: 1px solid var(--line); }

.cart { position: sticky; top: 80px; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.cart-line button { border: 0; background: none; color: var(--bad); cursor: pointer; font-size: 13px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .booking-layout { grid-template-columns: 1fr; } .cart { position: static; } }

/* editor */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .ed { grid-template-columns: 1fr; } }
.ed-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ed .fp-stall, .ed .fp-el { cursor: move; }
.ed .fp-stall.sel, .ed .fp-el.sel { outline: 2px solid var(--marigold); outline-offset: 1px; z-index: 5; }
.ed .handle { position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: var(--marigold); border: 1px solid #fff; border-radius: 2px; cursor: nwse-resize; display: none; }
.ed .sel .handle { display: block; }
.ed .fp-stall.reserved, .ed .fp-stall.booked { cursor: move; }
.ed-panel h3 { font-size: 1rem; }
.ed-panel .field { margin-bottom: 10px; }
.ed-status { font-size: 13px; color: var(--muted); }
.ed-status.dirty { color: var(--warn); font-weight: 600; }
.rubber { position: absolute; border: 1px dashed var(--ink); background: rgba(18, 49, 47, .06); pointer-events: none; z-index: 30; }

/* print */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .no-print, .sidebar, .topbar, .site-header, .site-footer { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
  .print-only { display: block; }
  .panel { border: 0; padding: 0; }
}
