/* ---------- admin shell (wireframe §3.4) ---------- */
.login-view {
  max-width: 26rem;
  margin: 10vh auto;
  padding: 0 var(--sp-4);
}

.admin-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: rgb(var(--c-bg));
}

.admin-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.admin-main {
  display: flex; flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: calc(1040px + 2 * var(--sp-6));
  margin: 0 auto;
  padding: var(--sp-4);
  padding-bottom: max(var(--sp-6), env(safe-area-inset-bottom));
  overflow: auto;
}
#securityBannerHost { order: -5; } #kioskBannerHost { order: -4; } #cronBannerHost { order: -3; } #unapprovedBannerHost { order: -2; } #mfaBannerHost { order: -1; }

.app-header-menu { color: rgb(var(--c-on-primary)); display: inline-grid; }
.app-header .brand { text-decoration: none; white-space: nowrap; }

/* side-nav in shell: desktop/tablet */
.admin-shell .side-nav {
  flex: none;
  display: none;
  height: auto;
  min-height: 0;
}
.side-nav-scroll { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.side-nav-icon {
  display: inline-grid; place-items: center; flex: none; width: 20px; text-align: center;
  font-style: normal; font-weight: 600; color: rgb(var(--c-mute));
}
.side-nav-item.is-active .side-nav-icon { color: rgb(var(--c-primary)); }
.side-nav-footer { margin-top: auto; }

/* F0 icon-rail hides all .side-nav-item > span; keep the icon visible */
@media (min-width: 768px) and (max-width: 1023px) {
  .admin-shell .side-nav-item > .side-nav-icon { display: inline; }
}

@media (min-width: 768px) {
  .admin-shell .side-nav { display: flex; }
  .app-header-menu { display: none; }
}

@media (min-width: 1024px) {
  .admin-main { padding: var(--sp-6); }
}

/* mobile drawer <768 */
.nav-drawer-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgb(0 0 0 / 0.35);
}
.nav-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  width: min(var(--nav-w), 86vw);
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-3) var(--sp-2);
  padding-top: max(var(--sp-3), env(safe-area-inset-top));
  background: rgb(var(--c-surface));
  border-right: 1px solid rgb(var(--c-line));
  box-shadow: var(--shadow-2);
  overflow-y: auto;
}
.nav-drawer-head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-2) var(--sp-3);
}
.nav-drawer-head .panel-heading { flex: 1; margin: 0; padding: 0; }

@media (min-width: 768px) {
  .nav-drawer, .nav-drawer-backdrop { display: none !important; }
}

/* user menu */
.user-menu { position: relative; }
.user-menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.12); color: rgb(var(--c-on-primary));
  font: inherit; font-weight: 600; cursor: pointer;
}
.user-menu-btn:hover { background: rgb(255 255 255 / 0.22); }
.user-menu-caret { opacity: 0.8; font-size: 11px; }
.user-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 200px; padding: 6px;
  background: rgb(var(--c-surface)); color: rgb(var(--c-ink));
  border: 1px solid rgb(var(--c-line)); border-radius: 16px;
  box-shadow: var(--shadow-2);
}
.user-menu-meta { padding: 6px 10px; }
.user-menu-item {
  display: block; width: 100%;
  min-height: 44px; padding: 0 12px;
  border: 0; border-radius: var(--radius);
  background: transparent; color: rgb(var(--c-ink));
  font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.user-menu-item:hover { background: rgb(var(--c-primary) / 0.06); }

/* record tab: tab button + separate close button (no nested controls) */
.record-tab { display: inline-flex; align-items: center; flex: none; }
.record-tab-close {
  display: inline-grid; place-items: center;
  min-width: var(--hit); min-height: var(--hit); padding: 0;
  border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit;
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.record-tab-close:hover { background: rgb(var(--c-ink) / 0.08); }

/* data table extras */
.data-table-root .card { padding: 0; overflow: hidden; }
.data-table-root .table-wrap.card { margin-bottom: 0; overflow: auto; max-height: max(360px, calc(100dvh - 260px)); border: 0; } /* the card is the scroll box: sticky header, no page scroll */
.data-table tbody tr.is-clickable { cursor: pointer; }
.data-table th.is-sortable { cursor: pointer; user-select: none; }
.data-table th.is-sortable:hover { color: rgb(var(--c-ink)); }
.filter-search { flex: 1 1 220px; max-width: 360px; }
.filter-search .input { flex: 1; min-width: 0; }
.table-status { margin-bottom: var(--sp-3); font-size: var(--fs-sm); color: rgb(var(--c-mute)); }

/* session detail */
.session-detail { display: flex; flex-direction: column; gap: 0; clear: both; }
.session-detail .patient-banner { position: sticky; top: 0; border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.session-detail .patient-banner-avatar { width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--c-vet-tint)); color: rgb(var(--c-vet)); }
.session-facts { border-radius: var(--radius-card); }
.session-detail .record-tabs { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.session-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  align-items: start;
}
.session-facts { position: sticky; top: calc(var(--banner-h) + var(--sp-2)); }
.fact-row + .fact-row { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid rgb(var(--c-line)); }
.session-turn { align-items: flex-start; }

@media (min-width: 900px) {
  .session-detail-body { grid-template-columns: minmax(0, 1fr) 260px; }
}

/* kiosk open banner (F5) */
.kiosk-banner-host { margin-bottom: 8px; }
.kiosk-banner.flag {
  display: flex; width: 100%;
  min-height: 40px; height: auto;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: var(--fs-sm); line-height: 1.4; white-space: normal;
}

/* settings sub-nav */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.settings-subnav {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; border-radius: var(--radius-sm);
  background: rgb(var(--c-ink) / 0.06);
}
.settings-subnav-item {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: calc(var(--hit) - 4px); padding: 6px 12px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: rgb(var(--c-mute));
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.settings-subnav-item:hover { color: rgb(var(--c-ink)); }
.settings-subnav-item.is-active {
  background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary));
}
.dirty-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--c-warn)); flex: none;
}
.settings-subnav-item.is-active .dirty-dot { background: rgb(var(--c-warn)); }
.settings-field .form-row { margin-bottom: 0; }
.settings-layout { display: block; }
.settings-subnav { display: flex; flex-wrap: nowrap; gap: 4px; margin-bottom: 20px; padding: 0; overflow-x: auto; scrollbar-width: none; background: transparent; border-bottom: 1px solid rgb(var(--c-line)); border-radius: 0; }
.settings-subnav-item { position: relative; flex: none; min-height: 44px; padding: 0 14px; border-radius: 0; background: transparent; color: rgb(var(--c-mute)); font-size: var(--fs-md); font-weight: 650; }
.settings-subnav-item.is-active { background: transparent; color: rgb(var(--c-ink)); }
.settings-subnav-item.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: rgb(var(--c-primary)); }
.settings-subnav-item.is-active .dirty-dot { background: rgb(var(--c-warn)); }
.settings-section-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding: 8px 8px 8px 20px; border-radius: 16px; background: rgb(var(--c-surface)); box-shadow: var(--shadow-1); }
.settings-dirty-note { font-size: var(--fs-sm); font-weight: 600; color: rgb(var(--c-warn-text)); }
.settings-section > .list-group { border-radius: var(--radius-card); }
.admin-shell .app-header { display: flex; align-items: center; min-width: 0; gap: 14px; padding-left: 20px; padding-right: 12px; background: rgb(var(--c-primary-deep)); }
.admin-shell .app-header .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.admin-shell .app-header .brand [data-brand-name] { overflow: hidden; text-overflow: ellipsis; }
.admin-shell .app-header .grow { flex: 1 1 0; min-width: 0; }
.user-menu-btn { min-height: 44px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand-logo-card, .brand-icons-card { padding: var(--sp-4); }
.brand-logo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-logo-head h3, .brand-icons-card h3 { margin: 0; font-size: var(--fs-lg); }
.brand-logo-grid { display: grid; gap: 20px; grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 900px) { .brand-logo-grid { grid-template-columns: 1fr; } }
.brand-drop { display: grid; place-items: center; gap: 10px; min-height: 220px; padding: 16px; text-align: center; color: rgb(var(--c-mute));
  border: 2px dashed rgb(185 196 208); border-radius: var(--radius-card); background: rgb(var(--c-surface-2)); }
.brand-drop.is-error { border-color: rgb(var(--c-danger-ink)); background: rgb(var(--c-danger-tint)); }
.brand-drop-art { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 20px; background: rgb(var(--c-surface)); box-shadow: var(--shadow-1); }
.brand-drop-img { width: 96px; height: 96px; object-fit: contain; }
.brand-mono-lg { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 18px; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); font-size: 32px; font-weight: 700; }
.brand-reqs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--fs-md); }
.brand-reqs li { display: flex; gap: 8px; align-items: center; }
.brand-reqs .ico { color: rgb(var(--c-ok-ink)); }
.brand-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.brand-pv { display: grid; gap: 8px; margin-top: 16px; }
.pv-cap { margin: 0; font-size: var(--fs-xs); font-weight: 650; color: rgb(var(--c-ink-3)); }
/* the clinic header is white since V1: preview it that way */
.pv-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid rgb(var(--c-line)); border-radius: 14px; background: rgb(var(--c-surface)); color: rgb(var(--c-ink)); font-weight: 650; }
.pv-bar img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; }
.brand-icons { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
@media (max-width: 1100px) { .brand-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .brand-icons { grid-template-columns: 1fr; } }
.brand-icon-tile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-card); min-width: 0; }
.brand-icon-art { position: relative; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: rgb(var(--c-surface-2)); }
.brand-icon-art img { width: 64px; height: 64px; object-fit: contain; }
.brand-icon-art.is-maskable::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; box-shadow: 0 0 0 40px rgb(21 33 47 / .28); outline: 1px dashed rgb(255 255 255 / .9); pointer-events: none; }

/* roles matrix */
.role-matrix-wrap { overflow: auto; max-width: 100%; }
.role-matrix { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.role-matrix th, .role-matrix td {
  padding: 8px 10px; border-bottom: 1px solid rgb(var(--c-line));
  vertical-align: middle;
}
.role-matrix-sticky {
  position: sticky; left: 0; z-index: 2;
  background: rgb(var(--c-surface));
  min-width: 180px; max-width: 260px;
}
.role-matrix thead .role-matrix-sticky { z-index: 3; background: rgb(var(--c-surface-2)); }
.role-matrix-col { text-align: center; min-width: 100px; }
.role-matrix-group td { background: rgb(var(--c-surface-2)); }

/* devices enrolment code */
.enrol-code {
  font-size: 2rem; font-weight: 700; letter-spacing: 0.2em;
  text-align: center; padding: var(--sp-3);
  background: rgb(var(--c-surface-2)); border-radius: var(--radius-sm);
}
.enrol-code.is-expired { opacity: 0.45; text-decoration: line-through; }
.enrol-countdown { font-variant-numeric: tabular-nums; }

/* glossary pin toggle */
.pin-toggle.is-active,
.pin-toggle[aria-pressed="true"] {
  color: rgb(var(--c-primary)); font-weight: 600;
}
.filter-badge { margin-left: 4px; vertical-align: middle; }

/* legacy admin layout leftovers (unused after shell rewrite; keep harmless) */
.admin-layout { min-height: 100vh; min-height: 100dvh; }
.admin-sidebar { display: none; }
.mobile-topbar { display: none; }
.nav-group-title { padding: 18px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--c-mute)); }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: var(--radius-control); background: transparent; text-align: left; text-decoration: none;
  font-size: 15px; font-weight: 500; color: rgb(var(--c-ink)); cursor: pointer;
}
.nav-item:hover { background: rgb(var(--c-primary) / 0.06); }
.nav-item.is-active { background: rgb(var(--c-primary) / 0.1); color: rgb(var(--c-primary)); font-weight: 600; }

/* Session detail: expandable SOAP versions */
.amend-version > summary { cursor: pointer; }

/* Branding preview: scoped tokens are set on this element by settings.js (CSSOM, no inline style attribute) */
.brand-preview { border: 1px solid rgb(var(--c-line)); border-radius: var(--radius); overflow: hidden; background: rgb(var(--c-bg)); max-width: 420px; }
.brand-preview-bar { background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); padding: var(--sp-2) var(--sp-3); font-weight: 600; }
.brand-preview-body { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3); }
.brand-preview-link { color: rgb(var(--c-primary)); text-decoration: underline; }

/* Skip link: off-screen until focused (BF-022) */
.skip-link { position: absolute; left: var(--sp-2); top: -4rem; z-index: 100; padding: var(--sp-2) var(--sp-3); background: rgb(var(--c-primary)); color: #fff; border-radius: 6px; }
.skip-link:focus { top: var(--sp-2); }

/* ---------- HVOC restyle V3: admin shell, lists, settings ---------- */
/* top bar: deep navy, white brand mark, "<app> Admin" over the clinic name, plain user menu (all >= 44px) */
.admin-shell .app-header .brand { gap: 12px; }
.admin-shell .app-header .brand-mono { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: rgb(var(--c-primary-deep)); box-shadow: none; font-size: 14px; }
.admin-shell .app-header .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 700; }
/* white at 78% on #1F4A68 = about rgb(206 215 222): 6.4:1 */
.brand-clinic { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 500; color: rgb(var(--c-on-primary) / .78); }
.admin-shell .app-header .user-menu-btn { min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill); background: transparent; font-size: var(--fs-md); font-weight: 600; }
.admin-shell .app-header .user-menu-btn:hover, .admin-shell .app-header .user-menu-btn[aria-expanded="true"] { background: rgb(255 255 255 / .12); }
.admin-shell .user-menu-btn > .fw-600 { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .app-header-menu { min-width: 44px; min-height: 44px; }

/* left nav: group labels, icon + label rows, active item as a tinted pill */
.admin-shell .side-nav { padding: 14px 10px; }
.admin-shell .side-nav-group { padding: 14px 14px 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-ink-3)); }
.admin-shell .side-nav-scroll > .side-nav-group:first-child { padding-top: 4px; }
.admin-shell .side-nav-item, .nav-drawer .side-nav-item { min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: rgb(var(--c-mute)); }
.admin-shell .side-nav-item .side-nav-icon { width: 22px; color: inherit; }
.admin-shell .side-nav-item:hover { background: rgb(var(--c-bg)); color: rgb(var(--c-ink)); }
.admin-shell .side-nav-item.is-active { background: rgb(var(--c-vet-tint)); color: rgb(var(--c-primary)); font-weight: 700; }
.admin-shell .side-nav-item.is-active .side-nav-icon { color: rgb(var(--c-primary)); }
/* the nav scrolls, so an outside ring would be clipped: draw it inside the pill */
.admin-shell .side-nav-item:focus-visible, .settings-subnav-item:focus-visible { outline-offset: -3px; }
.admin-shell .side-nav-footer { margin-top: 8px; border-top: 1px solid rgb(var(--c-line)); border-radius: 0 0 12px 12px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .admin-shell .side-nav { width: 72px; padding: 12px 8px; }
  .admin-shell .side-nav-item { justify-content: center; min-height: 48px; padding: 0; }
  .admin-shell .side-nav-group { display: block; height: 1px; margin: 8px 6px; padding: 0; overflow: hidden; font-size: 0; background: rgb(var(--c-line)); }
  .admin-shell .side-nav-scroll > .side-nav-group:first-child { display: none; }
}
.nav-drawer { padding: 12px 10px; }
.nav-drawer-head { min-height: 48px; padding: 0 4px 8px 14px; }
.nav-drawer .side-nav-group { padding: 16px 14px 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-ink-3)); }
.nav-drawer .side-nav-item.is-active { background: rgb(var(--c-vet-tint)); color: rgb(var(--c-primary)); font-weight: 700; }
.nav-drawer .icon-btn { min-width: 44px; min-height: 44px; }

/* page: wider canvas, "Logo not set" amber pill floats beside the page title */
.admin-main { max-width: 1240px; scroll-padding-top: 72px; }
@media (min-width: 1024px) { .admin-main { padding: 22px 28px; } }
.admin-main .page-header { align-items: center; min-height: 44px; }
.admin-main .page-title { font-size: 25px; }
.admin-page { min-width: 0; }
.add-logo {
  float: right; position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; margin: 4px 0 8px 16px; padding: 0 16px; border: 1px solid rgb(var(--c-warn-ink) / .22); border-radius: var(--radius-pill);
  background: rgb(var(--c-warn-tint)); color: rgb(var(--c-warn-ink)); font-size: var(--fs-sm); font-weight: 650; text-decoration: none; white-space: nowrap;
}
.add-logo::after { content: ""; position: absolute; inset: -4px 0; } /* 44px hit area around a 36px pill */
.add-logo:hover { background: rgb(250 234 200); }
@media (max-width: 599px) { .add-logo { float: none; display: flex; width: fit-content; margin: 0 0 12px; } }

/* one-line status banners: slim rounded strips; long safety copy wraps instead of being cut off */
.kiosk-banner-host { margin-bottom: 10px; }
.kiosk-banner.flag { min-height: 40px; padding: 9px 16px; border-radius: 14px; font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.kiosk-banner.flag a { color: inherit; }

/* filter row: rounded 44px fields */
.admin-main .filter-bar { gap: 10px; margin-bottom: 0; }
.admin-main .filter-bar .input, .admin-main .filter-bar .select { min-height: 44px; border-radius: 14px; font-size: 15px; }
.admin-main .filter-bar > .input { width: auto; flex: 0 1 170px; }
.admin-main .filter-bar > .select { width: auto; flex: 0 1 auto; min-width: 150px; }
.admin-main .filter-search { flex: 1 1 240px; max-width: 360px; }
.admin-main .filter-bar .btn-sm { min-height: 44px; }

/* table card: white, rounded, small-caps sticky header, 54px rows; the card scrolls, never the page */
.admin-main .data-table { font-size: var(--fs-md); }
.admin-main .data-table-root .data-table th, .admin-main .data-table-root .data-table td { height: 54px; padding: 0 16px; }
.admin-main .data-table-root .data-table thead th { z-index: 2; height: 42px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-mute)); background: rgb(var(--c-surface-2)); box-shadow: inset 0 -1px 0 rgb(var(--c-line)); }
.admin-main .data-table-root .data-table thead th.mono { font-family: inherit; }
.admin-main .data-table-root.is-comfortable .data-table td { height: 64px; font-size: 15px; }
.data-table tbody tr.is-clickable:focus-visible, .data-table th[tabindex]:focus-visible { outline-offset: -3px; }
.data-table-root > .table-status { order: 1; margin: 0; }
/* empty / error: the message card sits under the header row as one card */
.data-table-root:has(> .table-status:not([hidden]) > .card) > .table-wrap { border-radius: var(--radius-card) var(--radius-card) 0 0; box-shadow: none; }
.data-table-root > .table-status > .card { margin: -12px 0 0; border: 0; border-top: 1px solid rgb(var(--c-line)); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.data-table-root > .table-status > .empty { padding: 32px 16px; }

/* status pills (Draft grey, Approved green, warn amber, danger red) everywhere in admin */
.admin-main .badge { height: 28px; padding: 0 12px; border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-bg)); color: rgb(var(--c-mute)); font-size: var(--fs-sm); white-space: nowrap; }
.admin-main .badge::before { display: none; }
.admin-main .badge-ok { background: rgb(var(--c-ok-tint)); color: rgb(var(--c-ok-ink)); border-color: rgb(var(--c-ok-ink) / .22); }
.admin-main .badge-warn { background: rgb(var(--c-warn-tint)); color: rgb(var(--c-warn-ink)); border-color: rgb(var(--c-warn-ink) / .22); }
.admin-main .badge-danger { background: rgb(var(--c-danger-tint)); color: rgb(var(--c-danger-ink)); border-color: rgb(var(--c-danger-ink) / .22); }
.admin-main .badge-info { background: rgb(var(--c-info-tint)); color: rgb(var(--c-info-ink)); border-color: rgb(var(--c-info-ink) / .18); }

/* lists and settings: rounded white cards, small-caps field labels, pill buttons, white sticky save bar */
.admin-main .list-group { border: 0; border-radius: var(--radius-card); }
.admin-main .list-row { min-height: 56px; padding: 12px 20px; }
.settings-subnav-item { min-height: 48px; }
.settings-section-head .panel-heading { padding: 0; font-size: var(--fs-18); }
.settings-section-head .btn { min-height: 44px; }
/* phones: the active tab already names the section; keep the heading for screen readers so the bar stays one row */
@media (max-width: 599px) {
  .settings-section-head { justify-content: flex-end; padding-left: 16px; }
  .settings-section-head .panel-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .settings-dirty-note { flex: 1 1 0; min-width: 0; }
}
.settings-section .field-label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--c-mute)); }
.settings-section .input, .settings-section .select, .settings-section .textarea { min-height: 44px; border-radius: 14px; }
.settings-section .textarea { min-height: 88px; }
.brand-logo-card, .brand-icons-card { padding: 20px 22px; }
.brand-drop { border-radius: 16px; }
.brand-logo-actions .btn { min-height: 44px; }
.pv-bar .brand-mono { width: 34px; height: 34px; border-radius: 10px; background: rgb(var(--c-primary)); color: rgb(var(--c-on-primary)); box-shadow: none; }
.pv-bar img { box-shadow: inset 0 0 0 1px rgb(var(--c-line)); }
