/* Gig Desk — hand-written stylesheet (no build step). */
:root {
  --ink: #0e1220;
  --ink-2: #1b2238;
  --ink-3: #2a3350;
  --paper: #f1f3f8;
  --panel: #ffffff;
  --line: #dfe3ec;
  --line-2: #eceff5;
  --text: #161b2e;
  --muted: #5b6680;
  --accent: #c81d6b;
  --accent-strong: #a8145a;
  --accent-soft: #fbe7f0;
  --ok: #13845b;
  --ok-soft: #dff4ea;
  --warn: #8a5600;
  --warn-soft: #fdf0d3;
  --info: #2457c5;
  --info-soft: #e3ecfd;
  --bad: #b3261e;
  --bad-soft: #fbe4e2;
  --radius: 6px;
  --radius-lg: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --sidebar: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--paper);
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; font-weight: 650; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #f4a7c9; outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #c7cde0; padding: 18px 12px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; gap: 2px; align-items: flex-end; height: 22px; }
.brand-mark i { display: block; width: 4px; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 9px; } .brand-mark i:nth-child(2) { height: 20px; background: #fff; }
.brand-mark i:nth-child(3) { height: 14px; } .brand-mark i:nth-child(4) { height: 22px; background: #fff; } .brand-mark i:nth-child(5) { height: 11px; }
.nav-group { margin-top: 10px; }
.nav-title { padding: 6px 10px 4px; font-size: .78rem; color: #8a93ad; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius); color: #c7cde0; font-size: .94rem;
}
.nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--accent); color: #fff; font-weight: 600; }
.nav .count { background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 7px; min-width: 20px; text-align: center; }
.nav a.active .count { background: #fff; color: var(--accent-strong); }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; font-size: .82rem; color: #8a93ad; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--panel);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar .grow { flex: 1; }
.menu-btn { display: none; }
.content { padding: 24px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.userbox { position: relative; }
.userbox summary, .bell { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: .9rem; }
.userbox summary::-webkit-details-marker { display: none; }
.userbox .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px; z-index: 30; box-shadow: 0 8px 24px rgba(14, 18, 32, .12);
}
.userbox .menu a, .userbox .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius); color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.userbox .menu a:hover, .userbox .menu button:hover { background: var(--paper); text-decoration: none; }
.userbox .menu .menu-label { padding: 6px 10px 2px; font-size: .78rem; color: var(--muted); }
.bell { position: relative; }
.bell .dot { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 18px; padding: 0 5px; text-align: center; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 550;
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--paper); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.danger { color: var(--bad); border-color: #e7b7b3; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 5px 10px; font-size: .86rem; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-strong); cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ---------- forms ---------- */
label { display: block; font-weight: 550; font-size: .9rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; min-width: 0; }
.field .hint { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.field .err, .err { color: var(--bad); font-size: .86rem; margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=url], input[type=tel], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #c9cfdd; border-radius: var(--radius); font: inherit; background: #fff; color: var(--text);
}
input[type=file] { padding: 6px; }
textarea { min-height: 90px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: #f3f4f8; color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); vertical-align: -3px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin-bottom: 8px; }
.check input { margin-top: 3px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .full { grid-column: 1 / -1; }
.input-prefix { display: flex; }
.input-prefix span { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #c9cfdd; border-right: 0; background: var(--paper); border-radius: var(--radius) 0 0 var(--radius); color: var(--muted); }
.input-prefix input { border-radius: 0 var(--radius) var(--radius) 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px 6px; margin: 0 0 16px; }
legend { padding: 0 6px; font-weight: 650; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 150px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; font-size: .84rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable:hover td { background: #f8f9fc; }
.table .num, .table th.num { text-align: right; }
.table tfoot td { font-weight: 650; border-top: 1px solid var(--line); border-bottom: 0; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.inquiry { background: var(--info-soft); color: var(--info); }
.badge.option { background: var(--warn-soft); color: var(--warn); }
.badge.confirmed, .badge.signed, .badge.paid, .badge.approved, .badge.done, .badge.received, .badge.ok, .badge.available { background: var(--ok-soft); color: var(--ok); }
.badge.completed, .badge.issued, .badge.sent { background: #e6e9f2; color: #3a4565; }
.badge.cancelled, .badge.declined, .badge.void, .badge.credited, .badge.unavailable, .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.partial, .badge.requested, .badge.unsure, .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.draft, .badge.open, .badge.new { background: var(--line-2); color: var(--muted); }
.badge.plain::before { display: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c8cddb; }
.dot.green { background: #22a06b; } .dot.amber { background: #e6a117; } .dot.red { background: #d9453b; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; margin-right: 6px; }
.chip { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .78rem; color: #fff; font-weight: 600; margin: 0 4px 2px 0; }

/* ---------- notices ---------- */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: var(--ok-soft); border-color: #a9dcc5; color: #0b5a3e; }
.flash.error { background: var(--bad-soft); border-color: #eeb4af; color: #7b1913; }
.flash.warn { background: var(--warn-soft); border-color: #f0d28a; color: #6b4300; }
.flash.info { background: var(--info-soft); border-color: #b4c9f5; color: #1a428f; }
.flash ul { margin: 4px 0 0 18px; padding: 0; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty h3 { color: var(--text); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 550; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.pager a, .pager span { padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; min-width: 190px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.cal-legend i { display: inline-block; width: 4px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.cal { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.cal-dow, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow div { padding: 8px 10px; font-size: .82rem; color: var(--muted); font-weight: 600; background: #f7f8fb; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); position: relative; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #fafbfd; }
.cal-day.out .cal-num { color: #b2b9cb; }
.cal-day.weekend { background: #fbfbfe; }
.cal-day.drop { background: var(--accent-soft); }
.cal-num { font-size: .85rem; font-weight: 650; color: var(--muted); display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cal-day.today .cal-num span:first-child { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-add { opacity: 0; font-size: .8rem; color: var(--muted); }
.cal-day:hover .cal-add { opacity: 1; }
.cal-chip {
  display: block; padding: 3px 6px 3px 8px; margin-bottom: 3px; border-radius: 4px; background: #f3f5fa; color: var(--text);
  border-left: 4px solid var(--c, #64708a); font-size: .8rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-chip:hover { background: #e8ebf4; text-decoration: none; }
.cal-chip .t { font-weight: 650; }
.cal-chip.block { background: repeating-linear-gradient(135deg, #f0f1f6, #f0f1f6 6px, #e7e9f1 6px, #e7e9f1 12px); color: var(--muted); }
.cal-chip.travel { background: #fff; border: 1px dashed #b9c0d3; border-left: 4px solid #8d97b3; color: var(--muted); }
.cal-chip.dim { opacity: .55; }
.cal-chip[draggable=true] { cursor: grab; }
.cal-more { font-size: .78rem; color: var(--muted); }

/* ---------- misc blocks ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat .label { color: var(--muted); font-size: .86rem; }
.stat .value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.stat .note { font-size: .82rem; color: var(--muted); }
.next-up { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.next-up:last-child { border-bottom: 0; }
.dateblock { flex: none; width: 54px; text-align: center; border-radius: var(--radius); background: var(--ink); color: #fff; padding: 5px 0 6px; border-bottom: 4px solid var(--c, var(--accent)); }
.dateblock .d { font-size: 1.45rem; font-weight: 750; line-height: 1; letter-spacing: -.03em; }
.dateblock .m { font-size: .75rem; color: #c7cde0; margin-top: 2px; }
.bar { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.barlist .item { display: grid; grid-template-columns: 160px 1fr 120px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.callout { border-left: 4px solid var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 14px; }
.callout.bad { border-color: var(--bad); background: var(--bad-soft); }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }
.callout ul { margin: 4px 0 0 18px; padding: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rte-toolbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.rte-toolbar button { padding: 4px 9px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; font: inherit; }
.rte { min-height: 280px; max-height: 600px; overflow: auto; border: 1px solid #c9cfdd; border-radius: var(--radius); padding: 12px 14px; background: #fff; line-height: 1.6; }
.rte:focus { outline: 3px solid #f4a7c9; }
.doc-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 34px; line-height: 1.6; }
.doc-preview table { border-collapse: collapse; }
.doc-preview td, .doc-preview th { border: 1px solid #ccd; padding: 4px 8px; }
.copybox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; white-space: pre-wrap; font-size: .92rem; }
.inline-form { display: inline; }
.repeater-row { display: grid; gap: 10px; grid-template-columns: 3fr 1fr 1.4fr 1fr auto; align-items: end; margin-bottom: 8px; }
.repeater-row .field { margin: 0; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { font-size: 2.2rem; line-height: 1.1; letter-spacing: -.03em; max-width: 14ch; }
.auth-side p { color: #aab2cb; max-width: 40ch; }
.eq { display: flex; gap: 5px; align-items: flex-end; height: 70px; }
.eq i { display: block; width: 8px; border-radius: 3px; background: #3a4468; }
.eq i:nth-child(3n) { background: var(--accent); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 1.5rem; }

/* ---------- print / pdf-ish ---------- */
@media print {
  .sidebar, .topbar, .actions, .no-print { display: none !important; }
  .shell { display: block; } .content { padding: 0; } body { background: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-102%); transition: transform .18s ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(14, 18, 32, .45); z-index: 40; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 8px 14px; }
  .content { padding: 16px 14px; }
  .grid.two, .grid.three, .grid.side { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .form-grid .span2 { grid-column: auto; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; }
  .repeater-row { grid-template-columns: 1fr 1fr; }
  .barlist .item { grid-template-columns: 1fr; gap: 4px; }
  .cal-day { min-height: 74px; padding: 3px; }
  .cal-chip { font-size: .7rem; padding: 2px 4px 2px 5px; }
  .cal-chip .full-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- mobile app (/m) ---------- */
.m-body { background: var(--paper); }
.m-top { background: var(--ink); color: #fff; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.m-top a, .m-top button { color: #fff; }
.m-wrap { padding: 14px 14px 92px; max-width: 640px; margin: 0 auto; }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; color: var(--text); }
.m-card:hover { text-decoration: none; background: #fcfcfe; }
.m-tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.m-tabbar a { color: #aab2cb; text-align: center; padding: 12px 4px; font-size: .82rem; }
.m-tabbar a.active { color: #fff; font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); }
.m-tabbar a:hover { text-decoration: none; }
.offline-banner { background: var(--warn-soft); color: var(--warn); padding: 6px 14px; text-align: center; font-size: .85rem; display: none; }
body.is-offline .offline-banner { display: block; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { padding: 12px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.seg button.on-available { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.seg button.on-unavailable { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.seg button.on-unsure { background: var(--warn-soft); border-color: #d9a73b; color: var(--warn); }

/* ---------- wizard ---------- */
.steps-nav { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 600; }
.steps-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.steps-nav a:hover { text-decoration: none; }
.step-actions { display: flex; gap: 8px; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.radio-row label { display: flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }
.clash { margin-bottom: 14px; }
.preview-box { position: sticky; top: 76px; }
.money-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.money-line:last-child { border-bottom: 0; }
.money-line.total { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; margin-top: 4px; padding-top: 8px; }
.money-line .sub { color: var(--muted); font-size: .86rem; }
.missing { background: #fff1c2; color: #7a4b00; border-radius: 3px; padding: 0 3px; }

/* public pages (promoter forms, event page) */
.public-body { background: var(--paper); }
.public-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.public-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.05rem; }
.public-head .brand-mark { width: 26px; height: 26px; }
.public-foot { margin-top: 32px; text-align: center; }
.public-head .brand-mark i { background: var(--ink); }
.public-head .brand-mark i:nth-child(odd) { background: var(--accent); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.green { background: var(--ok); } .dot.amber { background: #e0a21a; } .dot.red { background: var(--bad); }
.adv-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.adv-row:first-of-type { border-top: 0; }
.adv-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adv-actions select { width: auto; }

/* inline edit disclosure (files list) */
.inline-edit { display: inline-block; vertical-align: top; text-align: left; }
.inline-edit > summary { list-style: none; cursor: pointer; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit[open] { display: block; }

/* public events list (page + embed) */
.shows-title { margin: 22px 0 10px; }
.show { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.shows .show:first-of-type, .embed-wrap .show:first-child { border-top: 0; }
.show-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 4px; background: var(--panel); line-height: 1.1; }
.show-date .wd, .show-date .m { font-size: .78rem; color: var(--muted); }
.show-date .d { font-size: 1.6rem; font-weight: 700; color: var(--accent-strong); }
.show-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.show-where { font-weight: 600; }
.show-meta { color: var(--muted); font-size: .92rem; }
.show-text { margin: 6px 0 0; white-space: pre-line; }
.show-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.show-actions:empty { display: none; }
.show-empty { padding: 14px 0; }
.embed-wrap { padding: 8px 4px 12px; max-width: 760px; margin: 0 auto; }
.embed-foot { margin: 8px 0 0; text-align: right; }

/* phone view (/m) additions */
.m-top a:hover { text-decoration: none; }
.m-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.m-back { font-weight: 600; padding: 4px 0; }
.m-alerts { font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.m-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78rem; font-weight: 700; min-width: 20px; text-align: center; }
.m-dateline { margin: 2px 0 14px; color: var(--muted); }
.m-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.m-pagehead h1 { margin: 0; font-size: 1.4rem; }
.m-sec { margin-bottom: 18px; }
.m-sec > h2 { font-size: 1rem; margin: 0 0 8px; color: var(--ink-3); }
.m-card-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.m-card-title { display: block; font-size: 1.02rem; }
.m-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px; }
.m-date { flex: 0 0 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 2px; line-height: 1.1; background: var(--paper); }
.m-date .wd, .m-date .mo { font-size: .74rem; color: var(--muted); }
.m-date .d { font-size: 1.5rem; font-weight: 700; color: var(--accent-strong); }
.m-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 16px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.m-more { margin: 6px 0 0; text-align: center; }
.m-late { color: var(--bad); font-weight: 600; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.m-actions form { margin: 0; }
section.m-actions { margin-top: 0; }
.m-hero { margin-bottom: 18px; }
.m-hero h1 { margin: 8px 0 2px; font-size: 1.6rem; }
.m-hero-date { margin: 0; color: var(--muted); }
.m-times { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.m-times li { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.m-times li:first-child { border-top: 0; }
.m-times strong { font-size: 1.25rem; }
.m-pre { white-space: pre-wrap; }
.m-go { align-self: center; color: var(--accent-strong); font-weight: 600; }
.m-filter { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.m-filter input[type=search] { grid-column: 1 / -1; }
.m-switch { margin-top: 8px; }
.m-account .m-actions { margin-top: 12px; }
@media (display-mode: standalone) { .m-install-tip { display: none; } }
