/* Copyright (c) 2026 Novus Technology LLC. All rights reserved. */
:root {
  --bg: #0a1018; --panel: #111b26; --panel-2: #172433; --line: #233344;
  --fg: #e8edf2; --muted: #95a3b2; --silver: #c6cdd5;
  --blue: #1479d4; --blue-hi: #4aa3ff;
  --ok: #3ccf8e; --warn: #f2b84b; --bad: #ff6b6b;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--body); }
a { color: var(--blue-hi); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: 1.9rem; text-transform: uppercase; }
h2 { font-size: 1.35rem; text-transform: uppercase; margin-top: 1.4em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.main { padding-top: 28px; padding-bottom: 60px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.bar { background: rgba(10, 16, 24, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 1.05rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; }
.brand-mark { background: var(--blue); color: #fff; border-radius: 7px; padding: 6px 7px; font-size: .85rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }
.bar-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { color: var(--silver); font-weight: 600; }
.lang { color: var(--silver); font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
button.link { background: none; border: 0; color: var(--blue-hi); font: inherit; cursor: pointer; padding: 0; }

.head { margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; min-width: 0; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 1px; }
input.code { font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 9px; padding: 11px 18px; background: var(--blue); color: #fff; font: 700 .95rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: var(--blue-hi); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.note { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.note p:last-child { margin: 0; }
.note.ok { background: rgba(60, 207, 142, .12); border: 1px solid rgba(60, 207, 142, .35); }
.note.bad { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .35); }
.qr-box { background: var(--panel-2); border-radius: 12px; padding: 16px; }
.qr { background: #fff; border-radius: 10px; padding: 8px; width: max-content; max-width: 100%; margin: 6px 0 10px; }
.qr svg { display: block; max-width: 100%; height: auto; }
code.secret { word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: .85rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--fg); }
.stat:hover { border-color: var(--blue); }
.stat-v { font: 800 2rem/1 var(--head); }
.stat-l { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pk-price { font: 800 1.7rem/1 var(--head); }
.pk-price .muted { font: 600 .95rem var(--body); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.ticks { margin: 0; padding-left: 18px; color: var(--silver); font-size: .9rem; display: grid; gap: 3px; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--silver); white-space: nowrap; }
.chip.ok { background: rgba(60, 207, 142, .14); color: var(--ok); }
.chip.warn { background: rgba(242, 184, 75, .14); color: var(--warn); }
.chip.bad { background: rgba(255, 107, 107, .14); color: var(--bad); }

.row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row-form label { min-width: 140px; }
.row-form .grow { flex: 1 1 220px; }
.row-form .check { display: flex; align-items: center; gap: 8px; min-width: auto; padding-bottom: 10px; }
.row-form .check input { width: 18px; height: 18px; }
#invite-result { margin-top: 14px; }
.stack .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.stack .check input { width: 18px; height: 18px; }
.resend { margin-top: 14px; text-align: center; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.btn.sm { padding: 8px 12px; font-size: .85rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: end; }
textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; resize: vertical; }
textarea:focus { outline: 2px solid var(--blue-hi); outline-offset: 1px; }
.checks { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks legend { padding: 0 6px; font-weight: 600; font-size: .9rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: 18px; height: 18px; }
.is-hidden { opacity: .55; }
.edit-link { margin: 12px 0 0; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-r { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* Public booking --------------------------------------------------------------------------- */
.lead { font-size: 1.05rem; max-width: 62ch; }
.crumb { margin: 0 0 6px; font-size: .9rem; }
.crumb a { text-decoration: none; }
.steps { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li[aria-current] { color: var(--fg); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
.type-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--fg); text-decoration: none; font: 700 1.05rem/1.25 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.type-card:hover { border-color: var(--blue); }
.type-card span { color: var(--blue-hi); }
.foot-links a { color: var(--muted); }
.errs { margin: 0; padding-left: 18px; }

.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 0 20px; align-items: start; }
.book-grid > section, .book-grid .addons { grid-column: 1; }
.extras { display: contents; }
.book-grid .quote { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 76px; }
@media (max-width: 860px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-grid .quote { grid-column: 1; grid-row: auto; position: static; }
}
.pk-pick { display: grid; gap: 10px; }
.pk-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 400; }
.pk-opt:has(input:checked) { border-color: var(--blue-hi); background: var(--panel-2); }
.pk-opt input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.pk-opt.is-off { opacity: .55; cursor: not-allowed; }
.pk-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pk-name { font: 700 1.05rem/1.2 var(--head); text-transform: uppercase; }
.pk-opt .pk-price { font-size: 1.25rem; }
.pk-body .ticks { display: grid; gap: 2px; padding-left: 0; }
.pk-body .ticks span::before { content: "✓ "; color: var(--ok); }
fieldset.addons { margin: 0 0 16px; }
fieldset.addons legend { padding: 0; float: left; width: 100%; }
fieldset.addons legend h2 { margin-top: 0; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); clear: both; }
.addon-txt { min-width: 0; }
.addon-pick { flex: none; }
.addon-pick select { width: 76px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quote h2 { margin-top: 0; }
.q-date { font-weight: 700; margin-bottom: 4px; }
.note-inline { font-size: .9rem; margin-bottom: 12px; }
.note-inline.ok { color: var(--ok); }
.note-inline.warn { color: var(--warn); }
.note-inline.bad { color: var(--bad); }
.q-lines { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.q-lines td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.q-lines td.num { text-align: right; padding-left: 12px; }
.q-lines tfoot td { border-bottom: 0; font-size: .9rem; }
.q-lines .q-total td { font: 800 1.3rem/1.2 var(--head); padding-top: 12px; }
.note.warn-note, .warn-note { background: rgba(242, 184, 75, .12); border: 1px solid rgba(242, 184, 75, .35); border-radius: 10px; padding: 10px 14px; }
.warn-text { color: var(--warn); }
.mt { margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 10px; }
.card.narrow.wide { max-width: 640px; }
.next { padding-left: 20px; display: grid; gap: 6px; }

/* Bookings inbox ----------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filters a { color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; }
.filters a[aria-current="page"] { color: #fff; background: var(--panel-2); border-color: var(--blue); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.pre { white-space: pre-wrap; }

/* Agreements ----------------------------------------------------------------------------------- */
.contract .terms h3 { color: var(--blue-hi); font-size: 1rem; margin: 18px 0 6px; }
.contract .terms p { color: var(--silver); max-width: 75ch; }
.initial-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; margin: 8px 0 0; }
.initial-row.optout { justify-content: flex-start; font-weight: 500; }
input.ini { width: 88px; text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.sig-label { margin: 16px 0 10px; }
input.sig-input { font: 1.6rem/1.2 "Segoe Script", "Brush Script MT", cursive; padding: 12px 14px; }
.contract .check { margin: 8px 0; align-items: flex-start; }
.contract .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.actions form { display: inline; }

/* Payments ------------------------------------------------------------------------------------- */
.pay-due { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; background: var(--panel-2); }
.pay-due p { margin: 0; }
.table-wrap.flat { background: transparent; border: 0; margin-bottom: 8px; }
.pay-list { padding-left: 18px; display: grid; gap: 4px; }
details.manual summary { cursor: pointer; font-weight: 700; color: var(--blue-hi); margin: 10px 0; }

/* Client portal -------------------------------------------------------------------------------- */
a.ev-card { display: grid; gap: 6px; color: var(--fg); text-decoration: none; }
a.ev-card:hover { border-color: var(--blue); }
.ev-date { font-weight: 700; }
.countdown { color: var(--blue-hi); font-weight: 700; }
progress.progress { width: 100%; height: 8px; accent-color: var(--ok); }
.new { color: var(--ok); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li.is-done > span:last-child { color: var(--muted); text-decoration: line-through; }
.checklist form { display: contents; }
.tick { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 2px solid var(--line); background: var(--bg); color: var(--ok); font-weight: 800; line-height: 18px; text-align: center; padding: 0; cursor: pointer; }
.tick.auto { cursor: default; }
li.is-done .tick { border-color: var(--ok); }
.thread { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 80%; border-radius: 12px; padding: 10px 14px; background: var(--panel-2); }
.msg.mine { justify-self: end; background: rgba(20, 121, 212, .22); }
.msg p { margin: 0; }
.msg-meta { margin-bottom: 4px !important; }
form.inline { display: inline; margin-left: 6px; }

/* Planning ------------------------------------------------------------------------------------- */
table.moments td, table.pairs td { vertical-align: middle; }
table.moments input[type=time] { width: 120px; }
table.moments tr.is-skipped td { opacity: .5; }
.ro { display: block; font-weight: 500; color: var(--silver); padding: 6px 0; min-height: 1.2em; }
.sticky-actions { position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; z-index: 5; border-color: var(--blue); }
.music-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .music-cols { grid-template-columns: minmax(0, 1fr); } }
ol.songs { padding-left: 20px; display: grid; gap: 6px; margin: 0; }
ol.songs li > span { margin-right: 8px; }
ol.songs form { display: inline; }

/* Availability calendar ------------------------------------------------------------------------ */
.cal-card { max-width: 560px; }
.cal-wrap { margin-top: 14px; }
.cal-wrap summary { cursor: pointer; font-weight: 700; color: var(--blue-hi); margin-bottom: 10px; }
.cal { max-width: 460px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cal-title { font: 700 1.1rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 1.4rem; }
.cal-nav:hover { border-color: var(--blue); }
.cal-nav.off { opacity: .3; }
table.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.cal-grid th { padding: 2px 0; border: 0; text-align: center; font-size: .72rem; }
table.cal-grid td { padding: 0; border: 0; text-align: center; }
.cal-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 100%; border-radius: 9px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.cal-day.open { background: rgba(60, 207, 142, .16); color: var(--ok); }
.cal-day.last { background: rgba(242, 184, 75, .18); color: var(--warn); }
.cal-day.full { background: rgba(255, 107, 107, .14); color: var(--bad); text-decoration: line-through; }
.cal-day.off { color: var(--muted); opacity: .45; }
.cal-day.today { outline: 1px dashed var(--muted); }
a.cal-day:hover { outline: 2px solid var(--blue-hi); }
.cal-day.sel { background: var(--blue); color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.cal-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cal-key.open { background: var(--ok); } .cal-key.last { background: var(--warn); } .cal-key.full { background: var(--bad); }
#availability { scroll-margin-top: 76px; }

/* Event type intro (e.g. DJ lessons) */
.card.intro { max-width: 760px; }
.card.intro p { margin: 0 0 10px; }
.card.intro p:last-child { margin-bottom: 0; color: var(--silver); }
.intro-lead { font-weight: 700; font-size: 1.05rem; }
.card.intro .ticks { margin: 0 0 12px; }
.card.intro .ticks li::before { content: "✓ "; color: var(--ok); }
.card.intro .ticks { list-style: none; padding-left: 0; }

/* Calendar sync */
input.feed { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.ical-steps { padding-left: 18px; display: grid; gap: 6px; color: var(--silver); }
/* Jumps to the calendar box (after "Reset link") clear the sticky staff header, which wraps on phones. */
#calendar { scroll-margin-top: 100px; }
@media (max-width: 760px) { #calendar { scroll-margin-top: 180px; } }
