/* Proxy — Copenhagen Blue design tokens */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --deep-harbor: #062A43;
  --copenhagen:  #0E6BA8;
  --canal:       #2B8FC6;
  --mist:        #D8ECF7;
  --ice:         #F4FAFD;
  --signal-green:#21A67A;
  --amber:       #D99A2B;
  --error-red:   #D94C4C;

  --border: rgba(6, 42, 67, 0.10);
  --border-strong: rgba(6, 42, 67, 0.18);
  --text-muted: rgba(6, 42, 67, 0.65);
  --text-quiet: rgba(6, 42, 67, 0.50);
  --section-pad: 96px;
  --section-pad-tight: 64px;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ice);
  color: var(--deep-harbor);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

/* Layout helpers */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* Type scale */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copenhagen);
  font-family: var(--font-mono);
}

.h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
  max-width: 60ch;
}
.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}
.small {
  font-size: 13px;
  color: var(--text-muted);
}
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copenhagen);
  font-weight: 600;
  text-decoration: none;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo-img {
  display: block;
  height: clamp(56px, 7.2vw, 76px);
  width: auto;
  filter:
    drop-shadow(0 1px 1px rgba(6, 42, 67, 0.18))
    drop-shadow(0 6px 14px rgba(6, 42, 67, 0.18));
}

.site-header-inner {
  gap: 16px;
}

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.site-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--deep-harbor);
  flex-shrink: 0;
  transition: background 120ms ease, border-color 120ms ease;
}
.site-nav-burger:hover {
  background: var(--mist);
  border-color: var(--deep-harbor);
}

.site-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 42, 67, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}

.site-nav-sheet {
  width: min(360px, 92vw);
  height: 100%;
  overflow: auto;
  background: #fff;
  padding: 20px;
  margin: 10px;
  margin-left: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: -8px 0 36px rgba(6, 42, 67, 0.12);
}

.site-nav-sheet h2 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  margin: 20px 0 10px;
  font-family: var(--font-mono);
}

.site-nav-sheet h2:first-of-type {
  margin-top: 8px;
}

.site-nav-sheet a.nav-sheet-link {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--deep-harbor);
}

.site-nav-sheet a.nav-sheet-link:hover {
  background: var(--ice);
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: clamp(48px, 14vw, 60px);
  }
  .site-nav-sheet {
    width: calc(100% - 24px);
    margin: 10px auto;
    height: calc(100% - 24px);
    border-radius: 12px;
  }
}

/* Header gets slightly more vertical room for the larger logo */
header .site-header-inner {
  min-height: 92px !important;
}

/* Solid-nav variant: a bit more shadow contrast on white */
header[style*="rgb(255, 255, 255)"] .brand-logo-img,
header[style*="background: #fff"] .brand-logo-img {
  filter:
    drop-shadow(0 1px 1px rgba(6, 42, 67, 0.12))
    drop-shadow(0 6px 14px rgba(6, 42, 67, 0.14));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--copenhagen);
  color: #fff;
}
.btn-primary:hover { background: var(--canal); }

.btn-outline {
  background: transparent;
  color: var(--deep-harbor);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--deep-harbor); background: rgba(6,42,67,0.03); }

.btn-ghost {
  background: transparent;
  color: var(--deep-harbor);
}
.btn-ghost:hover { background: rgba(14,107,168,0.06); color: var(--copenhagen); }

.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 8px; }

.btn-google {
  background: var(--copenhagen);
  color: #fff;
}
.btn-google:hover { background: var(--canal); }

/* Cards / surfaces */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}
.card-mist {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}
.shadow-sm-only { box-shadow: 0 1px 2px rgba(6, 42, 67, 0.06); }

/* Section spacing */
.section { padding: var(--section-pad) 0; }
.section-tight { padding: var(--section-pad-tight) 0; }
@media (max-width: 720px) {
  :root {
    --section-pad: 64px;
    --section-pad-tight: 48px;
  }
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
}

/* Status pill colors */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pill-green { background: rgba(33,166,122,0.12); color: var(--signal-green); }
.pill-amber { background: rgba(217,154,43,0.14); color: var(--amber); }
.pill-red   { background: rgba(217,76,76,0.12); color: var(--error-red); }
.pill-blue  { background: rgba(14,107,168,0.10); color: var(--copenhagen); }
.pill-canal { background: rgba(43,143,198,0.14); color: var(--canal); }
.pill-muted { background: rgba(6,42,67,0.06); color: var(--text-muted); }

.input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--deep-harbor);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  transition: border-color 120ms, box-shadow 120ms;
  box-sizing: border-box;
}
.input:focus {
  outline: none;
  border-color: var(--copenhagen);
  box-shadow: 0 0 0 3px rgba(14,107,168,0.12);
}
textarea.input { resize: vertical; font-family: inherit; }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%23062A43' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--canal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(6,42,67,0.15); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(6,42,67,0.3); }

/* Responsive overrides for inline React layouts */
@media (max-width: 1020px) {
  .wrap {
    max-width: 100%;
  }

  main [style*="grid-template-columns: repeat(5"],
  main [style*="grid-template-columns: repeat(4"],
  main [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  main [style*="grid-template-columns: 2fr repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .site-nav-desktop,
  .site-nav-desktop .btn,
  .site-nav-cta {
    display: none !important;
  }
  .site-nav-burger {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  header .wrap {
    height: auto !important;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }

  header nav.site-nav-desktop {
    order: unset;
    width: auto;
    overflow-x: unset;
    padding-bottom: 0;
  }

  header nav:not(.site-nav-desktop) {
    display: none;
  }

  header .btn:not(.site-nav-sheet .btn) {
    padding: 8px 10px !important;
    font-size: 13px;
  }

  main [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main [style*="display: flex"][style*="justify-content: flex-end"],
  main [style*="display: flex"][style*="justify-content: space-between"] {
    justify-content: flex-start !important;
  }

  main [style*="position: sticky"] {
    position: static !important;
  }

  .h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  pre {
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  main [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main [style*="padding: 32px"],
  main [style*="padding: 36px"],
  main [style*="padding: 48px"] {
    padding: 20px !important;
  }

  .card,
  .card-mist {
    border-radius: 8px;
  }
}

@media (max-width: 900px) {
  aside[style*="width: 240px"][style*="height: 100vh"] {
    width: 78px !important;
    overflow: hidden !important;
  }

  aside[style*="width: 240px"][style*="height: 100vh"] a {
    font-size: 0 !important;
    justify-content: center !important;
  }

  aside[style*="width: 240px"][style*="height: 100vh"] a svg {
    flex-shrink: 0;
  }

  aside[style*="width: 240px"][style*="height: 100vh"] .mono,
  aside[style*="width: 240px"][style*="height: 100vh"] div[style*="Nora"],
  aside[style*="width: 240px"][style*="height: 100vh"] div[style*="admin"] {
    display: none !important;
  }
}

/* Solutions mega-menu dropdown */
.sol-mega-item:hover {
  background: rgba(14, 107, 168, 0.07);
  transform: translateX(2px);
}
.sol-mega-item:hover .sol-mega-icon {
  background: rgba(14, 107, 168, 0.16);
}
.sol-mega-item:focus-visible {
  outline: 2px solid var(--copenhagen);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .solutions-mega {
    width: calc(100vw - 24px) !important;
    padding: 18px !important;
  }
  .solutions-mega > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────
   Overview dashboard — dark cinematic theme
   Activated only when <body data-app-theme="overview-dark"> is present
   (set/cleared by OverviewPage useEffect). Other pages stay untouched.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --od-bg:          #041625;
  --od-bg-2:        #06223A;
  --od-card:        rgba(8, 31, 52, 0.72);
  --od-card-2:      rgba(10, 36, 60, 0.86);
  --od-border:      rgba(255, 255, 255, 0.08);
  --od-border-soft: rgba(255, 255, 255, 0.04);
  --od-border-hi:   rgba(255, 255, 255, 0.16);
  --od-text:        #F5F8FC;
  --od-text-muted:  #9FB3C8;
  --od-text-quiet:  rgba(245, 248, 252, 0.55);

  --od-blue:    #1677FF;
  --od-canal:   #2B8FC6;
  --od-copen:   #0E6BA8;
  --od-teal:    #13B8A6;
  --od-purple:  #7C4DFF;
  --od-amber:   #D99A17;
  --od-green:   #2ECC71;
  --od-red:     #E5594A;
}

/* ── Body / page surface ── */
body[data-app-theme="overview-dark"] {
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(22,119,255,0.18), transparent 55%),
    radial-gradient(900px 500px at 105% 20%, rgba(124,77,255,0.14), transparent 60%),
    radial-gradient(900px 600px at 65% 95%, rgba(217,154,23,0.06), transparent 65%),
    var(--od-bg);
  color: var(--od-text);
}

/* The shared <main> uses inline `padding: 32px 40px; maxWidth: 1200`.
   Override on the dark overview only. */
body[data-app-theme="overview-dark"] main {
  max-width: 1320px !important;
  padding: 16px 24px 32px !important;
  color: var(--od-text);
}

/* ── Topbar (shared inline-styled <header>) — recolor for dark overview ── */
body[data-app-theme="overview-dark"] header[style*="ice"],
body[data-app-theme="overview-dark"] header[style*="position: sticky"] {
  background: linear-gradient(180deg, rgba(4, 18, 30, 0.92) 0%, rgba(4, 22, 37, 0.78) 100%) !important;
  border-bottom: 1px solid var(--od-border) !important;
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
body[data-app-theme="overview-dark"] header a,
body[data-app-theme="overview-dark"] header span:not(.pill-dot):not(.pill):not(.pill-d):not(.pill-d-dot),
body[data-app-theme="overview-dark"] header .mono {
  color: rgba(245, 248, 252, 0.78) !important;
}
body[data-app-theme="overview-dark"] header span[style*="font-weight: 500"] {
  color: var(--od-text) !important;
}
body[data-app-theme="overview-dark"] header .btn-primary {
  background: linear-gradient(180deg, #2B8DFF 0%, #0E6BA8 100%) !important;
  border-color: rgba(43, 141, 255, 0.55) !important;
  box-shadow: 0 8px 24px -10px rgba(22,119,255,0.65), inset 0 1px 0 rgba(255,255,255,0.18) !important;
  color: #fff !important;
}

/* ── Sidebar enhancements (works app-wide; sidebar is already dark) ── */
aside[style*="var(--deep-harbor)"],
aside[style*="rgb(6, 42, 67)"] {
  background:
    linear-gradient(180deg, #03121F 0%, #062337 60%, #04182A 100%) !important;
  border-right: 1px solid var(--od-border-soft);
}
aside[style*="var(--deep-harbor)"] a[style*="copenhagen"],
aside[style*="var(--deep-harbor)"] a[style*="rgb(14, 107, 168)"] {
  background: linear-gradient(180deg, #1F86FF 0%, #0E6BA8 100%) !important;
  box-shadow:
    0 10px 28px -12px rgba(22, 119, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.app-sidebar {
  gap: 8px !important;
}

.app-sidebar-brand {
  min-height: 42px;
}

.app-nav-section {
  display: grid;
  gap: 3px;
}

.app-nav-section + .app-nav-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.app-nav-divider {
  padding: 0 10px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.app-nav-link svg {
  flex-shrink: 0;
}

.app-nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dash-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.dash-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.dash-record-row:hover {
  background: var(--ice);
}

.dash-empty {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--ice);
}

.dash-empty-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copenhagen);
  background: rgba(14, 107, 168, 0.08);
}

.dash-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-harbor);
}

.dash-empty-body {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.dash-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.dash-tab:hover {
  color: var(--deep-harbor);
  background: var(--ice);
}

.dash-tab.is-active {
  color: #fff;
  background: var(--copenhagen);
}

/* ── Overview root layout ── */
.ov { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── Hero ── */
.ov-hero {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--od-border);
  background: linear-gradient(135deg, #051a2c 0%, #062c47 60%, #0a3a5d 100%);
  overflow: hidden;
  min-height: 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: center;
  box-shadow:
    0 24px 60px -36px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ov-hero-text { position: relative; z-index: 3; max-width: 620px; }
.ov-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #6FB6FF;
  text-shadow: 0 0 14px rgba(22, 119, 255, 0.4);
}
.ov-hero-title {
  margin: 6px 0 4px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--od-text);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.ov-hero-wave { display: inline-block; transform: translateY(-1px); }
.ov-hero-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--od-text-muted);
  max-width: 56ch;
}
.ov-hero-cta-row {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.ov-hero-aside { position: relative; z-index: 3; justify-self: end; }
.ov-hero-aside-card {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--od-border-hi);
  background: rgba(4, 18, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 200px;
  box-shadow: 0 12px 36px -16px rgba(0, 0, 0, 0.6);
}
.ov-hero-aside-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 220, 150, 0.22), rgba(255, 180, 80, 0.10));
  border: 1px solid rgba(255, 200, 120, 0.25);
  color: #FFD79A;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 12px rgba(255, 200, 120, 0.25);
}
.ov-hero-aside-icon svg { width: 18px; height: 18px; }
.ov-hero-aside-title { color: var(--od-text); font-weight: 600; font-size: 13px; }
.ov-hero-aside-sub   { color: var(--od-text-muted); font-size: 11px; margin-top: 1px; }
.ov-hero-aside-meta  {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--od-text-quiet);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Hero CSS illustration ── */
.ov-hero-art {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 18px;
}
.ov-hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(124, 77, 255, 0.35), transparent 65%),
    radial-gradient(700px 300px at 95% 30%, rgba(217, 154, 23, 0.22), transparent 70%),
    linear-gradient(180deg, #0a1832 0%, #0a2240 50%, #08263f 100%);
}
.ov-hero-stars { position: absolute; inset: 0; }
.ov-hero-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}
.ov-hero-moon {
  position: absolute; top: 22px; right: 26%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6D9 0%, #F2D58A 60%, #E5B95A 100%);
  box-shadow:
    0 0 30px rgba(255, 220, 150, 0.45),
    inset -10px -3px 0 0 rgba(8, 18, 30, 0.92);
}
.ov-hero-mountain {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60%;
  background: #06182A;
}
.ov-hero-mountain--back {
  height: 65%;
  background: linear-gradient(180deg, #0c2a45 0%, #06182A 100%);
  clip-path: polygon(
    0% 100%, 0% 55%, 12% 30%, 22% 55%, 34% 25%, 44% 50%,
    56% 18%, 66% 48%, 78% 22%, 90% 55%, 100% 35%, 100% 100%
  );
  opacity: 0.85;
}
.ov-hero-mountain--mid {
  height: 55%;
  background: linear-gradient(180deg, #082037 0%, #04111d 100%);
  clip-path: polygon(
    0% 100%, 0% 70%, 8% 55%, 20% 75%, 32% 40%, 44% 70%,
    58% 35%, 70% 65%, 82% 40%, 92% 70%, 100% 55%, 100% 100%
  );
  opacity: 0.95;
}
.ov-hero-mountain--front {
  height: 38%;
  background: linear-gradient(180deg, #061626 0%, #02080F 100%);
  clip-path: polygon(
    0% 100%, 0% 70%, 14% 50%, 28% 75%, 42% 60%, 56% 80%,
    72% 55%, 86% 75%, 100% 60%, 100% 100%
  );
}
.ov-hero-fog {
  position: absolute; left: 0; right: 0; bottom: 18%;
  height: 60px;
  background: linear-gradient(180deg, rgba(160, 200, 255, 0.10), transparent);
  filter: blur(8px);
}

.ov-hero-cabin {
  position: absolute;
  right: 14%; bottom: 26%;
  width: 78px; height: 60px;
  z-index: 2;
}
.ov-hero-cabin-glow {
  position: absolute; inset: -40px -50px;
  background:
    radial-gradient(circle, rgba(255, 200, 110, 0.45) 0%, rgba(255, 170, 80, 0.18) 35%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.ov-hero-cabin-roof {
  position: absolute; top: 0; left: -6px; right: -6px;
  height: 22px;
  background: #1a2940;
  clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.ov-hero-cabin-body {
  position: absolute; top: 18px; left: 0; right: 0; bottom: 6px;
  background: linear-gradient(180deg, #1a2a3e 0%, #11202f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 8px;
  gap: 4px;
}
.ov-hero-cabin-window {
  width: 18px; height: 30px;
  background: linear-gradient(180deg, #FFD68A 0%, #F4A744 100%);
  box-shadow:
    0 0 16px rgba(255, 200, 120, 0.65),
    inset 0 0 4px rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}
.ov-hero-cabin-window--b { height: 24px; }
.ov-hero-cabin-window--c { width: 14px; height: 22px; }
.ov-hero-cabin-base {
  position: absolute; bottom: 0; left: -10px; right: -10px;
  height: 6px;
  background: #03101c;
  z-index: 1;
}

.ov-hero-tree {
  position: absolute; bottom: 18%;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 38px solid #04111c;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
  z-index: 2;
}
.ov-hero-tree--1 { right: 6%;  bottom: 18%; transform: scale(0.95); }
.ov-hero-tree--2 { right: 30%; bottom: 17%; transform: scale(0.7); border-bottom-color: #061826; }
.ov-hero-tree--3 { right: 12%; bottom: 22%; transform: scale(0.55); border-bottom-color: #0a1c2c; }
.ov-hero-tree--4 { right: 38%; bottom: 19%; transform: scale(0.6);  border-bottom-color: #08182a; }

.ov-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 30, 0.72) 0%, rgba(4, 18, 30, 0.35) 38%, transparent 60%),
    linear-gradient(180deg, transparent 60%, rgba(4, 18, 30, 0.35) 100%);
}

/* ── Buttons (dark overview only) ── */
.ov-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.ov-btn-primary {
  background: linear-gradient(180deg, #2B8DFF 0%, #0E6BA8 100%);
  color: #fff;
  border-color: rgba(43, 141, 255, 0.55);
  box-shadow:
    0 10px 28px -12px rgba(22, 119, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ov-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(22,119,255,0.7), inset 0 1px 0 rgba(255,255,255,0.18); }
.ov-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--od-text);
  border-color: var(--od-border-hi);
}
.ov-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.ov-btn-block { width: 100%; justify-content: center; }

/* ── Inline alert ── */
.ov-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(217, 154, 23, 0.32);
  background: linear-gradient(90deg, rgba(217, 154, 23, 0.12), rgba(217, 154, 23, 0.04));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 36px -22px rgba(217, 154, 23, 0.5);
  transition: transform 140ms ease, border-color 140ms ease;
}
.ov-alert:hover { transform: translateY(-1px); border-color: rgba(217, 154, 23, 0.55); }
.ov-alert-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 154, 23, 0.25), rgba(217, 154, 23, 0.05));
  color: var(--od-amber);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217, 154, 23, 0.35);
}
.ov-alert-text { flex: 1; min-width: 0; }
.ov-alert-title { font-weight: 600; font-size: 13px; color: var(--od-text); }
.ov-alert-sub { font-size: 12px; color: var(--od-text-muted); margin-top: 1px; }
.ov-alert-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #F0C46A;
  white-space: nowrap;
}

/* ── Stats grid ── */
.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ov-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--od-border);
  background: var(--od-card);
  text-decoration: none; color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ov-stat:hover { transform: translateY(-2px); border-color: var(--od-border-hi); background: var(--od-card-2); }
.ov-stat-row { display: flex; align-items: center; justify-content: space-between; color: var(--od-text-quiet); margin-bottom: 2px; }
.ov-stat-value { font-size: 22px; font-weight: 700; color: var(--od-text); letter-spacing: -0.01em; line-height: 1.1; }
.ov-stat-label { font-size: 13px; color: var(--od-text); font-weight: 500; }
.ov-stat-sub { font-size: 12px; color: var(--od-text-muted); line-height: 1.35; }

/* ── Icon squares ── */
.ov-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ov-icon-sm { width: 30px; height: 30px; border-radius: 8px; }
.ov-icon-sm svg { width: 16px; height: 16px; }
.ov-icon-blue   { color: #BFDBFF; background: linear-gradient(135deg, rgba(22,119,255,0.32), rgba(22,119,255,0.10)); border: 1px solid rgba(22,119,255,0.35); box-shadow: inset 0 0 14px rgba(22,119,255,0.18), 0 6px 20px -10px rgba(22,119,255,0.45); }
.ov-icon-canal  { color: #B7E2F4; background: linear-gradient(135deg, rgba(43,143,198,0.30), rgba(43,143,198,0.10)); border: 1px solid rgba(43,143,198,0.35); box-shadow: inset 0 0 14px rgba(43,143,198,0.18), 0 6px 20px -10px rgba(43,143,198,0.45); }
.ov-icon-teal   { color: #A6F0E3; background: linear-gradient(135deg, rgba(19,184,166,0.32), rgba(19,184,166,0.10)); border: 1px solid rgba(19,184,166,0.35); box-shadow: inset 0 0 14px rgba(19,184,166,0.18), 0 6px 20px -10px rgba(19,184,166,0.45); }
.ov-icon-purple { color: #D4C5FF; background: linear-gradient(135deg, rgba(124,77,255,0.32), rgba(124,77,255,0.10)); border: 1px solid rgba(124,77,255,0.35); box-shadow: inset 0 0 14px rgba(124,77,255,0.18), 0 6px 20px -10px rgba(124,77,255,0.45); }
.ov-icon-amber  { color: #FFD68A; background: linear-gradient(135deg, rgba(217,154,23,0.32), rgba(217,154,23,0.10)); border: 1px solid rgba(217,154,23,0.35); box-shadow: inset 0 0 14px rgba(217,154,23,0.18), 0 6px 20px -10px rgba(217,154,23,0.45); }
.ov-icon-green  { color: #B7F0C9; background: linear-gradient(135deg, rgba(46,204,113,0.30), rgba(46,204,113,0.10)); border: 1px solid rgba(46,204,113,0.35); box-shadow: inset 0 0 14px rgba(46,204,113,0.18), 0 6px 20px -10px rgba(46,204,113,0.45); }
.ov-icon-muted  { color: rgba(245,248,252,0.75); background: rgba(255,255,255,0.06); border: 1px solid var(--od-border-hi); }

/* ── Main grid ── */
.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ov-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── Cards ── */
.ov-card {
  border-radius: 14px;
  border: 1px solid var(--od-border);
  background: var(--od-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.7);
}
.ov-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 16px 10px;
  gap: 12px;
  border-bottom: 1px solid var(--od-border-soft);
}
.ov-card-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--od-text); letter-spacing: 0; }
.ov-card-sub   { margin-top: 2px; font-size: 11px; color: var(--od-text-muted); font-family: var(--font-mono); }
.ov-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #6FB6FF; text-decoration: none;
  white-space: nowrap;
}
.ov-link:hover { color: #9FCBFF; }
.ov-link-inline { color: #6FB6FF; text-decoration: none; }
.ov-link-inline:hover { color: #9FCBFF; }
.ov-empty { padding: 16px; color: var(--od-text-muted); font-size: 13px; text-align: left; }

.ov-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--od-border-hi);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 10px; color: var(--od-text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Recent requests rows ── */
.ov-row {
  display: grid;
  grid-template-columns: 30px 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--od-border-soft);
  text-decoration: none; color: inherit;
  transition: background 120ms ease;
  min-height: 52px;
}
.ov-row:first-of-type { border-top: none; }
.ov-row:hover { background: rgba(255, 255, 255, 0.03); }
.ov-row-meta { min-width: 0; }
.ov-row-id { font-family: var(--font-mono); font-size: 11px; color: var(--od-text-muted); letter-spacing: 0.02em; }
.ov-row-date { font-size: 11px; color: var(--od-text-quiet); margin-top: 1px; }
.ov-row-main { min-width: 0; }
.ov-row-product { font-size: 13px; font-weight: 600; color: var(--od-text); }
.ov-row-desc { font-size: 12px; color: var(--od-text-muted); margin-top: 1px; line-height: 1.35; }
.ov-row-pill { display: flex; }
.ov-row-chev { color: var(--od-text-quiet); display: inline-flex; }

/* ── Dark pills ── */
.pill-d {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-d-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill-d-amber  { color: #F0C46A; background: rgba(217,154,23,0.12); border-color: rgba(217,154,23,0.30); }
.pill-d-blue   { color: #6FB6FF; background: rgba(22,119,255,0.12);  border-color: rgba(22,119,255,0.30); }
.pill-d-canal  { color: #7FCAE9; background: rgba(43,143,198,0.12);  border-color: rgba(43,143,198,0.30); }
.pill-d-green  { color: #6FE0A0; background: rgba(46,204,113,0.12);  border-color: rgba(46,204,113,0.30); }
.pill-d-purple { color: #B6A2FF; background: rgba(124,77,255,0.14);  border-color: rgba(124,77,255,0.30); }
.pill-d-red    { color: #FF8C82; background: rgba(229,89,74,0.12);   border-color: rgba(229,89,74,0.30); }
.pill-d-muted  { color: var(--od-text-muted); background: rgba(255,255,255,0.05); border-color: var(--od-border-hi); }

/* ── Account snapshot ── */
.ov-snap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.ov-snap-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 12px;
  border-right: 1px solid var(--od-border-soft);
  min-width: 0;
}
.ov-snap-cell:last-child { border-right: none; }
.ov-snap-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ov-snap-value { font-size: 20px; font-weight: 700; color: var(--od-text); line-height: 1.1; letter-spacing: -0.01em; }
.ov-snap-label { font-size: 10px; color: var(--od-text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.ov-snap-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--od-border-soft);
  font-size: 11px; color: var(--od-text-muted);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.ov-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ov-dot-green { background: var(--od-green); box-shadow: 0 0 10px rgba(46,204,113,0.6); }

/* ── Quick actions ── */
.ov-actions { display: flex; flex-direction: column; }
.ov-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-decoration: none; color: inherit;
  border-top: 1px solid var(--od-border-soft);
  transition: background 120ms ease;
  min-height: 48px;
}
.ov-action:first-child { border-top: none; }
.ov-action:hover { background: rgba(255,255,255,0.03); }
.ov-action-text { min-width: 0; }
.ov-action-title { font-size: 13px; font-weight: 600; color: var(--od-text); }
.ov-action-desc { font-size: 12px; color: var(--od-text-muted); margin-top: 1px; line-height: 1.35; }

/* ── Promo card ── */
.ov-promo {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(124, 77, 255, 0.28);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(124, 77, 255, 0.32), transparent 60%),
    linear-gradient(180deg, #0c1a35 0%, #0a1428 100%);
  padding: 12px 14px 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px -34px rgba(124, 77, 255, 0.6);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}
.ov-promo-art {
  position: relative;
  width: 50px; height: 42px;
  grid-row: 1 / span 2;
  grid-column: 1;
  align-self: center;
}
.ov-promo-stack {
  position: absolute;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(124,77,255,0.5), rgba(22,119,255,0.4));
  box-shadow: 0 0 18px rgba(124,77,255,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.ov-promo-stack--1 { left: 0;  top: 14px; width: 28px; height: 28px; transform: rotate(-6deg); }
.ov-promo-stack--2 { left: 14px; top: 6px;  width: 28px; height: 28px; transform: rotate(4deg); opacity: 0.92; }
.ov-promo-stack--3 { left: 24px; top: 0;    width: 22px; height: 22px; transform: rotate(-3deg); background: linear-gradient(180deg, rgba(22,119,255,0.55), rgba(43,143,198,0.4)); }
.ov-promo-title {
  font-size: 14px; font-weight: 700; color: var(--od-text);
  grid-column: 2; grid-row: 1;
  margin: 0;
}
.ov-promo-sub {
  font-size: 12px; color: var(--od-text-muted);
  margin: 0;
  grid-column: 2; grid-row: 2;
}
.ov-promo .ov-btn {
  grid-column: 1 / span 2;
  margin-top: 10px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-grid  { grid-template-columns: minmax(0, 1fr); }
  .ov-hero  { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
  .ov-hero-aside { justify-self: start; }
}

@media (max-width: 720px) {
  body[data-app-theme="overview-dark"] main {
    padding: 12px 14px 32px !important;
  }
  .ov-hero { padding: 14px 16px; border-radius: 14px; }
  .ov-hero-art { border-radius: 14px; }
  .ov-hero-title { font-size: 22px; }
  .ov-hero-cabin { right: 10%; bottom: 26%; transform: scale(0.78); }
  .ov-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ov-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }
  .ov-row .ov-row-meta { display: none; }
  .ov-row .ov-row-chev { display: none; }
  .ov-card-head, .ov-action, .ov-snap-foot { padding-left: 14px; padding-right: 14px; }
  .ov-snap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-snap-cell { padding: 10px 8px; }
  .ov-snap-value { font-size: 18px; }
}

@media (max-width: 460px) {
  .ov-snap-cell { padding: 8px 6px; }
  .ov-snap-label { font-size: 9px; }
}

@media (max-width: 1100px) {
  .dash-summary-grid,
  .dash-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  aside.app-sidebar {
    width: 78px !important;
    padding: 14px 10px !important;
  }

  .app-sidebar .app-sidebar-brand {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .app-sidebar .app-sidebar-brand,
  .app-sidebar .app-nav-link {
    font-size: 0 !important;
  }

  .app-sidebar .app-nav-link {
    justify-content: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .app-sidebar .app-nav-link span,
  .app-sidebar .app-nav-divider {
    display: none !important;
  }

  .app-nav-section + .app-nav-section {
    margin-top: 10px;
    padding-top: 10px;
  }
}

@media (max-width: 720px) {
  .dash-tab-row {
    width: 100%;
  }

  .dash-tab {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dash-record-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
