/* Plumbline design system: Clean SaaS, themed from the Plumbline logo (deep purple + cream). */
:root {
  --brand: #4c1d95; --brand-600: #3b1574; --brand-900: #2a0a52; --brand-50: #f5f0fd; --brand-100: #e9dffa;
  --cream: #f8d8a8; --cream-50: #fdf6ea;
  --ink: #101828; --ink-2: #344054; --muted: #667085; --faint: #98a2b3;
  --line: #eaecf0; --line-2: #f2f4f7; --bg: #f7f8fa; --card: #ffffff;
  --ok: #067647; --ok-bg: #ecfdf3; --warn: #b54708; --warn-bg: #fffaeb;
  --bad: #b42318; --bad-bg: #fef3f2; --info: #175cd3; --info-bg: #eff8ff;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.05);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 8px -4px rgba(16,24,40,.06);
  --sidebar: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg);
       -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--brand-600); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 650; } h2 { font-size: 16px; font-weight: 600; } h3 { font-size: 14px; font-weight: 600; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
[x-cloak] { display: none !important; }
/* Show/hide is done by toggling this class (Alpine :class), not x-show, which proved unreliable here. */
.is-hidden { display: none !important; }
svg { width: 16px; height: 16px; flex: none; }   /* icons default to text size; bigger only where set */
.callout > svg { width: 18px; height: 18px; margin-top: 1px; }
.empty .icon svg { width: 22px; height: 22px; }
.kpi .label svg { width: 15px; height: 15px; color: var(--faint); }

/* ---- shell ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--card); border-right: 1px solid var(--line);
           display: flex; flex-direction: column; padding: 20px 12px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; font-size: 17px; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; }
.logo-mark img { width: 38px; height: 38px; }
.nav-section { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.active { background: var(--brand-50); color: var(--brand); box-shadow: inset 3px 0 0 var(--cream); }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d92d20; color: #fff;
             font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-badge.muted-badge { background: #e4e7ec; color: #344054; }
.nav a .count { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 0 7px; }
.nav a.soon { color: var(--faint); pointer-events: none; }
.nav a.soon::after { content: "Soon"; margin-left: auto; font-size: 10px; font-weight: 600; color: var(--faint); background: var(--line-2); border-radius: 999px; padding: 1px 7px; }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sidebar-foot .who { color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; }
.env-bar { padding: 6px 24px; font-size: 12px; font-weight: 600; text-align: center; }
.env-bar.sit { background: #fef0c7; color: #93370d; }
.env-bar.prod { background: var(--bad-bg); color: var(--bad); }
/* Sending switches (admin): a switch is on, so nothing is reaching customers or Stripe. Above the SIT/LIVE bar. */
.env-bar.hold { background: var(--bad); color: #fff; font-size: 13px; }
.env-bar.hold a { color: #fff; text-decoration: underline; }
.switch-card.on { border-color: #fecdca; background: #fffbfa; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 60px; border-radius: 999px;
  border: 1px solid var(--line); background: #e4e7ec; color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.switch .knob { position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch.on { background: var(--bad); border-color: var(--bad); color: #fff; padding: 0 60px 0 12px; }
.switch.on .knob { left: auto; right: 4px; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }

/* ---- cards, grids --------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.quiet-note { padding: 10px 24px; border-bottom: 1px solid var(--line); }
/* Customers table: long pills (a rename hint, past names), the Link-to-Stripe box and long emails wrap instead of
   pushing the Edit button off the card. */
.t.cust td .pill, .t.cust td .tag { white-space: normal; }
.t.cust td.emails { overflow-wrap: break-word; }   /* break-word, not anywhere: the column stays wide enough for a whole address */
.t.cust .stripe-pick { width: 100%; min-width: 240px; }
.section-head { margin: 0 0 12px; } .section-head h2 { margin: 0; font-size: 16px; } .section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- KPI tiles ------------------------------------------------------------ */
.kpi { padding: 18px 20px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.alert .value { color: var(--bad); }
.delta { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 7px; }
.delta.up { color: var(--ok); background: var(--ok-bg); } .delta.down { color: var(--bad); background: var(--bad-bg); }

/* ---- buttons, forms ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
       border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 13px/1 inherit; cursor: pointer;
       box-shadow: var(--shadow); white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--line-2); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); }
.btn.warn { background: var(--warn-bg); border-color: #fedf89; color: var(--warn); font-weight: 600; } .btn.warn:hover { background: #fef0c7; }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=date],
input[type=time], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid #d0d5dd; border-radius: var(--radius-sm);
  padding: 7px 11px; box-shadow: var(--shadow); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
/* Read-only (e.g. a value copied from Stripe): greyed so it doesn't look editable. */
input[readonly], textarea[readonly] { color: var(--muted); background: var(--line-2); border-color: var(--line);
  box-shadow: none; cursor: not-allowed; }
input[readonly]:focus, textarea[readonly]:focus { border-color: var(--line); box-shadow: none; }
textarea { width: 100%; min-height: 72px; resize: vertical; }
label.field { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.search { position: relative; } .search input { padding-left: 34px; width: 280px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--faint); }
.dropzone { border: 1.5px dashed #d0d5dd; border-radius: var(--radius); padding: 28px; text-align: center; background: #fcfcfd; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-50); }

/* ---- tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); background: #fcfcfd; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fafbfc; }
.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.t td.strong, .t .strong { font-weight: 600; color: var(--ink); }
.t tr.is-muted td { color: var(--faint); }
.t a.rowlink { color: var(--ink); font-weight: 600; } .t a.rowlink:hover { color: var(--brand); }

/* ---- pills, badges -------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.plain::before { display: none; }
.tag { white-space: nowrap; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--cream-50); color: #8a5a14; border: 1px solid var(--cream); }

/* ---- stepper -------------------------------------------------------------- */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 20px 24px; }
.step { position: relative; padding-right: 12px; }
.step::before { content: ""; position: absolute; top: 13px; left: 30px; right: 0; height: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.done::before { background: var(--brand); }
.step .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
             background: var(--card); border: 2px solid var(--line); color: var(--faint); font-weight: 600; font-size: 12px; }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.step .name { margin-top: 10px; font-weight: 600; font-size: 13px; }
.step .when { font-size: 12px; color: var(--muted); }

/* ---- callouts, toasts, empty ---------------------------------------------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13px; }
.callout.warn { background: var(--warn-bg); border-color: #fedf89; color: #93370d; }
.callout.bad { background: var(--bad-bg); border-color: #fecdca; color: var(--bad); }
.callout.info { background: var(--info-bg); border-color: #b2ddff; color: #175cd3; }
.callout.ok { background: var(--ok-bg); border-color: #abefc6; color: var(--ok); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 420px; padding: 12px 16px; border-radius: var(--radius);
         background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 13px; }
.toast.bad { background: var(--bad); }
.toast:not(.live-note) { display: flex; align-items: flex-start; gap: 12px; }
.toast-x { flex: none; background: none; border: 0; padding: 0 2px; color: inherit; opacity: .75; cursor: pointer; font-size: 13px; line-height: 1.4; }
.toast-x:hover { opacity: 1; }
.toast.live-note { display: flex; align-items: center; gap: 12px; }   /* static/live.js: "updated, Refresh" */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list li > div { flex: 1; min-width: 0; }   /* text takes the spare width, so trailing buttons line up on the right */
.list .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.list .ico.bad { background: var(--bad-bg); color: var(--bad); } .list .ico.warn { background: var(--warn-bg); color: var(--warn); }
.list .ico.info { background: var(--info-bg); color: var(--info); } .list .ico.ok { background: var(--ok-bg); color: var(--ok); }
.list .ico svg { width: 16px; height: 16px; }
.bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
dialog { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; width: min(520px, 92vw); }
dialog::backdrop { background: rgba(16,24,40,.45); }
.htmx-request .spin, .htmx-request.spin { opacity: .5; pointer-events: none; }

/* Dispute entry panel: shown once at least one booking is ticked (class toggle, applied immediately). */
.dispute-panel { display: none; border-top: 1px solid var(--line); padding: 20px 24px; background: #fcfcfd; }
.dispute-panel.open { display: block; }

/* ---- loading feedback --------------------------------------------------------- */
#nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; opacity: 0;
                background: linear-gradient(90deg, var(--brand), #9b6ddb, var(--cream));
                box-shadow: 0 0 8px rgba(76,29,149,.4); transition: opacity .2s; }
body.navigating #nav-progress { opacity: 1; animation: nav-progress 8s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes nav-progress { 0% { width: 0 } 10% { width: 35% } 40% { width: 70% } 100% { width: 92% } }
body.navigating .page:not(.page-loading) { opacity: .6; transition: opacity .15s; }
.page-loading { display: none; }
body.nav-loading .page:not(.page-loading) { display: none; }
body.nav-loading .page-loading { display: block; animation: fade-in .12s ease-out; }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
.loading-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.loading-head .spinner { margin: 0; flex: none; }
.loading-title { font-size: 20px; font-weight: 650; color: var(--ink); }
.sk-block, .sk-line { background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 50%, var(--line-2) 75%);
                      background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-block { height: 92px; }
.sk-table { margin-top: 16px; padding: 20px 24px; }
.sk-line { height: 14px; border-radius: 6px; margin: 14px 0; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 50%, var(--line-2) 75%); background-size: 200% 100%;
            animation: shimmer 1.2s infinite; border-radius: 6px; width: 60%; color: transparent; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.spinner { width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--brand-100);
           border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; }
  .logo { padding: 0 12px 0 4px; } .nav-section, .sidebar-foot { display: none; }
  .nav { display: flex; gap: 4px; } .nav a.soon { display: none; }
  .page { padding: 20px 16px 48px; } .grid-3 { grid-template-columns: 1fr; } .stepper { grid-template-columns: 1fr; gap: 12px; }
  .step::before { display: none; } .search input { width: 100%; }
  .card-head:has(> .search) { flex-wrap: wrap; } .card-head > .search { flex: 1 1 100%; }
}

/* ---- insights ------------------------------------------------------------------ */
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.seg a { padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); border-right: 1px solid var(--line); white-space: nowrap; }
.seg a:last-child { border-right: 0; }
.seg a:hover { background: var(--line-2); color: var(--ink); }
.seg a.on { background: var(--brand); color: #fff; }
.range form { display: flex; align-items: center; gap: 6px; }
.range input[type=date] { padding: 5px 8px; }
.kpi .value .delta { display: inline-block; vertical-align: middle; margin-left: 6px; }  /* inline-block: wraps under the number on phones */
.delta.flat { color: var(--muted); background: var(--line-2); }
.t td.h1 { background: #fdeceb; } .t td.h2 { background: #f9c9c5; } .t td.h3 { background: #ef8f88; color: #5c0c07; font-weight: 600; }
.t th.sortable { cursor: pointer; user-select: none; } .t th.sortable:hover { color: var(--ink); }
.t th.sortable[data-dir=asc]::after { content: " ▲"; font-size: 9px; } .t th.sortable[data-dir=desc]::after { content: " ▼"; font-size: 9px; }
.t.dense td { padding: 8px 12px; } .t.dense th { padding: 8px 12px; }
.sticky-first td:first-child, .sticky-first th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
.dispo { display: grid; grid-template-columns: 150px 1fr 56px 52px; align-items: center; gap: 10px; padding: 7px 24px; font-size: 13px; }
.dispo .bar { height: 10px; } .dispo .r { text-align: right; font-variant-numeric: tabular-nums; }
.minibar { display: inline-block; height: 8px; border-radius: 4px; background: var(--cream); vertical-align: middle; margin-right: 8px; }
@media (max-width: 860px) { .dispo { grid-template-columns: 110px 1fr 44px; } .dispo .pct-col { display: none; } }
#agents td:first-child, #camp td:first-child { white-space: nowrap; }
.no-match { display: none !important; }
.timeline-filter { display: flex; gap: 6px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.t .ok-text, .ok-text { color: var(--ok); } .t .bad-text, .bad-text { color: var(--bad); }
/* Agents: coaching opportunities and shout-outs */
.hl { padding: 12px 20px 10px; border-bottom: 1px solid var(--line-2); }
.hl:last-child { border-bottom: 0; }
.hl-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hl-dot.bad { background: var(--bad); } .hl-dot.good { background: var(--ok); }
.hl-count { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 0 7px; }
.hl-explain { font-size: 12px; color: var(--muted); margin: 2px 0 6px 16px; }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 12px; align-items: baseline;
          padding: 4px 6px 4px 16px; margin: 0 -6px 0 0; border-radius: 6px; font-size: 13px; color: var(--ink); }
.hl-row:hover { background: var(--brand-50); }
.hl-row .who { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-row .note { font-size: 12px; color: var(--faint); white-space: nowrap; }
.hl-row .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hl-row .val.bad { color: var(--bad); } .hl-row .val.good { color: var(--ok); }
.hl-none, .hl-more { font-size: 12px; color: var(--faint); padding: 2px 0 2px 16px; }
@media (max-width: 860px) { .hl-row .note { display: none; } .hl-row { grid-template-columns: minmax(0, 1fr) auto; } }
/* Slim table: single-line rows, colour in the text instead of shaded blocks */
table.t.slim td { padding: 6px 14px; white-space: nowrap; }
table.t.slim th { padding: 8px 14px; }
.t.slim td.bad { color: var(--bad); font-weight: 600; } .t.slim td.good { color: var(--ok); font-weight: 600; }
.plain-list { list-style: none; margin: 0; padding: 10px 20px 14px; font-size: 13px; }
.plain-list li { padding: 4px 0 4px 16px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; }
.plain-list.good li::before { background: var(--ok); } .plain-list.bad li::before { background: var(--bad); }
.plain-list li.faint::before { display: none; }
.t.slim td.r.bad { color: var(--bad); }
.grid > * { min-width: 0; }   /* let wide tables scroll inside their card instead of pushing the page sideways */
#log td { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; padding-top: 6px; padding-bottom: 6px; }

/* Analyze call (AI review panel) */
.ai-panel { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.ai-panel .spinner { width: 14px; height: 14px; border-width: 2px; margin: 0; flex: none; }
.ai-panel ul { margin: 4px 0 0; padding-left: 18px; }
.ai-panel ul li { margin: 2px 0; }
.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; }
.ai-cols .field { font-size: 12px; font-weight: 600; color: var(--muted); }
.ai-transcript { margin-top: 8px; max-height: 320px; overflow-y: auto; padding: 8px 12px; background: var(--line-2); border-radius: 8px; }
.ai-transcript p { margin: 4px 0; }
.ai-transcript .ai-agent { color: var(--brand, #4c1d95); }
.ai-panel .stack > * + * { margin-top: 10px; }
.ai-def { padding: 8px 0; border-bottom: 1px solid var(--line-2); } .ai-def:last-child { border-bottom: 0; } .ai-def textarea { min-height: 44px; }

/* ---- billing: how the week works ------------------------------------------------ */
.hiw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hiw-step { display: flex; gap: 10px; align-items: flex-start; }
.hiw-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff;
         font-size: 12px; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 900px) { .hiw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hiw { grid-template-columns: 1fr; } }
/* Call Log: thin single-line rows, no sideways scrolling, details in a panel beside the list */
.call-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; padding: 14px 16px; }
.call-filters select { max-width: 210px; }
.call-filters .search { flex: 1 1 260px; max-width: 420px; } .call-filters .search input { width: 100%; }
.calls-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.calls-layout.has-panel { grid-template-columns: minmax(0, 1fr) 400px; }
table.calls-table { table-layout: fixed; width: 100%; }
.calls-table td, .calls-table th { padding: 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calls-table td { font-size: 13px; }
/* When fits "Oct 10 11:33 AM" (time only on one-day views); Disposition always keeps room for a label and its tags,
   Agent gets a share and Customer takes the rest */
.calls-table col.c-when { width: 142px; } .calls-table.one-day col.c-when { width: 92px; }
.calls-table col.c-cust { width: auto; } .calls-table col.c-caller { width: 176px; } .calls-table col.c-agent { width: 17%; }
.calls-table col.c-dispo { width: 180px; } .calls-table col.c-talk { width: 60px; } .calls-table col.c-rec { width: 58px; }
.calls-table tr.call-row { cursor: pointer; }
.calls-table tr.call-row:focus { outline: 2px solid var(--brand-100); outline-offset: -2px; }
.calls-table tr.call-row.sel td { background: var(--brand-50); }
.calls-table .tag { margin-left: 4px; }
.calls-table td:nth-child(3) .tag:first-child { margin: 0 2px 0 0; }   /* the chat / text label before the caller */
/* Disposition / Status: tags that don't fit drop to the next line whole, instead of being cut off */
.calls-table td.tags { white-space: normal; text-overflow: clip; line-height: 22px; }
.calls-table td.tags .tag { display: inline-block; line-height: 16px; }
.dispute-tag { background: var(--bad-bg); color: var(--bad); border-color: #fecdca; }
.notes-tag { background: var(--warn-bg); color: #93370d; border-color: #fedf89; }
.notes-tag.bill { background: var(--bad-bg); color: var(--bad); border-color: #fecdca; }
.nocamp-tag { background: var(--warn-bg); color: #93370d; border-color: #fedf89; }
.calls-table td:nth-child(2) .nocamp-tag { margin-left: 0; }
.cp-history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.notes-head { align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.notes-head-n { font-size: 26px; font-weight: 700; line-height: 1; min-width: 28px; text-align: center; }
.notes-head-text { flex: 1; min-width: 220px; }
.notes-head-text .small { margin-top: 2px; opacity: .9; }
.rec-dot { color: var(--brand); font-size: 11px; }
.rec-dot.tx svg { width: 14px; height: 14px; vertical-align: -2px; }
.ai-badge { display: inline-flex; align-items: center; gap: 2px; padding: 0 5px 0 4px; border-radius: 999px; background: var(--brand-50);
  color: var(--brand); border: 1px solid var(--brand-100); font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: .02em; }
.ai-badge svg { width: 11px; height: 11px; stroke-width: 2.2; }
.call-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cp-title { font-weight: 650; color: var(--ink); }
.cp-section { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.cp-section:last-child { border-bottom: 0; }
.cp-section > .field { margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.cp-dispo { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.cp-changed { background: var(--cream-50); border: 1px solid var(--cream); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 10px; }
.cp-changed .cp-inline { display: block; margin-top: 6px; }
.cp-facts { display: grid; grid-template-columns: 96px 1fr; gap: 3px 10px; margin: 0 0 10px; font-size: 13px; }
.cp-facts dt { color: var(--muted); } .cp-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.cp-notes { white-space: pre-line; background: var(--line-2); border-radius: 8px; padding: 8px 10px; max-height: 220px; overflow-y: auto; }
.cp-rec audio { display: block; width: 100%; }
.audio-tools { display: flex; gap: 4px; margin-top: 4px; }
.audio-tools .btn { font-variant-numeric: tabular-nums; }
.is-hidden + .audio-tools { display: none; }
.cp-rec + .cp-rec { margin-top: 8px; }
.cp-form { display: grid; gap: 6px; }
.cp-form .btn { justify-self: start; }
.cp-lbl { display: grid; gap: 3px; margin: 0; }
.cp-lbl > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.cp-inline { display: inline; }
.cp-transcript { background: var(--line-2); border-radius: 8px; padding: 8px 10px; max-height: 320px; overflow-y: auto; }
.cp-msg { white-space: pre-line; padding: 3px 0; }
.cp-msg + .cp-msg { border-top: 1px solid var(--line); }
/* Customer week bookings: with the panel open, Notes (shown in full in the panel) gives its room to the rest */
.calls-table col.bk-when { width: 120px; } .calls-table col.bk-caller { width: 180px; }
.calls-table col.bk-agent { width: 14%; } .calls-table col.bk-status { width: 190px; } .calls-table col.bk-rec { width: 44px; }
.calls-layout.has-panel .calls-table col.bk-notes { width: 0; }
.calls-layout.has-panel .calls-table col.bk-caller { width: auto; }
/* Phones: Notes and Agent are in the panel; the rest fits the screen with no sideways scrolling */
@media (max-width: 700px) {
  .calls-table col.bk-notes, .calls-table col.bk-agent { width: 0; } .calls-table col.bk-caller { width: auto; }
  .calls-table col.bk-when { width: 80px; } .calls-table col.bk-status { width: 104px; } .calls-table col.bk-rec { width: 36px; }
  .calls-table tbody td:first-child, .calls-table tbody td:nth-last-child(2) { white-space: normal; }
  .calls-table td .pill { white-space: normal; height: auto; line-height: 1.25; padding-top: 3px; padding-bottom: 3px; }
}
/* Panel beside the table: Talk and Caller are in the panel, so give their room to the other columns */
@media (min-width: 1321px) {
  .calls-layout.has-panel .calls-table col.c-talk, .calls-layout.has-panel .calls-table col.c-caller { width: 0; }
}
@media (max-width: 1320px) {
  .calls-layout.has-panel { grid-template-columns: minmax(0, 1fr); }
  .call-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); max-height: none; z-index: 40;
                border-radius: 0; box-shadow: var(--shadow-lg); }
}
@media (max-width: 1200px) { .calls-table col.c-talk { width: 0; } .calls-table col.c-when { width: 112px; } .calls-table.one-day col.c-when { width: 80px; } }
@media (max-width: 900px) { .calls-table col.c-agent { width: 0; } }
/* Phones: Caller is in the panel; Disposition gets close to half the row */
@media (max-width: 700px) {
  .calls-table col.c-when, .calls-table.one-day col.c-when { width: 74px; } .calls-table col.c-caller { width: 0; }
  .calls-table col.c-dispo { width: 42%; } .calls-table col.c-rec { width: 34px; }
}
/* Per-agent charts: fixed-height boxes that include the axis labels, plain HTML keys above each chart */
.chart-box { position: relative; height: 220px; }
.agent-charts .card-pad { padding: 14px 18px 16px; }
.keys { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; font-size: 12px; color: var(--ink-2); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.key-line { display: inline-block; width: 16px; border-top: 2px solid #6d3fc0; }
.key-line.ref { border-top: 2px dashed #98a2b3; } .key-line.ok { border-top: 2px dashed var(--ok); } .key-line.bad { border-top: 2px dashed var(--bad); }
.key-box { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #6d3fc0; } .key-box.attn { background: #e0663a; }
details.by-day > summary { cursor: pointer; list-style: none; border-bottom: 0; }
details.by-day > summary::-webkit-details-marker { display: none; }
details.by-day[open] > summary { border-bottom: 1px solid var(--line); }
.by-day-toggle::after { content: "Show"; } details.by-day[open] .by-day-toggle::after { content: "Hide"; }
details.by-day .table-wrap { max-height: 420px; overflow-y: auto; }
/* long tables stay one screen tall: scroll inside the card, headings stay put */
.scroll-box { max-height: 600px; overflow-y: auto; }
.scroll-box thead th { position: sticky; top: 0; z-index: 2; }
.scroll-box.table-wrap thead th:first-child { z-index: 3; }
@media (max-width: 600px) {
  .range .seg { flex-wrap: wrap; } .range form { flex-wrap: wrap; }
  .chart-box { height: 200px; }
  .agent-charts .card-pad { padding: 12px 12px 14px; }
  details.by-day .t td, details.by-day .t th { padding: 7px 8px; font-size: 12px; }
  details.by-day .t .small { display: none; } details.by-day .t th { white-space: normal; }
  .card-head:has(.timeline-filter) { flex-wrap: wrap; } .seg.timeline-filter { flex-wrap: wrap; }
}
/* Call coaching (agent page) and the QA sample page: thin rows, no sideways scrolling */
.coach .field, .qa-page .field { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.strong { font-weight: 600; color: var(--ink); }
.small.bad { color: var(--bad); font-weight: 600; } .small.good { color: var(--ok); font-weight: 600; }
.coach-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; padding: 4px 24px 14px; }
.coach-theme { padding: 5px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.coach-theme:last-child { border-bottom: 0; }
.coach-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-note a { color: inherit; }
.coach-calls li { display: block; padding: 0 24px; }
.coach-calls summary { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; min-width: 0; list-style: none; }
.coach-calls summary::-webkit-details-marker { display: none; }
.coach-calls summary::before { content: "›"; color: var(--faint); width: 8px; flex: none; transition: transform .15s; }
.coach-calls details[open] summary::before { transform: rotate(90deg); }
.coach-day { width: 44px; flex: none; }
.coach-dispo { width: 190px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-sum { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.coach-detail { padding: 0 0 10px 18px; }
.coach-items { margin: 6px 0 0; padding-left: 0; list-style: none; }
.coach-items li { padding: 3px 0 3px 14px; position: relative; }
.coach-items li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; }
.coach-items li.good::before { background: var(--ok); } .coach-items li.work::before { background: var(--warn); }
.coach-calls summary .pill { flex: none; }
.coach-overview { margin: 0 24px 14px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.coach-ov-head { gap: 10px; align-items: baseline; flex-wrap: wrap; }
.coach-ov-head .field { margin-bottom: 0; }
.coach-ov-refresh { margin-left: auto; }
.coach-headline { margin: 6px 0 8px; font-size: 14px; color: var(--ink); }
.coach-focus { margin: 0 0 6px; padding-left: 20px; }
.coach-focus li { padding: 4px 0; }
.coach-strengths { margin-top: 4px; }
/* Agents page: what the reviewed calls say across the team */
.tc-section { padding: 14px 24px 18px; }
.tc-section + .tc-section { border-top: 1px solid var(--line-2); }
.tc-section > .field { margin-bottom: 10px; }
.tc-hint { font-weight: 400; color: var(--faint); }
.tc-theme { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--card); }
.tc-theme summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; min-width: 0; }
.tc-theme summary::-webkit-details-marker { display: none; }
.tc-theme summary::before { content: "›"; color: var(--faint); width: 8px; flex: none; transition: transform .15s; }
.tc-theme[open] summary::before { transform: rotate(90deg); }
.tc-theme summary:hover { background: var(--bg); border-radius: var(--radius-sm); }
.tc-cat { flex: none; min-width: 140px; }
.tc-names { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-theme .pill { flex: none; }
.tc-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; padding: 4px 14px 14px 34px; }
.tc-member { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); }
.tc-member-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tc-examples { margin: 6px 0 0; padding: 0; list-style: none; }
.tc-examples li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-2); font-size: 13px; }
.tc-call { flex: none; white-space: nowrap; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tc-tile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: inherit; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.tc-tile:hover { color: inherit; border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
.tc-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tc-tile-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-tile-head .tag { flex: none; }
.tc-tile p { margin: 0; flex: 1; font-size: 13px; color: var(--ink-2); }
.tc-more { margin-top: 10px; }
.tc-more summary { list-style: none; display: inline-flex; }
.tc-more summary::-webkit-details-marker { display: none; }
.tc-more[open] summary { display: none; }
@media (max-width: 640px) { .coach-overview { margin: 0 12px 12px; } .tc-section { padding: 12px 14px 14px; }
  .tc-names { display: none; } .tc-cat { min-width: 0; flex: 1; } .tc-members { padding-left: 14px; grid-template-columns: 1fr; } }
@media (max-width: 700px) { .coach-dispo, .coach-calls summary .pill.ok, .coach-calls summary .pill.info { display: none; }
  .coach-calls li { padding: 0 14px; } .coach-cols { padding: 4px 14px 12px; } }
.qa-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.qa-rules input[type=number] { width: 100%; }
.qa-weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 16px; }
.qa-weights label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; }
.qa-weights input { width: 56px; }
.qa-table { width: 100%; table-layout: fixed; }   /* always fits the card, so Open is never cut off */
.qa-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-table td:last-child { overflow: visible; padding-right: 16px; }
.qa-table tbody tr { cursor: pointer; }
/* Dispute log: full width and fixed columns, so the decision buttons are never pushed off the right edge */
.dispute-log { width: 100%; table-layout: fixed; }
.dispute-log td { overflow-wrap: break-word; }
.dispute-log col.c-week { width: 76px; } .dispute-log col.c-company { width: 28%; }
.dispute-log col.c-csr { width: 12%; } .dispute-log col.c-training { width: 140px; } .dispute-log col.c-decision { width: 250px; }
.dispute-log audio { max-width: 100%; }
.dispute-log .pill { white-space: normal; }
.dispute-actions { gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.open-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.open-head .btn { flex: none; }
#open .when-collapsed, html[data-open-collapsed] #open .when-open, html[data-open-collapsed] #open-body { display: none; }
html[data-open-collapsed] #open .when-collapsed { display: flex; }
.open-collapsed-bar { align-items: center; cursor: pointer; font-size: 14px; border-width: 2px; }
.open-collapsed-bar > svg { width: 22px; height: 22px; margin: 0; }
.open-collapsed-bar .grow { flex: 1; min-width: 0; } .open-collapsed-bar .grow div { font-size: 13px; opacity: .85; }
.open-collapsed-bar .btn { flex: none; }
.open-collapsed-bar:hover { border-color: #f79009; } .open-collapsed-bar:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.csr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; padding: 4px 24px 16px; }
.csr-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: inherit; min-width: 0; }
.csr-cell:hover .csr-name { color: var(--brand); text-decoration: underline; }
.csr-name { flex: 1 0 100%; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .dispute-log { table-layout: auto; min-width: 640px; } .csr-grid { padding: 4px 14px 12px; } }
.qa-mix { display: flex; flex-wrap: wrap; gap: 6px; }
/* Billing: automatic call logs / invoicing */
.auto-row { display: grid; grid-template-columns: 150px 96px 150px 140px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.auto-row:last-of-type { border-bottom: 0; }
.auto-row .check { align-items: center; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.choice input { margin-top: 3px; flex: none; }
.choice > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice strong { display: inline-flex; align-items: center; gap: 6px; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 700px) { .choice-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .auto-row { grid-template-columns: 1fr 1fr; } .auto-row .auto-next { grid-column: 1 / -1; } }

/* Billing page: the Weeks list shows ~5 rows (a sliver of the 6th says it scrolls), 25 per page; sending settings as tabs. */
.t.compact td { padding: 8px 16px; }
.weeks-box, .history-box { max-height: 292px; }
.seg.pager a { padding: 5px 10px; font-size: 12px; }
.load-row { margin-top: 14px; flex-wrap: wrap; }
.tabbar { display: flex; flex-wrap: wrap; gap: 0 2px; padding: 0 16px; border-bottom: 1px solid var(--line); }   /* tabs that don't fit go to a second row */
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 12px 12px; margin-bottom: -1px; background: none; border: 0;
  border-bottom: 2px solid transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected=true] { color: var(--ink); border-bottom-color: var(--brand); }
.pane-intro { margin: 0; padding: 16px 24px 12px; max-width: 980px; }
@media (max-width: 700px) { .card-head:has(.pager) { flex-wrap: wrap; } .tabbar { padding: 0 8px; } .pane-intro { padding: 14px 16px 10px; } }
.select-filter { display: block; width: 100%; margin-bottom: 6px; }
/* Call Log on a phone: only the search box and Show calls until "More filters" is tapped */
.filters-toggle { display: none; }
@media (max-width: 700px) {
  .filters-toggle { display: inline-flex; margin-bottom: 8px; }
  .call-filters:not(.open) > :not(.search):not([type=submit]) { display: none; }
}
.email-preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.tz-pick { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tz-pick select { font-size: 12px; padding: 2px 6px; height: auto; }
