:root {
  --navy: #0f1b3d;
  --navy-2: #1b2a55;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #7a7974;
  --google: #2a78d6;
  --meta: #eb6834;
  --good: #0f7a3f;
  --bad: #c0362c;
  --info-bg: #eef4fd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 1px 3px rgba(15, 27, 61, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, -apple-system, sans-serif; }
a { color: var(--navy-2); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 15px; margin: 0 0 14px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; font-size: 13px; }

.topbar { background: var(--navy); color: var(--brand-ink, #fff); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--brand-ink, #fff); display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.brand span { font-weight: 400; letter-spacing: .02em; opacity: .7; margin-left: 8px; }
.topnav { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.topnav a { color: var(--brand-ink, #fff); text-decoration: none; opacity: .85; }
.topnav a:hover { opacity: 1; }
.who { opacity: .6; }

.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.crumb { font-size: 12px; text-decoration: none; color: var(--muted); display: inline-block; margin-bottom: 6px; }
.crumb::before { content: "← "; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .card { margin-bottom: 20px; }
.empty { max-width: 520px; margin: 40px auto; text-align: center; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 13px; }
.flash-ok { background: #e9f6ee; color: #0b5a2f; }
.flash-error { background: #fbeceb; color: #8c241d; }
.flash-info { background: var(--info-bg); color: #184f95; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); border-radius: 8px; padding: 9px 16px; font: 500 13px Inter, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { background: #f7f7f8; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--brand-ink, #fff); }
.btn-primary:hover { background: var(--navy-2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-danger { color: var(--bad); }
.row { display: flex; gap: 8px; }

.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input, select { font: 14px Inter, sans-serif; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input[type=checkbox] { width: auto; }
input:focus, select:focus { outline: 2px solid var(--google); outline-offset: -1px; border-color: transparent; }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--text); }
.table th.sorted { color: var(--text); }
.table th.sorted::after { content: " ↓"; }
.table th.sorted.asc::after { content: " ↑"; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { margin: 0; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #f0f1f3; color: var(--text-2); font-weight: 500; }
.tag-dark { background: var(--navy); color: #fff; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-google { background: var(--google); }
.dot-meta { background: var(--meta); }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font: 500 13px Inter, sans-serif; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent, var(--navy)); color: var(--accent-ink, var(--brand-ink, #fff)); }
.seg button.on .dot { box-shadow: 0 0 0 2px #fff; }
.custom-range { display: flex; align-items: center; gap: 8px; }
.custom-range input { width: auto; padding: 6px 10px; font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi-delta.good { color: var(--good); }
.kpi-delta.bad { color: var(--bad); }
.kpi-delta span { color: var(--muted); font-weight: 400; }

.chart-box { position: relative; height: 260px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 2px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }

.plat-row { display: grid; grid-template-columns: 140px 1fr repeat(4, 110px); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.plat-row:last-child { border-bottom: 0; }
.plat-row.head { color: var(--muted); font-size: 12px; padding-top: 0; }
.plat-row .r { text-align: right; }
.share { height: 8px; background: #f0f1f3; border-radius: 4px; overflow: hidden; }
.share > div { height: 100%; border-radius: 4px; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--navy); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card .brand { color: var(--navy); display: block; margin-bottom: 28px; }
.auth-card h1 { font-size: 22px; }
.auth-card .btn { margin-top: 4px; padding: 11px; }

@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .plat-row { grid-template-columns: 110px 1fr repeat(2, 90px); }
  .plat-row .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .page { padding: 20px 16px 48px; }
  .topbar-inner { padding: 12px 16px; }
  .who { display: none; }
  h1 { font-size: 22px; }
  .kpi-value { font-size: 21px; }
  .kpi { padding: 14px; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .plat-row { grid-template-columns: 90px 1fr 80px; gap: 10px; }
  .plat-row .hide-xs { display: none; }
}
#dash.loading .kpis, #dash.loading .card { opacity: .55; transition: opacity .15s; }
[hidden] { display: none !important; }

/* Branding */
.page-head h1, .page-head h1 span { color: var(--page-text, var(--text)); }
.page-head .muted, .page-head .crumb { color: var(--page-muted, var(--muted)); }
.brand-logo { max-height: 34px; max-width: 180px; display: block; object-fit: contain; }
.powered { text-align: center; font-size: 11px; color: var(--page-muted, var(--muted)); padding: 0 0 32px; letter-spacing: .04em; }
.head-tools { display: flex; align-items: center; gap: 12px; }

/* Venue picker */
.venue-pick select { width: auto; min-width: 200px; font-weight: 500; box-shadow: var(--shadow); border-color: var(--border); border-radius: 10px; padding: 9px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Admin */
.row-group td { background: #fafbfc; }
.row-venue td:first-child { padding-left: 34px; position: relative; }
.row-venue td:first-child::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 50%; width: 9px; border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.client-cell { display: inline-flex; align-items: center; gap: 8px; }
.mini-logo { height: 20px; max-width: 60px; object-fit: contain; }
.seg-form { box-shadow: none; padding: 3px; gap: 2px; }
.seg-form label { flex-direction: row; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 500; }
.seg-form label:has(input:checked) { background: var(--navy); color: #fff; }
.seg-form input { width: auto; margin: 0; }
h3 { font-size: 13px; font-weight: 600; margin: 8px 0 0; }
h3 .hint { display: block; margin-top: 2px; }
.grid-2.tight { gap: 12px; }
.colour { display: flex; gap: 8px; }
.colour input[type=color] { width: 42px; height: 38px; padding: 3px; flex: none; cursor: pointer; }
.logo-field { display: flex; flex-direction: column; gap: 10px; }
.logo-preview { max-height: 48px; max-width: 200px; object-fit: contain; align-self: flex-start; background: repeating-conic-gradient(#f0f1f3 0 25%, #fff 0 50%) 0 0 / 12px 12px; padding: 6px; border-radius: 6px; }

/* Customise dialog */
.dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(15, 27, 61, .45); }
.dialog-inner { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dialog-head h2 { margin: 0 0 2px; font-size: 18px; }
.dialog-foot { display: flex; gap: 8px; margin-top: 8px; }
.spacer { flex: 1; }
.metric-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.metric-list li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.metric-list li:last-child { border-bottom: 0; }
.metric-list li:has(input[type=checkbox]:not(:checked)) { color: var(--muted); }
.metric-list .rename { padding: 6px 10px; font-size: 13px; }
.metric-list .move button { border: 1px solid var(--border); background: #fff; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; color: var(--text-2); }
.metric-list .move button:hover { background: #f5f6f8; }
@media (max-width: 600px) {
  .metric-list li { grid-template-columns: 1fr auto; }
  .metric-list .rename { grid-column: 1 / -1; grid-row: 2; }
  .venue-pick, .venue-pick select { width: 100%; }
}

/* Status (alerts): reserved colours, always with a bell icon and a count */
.bells { display: flex; gap: 6px; }
.bell { --c: #c98500; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); color: #fff; cursor: pointer; padding: 0; flex: none; }
.bell-yellow { --c: #d99a00; }
.bell-orange { --c: #e0661a; }
.bell-red { --c: #c8322b; }
.bell-off { background: #e7e8eb; color: #a3a3a0; cursor: default; }
.bell-n { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #fff; color: var(--c); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 1.5px var(--c); }
.bell-sm { width: 22px; height: 22px; }
.bell-sm svg { width: 12px; height: 12px; }
.bell-xs { width: 20px; height: 20px; cursor: default; }
.bell-xs svg { width: 11px; height: 11px; }
.bell-xs .bell-n { top: -6px; right: -8px; min-width: 15px; height: 15px; line-height: 15px; font-size: 9px; }
.dots { display: inline-flex; gap: 12px; }
.popover { position: absolute; z-index: 40; width: min(380px, calc(100vw - 32px)); max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 48px rgba(15,27,61,.18); }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; }
.pop-close { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.pop-item { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.pop-item:last-child { border-bottom: 0; }
.pop-title { font-weight: 600; }
.pop-action { color: var(--text-2); }
.pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }

/* Issues, observations, wins */
.notes { margin-bottom: 20px; }
.notes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.notes-head h2 { margin: 0; color: var(--page-text, var(--text)); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.note-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.note-col-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.note-col-head h3 { margin: 0; font-size: 14px; }
.note-icon { width: 10px; height: 10px; border-radius: 50%; }
.note-issue .note-col-head { border-top: 3px solid #c8322b; } .note-issue .note-icon { background: #c8322b; }
.note-observation .note-col-head { border-top: 3px solid #2a78d6; } .note-observation .note-icon { background: #2a78d6; }
.note-win .note-col-head { border-top: 3px solid #0f7a3f; } .note-win .note-icon { background: #0f7a3f; }
.note-list { list-style: none; margin: 0; padding: 6px 18px; flex: 1; }
.note-list li { padding: 10px 0 10px 14px; border-bottom: 1px solid var(--border); position: relative; display: flex; flex-direction: column; gap: 3px; }
.note-list li:last-child { border-bottom: 0; }
.note-list li:not(.note-empty):not(.note-editor)::before { content: ""; position: absolute; left: 0; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.note-meta { font-size: 11px; color: var(--muted); }
.note-empty { color: var(--muted); font-size: 13px; padding-left: 0 !important; }
.note-tools { display: flex; gap: 10px; }
.note-tools button { border: 0; background: none; padding: 0; font: 500 11px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.note-tools button:hover { color: var(--text); }
.note-list li.draft { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 10px 12px; margin: 6px 0; background: #fafbfc; }
.note-list li.draft::before { display: none; }
.note-list li.draft .note-tools button[data-keep] { color: var(--good); }
.note-editor { padding-left: 0 !important; gap: 8px !important; }
.note-editor textarea { width: 100%; font: 14px/1.5 Inter, sans-serif; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; resize: vertical; }
.note-editor input[type=date] { width: auto; padding: 5px 8px; font-size: 12px; }
.note-add { border: 0; border-top: 1px solid var(--border); background: #fafbfc; padding: 10px; font: 500 13px Inter, sans-serif; color: var(--text-2); cursor: pointer; }
.note-add:hover { background: #f3f4f6; color: var(--text); }
.draft-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--info-bg); color: #184f95; font-size: 13px; flex-wrap: wrap; }
.notes-msg { margin-top: 12px; }

/* Admin client form extras */
.event-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 280px; overflow: auto; }
.event-list .event { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.alert-config { display: flex; flex-direction: column; gap: 8px; }
.alert-config .check { flex-wrap: wrap; }
.inline-num { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.inline-num input { width: 56px; padding: 3px 6px; font-size: 12px; }

/* Overview */
.ov-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.ov-grid > .card { margin-bottom: 20px; }
#ov .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seg-sm button { padding: 5px 10px; font-size: 12px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.actions-card { max-height: 720px; overflow: auto; }
.act-group { margin-bottom: 16px; }
.act-group:last-child { margin-bottom: 0; }
.act-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.act-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--border); }
.act-item:last-child { border-bottom: 0; }
.act-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.act-main a { text-decoration: none; color: var(--text); }
.up { color: var(--good); } .down { color: var(--bad); }

@media (max-width: 1100px) {
  #ov .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .notes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #ov .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-item { padding-left: 0; }
}

/* Brand blending between venues */
body { transition: background-color .6s ease; }
.topbar { transition: background-color .6s ease, color .6s ease; }
.topbar a, .brand { transition: color .6s ease, opacity .3s ease; }
.brand.fading { opacity: 0; }
.btn-primary, .seg button.on { transition: background-color .5s ease, color .5s ease, border-color .5s ease; }
.page-head h1, .page-head h1 span, .page-head .muted, .page-head .crumb, .notes-head h2 { transition: color .6s ease; }
@media (prefers-reduced-motion: reduce) { body, .topbar, .topbar a, .brand, .btn-primary, .seg button.on, .page-head h1 { transition: none; } }

/* Event metrics */
.kpi-label .dot { margin-right: 5px; }
.metric-list .metric-sep { display: block; padding: 10px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #fafbfc; }
.metric-list .metric-sep::before { display: none; }

.progress { height: 6px; background: #f0f1f3; border-radius: 3px; overflow: hidden; margin: 12px 0; }
.progress-bar { height: 100%; width: 0; background: var(--navy); transition: width .3s ease; }
.rebuild-log { margin: 0; padding-left: 0; list-style: none; max-height: 260px; overflow: auto; }
.rebuild-log li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.rebuild-log li.err { color: var(--bad); }

/* Report tabs and SEO */
.tabs { display: flex; gap: 4px; margin: 10px 0 8px; }
.tabs a { padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--page-muted, var(--text-2)); border: 1px solid transparent; transition: background-color .3s, color .3s; }
.tabs a:hover { color: var(--page-text, var(--text)); }
.tabs a.on { background: var(--accent, var(--navy)); color: var(--accent-ink, var(--brand-ink, #fff)); }
.kpi-unit { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.sev-error { background: #c8322b; } .sev-warning { background: #e0661a; } .sev-notice { background: #7a7974; }
.url-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-cell a { color: var(--text-2); }
.seo-setup td { vertical-align: middle; }
.seo-setup input, .seo-setup select { min-width: 220px; }
.seo-setup tr.suggested td { background: #f4f8fe; }

.book-btn { gap: 6px; }
.book-btn svg { flex: none; }
@media (max-width: 600px) { .head-tools { flex-wrap: wrap; } }

/* Hallmark logotype */
.hm-logo { height: 15px; width: auto; display: block; }
.brand span { font-size: 12px; }
.auth-brand { background: var(--navy); margin: -32px -32px 28px; padding: 26px 32px; border-radius: 16px 16px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-brand img { height: 18px; width: auto; display: block; }
.auth-brand span { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .04em; }

/* Conversion rules */
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 10px 0 20px; }
.action-pill { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: grid !important; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.action-pill:has(input:checked) { border-color: var(--navy); background: #f4f6fb; }
.conv-table td { vertical-align: top; }
.conv-table select { width: auto; padding: 5px 8px; font-size: 13px; }
.camp-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.camp-actions .check { font-size: 13px; }
.camp-actions .faint { opacity: .55; }
.will.changed { color: #184f95; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; align-items: center; gap: 14px; }

/* Account manager (subtle) */
.am { display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.am-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; }
.am-initials { background: var(--navy); color: var(--brand-ink, #fff); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.am-text { display: flex; flex-direction: column; line-height: 1.2; padding-right: 2px; }
.am-name { font-size: 13px; font-weight: 600; color: var(--text); }
.am-role { font-size: 11px; color: var(--muted); }
.am-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-2); border: 1px solid var(--border); transition: background-color .2s, color .2s; }
.am-icon:hover { background: #f3f4f6; color: var(--text); }
.am .book-btn { border-radius: 999px; padding: 7px 14px; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.team-list li:last-child { border-bottom: 0; }
.team-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
@media (max-width: 700px) {
  .am-text { display: none; }
  .head-tools { width: 100%; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 8px; }
  .topnav { gap: 14px; flex-wrap: wrap; }
}

/* Payment status */
.pay-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; text-decoration: none; color: var(--text-2); white-space: nowrap; }
.pay-dot i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.pay-green i { background: #0f7a3f; } .pay-amber i { background: #d99a00; } .pay-red i { background: #c8322b; }
td .pay-dot { margin-right: 6px; }
h1 .pay-dot { vertical-align: middle; margin-left: 10px; font-size: 12px; }
.page-head h1 .pay-dot { color: var(--page-muted, var(--muted)); }
.tag-bad { background: #fbeceb; color: #8c241d; }
.acc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.links-table select { width: auto; max-width: 220px; padding: 5px 8px; font-size: 13px; }
.links-table input[type=number] { padding: 5px 8px; font-size: 13px; }
