/* =============================================================================
   ISS Investigations — single responsive stylesheet
   Mobile-first: base styles target phones; min-width queries add density.
   Breakpoints: 560 / 640 / 720 / 900 / 1024 / 1100 px.
   Radius policy (documented, applied consistently):
     buttons, chips, badges, pagination = pill (999px)
     cards, panels, modals            = 14-16px
     inputs, selects, textareas       = 10px
   Brand: navy #0b1220, gold #c9943a / #e3bd45, warm white #f7f6f2.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy-950: #070d19;
  --navy-900: #0b1220;
  --navy-800: #111a2e;
  --navy-700: #1a2740;
  --navy-600: #243352;

  --gold: #c9943a;
  --gold-2: #e3bd45;
  --gold-ink: #8a6420;
  --gold-tint: #f7f1e2;
  --gold-tint-2: #fdf8ec;
  --orange: #c77b2a;

  --ink: #172033;
  --mut: #5a6478;
  --line: #e6e3da;
  --line-2: #cfd6e3;
  --paper: #f7f6f2;
  --white: #ffffff;

  --ok: #1f7a4d;
  --err: #b3362b;
  --info: #2b5a9e;
  --amber: #a8631c;
  --link: #1c3f74;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1160px;
  --section-y: clamp(2.6rem, 6vw, 4rem);
  --shadow-1: 0 1px 2px rgba(23, 32, 51, .06), 0 6px 18px rgba(23, 32, 51, .07);
  --shadow-2: 0 2px 4px rgba(23, 32, 51, .08), 0 16px 40px rgba(23, 32, 51, .14);
  --focus: rgba(201, 148, 58, .65);
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.public-page { min-height: 100dvh; display: flex; flex-direction: column; }
body.public-page > main { flex: 1 0 auto; }

body.modal-open, body.cmdk-open { overflow: hidden; }
body.modal-open .callback-fab { display: none; }

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.16;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  font-weight: 700;
  color: inherit;
}
h1 { font-size: clamp(1.75rem, 4.6vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.95rem); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
h4 { font-size: 1rem; }
h1, h2 { text-wrap: balance; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

::selection { background: rgba(201, 148, 58, .28); }

[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: fixed; top: .6rem; left: .6rem; z-index: 200;
  transform: translateY(-220%);
  background: var(--navy-900); color: #fff;
  padding: .65rem 1.1rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
  transition: transform .15s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* Inline SVG icons from the icon() helper */
.ic, .ic-s { display: inline-block; vertical-align: -.18em; flex: none; }
svg.ic { width: 24px; height: 24px; }
svg.ic-s { width: 16px; height: 16px; }

/* 3. Typography utilities -------------------------------------------------- */
.mut { color: var(--mut); }
.small { font-size: .82rem; }
.lead { font-size: clamp(1.02rem, 2vw, 1.12rem); color: var(--mut); max-width: 62ch; }
.center { text-align: center; }
.text-right { text-align: right; }
.gold { color: var(--gold-ink); font-weight: 600; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tight { }
.ok { color: var(--ok); }
.bad { color: var(--err); }
.bad-text { color: var(--err); font-size: .8rem; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: ""; width: 1.15rem; height: 2px; flex: none;
  background: var(--gold); border-radius: 2px;
}
.eyebrow a { color: inherit; text-decoration: none; }

.hero .eyebrow, .page-head .eyebrow, .band-dark .eyebrow,
.card-dark .eyebrow, .site-footer .eyebrow, .app-side .eyebrow {
  color: var(--gold-2);
}
.hero .eyebrow::before, .page-head .eyebrow::before, .band-dark .eyebrow::before,
.card-dark .eyebrow::before, .site-footer .eyebrow::before {
  background: var(--gold-2);
}

/* 4. Layout ----------------------------------------------------------------- */
.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section.tight { padding-block: calc(var(--section-y) * .62); }

.band-dark {
  background: linear-gradient(180deg, #0d1526, var(--navy-900) 70%);
  color: #e6ebf4;
}
.band-dark h2, .band-dark h3 { color: #fff; }

.page-head {
  background:
    radial-gradient(70rem 26rem at 88% -20%, rgba(201, 148, 58, .18), transparent 60%),
    linear-gradient(180deg, #0d1526, var(--navy-900));
  color: #fff;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head p { color: #b9c2d2; max-width: 70ch; margin-top: .55rem; }

.split { display: grid; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }

.grid { display: grid; gap: clamp(.9rem, 2vw, 1.2rem); }

.cols-2 { display: grid; gap: 1.1rem; }

.spacer { height: 1.2rem; }
.spacer-inline { display: inline-block; width: .9rem; }
.p0 { padding: 0 !important; }

.empty {
  padding: 1.6rem 1rem; text-align: center;
  color: var(--mut); font-size: .9rem;
  border: 1px dashed var(--line-2); border-radius: 12px;
  background: rgba(255, 255, 255, .5);
}

@media (min-width: 640px) {
  .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { align-items: start; }
}
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 5. Buttons & badges -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, transform .12s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .ic-s { width: 15px; height: 15px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }

.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-2); box-shadow: 0 6px 18px rgba(201, 148, 58, .35); }

.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy-700); background: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #9c2c23; }

.btn-sm { min-height: 38px; padding: .42rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }

.card-dark .btn-ghost, .band-dark .btn-ghost,
.site-footer .btn-ghost, .app-side .btn-ghost {
  color: #e6ebf4; border-color: rgba(255, 255, 255, .3);
}
.card-dark .btn-ghost:hover, .band-dark .btn-ghost:hover,
.site-footer .btn-ghost:hover, .app-side .btn-ghost:hover {
  background: rgba(255, 255, 255, .1); border-color: #fff;
}
.card-dark a:not(.btn), .band-dark a:not(.btn) { color: var(--gold-2); }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .03em;
  padding: .22rem .6rem; border-radius: 999px;
  background: #eef1f6; color: #44506a;
  white-space: nowrap;
}
.b-red   { background: #fdecea; color: #8f2b22; }
.b-amber { background: #fdf3e2; color: #8a5a1a; }
.b-green { background: #e7f4ec; color: #1f6b45; }
.b-blue  { background: #e9f1fb; color: #28527d; }
.b-slate { background: #eef1f6; color: #4a5568; }
.b-gold  { background: #f7ecd4; color: #7c5a17; }
.b-meta  { background: #f1f2f5; color: var(--mut); }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--gold-tint);
  border: 1px solid transparent;
  padding: .24rem .6rem; border-radius: 999px;
  text-decoration: none;
}
.tag.is-on { background: var(--navy-900); color: #fff; }
.tag svg { width: 13px; height: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line-2);
  padding: .3rem .75rem; border-radius: 999px;
  text-decoration: none;
}
.chip:hover { border-color: var(--gold); color: var(--gold-ink); }
.chip.is-on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.tag, .chip, .badge { align-self: flex-start; }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pill-n {
  display: inline-block;
  font-size: .66rem; font-weight: 700;
  background: rgba(23, 32, 51, .08);
  border-radius: 999px;
  padding: .05rem .4rem;
  margin-left: .3rem;
  color: inherit;
}

.dot { color: var(--line-2); margin-inline: .15rem; }

/* 6. Cards & panels ---------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  min-width: 0;
}
a.card {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: #d9cfb9;
}
.card h3 { margin: .55rem 0 .35rem; }
.card > p { color: var(--mut); font-size: .9rem; }

.card-dark {
  background: linear-gradient(165deg, #111b30, #0c1424);
  border-color: #22314e;
  color: #dfe6f2;
}
.card-dark h3 { color: #fff; }
.card-dark p, .card-dark .mut { color: #b9c2d2; }
.card-dark .tag { background: rgba(227, 189, 69, .14); color: var(--gold-2); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.panel + .panel { margin-top: 1rem; }
.panel-head {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1rem; justify-content: space-between;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; }
.panel-body { padding: 1.1rem; }
.panel-dark {
  background: linear-gradient(165deg, #111b30, #0c1424);
  border-color: #22314e; color: #dfe6f2;
}
.panel-dark .panel-head { border-color: rgba(255, 255, 255, .12); }
.panel-dark h2, .panel-dark h3 { color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1rem; }
.toolbar form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }

.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row-action { font-size: .85rem; font-weight: 600; }

.ic-wrap {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-ink);
  border-radius: 12px;
}
.ic-wrap svg { width: 22px; height: 22px; }

.price { margin-top: auto; padding-top: .7rem; font-size: .85rem; color: var(--mut); }
.price strong { color: var(--gold-ink); }

/* 7. Header ------------------------------------------------------------------ */
.site-header {
  position: relative; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .site-header { position: sticky; top: 0; }
}

.header-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem 1rem;
  padding-block: .65rem;
}
.header-row > .brand { flex: 1 1 auto; min-width: 0; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: inherit;
}
.brand-logo {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%; object-fit: contain;
}
.brand span {
  display: grid; min-width: 0; overflow: hidden;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1rem; line-height: 1.15;
  letter-spacing: -.01em;
}
.brand small {
  font-family: var(--font-body);
  font-weight: 600; font-size: .52rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--mut); margin-top: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.header-call {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.header-call:hover { border-color: var(--navy-700); }
.header-call svg { width: 20px; height: 20px; }

.nav-toggle {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.nav-toggle-open, .nav-toggle-close { display: grid; place-items: center; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: grid; }

.header-cta { flex: 0 0 100%; order: 9; min-height: 44px; }
.header-cta svg { width: 15px; height: 15px; }
.header-register { flex: 0 0 100%; order: 8; min-height: 44px; }
.header-register svg { width: 15px; height: 15px; }

/* Mobile navigation panel */
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(9, 16, 30, .18);
  padding: .55rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 70;
}
.nav.open {
  display: block;
  height: calc(100dvh - 100%);
  max-height: none;
  animation: nav-drop .18s ease-out;
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 1239px) {
  body.nav-open { overflow: hidden; }
  body.nav-open .callback-fab { display: none; }
}
@media (max-width: 759px) {
  body.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
}

.nav > a,
.nav-dd > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem .15rem;
  font-weight: 600; font-size: .96rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.nav > a { border-bottom: 1px solid var(--line); }
.nav-dd { border-bottom: 1px solid var(--line); }
.nav > a:hover, .nav-dd > summary:hover { color: var(--gold-ink); }
.nav > a.on, .nav-dd > summary.on { color: var(--gold-ink); }
.nav > a.on { box-shadow: inset 3px 0 0 var(--gold); padding-left: .6rem; }

.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd[open] > summary {
  color: var(--gold-ink);
  background: #fbfaf7;
  border-radius: 8px;
  padding-inline: .55rem;
}

.nav-caret {
  width: 8px; height: 8px; flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .18s ease;
}
.nav-dd[open] .nav-caret { transform: rotate(-135deg); margin-top: 3px; }

.nav-dd-panel {
  display: block;
  margin: 0 0 .35rem .3rem;
  padding: .15rem 0 .35rem .95rem;
  border-left: 2px solid var(--gold-tint);
}
.nav-dd-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .2rem;
  font-size: .9rem; color: var(--mut);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-dd-panel a:hover { color: var(--ink); }
.nav-dd-panel a.on { color: var(--gold-ink); font-weight: 600; }
.nav-dd-panel .dd-all {
  font-weight: 700; color: var(--gold-ink);
  border-bottom: 1px dashed var(--line);
  margin-bottom: .25rem; padding-bottom: .6rem;
}

.nav-search { display: flex; gap: .45rem; margin-top: .9rem; }
.nav-search input { flex: 1; min-height: 46px; }
.nav-search button {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--navy-900); color: #fff;
  border: 0; border-radius: 10px; cursor: pointer;
}
.nav-search button svg { width: 18px; height: 18px; }

.nav-mobile-actions {
  display: grid; gap: .55rem;
  margin-top: 1rem; padding-top: .95rem;
  border-top: 1px solid var(--line);
}
.nav-actions-label {
  font-size: .63rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mut);
}
.nav-mobile-actions .btn { width: 100%; min-height: 46px; }

.header-rail {
  background: var(--navy-900);
  color: #aeb8cc;
  font-size: .72rem;
  padding-block: .4rem;
}
.header-rail .wrap {
  display: flex; flex-wrap: wrap; gap: .25rem 1.1rem;
  justify-content: center;
}
.header-rail span { display: inline-flex; align-items: center; gap: .32rem; }
.header-rail .ic-s { width: 13px; height: 13px; color: var(--gold-2); }

@media (max-width: 719px) {
  .header-row { flex-wrap: nowrap; gap: .5rem; padding-block: .55rem; }
  .header-row > .brand { gap: .55rem; }
  .brand-logo { width: 42px; height: 42px; }
  .brand span { font-size: .95rem; }
  .header-cta, .header-register { display: none; }
  .header-rail { padding-block: .32rem; font-size: .65rem; }
  .header-rail .wrap {
    width: 100%; max-width: none;
    flex-wrap: nowrap; justify-content: flex-start;
    gap: .9rem; padding-inline: 1.1rem;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header-rail .wrap::-webkit-scrollbar { display: none; }
  .header-rail span { flex: 0 0 auto; white-space: nowrap; }
}

@media (min-width: 720px) {
  .header-cta, .header-register { flex: 0 0 auto; order: 0; }
  .header-row { flex-wrap: nowrap; }
  .nav-mobile-actions { display: none; }
}
@media (min-width: 1240px) {
  .nav-toggle, .header-call { display: none; }
  .brand small { display: none; }
  .header-row { gap: .45rem .5rem; }
  .nav {
    position: static; display: flex; align-items: center;
    gap: .1rem; margin-left: auto; margin-right: .4rem;
    padding: 0; border: 0; box-shadow: none;
    max-height: none; overflow: visible;
    background: transparent;
  }
  .nav > a, .nav-dd > summary {
    min-height: 0; padding: .45rem .4rem;
    border: 0; border-radius: 8px;
    font-size: .84rem;
    white-space: nowrap;
  }
  .nav > a:hover, .nav-dd > summary:hover { background: #f2f4f9; }
  .nav > a.on { box-shadow: none; padding-left: .4rem; background: var(--gold-tint); }
  .nav-dd { position: relative; border: 0; }
  .nav-dd-panel {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: .5rem;
    z-index: 75;
  }
  .nav-dd[open] .nav-dd-panel { display: block; }
  .nav-dd-panel a {
    padding: .5rem .65rem; border-radius: 8px;
    font-size: .9rem; color: var(--ink);
  }
  .nav-dd-panel a:hover { background: #f2f4f9; }
  .nav-dd-panel .dd-all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: .3rem; }
  .nav-search { display: flex; margin: 0 .15rem 0 .35rem; padding: 0; border: 0; background: none; gap: 0; }
  .nav-search input { display: none; }
  .nav-search button { width: 40px; height: 40px; border-radius: 8px; }
  .header-register { padding-inline: .55rem; }
  .header-register .ic-s { display: none; }
}

/* 8. Hero -------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(70rem 34rem at 86% -14%, rgba(201, 148, 58, .17), transparent 62%),
    linear-gradient(180deg, #0d1526, var(--navy-900) 62%);
  color: #eef2f8;
  padding-block: clamp(2.6rem, 7vw, 4.4rem) clamp(2.4rem, 6vw, 3.4rem);
}
.hero-layout { display: grid; gap: 2.2rem; align-items: center; }
.hero-title {
  color: #fff;
  font-size: clamp(1.9rem, 6.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: .7rem 0 1rem;
}
.hero-title em { color: var(--gold-2); font-style: normal; }
.hero-title-sub { display: block; }
.hero .lead { color: #b9c2d2; }

.hero-cta { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.hero-quick {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  margin-top: 1.25rem; font-size: .86rem;
}
.hero-quick a {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #cfd6e4; text-decoration: none;
  padding-block: .2rem;
}
.hero-quick a:hover { color: #fff; text-decoration: underline; }
.hero-quick svg { width: 15px; height: 15px; color: var(--gold-2); }

.hero-visual { display: none; }

@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero-layout { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .hero-visual { display: block; min-width: 0; }
}

.hv-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #8fa0c0;
}
.hv-live { color: var(--gold-2); display: inline-flex; align-items: center; gap: .4rem; }
.hv-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 0 4px rgba(227, 189, 69, .18);
}
.hv-stage { position: relative; aspect-ratio: 1; max-width: 400px; margin: 1.1rem auto 0; }
.hv-links { position: absolute; inset: 0; width: 100%; height: 100%; color: #d8b45a; }
.hv-links path { stroke: currentColor; stroke-width: 1.4; opacity: .45; }
.hv-links circle { stroke: currentColor; }

.hv-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center; gap: .15rem;
  text-align: center;
  min-width: 190px;
  padding: 1.35rem 1.5rem;
  background: rgba(13, 21, 38, .94);
  border: 1px solid rgba(227, 189, 69, .38);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(3, 8, 17, .5);
}
.hv-core svg { width: 30px; height: 30px; color: var(--gold-2); margin-bottom: .25rem; }
.hv-core b { font-size: .8rem; color: #fff; }
.hv-core small { font-size: .66rem; color: #93a1bc; letter-spacing: .05em; }

.hv-pulse {
  position: absolute; inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(227, 189, 69, .45);
  animation: hvPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes hvPulse {
  0% { transform: scale(1); opacity: .65; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.hv-node {
  position: absolute;
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .38rem .72rem;
  font-size: .7rem; color: #c9d2e2;
  background: rgba(13, 21, 38, .92);
  border: 1px solid #243352;
  border-radius: 999px;
  white-space: nowrap;
}
.hv-node i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); flex: none; }
.hv-n1 { top: 3%; left: -2%; }
.hv-n2 { top: 37%; right: -3%; }
.hv-n3 { bottom: 5%; left: 1%; }

.hv-foot {
  display: flex; justify-content: space-between; gap: .5rem;
  margin-top: 1.1rem;
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: #7e8aa3;
}

/* 9. Credential band & stats -------------------------------------------------- */
.credential-band {
  background: var(--navy-800);
  border-top: 1px solid rgba(227, 189, 69, .18);
  padding-block: 1.1rem;
}
.credential-band-inner { display: grid; gap: .9rem; }
.credential-item { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.credential-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: rgba(227, 189, 69, .13);
  color: var(--gold-2);
  border-radius: 10px;
}
.credential-icon svg { width: 19px; height: 19px; }
.credential-item b { display: block; color: #fff; font-size: .86rem; line-height: 1.25; }
.credential-item > div > span { display: block; color: #93a1bc; font-size: .74rem; line-height: 1.35; }

@media (min-width: 640px) { .credential-band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; } }
@media (min-width: 1080px) { .credential-band-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.stats-band:not(:has(.stat b:not(:empty))) { display: none; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.1;
  color: var(--navy-900);
}
.stat span { display: block; margin-top: .2rem; font-size: .8rem; color: var(--mut); }
@media (min-width: 780px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 10. Lists, steps, pipeline --------------------------------------------------- */
.check-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.check-list svg { width: 17px; height: 17px; flex: none; margin-top: .18rem; color: var(--gold-ink); }
.band-dark .check-list svg, .card-dark .check-list svg { color: var(--gold-2); }

.steps { display: grid; gap: 1.2rem; }
.step { border-top: 3px solid var(--gold); padding-top: .9rem; }
.step h3 { margin: 0 0 .3rem; font-size: 1rem; }
.step p { margin: 0; font-size: .88rem; color: var(--mut); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pipeline { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pipeline li { display: flex; gap: .7rem; }
.pipeline-num {
  flex: none;
  font-family: var(--font-head);
  font-weight: 800; font-size: .95rem;
  color: var(--gold-2);
  padding-top: .1rem;
}
.pipeline b { color: #fff; font-size: .92rem; display: block; }
.pipeline p { margin: .15rem 0 0; font-size: .85rem; color: #b9c2d2; }

.review { display: flex; flex-direction: column; gap: .5rem; }
.review > div:last-child { display: flex; justify-content: space-between; gap: .6rem; margin-top: .8rem; }

.stars { display: inline-flex; gap: 2px; color: #cfc3a4; }
.stars .star.on { color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

.review .who { font-weight: 700; font-size: .9rem; }
.when { font-size: .78rem; color: var(--mut); }

/* 11. Forms -------------------------------------------------------------------- */
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* keeps iOS from zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .62rem .8rem;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 132px; resize: vertical; }

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 148, 58, .22);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a6478' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px;
}

input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; min-height: 0; flex: none;
  accent-color: var(--gold);
  margin: .18rem 0 0;
  padding: 0;
}
input[type="file"] { padding: .5rem .6rem; font-size: .88rem; }

.field { display: grid; gap: .32rem; margin-bottom: 1rem; }
.field > label { font-weight: 600; font-size: .87rem; }
.field .hint { margin: 0; }

.hint { font-size: .8rem; color: var(--mut); }

/* Anti-spam honeypot: in the markup for bots, out of view and screen readers. */
.antispam { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check-inline { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.field-check { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .9rem; }

.form-grid { display: grid; gap: .2rem .95rem; }
.form-grid .field { margin-bottom: .85rem; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  min-width: 0;
}
.form-section {
  border-top: 1px solid var(--line);
  margin-top: .5rem; padding-top: 1.1rem;
  display: grid; gap: .2rem;
}
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.form-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .form-actions .btn { flex: 0 0 auto; } }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}

.note {
  display: flex; gap: .6rem; align-items: flex-start;
  background: #f4f6fa;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .9rem;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: .18rem; color: var(--gold-ink); }

.guarantee {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--gold-tint-2);
  border: 1px solid #ecdfc0;
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
}
.guarantee-icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy-900);
  border-radius: 12px;
}
.guarantee-icon svg { width: 20px; height: 20px; }
.guarantee b { display: block; margin-bottom: .2rem; }
.guarantee p { margin: 0; font-size: .88rem; color: var(--mut); }

.flash {
  display: block;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  border-left-width: 4px;
  font-size: .92rem;
  margin-bottom: 1rem;
}
.flash-ok { background: #e9f5ee; border-color: #bfe0cc; border-left-color: var(--ok); color: #185c3a; }
.flash-err { background: #fceceb; border-color: #efc4c0; border-left-color: var(--err); color: #8f2b22; }
.flash-info { background: #eaf1fb; border-color: #c6d8f2; border-left-color: var(--info); color: #24527f; }

/* Image upload widgets */
.image-field { display: grid; gap: .6rem; }
.image-drop {
  border: 2px dashed var(--line-2);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  color: var(--mut);
  font-size: .88rem;
  background: #fafbfd;
}
.image-drop:hover { border-color: var(--gold); color: var(--gold-ink); }
.image-field-current { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.image-preview { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.image-remove { font-size: .82rem; font-weight: 600; }

/* 12. Tables -------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--mut);
  background: #f4f6fa;
  border-bottom: 1px solid #dfe4ee;
  white-space: nowrap;
}
tbody tr:hover { background: #fafbfd; }
tfoot th, tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table-wrap table { border: 0; }
.table-wrap table { min-width: 600px; }

.cell-title { font-weight: 600; }
.cell-meta { font-size: .8rem; color: var(--mut); }
.cell-actions { white-space: nowrap; text-align: right; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; min-width: 0; }
.k-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.k-value { display: block; margin: .15rem 0; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1.15; }
.k-sub { display: block; font-size: .76rem; color: var(--mut); }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-bottom: 1.2rem;
}
.stat-cell { padding: .85rem 1rem; min-width: 0; }
.stat-cell + .stat-cell { border-top: 1px solid var(--line); }
.stat-cell b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin: .15rem 0; }
@media (min-width: 640px) {
  .stat-cell + .stat-cell { border-top: 0; border-left: 1px solid var(--line); }
}

.s-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.s-note { display: block; font-size: .76rem; color: var(--mut); }

.timeline { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .9rem; }
.timeline li { position: relative; padding-left: 1.15rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 148, 58, .18);
}
.t-title { display: block; font-weight: 600; font-size: .93rem; }
.t-body { display: block; font-size: .85rem; color: var(--mut); }
.t-date, .t-when { display: block; font-size: .74rem; color: var(--mut); margin-top: .1rem; }

/* Queue items (tasks, verification, dashboard) */
.q-item {
  display: grid; gap: .3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #c7d0e0;
  border-radius: 12px;
  padding: .8rem .95rem;
}
.q-item + .q-item { margin-top: .5rem; }
.q-main { font-weight: 600; font-size: .93rem; }
.q-sub { font-size: .8rem; color: var(--mut); }
.q-badge {
  justify-self: start;
  font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #eef1f6; color: #44506a;
  border-radius: 999px; padding: .18rem .5rem;
}
.q-link { font-size: .84rem; font-weight: 600; }
.q-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
.q-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.q-calm { border-left-color: #7c8aa5; }
.q-urgent { border-left-color: var(--err); }
.q-urgent .q-badge { background: #fdecea; color: #8f2b22; }
.q-today { border-left-color: var(--gold); background: #fffdf6; }
.q-today .q-badge { background: var(--gold-tint); color: var(--gold-ink); }

.bubble {
  max-width: min(100%, 620px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem .95rem;
  font-size: .92rem;
}
.chat { display: grid; gap: .7rem; }
.b-meta { display: block; margin-top: .35rem; font-size: .74rem; color: var(--mut); }

.avatar {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-700); color: var(--gold-2);
  font-weight: 700; font-size: .9rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-initial { line-height: 1; }

.progress-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .8rem; }
.progress-steps li { border-left: 3px solid var(--line-2); padding: .15rem 0 .15rem .85rem; }
.progress-steps li.is-done { border-left-color: var(--gold); }
.progress-steps li.is-now { border-left-color: var(--gold-2); background: var(--gold-tint-2); border-radius: 0 10px 10px 0; padding-right: .6rem; }
.p-num { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.p-label { display: block; font-weight: 600; font-size: .92rem; }
.p-note { display: block; font-size: .8rem; color: var(--mut); }
@media (min-width: 768px) { .progress-steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

.seg { display: inline-flex; gap: 2px; background: #eaeef5; border-radius: 999px; padding: 3px; }
.seg-item {
  padding: .42rem .9rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: var(--mut);
  text-decoration: none; white-space: nowrap;
}
.seg-item.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 32, 51, .14); }

.dl-list { display: grid; gap: .55rem 1.2rem; margin: 0; }
.dl-list dt { font-weight: 600; font-size: .85rem; }
.dl-list dd { margin: 0; color: var(--mut); font-size: .88rem; }
@media (min-width: 640px) { .dl-list { grid-template-columns: max-content 1fr; } }

.list-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.list-filter input { flex: 1 1 220px; min-height: 42px; }
.list-foot { padding: .8rem 0 .2rem; font-size: .85rem; }

.admin-welcome { margin-bottom: 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.admin-welcome h2, .admin-welcome h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.admin-welcome-body { color: var(--mut); font-size: .92rem; max-width: 64ch; }
.admin-quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-dashboard-hero { display: block; overflow: hidden; margin-bottom: 1.1rem; border-color: #182844; color: #e8edf6; background: linear-gradient(125deg, #0b1220 0%, #172846 66%, #25385a 100%); box-shadow: 0 14px 36px rgba(11,18,32,.12); }
.admin-dashboard-hero .admin-welcome-body { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: clamp(1.2rem, 3vw, 1.8rem); color: #c3ccdd; }
.admin-dashboard-hero .admin-welcome-copy { min-width: 0; }
.admin-dashboard-eyebrow { display: inline-block; color: #f0d98a; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-dashboard-hero .admin-welcome-copy h2 { margin: .35rem 0 .4rem; color: #fff; font-size: clamp(1.4rem, 2.7vw, 1.9rem); }
.admin-dashboard-hero .admin-welcome-copy p { max-width: 65ch; margin: 0; color: #c3ccdd; }
.admin-dashboard-status { display: grid; justify-items: start; gap: .1rem; min-width: 190px; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.06); }
.admin-dashboard-status > span, .admin-dashboard-status small { color: #b9c5d8; font-size: .76rem; }
.admin-dashboard-status strong { color: #fff; font-family: var(--font-head); font-size: 2rem; line-height: 1.1; }
.admin-dashboard-action-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.2rem; padding: .9rem 1.2rem 1.1rem; border-top: 1px solid rgba(255,255,255,.12); background: rgba(4,10,20,.18); }
.admin-dashboard-action-group { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.admin-dashboard-action-label { color: #8fa0c0; font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-dashboard-action-group .admin-quick-actions { gap: .45rem; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.35rem 0 .8rem; }
.admin-section-heading h2 { margin: .15rem 0 .25rem; font-size: 1.25rem; }
.admin-section-heading p { margin: 0; color: var(--mut); font-size: .85rem; }
.admin-dashboard-eyebrow-light { color: var(--gold-ink); }
.admin-attention-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); margin: 0; }
.admin-attention-grid .kpi { text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.admin-attention-grid .kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,18,32,.08); }
.admin-attention-grid .kpi-alert { border-left: 3px solid #ba4a42; }
.admin-attention-grid .kpi-warn { border-left: 3px solid #c58b22; }
.admin-attention-grid .kpi-info { border-left: 3px solid #4f78a8; }
.admin-attention-grid .kpi-alert .k-value { color: #a53630; }
.admin-attention-grid .kpi-warn .k-value { color: #8c6516; }
.admin-attention-grid .kpi-info .k-value { color: #315d8c; }
.admin-dashboard-bottom { align-items: start; margin-top: 1rem; }
.admin-dashboard-bottom > .panel, .admin-dashboard-bottom > section { min-width: 0; }
@media (max-width: 760px) {
  .admin-dashboard-hero .admin-welcome-body { align-items: stretch; flex-direction: column; }
  .admin-dashboard-status { min-width: 0; }
}
@media (max-width: 560px) {
  .admin-dashboard-action-groups { grid-template-columns: 1fr; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; }
}

/* 13. Pagination & search ------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.8rem; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 38px;
  padding: .4rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: .86rem; font-weight: 600;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--navy-700); }
.page-btn.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.page-gap { color: var(--mut); padding: .4rem .3rem; }

.search-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.search-bar input { flex: 1 1 220px; }
.search-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.search-group-head { margin: 1.6rem 0 .7rem; font-size: 1rem; }

.service-filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .35rem; }
.service-filter-row form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.service-filter-row input { flex: 1 1 240px; }
.service-filter-row .btn { flex: 0 0 auto; }
#service-filter-count { font-size: .82rem; color: var(--mut); }

/* 14. Insights (blog) ------------------------------------------------------------ */
.insights-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.insights-bar { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; margin: 1rem 0; }
.insights-bar form { margin: 0; display: flex; gap: .5rem; align-items: center; }
.insights-bar input[type="search"] { flex: 1 1 200px; min-height: 42px; }
.insights-sort label { font-size: .78rem; font-weight: 600; color: var(--mut); }
.insights-sort select { width: auto; min-height: 40px; font-size: .84rem; padding: .35rem 2.2rem .35rem .6rem; }
.insights-topics { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .8rem; }
.insights-topics-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--mut); margin-right: .2rem; }
.insights-result { font-size: .85rem; color: var(--mut); margin: .3rem 0 .9rem; }
.insights-empty { padding: 1.4rem; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; color: var(--mut); font-size: .9rem; }
.insights-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.insights-rss { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; }
.insights-clear { font-size: .84rem; font-weight: 600; }
.insights-subscribe { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; display: grid; gap: .5rem; margin-top: 1.6rem; }
.insights-subscribe-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.post-feature {
  display: grid;
  background: linear-gradient(160deg, #0f1a2e, #0c1424);
  border: 1px solid #22314e;
  border-radius: 18px;
  overflow: hidden;
  color: #e8edf6;
  text-decoration: none;
  margin-bottom: 1.6rem;
}
.post-feature-media { position: relative; min-height: 190px; background: #0a1120; display: grid; place-items: center; }
.post-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-feature-mark {
  position: relative; z-index: 1;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(13, 21, 38, .72);
  border: 1px solid rgba(227, 189, 69, .42);
  border-radius: 14px;
  color: var(--gold-2);
}
.post-feature-mark svg { width: 24px; height: 24px; }
.post-feature.is-text .post-feature-media { min-height: 150px; }
.post-feature-body { padding: clamp(1.15rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: .45rem; justify-content: center; align-items: flex-start; }
.post-feature-body h2, .post-feature-body h3 { color: #fff; margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.post-feature-body p { color: #b9c2d2; margin: .15rem 0 0; font-size: .94rem; }
.post-kicker { color: var(--gold-2); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.post-feature-link { margin-top: .85rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-2); font-weight: 700; font-size: .88rem; }
.post-feature .tag { background: rgba(227, 189, 69, .14); color: var(--gold-2); }
@media (min-width: 900px) { .post-feature { grid-template-columns: 1.15fr 1fr; } }

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin: 0; }
.post-cover-empty {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center; gap: .35rem;
  background: linear-gradient(160deg, #0f1a2e, #16233c);
  color: #8fa0c0;
}
.post-cover-empty svg { width: 30px; height: 30px; }
.post-cover-empty-label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.post-card-top { padding: .9rem 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; }
.post-card h3 { padding: 0 1rem; margin: .5rem 0 .3rem; font-size: 1.02rem; }
.post-card > p { padding: 0 1rem; margin: 0 0 .85rem; font-size: .87rem; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta {
  padding: .7rem 1rem .9rem; margin-top: auto;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .35rem .9rem;
  font-size: .75rem; color: var(--mut);
}
.post-card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-card-meta svg { width: 13px; height: 13px; }
.post-pin { display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; font-weight: 700; color: var(--gold-ink); }

/* 15. Article --------------------------------------------------------------------- */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 65;
  background: transparent; pointer-events: none;
}
.reading-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width .12s linear;
}

.post-head { padding-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.post-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .78rem; color: #8b96ab; margin-bottom: .9rem; }
.post-crumbs a { color: inherit; text-decoration: none; }
.post-crumbs a:hover { color: var(--gold-2); text-decoration: underline; }
.post-crumbs span[aria-current] { color: #cfd6e4; }
.post-dek { color: #b9c2d2; font-size: clamp(.98rem, 2vw, 1.1rem); max-width: 68ch; margin: .4rem 0 1rem; }

.post-byline { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.post-avatar {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(227, 189, 69, .16);
  border: 1px solid rgba(227, 189, 69, .4);
  color: var(--gold-2);
  font-weight: 700; font-size: .9rem;
}
.post-avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.post-byline-copy { display: grid; gap: .1rem; font-size: .8rem; color: #9aa4b5; }
.post-byline-copy b { color: #fff; font-size: .9rem; }
.post-byline-copy span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.post-updated { display: block; font-size: .74rem; color: #8fa0c0; }
.post-byline .post-share { margin-left: auto; }
@media (max-width: 699px) { .post-byline .post-share { margin-left: 0; flex-basis: 100%; } }

.post-share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.post-share-label { font-size: .74rem; font-weight: 600; color: #8fa0c0; margin-right: .15rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .6rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: transparent;
  color: #cfd6e4;
  font-size: .74rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.share-btn svg { width: 13px; height: 13px; }
.post-content-card .share-btn, .post-tags .share-btn { border-color: var(--line-2); color: var(--mut); }

.article-cover { margin: 0 0 1.4rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; }

.post-article { min-width: 0; }
.post-section .wrap { display: grid; gap: 1.2rem; }
.post-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  align-self: start;
}
.post-toc ol { margin: .5rem 0 0; padding-left: 1.15rem; }
.post-toc li { font-size: .86rem; margin: .3rem 0; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { color: var(--gold-ink); text-decoration: underline; }
.post-toc .toc-l3 { padding-left: .6rem; list-style: none; }
@media (min-width: 1024px) {
  .post-section .wrap { max-width: 900px; }
}

.post-content-card { padding: clamp(1.1rem, 3vw, 2.2rem); }
.post-content-card > :first-child { margin-top: 0; }
.post-content-card h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin: 1.9rem 0 .7rem; }
.post-content-card h3 { font-size: 1.08rem; margin: 1.5rem 0 .5rem; }
.post-content-card p, .post-content-card li { line-height: 1.75; }
.post-content-card ul, .post-content-card ol { padding-left: 1.3rem; margin: .8rem 0; }
.post-content-card blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: #f8f5ec;
  color: #3c465c;
}
.post-content-card img { border-radius: 12px; margin: 1rem 0; }
.post-content-card table { display: block; overflow-x: auto; font-size: .86rem; }
.post-content-card pre {
  background: #0f1728; color: #e3e9f4;
  padding: 1rem; border-radius: 10px;
  overflow: auto; font-size: .8rem; line-height: 1.55;
  font-family: var(--font-mono);
}
.post-content-card code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: #eef1f6;
  padding: .08rem .35rem;
  border-radius: 5px;
}
.post-content-card pre code { background: none; padding: 0; font-size: inherit; }
.post-content-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: 1.6rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.post-tags-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--mut); margin-right: .2rem; }

.post-author {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin-top: 1.2rem;
}
.post-author > div { flex: 1 1 260px; }
.post-author h2 { font-size: 1.05rem; margin: .1rem 0 .3rem; }
.post-author p { margin: 0; font-size: .86rem; color: var(--mut); }

.post-siblings { display: grid; gap: .8rem; margin-top: 1.2rem; }
.post-sibling {
  display: grid; gap: .25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
}
.post-sibling:hover { border-color: var(--gold); }
.post-sibling b { font-size: .96rem; }
.post-sibling .small { color: var(--mut); }
@media (min-width: 700px) { .post-siblings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.post-back { margin-top: 1.4rem; }
.post-back a { font-weight: 600; }

.post-related-section { background: #fff; border-top: 1px solid var(--line); }
.post-related-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.2rem; }
.post-related-head h2 { margin: .25rem 0 0; }
.post-related-head a { font-weight: 600; font-size: .88rem; }

.preview-banner {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  background: #fdf3e2;
  border: 1px solid #ead9ae;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
.preview-banner a { margin-left: auto; }

/* 16. Auth pages ----------------------------------------------------------------- */
.auth-page {
  min-height: 100dvh;
  background:
    radial-gradient(60rem 30rem at 50% -20%, rgba(201, 148, 58, .16), transparent 60%),
    linear-gradient(180deg, #0d1526, var(--navy-900));
}
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; }
.auth-card {
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 1.9rem);
  box-shadow: 0 30px 70px rgba(4, 10, 22, .5);
  display: grid; gap: .9rem;
}
.auth-brand { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.auth-brand .brand-logo { width: 56px; height: 56px; }
.auth-brand h1 { font-size: 1.2rem; margin: 0; }
.auth-brand p { margin: .1rem 0 0; font-size: .82rem; color: var(--mut); }
.auth-foot { font-size: .82rem; color: var(--mut); line-height: 1.7; margin: 0; }
.auth-foot a { font-weight: 600; }
.auth-consent { font-size: .78rem; color: var(--mut); }
.auth-phone-hint { font-size: .78rem; color: var(--mut); }

/* 17. Footer & floating actions --------------------------------------------------- */
.site-footer {
  background: #0a1120;
  color: #aab4c8;
  padding-block: 2.6rem 1.3rem;
  margin-top: auto;
  font-size: .9rem;
}
.site-footer h4,
.site-footer .footer-head {
  color: #fff;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  margin: 0 0 .8rem;
}
.site-footer .brand span { color: #fff; }
.site-footer .brand small { color: #8b96ab; }
.site-footer .brand-logo { width: 64px; height: 64px; }
.footer-grid { display: grid; gap: 1.8rem; }
.footer-brand p { color: #8b96ab; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: #aab4c8; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: .55rem; font-size: .88rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .45rem; color: #c6cee0; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold-2); flex: none; }
.footer-phone { display: grid; gap: .05rem; }
.footer-phone small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #7e8aa3; }
.footer-phone b { color: #fff; font-size: 1rem; }
.footer-alt { font-size: .84rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.footer-badges .badge { background: rgba(255, 255, 255, .07); color: #c3ccdd; border: 1px solid rgba(255, 255, 255, .12); }
.footer-reviews { margin-top: .4rem; font-size: .8rem; color: #8b96ab; }
.footer-review-links { display: flex; gap: .8rem; margin-top: .3rem; }
.footer-review-links a { text-decoration: underline; }
.footer-addresses { display: grid; gap: .35rem; font-size: .8rem; color: #8b96ab; margin-top: .4rem; }
.footer-addresses span { display: flex; gap: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2rem; padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center;
  font-size: .76rem; color: #8b96ab;
}
.footer-copy { flex: 1 1 100%; }
.footer-bottom-links { display: flex; gap: .9rem; }
.footer-bottom-links a { color: inherit; }
.footer-bottom-links a:hover { color: #fff; }
.footer-response { margin-left: auto; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .site-footer { padding-bottom: 4.6rem; } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.9fr 1fr 1fr 1.5fr; gap: 2.2rem; }
  .footer-copy { flex: 0 1 auto; }
}

.callback-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold); color: var(--navy-900);
  border: 0; border-radius: 999px;
  padding: .72rem 1.05rem;
  font: 700 .84rem var(--font-body);
  box-shadow: 0 10px 26px rgba(9, 16, 30, .35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.callback-fab:hover { background: var(--gold-2); }
.callback-fab svg { width: 15px; height: 15px; }
.callback-toast {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 120;
  width: min(92vw, 520px);
  box-shadow: var(--shadow-2);
}

.enquiry-band {
  background: linear-gradient(180deg, #f8f2e3, #f5edd9);
  border-top: 1px solid #eadfc4;
}
.enquiry-band h2 { color: var(--ink); }
.enquiry-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .4rem; }
@media (min-width: 640px) { .enquiry-actions { flex-direction: row; flex-wrap: wrap; } }

/* 18. App shell (portal & admin) ---------------------------------------------------- */
.app { min-height: 100dvh; }
.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }

.app-side {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(84vw, 300px);
  transform: translateX(-102%);
  transition: transform .26s ease;
  z-index: 80;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d1526, #0a1120);
  color: #c3ccdd;
  overflow: hidden;
}
.app-side.open { transform: none; }
.app-side .brand { padding: 1rem 1rem .6rem; }
.app-side .brand span { color: #fff; }
.app-side .brand small { color: #8fa0c0; }
.app-side .brand-logo { width: 42px; height: 42px; }

.app-nav { flex: 1; overflow-y: auto; padding: .2rem .6rem 1rem; display: grid; gap: .1rem; align-content: start; }
.app-nav .group {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #7e8aa3;
  padding: .95rem .7rem .35rem;
}
.app-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .58rem .7rem;
  border-radius: 10px;
  color: #c3ccdd; text-decoration: none;
  font-size: .89rem; font-weight: 500;
  min-height: 42px;
}
.app-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-nav a.on { background: rgba(227, 189, 69, .16); color: #f2d98c; font-weight: 600; }
.app-nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.count {
  margin-left: auto;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  padding: 0 .35rem;
  background: var(--gold); color: var(--navy-900);
  border-radius: 999px;
  font-size: .66rem; font-weight: 800;
}
.app-side-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: .85rem .9rem 1rem;
  display: grid; gap: .5rem;
  font-size: .82rem;
}
.app-side-foot a { color: #aab4c8; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.app-side-foot a:hover { color: #fff; }
.app-side-note { margin: .2rem 0 0; font-size: .68rem; color: #7e8aa3; line-height: 1.5; }

.app-burger {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
}
.app-burger svg { width: 20px; height: 20px; }

.app-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-top h1 {
  font-size: 1rem; margin: 0;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-top-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.cmdk-trigger {
  display: none;
  align-items: center; gap: .4rem;
  min-height: 36px;
  padding: .3rem .55rem;
  background: #fff; color: var(--mut);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font: 500 .8rem var(--font-body);
  cursor: pointer;
}
body.cmdk-ready .cmdk-trigger { display: inline-flex; }
.cmdk-trigger:hover { border-color: var(--navy-700); color: var(--ink); }
.cmdk-trigger svg { width: 15px; height: 15px; }
.cmdk-trigger span { display: none; }

.cmdk-key, .cmdk-foot kbd {
  border: 1px solid #d8dde8;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .02rem .3rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--mut);
  background: #fff;
}

.app-search { display: none; }
.app-search input { min-height: 36px; font-size: .84rem; border-radius: 8px; padding: .32rem .6rem; }

.who { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.who-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-700); color: var(--gold-2);
  display: grid; place-items: center;
  font-weight: 700; font-size: .85rem;
}
.who-copy { display: none; line-height: 1.15; min-width: 0; }
.who-copy b { font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: .68rem; color: var(--mut); }

.app-timer {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 36px; padding: .3rem .6rem;
  border: 1px solid var(--gold); border-radius: 8px;
  background: var(--gold-tint); color: var(--gold-ink);
  font: 700 .78rem var(--font-mono); font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap;
}
.app-timer svg { width: 15px; height: 15px; }

.timer-panel { border-color: var(--gold); }
.timer-panel-body { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.timer-panel-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.timer-panel-main p { margin: .15rem 0 0; }
.timer-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); flex: none; }
.timer-live { font: 700 1.35rem var(--font-mono); font-variant-numeric: tabular-nums; color: var(--navy-900); }
.timer-panel-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.quick-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .55rem; }
.quick-chips .chip { cursor: pointer; padding: .18rem .6rem; font-size: .74rem; }

@media (max-width: 720px) { .app-timer span { display: none; } }

.app-content { flex: 1; width: 100%; max-width: 1440px; margin-inline: auto; padding: clamp(.9rem, 2.4vw, 1.6rem); }
.app-foot {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: .74rem; color: var(--mut);
}
.app-foot a { color: var(--mut); }
.app-foot-links { display: flex; gap: .8rem; }
.app-foot-user { margin-left: auto; }

@media (min-width: 560px) { .cmdk-trigger span { display: inline; } }
@media (min-width: 820px) { .who-copy { display: grid; } }
@media (min-width: 900px) { .app-search { display: block; } .app-search input { width: 220px; } }
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
  .app-side {
    position: sticky; top: 0;
    height: 100dvh; width: auto;
    transform: none;
    bottom: auto; left: auto;
  }
  .app-burger { display: none; }
  .app-side-scrim { display: none !important; }
}

/* 19. Command palette ---------------------------------------------------------------- */
.cmdk {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  background: rgba(8, 13, 24, .58);
  padding: 9vh 1rem 1rem;
}
.cmdk.is-open { display: block; }
.cmdk-panel {
  width: min(640px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 34px 90px rgba(4, 10, 22, .5);
  overflow: hidden;
}
.cmdk-top { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.cmdk-top > svg { width: 20px; height: 20px; color: var(--mut); flex: none; }
.cmdk-top input { border: 0; box-shadow: none; padding: 0; min-height: 28px; font-size: 1rem; flex: 1; background: transparent; }
.cmdk-top input:focus-visible { box-shadow: none; }
.cmdk-close {
  border: 1px solid var(--line); background: #fff; color: var(--mut);
  border-radius: 7px; padding: .28rem .5rem;
  font: 500 .68rem var(--font-mono);
  cursor: pointer; flex: none;
}
.cmdk-list { max-height: min(52vh, 460px); overflow-y: auto; padding: .4rem; }
.cmdk-group-title {
  padding: .55rem .7rem .2rem;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mut);
}
.cmdk-opt {
  display: flex; align-items: center; gap: .6rem;
  width: 100%;
  padding: .55rem .7rem;
  background: none; border: 0; border-radius: 10px;
  text-align: left; cursor: pointer;
  font: inherit; color: var(--ink);
}
.cmdk-opt.is-active { background: var(--gold-tint); }
.cmdk-opt-main { display: grid; min-width: 0; }
.cmdk-opt-main b { font-size: .9rem; font-weight: 600; }
.cmdk-opt-meta { font-size: .76rem; color: var(--mut); }
.cmdk-opt-hint { margin-left: auto; font-size: .72rem; color: var(--mut); white-space: nowrap; }
.cmdk-badge {
  margin-left: auto;
  background: var(--gold-tint);
  color: var(--gold-ink);
  border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  padding: .08rem .42rem;
  min-width: 20px; text-align: center;
}
.cmdk-empty { margin: 0; padding: 1rem .7rem; color: var(--mut); font-size: .85rem; text-align: center; }
.cmdk-empty.is-loading { opacity: .7; }
.cmdk-foot {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem;
  padding: .55rem 1rem;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  font-size: .72rem; color: var(--mut);
}
.cmdk-foot span { display: inline-flex; align-items: center; gap: .3rem; }

/* 20. Modals -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 13, 24, .62);
}
.modal.is-open { display: grid; }
.modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 34px 90px rgba(4, 10, 22, .5);
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h2, .modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-close {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--navy-700); }
.modal-body { padding: 1.15rem; }

/* 21. Free tools ------------------------------------------------------------------------ */
.free-tools-section { padding-top: 0; }
.free-tool-finder {
  display: grid; gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.05rem, 3vw, 1.5rem);
  margin-bottom: 1.4rem;
}
.free-tool-finder h2 { margin: .3rem 0 .4rem; }
.free-tool-search { margin: 0; }
@media (min-width: 900px) {
  .free-tool-finder { grid-template-columns: 1.2fr .8fr; align-items: end; }
}

.free-tool-directory { display: grid; gap: .55rem; margin-bottom: 1.6rem; }
.free-tool-link {
  display: grid; gap: .12rem;
  padding: .78rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.free-tool-link:hover { border-color: var(--gold); transform: translateY(-1px); }
.free-tool-link b { font-size: .9rem; }
.free-tool-link span { font-size: .78rem; color: var(--mut); }
.free-tool-link-featured { border-color: #dcc48c; background: var(--gold-tint-2); }
.free-tool-link-featured b { color: var(--gold-ink); display: inline-flex; align-items: center; gap: .35rem; }
.free-tool-link-featured b svg { width: 14px; height: 14px; }
@media (min-width: 700px) { .free-tool-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .free-tool-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.free-tool-grid { align-items: start; }
.free-tool-no-results { margin: .4rem 0 1rem; }

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  display: grid;
  gap: .8rem;
  min-width: 0;
}
.tool-head { display: flex; align-items: flex-start; gap: .65rem; }
.tool-head > svg {
  flex: none;
  width: 20px; height: 20px;
  padding: 8px;
  box-sizing: content-box;
  background: #f5efe2;
  color: var(--gold-ink);
  border-radius: 10px;
}
.tool-head b { display: block; font-size: .93rem; line-height: 1.35; }
.tool-head .small { font-size: .76rem; }
.tool-body { font-size: .9rem; min-width: 0; }
.tool-body h3 { font-size: 1rem; }

.tool-progress {
  height: 8px;
  background: #e9edf4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .7rem;
}
.tool-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width .25s ease;
}

.opt-btn {
  display: block; width: 100%;
  text-align: left;
  padding: .7rem .85rem;
  margin-bottom: .5rem;
  background: #fff;
  border: 1px solid #d5dbe6;
  border-radius: 10px;
  font: inherit; font-size: .92rem; color: var(--ink);
  cursor: pointer;
}
.opt-btn:hover { border-color: var(--gold); }
.opt-btn.is-selected { border-color: var(--gold); background: var(--gold-tint-2); box-shadow: inset 0 0 0 1px var(--gold); }

.matcher-results { padding-left: 1.1rem; margin: .6rem 0; }
.matcher-results li { margin: .5rem 0; }

.tool-text-output {
  background: #0f1728; color: #e3e9f4;
  border-radius: 10px;
  padding: .9rem;
  font-family: var(--font-mono);
  font-size: .78rem; line-height: 1.55;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.tool-hash-value {
  display: block;
  background: #eef1f6;
  border-radius: 8px;
  padding: .6rem .7rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  word-break: break-all;
}
.hash-match { margin-top: .4rem; }
.hash-match.is-match { color: var(--ok); font-weight: 600; }
.hash-match.is-different { color: var(--err); font-weight: 600; }

.check-item {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .55rem .65rem;
  margin-bottom: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .9rem;
  cursor: pointer;
}
.check-item span { display: grid; gap: .08rem; min-width: 0; }
.check-item small { color: var(--mut); font-size: .78rem; line-height: 1.5; }
.check-item.done { border-color: #d9c690; background: var(--gold-tint-2); }
.preservation-items { display: grid; gap: .5rem; }
@media (min-width: 800px) { .preservation-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.est-grid { display: grid; gap: 1rem; }
.est-addons { display: grid; gap: .5rem; margin: .4rem 0 .8rem; }
.est-out { margin-top: 1.1rem; }
.est-price-card {
  display: grid; gap: .15rem;
  background: var(--gold-tint-2);
  border: 1px solid #dcc48c;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.est-price-card span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.est-price-card strong { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy-900); line-height: 1.2; }
.est-price-card p { margin: .15rem 0 0; font-size: .84rem; color: var(--mut); }
.est-summary-details { margin-top: .8rem; }
.est-summary-details summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.est-summary-details pre {
  margin-top: .5rem;
  background: #0f1728; color: #e3e9f4;
  border-radius: 10px; padding: .9rem;
  font-size: .78rem; overflow: auto; white-space: pre-wrap;
  font-family: var(--font-mono);
}
@media (min-width: 640px) {
  .est-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-wide { grid-column: 1 / -1; }
  .est-addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.task-form { display: grid; gap: .8rem; }
.task-form-row { display: grid; gap: .8rem; }
@media (min-width: 640px) { .task-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 22. Fee guide, coverage, search, misc pages ------------------------------------------ */
.fee-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 1.2rem; }
.fee-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; padding: .85rem 1.1rem; }
.fee-row + .fee-row { border-top: 1px solid var(--line); }
.fee-name { font-weight: 600; font-size: .94rem; }
.fee-price { font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }

.coverage-map { display: grid; gap: 1.2rem; }
.coverage-map-stage {
  background: linear-gradient(165deg, #0f1a2e, #0c1424);
  border: 1px solid #22314e;
  border-radius: 16px;
  padding: 1rem;
  min-width: 0;
}
.coverage-map-stage svg { width: 100%; height: auto; display: block; }
.map-outline { fill: #101b30; stroke: #2c3a55; stroke-width: 1.2; }
.map-node circle { fill: #1b2740; stroke: #3a4a6a; cursor: pointer; }
.map-node text { fill: #cfd6e4; font-size: 10px; font-family: var(--font-body); }
.map-node.is-hq circle { fill: var(--gold-2); stroke: #f0d489; }
.map-node.is-hq text { fill: #fff; font-weight: 700; }
.map-node.is-active circle { stroke: var(--gold-2); }
.map-route { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-dasharray: 5 7; opacity: .18; transition: opacity .2s ease; }
.map-route.is-active { opacity: .9; }
.coverage-map-note { margin: .5rem 0 0; font-size: .72rem; color: #8b96ab; text-align: center; }
.coverage-map-side { min-width: 0; }
.map-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.map-tab {
  padding: .42rem .8rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 600 .82rem var(--font-body);
  cursor: pointer;
}
.map-tab:hover { border-color: var(--gold); }
.map-tab.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.map-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.map-panel h3 { margin: 0 0 .35rem; font-size: 1rem; }
.map-panel p { margin: 0; font-size: .87rem; color: var(--mut); }
@media (min-width: 1024px) {
  .coverage-map { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.mfa-enrollment-setup { display: grid; gap: 1rem; }
.mfa-qr-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; text-align: center; }
.mfa-qr {
  width: 200px; height: 200px; margin: 0 auto .6rem;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.mfa-qr img, .mfa-qr canvas { max-width: 100%; height: auto; }
.mfa-qr-status { margin: 0; font-size: .8rem; color: var(--mut); }
.mfa-enrollment-details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; font-size: .9rem; }
.mfa-enrollment-details dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: .7rem 0 0; font-size: .85rem; }
.mfa-enrollment-details dt { font-weight: 600; }
.mfa-enrollment-details dd { margin: 0; color: var(--mut); word-break: break-all; }
@media (min-width: 900px) { .mfa-enrollment-setup { grid-template-columns: 300px 1fr; align-items: start; } }

.security-page { display: grid; gap: 1rem; }
.security-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px; color: #fff;
  background: linear-gradient(125deg, #0b1220 0%, #172846 66%, #25385a 100%);
  box-shadow: 0 14px 36px rgba(11, 18, 32, .12);
}
.security-hero-copy { max-width: 660px; }
.security-eyebrow, .security-step-label {
  display: inline-block; color: #b89a40; font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.security-hero .security-eyebrow { color: #f0d98a; }
.security-hero h2 { margin: .35rem 0 .45rem; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.security-hero p { margin: 0; max-width: 56ch; color: #c3ccdd; font-size: .92rem; }
.security-hero-account {
  display: grid; justify-items: start; gap: .35rem; min-width: min(100%, 245px);
  padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.security-hero-account strong { max-width: 100%; overflow-wrap: anywhere; color: #fff; font-size: .9rem; }
.security-hero-account > span:last-child { color: #aebbd0; font-size: .78rem; }
.security-setup-card {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem; background: #fffdf6; border: 1px solid #ead9a2; border-radius: 16px;
}
.security-setup-mark {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 14px; color: #71590d; background: #f6ebc6;
}
.security-setup-mark svg { width: 22px; height: 22px; }
.security-setup-copy { flex: 1; min-width: min(100%, 260px); }
.security-setup-copy h2 { margin: .2rem 0; font-size: 1.05rem; }
.security-setup-copy p { margin: 0; max-width: 70ch; color: var(--mut); font-size: .86rem; }
.security-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.security-admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: .9rem; }
.security-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  min-width: 0; padding: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 5px 18px rgba(11,18,32,.035);
}
.security-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.security-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #33435d; background: #f2f4f7; border-radius: 12px; }
.security-icon svg { width: 19px; height: 19px; }
.security-card h3 { margin: .15rem 0 0; font-size: 1rem; }
.security-card p { flex: 1; margin: 0; color: var(--mut); font-size: .84rem; line-height: 1.55; }
.security-card-note { margin-top: auto; color: var(--mut); font-size: .76rem; }
.security-metric-value { color: var(--ink); font-family: var(--font-head); font-size: 1.8rem; line-height: 1.1; }
.security-metric-card p { font-size: .78rem; }
.security-recovery-reveal {
  display: grid; gap: .9rem; padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #ead9a2; border-radius: 16px; background: #fffdf6;
}
.security-recovery-copy h2 { margin: .2rem 0 .35rem; font-size: 1.15rem; }
.security-recovery-copy p { margin: 0; max-width: 78ch; color: var(--mut); font-size: .86rem; }
.security-code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .45rem; }
.security-code-grid code { display: block; padding: .6rem .75rem; border: 1px solid #eadfc4; border-radius: 9px; background: #fff; color: var(--ink); font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-align: center; }
.security-modal .modal-dialog { max-width: 560px; }
.security-setup-modal .modal-dialog { max-width: 800px; }
.security-modal .modal-head { align-items: center; }
.security-modal .modal-head h2 { margin-top: .15rem; }
.security-modal-intro { margin: 0 0 1rem; color: var(--mut); font-size: .88rem; line-height: 1.55; }
.security-modal-form { display: grid; gap: .8rem; margin-top: 1rem; }
.security-modal-form .field { margin: 0; }
.security-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.security-setup-modal .mfa-enrollment-setup { grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); align-items: stretch; }
.security-setup-modal .mfa-qr-card, .security-setup-modal .mfa-enrollment-details { min-width: 0; }
.security-activity-table { min-width: 680px; }
.security-admin-activity-table { min-width: 900px; }
.security-event-time { white-space: nowrap; color: var(--mut); font-size: .8rem; }
.security-event-label { display: inline-block; padding: .25rem .5rem; border-radius: 999px; background: #f2f4f7; color: #34425a; font-size: .75rem; font-weight: 700; }
.security-event-flag { display: inline-block; margin: .3rem 0 0; white-space: nowrap; }
.security-activity-table td code { font-size: .77rem; }
.security-event-device { max-width: 380px; overflow-wrap: anywhere; color: var(--mut); font-size: .8rem; }
@media (max-width: 700px) {
  .security-hero { align-items: stretch; flex-direction: column; }
  .security-hero-account { min-width: 0; }
  .security-setup-card { align-items: flex-start; }
  .security-setup-card > .btn { width: 100%; justify-content: center; }
  .security-setup-modal .mfa-enrollment-setup { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .security-form-grid { grid-template-columns: 1fr; }
  .security-modal.modal { padding: .5rem; }
  .security-modal .modal-dialog { max-height: calc(100dvh - 1rem); border-radius: 13px; }
  .security-activity-panel .panel-head { align-items: flex-start; }
}

.profile-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; text-align: center; }
.profile-mark {
  width: 84px; height: 84px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--navy-900); color: var(--gold-2);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
}
.profile-intro { font-size: .9rem; color: var(--mut); }
.team-photo { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.bubble + .b-meta { margin-top: .2rem; }

.case-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: var(--mut); }
.case-activity { margin-top: 1rem; }
.case-access-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; }
.case-access-list li { padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* 22b. Service detail ---------------------------------------------------------------- */
.service-hero-grid { display: grid; gap: 1.7rem; align-items: start; }
.service-hero-copy { min-width: 0; }
.service-hero h1 { margin: .8rem 0 .6rem; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .3rem .55rem;
  font-size: .78rem; color: #93a0b5;
}
.crumbs a { color: #d7dfeb; text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); text-decoration: underline; }
.crumbs span { color: #5f6d85; }

.service-lead {
  margin: 0;
  max-width: 56ch;
  color: #c7d0de;
  font-size: clamp(.98rem, 1.4vw, 1.06rem);
}

.service-options {
  display: flex; flex-wrap: wrap;
  gap: .45rem 1.15rem;
  margin: 1.3rem 0 0; padding: 0;
  list-style: none;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #dfe6f2;
}
.service-options li { display: inline-flex; align-items: center; gap: .45rem; }
.service-options li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); }

.service-quote {
  min-width: 0;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 16px;
  border-top: 3px solid var(--gold);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(3, 8, 18, .3);
}
.service-quote-label {
  display: block;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.service-quote p { max-width: none; margin: 0; color: var(--mut); }
.service-quote p.service-quote-price {
  margin: .12rem 0 .45rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.1rem); line-height: 1.05;
  letter-spacing: -.02em; color: var(--navy-900);
}
.service-quote p.service-quote-note { margin: 0 0 1.05rem; font-size: .79rem; line-height: 1.5; }
.service-quote .btn + .btn { margin-top: .55rem; }
.service-quote p.service-quote-response {
  display: flex; align-items: center; gap: .4rem;
  margin: .9rem 0 0;
  font-size: .74rem; color: var(--mut);
}
.service-quote-response svg { width: 14px; height: 14px; flex: none; color: var(--gold-ink); }

.service-jump { background: #fff; border-bottom: 1px solid var(--line); }
.service-jump-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem 1.15rem;
  padding-block: .72rem;
}
.service-jump-label {
  flex: none;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mut);
}
.service-jump a {
  flex: none;
  padding-block: .15rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: .82rem; font-weight: 600;
  text-decoration: none;
}
.service-jump a:hover { color: var(--gold-ink); border-color: var(--gold); }

.service-section { padding-block: clamp(1.7rem, 3.2vw, 2.6rem) var(--section-y); }
.service-layout { display: grid; gap: 1.15rem; align-items: start; }
.service-aside { display: grid; gap: 1rem; min-width: 0; }

.service-prose { padding: clamp(1.25rem, 2.6vw, 2.3rem); }
.service-prose > h2 { margin: 0 0 1.05rem; font-size: clamp(1.3rem, 2.1vw, 1.5rem); }
.service-prose > h2.service-subhead {
  margin-top: 2.4rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.service-note { margin-top: 1.7rem; background: #fbf7ec; }

.service-copy { color: #3d485e; line-height: 1.72; }
.service-copy > :first-child { margin-top: 0; }
.service-copy p { margin: 0 0 1.05em; }
.service-copy h2 { margin: 2.1rem 0 .8rem; font-size: 1.32rem; }
.service-copy h3 {
  margin: 2.1rem 0 .8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  color: var(--ink);
}
.service-copy h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.service-copy h4 {
  margin: 1.5rem 0 .3rem;
  padding-left: .7rem;
  border-left: 2px solid rgba(201, 148, 58, .55);
  font-size: 1rem; line-height: 1.35;
  color: var(--ink);
}
.service-copy ul, .service-copy ol { margin: .7rem 0 1.2rem; padding-left: 1.15rem; }
.service-copy li { margin: .32rem 0; padding-left: .12rem; }
.service-copy li::marker { color: var(--gold); }
.service-copy strong { color: var(--ink); }
.service-copy a { color: var(--link); }
.service-copy blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: #f8f5ec;
  color: #3c465c;
}
.service-copy h2, .service-copy h3, .service-copy h4, .service-prose > h2 { scroll-margin-top: 7.5rem; }

.service-aside .card h3 { margin: .35rem 0 .7rem; font-size: 1.05rem; }
.service-deliverables .check-list { margin: 0; }

.service-related-list { display: grid; gap: .15rem; }
.service-related-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .8rem;
  align-items: center;
  padding: .62rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.service-related-list a:first-child { border-top: 0; padding-top: .15rem; }
.service-related-list a:hover .service-related-name { color: var(--gold-ink); }
.service-related-name { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.service-related-price { font-size: .75rem; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.service-related-all {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .85rem;
  color: var(--gold-ink);
  font-size: .8rem; font-weight: 700;
  text-decoration: none;
}
.service-related-all:hover { text-decoration: underline; }
.service-related-all svg { width: 14px; height: 14px; }

@media (max-width: 1023px) {
  .service-quote { max-width: 560px; }
  .service-hero-grid, .service-jump-inner {
    max-width: 680px;
    margin-inline: auto;
  }
  .service-prose, .service-aside {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }
}
@media (max-width: 719px) {
  .service-jump-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .service-jump-inner::-webkit-scrollbar { display: none; }
}
@media (min-width: 1024px) {
  .service-hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(2rem, 4vw, 3.2rem);
    align-items: start;
  }
  .service-layout {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 33%, 380px);
    gap: clamp(1.6rem, 3vw, 2.4rem);
  }
  .service-aside { position: sticky; top: 7.25rem; }
}
@media (min-width: 1024px) and (max-height: 699px) {
  .service-aside { position: static; }
}
@media (max-width: 559px) {
  .service-quote { max-width: none; padding: 1.2rem; }
  .service-prose { padding: 1.15rem; }
  .service-copy h3 { margin-top: 1.8rem; }
  .service-copy h2, .service-copy h3, .service-copy h4, .service-prose > h2 { scroll-margin-top: 2rem; }
}

/* 23. Official documents ----------------------------------------------------------------
   Invoices, statements, reports, mandates and custody forms are paper first: one
   letterhead, one reference block, one signature area, one footer. On screen the
   sheet is drawn at A4 width so the preview matches the page; assets/css/print.css
   owns the paper itself. No images, no icon fonts and no filled badges in the body:
   the document has to stay legible in black and white and survive a photocopier. */
.doc-sheet {
  --doc-ink: #121721;
  --doc-muted: #4e5665;
  --doc-line: #dcdfe5;
  --doc-strong: #0b1220;
  position: relative;
  isolation: isolate;
  max-width: 210mm;
  margin-inline: auto;
  padding: clamp(1.2rem, 3.2vw, 2.5rem) clamp(1.15rem, 3.4vw, 2.7rem);
  background: #fff;
  color: var(--doc-ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(23, 32, 51, .05), 0 14px 34px rgba(23, 32, 51, .07);
  font-size: .9rem;
  line-height: 1.55;
}
.doc-sheet p { margin: 0 0 .7em; }
.doc-sheet p:last-child { margin-bottom: 0; }
.doc-sheet h1, .doc-sheet h2, .doc-sheet h3 { color: var(--doc-ink); }

/* Letterhead */
.doc-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; }
.doc-brand { min-width: 0; max-width: 100%; }
.doc-brand-lockup { display: flex; align-items: center; gap: .65rem; }
.doc-logo { flex: none; width: 42px; height: 42px; border-radius: 6px; }
.doc-brand-name { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.doc-brand-meta { margin-top: .4rem; font-size: .76rem; line-height: 1.5; color: var(--doc-muted); }
.doc-brand-reg { margin-top: .45rem; font-size: .7rem; letter-spacing: .01em; color: var(--doc-muted); }
.doc-id { flex: 1 1 190px; min-width: 0; margin-left: auto; text-align: right; }
.doc-kicker { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.doc-ref { margin-top: .15rem; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.doc-status { display: inline-block; margin-top: .45rem; padding: .12rem .5rem .1rem; border: 1px solid currentColor; border-radius: 3px; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.doc-status.is-ok { color: #1c6b46; }
.doc-status.is-warn { color: #8a5a12; }
.doc-status.is-bad { color: #9c2f26; }
.doc-status.is-quiet { color: #4e5665; }
.doc-facts { display: grid; gap: .1rem; margin: .55rem 0 0; font-size: .76rem; }
.doc-facts > div { display: flex; gap: .4rem; justify-content: flex-end; }
.doc-facts dt { color: var(--doc-muted); }
.doc-facts dd { margin: 0; font-weight: 600; }
.doc-id-note { margin-top: .3rem; font-size: .72rem; color: var(--doc-muted); }
.doc-rule { position: relative; height: 0; margin: 1rem 0 1.15rem; border-top: 2px solid var(--doc-strong); }
.doc-rule::after { content: ""; position: absolute; top: -2px; left: 0; width: 56px; border-top: 2px solid var(--gold); }

/* Who / what / when */
.doc-parties { display: grid; gap: .9rem 1.6rem; grid-template-columns: 1fr; margin-bottom: 1.15rem; }
.doc-party h2 { margin: 0 0 .3rem; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--doc-muted); }
.doc-party-body { font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
@media (min-width: 720px) { .doc-parties { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tables */
.doc-table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .84rem; }
.doc-table th, .doc-table td { padding: .45rem .5rem; text-align: left; vertical-align: top; }
.doc-table thead th { padding-top: .2rem; padding-bottom: .35rem; border-bottom: 1px solid #8f97a4; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #3d4552; }
.doc-table tbody td { border-bottom: 1px solid var(--doc-line); }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table th.doc-amount, .doc-table td.doc-amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-lines tfoot th, .doc-lines tfoot td { border-top: 1px solid #8f97a4; }
.doc-lines tfoot .doc-lines-total th, .doc-lines tfoot .doc-lines-total td { border-top: 2px solid var(--doc-strong); font-size: .95rem; font-weight: 700; }
.doc-total { font-size: 1.05rem; font-weight: 800; }
.doc-nowrap { white-space: nowrap; }
.doc-empty { padding: 1rem .5rem; color: var(--doc-muted); text-align: center; }
.doc-cell-meta { display: block; font-size: .7rem; color: var(--doc-muted); }
.doc-statement-lines { font-size: .78rem; }
@media (max-width: 719px) {
  /* A paper table on a phone: smaller type and no forced single-line cells, so
     five columns still fit inside the sheet instead of spilling out of it. */
  .doc-table, .doc-statement-lines, .doc-custody-table { font-size: .74rem; }
  .doc-nowrap { white-space: normal; }
}

/* Account summary */
.doc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); margin: 0 0 1.2rem; border: 1px solid var(--doc-line); border-radius: 4px; overflow: hidden; }
.doc-summary > div { padding: .55rem .65rem; border-right: 1px solid var(--doc-line); }
.doc-summary > div:last-child { border-right: 0; }
.doc-summary span { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--doc-muted); }
.doc-summary b { display: block; margin-top: .15rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.doc-summary .doc-summary-note { margin-top: .1rem; font-size: .64rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.doc-emphasis { color: #9c2f26; }

/* Body sections */
.doc-doc-title { margin: .2rem 0 .9rem; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.25; }
.doc-section { margin: 0 0 1.05rem; }
.doc-section h2 { display: flex; gap: .45rem; align-items: baseline; margin: 0 0 .35rem; font-size: .95rem; font-weight: 800; }
.doc-section-no { flex: none; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.doc-section-no::after { content: "."; }
.doc-prose { font-size: .88rem; line-height: 1.62; }
.doc-prose p { margin: 0 0 .65em; }
.doc-muted { color: var(--doc-muted); font-weight: 400; }
.doc-meta-line { margin: .1rem 0 1rem; font-size: .7rem; color: var(--doc-muted); }
.doc-url { font-size: .76rem; overflow-wrap: anywhere; }
.doc-hash { font-size: .66rem; overflow-wrap: anywhere; }

/* Payment block */
.doc-pay { padding: .75rem .85rem; border: 1px solid var(--doc-line); border-radius: 4px; }
.doc-pay h2 { margin-top: 0; }
.doc-pay-grid { display: grid; gap: .35rem .9rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0 0 .6rem; }
.doc-pay-grid dt { font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--doc-muted); }
.doc-pay-grid dd { margin: .05rem 0 0; font-size: .85rem; font-weight: 600; }

/* Notices */
.doc-notice { margin: 0 0 1rem; padding: .6rem .8rem; border: 1px solid var(--doc-line); border-left: 3px solid #8f97a4; border-radius: 3px; font-size: .8rem; }
.doc-notice.is-ok { border-left-color: #1c6b46; }
.doc-notice.is-warn { border-left-color: #b98a2c; }
.doc-notice.is-bad { border-left-color: #9c2f26; }

/* Signature blocks */
.doc-signatures { margin-top: 1.3rem; }
.doc-signatures-head { margin: 0 0 .5rem; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--doc-muted); }
.doc-sign-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.doc-sign-rule { display: block; height: 30px; margin-bottom: .35rem; border-bottom: 1px solid #7d8492; }
.doc-sign-label { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--doc-muted); }
.doc-sign b { display: block; margin-top: .25rem; font-size: .82rem; }
.doc-sign-detail { display: block; margin-top: .1rem; font-size: .7rem; color: var(--doc-muted); }

/* Footer */
.doc-foot { margin-top: 1.5rem; padding-top: .7rem; border-top: 1px solid var(--doc-strong); font-size: .68rem; color: var(--doc-muted); }
.doc-foot-top { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: flex-start; justify-content: space-between; }
.doc-foot-brand { display: grid; gap: .12rem; }
.doc-foot-brand b { font-family: var(--font-head); font-size: .72rem; color: var(--doc-ink); }
.doc-foot-verify { display: grid; gap: .1rem; max-width: 58ch; }
.doc-foot-verify span:first-child { font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.doc-foot-verify b { font-size: .8rem; letter-spacing: .1em; color: var(--doc-ink); }
.doc-foot-bar { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; margin-top: .7rem; padding-top: .45rem; border-top: 1px solid var(--doc-line); font-size: .62rem; }
.doc-foot-class { letter-spacing: .06em; text-transform: uppercase; }
.doc-qr { flex: none; }
.doc-qr svg { width: 84px; height: 84px; display: block; }
.doc-qr span { display: block; margin-top: .1rem; font-size: .54rem; letter-spacing: .06em; text-transform: uppercase; color: var(--doc-muted); }

/* A document owns the panel it sits in: no card inside a card. */
.panel:has(> .doc-sheet), .panel:has(> .panel-body > .doc-sheet), .statement-doc-panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.panel-body:has(> .doc-sheet) { padding: 0; }

/* Draft watermark, screen and paper. */
.doc-watermark { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; font-family: var(--font-head); font-size: clamp(3.4rem, 12vw, 7rem); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(11, 18, 32, .05); transform: rotate(-22deg); pointer-events: none; user-select: none; }

/* A print-only credit at the foot of public pages. */
.print-credit { display: none; }
@media (max-width: 759px) {
  .admin-list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-list th, .admin-list td { white-space: nowrap; }
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl th, .tbl td { white-space: nowrap; }
}

/* 24. Standalone 404 ---------------------------------------------------------------------- */
.page-404 {
  min-height: 100dvh;
  display: grid; place-items: center;
  text-align: center;
  padding: 1.6rem;
  background:
    radial-gradient(60rem 26rem at 50% -14%, rgba(201, 148, 58, .18), transparent 60%),
    linear-gradient(180deg, #0d1526, var(--navy-900));
  color: #fff;
}
.page-404 .c { max-width: 540px; }
.page-404 .b {
  width: 66px; height: 66px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: var(--navy-900);
}
.page-404 b.f {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 3.4rem; line-height: 1;
  color: var(--gold-2);
  margin-bottom: .6rem;
}
.page-404 h1 { font-size: 1.28rem; color: #fff; }
.page-404 p { color: #b9c2d2; font-size: .95rem; }
.page-404 .btn { background: var(--gold); color: var(--navy-900); margin-top: .4rem; }
.page-404 .ghost {
  display: inline-block;
  margin: .6rem 0 0 .6rem;
  color: #cfd6e4;
  font-size: .9rem; font-weight: 600;
}
.page-404 .ghost:hover { color: #fff; }

/* 24b. Closing survey ----------------------------------------------------------------------- */
.feedback-scores { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: .4rem; }
.feedback-score { position: relative; display: grid; gap: .2rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.feedback-score input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feedback-score:has(input:checked) { border-color: var(--gold); background: #fff8ef; }
.feedback-score:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.feedback-score:hover { border-color: var(--gold); }
.fs-stars { letter-spacing: .12em; color: var(--gold); font-size: 1.05rem; }
.fs-label { font-size: .8rem; color: var(--mut); }
/* 24c. Email event switches ------------------------------------------------------------------ */
.mail-event-list { display: grid; gap: .5rem; }
.mail-event { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-start; justify-content: space-between; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mail-event.is-off { background: #faf9f6; }
.mail-event-toggle { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; flex: 1 1 320px; }
.mail-event-toggle input { margin-top: .25rem; }
.mail-event-toggle b { display: block; }
.mail-event-help { display: block; font-size: .82rem; color: var(--mut); margin-top: .15rem; max-width: 60ch; }
.mail-event-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
/* 24c-2. Email preview ----------------------------------------------------------------------- */
.mail-picker { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.mail-picker select { width: auto; min-width: 250px; max-width: 100%; }
.mail-preview-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mail-preview-layout { display: grid; gap: 1.1rem; align-items: start; }
.mail-preview-layout > .panel { min-width: 0; }
@media (min-width: 900px) {
  .mail-preview-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
.mail-preview-side { display: grid; gap: 1.1rem; min-width: 0; }
.mail-preview-stage {
  padding: clamp(.8rem, 2.5vw, 1.4rem);
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #f5f2ec, #f5f2ec 12px, #efece4 12px, #efece4 24px);
}
.mail-preview-client {
  max-width: 680px; margin: 0 auto; background: #fff;
  border: 1px solid #ddd6c8; border-radius: 10px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 18, 32, .09);
  transition: max-width .18s ease;
}
.mail-preview-stage.is-mobile .mail-preview-client { max-width: 390px; }
.mail-preview-head {
  display: grid; gap: .3rem; padding: .8rem 1rem;
  border-bottom: 1px solid var(--line); background: #fdfcf9;
}
.mail-preview-row { display: flex; gap: .55rem; min-width: 0; font-size: .82rem; line-height: 1.45; }
.mail-preview-row > span {
  flex: none; width: 4.1rem; padding-top: .18rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mut);
}
.mail-preview-row > b { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mail-preview-frame { display: block; width: 100%; height: 640px; border: 0; background: #f4f2ee; }
@media (min-width: 1200px) { .mail-preview-frame { height: 720px; } }
.mail-preview-text {
  margin: 0; padding: 1rem 1.1rem; max-height: 720px; overflow: auto;
  background: #fff; font-size: .86rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
}
.mail-send-item {
  display: flex; gap: .7rem; align-items: center; justify-content: space-between;
  padding: .7rem .95rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.mail-send-item:hover { background: #fbfaf6; }
.mail-send-item.is-active { background: var(--gold-tint-2); border-left: 3px solid var(--gold); padding-left: calc(.95rem - 3px); }
.mail-send-main { display: grid; gap: .12rem; min-width: 0; }
.mail-send-main b { font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-send-meta { font-size: .74rem; color: var(--mut); }
/* 24d. Verification QR — shared by the report and the chain-of-custody form.
   The block itself is drawn by .doc-qr in section 23; the legacy class stays on
   the markup so old links and saved pages keep their box. */

/* 25. Print lives in assets/css/print.css ----------------------------------------
   The print stylesheet is linked with media="print" from includes/header.php and
   includes/app_header.php. One set of page rules, one place to change them, and
   no cascade fight between the screen sheet and the paper sheet. */

/* 26. Motion preferences -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hv-pulse { display: none; }
}

/* 27. Very small screens --------------------------------------------------------------------- */
@media (max-width: 380px) {
  .wrap { width: min(100% - 1.6rem, var(--wrap)); }
  .btn { padding-inline: 1rem; font-size: .9rem; }
  .brand span { font-size: .92rem; }
  .brand small { display: none; }
  .hv-node { font-size: .64rem; }
}

/* 28. Component rules for JS-injected lists, states and standalone documents ------- */
.acc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 .95rem;
}
.acc + .acc { margin-top: .55rem; }
.acc summary {
  display: flex; align-items: center; justify-content: flex-start;
  gap: .55rem;
  min-height: 44px;
  padding: .85rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 700; color: var(--gold-ink); margin-left: auto; }
.acc[open] summary::after { content: "\2212"; }
.acc-body {
  border-top: 1px dashed var(--line);
  padding: .75rem 0 .95rem;
  font-size: .92rem;
  color: var(--mut);
}

.hero-inner { min-width: 0; }
.pipeline-card { display: grid; align-content: start; }
.home-tools-actions { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 640px) { .home-tools-actions { flex-direction: row; flex-wrap: wrap; } }

.service-filter { margin-bottom: 1.2rem; }
.service-filter > form { display: grid; gap: .4rem; margin: 0; }
.service-filter label { font-weight: 600; font-size: .87rem; }

.insights-search { display: flex; gap: .5rem; flex: 1 1 220px; margin: 0; }

.footer-col, .footer-col-contact, .admin-welcome-copy,
.app-foot-brand, .inv-firm, .who-avatar-initial { min-width: 0; }
.app-foot-brand { font-weight: 600; color: var(--ink); }
.who-avatar-initial { line-height: 1; }

/* Timeline builder */
.tl-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.tl-list li { min-width: 0; }
.tl-entry {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem .75rem;
}
.tl-entry > div { min-width: 0; }
.tl-when { font-size: .72rem; color: var(--mut); }
.tl-what { font-size: .9rem; margin-top: .15rem; }
.tl-remove { flex: none; }

/* Evidence register & custody list */
.tool-entry-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.tool-entry {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem .75rem;
}
.tool-entry > div { min-width: 0; }
.tool-entry b { display: block; font-size: .9rem; }
.tool-entry p { margin: .15rem 0; font-size: .85rem; color: var(--ink); }
.tool-entry small { font-size: .74rem; color: var(--mut); }
.tool-entry .btn { flex: none; }

/* Date interval result */
.date-gap-result {
  margin-top: .8rem;
  background: var(--gold-tint-2);
  border: 1px solid #dcc48c;
  border-radius: 12px;
  padding: .95rem 1.05rem;
}
.date-gap-result strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--navy-900);
}
.date-gap-result p { font-size: .82rem; color: var(--mut); margin: .1rem 0; }
.date-gap-result .btn { margin-top: .5rem; }

/* Free tool modal */
.free-tool-modal .modal-dialog, .free-tool-dialog { max-width: 680px; }
.free-tool-modal-body { padding-top: .9rem; }
.free-tool-stash:not([hidden]) { margin-top: 1rem; }
.free-tool-note { font-size: .88rem; }
.home-tools-callout .split { align-items: center; }
.preservation-step b { font-weight: 600; }
.quiz-back { margin-bottom: .8rem; }

/* Transient UI states */
.is-copied { color: var(--ok) !important; border-color: var(--ok) !important; }
.is-drag { border-color: var(--gold) !important; background: var(--gold-tint-2) !important; }
.is-quiet { opacity: .62; }
.is-current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
a.is-primary { color: var(--gold-ink); }

/* Admin list pagination */
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 38px;
  padding: .4rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: .86rem; font-weight: 600;
  text-decoration: none;
}
.page-link:hover { border-color: var(--navy-700); }

/* Standalone document helpers (case report) */
.box { background: #f5f7fa; padding: .75rem .9rem; border-radius: 8px; font-size: .9rem; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0; }
.entry { border-left: 3px solid var(--gold); padding: 0 0 1rem .9rem; margin: 0 0 1rem; }

/* Case management ------------------------------------------------------------------------- */
.case-admin-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  margin-bottom: 1.2rem; padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #1a2a46; border-radius: 16px;
  color: #e8edf6;
  background: radial-gradient(38rem 18rem at 100% 0%, rgba(201,148,58,.16), transparent 68%), linear-gradient(125deg, #0b1220, #172846 70%, #213555);
  box-shadow: 0 14px 36px rgba(11,18,32,.12);
}
.case-admin-hero-copy { min-width: 0; }
.case-admin-eyebrow { display: block; color: #f0d98a; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.case-admin-eyebrow-light { color: var(--gold-ink); }
.case-admin-hero h1 { margin: .25rem 0 .35rem; color: #fff; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; }
.case-admin-hero p { max-width: 62ch; margin: 0; color: #c3ccdd; font-size: .9rem; }
.case-admin-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; flex: none; }
.case-overview { margin-bottom: 1.2rem; }
.case-section-heading { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin: 0 0 .65rem; }
.case-section-heading h2 { margin: .15rem 0 0; font-size: 1.12rem; }
.case-overview .admin-attention-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 0; }
.case-overview .kpi { text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.case-overview .kpi:hover { transform: translateY(-2px); border-color: #d0b46c; box-shadow: 0 8px 20px rgba(11,18,32,.08); }
.case-overview .kpi.is-on { opacity: 1; border-color: var(--gold); background: var(--gold-tint-2); box-shadow: inset 0 0 0 1px rgba(201,148,58,.18); }
.case-overview .kpi-alert { border-left: 3px solid #ba4a42; }
.case-overview .kpi-warn { border-left: 3px solid #c58b22; }
.case-list-panel .panel-head { align-items: center; }
.case-list-panel .panel-head h2 { font-size: 1.08rem; }
.case-list-controls { display: grid; gap: .8rem; }
.case-list-controls .pill-row { gap: .45rem; }
.case-list-controls .chip { min-height: 36px; }
.case-list-filter { margin: 0 0 .8rem; }
.case-list-filter input { flex: 1 1 300px; min-height: 44px; }
.case-list-filter select { min-width: 175px; min-height: 44px; }
.case-admin-list { min-width: 1120px; }
.case-admin-list td { vertical-align: top; }
.case-admin-list td:nth-child(4) { min-width: 160px; white-space: normal; }
.case-admin-list td:nth-child(5) { min-width: 135px; white-space: normal; }
.case-admin-list td:nth-child(7) { min-width: 110px; }
.case-editor-modal .modal-dialog { max-width: 720px; }
.case-editor-modal .modal-body { padding: 0; }
.case-editor-modal .modal-head { align-items: center; }
.case-editor-modal .case-editor-panel { margin: 0; border: 0; border-radius: 0 0 16px 16px; box-shadow: none; }
.case-editor-modal .case-editor-panel .panel-body { padding: 1.15rem; }
.case-editor-kicker { display: block; margin-bottom: .2rem; color: var(--gold-ink); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 760px) {
  .case-admin-hero { align-items: flex-start; flex-direction: column; }
  .case-admin-hero-actions { justify-content: flex-start; }
  .case-section-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .case-admin-hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .case-admin-hero-actions .btn { justify-content: center; }
  .case-list-filter > * { flex: 1 1 100%; }
  .case-list-filter input, .case-list-filter select { min-width: 0; width: 100%; }
  .case-editor-modal.modal { padding: .5rem; }
  .case-editor-modal .modal-dialog { max-height: calc(100dvh - 1rem); border-radius: 13px; }
}

.case-detail-hero {
  display: grid; gap: 1rem;
  margin-bottom: 1rem; padding: clamp(1.15rem, 3vw, 1.7rem);
  border: 1px solid #1a2a46; border-radius: 16px;
  color: #e8edf6;
  background: radial-gradient(42rem 20rem at 100% 0%, rgba(201,148,58,.17), transparent 68%), linear-gradient(125deg, #0b1220, #172846 70%, #213555);
  box-shadow: 0 14px 36px rgba(11,18,32,.12);
}
.case-detail-top { display: ; align-items: flex-start; justify-content: space-between; gap: 1.4rem; }
.case-detail-copy { min-width: 0; }
.case-detail-back { display: inline-flex; color: #c3ccdd; font-size: .82rem; font-weight: 600; text-decoration: none; }
.case-detail-back:hover { color: #fff; }
.case-detail-number { display: block; margin-top: .85rem; color: #f0d98a; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.case-detail-hero h2 { margin: .25rem 0 .5rem; color: #fff; font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.2; }
.case-detail-summary { max-width: 76ch; margin: 0; color: #c3ccdd; font-size: .9rem; line-height: 1.65; white-space: pre-wrap; }
.case-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem; margin-top: .85rem; color: #c3ccdd; font-size: .78rem; }
.case-detail-meta > span:not(.badge) { display: inline-flex; align-items: center; gap: .3rem; }
.case-detail-meta .ic-s { width: 15px; height: 15px; }
.case-detail-client { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.14); color: #c3ccdd; font-size: .8rem; }
.case-client-label { display: inline-flex; align-items: center; gap: .3rem; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; color: #9aa8bf; }
.case-client-name { color: #fff; font-weight: 600; }
.case-client-meta { color: #c3ccdd; }
.case-client-link { display: inline-flex; align-items: center; gap: .25rem; color: #c3ccdd; text-decoration: none; }
.case-client-link:hover { color: #fff; text-decoration: underline; }
.case-detail-client .ic-s { width: 14px; height: 14px; }
.case-detail-links { display: flex; align-items: flex-start; justify-content: flex-end; flex: none; flex-wrap: wrap; gap: .45rem; }
.case-detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.14); }
.case-detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.case-detail-stat { display: grid; align-content: start; gap: .08rem; min-width: 0; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.case-detail-stat > span { display: flex; align-items: center; gap: .35rem; color: var(--mut); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.case-detail-stat .ic-s { width: 15px; height: 15px; color: var(--gold-ink); }
.case-detail-stat b { color: var(--ink); font-family: var(--font-head); font-size: 1.45rem; line-height: 1.2; }
.case-detail-stat small { color: var(--mut); font-size: .76rem; }
.case-detail-stat.is-alert { border-color: #e4c3bf; background: #fff9f8; }
.case-detail-stat.is-alert b, .case-detail-stat.is-alert .ic-s { color: #a53630; }
.case-detail-stat.is-warn { border-color: #e6d6af; background: #fffcf4; }
.case-detail-stat.is-warn .ic-s { color: #8c6516; }
.case-workspace-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: .45rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.case-workspace-nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .35rem .7rem; border-radius: 9px; color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.case-workspace-nav a:hover, .case-workspace-nav a:focus-visible { background: var(--gold-tint-2); color: var(--gold-ink); }
.case-workspace-nav b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: .3rem; border-radius: 999px; background: #eef1f5; color: var(--mut); font-size: .7rem; }
.case-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; margin-bottom: 1rem; }
.case-workspace-panel { min-width: 0; margin: 0; }
.case-workspace-panel .panel-head, .case-activity-panel .panel-head { align-items: center; }
.case-workspace-panel .panel-head p, .case-activity-panel .panel-head p { margin: .2rem 0 0; }
.case-workspace-panel .panel-head > div:first-child, .case-activity-panel .panel-head > div:first-child { min-width: 0; }
.case-workspace-panel .panel-body.p0 { min-width: 0; }
.case-activity-panel { margin-top: 0; }
.case-activity-panel .timeline { padding: 0 1.1rem; }
@media (max-width: 860px) {
  .case-detail-top { flex-direction: column; }
  .case-detail-links { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .case-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .case-detail-links, .case-detail-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .case-detail-links .btn, .case-detail-actions .btn { justify-content: center; }
  .case-workspace-nav { flex-wrap: nowrap; overflow-x: auto; }
  .case-workspace-nav a { flex: none; }
}

/* Shared administrator pages ---------------------------------------------------------------- */
.is-admin-content > .panel { border-radius: 14px; box-shadow: 0 4px 18px rgba(11,18,32,.045); }
.is-admin-content > .panel + .panel { margin-top: 1rem; }
.is-admin-content .panel-head { gap: .8rem; }
.is-admin-content .panel-head h2 { font-size: 1.02rem; }
.is-admin-content .table-wrap { border-color: #e1e5ec; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.is-admin-content table th { color: #46536a; font-size: .68rem; letter-spacing: .075em; text-transform: uppercase; }
.is-admin-content table td { line-height: 1.5; }
.is-admin-content .list-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; padding: .9rem 1.1rem 1.05rem; }
.is-admin-content .list-foot .pagination { margin: 0; }
.is-admin-content > .admin-welcome:not(.admin-dashboard-hero) { display: block; overflow: hidden; margin-bottom: 1rem; border-color: #1a2a46; color: #e8edf6; background: radial-gradient(38rem 18rem at 100% 0%, rgba(201,148,58,.14), transparent 68%), linear-gradient(125deg, #0b1220, #172846 72%, #213555); box-shadow: 0 14px 36px rgba(11,18,32,.1); }
.is-admin-content > .admin-welcome:not(.admin-dashboard-hero) .admin-welcome-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: none; padding: clamp(1.2rem, 3vw, 1.65rem); color: #c3ccdd; }
.is-admin-content > .admin-welcome:not(.admin-dashboard-hero) .admin-welcome-copy { min-width: 0; }
.is-admin-content > .admin-welcome:not(.admin-dashboard-hero) .admin-welcome-copy h2 { margin: .35rem 0 .4rem; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.is-admin-content > .admin-welcome:not(.admin-dashboard-hero) .admin-welcome-copy p { max-width: 70ch; margin: 0; color: #c3ccdd; }
.admin-page-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  margin-bottom: 1rem; padding: clamp(1.2rem, 3vw, 1.65rem);
  border: 1px solid #1a2a46; border-radius: 16px;
  color: #e8edf6;
  background: radial-gradient(38rem 18rem at 100% 0%, rgba(201,148,58,.14), transparent 68%), linear-gradient(125deg, #0b1220, #172846 72%, #213555);
  box-shadow: 0 14px 36px rgba(11,18,32,.1);
}
.admin-page-hero-copy { min-width: 0; }
.admin-page-eyebrow { display: block; color: #f0d98a; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-page-hero h2 { margin: .25rem 0 .35rem; color: #fff; font-family: var(--font-head); font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.2; }
.admin-page-hero p { max-width: 68ch; margin: 0; color: #c3ccdd; font-size: .88rem; }
.admin-page-hero-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.admin-page-hero-actions .btn { min-height: 40px; }
.is-admin-content .message-client-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: .75rem; }
.is-admin-content .message-client-form .field { margin: 0; }
.is-admin-content .message-conversation .chat { max-height: min(62vh, 760px); overflow-y: auto; padding: 1rem; background: #f5f7fa; border-bottom: 1px solid var(--line); }
.is-admin-content .message-conversation .bubble { box-shadow: 0 2px 8px rgba(11,18,32,.045); overflow-wrap: anywhere; white-space: pre-wrap; }
.is-admin-content .message-conversation .bubble.me { justify-self: end; border-color: #1b2c4a; background: #172846; color: #fff; }
.is-admin-content .message-conversation .bubble.me .b-meta { color: #c3ccdd; }
.is-admin-content .message-conversation .bubble.them { border-left: 3px solid var(--gold); }
.is-admin-content .message-compose form { display: grid; gap: .7rem; }
.is-admin-content .message-empty-state .panel-body { padding: clamp(1.4rem, 4vw, 2.3rem); text-align: center; }
.is-admin-content .message-empty-state h2 { margin: .7rem 0 .3rem; }
.is-admin-content .message-empty-state p { max-width: 50ch; margin: 0 auto; color: var(--mut); }
.is-admin-content .message-empty-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; border: 1px solid #e3d2a8; border-radius: 16px; background: var(--gold-tint-2); color: var(--gold-ink); }
.is-admin-content .message-empty-mark svg { width: 26px; height: 26px; }
.admin-page-hero-actions > .badge { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; padding-inline: .7rem; }
.admin-page-hero-actions > .badge svg { width: 14px; height: 14px; }
.staff-workspace-kpis { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.staff-assigned-cases .table-wrap { overflow-x: auto; }
.staff-password-panel { max-width: 980px; }
.staff-password-form { max-width: 720px; }
.staff-password-form .form-grid { align-items: start; }
.staff-home-grid { align-items: start; }
.staff-home-message { text-decoration: none; color: inherit; }
.staff-home-message:hover { background: #f7f9fc; }
.staff-detail-list { display: grid; margin: 0; }
.staff-detail-list > div { display: grid; grid-template-columns: minmax(105px, .75fr) 1.25fr; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.staff-detail-list > div:last-child { border-bottom: 0; }
.staff-detail-list dt { color: var(--mut); font-size: .76rem; font-weight: 700; }
.staff-detail-list dd { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.staff-account-facts { max-width: 620px; }
.account-control-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.account-control-actions form { margin: 0; }
.staff-directory-person { display: flex; align-items: center; gap: .6rem; }
.staff-directory-person .avatar { flex: none; width: 36px; height: 36px; font-size: .95rem; }
.is-staff .message-client-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: .75rem; }
.is-staff .message-client-form .field { margin: 0; }
.is-staff .message-conversation .chat { max-height: min(62vh, 760px); overflow-y: auto; padding: 1rem; background: #f5f7fa; border-bottom: 1px solid var(--line); }
.is-staff .message-conversation .bubble { box-shadow: 0 2px 8px rgba(11,18,32,.045); overflow-wrap: anywhere; white-space: pre-wrap; }
.is-staff .message-conversation .bubble.me { justify-self: end; border-color: #1b2c4a; background: #172846; color: #fff; }
.is-staff .message-conversation .bubble.me .b-meta { color: #c3ccdd; }
.is-staff .message-conversation .bubble.them { border-left: 3px solid var(--gold); }
.is-staff .message-compose form { display: grid; gap: .7rem; }
.is-staff .message-empty-state .panel-body { padding: clamp(1.4rem, 4vw, 2.3rem); text-align: center; }
.is-staff .message-empty-state h2 { margin: .7rem 0 .3rem; }
.is-staff .message-empty-state p { max-width: 50ch; margin: 0 auto; color: var(--mut); }
.is-staff .message-empty-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; border: 1px solid #e3d2a8; border-radius: 16px; background: var(--gold-tint-2); color: var(--gold-ink); }
.is-staff .message-empty-mark svg { width: 26px; height: 26px; }
@media (max-width: 759px) {
  .is-staff .message-client-form { grid-template-columns: 1fr; }
  .is-staff .message-client-form .btn { justify-content: center; }
}
.conversion-next-step .panel-body { display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; justify-content: center; gap: .8rem; }
.conversion-next-step .panel-body > :first-child { margin-top: 0; }
.outbox-panel .panel-head { flex-wrap: wrap; }
.outbox-panel .panel-head > form { margin: 0; }
.outbox-panel .panel-body .toolbar + .toolbar { row-gap: .5rem; }
.outbox-panel .panel-body.p0 { overflow-x: auto; }
.admin-record-editor-modal .modal-dialog { display: flex; max-height: min(92vh, 960px); flex-direction: column; }
.admin-record-editor-modal .modal-body { min-height: 0; overflow-y: auto; }
.admin-record-editor-modal .editor-panel { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-record-editor-modal .editor-panel > .panel-head { display: none; }
.admin-record-editor-modal .editor-panel > .panel-body { padding: 0; }
.invoice-admin-hero .admin-page-hero-actions { align-items: center; }
.task-detail-hero .admin-page-hero-copy h2 { overflow-wrap: anywhere; }
.editor-page-hero { margin-bottom: 1rem; }
.settings-page-nav {
  position: sticky; top: var(--settings-top, 55px); z-index: 30;
  display: flex; gap: .35rem; overflow-x: auto;
  margin: 0 0 1rem; padding: .4rem;
  border: 1px solid #dfe4ec; border-radius: 13px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 22px rgba(11, 18, 32, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.settings-page-nav::-webkit-scrollbar { display: none; }
.settings-page-nav a { display: inline-flex; flex: none; align-items: center; gap: .5rem; min-height: 40px; padding: .45rem .8rem; border-radius: 9px; color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: none; }
.settings-page-nav a:hover, .settings-page-nav a:focus-visible { outline: 0; background: #f5f2e9; color: var(--gold-ink); }
.settings-page-nav a.is-active { background: var(--navy-900); color: #fff; }
.settings-page-nav a svg { width: 16px; height: 16px; flex: none; color: var(--gold-ink); }
.settings-page-nav a.is-active svg { color: var(--gold-2); }
.settings-profile-panel .panel-body, .settings-website-panel .panel-body, .settings-mail-panel .panel-body { padding: clamp(1rem, 2.5vw, 1.5rem); }
.settings-profile-form { max-width: none; }
.settings-avatar-intro { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.settings-avatar-intro .avatar { flex: none; margin: 0; }
.settings-avatar-intro p { margin: .15rem 0 0; }
.settings-profile-layout { display: grid; gap: 1.4rem; }
@media (min-width: 1280px) {
  .settings-profile-layout { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); align-items: start; gap: 1.8rem; }
}
.settings-subhead { margin: 0 0 .85rem; color: var(--navy-900); font-size: 1rem; }
.settings-profile-panel .panel-head h2, .settings-website-panel .panel-head h2, .settings-mail-panel .panel-head h2 { font-size: 1.12rem; }
.settings-password-card { padding: 1.1rem 1.15rem; border: 1px solid #e7e3d9; border-radius: 14px; background: #fbfaf6; }
.settings-password-card > p { margin: 0 0 .9rem; }
.settings-password-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
.settings-password-fields .field { margin-bottom: .8rem; }
@media (min-width: 640px) and (max-width: 1279px) {
  .settings-password-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .95rem; }
  .settings-password-fields .field:first-child { grid-column: 1 / -1; }
}
.settings-profile-actions { margin-top: 1.2rem; }
.settings-website-form, .settings-mail-form { max-width: 1120px; }
.settings-profile-form fieldset, .settings-website-form fieldset, .settings-mail-form fieldset { border: 0; margin-inline: 0; padding-inline: 0; min-width: 0; }
.settings-group { margin: 0; padding: 1.5rem 0 .45rem; border-top: 1px solid #e7e4db; }
.settings-group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.settings-group legend { padding-right: .65rem; color: #16233a; font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; }
.settings-group legend::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.settings-group-description { margin: -.3rem 0 .55rem; max-width: 80ch; }
.settings-group .form-grid { align-items: start; }
.settings-group .field { min-width: 0; }
#your-profile, #website-settings, #group-tax, #email-delivery, .settings-group { scroll-margin-top: calc(var(--settings-top, 55px) + 5.5rem); }
.settings-group-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .7rem clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--line); background: #fbfaf6; }
.settings-group-nav-label { margin-right: .15rem; color: var(--mut); font-size: .63rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.settings-group-nav a { padding: .26rem .6rem; border: 1px solid #e4e0d5; border-radius: 999px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 600; text-decoration: none; }
.settings-group-nav a:hover { border-color: var(--gold); color: var(--gold-ink); }
.settings-save-actions {
  position: sticky; bottom: .6rem; z-index: 20;
  align-items: center;
  margin-top: 1.6rem; padding: .8rem 1rem;
  border: 1px solid #e3dfd3; border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(11, 18, 32, .10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.settings-save-actions .small { flex: 1 1 220px; }
.settings-mail-panel > .panel-head { flex-wrap: wrap; }
.settings-env-note { margin-bottom: 1rem; }
.settings-mail-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .65rem; margin: 0 0 1rem; }
.settings-mail-summary > div { display: grid; align-content: start; gap: .25rem; min-width: 0; padding: .8rem .9rem; border: 1px solid #e7e3d9; border-radius: 11px; background: #fbfaf6; }
.settings-mail-summary > div > span { color: var(--mut); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.settings-mail-summary > div > b { overflow-wrap: anywhere; font-size: .88rem; }
.settings-profile-form .image-drop input[type="file"] { padding: .45rem .5rem; }
.settings-profile-form .image-drop input[type="file"]::file-selector-button { margin-right: .7rem; padding: .4rem .75rem; border: 1px solid #e2d4ae; border-radius: 8px; background: var(--gold-tint); color: var(--navy-900); font: 600 .78rem var(--font-body); cursor: pointer; }
@media (max-width: 719px) {
  .settings-group-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .settings-group-nav::-webkit-scrollbar { display: none; }
  .settings-group-nav a { flex: none; }
  .settings-save-actions { bottom: .4rem; }
}
@media (max-width: 559px) {
  .settings-save-actions { padding: .5rem .6rem; }
  .settings-save-actions .small { display: none; }
}
/* Settings print rules live in assets/css/print.css. */
@media (max-width: 760px) {
  .is-admin-content > .admin-welcome:not(.admin-dashboard-hero) .admin-welcome-body { align-items: stretch; flex-direction: column; }
  .is-admin-content > .admin-welcome:not(.admin-dashboard-hero) .admin-quick-actions { justify-content: flex-start; }
  .admin-page-hero { align-items: flex-start; flex-direction: column; }
  .admin-page-hero-actions { justify-content: flex-start; }
  .conversion-next-step .panel-body { min-height: 0; }
  .admin-record-editor-modal .modal-dialog { max-height: 94vh; }
  .settings-page-nav { margin-inline: 0; }
}
@media (max-width: 560px) {
  .is-admin-content .message-client-form { grid-template-columns: 1fr; }
  .is-admin-content .message-client-form .btn { justify-content: center; }
  .admin-page-hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .admin-page-hero-actions .btn { justify-content: center; }
  .is-admin-content .list-foot { align-items: flex-start; flex-direction: column; }
  .settings-avatar-intro { align-items: flex-start; }
  .settings-save-actions { align-items: stretch; }
}

/* 23. Invoice line editor --------------------------------------------------- */
.invoice-lines-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: .9rem 1rem;
  margin: .2rem 0 .6rem;
}
.invoice-lines-heading { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; justify-content: space-between; margin-bottom: .6rem; }
.invoice-lines-heading p { margin: .2rem 0 0; }
.invoice-line-list { display: grid; gap: .6rem; }
.invoice-line-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.invoice-line-row-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.invoice-line-number { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.invoice-line-row .field { margin-bottom: .55rem; }
.invoice-line-values { display: grid; gap: .1rem .8rem; grid-template-columns: 1fr; }
.invoice-line-amount { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .9rem; }
.invoice-line-amount span { font-size: .8rem; color: var(--mut); }
.invoice-line-amount b { font-family: var(--font-head); font-size: 1rem; }
.invoice-line-save { margin: .1rem 0 .2rem; }
.invoice-lines-footer { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-top: .8rem; }
.invoice-total-preview { display: flex; gap: .55rem; align-items: baseline; }
.invoice-total-preview span { font-size: .8rem; color: var(--mut); }
.invoice-total-preview b { font-family: var(--font-head); font-size: 1.15rem; }
.invoice-line-remove { color: var(--mut); }
@media (min-width: 560px) {
  .invoice-line-values { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
}

/* Active card in the case overview strip. */
.kpi-grid.admin-attention-grid .kpi.is-on {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.invoice-overview { margin-bottom: 1.1rem; }

/* Invoice bulk actions */
.bulk-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .8rem 0 .3rem; }
.bulk-bar select { min-height: 38px; }
.cell-check { width: 2.3rem; }
.cell-check input { width: 16px; height: 16px; accent-color: var(--gold); }

/* =============================================================================
   2026-11 REFINEMENT — editorial evidence brief
   Appended last so it wins over the component rules above. Brand, routes,
   copy and information architecture are unchanged.
   ========================================================================== */

:root {
  --navy-900: #0a1120;
  --navy-800: #101b2e;
  --navy-700: #1a2842;
  --gold-2: #e7c363;
  --gold-ink: #7d5a18;
  --paper: #f8f6f1;
  --line: #e5e0d4;
  --line-2: #ccd3df;
  --shadow-1: 0 1px 2px rgba(10, 17, 32, .05), 0 10px 30px rgba(10, 17, 32, .06);
  --shadow-2: 0 20px 50px rgba(10, 17, 32, .15);
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --section-y: clamp(2.8rem, 6vw, 4.6rem);
}

body { font-size: 1.01rem; line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.018em; }
h1 { font-size: clamp(1.95rem, 4.8vw, 3rem); line-height: 1.06; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.12; }
h3 { font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.26; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.14rem); color: #4f5a6e; }
.eyebrow { font-size: .68rem; letter-spacing: .18em; }
.eyebrow::before { width: 1.4rem; }

/* Public chrome */
.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { padding-block: .72rem; }
.brand span { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.brand small { font-size: .5rem; letter-spacing: .16em; color: #6a7488; }
.header-rail { background: #070d19; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #9aa7bd; }
.header-rail .wrap { gap: .3rem 1.35rem; }
.header-rail .ic-s { color: var(--gold-2); }

@media (min-width: 1240px) {
  .nav > a, .nav-dd > summary {
    font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
    color: #25314a; padding: .5rem .52rem;
  }
  .nav > a.on, .nav-dd > summary.on {
    background: transparent; color: var(--navy-900); border-radius: 0;
    box-shadow: inset 0 -2px 0 var(--gold); padding-left: .52rem;
  }
  .nav > a:hover, .nav-dd > summary:hover { background: #f6f2e8; }
}

@media (max-width: 719px) {
  .header-rail .wrap {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .7rem; overflow: visible; padding-inline: 1.1rem;
    width: 100%; max-width: none;
  }
  .header-rail span { white-space: nowrap; font-size: .63rem; }
  .header-rail .ic-s { width: 12px; height: 12px; }
}

/* Hero */
.hero {
  background:
    radial-gradient(70rem 34rem at 86% -14%, rgba(201, 148, 58, .17), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #0d1526, var(--navy-900) 62%);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.6rem, 6vw, 3.8rem);
}
.hero-title { font-size: clamp(2.1rem, 6vw, 3.55rem); line-height: 1.04; font-weight: 600; }
.hero .lead { color: #c0c9d8; max-width: 54ch; }

.hv-core {
  min-width: 210px; padding: 1.45rem 1.6rem;
  background: rgba(8, 15, 27, .97);
  border-color: rgba(231, 195, 99, .55);
  box-shadow: 0 24px 60px rgba(2, 7, 15, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hv-core::before, .hv-core::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--gold-2); border-style: solid; opacity: .7;
}
.hv-core::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 20px 0 0 0; }
.hv-core::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 20px 0; }
.hv-core b { font-family: var(--font-head); font-size: .98rem; }
.hv-core small { font-size: .69rem; color: #a7b3c8; }
.hv-node {
  font-size: .76rem; color: #e2e8f3;
  background: #0f1a2e; border-color: #2a3b58; padding: .46rem .8rem;
  box-shadow: 0 6px 18px rgba(3, 8, 17, .35);
}
.hv-node i { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(231, 195, 99, .12); }
.hv-links path { stroke-width: 1.6; opacity: .55; }
.hv-foot { color: #93a1b8; letter-spacing: .11em; }
@media (min-width: 900px) { .hv-stage { max-width: 420px; } }

.credential-band { background: #0c1628; border-top: 1px solid rgba(231, 195, 99, .22); padding-block: 1.25rem; }
.credential-item b { font-family: var(--font-ui); font-size: .84rem; }
.credential-item span { font-size: .78rem; color: #93a1b8; }
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stat b { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; }
.stat span { font-size: .78rem; color: #5a6478; }

/* Page heads and surfaces */
.page-head {
  padding-block: clamp(2.6rem, 5.4vw, 4rem);
  box-shadow: inset 0 -1px 0 rgba(231, 195, 99, .28);
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; max-width: 24ch; }
.page-head p { font-size: clamp(1rem, 1.4vw, 1.08rem); color: #bdc7d7; }

.card, .panel { border-radius: 16px; }
a.card { box-shadow: 0 1px 2px rgba(10, 17, 32, .03); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #d9c9a5; }
.card h3 { font-family: var(--font-head); font-weight: 600; }
.card .price { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.ic-wrap {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(160deg, #fbf5e6, #f4ead4);
  border: 1px solid #ecdfc2;
}
.section .center > h2 { max-width: 24ch; margin-inline: auto; }

/* Services: anchor the search to the dark page head */
.service-filter {
  position: relative; z-index: 2;
  width: min(100% - 2.2rem, var(--wrap));
  margin: -2.4rem auto 1.4rem;
  padding: 1.05rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-1);
}
.service-filter > form { gap: .5rem; }
.service-filter label {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink);
}
.service-filter-row input { min-height: 48px; background: #fbfaf6; }
#service-filter-count { margin: .15rem 0 0; font-size: .78rem; }
@media (min-width: 900px) { .service-filter { margin-top: -3rem; } }

/* Insights */
.insights-topics .chip { max-width: 100%; white-space: normal; text-align: left; line-height: 1.35; }
.insights-topics .chip .pill-n { margin-left: .35rem; }
.post-cover-empty {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(231, 195, 99, .14), transparent 60%),
    linear-gradient(160deg, #0d1729, #16233c);
}
.post-cover-empty svg { width: 44px; height: 44px; color: #c9a24a; opacity: .85; }
.post-cover-empty-label { font-size: .64rem; letter-spacing: .18em; color: #aab6ca; }
.post-cover-empty::after {
  content: "ISS"; position: absolute; right: .8rem; bottom: .35rem;
  font-family: var(--font-head); font-size: 2.6rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .05); pointer-events: none;
}

/* Article: sticky contents rail on desktop */
.post-section .wrap { max-width: 1120px; }
.post-article { display: grid; gap: 1.2rem; }
.post-article:not(.has-toc) { max-width: 900px; margin-inline: auto; }
.article-cover {
  margin: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1220;
}
.article-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.post-content-card { padding: clamp(1.3rem, 3vw, 2.4rem); font-size: 1.02rem; }
.post-content-card p, .post-content-card li { line-height: 1.8; }
.post-content-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2rem; }
.post-toc { border-radius: 14px; border-top: 3px solid var(--gold); box-shadow: var(--shadow-1); }
@media (min-width: 1024px) {
  .post-article.has-toc { grid-template-columns: minmax(0, 1fr) 280px; gap: 1.4rem 2rem; align-items: start; }
  .post-article.has-toc > .article-cover { grid-column: 1; grid-row: 1; }
  .post-article.has-toc > .post-content-card { grid-column: 1; }
  .post-article.has-toc.has-cover > .post-content-card { grid-row: 2; }
  .post-article.has-toc:not(.has-cover) > .post-content-card { grid-row: 1; }
  .post-article.has-toc > .post-toc { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 92px; margin: 0; }
  .post-article.has-toc > .post-author { grid-column: 1 / -1; }
}

/* Floating callback: hidden on phones; the header call control and hero CTA
   already provide the same action without covering copy. */
@media (max-width: 719px) {
  .callback-fab { display: none; }
}

/* Auth on phones: start at the top instead of floating in the middle */
@media (max-width: 959px) {
  .auth-wrap { place-items: start center; padding-top: max(1.25rem, 4vh); }
}

/* Services on phones: keep the category strip to one scrollable row so the
   search panel is visible without a long scroll, and keep Clear beside it. */
@media (max-width: 719px) {
  .page-head .pill-row {
    flex-wrap: nowrap; overflow-x: auto; gap: .45rem;
    padding-bottom: .35rem; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2.4rem), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2.4rem), transparent 100%);
  }
  .page-head .pill-row::-webkit-scrollbar { display: none; }
  .page-head .pill-row .tag { flex: 0 0 auto; }
  .service-filter-row { flex-wrap: nowrap; }
  .service-filter-row input { flex: 1 1 auto; min-width: 0; }
  .service-filter-row .btn { flex: 0 0 auto; }
  .service-filter { margin-top: -2rem; padding: .9rem 1rem; }
  .service-filter + section { padding-top: calc(var(--section-y) * .7); }
}

/* Auth: branded split panel on desktop, compact card on phones */
.auth-page {
  background:
    radial-gradient(55rem 30rem at 15% -10%, rgba(201, 148, 58, .18), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #0d1526, #070d19);
}
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; }
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
    gap: clamp(2.5rem, 6vw, 5rem);
    max-width: 1180px; margin-inline: auto; padding: clamp(2.5rem, 8vh, 5.5rem) 2rem 2rem;
    align-items: start;
  }
  .auth-aside {
    display: flex; flex-direction: column; gap: 2.2rem;
    max-width: 520px; color: #c9d2e2;
  }
  .auth-card .auth-brand .brand-logo { display: none; }
}
.auth-aside-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.auth-aside-brand .brand-logo { width: 48px; height: 48px; }
.auth-aside-brand span { display: grid; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.auth-aside-brand small {
  font-family: var(--font-body); font-size: .56rem; letter-spacing: .16em;
  text-transform: uppercase; color: #8fa0c0; margin-top: .15rem;
}
.auth-aside .eyebrow { color: var(--gold-2); }
.auth-aside-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: .6rem 0 .8rem; max-width: 16ch; }
.auth-aside-copy p { color: #aeb9cc; font-size: 1.02rem; max-width: 44ch; }
.auth-aside-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .9rem; color: #c3ccdd; }
.auth-aside-points li { display: flex; gap: .6rem; align-items: flex-start; }
.auth-aside-points svg { color: var(--gold-2); margin-top: .15rem; }
.auth-aside-foot { margin: 0; font-size: .82rem; color: #8fa0c0; }
.auth-aside-foot a { color: #fff; font-weight: 600; }
.auth-card {
  max-width: 460px; border-top: 3px solid var(--gold); border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: 0 40px 90px rgba(3, 8, 17, .55);
}
.auth-card h1 { font-size: 1.35rem; }
.auth-card .field { margin-bottom: .9rem; }

/* Workspace: denser chrome, same components */
.app h1, .app h2, .app h3, .app h4, .app .brand span {
  font-family: var(--font-ui); letter-spacing: -.012em;
}
.app-side { background: linear-gradient(180deg, #0a1120, #070d19); }
.app-nav .group {
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: .35rem; padding-top: 1rem;
}
.app-nav .group:first-child { border-top: 0; margin-top: 0; padding-top: .55rem; }
.app-nav a { border-radius: 9px; font-size: .88rem; }
.app-nav a.on {
  background: rgba(231, 195, 99, .1); color: #f5e2a8;
  box-shadow: inset 3px 0 0 var(--gold-2);
}
.app-top { min-height: 64px; padding: .6rem 1.1rem; background: rgba(255, 255, 255, .96); }
.app-top h1 { font-size: 1.02rem; font-weight: 700; }
.app-content { max-width: 1400px; padding: clamp(1rem, 2.4vw, 1.8rem); }
.panel-head { background: #fbfaf6; padding: .9rem 1.15rem; }
.panel-body { padding: 1.15rem; }
.kpi { border-radius: 14px; }

/* Denser tables and clearer form labels */
table th {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: #6a7488; background: #fbfaf6;
}
table th, table td { padding: .7rem .75rem; border-bottom: 1px solid #ede9df; }
table tbody tr:hover { background: #fcfbf7; }
.field > label { font-size: .82rem; font-weight: 700; }

.footer-grid { gap: 2rem; }
.site-footer { border-top: 1px solid rgba(231, 195, 99, .2); }

/* Workspace rows: metadata sits on its own line instead of running into the
   title ("Emp 1Johnny · Due…", client name + company). */
.q-main { display: grid; gap: .12rem; min-width: 0; }
.q-sub { display: block; }
.cell-meta { display: block; margin-top: .12rem; font-weight: 400; font-size: .78rem; color: var(--mut); }

/* List filters: search and selects share one row on desktop, stack on phones. */
.list-filter input[type="search"] { flex: 1 1 280px; width: auto; }
.list-filter select { width: auto; min-width: 150px; }
.toolbar input[type="search"] { flex: 1 1 240px; width: auto; }
.toolbar select { width: auto; min-width: 160px; max-width: 100%; }
.bulk-bar select { width: auto; min-width: 220px; max-width: 100%; }

/* Fee schedule: name above description, price on the right. */
.fee-row { align-items: center; }
.fee-name { display: flex; flex-direction: column; gap: .18rem; flex: 1 1 60%; min-width: 0; }
.fee-name b a { text-decoration: none; }
.fee-name span { color: var(--mut); font-size: .84rem; font-weight: 400; line-height: 1.5; }
.fee-price { white-space: nowrap; text-align: right; font-family: var(--font-head); font-size: 1.05rem; }
.fee-price small {
  display: block; font-family: var(--font-ui); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mut);
}
@media (min-width: 960px) { .split > .btn { justify-self: end; } }

/* Coverage map: lift the schematic lines off the navy surface. */
.map-outline { stroke: #405374; }
.map-route { stroke: #e7c363; opacity: .42; }
.map-route.is-active { opacity: 1; }
.map-node circle { fill: #1b2740; stroke: #5a6c8c; }
.map-node text { fill: #d7dfeb; }

/* Reviews: centre a short list instead of leaving the third column empty. */
.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
  justify-content: center;
}
.stars .star.on svg path { fill: currentColor; }

/* Verification: code and explanation side by side on desktop. */
.verify-shell { max-width: 980px; display: grid; gap: 1.2rem; }
.verify-form { margin-bottom: 0; }
@media (min-width: 900px) {
  .verify-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* Final ordering fix: the auth base block above resets place-items, so the
   phone alignment override has to come last. */
@media (max-width: 959px) {
  .auth-wrap { place-items: start center; padding-top: max(1.25rem, 4vh); }
}

/* =============================================================================
   ACCESSIBILITY & POLISH — 16 November 2026
   Focus rings that clear 3:1 on both light and dark surfaces; FAQ anchors clear
   the sticky header when a search result deep-links to a question.
   ========================================================================== */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: var(--gold-ink); }
:where(.band-dark, .page-head, .site-footer, .card-dark, .header-rail, .app-side) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: var(--gold-2); }
details.acc { scroll-margin-top: 96px; }
/* =============================================================================
   COHESION PASS - 16 November 2026
   Repairs found in the site-wide UI review. Each block names the defect it
   fixes. No workflow, wording or published promise changes in this layer.
   ========================================================================== */

/* 1. Public header: at 1440px the wordmark text was 150px wide but had only
      65px of box, so "ISS Investigations" rendered as "ISS". The brand now
      keeps its intrinsic width and the navigation takes what is left. */
.header-row > .brand { flex: 0 0 auto; }
.brand span { overflow: visible; }
@media (min-width: 720px) {
  .brand span { white-space: nowrap; }
}
/* The desktop row was capped at 1160px while the brand plus full navigation
   needs ~1180px, leaving no slack. Give the public header its own measure. */
@media (min-width: 1240px) {
  .site-header .wrap.header-row { width: min(100% - 2.2rem, 1240px); }
}

/* 2. Grid children must be allowed to shrink. One long <option> in the booking
      form pushed both columns to 905px and the page to 922px on a 390px phone. */
.split > *, .grid > *, .cols-2 > *, .form-grid > *, .steps > *, .kpi-grid > * { min-width: 0; }
select, input, textarea { max-width: 100%; }
.card, .panel, .q-main, td { overflow-wrap: break-word; }

/* 3. Auth: the split panel was pinned to the top of the viewport, leaving a
      half-empty screen under a 490px card on a 900px display. */
@media (min-width: 960px) {
  .auth-wrap { align-items: center; padding-block: clamp(1.5rem, 5vh, 4rem); }
}

/* 4. Touch targets: footer and breadcrumb links were 21-23px tall, under the
      24px floor and well under a comfortable 44px on a phone. Desktop keeps its
      compact rhythm; only touch widths gain padding. */
@media (max-width: 760px) {
  .footer-links { gap: .05rem; }
  .footer-links a { display: block; padding-block: .42rem; min-height: 40px; }
  .footer-contact a { min-height: 40px; }
  .crumbs a, .post-crumbs a { display: inline-block; padding-block: .22rem; }
  .post-crumbs, .crumbs { row-gap: .1rem; }
}

/* 5. Small-type floor: 10px labels and 0.68rem eyebrows carry real meaning
      (category, status) and were the smallest text on the page. */
.eyebrow { font-size: .74rem; letter-spacing: .14em; }
.post-cover-empty-label { font-size: .72rem; color: var(--mut); }
.panel-head .small, .k-sub { font-size: .78rem; }

/* 6. Workspace top bar: a long company name pushed the account block past the
      right edge. The copy truncates; the avatar never shrinks. */
.app-top-right { min-width: 0; }
.who { min-width: 0; flex: none; }
.who-avatar { flex: none; }
@media (min-width: 820px) {
  .who-copy { max-width: 15rem; }
  .who-role { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 7. Admin attention tiles: a queue at zero is information, but ten equal cards
      give "0" the same weight as "1". Quiet tiles become a compact status row,
      and admin_home.php now sorts the non-zero queues first. */
.kpi.is-quiet {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .8rem;
  background: #fbfaf6; opacity: 1;
}
.kpi.is-quiet .k-label { flex: 1 1 auto; min-width: 0; font-size: .64rem; }
.kpi.is-quiet .k-value { margin: 0; font-size: .95rem; font-weight: 600; color: var(--mut); }
.kpi.is-quiet .k-sub { display: none; }
.kpi.is-quiet:hover { background: #f5f3ec; }

/* 8. A single "all clear" line should not reserve a dashed panel the height of
      a list. When the empty state is the only body content, it sits compact. */
.panel-body > .empty:only-child { border: 0; padding: .55rem 0; text-align: left; }

/* 9. Contact: the form is the page's job, so the communication guarantee moves
      under it and the time-sensitive note becomes one line above it. */
.guarantee { margin-top: 1.15rem; }
@media (min-width: 640px) {
  .note { align-items: center; }
}

/* 10. Print safety for the new flex tiles lives in assets/css/print.css. */

/* 11. Admin attention: the queues that are clear collapse into one line of
       quiet links under the ones that are not. */
.attention-quiet {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  margin-top: 1rem; padding-top: .9rem;
  border-top: 1px dashed var(--line);
}
.attention-quiet-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mut);
}
.attention-quiet-link {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 32px; padding: .25rem .6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fbfaf6; color: var(--mut);
  font-size: .78rem; text-decoration: none;
}
.attention-quiet-link b { color: var(--ink); font-weight: 700; }
.attention-quiet-link:hover { background: #f4f2ea; color: var(--ink); }
.attention-quiet-link svg { width: 13px; height: 13px; opacity: .75; }

/* 12. Workspace sidebar: group labels were 10px at 4.0:1 on navy - the least
       legible text in the app, and the only orienting label in a long menu. */
.app-nav .group {
  font-size: .68rem;
  letter-spacing: .13em;
  color: #96a3bb;
}
.app-side-note { color: #8b96ab; }

/* 13. Dense table actions were 18-20px tall. Padding keeps desktop density and
       gives a thumb a real target on the stacked phone tables. */
@media (max-width: 760px) {
  .row-action, .cell-title { display: inline-block; padding-block: .3rem; min-height: 34px; }
}

/* 14. Footer balance: fourteen links in one narrow column made the footer the
       tallest block on the page and left a void beside Legal and Contact. On
       wide screens the link list runs in two columns; the grid gives it room. */
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: 1.65fr 1.55fr .85fr 1.35fr; }
  .footer-col:nth-child(2) .footer-links { display: block; columns: 2; column-gap: 1.5rem; }
  .footer-col:nth-child(2) .footer-links a { display: block; margin-bottom: .45rem; break-inside: avoid; }
}

/* 15. Reviews: with two reviews the third grid track stayed empty, so the pair
       sat left while the right half of the band was blank. Flex centres the
       row whatever the count, and keeps three-up when there are three. */
.reviews-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.9rem, 2vw, 1.2rem);
}
.reviews-grid > * { flex: 1 1 300px; max-width: 380px; }

/* 16. Homepage feedback band: the three-column grid left the third column
       empty when only two reviews are approved. Two reviews now centre; three
       keep the three-up layout. Browsers without :has() keep today's behaviour. */
@media (min-width: 900px) {
  .grid.g-3:has(> .card.review:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 840px; margin-inline: auto;
  }
}

/* 17. Touch targets, continued: the fee-guide service links and the footer's
       bottom row (Privacy / Terms / Refunds) were still 20px tall on phones -
       the last two places the 24px floor was not met. */
@media (max-width: 760px) {
  .fee-name b a { display: inline-block; padding-block: .32rem; }
  .fee-list { margin-top: .9rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: .2rem .9rem; }
  .footer-bottom-links a { display: inline-block; padding-block: .5rem; min-height: 40px; }
}

/* 18. Touch targets in the workspace: footer utility links, panel-head "view
       all" links and activity-feed entries were 20-21px tall on a phone. */
@media (max-width: 760px) {
  .app-foot-links { flex-wrap: wrap; gap: .1rem .9rem; }
  .app-foot-links a { display: inline-block; padding-block: .5rem; min-height: 40px; }
  .panel-head a.small { display: inline-flex; align-items: center; padding-block: .4rem; min-height: 40px; }
  .timeline a { display: inline-block; padding-block: .3rem; min-height: 34px; }
}

/* 19. Machine strings - SMTP hosts, storage paths, long references - have no
       break opportunity, so a KPI tile could push the whole page sideways
       (admin outbox was 406px wide in a 390px viewport). They break now. */
.kpi, .kpi * { overflow-wrap: anywhere; }

/* 20. Remaining phone-size links that were text-height only: the insights RSS
       chip, article table-of-contents entries, the article back link, the tag
       link in an article head, and the sign-in page footer links. */
@media (max-width: 760px) {
  .insights-rss { display: inline-flex; align-items: center; min-height: 40px; padding-inline: .7rem; }
  .post-toc a { display: inline-block; padding-block: .28rem; }
  .post-back a { display: inline-block; padding-block: .4rem; min-height: 40px; }
  .post-head .tag a, .post-feature .tag a, .tag a { display: inline-block; padding-block: .3rem; }
  .auth-foot a { display: inline-block; padding-block: .3rem; }
}

/* 21. Last of the phone targets: the article category tag and links inside
       data-table cells. Inline links inside running text stay as they are -
       they are exempt from the target-size rule and padding them would break
       the sentences around them. */
@media (max-width: 760px) {
  a.tag { display: inline-block; padding-block: .3rem; }
  td a { display: inline-block; padding-block: .22rem; }
}

/* 22. Very small screens (320-380px): the 2x2 credential rail could not fit
       "Confidential communication" in a 137px cell with nowrap, so the text ran
       into the claim beside it, and the header row was 11px wider than its
       container. Cells wrap instead of colliding; the lockup tightens. */
@media (max-width: 719px) {
  .header-rail span { min-width: 0; }
}
@media (max-width: 380px) {
  .header-rail span {
    white-space: normal; font-size: .6rem; line-height: 1.25;
    align-items: flex-start;
  }
  .header-rail .ic-s { margin-top: .12rem; }
  .header-row { gap: .4rem; }
  .brand-logo { width: 36px; height: 36px; }
  .brand span { font-size: .84rem; }
  .brand small { letter-spacing: .08em; }
  .header-call, .nav-toggle { width: 40px; height: 40px; }
}

/* 23. Two last phone-size links on article pages: the category eyebrow link
       and the "All insights" link beside the related-articles heading. */
@media (max-width: 760px) {
  .eyebrow a { display: inline-block; padding-block: .32rem; }
  .post-related-head > a { display: inline-flex; align-items: center; min-height: 40px; padding-block: .3rem; }
}
