/* Cabinator HOST APP shell + sidebar (2026-11-12). Loaded AFTER styles.css so it wins.
   Replaces the horizontal .nav-v2 tab strip / More dropdown and the scenic hero bar
   (their old rules in styles.css are now unused). Contrast: white / #0a1a0f on near-black
   green and lime are all > 7:1. */

:root {
  --sb-bg: #07120c;
  --sb-line: rgba(255, 255, 255, .08);
  --sb-open: #153a26;
  --sb-lime: #8ee04a;
  --sb-ink: #ffffff;
  --sb-muted: #b9ccbe;
  --sb-w: 300px;
  --sb-rail-w: 76px;
  --host-header-h: 64px;
  --vab-h: 0px;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
.host-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.host-header {
  position: sticky; top: var(--vab-h); z-index: 60;
  height: var(--host-header-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: linear-gradient(90deg, #0d2a1a, #123522);
  border-bottom: 1px solid var(--sb-line);
}
.host-logo { display: flex; align-items: center; border-radius: 8px; }
.host-logo .cab-sign { height: 42px; width: auto; display: block; animation: none; }
.host-pill {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #b6f27a;
  border: 1.5px solid #6fdc6f; border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
.host-account { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.host-email { font-size: .78rem; color: rgba(255, 255, 255, .7); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; background: none; border: 0; border-radius: 10px;
  color: rgba(255, 255, 255, .8); cursor: pointer;
}
.host-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.host-notify .notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: #e55; border-radius: 50%; border: 1.5px solid #123522; }
.host-logout {
  font-size: .8rem; font-weight: 700; color: #14391f; background: #fff; border: 0; border-radius: 8px;
  padding: 0 14px; min-height: 40px; white-space: nowrap; cursor: pointer;
}
.host-menu-btn {
  display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--sb-line); border-radius: 12px; color: #fff; cursor: pointer;
}

.host-body { display: flex; align-items: flex-start; gap: 18px; padding: 18px; }
.host-main { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 1400px; margin: 0 auto; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.host-sidebar {
  flex: 0 0 var(--sb-w); width: var(--sb-w);
  position: sticky; top: calc(var(--vab-h) + var(--host-header-h) + 18px);
  max-height: calc(100vh - var(--vab-h) - var(--host-header-h) - 36px);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--sb-bg); color: var(--sb-ink);
  border: 1px solid var(--sb-line); border-radius: 24px; padding: 18px 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  scrollbar-width: thin; scrollbar-color: #2c4b38 transparent;
}
.sb-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; row-gap: 12px;
  padding: 0 8px 14px; border-bottom: 1px solid var(--sb-line);
}
.sb-head-icon { color: #6fdc6f; display: flex; }
.sb-ico-compass { width: 38px; height: 38px; }
.sb-title { font-size: 1.55rem; font-weight: 800; letter-spacing: .06em; color: #fff; }
.sb-collapse, .sb-close {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 0; border-radius: 12px; color: var(--sb-muted); cursor: pointer;
}
.sb-collapse:hover, .sb-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sb-collapse .sb-ico, .sb-close .sb-ico { width: 24px; height: 24px; }
.sb-close { display: none; }
.sb-actions { grid-column: 1 / -1; display: flex; gap: 22px; padding-left: 4px; }
.sb-actions .nav-back, .sb-actions .nav-refresh {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  background: none; border: 0; border-radius: 10px; color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.sb-actions .icon, .sb-actions .icon svg { width: 20px; height: 20px; color: #6fdc6f; }
.sb-actions .nav-back:hover, .sb-actions .nav-refresh:hover { background: rgba(255, 255, 255, .08); }
.sb-actions button:disabled { opacity: .45; cursor: default; }
.sb-actions .nav-refresh.syncing .icon { animation: sb-spin 1s linear infinite; }
.sb-actions .nav-refresh.done { color: #b6f27a; }
.sb-actions .nav-refresh.failed { color: #ffb4a8; }

.sb-list { list-style: none; margin: 0; padding: 0; }
.sb-item { border-bottom: 1px solid var(--sb-line); padding: 6px 0; margin: 0; }
.sb-item:last-child { border-bottom: 0; }
.sb-cat-btn, .sb-top-link {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px;
  padding: 8px 12px; border: 0; border-radius: 14px; background: none; color: #fff;
  font: inherit; font-size: 1.08rem; font-weight: 800; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer;
}
.sb-cat-btn:hover, .sb-top-link:hover { background: rgba(255, 255, 255, .06); }
.sb-cat.is-open > .sb-cat-btn { background: var(--sb-open); }
.sb-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sb-sub { display: block; font-size: .92rem; font-weight: 500; color: var(--sb-muted); }
.sb-icon { flex: 0 0 auto; display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; }
.sb-ico { width: 34px; height: 34px; }
.sb-chev { flex: 0 0 auto; width: 22px; height: 22px; color: var(--sb-muted); transition: transform .15s ease; }
.sb-cat.is-open .sb-chev { transform: rotate(180deg); }

/* category colours (line icons) */
.sb-c-lime .sb-icon { color: #8ee04a; }
.sb-c-purple .sb-icon { color: #b58cff; }
.sb-c-blue .sb-icon { color: #3aa2ff; }
.sb-c-orange .sb-icon { color: #ff9f3a; }
.sb-c-green .sb-icon { color: #4fe07a; }
.sb-c-amber .sb-icon { color: #ffb23a; }
.sb-c-slate .sb-icon { color: #c4cdd6; }

/* children: indented with a guide line and ring bullets */
.sb-children { list-style: none; margin: 6px 0 4px 31px; padding: 4px 0 4px 0; border-left: 2px solid rgba(110, 220, 110, .35); }
.sb-child { margin: 2px 0; position: relative; }
.sb-link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; margin-left: 0; padding: 6px 12px 6px 0;
  color: #fff; text-decoration: none; font-size: 1rem; font-weight: 500; border-radius: 999px; cursor: pointer;
}
.sb-bullet {
  flex: 0 0 auto; width: 14px; height: 14px; margin-left: -8px; border-radius: 50%;
  border: 2px solid #6fdc6f; background: var(--sb-bg);
}
.sb-link:hover { background: rgba(255, 255, 255, .07); }
.sb-link[aria-current="page"] { background: var(--sb-lime); color: #0a1a0f; font-weight: 800; padding-left: 0; }
.sb-link[aria-current="page"] .sb-bullet { background: #0a1a0f; border-color: #0a1a0f; box-shadow: 0 0 0 2px var(--sb-lime), 0 0 0 4px #0a1a0f; }
.sb-link[aria-current="page"] .sb-pill { color: #0a1a0f; border-color: #0a1a0f; }
.sb-top-link[aria-current="page"] { background: var(--sb-lime); color: #0a1a0f; }
.sb-top-link[aria-current="page"] .sb-sub { color: #1d3a24; }
.sb-c-lime .sb-top-link[aria-current="page"] .sb-icon, .sb-top-link[aria-current="page"] .sb-icon { color: #0a1a0f; }
.sb-cat.has-current:not(.is-open) > .sb-cat-btn { box-shadow: inset 4px 0 0 var(--sb-lime); }

.sb-pill { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #b6f27a; border: 1px solid #6fdc6f; border-radius: 999px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.sb-soon { color: var(--sb-muted); cursor: default; }
.sb-soon:hover { background: none; }
.sb-pill-soon { color: var(--sb-muted); border-color: rgba(185, 204, 190, .5); }
.sb-soon .sb-bullet { border-style: dashed; border-color: rgba(185, 204, 190, .6); }

/* supplies badge (moved from the old Maintenance tab) */
.sb-link .nav-badge { position: static; margin-left: 6px; flex: 0 0 auto; }

/* focus */
.host-sidebar a:focus-visible, .host-sidebar button:focus-visible, .host-header a:focus-visible,
.host-header button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0a1a0f; }
.sb-link[aria-current="page"]:focus-visible, .sb-top-link[aria-current="page"]:focus-visible { outline-color: #0a1a0f; box-shadow: 0 0 0 5px #fff; }

/* tooltip (rail) */
.sb-tip { position: fixed; z-index: 300; background: #fff; color: #0a1a0f; font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); pointer-events: none; white-space: nowrap; }

/* ── Collapsed desktop rail ────────────────────────────────────────────── */
.sb-rail .host-sidebar { flex-basis: var(--sb-rail-w); width: var(--sb-rail-w); padding: 14px 8px; overflow-x: visible; }
.sb-rail .sb-head { grid-template-columns: 1fr; justify-items: center; padding: 0 0 10px; }
.sb-rail .sb-head-icon, .sb-rail .sb-title { display: none; }
.sb-rail .sb-actions { flex-direction: column; gap: 2px; padding: 0; align-items: center; grid-column: 1; }
.sb-rail .sb-act-label, .sb-rail .sb-label, .sb-rail .sb-chev {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sb-rail .sb-cat-btn, .sb-rail .sb-top-link { justify-content: center; padding: 8px 0; }
.sb-rail .sb-actions .nav-back, .sb-rail .sb-actions .nav-refresh { justify-content: center; width: 52px; padding: 0; }
.sb-rail .sb-item { overflow: visible; }
.sb-rail .sb-children {
  position: fixed; z-index: 250; margin: 0; width: 280px; padding: 10px 12px 10px 20px;
  background: var(--sb-bg); border: 1px solid var(--sb-line); border-left: 2px solid rgba(110, 220, 110, .5); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.sb-rail .sb-children .sb-label { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: normal; }
.sb-rail .sb-cat.is-open > .sb-cat-btn { background: var(--sb-open); }

/* ── Desktop workspace (2026-11-12) ─────────────────────────────────────────
   Header on top, then a workspace that fills the rest of the viewport. The
   sidebar is a full-height panel (not a floating card) and scrolls on its own;
   .host-main is the scroll container for page content, so the sidebar never
   moves while the page scrolls and each region has at most one scrollbar.
   Height uses dvh (vh fallback) minus the admin view-as banner (--vab-h, kept
   current by host-nav.js); the header keeps its own height (--host-header-h).
   Mobile (<=900px) keeps normal document scroll + the slide-out drawer. */
@media (min-width: 901px) {
  body { overflow: hidden; }
  .host-shell { display: flex; flex-direction: column; height: calc(100vh - var(--vab-h)); height: calc(100dvh - var(--vab-h)); overflow: hidden; }
  .host-header { position: relative; top: auto; flex: 0 0 auto; }
  .host-body { flex: 1 1 auto; min-height: 0; padding: 0; gap: 0; align-items: stretch; }
  .host-sidebar {
    position: relative; top: auto; max-height: none; height: auto; align-self: stretch;
    border: 0; border-right: 1px solid var(--sb-line); border-radius: 0;
    box-shadow: 2px 0 14px rgba(0, 0, 0, .25);
  }
  .host-main {
    flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; width: auto;
    height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    padding: 18px; scroll-padding-top: 12px;
  }
  /* Keep the readable max width but centre it inside the scroll area, so the
     scrollbar sits at the window edge rather than beside a 1400px column. */
  .host-main > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
}

/* ── Mobile drawer ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .host-header { padding: 0 12px; gap: 10px; }
  .host-menu-btn { display: flex; }
  .host-email { display: none; }
  .host-logo .cab-sign { height: 34px; }
  .host-body { padding: 12px; display: block; }
  .host-main { max-width: 100%; }
  .host-sidebar {
    position: fixed; z-index: 400; top: 0; left: 0; bottom: 0; width: min(88vw, 340px); max-height: none; height: 100%;
    border-radius: 0 24px 24px 0; padding-top: 16px; transform: translateX(-102%); visibility: hidden;
  }
  .sb-drawer-open .host-sidebar { transform: none; visibility: visible; transition: transform .2s ease, visibility 0s; }
  .host-overlay { position: fixed; inset: 0; z-index: 350; background: rgba(0, 0, 0, .6); }
  .host-overlay[hidden] { display: none; }
  .sb-drawer-open { overflow: hidden; }
  .sb-collapse { display: none; }
  .sb-close { display: flex; }
  .sb-head { grid-template-columns: auto 1fr auto; }
  .host-pill { font-size: .7rem; padding: 2px 9px; }
}
@media (max-width: 520px) { .host-pill { display: none; } .host-logo .cab-sign { height: 30px; } .host-logout { padding: 0 12px; } .host-account { gap: .15rem; } }

/* motion only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .host-sidebar { transition: transform .2s ease, visibility .2s; }
  .host-sidebar, .sb-children { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) { .sb-chev, .host-sidebar { transition: none; } .sb-actions .nav-refresh.syncing .icon { animation: none; } }
@keyframes sb-spin { to { transform: rotate(360deg); } }

/* the fixed-height rail must not trap wide tables: they scroll inside their own wrappers */
.host-main .analytics-table-wrap, .host-main #cal-grid { max-width: 100%; }

/* ── Neutralise legacy .tab rules (styles.css) on sidebar links ─────────────
   Primary links keep class "tab" so app.js's loaders and programmatic
   `.tab[data-view].click()` calls keep working; the old tab-strip look must not
   leak onto them. app.js toggles .tab.active, which here must never colour
   anything — only aria-current (the single selected destination) does. */
.host-sidebar .sb-link, .host-sidebar .sb-top-link { white-space: normal; transition: none; box-shadow: none; }
.host-sidebar .tab, .host-sidebar .tab.active, .host-sidebar .tab:hover:not(.active) { box-shadow: none; font-weight: inherit; }
.host-sidebar .sb-link.tab, .host-sidebar .sb-link.tab.active { background: transparent; color: #fff; font-weight: 500; }
.host-sidebar .sb-top-link.tab, .host-sidebar .sb-top-link.tab.active { background: transparent; color: #fff; font-weight: 800; }
.host-sidebar .sb-link.tab:hover:not(.active), .host-sidebar .sb-link.tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.host-sidebar .sb-top-link.tab:hover:not(.active), .host-sidebar .sb-top-link.tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.host-sidebar .sb-link[aria-current="page"], .host-sidebar .sb-link.tab[aria-current="page"],
.host-sidebar .sb-link.tab.active[aria-current="page"], .host-sidebar .sb-link.tab:hover[aria-current="page"] { background: var(--sb-lime); color: #0a1a0f; font-weight: 800; }
.host-sidebar .sb-top-link[aria-current="page"], .host-sidebar .sb-top-link.tab[aria-current="page"],
.host-sidebar .sb-top-link.tab.active[aria-current="page"], .host-sidebar .sb-top-link.tab:hover[aria-current="page"] { background: var(--sb-lime); color: #0a1a0f; font-weight: 800; }
.sb-rail .host-sidebar .sb-children .sb-link { white-space: normal; }

/* Section links must not land underneath the sticky header. */
html { scroll-padding-top: calc(var(--vab-h) + var(--host-header-h) + 12px); }

/* ── Sidebar as a column: fixed head, scrolling navigation, pinned Support (2026-11-12) ── */
.host-sidebar { display: flex; flex-direction: column; overflow: hidden; }
.sb-head { flex: 0 0 auto; }
.sb-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2c4b38 transparent; }
.sb-foot { flex: 0 0 auto; border-top: 1px solid var(--sb-line); padding-top: 6px; margin-top: 4px; }
.sb-foot .sb-top-link { min-height: 56px; }
.sb-c-coral .sb-icon { color: #ff6b5e; }
.sb-foot .sb-top-link[aria-current="page"] .sb-icon { color: #0a1a0f; }
.sb-rail .sb-nav { overflow-x: hidden; }
.sb-rail .sb-foot .sb-top-link { justify-content: center; padding: 8px 0; }
.sb-rail .sb-foot .sb-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* a long flyout (Settings has nine items) must stay reachable on short screens */
.sb-rail .sb-children { max-height: calc(100vh - 16px); overflow-y: auto; }
@media (min-width: 901px) { .sb-nav { padding-bottom: 6px; } }

/* ── Settings workspace (2026-11-12): focused white panels on the green app shell ── */
.set-wrap { max-width: 1100px; margin: 0 auto; }
.set-head { margin: 0 0 16px; color: #fff; }
.set-crumb { font-size: .95rem; color: #cfe3d4; margin-bottom: 6px; }
.set-crumb a { color: #6fdc6f; text-decoration: none; font-weight: 600; }
.set-crumb a:hover { text-decoration: underline; }
.set-head h2 { margin: 0 0 4px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; color: #fff; }
.set-head h2:focus { outline: none; }
.set-head p { margin: 0; color: #cfe3d4; font-size: 1.02rem; max-width: 62ch; }
.set-panel[hidden] { display: none; }
.set-card { background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); margin: 0 0 16px; overflow: hidden; color: var(--ink, #1c2a21); }
.set-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #fff; }
.set-card-head.blue { background: #175a9c; }
.set-card-head.teal { background: #0b7c86; }
.set-card-head svg { width: 26px; height: 26px; flex: 0 0 auto; }
.set-card-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.set-card-body { padding: 16px 18px 18px; }
.set-card-body .settings-group { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.set-card-body .settings-group + .settings-group { margin-top: 14px; }
.set-card-body > label, .set-card-body .toggle-row { max-width: 640px; }
.set-card-body .settings-two-column { max-width: 760px; }
.set-card-body .billing-panel { margin: 0; padding: 0; border: 0; }
.set-card-body #password-panel { max-width: 520px; margin: 0; padding: 0; border: 0; }
.set-card-body .channels-scroll { max-width: 100%; overflow-x: auto; }
.set-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4e9e2; }
.set-actions .primary-action { min-height: 44px; padding: 0 22px; }
.set-actions .set-save.is-dirty { box-shadow: 0 0 0 3px rgba(111, 220, 111, .55); }
.set-status { font-size: .92rem; font-weight: 600; }
.set-status[data-kind="ok"] { color: #137a3f; }
.set-status[data-kind="error"] { color: #b3261e; }
.set-status[data-kind="busy"] { color: #5d6b60; }
@media (max-width: 900px) { .set-head h2 { font-size: 1.6rem; } .set-card-head { padding: 10px 14px; } .set-card-body { padding: 14px; } }

/* ── Regulatory Compliance (2026-11-12): navy jurisdiction band, category cards, source strip ── */
#compliance .set-head { max-width: 1200px; margin-left: 0; }
.cmp-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: #0b1b34; border: 3px solid #f2b52d; border-radius: 16px; padding: 12px 16px; margin: 0 0 12px; max-width: 1200px; }
.cmp-band-field { display: grid; grid-template-columns: auto minmax(0, 8.5rem) minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px; color: #fff; }
.cmp-band-field + .cmp-band-field { border-left: 1px solid rgba(255, 255, 255, .25); }
.cmp-band-ico { display: flex; color: #f2b52d; }
.cmp-band-ico svg { width: 30px; height: 30px; }
.cmp-band-field label { font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.cmp-band-field select { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 1rem; font-weight: 600; color: #0b1b34; background: #fff; border: 0; border-radius: 10px; }
.cmp-band-field select:disabled { opacity: .7; }
.cmp-band select:focus-visible { outline: 3px solid #f2b52d; outline-offset: 2px; }
.cmp-disclaimer { display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 0 12px; padding: 10px 14px; background: #fdf0c9; border: 1px solid #e6c36a; border-radius: 10px; color: #6b4a06; font-size: .95rem; }
.cmp-disclaimer svg { width: 22px; height: 22px; flex: 0 0 auto; }
.cmp-hint { max-width: 1200px; margin: 0 0 10px; min-height: 0; color: #ffe39a; font-weight: 700; font-size: .95rem; }
.cmp-hint:empty { display: none; }

.cmp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1200px; margin: 0 0 16px; }
.cmp-card { --c: #175a9c; --c2: #e8f1fb; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); display: flex; flex-direction: column; }
.cmp-card.teal { --c: #0b7c86; --c2: #dff3f2; }
.cmp-card.purple { --c: #6b2fb0; --c2: #efe6fb; }
.cmp-card.amber { --c: #d98a0b; --c2: #fdf0d6; }
.cmp-card-wide { grid-column: 1 / -1; }
.cmp-card-head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; background: var(--c); color: #fff; font-size: 1.25rem; font-weight: 800; }
.cmp-card-head svg { width: 26px; height: 26px; flex: 0 0 auto; }
.cmp-card-body { display: flex; align-items: center; gap: 16px; padding: 14px 16px; flex: 1; }
.cmp-card-ico { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 14px; background: var(--c2); color: var(--c); }
.cmp-card-ico svg { width: 46px; height: 46px; }
.cmp-card-text { padding-left: 16px; border-left: 1px solid #d5dbd6; min-width: 0; }
.cmp-card-text p { margin: 0 0 6px; color: #1c2a21; font-size: 1.02rem; line-height: 1.4; }
.cmp-card .cmp-card-count { color: #5a6b60; font-size: .85rem; font-weight: 700; margin: 0 0 6px; }
.cmp-card .cmp-card-count:empty { display: none; }
.cmp-card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: #0b57b8; font: inherit; font-size: 1.05rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cmp-card-link:hover { color: #083f87; }
.cmp-card-link:focus-visible { outline: 3px solid #0b57b8; outline-offset: 3px; border-radius: 4px; }
.cmp-card-wide .cmp-card-body { flex-wrap: wrap; }
.cmp-card-wide .cmp-card-ico { width: 64px; height: 64px; }
.cmp-card-wide .cmp-card-text { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex: 1; flex-wrap: wrap; }
.cmp-card-wide .cmp-card-text p { margin: 0; }

#cmp-page { max-width: 1200px; margin: 0 0 16px; }
#cmp-page:empty { display: none; }
.cmp-source { max-width: 1200px; background: #fff; border: 2px solid #9dbbe0; border-radius: 14px; padding: 14px 18px; margin: 0 0 14px; color: #1c2a21; }
.cmp-source h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.2rem; }
.cmp-source h3 svg { width: 24px; height: 24px; color: #175a9c; }
.cmp-source-sub { margin: 2px 0 12px 34px; color: #3b4a40; font-size: .92rem; }
.cmp-source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cmp-source-grid > div + div { border-left: 1px solid #cfd8d1; padding-left: 14px; }
.cmp-source-grid dt { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; }
.cmp-source-grid dt svg { width: 22px; height: 22px; color: #175a9c; flex: 0 0 auto; }
.cmp-source-grid dd { margin: 4px 0 0 30px; color: #3b4a40; font-size: .92rem; overflow-wrap: anywhere; }
.cmp-source-grid a { color: #0b57b8; font-weight: 700; }
#compliance .cmp-foot { margin-left: 0; text-align: left; max-width: 1200px; }

@media (max-width: 900px) {
  .cmp-band { grid-template-columns: 1fr; }
  .cmp-band-field + .cmp-band-field { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .cmp-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-source-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .cmp-cards { grid-template-columns: 1fr; }
  .cmp-band-field { grid-template-columns: auto minmax(0, 1fr); }
  .cmp-band-field select { grid-column: 1 / -1; }
  .cmp-card-ico { width: 64px; height: 64px; }
  .cmp-card-ico svg { width: 36px; height: 36px; }
  .cmp-card-head { font-size: 1.1rem; }
  .cmp-source-grid { grid-template-columns: 1fr; }
  .cmp-source-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid #cfd8d1; padding-top: 10px; }
}
.cmp-band .cmp-band-field label { color: #fff; margin: 0; }

/* Sidebar icon standardisation (2026-11-22). Primary categories show the approved glossy artwork;
   submenu links show a small Lucide line icon in their parent category's accent colour, replacing
   the old ring bullets. Layout, spacing and the vertical connector line are unchanged. */
.sb-icon-img { display: block; width: 38px; height: 38px; object-fit: contain; }
.sb-cat[data-cat="automations-app"] { --sb-acc: #11bfb4; }
.sb-cat[data-cat="guest-experience-rewards"] { --sb-acc: #367deb; }
.sb-cat[data-cat="guest-readiness-messaging"] { --sb-acc: #29bc63; }
.sb-cat[data-cat="operations-team"] { --sb-acc: #ed951e; }
.sb-cat[data-cat="pricing-analytics"] { --sb-acc: #a774f5; }
.sb-cat[data-cat="settings-cat"] { --sb-acc: #29bc63; }
.sb-cico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 -5px 0 -13px; border-radius: 50%; background: var(--sb-bg); color: var(--sb-acc, #6fdc6f); }
.sb-cico-svg { width: 18px; height: 18px; stroke-width: 1.9; }
.sb-link[aria-current="page"] .sb-cico { background: #0a1a0f; color: var(--sb-lime); }
.sb-soon .sb-cico { color: rgba(185, 204, 190, .55); }

/* Account block in the sidebar footer (2026-11-24): login email + Log Out moved here from the page's top-right. */
.host-email, .host-logout { display: none !important; }
.sb-account { padding: 6px 12px 2px; }
.sb-account-email { display: block; font-size: .78rem; color: #cfe0d4; overflow-wrap: anywhere; word-break: break-word; line-height: 1.25; padding: 2px 4px 4px; }
.sb-account-email:empty { display: none; }
.sb-foot .sb-logout { width: 100%; min-height: 44px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.sb-rail .sb-account { padding: 4px 0 0; }
.sb-rail .sb-account-email { display: none; }
