/* Backend look matches the homepage: charcoal (dark) or paper (light), with the chosen accent colour.
   --royal / --royal-2 / --accent come from the accent the visitor picked (red by default). */
:root {
  --canvas:#121110; --surface:#1b1917; --surface-2:#242220; --surface-3:#2e2b28;
  --ink:#f3ede4; --muted:#b3aa9d; --line:#3a352f;
  --royal:#d4100c; --royal-2:#eb0a06; --accent:#ff6b5e; --accent-ink:#ffffff;
  --live:#34d399; --live-glow:rgba(52,211,153,.18);
  --warn:#fbbf24; --bad:#f87171; --info:#ff6b5e;
  --head-bg:#f8eee2; --head-ink:#121212; --head-muted:#4a443d;
  --radius:14px; color-scheme:dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas:#f3ede3; --surface:#fffdf9; --surface-2:#f4eee5; --surface-3:#e9e1d4;
    --ink:#141210; --muted:#5b544b; --line:#ddd3c3;
    --royal:#c81518; --royal-2:#eb0a06; --accent:#c81518; --accent-ink:#ffffff;
    --live:#0f9d68; --live-glow:rgba(15,157,104,.14);
    --warn:#b7791f; --bad:#c53030; --info:#c81518; color-scheme:light;
  }
}
:root[data-theme="light"] {
  --canvas:#f3ede3; --surface:#fffdf9; --surface-2:#f4eee5; --surface-3:#e9e1d4;
  --ink:#141210; --muted:#5b544b; --line:#ddd3c3;
  --royal:#c81518; --royal-2:#eb0a06; --accent:#c81518; --accent-ink:#ffffff;
  --live:#0f9d68; --live-glow:rgba(15,157,104,.14);
  --warn:#b7791f; --bad:#c53030; --info:#c81518; color-scheme:light;
}
@media (prefers-color-scheme: dark) { :root[data-accent="blue"]:not([data-theme="light"]) { --royal:#3853a4; --royal-2:#4a68c4; --accent:#58a8dd; --info:#58a8dd; } }
:root[data-accent="blue"][data-theme="dark"] { --royal:#3853a4; --royal-2:#4a68c4; --accent:#58a8dd; --info:#58a8dd; }
@media (prefers-color-scheme: light) { :root[data-accent="blue"]:not([data-theme="dark"]) { --royal:#3853a4; --royal-2:#4a68c4; --accent:#3853a4; --info:#3853a4; } }
:root[data-accent="blue"][data-theme="light"] { --royal:#3853a4; --royal-2:#4a68c4; --accent:#3853a4; --info:#3853a4; }
@media (prefers-color-scheme: dark) { :root[data-accent="orange"]:not([data-theme="light"]) { --royal:#d95c0a; --royal-2:#f26a0f; --accent:#ffa45c; --info:#ffa45c; } }
:root[data-accent="orange"][data-theme="dark"] { --royal:#d95c0a; --royal-2:#f26a0f; --accent:#ffa45c; --info:#ffa45c; }
@media (prefers-color-scheme: light) { :root[data-accent="orange"]:not([data-theme="dark"]) { --royal:#d95c0a; --royal-2:#f26a0f; --accent:#c4520a; --info:#c4520a; } }
:root[data-accent="orange"][data-theme="light"] { --royal:#d95c0a; --royal-2:#f26a0f; --accent:#c4520a; --info:#c4520a; }
@media (prefers-color-scheme: dark) { :root[data-accent="green"]:not([data-theme="light"]) { --royal:#0b8a4d; --royal-2:#0f9d58; --accent:#4ade80; --info:#4ade80; } }
:root[data-accent="green"][data-theme="dark"] { --royal:#0b8a4d; --royal-2:#0f9d58; --accent:#4ade80; --info:#4ade80; }
@media (prefers-color-scheme: light) { :root[data-accent="green"]:not([data-theme="dark"]) { --royal:#0b8a4d; --royal-2:#0f9d58; --accent:#0b7a44; --info:#0b7a44; } }
:root[data-accent="green"][data-theme="light"] { --royal:#0b8a4d; --royal-2:#0f9d58; --accent:#0b7a44; --info:#0b7a44; }
@media (prefers-color-scheme: dark) { :root[data-accent="purple"]:not([data-theme="light"]) { --royal:#6a26c4; --royal-2:#7a2fd6; --accent:#b388ff; --info:#b388ff; } }
:root[data-accent="purple"][data-theme="dark"] { --royal:#6a26c4; --royal-2:#7a2fd6; --accent:#b388ff; --info:#b388ff; }
@media (prefers-color-scheme: light) { :root[data-accent="purple"]:not([data-theme="dark"]) { --royal:#6a26c4; --royal-2:#7a2fd6; --accent:#5c20a6; --info:#5c20a6; } }
:root[data-accent="purple"][data-theme="light"] { --royal:#6a26c4; --royal-2:#7a2fd6; --accent:#5c20a6; --info:#5c20a6; }
@media (prefers-color-scheme: dark) { :root[data-accent="pink"]:not([data-theme="light"]) { --royal:#c8136c; --royal-2:#e5177d; --accent:#ff7ab6; --info:#ff7ab6; } }
:root[data-accent="pink"][data-theme="dark"] { --royal:#c8136c; --royal-2:#e5177d; --accent:#ff7ab6; --info:#ff7ab6; }
@media (prefers-color-scheme: light) { :root[data-accent="pink"]:not([data-theme="dark"]) { --royal:#c8136c; --royal-2:#e5177d; --accent:#b0105f; --info:#b0105f; } }
:root[data-accent="pink"][data-theme="light"] { --royal:#c8136c; --royal-2:#e5177d; --accent:#b0105f; --info:#b0105f; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--canvas); color:var(--ink); }
body { font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
img { max-width:100%; display:block; }
.wrap { max-width:1120px; margin:0 auto; padding:0 20px; }
.muted { color:var(--muted); }
.small { font-size:.88rem; }
.hidden { display:none !important; }

/* header */
.site-head { position:sticky; top:0; z-index:20; background:var(--head-bg); backdrop-filter:blur(10px);
  border-bottom:1px solid #12121222; color:var(--head-ink); }
.site-head .brand img { height:46px; width:auto; max-width:60vw; display:block; }
.admin-tag { font-style:normal; font-weight:700; font-size:.8rem; color:var(--royal); margin-left:8px; text-transform:uppercase; letter-spacing:.06em; }
.brand { display:inline-flex; align-items:center; }
.site-head .wrap { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; padding-bottom:14px; flex-wrap:wrap; }
.brand { font-weight:900; font-style:italic; letter-spacing:.02em; font-size:1.15rem; text-decoration:none; white-space:nowrap; }
.brand span { color:var(--accent); }
.nav { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.nav a { text-decoration:none; padding:8px 12px; border-radius:10px; color:var(--head-muted); font-weight:600; font-size:.95rem; }
.nav a:hover { color:var(--head-ink); background:#12121212; }
.nav a.btn-primary, .nav a.btn-primary:hover { color:var(--accent-ink); background:linear-gradient(180deg, var(--royal-2), var(--royal)); }

/* buttons + forms */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-radius:10px;
  border:1px solid transparent; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; min-height:44px; }
.btn-primary { background:linear-gradient(180deg, var(--royal-2), var(--royal)); color:var(--accent-ink); }
.btn-primary:hover { filter:brightness(1.07); }
.btn-ghost { background:var(--surface-2); color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { background:var(--surface-3); }
.btn-danger { background:transparent; color:var(--bad); border-color:color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-sm { padding:8px 12px; min-height:36px; font-size:.9rem; }
.btn[disabled] { opacity:.55; cursor:not-allowed; }
.btn-row { display:flex; flex-wrap:wrap; gap:10px; }

label { display:block; font-weight:600; font-size:.92rem; margin:0 0 6px; }
.field { margin-bottom:14px; }
input, select, textarea { width:100%; padding:12px; border-radius:10px; border:1px solid var(--line); background:var(--surface-2);
  color:var(--ink); font:inherit; font-size:16px; min-width:0; }
input:focus, select:focus, textarea:focus { outline:2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset:1px; }
input[type=checkbox], input[type=radio] { width:auto; }
.check { display:flex; gap:10px; align-items:center; font-weight:500; padding:8px 0; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:0 16px; }

/* cards & layout */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.card + .card { margin-top:16px; }
.grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); }
.section { padding:56px 0; }
.section h2 { font-size:clamp(1.5rem,3.6vw,2.1rem); margin:0 0 8px; letter-spacing:-.01em; }
.section > .wrap > p.lead { color:var(--muted); max-width:62ch; margin:0 0 28px; font-size:1.05rem; }
.alt { background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* hero */
.hero { padding:80px 0 64px; color:#fff; position:relative; overflow:hidden;
  background:#000 url("/assets/brand/hero-bg.webp") center bottom / cover no-repeat; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.1) 75%); pointer-events:none; }
.hero-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:32px; align-items:center; }
.hero-logo { width:100%; max-width:480px; height:auto; justify-self:center; filter:drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
@media (max-width:820px) { .hero-grid { grid-template-columns:1fr; } .hero-logo { order:-1; max-width:300px; justify-self:start; } }
.hero .wrap { position:relative; z-index:1; }
.hero .kicker { font-weight:900; font-style:italic; letter-spacing:.04em; color:var(--accent); margin:0 0 10px; font-size:1rem; text-transform:uppercase; }
.hero h1 { font-size:clamp(2.3rem,7vw,4.4rem); line-height:1; margin:0 0 14px; font-weight:900; font-style:italic; text-transform:uppercase; letter-spacing:-.01em; max-width:14ch; }
.hero .offer { font-size:clamp(1.4rem,3.6vw,2.1rem); font-weight:900; font-style:italic; margin:0 0 12px; text-transform:uppercase; }
.hero .offer span { color:var(--accent); white-space:nowrap; }
.hero .offer .gst { font-size:.5em; color:#9fb3dd; font-style:normal; font-weight:700; vertical-align:middle; }
.hero p { font-size:clamp(1.02rem,2.3vw,1.2rem); color:#c9d4ec; max-width:56ch; margin:0 0 28px; }
.hero .tags { color:#9fb3dd; font-weight:700; font-size:.92rem; letter-spacing:.03em; margin:22px 0 0; }
.hero .btn-ghost { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.25); color:#fff; }
.section h2 { font-weight:900; font-style:italic; }

/* steps */
.steps { counter-reset:step; display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); }
.step { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.step::before { counter-increment:step; content:counter(step); display:inline-grid; place-items:center; width:34px; height:34px;
  border-radius:50%; background:var(--royal); color:#fff; font-weight:800; margin-bottom:12px; }
.step h3 { margin:0 0 6px; font-size:1.1rem; }
.step p { margin:0; color:var(--muted); }

/* screens */
.screen-card { padding:0; overflow:hidden; }
.screen-card .panel { aspect-ratio:9/5; background:var(--surface-2); display:grid; place-items:center; }
.screen-card .panel img { width:100%; height:100%; object-fit:cover; }
.screen-card .panel svg { width:44%; color:var(--muted); opacity:.55; }
.screen-card.is-live .panel svg { color:var(--live); opacity:.85; }
.screen-card .body { padding:14px 16px 16px; }
.screen-card h3 { margin:0 0 6px; font-size:1.1rem; }
.status { display:flex; align-items:center; gap:8px; font-weight:600; font-size:.95rem; }
.dot { width:10px; height:10px; border-radius:50%; background:var(--muted); flex:0 0 auto; }
.is-live .dot, .dot.live { background:var(--live); box-shadow:0 0 0 4px var(--live-glow); }
.is-live .status { color:var(--live); }
.pill { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:var(--surface-2);
  border:1px solid var(--line); font-weight:600; font-size:.88rem; }

/* badges */
.badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:.8rem; font-weight:700; border:1px solid var(--line); background:var(--surface-2); }
.badge.ok { color:var(--live); border-color:color-mix(in srgb, var(--live) 40%, transparent); }
.badge.warn { color:var(--warn); border-color:color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.bad { color:var(--bad); border-color:color-mix(in srgb, var(--bad) 40%, transparent); }
.badge.info { color:var(--info); border-color:color-mix(in srgb, var(--info) 40%, transparent); }

/* packages */
.pkg { display:flex; flex-direction:column; gap:10px; }
.pkg h3 { margin:0; font-size:1.2rem; }
.pkg .price { font-size:1.8rem; font-weight:800; }
.pkg .price small { font-size:.9rem; font-weight:600; color:var(--muted); }
.pkg ul { margin:0; padding-left:18px; color:var(--muted); }
.pkg .btn { margin-top:auto; }

/* notices */
.notice { padding:12px 14px; border-radius:10px; border:1px solid var(--line); background:var(--surface-2); font-size:.95rem; }
.notice.bad { border-color:color-mix(in srgb, var(--bad) 45%, transparent); color:var(--bad); }
.notice.ok { border-color:color-mix(in srgb, var(--live) 45%, transparent); color:var(--live); }
.notice.warn { border-color:color-mix(in srgb, var(--warn) 45%, transparent); color:var(--warn); }

/* tabs */
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 20px; border-bottom:1px solid var(--line); }
.tabs button { background:none; border:0; color:var(--muted); font:inherit; font-weight:700; padding:12px 14px; cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px; }
.tabs button.active { color:var(--ink); border-bottom-color:var(--accent); }

/* artwork */
.art-row { display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--line); }
.art-row:first-child { border-top:0; }
.art-thumb { width:180px; max-width:100%; aspect-ratio:3/2; border-radius:10px; overflow:hidden; background:var(--surface-2); border:1px solid var(--line); flex:0 0 auto; }
.art-thumb img { width:100%; height:100%; object-fit:contain; }
.art-meta { flex:1 1 220px; min-width:0; }
.previews { display:flex; gap:12px; flex-wrap:wrap; margin:12px 0; }
.preview { background:#000; border-radius:6px; overflow:hidden; border:3px solid var(--surface-3); }
.preview img { width:100%; height:100%; object-fit:fill; }
.preview-label { font-size:.8rem; color:var(--muted); margin-top:4px; }

/* running order */
.order { display:flex; gap:10px; overflow-x:auto; padding-bottom:8px; }
.order .slot { flex:0 0 150px; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.order .slot img { width:100%; aspect-ratio:3/2; object-fit:cover; }
.order .slot div { padding:8px; font-size:.85rem; }
.order .slot.house { border-color:color-mix(in srgb, var(--accent) 50%, transparent); }

/* tables */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.93rem; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:700; font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }

/* modal */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.6); display:grid; place-items:center; padding:16px; z-index:50; }
.modal .card { width:min(560px, 100%); max-height:90vh; overflow:auto; }

footer.site-foot { border-top:1px solid var(--line); color:var(--muted); font-size:.9rem; }
footer.site-foot .wrap { padding-top:24px; padding-bottom:32px; display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; }

@media (max-width:560px) {
  .wrap { padding:0 16px; }
  .hero { padding:36px 0 36px; }
  .site-head .brand img { height:36px; }
  .hero-logo { max-width:220px; }
  .section { padding:40px 0; }
  .card { padding:16px; }
  .btn-row .btn { flex:1 1 auto; }
  .grid { grid-template-columns:1fr; }
  .art-thumb { width:100%; }
  .spec-table thead { display:none; }
  .spec-table tr { display:block; padding:10px 0; border-bottom:1px solid var(--line); }
  .spec-table td { display:flex; justify-content:space-between; gap:12px; border:0; padding:4px 0; }
  .spec-table td::before { content:attr(data-label); color:var(--muted); font-weight:600; }
  .spec-table td:first-child { font-size:1.1rem; }
  .spec-table td:first-child::before { content:""; }
}

/* locations + specs */
.loc h3 { margin:0 0 4px; font-style:italic; font-weight:900; text-transform:uppercase; letter-spacing:.02em; }
.loc .state { color:var(--accent); font-weight:800; font-size:.85rem; letter-spacing:.06em; }
.loc p { margin:6px 0 12px; color:var(--muted); }
.spec-table td:first-child, .spec-table th:first-child { font-weight:800; }
.formats { display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); }
.formats h3 { margin:0 0 6px; }
.formats p { margin:0; color:var(--muted); }
.strap { text-align:center; font-weight:900; font-style:italic; text-transform:uppercase; letter-spacing:.02em; font-size:clamp(1.2rem,3.4vw,1.8rem); margin:0; }
.strap span { color:var(--accent); }

/* ===== Customer portal (app shell) ===== */
.app { display:grid; grid-template-columns:232px 1fr; gap:28px; padding-top:24px; padding-bottom:60px; }
.side { position:sticky; top:96px; align-self:start; display:flex; flex-direction:column; gap:4px; }
.side .who { padding:4px 12px 14px; border-bottom:1px solid var(--line); margin-bottom:8px; }
.side .who strong { display:block; font-size:1.02rem; word-break:break-word; }
.side button.nav-item { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:none; border:0; color:var(--muted);
  font:inherit; font-weight:700; padding:10px 12px; border-radius:10px; cursor:pointer; }
.side button.nav-item svg { width:18px; height:18px; flex:0 0 auto; }
.side button.nav-item:hover { background:var(--surface-2); color:var(--ink); }
.side button.nav-item.active { background:color-mix(in srgb, var(--royal) 22%, transparent); color:var(--ink); }
.side button.nav-item .count { margin-left:auto; background:var(--warn); color:#1a1300; border-radius:999px; font-size:.75rem; padding:1px 8px; }
.side .btn { margin-top:14px; }
.page-title { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.page-title h1 { margin:0; font-size:clamp(1.5rem,3.6vw,2rem); font-style:italic; font-weight:900; }
.page-title p { margin:4px 0 0; color:var(--muted); }

.stats { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.stat { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px; }
.stat .label { color:var(--muted); font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.stat .value { font-size:1.9rem; font-weight:900; margin-top:4px; line-height:1.1; }
.stat .hint { color:var(--muted); font-size:.82rem; margin-top:2px; }

.screen-tiles { display:grid; gap:16px; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.tile .stage { background:radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--royal) 28%, #0b0a09) 0%, #0c0b0a 60%, #050505 100%); padding:14px 10px 4px; }
.tile .stage svg { width:100%; height:auto; display:block; }
.tile .body { padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.tile h3 { margin:0; font-size:1.15rem; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.tile .meta { color:var(--muted); font-size:.88rem; }
.tile .actions { margin-top:auto; padding-top:6px; }
.state { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:.8rem; font-weight:800; border:1px solid var(--line); }
.state::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.state.on_air { color:var(--live); border-color:color-mix(in srgb, var(--live) 40%, transparent); }
.state.going_live, .state.scheduled { color:var(--info); border-color:color-mix(in srgb, var(--info) 40%, transparent); }
.state.awaiting_approval, .state.needs_artwork, .state.awaiting_payment { color:var(--warn); border-color:color-mix(in srgb, var(--warn) 40%, transparent); }
.online-dot { display:inline-flex; align-items:center; gap:6px; font-size:.82rem; font-weight:700; color:var(--muted); }
.online-dot::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--muted); }
.online-dot.on { color:var(--live); } .online-dot.on::before { background:var(--live); box-shadow:0 0 0 3px var(--live-glow); }

.booking-row { display:grid; grid-template-columns:1.4fr 1fr 1fr auto; gap:14px; align-items:center; padding:14px 0; border-top:1px solid var(--line); }
.booking-row:first-child { border-top:0; }

/* live view */
.live-modal { position:fixed; inset:0; z-index:60; background:rgba(2,4,10,.86); backdrop-filter:blur(6px); display:grid; place-items:center; padding:16px; }
.live-card { width:min(980px, 100%); max-height:94vh; overflow:auto; background:var(--surface); border:1px solid var(--line); border-radius:18px; }
.live-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); }
.live-head h2 { margin:0; font-size:1.2rem; }
.live-stage { background:radial-gradient(120% 90% at 50% 0%, #142a6b 0%, #060a18 55%, #02030a 100%); padding:18px 16px 6px; position:relative; }
.live-stage svg { width:100%; max-height:52vh; display:block; margin:0 auto; }
.live-tag { position:absolute; top:14px; left:14px; display:inline-flex; align-items:center; gap:8px; background:rgba(0,0,0,.6); color:#fff;
  border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:5px 12px; font-size:.8rem; font-weight:800; letter-spacing:.04em; }
.live-tag i { width:8px; height:8px; border-radius:50%; background:#ef4444; box-shadow:0 0 0 0 rgba(239,68,68,.7); animation:livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow:0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow:0 0 0 0 rgba(239,68,68,0); } }
@media (prefers-reduced-motion: reduce) { .live-tag i { animation:none; } }
.live-info { padding:14px 18px 6px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; }
.live-now { font-weight:800; font-size:1.05rem; }
.progress { height:6px; background:var(--surface-3); border-radius:99px; overflow:hidden; margin:0 18px; }
.progress > div { height:100%; background:linear-gradient(90deg, var(--royal-2), var(--accent)); width:0; transition:width .25s linear; }
.loop-strip { display:flex; gap:8px; overflow-x:auto; padding:14px 18px; }
.loop-strip .chip { flex:0 0 auto; width:96px; border-radius:8px; overflow:hidden; border:2px solid var(--line); background:var(--surface-2); font-size:.72rem; }
.loop-strip .chip .thumb { aspect-ratio:3/2; background:#0b0a09 center/cover no-repeat; display:grid; place-items:center; color:#7f8db0; font-weight:700; text-align:center; padding:4px; }
.loop-strip .chip .cap { padding:4px 6px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.loop-strip .chip.mine { border-color:color-mix(in srgb, var(--accent) 60%, transparent); }
.loop-strip .chip.now { outline:3px solid var(--accent); outline-offset:1px; }
.live-foot { padding:6px 18px 18px; display:grid; gap:14px; grid-template-columns:1fr 1fr; }
.snapshot img { width:100%; border-radius:10px; border:1px solid var(--line); }

@media (max-width:900px) {
  .app { grid-template-columns:1fr; gap:14px; padding-top:12px; }
  .side { position:static; flex-direction:row; overflow-x:auto; gap:6px; padding-bottom:6px; border-bottom:1px solid var(--line); }
  .side .who, .side .btn { display:none; }
  .side button.nav-item { width:auto; white-space:nowrap; padding:8px 12px; }
  .stats { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .booking-row { grid-template-columns:1fr; gap:6px; }
  .live-foot { grid-template-columns:1fr; }
}
@media (max-width:420px) { .screen-tiles { grid-template-columns:1fr; } .stat .value { font-size:1.5rem; } }

.home-live { grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); }
.live-badge { display:inline-block; background:#ef4444; color:#fff; font-weight:900; font-size:.7rem; letter-spacing:.08em; padding:1px 7px; border-radius:4px; margin-right:6px; }
@media (max-width:420px) { .home-live { grid-template-columns:1fr; } }

/* ---------- admin command centre ---------- */
.cc-top { display:flex; justify-content:space-between; align-items:flex-end; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.cc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:14px; }
.cc-screen { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.cc-screen.on { border-color:var(--royal-2); box-shadow:0 0 0 2px color-mix(in srgb, var(--royal-2) 35%, transparent); }
.cc-shot { position:relative; aspect-ratio:16/9; background:#000; display:flex; align-items:center; justify-content:center; }
.cc-shot img { width:100%; height:100%; object-fit:contain; display:block; }
.cc-alert { position:absolute; top:8px; left:8px; background:var(--bad); color:#fff; font-weight:700; font-size:.75rem; padding:3px 8px; border-radius:999px; }
.cc-body { padding:12px 14px 14px; display:flex; flex-direction:column; gap:4px; }
.cc-row { display:flex; align-items:center; gap:8px; }
.cc-row input[type=checkbox] { width:18px; height:18px; accent-color:var(--royal-2); }
.cc-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.cc-selbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:16px 0; padding:10px 14px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); }
.cc-panels { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:14px; }
.cc-panels .card, #cc-emerg { margin:0 0 14px; }
.cc-panels h3, .card > h3 { margin-top:0; }
.cc-slider { display:grid; grid-template-columns:90px 1fr 48px auto; align-items:center; gap:10px; margin-bottom:12px; }
.cc-slider input[type=range] { width:100%; accent-color:var(--royal-2); }
.cc-slider output { font-variant-numeric:tabular-nums; text-align:right; }
.cc-emerg { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:20px; align-items:start; }
.cc-canvas { width:100%; height:auto; border-radius:10px; border:1px solid var(--line); background:#000; display:block; }
.cc-mini { margin-bottom:12px; }
.cc-mini button { padding:6px 12px; font-size:.9rem; }
.cc-sched { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.cc-sched input[type=time], .cc-sched select { width:auto; }
.cc-days { display:flex; flex-wrap:wrap; gap:4px; }
.cc-days label { display:inline-flex; align-items:center; gap:3px; padding:4px 8px; border:1px solid var(--line); border-radius:999px; font-size:.82rem; background:var(--surface-2); cursor:pointer; }
.cc-days input { accent-color:var(--royal-2); }
.cc-raw { word-break:break-all; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
input[type=color] { height:42px; padding:4px; }
@media (max-width: 720px) {
  .cc-emerg { grid-template-columns:1fr; }
  .cc-slider { grid-template-columns:1fr 48px; }
  .cc-slider label { grid-column:1 / -1; }
  .cc-slider .btn { grid-column:1 / -1; }
  .cc-top .btn-row { width:100%; }
}
.modal .card:has(table) { width:min(920px, 100%); }

/* ---------- customer report (printable) ---------- */
.report-head { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.report-head img { background:#000; border-radius:8px; padding:6px 10px; height:52px; width:auto; max-width:100%; }
@media print {
  .site-head, .site-foot, .side, .no-print, .page-title .btn-row { display:none !important; }
  html { background:#fff !important; }
  .page-title p { color:#444 !important; }
  body { background:#fff !important; color:#000 !important; }
  .app { display:block !important; }
  .card, .stat { background:#fff !important; color:#000 !important; border-color:#ccc !important; box-shadow:none !important; }
  .muted, .hint, .label { color:#444 !important; }
  th, td { color:#000 !important; border-color:#ccc !important; }
  [data-page]:not([data-page="report"]) { display:none !important; }
}

/* ---------- homepage: calculator, gallery, enquiry, availability ---------- */
.calc-grid { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); gap:24px; align-items:start; }
.calc-out { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:18px; }
.calc-big { font-size:2rem; font-weight:900; margin:6px 0 2px; }
.calc-big small { font-size:.9rem; font-weight:600; color:var(--muted); }
.calc-dl { display:grid; grid-template-columns:1fr auto; gap:6px 14px; margin:14px 0 16px; }
.calc-dl dt { color:var(--muted); } .calc-dl dd { margin:0; text-align:right; }
.label-like { display:block; font-weight:600; margin-bottom:6px; }
.check.chip { border:1px solid var(--line); border-radius:999px; padding:6px 12px; background:var(--surface-2); }
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.gallery figure { margin:0; background:#0b0a09; border:1px solid var(--line); border-radius:var(--radius); padding:10px; }
.enquiry { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr); gap:28px; align-items:start; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.avail { font-weight:700; } .avail.ok { color:var(--live); } .avail.full { color:var(--warn); }
.photo-link { display:inline-flex; align-items:center; gap:8px; }
.photo-link img { width:56px; height:36px; object-fit:cover; border-radius:6px; border:1px solid var(--line); }
@media (max-width: 760px) { .calc-grid, .enquiry { grid-template-columns:1fr; } }

/* ---------- admin: enquiries, switches ---------- */
.enq-row { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--line); }
.enq-row:first-of-type { border-top:0; }
.enq-row.done { opacity:.55; }
.switch { position:relative; display:inline-block; width:46px; height:26px; cursor:pointer; }
.switch input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.switch span { position:absolute; inset:0; background:var(--surface-3); border:1px solid var(--line); border-radius:999px; transition:background .15s; }
.switch span::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:var(--muted); transition:transform .15s, background .15s; }
.switch input:checked + span { background:var(--royal-2); border-color:var(--royal-2); }
.switch input:checked + span::after { transform:translateX(20px); background:#fff; }
.switch input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.progress > span { display:block; height:100%; width:0; background:linear-gradient(90deg, var(--royal-2), var(--accent)); transition:width .2s linear; }
[id^="prog-"].progress { margin:12px 0 0; max-width:420px; }
.pay-list { display:flex; flex-wrap:wrap; gap:6px 16px; padding:0 0 12px; border-bottom:1px solid var(--line); margin-bottom:4px; }
.art-video { width:100%; max-width:360px; border-radius:10px; background:#000; display:block; margin:8px 0; }

/* ---------- homepage live feeds ---------- */
.feed-tabs { display:flex; gap:4px; padding:8px 8px 0; background:var(--surface); }
.feed-tabs button { flex:1; border:1px solid var(--line); background:var(--surface-2); color:var(--muted); border-radius:8px; padding:7px 10px; font:inherit; font-size:.85rem; font-weight:700; cursor:pointer; }
.feed-tabs button[aria-selected="true"] { background:var(--royal); border-color:var(--royal); color:#fff; }
.tile .cap-stage { padding:0; position:relative; background:#000; display:flex; align-items:center; justify-content:center; aspect-ratio:16/10; }
.cap-stage a { display:block; width:100%; height:100%; }
.cap-stage img { width:100%; height:100%; object-fit:contain; display:block; }
.cap-tag { position:absolute; left:10px; bottom:10px; background:rgba(0,0,0,.72); color:#fff; font-size:.78rem; font-weight:700; padding:4px 9px; border-radius:999px; display:inline-flex; align-items:center; gap:6px; }
.hero .btn .dot { margin-right:6px; }

/* light / auto / dark switch */
.theme-switch { display:inline-flex; align-items:center; gap:2px; padding:3px; border-radius:999px; border:1px solid var(--line); background:var(--surface-2); }
.theme-switch button { display:grid; place-items:center; width:30px; height:28px; border:0; border-radius:999px; background:transparent; color:var(--muted); cursor:pointer; padding:0; }
.theme-switch button:hover { color:var(--ink); }
.theme-switch button[aria-pressed="true"] { background:var(--royal); color:#fff; }
.theme-switch button:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.site-head .theme-switch { border-color:#ffffff33; background:#ffffff12; }
.site-head .theme-switch button { color:#c9d2e6; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.site-head .brand img { height:30px; }
@media (max-width: 640px) { .site-head .brand img { height:22px; } }
.report-head img { height:40px; padding:10px 14px; }
.site-head .brand img { height:32px; } @media (max-width: 640px) { .site-head .brand img { height:22px; } }

/* theme switch: light, dark and a colour button that opens the colour picker */
.theme-wrap { position:relative; display:inline-flex; }
.theme-switch .colour-btn { color:#ef4444; }
.theme-switch { --sw-bg:var(--surface-2); }
.site-head .theme-switch { --sw-bg:#1a1a1a; }
.accent-picker { position:absolute; right:0; top:calc(100% + 8px); z-index:70; display:flex; align-items:center; gap:8px; background:#121212; color:#fff;
  border-radius:999px; padding:6px 8px 6px 14px; box-shadow:0 8px 24px #0006; font-family:"Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight:800; text-transform:uppercase; font-size:.95rem; white-space:nowrap; }
.accent-picker[hidden] { display:none; }
.accent-picker .sw { width:26px; height:26px; border-radius:50%; border:2px solid #ffffff55; cursor:pointer; padding:0; flex:none; }
.accent-picker .sw[aria-pressed="true"] { border-color:#fff; box-shadow:0 0 0 2px #121212, 0 0 0 4px #fff; }
.accent-picker .sw:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.accent-picker .x { background:none; border:0; color:#ccc; font-size:1.35rem; line-height:1; cursor:pointer; padding:0 6px; }
.accent-picker .x:hover { color:#fff; }
@media (max-width: 640px) {
  .accent-picker { gap:6px; padding:5px 6px 5px 10px; }
  .accent-picker .sw { width:24px; height:24px; }
  .site-head .wrap { justify-content:center; }
  .site-head .brand { flex:1 0 100%; justify-content:center; }
}
.site-head .theme-switch .colour-btn { color:#ef4444; }
.theme-switch .colour-btn[aria-pressed="true"] { background:var(--royal); color:#fff; }
@media (max-width: 640px) { .site-head .theme-wrap { margin-left:0 !important; } }

/* header on paper like the homepage, in both modes */
.site-head .theme-switch { border-color:#12121233; background:transparent; --sw-bg:var(--head-bg); }
.site-head .theme-switch button { color:#3d3a36; }
.site-head .theme-switch button:hover { color:#121212; }
.site-head .theme-switch button[aria-pressed="true"] { background:#121212; color:#f8eee2; }
.site-head .theme-switch .colour-btn { color:var(--royal-2); }
.site-head .theme-switch .colour-btn[aria-pressed="true"] { background:#121212; color:var(--royal-2); }
.nav a.btn-primary, .nav a.btn-primary:hover { background:#121212; color:#f8eee2; }
/* phones: logo across the full width, keeping its shape */
@media (max-width: 640px) {
  .site-head .brand { flex:1 0 100%; }
  .site-head .brand img { width:100%; height:auto !important; max-width:none; }
  .site-head .brand { display:flex; flex-wrap:wrap; align-items:center; row-gap:2px; }
  .site-head .brand .admin-tag { flex:0 0 100%; margin:0; font-size:.72rem; }
}

/* Corey's horizontal logo in the header */
.site-head .brand img.logo-h { height:50px; }
@media (max-width: 640px) { .site-head .brand img.logo-h { width:100%; height:auto !important; } }

/* ---------- black header band with Corey's stacked logo ---------- */
:root, html[data-theme="dark"], html[data-theme="light"] { --head-bg:#0b0b0b; --head-ink:#f4efe6; --head-muted:#cfc8bd; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --head-bg:#0b0b0b; --head-ink:#f4efe6; --head-muted:#cfc8bd; } }
.site-head { background:#0b0b0b; color:#f4efe6; border-bottom-color:#ffffff1a; }
.site-head .brand img.logo-s { height:62px; width:auto; }
.site-head .nav a { color:#cfc8bd; }
.site-head .nav a:hover { color:#fff; background:#ffffff14; }
.site-head .nav a.btn-primary, .site-head .nav a.btn-primary:hover { background:var(--royal); color:#fff; }
.site-head .theme-switch { border-color:#ffffff40; --sw-bg:#0b0b0b; }
.site-head .theme-switch button { color:#d8d2c8; }
.site-head .theme-switch button:hover { color:#fff; }
.site-head .theme-switch button[aria-pressed="true"] { background:#f4efe6; color:#0b0b0b; }
.site-head .theme-switch .colour-btn { color:var(--royal-2); }
.site-head .theme-switch .colour-btn[aria-pressed="true"] { background:#f4efe6; color:var(--royal); }
.site-head .admin-tag { color:var(--royal-2); }
@media (max-width: 640px) {
  .site-head .brand { justify-content:center; }
  .site-head .brand img.logo-s { width:auto; height:84px !important; }
  .site-head .brand .admin-tag { text-align:center; }
}
/* phones in landscape: backgrounds run to both edges, content stays clear of the notch */
html body .wrap { padding-left:calc(20px + env(safe-area-inset-left, 0px)); padding-right:calc(20px + env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { html body .wrap { padding-left:calc(16px + env(safe-area-inset-left, 0px)); padding-right:calc(16px + env(safe-area-inset-right, 0px)); } }
/* edited or new colour profiles (Admin → Settings → Colours): the values are set on <html> by app.js */
:root[data-pc][data-pc] { --royal:var(--p-royal); --royal-2:var(--p-royal2); --accent:var(--p-acc-l); --info:var(--p-acc-l); }
:root[data-pc][data-pc][data-theme="dark"] { --accent:var(--p-acc-d); --info:var(--p-acc-d); }
@media (prefers-color-scheme: dark) { :root[data-pc][data-pc]:not([data-theme="light"]) { --accent:var(--p-acc-d); --info:var(--p-acc-d); } }
.accent-picker .sws { display:contents; }
/* many colours: the picker wraps instead of running off the screen */
.accent-picker { flex-wrap:wrap; max-width:min(420px, calc(100vw - 24px)); white-space:normal; row-gap:6px; }

/* ---------- Admin → Settings → Colours ---------- */
.col-list { display:grid; gap:8px; }
.col-row { border:1px solid var(--line); border-radius:12px; background:var(--surface); overflow:hidden; }
.col-head { width:100%; display:flex; align-items:center; gap:12px; padding:10px 12px; background:none; border:0; color:inherit; font:inherit; cursor:pointer; text-align:left; }
.col-head:hover { background:color-mix(in srgb, var(--ink, #888) 6%, transparent); }
.col-strip { width:132px; height:26px; border-radius:6px; flex:none; box-shadow:inset 0 0 0 1px #0000001f; }
.col-name { font-weight:700; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.col-chev { opacity:.6; font-size:.8rem; }
.col-body { padding:6px 14px 14px; border-top:1px solid var(--line); }
.col-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:4px 16px; }
.col-pick, .col-shade { display:flex; align-items:center; gap:8px; }
.col-pick input[type="color"], .col-shade input[type="color"] { width:44px; height:38px; padding:2px; border-radius:8px; border:1px solid var(--line); background:var(--surface); cursor:pointer; flex:none; }
.col-hex { width:96px !important; font-family:ui-monospace, Menlo, monospace; text-transform:lowercase; }
.col-shades { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.col-shade { border:1px solid var(--line); border-radius:10px; padding:6px; flex-wrap:wrap; }
.col-shade-btns { display:flex; gap:4px; }
.col-shade-btns .btn { padding:4px 9px; min-width:0; }
.col-preview { position:relative; height:150px; border-radius:12px; overflow:hidden; background:#1b1b1b; margin-top:6px; }
.col-preview > canvas.led-wall { position:absolute; left:0; top:0; width:100%; height:100%; display:block; z-index:1; }
.col-preview-in { position:relative; z-index:3; height:100%; display:flex; align-items:flex-end; justify-content:space-between; gap:10px; padding:12px 14px; color:#fff; text-shadow:0 1px 3px #000a; }
.col-btn-demo { color:#fff; padding:8px 14px; border-radius:4px; font-weight:800; text-transform:uppercase; font-size:.85rem; text-shadow:none; }
@media (max-width: 640px) {
  .col-strip { width:84px; }
  .col-shade { width:100%; }
}
.btn-row > .badge { align-self:center; }
.accent-picker { width:max-content; }
.col-default { max-width:520px; margin-bottom:14px; }
