/* =====================================================================
   PEXTH Business console — app styles on top of pexth-ui.css.
   Colours come ONLY from design tokens (light + dark handled by pexth-ui.css;
   status text uses the per-theme --badge-*-ink and text on a solid --primary
   fill --on-primary, both from pexth-brand.css).
   ===================================================================== */

/* ---------- shell ---------- */
.biz { background: var(--bg); }
.event-registration-details{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,3fr);gap:.8rem 1.4rem;margin:0}.event-registration-details dt{font-weight:600;color:var(--muted)}.event-registration-details dd{margin:0;overflow-wrap:anywhere}.event-registration-details .break-anywhere{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:540px){.event-registration-details{grid-template-columns:1fr;gap:.4rem}.event-registration-details dd{margin-bottom:.8rem}}
.skip-link { position: absolute; left: var(--s-3); top: -60px; z-index: 1100; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); background: var(--primary); color: var(--on-primary); font-weight: 700; }
.skip-link:focus { top: var(--s-3); text-decoration: none; }

.sidebar { gap: 0; }
.side-brand { padding: 0 var(--s-3) var(--s-4); }
.side-brand small { margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-section { display: flex; flex-direction: column; gap: 2px; }
.side-link { position: relative; }
.side-text { flex: 1; min-width: 0; }
.side-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--warning-soft); color: var(--badge-warning-ink); font-size: .74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.side-link[aria-current="page"] .side-count { background: var(--surface); }
.side-foot { margin: var(--s-6) 0 0; padding: 0 12px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--text-3); }

.app-top { gap: var(--s-3); }
.top-title { font-weight: 700; font-size: 1rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.drawer-toggle { display: none; min-width: 40px; padding: 0 8px; }
.icon-btn { min-width: 38px; padding: 0 8px; }
.ico { width: 18px; height: 18px; flex: none; }
.role-badge { flex: none; }
.user-btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 240px; }
.user-btn:hover { background: var(--surface-2); }
.user-btn .avatar { width: 30px; height: 30px; font-size: .8rem; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.caret { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.menu-who { display: flex; flex-direction: column; padding: 8px 12px 4px; gap: 2px; min-width: 0; }
.menu-who strong { font-size: .95rem; overflow-wrap: anywhere; }
.menu-who .subtle { overflow-wrap: anywhere; font-size: .82rem; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 290; background: color-mix(in srgb, var(--brand-900) 50%, transparent); }

.app-content { width: 100%; margin: 0 auto; }
.app-content:focus { outline: none; box-shadow: none; }
.boot { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-10) 0; color: var(--text-2); }
.boot-spin { width: 22px; height: 22px; border: 3px solid var(--border-strong); border-right-color: var(--primary); border-radius: 50%; animation: pexth-spin .8s linear infinite; }

@media (max-width: 960px) {
  .drawer-toggle { display: inline-flex; }
  .app-top { padding: 0 var(--s-4); }
  .user-name, .caret { display: none; }
  .user-btn { padding: 3px; }
}
@media (max-width: 520px) {
  .role-badge { display: none; }
  .app-content { padding: var(--s-4) var(--gutter); }
}
body.drawer-open, body.has-modal { overflow: hidden; }

/* ---------- page header / panels ---------- */
.page-head { margin-bottom: var(--s-5); }
.page-title { min-width: 0; flex: 1 1 320px; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head h1:focus { outline: none; box-shadow: none; }
.page-head h1:focus-visible { box-shadow: var(--focus); }
.page-lead { margin-top: var(--s-2); max-width: 72ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.crumbs { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: .85rem; }
.crumbs li + li::before { content: "›"; margin-right: var(--s-2); color: var(--text-3); }
.panel { margin-bottom: var(--s-5); overflow: visible; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-4) var(--s-5) 0; }
.panel-head .card-title { margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.panel-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.panel-body { padding: var(--s-4) var(--s-5) var(--s-5); min-width: 0; }
.panel-body > .table-wrap, .panel-body > .empty { margin-top: 0; }
.panel-foot { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.pc-translation-settings .panel-foot { flex-wrap: wrap; }
.sub-title { font-size: .95rem; font-weight: 700; margin: var(--s-5) 0 var(--s-2); color: var(--text); }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.mono { font-family: var(--font-mono); font-size: .88em; }
.break { overflow-wrap: anywhere; white-space: normal; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: calc(-1 * var(--s-3)) 0 var(--s-4); }
.status-links { display: inline-flex; flex-wrap: wrap; gap: var(--s-3); margin-left: auto; font-size: .88rem; }
.alert { margin-bottom: var(--s-4); }
.alert > div { min-width: 0; }
.readonly-note { align-items: center; }
.rule-list { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.rule-list li + li { margin-top: 2px; }
.btn-danger-outline { color: var(--badge-danger-ink); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-success:hover { filter: brightness(.95); }

/* ---------- filters / list ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); align-items: end; margin-bottom: var(--s-3); padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.filters .field { margin-bottom: 0; min-width: 0; }
.filters-actions { display: flex; align-items: center; min-height: 44px; }
.list-meta { margin: 0 0 var(--s-2); min-height: 1.4em; }
.list-results { min-width: 0; }
.list-results:focus { outline: none; box-shadow: none; }
.list-results.is-loading .table-wrap { opacity: .55; transition: opacity .15s var(--ease); }
/* position:relative → absolutely-positioned .sr-only captions/labels inside wide tables are clipped by the
   scroll container instead of widening the page */
.table-wrap { position: relative; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { box-shadow: var(--focus); }
.table td.wrap { white-space: normal; min-width: 220px; max-width: 420px; overflow-wrap: anywhere; }
.table td { vertical-align: middle; }
.table tr.row-attention td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.table tr.row-muted td { color: var(--text-3); }
.cell-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
/* category tree (views/categories.ts): branch marker beside the name, one indent step per level below the first */
.tree-cell { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.tree-branch { flex: none; color: var(--text-3); line-height: 1.35; }
.tree-cell.depth-2 { padding-inline-start: 1.25rem; }
.tree-cell.depth-3 { padding-inline-start: 2.5rem; }
.tree-cell.depth-4 { padding-inline-start: 3.75rem; }
.cell-title { font-weight: 600; color: var(--text); }
a.cell-title { color: var(--primary); }
.cell-sub { font-size: .8rem; color: var(--text-3); }
.cell-inline { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.cell-company { display: flex; align-items: center; gap: var(--s-3); }
.cell-logo { width: 32px; height: 32px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--surface-3); border: 1px solid var(--border); }
.cell-logo-empty { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text-3); font-size: .85rem; }
.tier-cell { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.row-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.code-chip { padding: 2px 8px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--text); font-weight: 700; letter-spacing: .04em; }
.pager-gap { padding: 0 var(--s-1); color: var(--text-3); }
.stars { color: var(--accent); letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: var(--border-strong); }
.review-cell { display: flex; flex-direction: column; gap: 4px; }
.review-more summary { cursor: pointer; color: var(--text-2); font-size: .9rem; }
.meta summary { cursor: pointer; color: var(--primary); font-size: .85rem; font-weight: 600; }
.json { margin: var(--s-2) 0 0; padding: var(--s-3); max-height: 320px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: .78rem; line-height: 1.5; white-space: pre; color: var(--text); }

/* ---------- states ---------- */
.state-loading { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2) 0; }
.skel-row { height: 44px; }
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.panel .empty { border: 0; padding: var(--s-8) var(--s-4); }
.empty-title { font-weight: 700; color: var(--text-2); margin-bottom: var(--s-1); }
.empty-action { margin-top: var(--s-4); display: flex; justify-content: center; gap: var(--s-2); flex-wrap: wrap; }
.state-denied .empty-ico, .state-error .empty-ico { color: var(--badge-danger-ink); opacity: .8; }
.denied { max-width: 640px; margin: var(--s-10) auto; }
.denied-actions { justify-content: center; margin-top: var(--s-4); }
.notfound .panel-body { text-align: center; }
.notfound .row { justify-content: center; }
.notfound-code { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--border-strong); margin-bottom: var(--s-3); }

/* ---------- overview ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-5); }
@media (min-width: 1500px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; color: var(--text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); min-width: 0; }
.kpi:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.kpi .stat-value { font-size: 1.7rem; overflow-wrap: anywhere; }
.kpi-sub { margin-top: var(--s-2); font-size: .82rem; color: var(--text-3); }
.kpi-attention { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.charts-row, .breakdowns { gap: var(--s-5); }
.charts-row > .panel, .breakdowns > .panel, .overview .grid > .panel { margin-bottom: 0; min-width: 0; }
.overview > .grid { margin-bottom: var(--s-5); }
.queue-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.queue-link { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); }
.queue-link:hover { background: var(--surface-2); text-decoration: none; }
.queue-text { display: flex; flex-direction: column; min-width: 0; }
.queue-go { color: var(--text-3); font-size: 1.3rem; }
@media (max-width: 1100px) { .breakdowns.grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .charts-row.grid-2, .breakdowns.grid-3, .overview > .grid-2 { grid-template-columns: 1fr; } }

/* ---------- charts (SVG) ---------- */
.chart { margin: 0; }
.chart-box { position: relative; width: 100%; min-height: 200px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; border-radius: var(--r-sm); }
.chart-svg:focus { outline: none; }
.chart-svg:focus-visible { box-shadow: var(--focus); }
.chart-gridline { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-baseline, .chart-tickmark { stroke: var(--border-strong); stroke-width: 1; }
.chart-tick { fill: var(--text-3); font-size: 11px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.chart-axis-title { fill: var(--text-2); font-size: 11px; font-weight: 600; font-family: var(--font-sans); }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--primary); fill-opacity: .1; stroke: none; }
.chart-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 1.75; }
.chart-dot.is-active { fill: var(--primary); stroke-width: 4; }
.chart-guide { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-bar { fill: var(--primary); fill-opacity: .85; transition: fill-opacity .12s; }
.chart-bar.is-active { fill: var(--accent); fill-opacity: 1; }
.chart-band { fill: var(--surface-2); fill-opacity: 0; }
.chart-band.is-active { fill-opacity: .9; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); box-shadow: var(--shadow-2); font-size: .8rem; line-height: 1.35; white-space: nowrap; }
.chart-tip-x { opacity: .8; }
.chart-tip-y { font-size: .92rem; font-variant-numeric: tabular-nums; }

/* horizontal bar breakdowns */
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.hbar { display: grid; grid-template-columns: minmax(84px, 38%) 1fr auto; align-items: center; gap: var(--s-3); font-size: .9rem; }
.hbar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.hbar-label { color: var(--primary); }
.hbar-track { height: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--primary); }
.hbar-value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hbar-pct { font-weight: 500; color: var(--text-3); font-size: .8rem; }
.hbar-total { padding-top: var(--s-2); border-top: 1px solid var(--border); }
.hbar-total .hbar-track { background: none; }
.tone-success { background: var(--success); }
.tone-warning { background: var(--warning); }
.tone-danger { background: var(--danger); }
.tone-primary { background: var(--primary); }
.tone-neutral { background: var(--text-3); }
.tone-tier-gold { background: var(--tier-gold); }
.tone-tier-silver { background: var(--tier-silver); }
.tone-tier-bronze { background: var(--tier-bronze); }
.tone-tier-none { background: var(--border-strong); }

/* ---------- detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.detail-main, .detail-side { min-width: 0; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { margin: 0; display: grid; gap: 0; }
.kv-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: 0; }
.kv dt { color: var(--text-3); font-size: .86rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-compact .kv-row { padding: 6px 0; }
@media (max-width: 520px) { .kv-row { grid-template-columns: 1fr; gap: 2px; } }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.missing-list { margin: var(--s-2) 0 0; padding-left: 1.2em; color: var(--text-2); font-size: .9rem; }
.progress-row { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.progress { flex: 1; height: 10px; appearance: none; border: 0; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; accent-color: var(--success); }
.progress::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--r-pill); }
.progress::-webkit-progress-value { background: var(--success); border-radius: var(--r-pill); }
.progress::-moz-progress-bar { background: var(--success); border-radius: var(--r-pill); }

/* media */
.brand-assets { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); }
@media (max-width: 520px) { .brand-assets { grid-template-columns: 1fr; } }
.asset { margin: 0; min-width: 0; }
.asset figcaption { margin-top: var(--s-1); }
.thumb { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); color: var(--text-3); overflow: hidden; cursor: zoom-in; font: inherit; font-size: .85rem; }
.thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-logo { aspect-ratio: 1; max-width: 140px; }
.thumb-banner { aspect-ratio: 3 / 1; }
.thumb-empty { aspect-ratio: 3 / 1; cursor: default; }
.asset:first-child .thumb-empty { aspect-ratio: 1; max-width: 140px; }
.thumb-video { font-weight: 700; color: var(--text-2); }
.thumb-play { position: absolute; inset: auto auto 8px 8px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text); font-size: .8rem; box-shadow: var(--shadow-1); }
.media-grid { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-3); }
.thumb-media { aspect-ratio: 4 / 3; }
.lightbox { margin: 0; text-align: center; }
.lightbox-media { max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: var(--r); background: var(--surface-2); }
.lightbox figcaption { margin-top: var(--s-2); }

/* ---------- dialogs / forms ---------- */
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 1040px; }
.modal-title { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.modal-form { display: contents; }
.modal-foot { flex-wrap: wrap; }
.modal-foot-extra { margin-right: auto; display: flex; gap: var(--s-2); }
.modal-body > p:last-child { margin-bottom: 0; }
.modal-body .kv { margin-bottom: var(--s-4); }
.form-alert { margin-bottom: var(--s-4); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 var(--s-4); }
.form-grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fieldset { border: 0; margin: 0 0 var(--s-4); padding: 0; min-width: 0; }
.quick-search-editor { padding: var(--s-4); }
.quick-search-editor-head { justify-content: space-between; margin-bottom: var(--s-3); flex-wrap: wrap; }
.quick-search-editor summary { cursor: pointer; color: var(--muted); }
.quick-search-fields .form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .quick-search-fields .form-grid-3 { grid-template-columns: 1fr; } }
.fieldset > legend { padding: 0; margin-bottom: var(--s-2); }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.cb-hint { display: block; margin-top: 2px; }
.checkbox > span { display: flex; flex-direction: column; }
.current-media { margin-bottom: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.current-media .banner-preview { max-width: 320px; }
input[type="file"].input { padding: 8px; }

/* company picker (combobox) */
.picker-box { position: relative; }
/* in-flow (not absolutely positioned) so the list is never clipped by the scrolling modal */
.picker-list { max-height: 260px; overflow-y: auto; margin: 4px 0 0; padding: var(--s-1); list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: var(--shadow-2); }
.picker-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: .92rem; }
.picker-opt:hover, .picker-opt.is-active { background: var(--primary-soft); }
.picker-opt[aria-selected="true"] { font-weight: 700; }
.picker-opt.is-blocked { cursor: not-allowed; color: var(--text-3); }
.picker-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.picker-sub { flex-basis: 100%; font-size: .8rem; color: var(--text-3); }
.picker-why { flex-basis: 100%; font-size: .8rem; color: var(--badge-warning-ink); }
.picker-check { color: var(--success); font-weight: 800; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; max-width: 100%; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .tier { padding: 2px 8px; font-size: .66rem; }
.chip-x { width: 24px; height: 24px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; font: inherit; font-size: .8rem; }
.chip-x:hover { background: var(--surface-3); color: var(--badge-danger-ink); }

/* ---------- banners ---------- */
.banner-group { margin-bottom: var(--s-8); }
.group-head { margin-bottom: var(--s-3); align-items: flex-end; }
.group-title { font-size: 1.15rem; margin: 0; }
.banner-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); }
.banner-card { display: flex; flex-direction: column; overflow: hidden; }
.banner-card.is-inactive { opacity: .7; }
.banner-preview { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 7; padding: 0; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); overflow: hidden; font: inherit; font-size: .88rem; cursor: zoom-in; }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview.is-empty { cursor: default; }
.banner-info { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.banner-title { overflow-wrap: anywhere; }
.banner-info .row-actions { margin-top: auto; padding-top: var(--s-2); }

/* ---------- packages / settings ---------- */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s-5); align-items: start; }
.package-card { overflow: visible; }
.benefits { margin: 0 0 var(--s-2); padding: 0; list-style: none; counter-reset: benefit; }
.benefit-row { margin-bottom: var(--s-2); }
.benefit-line { display: flex; gap: 4px; align-items: center; }
.benefit-line .input { flex: 1; min-width: 0; }
.benefit-line .btn { min-width: 34px; padding: 0 6px; }
.settings-form .panel { margin-bottom: var(--s-5); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--s-5); }
.sticky-foot { position: sticky; bottom: 0; z-index: 10; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }

/* ---------- small screens ---------- */
@media (max-width: 620px) {
  .page-head { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .page-title { flex: none; }
  .page-head h1 { font-size: 1.35rem; }
  .page-actions { justify-content: flex-start; }
  .filters { grid-template-columns: 1fr; padding: var(--s-3); }
  .panel-head { padding: var(--s-3) var(--s-4) 0; }
  .panel-body { padding: var(--s-3) var(--s-4) var(--s-4); }
  .modal-body { padding: var(--s-4); }
  .modal-head, .modal-foot { padding-left: var(--s-4); padding-right: var(--s-4); }
  .modal-foot .btn { flex: 1 1 auto; }
  .kpis { gap: var(--s-3); }
  .kpi { padding: var(--s-4); }
  .kpi .stat-value { font-size: 1.3rem; }
  .hbar { grid-template-columns: minmax(72px, 34%) 1fr auto; gap: var(--s-2); }
  .status-links { margin-left: 0; }
  .banner-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .kpis { grid-template-columns: 1fr; } }

.public-holiday-settings .holiday-row{justify-content:space-between;align-items:center}.public-holiday-settings .holiday-row>div{display:flex;flex-direction:column;gap:.25rem;min-width:0;overflow-wrap:anywhere;flex:1}.public-holiday-settings .form-grid>*{min-width:0}.public-holiday-settings input{min-width:0;max-width:100%}

/* Recorded old/new values in the shared company trail and audit screen. */
.audit-changes { width:100%; border-collapse:collapse; font-size:.82rem; }
.audit-changes th,.audit-changes td { padding:6px 8px; white-space:normal; vertical-align:top; letter-spacing:normal; text-transform:none; }
.audit-changes thead th { font-size:.75rem; color:var(--text-3); }
.audit-changes tbody th { font-size:inherit; font-weight:600; color:var(--text-2); background:none; width:40%; }
.audit-changes td { width:30%; }

.audit-changes td.audit-value-short { white-space:nowrap; }
