:root {
  --ink: #13211f;
  --ink-2: #2e4843;
  --muted: #6c817b;
  --line: #d7e4df;
  --panel: #ffffff;
  --soft: #f6faf8;
  --soft-2: #e9f2ef;
  --accent: #0f8a7c;
  --accent-dark: #06443c;
  --navy: #082f38;
  --mint: #33d1b5;
  --sky: #2aa8f2;
  --gold: #b7791f;
  --rose: #be3f62;
  --shadow: 0 24px 70px rgba(8, 47, 56, 0.14);
  --shadow-soft: 0 14px 34px rgba(8, 47, 56, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #111615; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -12%, rgba(51, 209, 181, 0.14), transparent 30%),
    linear-gradient(135deg, #0c1110 0%, #1f2423 44%, #303534 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.5;
}
html.theme-light { background: var(--soft-2); }
html.theme-light body {
  background:
    radial-gradient(circle at 12% -10%, rgba(51, 209, 181, 0.18), transparent 32%),
    linear-gradient(135deg, #f8fbfa 0%, #eef5f2 48%, #ffffff 100%);
}
html.theme-dark body {
  background:
    radial-gradient(circle at 12% -12%, rgba(51, 209, 181, 0.14), transparent 30%),
    linear-gradient(135deg, #0c1110 0%, #1f2423 44%, #303534 100%);
}
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px max(34px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: rgba(5, 50, 43, 0.92);
  box-shadow: 0 14px 38px rgba(5, 50, 43, 0.18);
  backdrop-filter: blur(18px);
}
.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  font-weight: 860;
}
.eyebrow, .report-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}
h1 { margin-bottom: 0; font-size: 28px; line-height: 1.12; }
.topbar .eyebrow { color: rgba(255, 255, 255, 0.74); }
.topbar h1 { color: #fff; font-size: 17px; letter-spacing: 0; }
.internal-only { display: none !important; }
html.internal-mode .internal-only { display: block !important; }
html.internal-mode .internal-only.checklist-panel { display: grid !important; }
html.simple-mode .onboarding-card,
html.simple-mode .source-box,
html.simple-mode .helper-actions,
html.simple-mode .checklist-panel,
html.simple-mode .intake-box,
html.simple-mode .agent-box,
html.simple-mode #templateSelect,
html.simple-mode #sampleSelect {
  display: none !important;
}
html.simple-mode .autopilot-panel {
  margin-bottom: 20px;
}
html.simple-mode .controls {
  display: flex;
  flex-direction: column;
}
html.simple-mode .case-card { order: 0; }
html.simple-mode .field-grid label:has(#templateSelect),
html.simple-mode .field-grid label:has(#sampleSelect),
html.simple-mode .field-grid label:has(#tone) {
  display: none;
}
html.simple-mode textarea#csvInput { min-height: 150px; }

.ai-report-status {
  align-self: flex-start;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.ai-report-status.live {
  background: rgba(15, 118, 110, .1);
  color: var(--accent-strong);
}

.ai-report-status.loading {
  background: rgba(161, 98, 7, .12);
  border-color: rgba(161, 98, 7, .26);
  color: #9a5b05;
}

.ai-report-status.fallback {
  background: rgba(100, 116, 139, .1);
}

.client-reply-draft {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,248,.9));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(13, 57, 53, .08);
  margin-top: 14px;
  padding: 16px;
}

.client-reply-draft p {
  color: var(--text);
  line-height: 1.7;
  margin: 10px 0 0;
}

.ai-source-pill {
  background: rgba(15, 118, 110, .1);
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

html.theme-dark .client-reply-draft {
  background: linear-gradient(180deg, rgba(28, 30, 33, .98), rgba(20, 22, 25, .94));
}
html.portal-mode .workspace { display: none; }
html.portal-mode .product-switcher, html.portal-mode .home-page { display: none; }
html.portal-mode .account-dock { display: none; }
html.portal-mode .top-actions > button:not([data-lang]) { display: none; }
html.auth-locked body { overflow: hidden; }
html.auth-locked .workspace { filter: blur(3px); pointer-events: none; user-select: none; }
html.auth-locked .product-switcher, html.auth-locked .home-page { filter: blur(3px); pointer-events: none; user-select: none; }
html.auth-locked .account-dock { display: none; }
html.public-landing .product-switcher,
html.public-landing .workspace,
html.public-landing .account-dock,
html.public-landing #loadDemoBtn,
html.public-landing #saveTemplateBtn,
html.public-landing #exportHtmlBtn,
html.public-landing #printBtn {
  display: none !important;
}
.landing-cta { display: none; }
html.public-landing .landing-cta { display: inline-flex; }
.landing-info-bar, .landing-nav-links, .landing-marketing, .landing-hero-visual { display: none; }
html.public-landing .landing-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 36px;
  padding: 0 max(34px, calc((100vw - 1280px) / 2));
  color: rgba(255, 255, 255, 0.9);
  background: #21104b;
  font-size: 13px;
}
html.public-landing .landing-info-bar div {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
html.public-landing .landing-info-bar a { color: #fff; text-decoration: none; }
html.public-landing .landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex: 1;
}
html.public-landing .landing-nav-links a {
  color: #061946;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}
html.public-landing .topbar {
  min-height: 100px;
  color: #061946;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 42, 100, 0.08);
  box-shadow: 0 18px 48px rgba(18, 20, 60, 0.08);
}
html.public-landing .brand-block {
  align-self: stretch;
  min-width: 132px;
  justify-content: center;
  padding: 12px 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(24, 25, 60, 0.16);
  transform: translateY(14px);
}
html.public-landing .brand-mark {
  border: 0;
  color: #fff;
  background: linear-gradient(150deg, #11b8ff, #6648e9 45%, #ff75db);
}
html.public-landing .topbar .eyebrow { color: #061946; }
html.public-landing .topbar h1 { color: #061946; }
html.public-landing .topbar .ghost {
  color: #061946;
  border-color: transparent;
  background: transparent;
}
html.public-landing .topbar .primary,
html.public-landing .home-hero .primary,
html.public-landing .landing-bottom-start {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #315bff, #8a49dc);
  box-shadow: 0 18px 40px rgba(68, 68, 220, 0.28);
}
html.public-landing .language-toggle {
  border-color: rgba(49, 91, 255, 0.14);
  background: rgba(49, 91, 255, 0.05);
}
html.public-landing .language-toggle button { color: #061946; }
html.public-landing .language-toggle button.active {
  color: #fff;
  background: #315bff;
}
.access-hub, .account-dock-menu [data-dock-action="invite"] { display: none !important; }
.legal-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.48);
}
.legal-panel[hidden] { display: none; }
.legal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}
.legal-close { position: sticky; top: 0; float: right; }
.legal-doc { display: grid; gap: 16px; color: var(--ink); }
.legal-doc h2 { margin: 0; font-size: 24px; }
.legal-doc h3 { margin: 0 0 6px; font-size: 15px; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.legal-doc ul { margin: 0; padding-left: 20px; }
.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(17, 124, 114, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(17, 124, 114, 0.05);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}
.legal-consent input { margin-top: 2px; accent-color: var(--accent); }
.inline-consent { grid-column: 1 / -1; }
.top-actions, .actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.language-toggle, .theme-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 9px; padding: 3px; background: rgba(255, 255, 255, 0.08); }
.language-toggle button, .theme-toggle button { min-height: 34px; border: 0; border-radius: 7px; padding: 7px 10px; color: rgba(255, 255, 255, 0.75); background: transparent; box-shadow: none; font-size: 13px; }
.language-toggle button.active, .theme-toggle button.active { color: #073d36; background: #fff; }
.topbar .theme-toggle { display: none; }
html.theme-light .topbar {
  border-bottom-color: rgba(6, 68, 60, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(8, 47, 56, 0.08);
}
html.theme-light .topbar .eyebrow { color: var(--muted); }
html.theme-light .topbar h1 { color: var(--ink); }
html.theme-light .topbar .ghost { color: var(--ink); border-color: rgba(6, 68, 60, 0.14); background: rgba(255, 255, 255, 0.76); }
html.theme-light .language-toggle, html.theme-light .theme-toggle {
  border-color: rgba(6, 68, 60, 0.12);
  background: rgba(6, 68, 60, 0.06);
}
html.theme-light .language-toggle button, html.theme-light .theme-toggle button { color: var(--ink-2); }
html.theme-light .language-toggle button.active, html.theme-light .theme-toggle button.active {
  color: #fff;
  background: var(--accent-dark);
}
button, .file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
button:hover, .file-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(8, 47, 56, 0.12); }
button:active, .file-button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: 0.72; transform: none; }
button.is-loading { position: relative; color: transparent; }
button.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: #fff; animation: spin 700ms linear infinite; }
button.ghost.is-loading::after { color: var(--accent); }
button.is-success { border-color: rgba(17, 124, 114, 0.35); background: rgba(17, 124, 114, 0.1); color: var(--accent-dark); }
button.primary.is-success { color: #fff; background: var(--accent-dark); }
button.is-error { border-color: rgba(190, 63, 98, 0.42); background: rgba(190, 63, 98, 0.1); color: var(--rose); }
@keyframes spin { to { transform: rotate(360deg); } }
.primary { color: #fff; background: linear-gradient(135deg, var(--accent), #08a8c6); box-shadow: 0 13px 28px rgba(15, 138, 124, 0.24); }
.primary:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.ghost, .file-button { color: var(--ink); background: rgba(255, 255, 255, 0.96); border-color: rgba(6, 68, 60, 0.2); }
.topbar .ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.14); }
.topbar .ghost:hover { background: rgba(255, 255, 255, 0.22); }
.topbar .primary { box-shadow: 0 12px 28px rgba(42, 168, 242, 0.28); }
.file-button input { display: none; }
.full { width: 100%; }

.product-switcher {
  display: flex;
  gap: 8px;
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 34px;
}
.product-switcher button {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.product-switcher button.active {
  color: #073d36;
  background: #fff;
  box-shadow: 0 14px 30px rgba(8, 47, 56, 0.16);
}
html.theme-light .product-switcher button {
  color: var(--ink-2);
  border-color: rgba(6, 68, 60, 0.2);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(8, 47, 56, 0.08);
}
html.theme-light .product-switcher button:hover {
  color: var(--accent-dark);
  border-color: rgba(6, 68, 60, 0.34);
  background: #fff;
}
html.theme-light .product-switcher button.active {
  color: #fff;
  border-color: rgba(6, 68, 60, 0.24);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 14px 30px rgba(15, 138, 124, 0.18);
}
.app-page[hidden], .product-switcher[hidden] { display: none !important; }
.home-page {
  display: grid;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 34px 54px;
}
.home-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(51, 209, 181, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(6, 68, 60, 0.98), rgba(8, 47, 56, 0.94));
  box-shadow: var(--shadow);
}
html.public-landing .topbar {
  background: rgba(3, 32, 28, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html.public-landing .topbar {
  color: #061946;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(32, 42, 100, 0.08);
}
html.public-landing .home-page {
  width: 100%;
  max-width: none;
  position: relative;
  gap: 0;
  padding: 0;
}
html.public-landing .home-page > .home-system-map,
html.public-landing .home-page > .home-kpi-grid,
html.public-landing .home-page > .home-layout,
html.public-landing .home-page > .home-panel {
  display: none !important;
}
html.public-landing .home-hero {
  position: relative;
  align-items: center;
  justify-content: flex-start;
  min-height: min(720px, calc(100vh - 136px));
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: clamp(34px, 5vw, 74px);
  background:
    linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 21%),
    radial-gradient(circle at 82% 28%, rgba(65, 119, 255, 0.36), transparent 30%),
    radial-gradient(circle at 28% 110%, rgba(102, 72, 233, 0.3), transparent 34%),
    linear-gradient(120deg, #241057 0%, #16195f 52%, #0f2b8e 100%);
  box-shadow: none;
}
html.public-landing .home-hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
html.public-landing .home-hero::before {
  content: none;
}
html.public-landing .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.18));
}
html.public-landing .home-hero h2 {
  max-width: 780px;
  font-size: clamp(44px, 6vw, 78px);
}
html.public-landing .home-hero p:not(.eyebrow) {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
}
html.public-landing .home-hero-actions {
  position: relative;
  z-index: 2;
}
html.public-landing .landing-hero-visual {
  position: absolute;
  right: clamp(28px, 8vw, 120px);
  top: 238px;
  z-index: 3;
  display: block;
  width: min(520px, 36vw);
  height: 390px;
  pointer-events: none;
  perspective: 900px;
}
.visual-panel {
  position: absolute;
  border: 1px solid rgba(166, 189, 255, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(145deg, rgba(16, 22, 60, .96), rgba(55, 40, 118, .92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}
.main-panel {
  inset: 20px 96px 58px 0;
  padding: 24px;
  transform: rotateX(2deg) rotateY(-8deg);
}
.side-panel {
  right: 0;
  top: 78px;
  width: 190px;
  height: 190px;
  padding: 24px;
  transform: rotate(7deg);
}
.side-panel div {
  height: 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4bd8ff, rgba(255,255,255,.2));
}
.visual-bar {
  width: 58%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4bd8ff, #9b6cff);
}
.visual-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.visual-kpis span {
  height: 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background:
    linear-gradient(#5ddcff 0 0) 14px 30px / 46px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 14px 16px / 28px 6px no-repeat,
    rgba(255,255,255,.07);
}
.visual-chart {
  height: 118px;
  margin: 24px 0 22px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.7), transparent 4%),
    linear-gradient(140deg, transparent 0 36%, rgba(255,255,255,.2) 36% 38%, transparent 38% 100%),
    linear-gradient(145deg, rgba(75,216,255,.25), rgba(155,108,255,.2)),
    linear-gradient(to top, rgba(75,216,255,.48) 0 38%, transparent 38%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.14) 18px 20px);
}
.visual-lines span {
  display: block;
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.visual-lines span:nth-child(2) { width: 76%; }
.visual-lines span:nth-child(3) { width: 52%; }
.visual-orbit {
  position: absolute;
  left: 36px;
  right: 28px;
  top: 108px;
  height: 92px;
  border-top: 2px solid rgba(75, 216, 255, .45);
  border-radius: 50%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 14px rgba(75,216,255,.6));
}
.visual-status-card {
  position: absolute;
  z-index: 5;
  min-width: 170px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 10px 14px 10px 38px;
  color: rgba(255,255,255,.9);
  background: rgba(18, 20, 60, .72);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(12px);
}
.visual-status-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4bd8ff;
  box-shadow: 0 0 18px rgba(75,216,255,.8);
  transform: translateY(-50%);
}
.status-upload { left: -26px; top: 2px; }
.status-ai { right: 10px; bottom: 70px; }
.status-email { left: 20px; bottom: 0; }

html.public-landing .landing-hero-visual::before,
html.public-landing .landing-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
html.public-landing .landing-hero-visual::before {
  inset: 34px 28px 18px 18px;
  background: radial-gradient(circle at 62% 28%, rgba(75,216,255,.32), transparent 34%),
    radial-gradient(circle at 22% 74%, rgba(154,101,255,.28), transparent 38%);
  filter: blur(18px);
}
html.public-landing .landing-hero-visual::after {
  left: 48px;
  right: 36px;
  bottom: 32px;
  height: 18px;
  background: rgba(0,0,0,.3);
  filter: blur(16px);
  transform: rotate(-4deg);
}
html.public-landing .landing-hero-visual .main-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(86, 224, 255, .18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.1), transparent 30%),
    linear-gradient(145deg, rgba(11, 18, 54, .98), rgba(56, 37, 126, .95));
}
html.public-landing .landing-hero-visual .main-panel::before {
  content: "";
  position: absolute;
  inset: 76px 24px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
}
html.public-landing .landing-hero-visual .main-panel::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(75,216,255,.22);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(75,216,255,.1), transparent 58%);
}
html.public-landing .visual-kpis span:nth-child(1) {
  background:
    linear-gradient(#5ddcff 0 0) 14px 32px / 54px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 14px 15px / 34px 6px no-repeat,
    rgba(255,255,255,.08);
}
html.public-landing .visual-kpis span:nth-child(2) {
  background:
    linear-gradient(#a66bff 0 0) 14px 32px / 42px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 14px 15px / 28px 6px no-repeat,
    rgba(255,255,255,.08);
}
html.public-landing .visual-kpis span:nth-child(3) {
  background:
    linear-gradient(#6fffdc 0 0) 14px 32px / 62px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 14px 15px / 38px 6px no-repeat,
    rgba(255,255,255,.08);
}
html.public-landing .visual-chart {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
html.public-landing .visual-chart::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 18px;
  bottom: 28px;
  height: 66px;
  clip-path: polygon(0 74%, 16% 56%, 29% 62%, 43% 35%, 58% 45%, 72% 18%, 86% 30%, 100% 8%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(75,216,255,.78), rgba(154,101,255,.08));
}
html.public-landing .visual-chart::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 18px;
  bottom: 28px;
  height: 72px;
  clip-path: polygon(0 71%, 16% 52%, 29% 58%, 43% 32%, 58% 42%, 72% 14%, 86% 26%, 100% 4%, 100% 12%, 86% 34%, 72% 22%, 58% 50%, 43% 40%, 29% 66%, 16% 60%, 0 79%);
  background: #fff;
  opacity: .72;
}
html.public-landing .visual-status-card {
  transition: transform .22s ease, box-shadow .22s ease;
  animation: landing-float 5.8s ease-in-out infinite;
}
html.public-landing .status-ai { animation-delay: -1.8s; }
html.public-landing .status-email { animation-delay: -3.2s; }
html.public-landing .visual-orbit::after {
  content: "";
  position: absolute;
  right: 58px;
  top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 20px rgba(75,216,255,.95), 0 0 42px rgba(154,101,255,.75);
}
@keyframes landing-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0); }
}
.home-hero h2 {
  max-width: 760px;
  margin: 6px 0 12px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}
.home-hero p { max-width: 760px; color: rgba(255, 255, 255, 0.78); }
.home-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.home-system-map {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.94));
  box-shadow: var(--shadow-soft);
}
.system-badge {
  align-self: flex-start;
  border: 1px solid rgba(15, 138, 124, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--accent-dark);
  background: rgba(15, 138, 124, 0.08);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.home-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.home-flow-grid article {
  position: relative;
  min-height: 178px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  overflow: hidden;
}
.home-flow-grid article::after {
  content: "";
  position: absolute;
  inset: auto -34px -44px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(51, 209, 181, 0.12);
}
.home-flow-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  font-size: 12px;
  font-weight: 860;
}
.home-flow-grid strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 18px;
}
.home-flow-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.compact-system { padding-top: 20px; }
.home-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.home-module-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}
.home-module-grid strong {
  color: var(--ink);
  font-size: 14px;
}
.home-module-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
html.public-landing .landing-marketing {
  display: block;
  background: #f3f3fc;
}
.landing-section {
  padding: 110px max(34px, calc((100vw - 1220px) / 2));
  color: #061946;
  text-align: center;
}
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #315bff;
  font-size: 13px;
  font-weight: 860;
}
.landing-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #315bff;
}
.landing-section h2 {
  margin: 0 auto 18px;
  max-width: 780px;
  color: #061946;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.16;
}
.landing-section h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #315bff, #8a49dc);
}
.landing-copy {
  max-width: 760px;
  margin: 0 auto 44px;
  color: #24416f;
  font-size: 16px;
  line-height: 1.75;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.problem-grid article {
  border: 1px solid #dce2f3;
  border-radius: 14px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(24, 25, 60, 0.08);
}
.problem-grid .warning-card { border-color: #ffd1d1; }
.problem-grid h3 {
  margin: 0 0 22px;
  color: #315bff;
}
.problem-grid .warning-card h3 { color: #ff3d3d; }
.problem-grid ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.problem-grid li {
  color: #061946;
  line-height: 1.6;
}
.metric-section {
  background: #fff;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.metric-grid article {
  padding: 26px;
}
.metric-grid span {
  display: block;
  margin-bottom: 16px;
  color: #5f55e8;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
}
.metric-grid p {
  color: #24416f;
  font-size: 14px;
}
.process-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 55%, rgba(92, 68, 200, .38), transparent 32%),
    linear-gradient(135deg, #21104b, #2b115b 60%, #1a0b3b);
}
.process-section h2, .process-section .landing-copy { color: #fff; }
.process-section .landing-copy { color: rgba(255,255,255,.66); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 48px auto 0;
  text-align: left;
}
.process-grid article {
  min-height: 230px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 28px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.process-grid span {
  float: right;
  color: rgba(255,255,255,.12);
  font-size: 56px;
  font-weight: 900;
}
.process-grid strong {
  display: block;
  margin: 70px 0 12px;
  color: #fff;
  font-size: 20px;
}
.process-grid p {
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 54px auto 0;
  text-align: left;
}
.feature-grid article {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid #dce2f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(24, 25, 60, 0.08);
}
.feature-grid article:nth-last-child(-n+2) {
  grid-column: span 3;
  padding-top: 32px;
  text-align: center;
}
.feature-grid strong {
  display: block;
  padding: 24px 28px 10px;
  color: #061946;
  font-size: 20px;
}
.feature-grid p {
  padding: 0 28px 28px;
  color: #24416f;
  line-height: 1.7;
}
.feature-media {
  position: relative;
  overflow: hidden;
  height: 190px;
  background:
    radial-gradient(circle at 45% 45%, rgba(255,255,255,.92), transparent 16%),
    linear-gradient(135deg, #a767ff, #315bff 70%);
}
.feature-media::before,
.feature-media::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.feature-media::before {
  inset: 24px 28px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.8) 0 0) 20px 22px / 72px 9px no-repeat,
    linear-gradient(rgba(255,255,255,.4) 0 0) 20px 48px / 118px 7px no-repeat,
    linear-gradient(rgba(255,255,255,.28) 0 0) 20px 70px / 92px 7px no-repeat,
    rgba(8, 13, 44, .28);
  box-shadow: 0 24px 60px rgba(11, 18, 54, .24);
}
.feature-media::after {
  right: 38px;
  bottom: 28px;
  width: 116px;
  height: 72px;
  border-radius: 12px;
  background:
    linear-gradient(to top, rgba(255,255,255,.72) 0 42%, transparent 42%) 16px 18px / 12px 38px no-repeat,
    linear-gradient(to top, rgba(255,255,255,.62) 0 64%, transparent 64%) 40px 18px / 12px 38px no-repeat,
    linear-gradient(to top, rgba(255,255,255,.74) 0 52%, transparent 52%) 64px 18px / 12px 38px no-repeat,
    linear-gradient(to top, rgba(255,255,255,.54) 0 76%, transparent 76%) 88px 18px / 12px 38px no-repeat,
    rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.media-b {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), transparent 7%),
    radial-gradient(circle at 70% 54%, rgba(255,255,255,.75), transparent 8%),
    linear-gradient(135deg, #152a92, #b640ff);
}
.media-b::before {
  background:
    radial-gradient(circle at 26% 58%, rgba(255,255,255,.86), transparent 4%),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.7), transparent 4%),
    radial-gradient(circle at 72% 64%, rgba(255,255,255,.82), transparent 4%),
    linear-gradient(145deg, transparent 0 38%, rgba(255,255,255,.42) 38% 40%, transparent 40% 100%),
    rgba(8, 13, 44, .18);
}
.media-c {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 4px, transparent 4px 26px),
    linear-gradient(135deg, #25105a, #7e53ff);
}
.media-c::before {
  inset: 20px 26px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.78), transparent 8%),
    linear-gradient(rgba(255,255,255,.5) 0 0) 24px 32px / 120px 8px no-repeat,
    linear-gradient(rgba(255,255,255,.24) 0 0) 24px 58px / 76px 7px no-repeat,
    linear-gradient(to top, rgba(75,216,255,.62) 0 55%, transparent 55%) 180px 60px / 18px 70px no-repeat,
    linear-gradient(to top, rgba(166,107,255,.76) 0 72%, transparent 72%) 212px 60px / 18px 70px no-repeat,
    linear-gradient(to top, rgba(111,255,220,.58) 0 42%, transparent 42%) 244px 60px / 18px 70px no-repeat,
    rgba(9, 12, 36, .34);
}
.feature-grid article {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-grid article:hover {
  border-color: rgba(93, 84, 230, .34);
  box-shadow: 0 30px 90px rgba(24, 25, 60, 0.12);
  transform: translateY(-4px);
}
.deliverable-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(49, 91, 255, .08), transparent 32%),
    linear-gradient(180deg, #fff, #f4f5ff);
}
.deliverable-copy {
  text-align: center;
}
.deliverable-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1120px;
  margin: 52px auto 0;
}
.deliverable-report-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(49, 91, 255, .16);
  border-radius: 20px;
  padding: 28px;
  color: #061946;
  background:
    radial-gradient(circle at 84% 12%, rgba(95,85,232,.16), transparent 28%),
    linear-gradient(180deg, #fff, #f8f9ff);
  box-shadow: 0 34px 90px rgba(24,25,60,.12);
}
.deliverable-report-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(49, 91, 255, .08);
}
.deliverable-report-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.deliverable-report-head span {
  color: #315bff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.deliverable-report-head strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}
.deliverable-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.deliverable-kpis div {
  border: 1px solid rgba(49,91,255,.12);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,.72);
}
.deliverable-kpis span {
  display: block;
  margin-bottom: 8px;
  color: #24416f;
  font-size: 12px;
  font-weight: 820;
}
.deliverable-kpis strong {
  color: #5f55e8;
  font-size: 30px;
  line-height: 1;
}
.deliverable-chart {
  height: 190px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(6,25,70,.54) 0 0) 24px 24px / 120px 10px no-repeat,
    linear-gradient(rgba(36,65,111,.22) 0 0) 24px 52px / 190px 8px no-repeat,
    linear-gradient(to top, rgba(49,91,255,.72) 0 58%, transparent 58%) 52% 58% / 26px 110px no-repeat,
    linear-gradient(to top, rgba(95,85,232,.62) 0 76%, transparent 76%) 60% 58% / 26px 110px no-repeat,
    linear-gradient(to top, rgba(42,168,242,.58) 0 48%, transparent 48%) 68% 58% / 26px 110px no-repeat,
    linear-gradient(140deg, transparent 0 42%, rgba(49,91,255,.5) 42% 44%, transparent 44%),
    linear-gradient(180deg, #eef3ff, #fff);
}
.deliverable-lines {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.deliverable-lines span {
  height: 12px;
  border-radius: 999px;
  background: rgba(36,65,111,.12);
}
.deliverable-lines span:nth-child(2) { width: 76%; }
.deliverable-lines span:nth-child(3) { width: 54%; }
.deliverable-side-list {
  display: grid;
  gap: 14px;
}
.deliverable-side-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  align-content: center;
  min-height: 112px;
  border: 1px solid rgba(49,91,255,.12);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24,25,60,.08);
  text-align: left;
}
.deliverable-side-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #315bff, #8a49dc);
  font-size: 12px;
  font-weight: 900;
}
.deliverable-side-list strong {
  color: #061946;
  font-size: 17px;
}
.deliverable-side-list p {
  margin: 0;
  color: #24416f;
  font-size: 13px;
  line-height: 1.55;
}
.command-section {
  color: #fff;
  background: linear-gradient(135deg, #21104b, #180934);
}
.command-section h2, .command-section .landing-copy { color: #fff; }
.command-section .landing-copy { color: rgba(255,255,255,.62); }
.command-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  max-width: 980px;
  min-height: 520px;
  margin: 54px auto 0;
  border: 1px solid rgba(111, 110, 255, .54);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(145deg, #090b14, #111a34);
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
}
.command-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(75,216,255,.16), transparent 28%),
    radial-gradient(circle at 26% 72%, rgba(155,108,255,.14), transparent 34%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  pointer-events: none;
}
.command-preview > * {
  position: relative;
  z-index: 1;
}
.command-sidebar {
  border-radius: 14px;
  background:
    linear-gradient(#26315d 0 0) 24px 28px / 110px 12px no-repeat,
    linear-gradient(#26315d 0 0) 24px 68px / 132px 10px no-repeat,
    linear-gradient(#26315d 0 0) 24px 104px / 90px 10px no-repeat,
    rgba(255,255,255,.05);
}
.command-content {
  display: grid;
  gap: 20px;
}
.command-row {
  min-height: 92px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.72) 0 0) 24px 24px / 120px 10px no-repeat,
    linear-gradient(rgba(255,255,255,.28) 0 0) 24px 52px / 210px 8px no-repeat,
    linear-gradient(90deg, rgba(75,216,255,.24), rgba(143,93,255,.18));
}
.command-chart {
  min-height: 250px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.5) 0 0) 24px 28px / 100px 8px no-repeat,
    linear-gradient(rgba(255,255,255,.18) 0 0) 24px 54px / 160px 7px no-repeat,
    radial-gradient(circle at 22% 42%, rgba(151,94,255,.8), transparent 10%),
    linear-gradient(to top, rgba(75,216,255,.38) 0 42%, transparent 42%) 220px 90px / 26px 120px no-repeat,
    linear-gradient(to top, rgba(155,108,255,.52) 0 68%, transparent 68%) 264px 90px / 26px 120px no-repeat,
    linear-gradient(to top, rgba(75,216,255,.3) 0 54%, transparent 54%) 308px 90px / 26px 120px no-repeat,
    linear-gradient(140deg, transparent 0 45%, rgba(255,255,255,.32) 45% 47%, transparent 47%),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255,255,255,.12) 36px 40px);
}
.command-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.command-cards span {
  min-height: 108px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.62) 0 0) 18px 22px / 46px 8px no-repeat,
    linear-gradient(rgba(255,255,255,.24) 0 0) 18px 50px / 84px 7px no-repeat,
    linear-gradient(rgba(255,255,255,.16) 0 0) 18px 72px / 62px 7px no-repeat,
    rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 50px auto 0;
}
.landing-pricing-grid article {
  border: 1px solid #dce2f3;
  border-radius: 14px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(24, 25, 60, 0.08);
}
.landing-pricing-grid strong, .landing-pricing-grid span {
  display: block;
  color: #061946;
}
.landing-pricing-grid span {
  margin: 18px 0;
  color: #5f55e8;
  font-size: 32px;
  font-weight: 900;
}
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  text-align: left;
  background: #fff;
}
.contact-section h2::after { margin-left: 0; }
.contact-section .landing-copy { margin-left: 0; }

html.public-landing body {
  background: #f5f6ff;
}
html.public-landing .landing-info-bar,
html.public-landing .topbar,
html.public-landing .landing-section {
  padding-left: max(28px, calc((100vw - 1180px) / 2));
  padding-right: max(28px, calc((100vw - 1180px) / 2));
}
html.public-landing .landing-info-bar {
  min-height: 34px;
  font-size: 12px;
}
html.public-landing .topbar {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(420px, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 92px;
  padding-top: 0;
  padding-bottom: 0;
}
html.public-landing .brand-block {
  min-width: 0;
  width: 100%;
}
html.public-landing .landing-nav-links {
  gap: clamp(18px, 2.2vw, 32px);
  justify-self: center;
  white-space: nowrap;
}
html.public-landing .top-actions {
  justify-self: end;
  flex-wrap: nowrap;
  gap: 10px;
}
html.public-landing .language-toggle,
html.public-landing .theme-toggle {
  display: none;
}
html.public-landing .landing-cta {
  min-height: 42px;
  white-space: nowrap;
}
html.public-landing #landingLoginBtn {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
html.public-landing .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.82fr);
  column-gap: clamp(38px, 6vw, 86px);
  min-height: min(680px, calc(100vh - 126px));
  padding-left: max(34px, calc((100vw - 1180px) / 2));
  padding-right: max(34px, calc((100vw - 1180px) / 2));
  padding-top: clamp(68px, 9vw, 118px);
  padding-bottom: clamp(86px, 10vw, 132px);
}
html.public-landing .home-hero > div:first-child {
  max-width: 760px;
  min-width: 0;
}
html.public-landing .home-hero h2 {
  max-width: min(820px, 100%);
  margin-bottom: 24px;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: balance;
}
html.public-landing .home-hero h2 span:first-child {
  max-width: 100%;
}
html.public-landing .home-hero h2 span:last-child {
  max-width: 100%;
}
html.public-landing .home-hero h2 span {
  display: block;
}
html.public-landing .home-hero h2 .title-word-a,
html.public-landing .home-hero h2 .title-word-b {
  display: inline;
}
html.public-landing .home-hero h2 .title-word-b::after {
  content: "";
  display: block;
}
html.public-landing .home-hero h2 .title-word-c,
html.public-landing .home-hero h2 .title-word-d {
  display: inline;
}
html.public-landing .home-hero p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 17px;
}
html.public-landing .home-hero-actions {
  justify-content: flex-start;
  gap: 14px;
}
html.public-landing .home-hero-actions button {
  min-height: 48px;
  padding-left: 22px;
  padding-right: 22px;
}
.landing-trust-row { display: none; }
html.public-landing .landing-trust-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
html.public-landing .landing-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(145, 205, 255, .26);
  border-radius: 999px;
  padding: 7px 13px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 780;
  backdrop-filter: blur(12px);
}
html.public-landing .landing-trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4bd8ff;
  box-shadow: 0 0 16px rgba(75,216,255,.7);
}
html.public-landing .landing-hero-visual {
  position: relative;
  right: auto;
  top: auto;
  justify-self: end;
  align-self: center;
  width: min(520px, 100%);
}
html.public-landing .landing-system-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: -62px auto 0;
  padding: 0 max(28px, calc((100vw - 1180px) / 2)) 38px;
}
html.public-landing .landing-proof-rail {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin: -92px auto 96px;
  overflow: hidden;
  border: 1px solid rgba(166, 189, 255, .26);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 0% 0%, rgba(75,216,255,.18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06)),
    rgba(7, 12, 38, .78);
  box-shadow: 0 30px 90px rgba(7, 12, 38, .26), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
}
html.public-landing .landing-proof-rail div {
  position: relative;
  min-height: 138px;
  padding: 24px;
  background: rgba(255,255,255,.035);
}
html.public-landing .landing-proof-rail div + div {
  border-left: 1px solid rgba(255,255,255,.08);
}
html.public-landing .landing-proof-rail span {
  display: block;
  margin-bottom: 10px;
  color: rgba(210, 235, 255, .72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html.public-landing .landing-proof-rail strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}
html.public-landing .landing-proof-rail p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.6;
}
html.public-landing .landing-product-map {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 88px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
}
html.public-landing .product-map-copy h2 {
  max-width: 520px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
}
html.public-landing .product-map-copy p:not(.landing-kicker) {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1.75;
}
html.public-landing .product-map-canvas {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(166, 189, 255, .24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(75,216,255,.18), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(138,73,220,.22), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.055)),
    rgba(8, 13, 42, .78);
  box-shadow: 0 34px 110px rgba(7, 12, 38, .28), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(22px);
}
html.public-landing .product-map-canvas::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
}
html.public-landing .product-map-flow {
  position: absolute;
  inset: 50% 56px auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #72f4d7, #4bd8ff, #8a49dc, #72f4d7);
  box-shadow: 0 0 30px rgba(75,216,255,.36);
}
html.public-landing .product-map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 5px;
  width: 168px;
  min-height: 118px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
  box-shadow: 0 22px 52px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
html.public-landing .product-map-node::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  box-shadow: 0 14px 28px rgba(114,244,215,.16);
}
html.public-landing .product-map-node span {
  color: rgba(213,238,255,.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html.public-landing .product-map-node strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.18;
}
html.public-landing .product-map-node small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.35;
}
html.public-landing .product-map-node.input { left: 38px; top: 54px; }
html.public-landing .product-map-node.ai { left: 38%; top: 34px; transform: translateX(-50%); }
html.public-landing .product-map-node.report { right: 38%; bottom: 42px; transform: translateX(50%); }
html.public-landing .product-map-node.delivery { right: 38px; top: 54px; }
html.public-landing .landing-system-strip::before {
  content: "";
  position: absolute;
  left: max(48px, calc((100vw - 1080px) / 2));
  right: max(48px, calc((100vw - 1080px) / 2));
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(75,216,255,.15), rgba(75,216,255,.72), rgba(138,73,220,.58), rgba(114,244,215,.42));
  box-shadow: 0 0 30px rgba(75,216,255,.28);
}
html.public-landing .landing-system-strip article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid rgba(166, 189, 255, .24);
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(75,216,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.055)),
    rgba(9, 15, 43, .76);
  box-shadow: 0 24px 80px rgba(10, 12, 40, .22), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
html.public-landing .landing-system-strip article::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid rgba(75,216,255,.2);
}
html.public-landing .landing-system-strip span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  color: #061946;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  box-shadow: 0 16px 34px rgba(114,244,215,.18);
  font-size: 12px;
  font-weight: 950;
}
html.public-landing .landing-system-strip strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}
html.public-landing .landing-system-strip p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.62;
}
html.public-landing .landing-marketing {
  background: linear-gradient(180deg, #f6f6ff 0%, #fff 38%, #f5f4ff 100%);
}
.landing-section {
  padding-top: clamp(82px, 9vw, 118px);
  padding-bottom: clamp(82px, 9vw, 118px);
}
.landing-section + .landing-section {
  border-top: 1px solid rgba(22, 31, 85, .06);
}
.landing-section h2 {
  max-width: 720px;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.landing-copy {
  max-width: 680px;
  margin-bottom: 42px;
}
.problem-grid {
  max-width: 960px;
  gap: 24px;
}
.problem-grid article {
  min-height: 260px;
  padding: 32px;
}
.metric-grid {
  max-width: 1040px;
  gap: 22px;
  margin-top: 48px;
}
.metric-grid article {
  min-height: 190px;
  border: 1px solid rgba(95, 85, 232, .12);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fafaff);
  box-shadow: 0 18px 60px rgba(24, 25, 60, .07);
}
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1240px;
  gap: 22px;
}
.process-grid article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 300px;
  padding: 30px 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 26px 70px rgba(0,0,0,.12);
}
.process-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 44%);
  pointer-events: none;
}
.process-grid span {
  position: relative;
  z-index: 1;
  float: none;
  justify-self: end;
}
.process-grid strong {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 48px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.process-grid p {
  position: relative;
  z-index: 1;
}
.production-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(75, 216, 255, .2), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(138, 73, 220, .22), transparent 30%),
    linear-gradient(145deg, #151047 0%, #071c46 54%, #061f34 100%);
}
.production-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .52;
}
.production-section > * {
  position: relative;
  z-index: 1;
}
.production-section h2,
.production-section .landing-copy {
  color: #fff;
}
.production-section .landing-copy {
  color: rgba(255,255,255,.68);
}
.production-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 46px auto 22px;
}
.production-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 2px;
  background: linear-gradient(90deg, #4bd8ff, #72f4d7, #8a49dc);
  box-shadow: 0 0 24px rgba(75,216,255,.42);
}
.production-rail span {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 22px rgba(114,244,215,.8);
}
.production-rail span:nth-child(1) { left: 0; }
.production-rail span:nth-child(2) { left: 33%; }
.production-rail span:nth-child(3) { left: 66%; }
.production-rail span:nth-child(4) { right: 0; }
.production-stage article {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 26px;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
.production-stage article::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(75,216,255,.08);
}
.production-stage article.featured {
  border-color: rgba(114,244,215,.36);
  background:
    radial-gradient(circle at 92% 10%, rgba(114,244,215,.16), transparent 36%),
    rgba(255,255,255,.105);
  transform: translateY(-12px);
}
.production-stage i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 42px;
  border-radius: 14px;
  color: #071c46;
  background: linear-gradient(135deg, #e8fffa, #72f4d7);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(114,244,215,.22);
}
.production-stage strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}
.production-stage p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 14px;
  line-height: 1.72;
}
.production-preview {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 14px;
  max-width: 1080px;
  margin: 28px auto 0;
}
.production-preview > div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.production-preview span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #b9fff1;
  background: rgba(114,244,215,.1);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.production-preview strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}
.production-preview p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.6;
}
.feature-grid {
  max-width: 1080px;
  gap: 24px;
}
.feature-grid article {
  border-radius: 16px;
}
.feature-grid strong {
  padding: 24px 26px 8px;
}
.feature-grid p {
  padding: 0 26px 28px;
}
.feature-grid article:nth-last-child(-n+2) {
  min-height: 220px;
  padding-top: 28px;
}
.report-gallery-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(49, 91, 255, .08), transparent 30%),
    linear-gradient(180deg, #fff, #f4f6ff);
}
.report-gallery {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) repeat(2, minmax(220px, .65fr));
  gap: 18px;
  max-width: 1120px;
  margin: 46px auto 0;
}
.report-gallery article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(49, 91, 255, .14);
  border-radius: 20px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,255,.94));
  box-shadow: 0 24px 70px rgba(24,25,60,.08);
}
.report-gallery article:not(.gallery-main)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #315bff, #8a49dc, #2aa8f2);
}
.report-gallery .gallery-main {
  grid-row: span 2;
  min-height: 440px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(138,73,220,.12), transparent 36%),
    linear-gradient(145deg, #eef3ff, #fff);
}
.gallery-report-window {
  height: 100%;
  min-height: 400px;
  border: 1px solid rgba(49,91,255,.16);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 22px 60px rgba(49,91,255,.1);
}
.gallery-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.gallery-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b9c7ff;
}
.gallery-report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.gallery-report-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.gallery-report-head strong {
  color: var(--ink);
  font-size: 22px;
}
.gallery-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.gallery-kpi-row div {
  border: 1px solid rgba(49,91,255,.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,.86);
}
.gallery-kpi-row span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.gallery-kpi-row strong {
  color: #315bff;
  font-size: 24px;
}
.gallery-chart {
  height: 150px;
  border: 1px solid rgba(49,91,255,.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(49,91,255,.06) 24% 25%, transparent 25% 49%, rgba(49,91,255,.06) 49% 50%, transparent 50% 74%, rgba(49,91,255,.06) 74% 75%, transparent 75%),
    linear-gradient(135deg, transparent 8%, rgba(49,91,255,.18) 8% 10%, transparent 10% 27%, rgba(42,168,242,.5) 27% 30%, transparent 30% 48%, rgba(138,73,220,.48) 48% 51%, transparent 51% 72%, rgba(15,138,124,.42) 72% 75%, transparent 75%),
    linear-gradient(180deg, #f8fbff, #eef4ff);
}
.gallery-report-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.gallery-report-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(49,91,255,.18), rgba(49,91,255,.04));
}
.gallery-report-lines span:nth-child(2) { width: 86%; }
.gallery-report-lines span:nth-child(3) { width: 64%; }
.report-gallery article:not(.gallery-main) span {
  display: inline-flex;
  margin-bottom: 26px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #315bff;
  background: rgba(49,91,255,.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.report-gallery article:not(.gallery-main) strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}
.report-gallery article:not(.gallery-main) p {
  margin: 0;
  color: #24416f;
  font-size: 14px;
  line-height: 1.75;
}
.sample-report-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 16%, rgba(75,216,255,.18), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(138,73,220,.2), transparent 28%),
    linear-gradient(145deg, #160d3d 0%, #11195b 56%, #082f38 100%);
}
.sample-report-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .46;
}
.sample-report-section > * {
  position: relative;
  z-index: 1;
}
.sample-report-section h2,
.sample-report-section .landing-copy {
  color: #fff;
}
.sample-report-section .landing-copy {
  color: rgba(255,255,255,.68);
}
.sample-report-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1180px;
  margin: 48px auto 0;
}
.sample-report-browser {
  overflow: hidden;
  border: 1px solid rgba(166, 189, 255, .24);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.055)),
    rgba(8, 14, 38, .8);
  box-shadow: 0 34px 100px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.sample-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 0 18px;
  background: rgba(255,255,255,.055);
}
.sample-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}
.sample-browser-bar strong {
  margin-left: 8px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 760;
}
.sample-report-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 520px;
}
.sample-report-layout aside {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid rgba(255,255,255,.1);
  padding: 24px 18px;
  background: rgba(255,255,255,.045);
}
.sample-report-layout aside span {
  margin-bottom: 18px;
  color: #b9fff1;
  font-size: 12px;
  font-weight: 900;
}
.sample-report-layout aside b {
  display: block;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}
.sample-report-layout aside b:nth-child(2) {
  background: linear-gradient(90deg, rgba(114,244,215,.2), rgba(75,216,255,.08));
}
.sample-report-layout main {
  display: grid;
  gap: 18px;
  padding: 26px;
}
.sample-report-head {
  display: grid;
  gap: 8px;
}
.sample-report-head span {
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.sample-report-head strong {
  max-width: 620px;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}
.sample-report-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sample-report-kpis div {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.075);
}
.sample-report-kpis span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 900;
}
.sample-report-kpis strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.sample-report-chart {
  min-height: 180px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.62), transparent 3%),
    linear-gradient(140deg, transparent 0 28%, rgba(114,244,215,.28) 28% 30%, transparent 30% 100%),
    linear-gradient(155deg, rgba(75,216,255,.22), rgba(138,73,220,.22)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.09) 38px 40px);
}
.sample-report-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sample-report-insights article,
.sample-report-notes article {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.075);
}
.sample-report-insights span,
.sample-report-notes span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #b9fff1;
  background: rgba(114,244,215,.1);
  font-size: 11px;
  font-weight: 900;
}
.sample-report-insights p,
.sample-report-notes p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.6;
}
.sample-report-notes {
  display: grid;
  gap: 14px;
}
.sample-report-notes article {
  min-height: 150px;
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.12), transparent 34%),
    rgba(255,255,255,.075);
}
.sample-report-notes strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.28;
}
.command-preview {
  max-width: 1040px;
  grid-template-columns: 210px 1fr;
  gap: 22px;
}
.landing-pricing-grid {
  max-width: 1040px;
  gap: 20px;
}
.landing-pricing-grid article {
  min-height: 250px;
}
.rollout-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(42,168,242,.12), transparent 30%),
    linear-gradient(180deg, #f7f9ff, #fff);
}
.rollout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 46px auto 0;
}
.rollout-grid article {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(49, 91, 255, .14);
  border-radius: 22px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,255,.94));
  box-shadow: 0 26px 78px rgba(24,25,60,.08);
}
.rollout-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #315bff, #2aa8f2, #72f4d7);
}
.rollout-grid article::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(49,91,255,.06);
}
.rollout-grid span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 58px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #315bff, #8a49dc);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(49,91,255,.22);
}
.rollout-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}
.rollout-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #24416f;
  font-size: 14px;
  line-height: 1.75;
}
.contact-section {
  max-width: none;
  border-top: 0;
  padding-top: 78px;
  padding-bottom: 78px;
}
.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-kpi-card, .home-panel {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.94));
  box-shadow: var(--shadow-soft);
}
.home-kpi-card {
  min-height: 150px;
  padding: 18px;
}
.home-kpi-card span, .home-case-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}
.home-kpi-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
}
.home-kpi-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 20px;
}
.home-panel { padding: 22px; }
.home-case-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.home-case-summary div {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.72);
}
.home-case-summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.home-next-actions, .home-feed {
  display: grid;
  gap: 9px;
}
.home-next-actions div, .home-feed div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}
.home-next-actions strong, .home-feed strong { color: var(--ink); font-size: 13px; }
.home-next-actions span, .home-feed span { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-shortcuts button {
  display: grid;
  grid-template-columns: 34px 1fr;
  justify-content: start;
  gap: 4px 12px;
  min-height: 92px;
  border-color: rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  white-space: normal;
}
.home-shortcuts button span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(17, 124, 114, 0.1);
  font-size: 12px;
  font-weight: 860;
}
.home-shortcuts button strong { font-size: 14px; }
.home-shortcuts button small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px 34px 60px;
}
.workspace > * { min-width: 0; }
.workspace-context-bar {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr) auto;
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(114,244,215,.16);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 16%, rgba(114,244,215,.18), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(75,216,255,.16), transparent 34%),
    linear-gradient(135deg, rgba(8, 47, 56, .98), rgba(17, 24, 39, .96));
  box-shadow: 0 24px 70px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.workspace-context-bar::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(114,244,215,.18);
  border-radius: 999px;
}
.workspace-context-bar > * {
  position: relative;
  z-index: 1;
}
.workspace-context-main span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #b9fff1;
  background: rgba(114,244,215,.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.workspace-context-main strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.16;
}
.workspace-context-main p {
  max-width: 680px;
  margin: 0;
  color: rgba(239,250,248,.68);
  font-size: 13px;
  line-height: 1.65;
}
.workspace-context-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.workspace-context-meta div {
  display: grid;
  align-content: center;
  min-height: 78px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.06);
}
.workspace-context-meta span {
  margin-bottom: 7px;
  color: rgba(239,250,248,.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.workspace-context-meta strong {
  color: #f6fffd;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.workspace-context-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 146px;
}
.workspace-context-actions button {
  min-height: 40px;
  border-radius: 12px;
}
.workspace-context-actions .ghost {
  color: #e8fffa;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.workspace-view-masthead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .52fr);
  gap: 18px;
  align-items: stretch;
  margin-top: -12px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(42,168,242,.1), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,251,250,.92));
  box-shadow: 0 18px 52px rgba(8,47,56,.08);
}
.view-masthead-copy span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(15,138,124,.16);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent-dark);
  background: rgba(15,138,124,.08);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}
.view-masthead-copy h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.08;
}
.view-masthead-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.64;
}
.view-masthead-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.view-masthead-status div {
  display: grid;
  align-content: center;
  min-height: 74px;
  border: 1px solid rgba(6,68,60,.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.78);
}
.view-masthead-status span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.view-masthead-status strong {
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.24;
}
.view-masthead-status button {
  grid-column: 1 / -1;
  min-height: 42px;
}
html.theme-dark .workspace-view-masthead {
  border-color: rgba(114,244,215,.14);
  background:
    radial-gradient(circle at 92% 0%, rgba(75,216,255,.12), transparent 30%),
    linear-gradient(135deg, rgba(9,25,28,.94), rgba(20,27,42,.88));
  box-shadow: 0 18px 52px rgba(0,0,0,.2);
}
html.theme-dark .view-masthead-copy h2,
html.theme-dark .view-masthead-status strong {
  color: #f6fffd;
}
html.theme-dark .view-masthead-copy p {
  color: rgba(239,250,248,.64);
}
html.theme-dark .view-masthead-copy span {
  border-color: rgba(114,244,215,.18);
  color: #b9fff1;
  background: rgba(114,244,215,.08);
}
html.theme-dark .view-masthead-status div {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
}
html.theme-dark .view-masthead-status span {
  color: rgba(239,250,248,.52);
}
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(237, 242, 240, 0.82);
  backdrop-filter: blur(12px);
}
.auth-gate[hidden] { display: none !important; }
.auth-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.auth-card h2 { margin-bottom: 0; font-size: 24px; }
.auth-card p { color: var(--muted); }
.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-legal-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.55;
}

.auth-legal-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.auth-legal-consent a {
  color: var(--accent);
  font-weight: 800;
}

.auth-secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover { text-decoration: underline; }

.auth-reset-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

html.theme-dark:not(.public-landing) .auth-reset-panel,
html.theme-dark .auth-reset-panel {
  border-color: #384353;
  background: #171d26;
}
.portal-page {
  padding: 34px;
}
.portal-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.portal-hero, .portal-form {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}
.portal-hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(51, 209, 181, 0.24), transparent 34%),
    linear-gradient(135deg, #063f37, #092f3f);
}
.portal-hero h2 {
  margin-bottom: 10px;
  font-size: 28px;
}
.portal-hero p { color: rgba(255, 255, 255, 0.76); }
.portal-token {
  margin-top: 18px;
  border: 1px solid rgba(17, 124, 114, 0.2);
  border-radius: 8px;
  padding: 10px;
  color: var(--accent-dark);
  background: rgba(17, 124, 114, 0.07);
  font-size: 12px;
  font-weight: 820;
  overflow-wrap: anywhere;
}
.portal-form {
  display: grid;
  gap: 14px;
}
.portal-form textarea {
  min-height: 120px;
}
.panel, .report {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.controls {
  position: sticky;
  top: 88px;
  overflow: hidden;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  color: rgba(239, 250, 248, .92);
  background:
    radial-gradient(circle at 22% 0%, rgba(51, 209, 181, .16), transparent 34%),
    linear-gradient(180deg, rgba(13, 27, 32, .98), rgba(9, 18, 24, .98));
  box-shadow: 0 28px 80px rgba(3, 15, 18, .32);
  scrollbar-width: thin;
}
.case-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(110, 255, 220, 0.22);
  border-radius: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 20%, rgba(75, 216, 255, .24), transparent 26%),
    linear-gradient(135deg, rgba(12, 86, 76, 0.96), rgba(12, 38, 52, 0.94));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}
.case-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}
.case-card span { color: var(--muted); font-size: 12px; font-weight: 820; }
.case-card span, .case-card strong { color: #fff; }
.case-card strong { display: block; margin-top: 4px; font-size: 16px; line-height: 1.35; }
.case-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.case-chips span { border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 6px 9px; color: #d9fff7; background: rgba(255, 255, 255, 0.1); }
.workspace-nav {
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.workspace-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  border-color: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: rgba(239, 250, 248, .72);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 780;
  white-space: normal;
  line-height: 1.2;
}
.workspace-nav button::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: rgba(239, 250, 248, .72);
  background: rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 900;
}
.workspace-nav button[data-workspace-view="overview"]::before { content: "01"; }
.workspace-nav button[data-workspace-view="case"]::before { content: "02"; }
.workspace-nav button[data-workspace-view="data"]::before { content: "03"; }
.workspace-nav button[data-workspace-view="report"]::before { content: "04"; }
.workspace-nav button[data-workspace-view="ai"]::before { content: "05"; }
.workspace-nav button[data-workspace-view="delivery"]::before { content: "06"; }
.workspace-nav button[data-workspace-view="billing"]::before { content: "07"; }
.workspace-nav button[data-workspace-view="settings"]::before { content: "08"; }
.workspace-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  transform: none;
}
.workspace-nav button.active {
  color: #061d1b;
  background: linear-gradient(135deg, #dffff7, #72f4d7);
  box-shadow: 0 12px 26px rgba(51, 209, 181, 0.2);
}
.workspace-nav button.active::before {
  color: #061d1b;
  background: rgba(6, 29, 27, .08);
}
.workspace-focus-card {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  border: 1px solid rgba(114, 244, 215, .18);
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(114,244,215,.18), transparent 28%),
    rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.workspace-focus-card span {
  color: #b9fff1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.workspace-focus-card strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}
.workspace-focus-card p {
  margin: 0;
  color: rgba(239, 250, 248, .62);
  font-size: 13px;
  line-height: 1.55;
}
.workspace-focus-card button {
  margin-top: 2px;
  border-color: rgba(114,244,215,.22);
  color: #b9fff1;
  background: rgba(114,244,215,.08);
}
.workspace-focus-card button:hover {
  color: #061d1b;
  background: #b9fff1;
  transform: translateY(-1px);
}
.quick-command-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.quick-command-card .section-title {
  margin-bottom: 0;
}
.quick-command-card h2 {
  color: #f6fffd;
}
.quick-command-card p {
  color: rgba(239,250,248,.58);
}
.quick-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.quick-command-grid button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 86px;
  border-color: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
  color: rgba(239,250,248,.86);
  background: rgba(255,255,255,.055);
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
.quick-command-grid button:hover {
  border-color: rgba(114,244,215,.24);
  background: rgba(255,255,255,.085);
  transform: translateY(-1px);
}
.quick-command-grid button.active {
  border-color: rgba(75,216,255,.32);
  background: rgba(75,216,255,.09);
}
.quick-command-grid button.done {
  border-color: rgba(114,244,215,.24);
  background: rgba(114,244,215,.08);
}
.quick-command-grid i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #082f38;
  background: linear-gradient(135deg, #e8fffa, #72f4d7);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.quick-command-grid button.done i {
  color: #063f37;
  background: #b9fff1;
}
.quick-command-grid button.active i {
  color: #061d1b;
  background: linear-gradient(135deg, #f8fdff, #4bd8ff);
}
.quick-command-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.quick-command-grid strong {
  color: #f6fffd;
  font-size: 13px;
  line-height: 1.25;
}
.quick-command-grid small {
  color: rgba(239,250,248,.58);
  font-size: 11px;
  line-height: 1.38;
}
.essential-flow-card {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  border: 1px solid rgba(114, 244, 215, .22);
  border-radius: 16px;
  padding: 16px;
  color: rgba(239, 250, 248, .9);
  background:
    radial-gradient(circle at 92% 4%, rgba(75, 216, 255, .18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 46px rgba(0,0,0,.16);
}
.essential-flow-card .section-title h2 {
  color: #fff;
  font-size: 16px;
}
.essential-flow-card .section-title p {
  color: rgba(239, 250, 248, .58);
}
.essential-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  border-color: rgba(255,255,255,.11);
  border-radius: 14px;
  padding: 12px;
  color: rgba(239, 250, 248, .84);
  background: rgba(255,255,255,.065);
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
.essential-step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(114,244,215,.12), transparent 52%);
  opacity: 0;
  transition: opacity .18s ease;
}
.essential-step:hover {
  border-color: rgba(114,244,215,.32);
  color: #fff;
  background: rgba(255,255,255,.095);
  transform: translateY(-1px);
}
.essential-step:hover::after { opacity: 1; }
.essential-step i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #061d1b;
  background: linear-gradient(135deg, #dffff7, #72f4d7);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(51, 209, 181, .16);
}
.essential-step span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.essential-step strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}
.essential-step small {
  color: rgba(239, 250, 248, .56);
  font-size: 12px;
  line-height: 1.45;
}
.essential-step.done {
  border-color: rgba(114,244,215,.3);
  background: rgba(114,244,215,.12);
}
.essential-step.done i {
  color: #fff;
  background: var(--accent);
}
.essential-step.active {
  border-color: rgba(75,216,255,.42);
  box-shadow: 0 0 0 3px rgba(75,216,255,.08);
}
.essential-generate {
  margin-top: 2px;
  box-shadow: 0 16px 34px rgba(15, 138, 124, .22);
}
.data-import-assistant {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(114,244,215,.2);
  border-radius: 16px;
  padding: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.18), transparent 30%),
    linear-gradient(180deg, rgba(114,244,215,.1), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.data-import-assistant span {
  display: block;
  margin-bottom: 5px;
  color: #b9fff1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.data-import-assistant strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}
.data-import-assistant p {
  margin: 0;
  color: rgba(239,250,248,.6);
  font-size: 13px;
  line-height: 1.55;
}
.data-import-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.data-import-actions button {
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 12px;
  white-space: normal;
  line-height: 1.2;
}
.ai-draft-assistant {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 16px;
  padding: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(138,73,220,.2), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(42,168,242,.12), transparent 34%),
    linear-gradient(180deg, rgba(147,197,253,.1), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.ai-draft-assistant span {
  display: block;
  margin-bottom: 5px;
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ai-draft-assistant strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}
.ai-draft-assistant p {
  margin: 0;
  color: rgba(239,250,248,.6);
  font-size: 13px;
  line-height: 1.55;
}
.ai-draft-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ai-draft-actions button {
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 12px;
  white-space: normal;
  line-height: 1.2;
}
[data-workspace-group][hidden] { display: none !important; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.soft-action { min-height: 36px; border-color: rgba(17, 124, 114, 0.2); color: var(--accent-dark); background: rgba(17, 124, 114, 0.07); box-shadow: none; }
.soft-action:hover { background: rgba(17, 124, 114, 0.12); }
.onboarding-card, .checklist-panel, .launch-card, .client-hub, .billing-hub, .audit-hub, .trust-hub, .report-library, .access-hub, .health-hub {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  color: rgba(239, 250, 248, .86);
  background: rgba(255, 255, 255, .065);
  box-shadow: none;
}
.onboarding-card h2, .checklist-panel h3, .launch-card h2, .client-hub h2, .billing-hub h2, .audit-hub h2, .trust-hub h2, .report-library h2, .access-hub h2, .health-hub h2 {
  color: #fff;
  margin-bottom: 0;
  font-size: 15px;
}
.controls .section-title p,
.controls .section-title.compact p {
  color: rgba(239, 250, 248, .56);
}
.steps-list {
  display: grid;
  gap: 10px;
}
.steps-list div {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}
.steps-list span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 820;
}
.steps-list p, .checklist-panel label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.launch-card {
  border-color: rgba(114, 244, 215, .18);
  background:
    linear-gradient(180deg, rgba(114, 244, 215, .1), rgba(255, 255, 255, .055));
}
.launch-meter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border: 1px solid rgba(114, 244, 215, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(114, 244, 215, 0.1);
}
.launch-meter span { color: rgba(239, 250, 248, .58); font-size: 12px; font-weight: 820; text-transform: uppercase; }
.launch-meter strong { color: #b9fff1; font-size: 28px; line-height: 1; }
.launch-checklist { display: grid; gap: 8px; }
.launch-checklist div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.launch-checklist i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(161, 98, 7, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 860;
}
.launch-checklist span { color: var(--ink-2); font-size: 13px; font-weight: 760; }
.launch-checklist strong { color: var(--muted); font-size: 12px; }
.launch-checklist .done { border-color: rgba(17, 124, 114, 0.2); background: rgba(17, 124, 114, 0.04); }
.launch-checklist .done i { color: #fff; background: var(--accent); }
.setup-wizard {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 168, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(37, 99, 168, 0.06), #fff);
}
.setup-wizard header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.setup-wizard header > div { min-width: 0; }
.setup-wizard header > strong { flex: 0 0 auto; }
.setup-wizard h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.setup-wizard p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.wizard-steps {
  display: grid;
  gap: 7px;
}
.wizard-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
}
.wizard-step > div { min-width: 0; }
.wizard-step i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(161, 98, 7, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 860;
}
.wizard-step.done i { color: #fff; background: var(--accent); }
.wizard-step.active { border-color: rgba(37, 99, 168, 0.32); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07); }
.wizard-step strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.wizard-step span { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.wizard-actions > span {
  flex: 1 1 100%;
  min-width: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.wizard-actions button {
  flex: 1 1 128px;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .wizard-actions { display: grid; grid-template-columns: 1fr; }
  .wizard-actions button { width: 100%; }
}
.client-hub, .billing-hub, .audit-hub, .trust-hub, .report-library, .access-hub, .health-hub { background: rgba(255, 255, 255, .065); }
.health-score-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border: 1px solid rgba(37, 99, 168, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(37, 99, 168, 0.06);
}
.health-score-card span { color: var(--muted); font-size: 12px; font-weight: 820; text-transform: uppercase; }
.health-score-card strong { color: #2563a8; font-size: 26px; line-height: 1; }
.integration-list {
  display: grid;
  gap: 8px;
}
.integration-list div {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.integration-list i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(161, 98, 7, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
}
.integration-list span { color: var(--ink-2); font-size: 13px; font-weight: 760; }
.integration-list strong { color: var(--muted); font-size: 12px; }
.integration-list .ok { border-color: rgba(17, 124, 114, 0.2); background: rgba(17, 124, 114, 0.04); }
.integration-list .ok i { color: #fff; background: var(--accent); }
.client-stats, .billing-summary, .audit-summary, .library-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.client-stats div, .billing-summary div, .audit-summary div, .library-summary div {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(17, 124, 114, 0.05));
  box-shadow: 0 10px 24px rgba(8, 47, 56, 0.05);
}
.client-stats span, .billing-summary span, .audit-summary span, .library-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 820; }
.client-stats strong, .billing-summary strong, .audit-summary strong, .library-summary strong { color: var(--accent-dark); font-size: 22px; line-height: 1; }
.client-list, .audit-list, .report-list, .member-list, .invoice-list, .portal-invite-list, .portal-submission-list { display: grid; gap: 8px; }
.client-list div, .client-list p, .audit-list div, .audit-list p, .report-list div, .report-list p, .member-list div, .member-list p, .invoice-list div, .invoice-list p, .portal-invite-list div, .portal-invite-list p, .portal-submission-list div, .portal-submission-list p {
  margin: 0;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(8, 47, 56, 0.04);
}
.client-list strong, .audit-list strong, .report-list strong, .member-list strong, .invoice-list strong, .portal-invite-list strong, .portal-submission-list strong { display: block; margin-bottom: 3px; font-size: 13px; }
.client-list span, .client-list p, .audit-list span, .audit-list p, .report-list span, .report-list p, .member-list span, .member-list p, .invoice-list span, .invoice-list p, .portal-invite-list span, .portal-invite-list p, .portal-submission-list span, .portal-submission-list p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.mini-action { margin-top: 8px; padding: 7px 10px; font-size: 12px; }
.portal-submission-list .processed {
  border-color: rgba(17, 124, 114, 0.2);
  background: rgba(17, 124, 114, 0.05);
}
.portal-submission-list .processed strong::after {
  content: "Processed";
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--accent-dark);
  background: rgba(17, 124, 114, 0.12);
  font-size: 10px;
  font-weight: 860;
  text-transform: uppercase;
}
.portal-submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-submission-actions button {
  flex: 1 1 145px;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.compact-status { min-height: auto; margin-top: 0; padding: 11px; }
.consent-list {
  display: grid;
  gap: 8px;
}
.consent-list label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 680;
}
.consent-list input {
  width: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.trust-status {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.trust-status strong { font-size: 13px; }
.trust-status span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.trust-status.ok { border-color: rgba(17, 124, 114, 0.28); background: rgba(17, 124, 114, 0.07); }
.trust-status.error { border-color: rgba(190, 63, 98, 0.32); background: rgba(190, 63, 98, 0.08); }
.access-status {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.access-status strong { font-size: 13px; }
.access-status span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.access-status.ok { border-color: rgba(17, 124, 114, 0.28); background: rgba(17, 124, 114, 0.07); }
.access-status.error { border-color: rgba(190, 63, 98, 0.32); background: rgba(190, 63, 98, 0.08); }
.helper-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}
.danger {
  color: var(--rose);
  border-color: rgba(190, 63, 98, 0.24);
}
.danger:hover {
  background: rgba(190, 63, 98, 0.08);
}
.source-box {
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
  border: 1px solid rgba(17, 124, 114, 0.18);
  border-radius: 10px;
  padding: 13px;
  background: linear-gradient(180deg, rgba(17, 124, 114, 0.05), rgba(255, 255, 255, 0.92));
}
.source-status {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.source-status strong { font-size: 13px; }
.source-status span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.source-status.ok { border-color: rgba(17, 124, 114, 0.28); background: rgba(17, 124, 114, 0.07); }
.source-status.error { border-color: rgba(190, 63, 98, 0.32); background: rgba(190, 63, 98, 0.08); }
.source-list {
  display: grid;
  gap: 8px;
}
.source-list div, .source-list p {
  margin: 0;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.92);
}
.source-list strong { display: block; margin-bottom: 3px; font-size: 13px; }
.source-list span, .source-list p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.intake-box {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  border: 1px solid rgba(37, 99, 168, 0.18);
  border-radius: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.78);
}
.intake-box strong { display: block; margin-bottom: 3px; font-size: 13px; }
.intake-box span { color: var(--muted); font-size: 12px; }
.intake-status {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.intake-status.ok { border-color: rgba(17, 124, 114, 0.28); background: rgba(17, 124, 114, 0.07); }
.intake-status.error { border-color: rgba(190, 63, 98, 0.32); background: rgba(190, 63, 98, 0.08); }
.checklist-panel {
  margin-top: 16px;
  margin-bottom: 0;
  background: var(--soft);
}
.checklist-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 640;
}
.checklist-panel input {
  width: auto;
  accent-color: var(--accent);
}
.autopilot-panel { border: 1px solid rgba(17, 124, 114, 0.18); border-radius: 10px; padding: 16px; background: linear-gradient(180deg, rgba(17, 124, 114, 0.06), rgba(255, 255, 255, 0.96)); box-shadow: var(--shadow-soft); }
.ai-output { display: none; margin-top: 12px; border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 12px; background: rgba(255, 255, 255, 0.94); }
.ai-output.ok { display: grid; gap: 4px; border-color: rgba(17, 124, 114, 0.28); background: rgba(17, 124, 114, 0.07); }
.ai-output strong { font-size: 13px; }
.ai-output span { color: var(--muted); font-size: 12px; }
.agent-box { display: grid; gap: 12px; margin-top: 14px; border: 1px solid rgba(17, 124, 114, 0.2); border-radius: 10px; padding: 13px; background: rgba(255, 255, 255, 0.78); box-shadow: 0 12px 28px rgba(8, 47, 56, 0.06); }
.agent-box strong { display: block; margin-bottom: 3px; font-size: 13px; }
.agent-box span { color: var(--muted); font-size: 12px; }
.agent-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.agent-status div { border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 10px; background: #fff; }
.agent-status span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 820; text-transform: uppercase; }
.agent-status strong { margin: 0; color: var(--accent-dark); font-size: 12px; line-height: 1.35; }
.agent-status small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.control-section + .control-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-title, .section-heading { margin-bottom: 16px; }
.section-title.compact { margin-bottom: 12px; }
.section-title h2, .section-heading h3 { margin-bottom: 4px; font-size: 18px; line-height: 1.25; }
.section-title p, .section-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.section-heading.split { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 760; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(6, 68, 60, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(17, 124, 114, 0.13), 0 8px 20px rgba(8, 47, 56, 0.06); }
.wide { margin-top: 14px; }
textarea { min-height: 245px; resize: vertical; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.55; }
.short-textarea { min-height: 118px; font-family: inherit; font-size: 13px; }
.hint { margin: 10px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.status-panel {
  display: grid;
  gap: 4px;
  min-height: 58px;
  margin-top: 16px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 242, 239, 0.78));
}
.status-panel:empty {
  display: none;
}
.status-panel strong { font-size: 14px; }
.status-panel span { color: var(--muted); font-size: 13px; }
.status-panel.ok { border-color: rgba(17, 124, 114, 0.28); background: rgba(17, 124, 114, 0.07); }
.status-panel.warning { border-color: rgba(161, 98, 7, 0.32); background: rgba(161, 98, 7, 0.08); }
.status-panel.error { border-color: rgba(190, 63, 98, 0.32); background: rgba(190, 63, 98, 0.08); }

.controls .control-section {
  border-top-color: rgba(255, 255, 255, .09);
}
.controls label {
  color: rgba(239, 250, 248, .74);
}
.controls input,
.controls select,
.controls textarea {
  border-color: rgba(255, 255, 255, .12);
  color: #f6fffd;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.controls input::placeholder,
.controls textarea::placeholder {
  color: rgba(239, 250, 248, .38);
}
.controls input:focus,
.controls select:focus,
.controls textarea:focus {
  border-color: rgba(114, 244, 215, .62);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(114, 244, 215, .12);
}
.controls option {
  color: #13211f;
}
.controls .field-grid {
  gap: 10px;
}
.controls .quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.controls .soft-action {
  border-color: transparent;
  color: rgba(239, 250, 248, .76);
  background: transparent;
}
.controls .soft-action:hover {
  color: #061d1b;
  background: #b9fff1;
}
.controls .status-panel,
.controls .compact-status,
.controls .source-status,
.controls .intake-status,
.controls .trust-status,
.controls .access-status {
  border-color: rgba(255,255,255,.1);
  color: rgba(239, 250, 248, .86);
  background: rgba(255,255,255,.065);
}
.controls .status-panel span,
.controls .source-status span,
.controls .intake-status span,
.controls .trust-status span,
.controls .access-status span {
  color: rgba(239, 250, 248, .56);
}
.controls .steps-list p,
.controls .hint,
.controls .wizard-step span,
.controls .agent-box span,
.controls .source-list span,
.controls .source-list p,
.controls .client-list span,
.controls .client-list p,
.controls .audit-list span,
.controls .audit-list p,
.controls .report-list span,
.controls .report-list p,
.controls .member-list span,
.controls .member-list p,
.controls .invoice-list span,
.controls .invoice-list p,
.controls .portal-invite-list span,
.controls .portal-invite-list p,
.controls .portal-submission-list span,
.controls .portal-submission-list p {
  color: rgba(239, 250, 248, .56);
}
.controls .launch-checklist div,
.controls .wizard-step,
.controls .integration-list div,
.controls .client-stats div,
.controls .billing-summary div,
.controls .audit-summary div,
.controls .library-summary div,
.controls .client-list div,
.controls .client-list p,
.controls .audit-list div,
.controls .audit-list p,
.controls .report-list div,
.controls .report-list p,
.controls .member-list div,
.controls .member-list p,
.controls .invoice-list div,
.controls .invoice-list p,
.controls .portal-invite-list div,
.controls .portal-invite-list p,
.controls .portal-submission-list div,
.controls .portal-submission-list p,
.controls .source-list div,
.controls .source-list p,
.controls .agent-status div,
.controls .consent-list label {
  border-color: rgba(255,255,255,.1);
  color: rgba(239, 250, 248, .84);
  background: rgba(255,255,255,.065);
}
.controls .launch-checklist span,
.controls .wizard-step strong,
.controls .integration-list span,
.controls .client-list strong,
.controls .audit-list strong,
.controls .report-list strong,
.controls .member-list strong,
.controls .invoice-list strong,
.controls .portal-invite-list strong,
.controls .portal-submission-list strong,
.controls .source-list strong,
.controls .agent-status strong,
.controls .client-stats strong,
.controls .billing-summary strong,
.controls .audit-summary strong,
.controls .library-summary strong {
  color: #f6fffd;
}
.controls .client-stats span,
.controls .billing-summary span,
.controls .audit-summary span,
.controls .library-summary span,
.controls .integration-list strong,
.controls .launch-checklist strong {
  color: rgba(239, 250, 248, .52);
}

.console-overview {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 18px 22px;
  align-items: start;
  margin-bottom: 14px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(42, 168, 242, .16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,248,246,.94));
  box-shadow: 0 20px 60px rgba(8, 47, 56, .1);
}
.console-overview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sky), rgba(138,73,220,.72));
}
.console-overview > * {
  position: relative;
  z-index: 1;
}
.console-overview-copy h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
}
.console-overview-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.console-overview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.console-overview-actions button {
  min-height: 42px;
}
.console-readiness-strip {
  --readiness-start: rgba(15, 138, 124, .14);
  --readiness-end: rgba(42, 168, 242, .12);
  --readiness-ring: rgba(15, 138, 124, .38);
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(138px, .26fr) auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 6% 20%, var(--readiness-start), transparent 34%),
    radial-gradient(circle at 88% 0%, var(--readiness-end), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(247,251,250,.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 16px 42px rgba(8,47,56,.08);
}
.console-readiness-strip::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  border: 1px solid var(--readiness-ring);
  opacity: .28;
}
.readiness-pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  box-shadow: 0 16px 36px rgba(15,138,124,.2);
}
.readiness-pulse::before,
.readiness-pulse::after {
  content: "";
  border-radius: 999px;
}
.readiness-pulse::before {
  width: 14px;
  height: 14px;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255,255,255,.18);
}
.readiness-pulse::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.36);
}
.readiness-main {
  min-width: 0;
}
.readiness-main span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(15,138,124,.16);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent-dark);
  background: rgba(15,138,124,.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.readiness-main strong {
  display: block;
  margin: 9px 0 5px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.2;
}
.readiness-main p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}
.readiness-meter {
  display: grid;
  gap: 8px;
  min-width: 120px;
}
.readiness-meter span {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}
.readiness-meter i {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(6, 68, 60, .1);
}
.readiness-meter b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sky), #8a49dc);
  transition: width .24s ease;
}
.console-readiness-strip > button {
  min-height: 44px;
  white-space: nowrap;
}
.console-readiness-strip.is-empty {
  --readiness-start: rgba(95, 85, 232, .11);
  --readiness-end: rgba(42, 168, 242, .1);
  --readiness-ring: rgba(95, 85, 232, .34);
}
.console-readiness-strip.is-ready {
  --readiness-start: rgba(15, 138, 124, .16);
  --readiness-end: rgba(114, 244, 215, .16);
  --readiness-ring: rgba(15, 138, 124, .46);
}
.console-readiness-strip.is-ai {
  --readiness-start: rgba(42, 168, 242, .18);
  --readiness-end: rgba(95, 85, 232, .14);
  --readiness-ring: rgba(42, 168, 242, .42);
}
.console-readiness-strip.is-delivery {
  --readiness-start: rgba(255, 193, 7, .18);
  --readiness-end: rgba(15, 138, 124, .12);
  --readiness-ring: rgba(184, 122, 0, .38);
}
.console-readiness-strip.is-done {
  --readiness-start: rgba(114, 244, 215, .18);
  --readiness-end: rgba(15, 138, 124, .16);
  --readiness-ring: rgba(15, 138, 124, .5);
}
html.theme-dark .console-readiness-strip {
  border-color: rgba(114, 244, 215, .16);
  background:
    radial-gradient(circle at 6% 20%, var(--readiness-start), transparent 34%),
    radial-gradient(circle at 88% 0%, var(--readiness-end), transparent 32%),
    linear-gradient(135deg, rgba(9, 25, 28, .96), rgba(20, 27, 42, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 54px rgba(0,0,0,.24);
}
html.theme-dark .readiness-main strong {
  color: #f6fffd;
}
html.theme-dark .readiness-main p,
html.theme-dark .readiness-meter span {
  color: rgba(239,250,248,.72);
}
html.theme-dark .readiness-main span {
  border-color: rgba(114, 244, 215, .2);
  color: #b9fff1;
  background: rgba(114, 244, 215, .08);
}
html.theme-dark .readiness-meter i {
  background: rgba(255,255,255,.1);
}
.console-primary-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(15,138,124,.08), rgba(42,168,242,.08), rgba(138,73,220,.07)),
    rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.console-primary-flow button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 76px;
  border-color: rgba(6, 68, 60, .12);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 28px rgba(8,47,56,.06);
  text-align: left;
  white-space: normal;
}
.console-primary-flow button:hover {
  border-color: rgba(15,138,124,.3);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(8,47,56,.11);
}
.console-primary-flow i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.console-primary-flow span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
}
.console-primary-flow strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.console-status-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.console-status-grid article {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  box-shadow: 0 12px 34px rgba(8,47,56,.07);
}
.console-status-grid article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(17, 124, 114, .08);
}
.console-status-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}
.console-status-grid strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 28px;
  line-height: 1;
}
.console-status-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.console-health-radar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(300px, .92fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 0% 50%, rgba(15,138,124,.13), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(95,85,232,.12), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,250,249,.9));
  box-shadow: 0 18px 52px rgba(8,47,56,.09);
}
.health-radar-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  border-radius: 999px;
  background:
    conic-gradient(from -90deg, var(--accent), var(--sky), #8a49dc, rgba(6,68,60,.12) 78%, rgba(6,68,60,.1)),
    rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.78), 0 20px 48px rgba(8,47,56,.13);
}
.health-radar-visual .ring {
  position: absolute;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.7);
}
.health-radar-visual .ring-one { inset: 18px; }
.health-radar-visual .ring-two { inset: 36px; opacity: .72; }
.health-radar-visual .ring-three { inset: 54px; opacity: .52; }
.health-radar-visual b {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  height: 54px;
  border-radius: 999px;
  background: #061d1b;
  transform: translateX(-50%) rotate(-54deg);
  transform-origin: 50% 100%;
  transition: transform .24s ease;
  box-shadow: 0 0 0 5px rgba(255,255,255,.36);
}
.health-radar-visual i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.92);
  font-style: normal;
  font-size: 23px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(8,47,56,.12);
}
.health-radar-copy span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.health-radar-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}
.health-radar-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}
.health-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.health-signal-list div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(6,68,60,.09);
  border-radius: 14px;
  padding: 11px;
  background: rgba(255,255,255,.74);
}
.health-signal-list div > span {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(6,68,60,.22);
}
.health-signal-list div.done > span {
  background: #0f8a7c;
  box-shadow: 0 0 18px rgba(15,138,124,.34);
}
.health-signal-list div.active > span {
  background: #2aa8f2;
  box-shadow: 0 0 18px rgba(42,168,242,.36);
}
.health-signal-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}
.health-signal-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
html.theme-dark .console-health-radar {
  border-color: rgba(114,244,215,.16);
  background:
    radial-gradient(circle at 0% 50%, rgba(114,244,215,.12), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.12), transparent 30%),
    linear-gradient(135deg, rgba(9,25,28,.96), rgba(20,27,42,.9));
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
html.theme-dark .health-radar-copy strong,
html.theme-dark .health-signal-list strong {
  color: #f6fffd;
}
html.theme-dark .health-radar-copy p,
html.theme-dark .health-signal-list small {
  color: rgba(239,250,248,.62);
}
html.theme-dark .health-radar-copy span {
  color: #b9fff1;
}
html.theme-dark .health-signal-list div {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
}
.console-action-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .72fr) minmax(220px, .72fr);
  gap: 12px;
}
.action-board-primary,
.action-board-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,250,.9));
  box-shadow: 0 16px 42px rgba(8,47,56,.08);
}
.action-board-primary {
  min-height: 178px;
  color: #fff;
  border-color: rgba(114,244,215,.22);
  background:
    radial-gradient(circle at 88% 0%, rgba(75,216,255,.24), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(114,244,215,.13), transparent 34%),
    linear-gradient(145deg, #08252b, #111a2b 64%, #21194a);
  box-shadow: 0 22px 56px rgba(5,18,26,.22);
}
.action-board-primary::after,
.action-board-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 136px;
  height: 136px;
  border-radius: 999px;
  border: 1px solid rgba(42,168,242,.18);
}
.console-action-board span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.action-board-primary span {
  color: #b9fff1;
}
.console-action-board strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
}
.action-board-primary strong {
  color: #fff;
  font-size: clamp(21px, 2.2vw, 30px);
}
.console-action-board p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.action-board-primary p {
  max-width: 640px;
  color: rgba(239,250,248,.68);
}
.action-board-primary button {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  min-height: 44px;
}
.action-board-card.risk {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,193,7,.13), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,238,.92));
}
.action-board-card.automation {
  background:
    radial-gradient(circle at 100% 0%, rgba(95,85,232,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,255,.92));
}
html.theme-dark .action-board-card {
  border-color: rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045));
  box-shadow: 0 18px 46px rgba(0,0,0,.2);
}
html.theme-dark .console-action-board span {
  color: #b9fff1;
}
html.theme-dark .console-action-board strong {
  color: #f6fffd;
}
html.theme-dark .console-action-board p {
  color: rgba(239,250,248,.62);
}
.console-ops-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr) minmax(260px, .85fr);
  gap: 12px;
}
.console-pipeline-card,
.console-ai-card,
.console-activity-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,250,.9));
  box-shadow: 0 16px 42px rgba(8,47,56,.08);
}
.console-ai-card {
  color: #fff;
  border-color: rgba(114, 244, 215, .22);
  background:
    radial-gradient(circle at 92% 10%, rgba(75,216,255,.2), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(114,244,215,.12), transparent 36%),
    linear-gradient(145deg, #08252b, #111a2b 62%, #21194a);
  box-shadow: 0 22px 56px rgba(5, 18, 26, .22);
}
.console-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.console-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.console-card-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.console-ai-card .console-card-head span,
.console-ai-card .console-card-head strong {
  color: rgba(255,255,255,.88);
}
.console-pipeline-meter {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(6,68,60,.09);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(15,138,124,.08), rgba(42,168,242,.08)),
    rgba(255,255,255,.68);
}
.console-pipeline-meter > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.console-pipeline-meter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.console-pipeline-meter strong {
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1;
}
.console-pipeline-meter i {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(6,68,60,.1);
}
.console-pipeline-meter b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sky), #8a49dc);
  transition: width .24s ease;
}
.console-pipeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.console-pipeline-list button {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 164px;
  border-color: rgba(6,68,60,.1);
  border-radius: 14px;
  padding: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
.console-pipeline-list button::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 28px;
  bottom: -18px;
  width: 2px;
  background: rgba(15,138,124,.12);
}
.console-pipeline-list button:last-child::before {
  display: none;
}
.console-pipeline-list button:hover {
  border-color: rgba(15,138,124,.28);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(8,47,56,.09);
}
.console-pipeline-list i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(183,121,31,.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.console-pipeline-list span {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.console-pipeline-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}
.console-pipeline-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.console-pipeline-list button.done {
  border-color: rgba(17,124,114,.24);
  background: linear-gradient(180deg, rgba(17,124,114,.08), rgba(255,255,255,.88));
}
.console-pipeline-list button.done i {
  color: #063f37;
  background: #b9fff1;
  box-shadow: 0 0 0 6px rgba(17,124,114,.08);
}
.console-pipeline-list button.active {
  border-color: rgba(42,168,242,.36);
  background: linear-gradient(180deg, #fff, rgba(42,168,242,.08));
}
.console-pipeline-list button.active i {
  color: #fff;
  background: #2563a8;
  box-shadow: 0 0 0 6px rgba(42,168,242,.12);
}
.console-ai-card p {
  min-height: 76px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.7;
}
.console-ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.console-ai-metrics div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.console-ai-metrics span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.console-ai-metrics strong {
  display: block;
  color: #f6fffd;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.console-ai-card .primary {
  width: 100%;
  border-color: transparent;
  color: #061d1b;
  background: linear-gradient(135deg, #dffff7, #72f4d7);
  box-shadow: 0 18px 38px rgba(114,244,215,.18);
}
.console-activity-list {
  display: grid;
  gap: 9px;
}
.console-activity-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(6,68,60,.09);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.72);
}
.console-activity-list i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--accent-dark);
  background: rgba(15,138,124,.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.console-activity-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
}
.console-activity-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.console-activity-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid rgba(6,68,60,.08);
  padding-top: 12px;
}
.console-activity-foot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.console-activity-foot strong {
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}
html.theme-dark .console-pipeline-card,
html.theme-dark .console-activity-card {
  border-color: rgba(114, 244, 215, .14);
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.12), transparent 34%),
    linear-gradient(180deg, rgba(14, 24, 25, .96), rgba(18, 22, 31, .9));
  box-shadow: 0 18px 54px rgba(0,0,0,.2);
}
html.theme-dark .console-pipeline-meter,
html.theme-dark .console-pipeline-list button,
html.theme-dark .console-activity-list div {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
}
html.theme-dark .console-pipeline-meter strong,
html.theme-dark .console-pipeline-list strong,
html.theme-dark .console-activity-list strong,
html.theme-dark .console-activity-foot strong {
  color: #f6fffd;
}
html.theme-dark .console-pipeline-meter span,
html.theme-dark .console-pipeline-list small,
html.theme-dark .console-activity-list span,
html.theme-dark .console-activity-foot span {
  color: rgba(239,250,248,.62);
}
html.theme-dark .console-pipeline-meter i {
  background: rgba(255,255,255,.1);
}
html.theme-dark .console-pipeline-list button:hover {
  background: rgba(255,255,255,.085);
}
.console-command-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.console-command-grid article {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 128px;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 94% 10%, rgba(51,209,181,.15), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,248,246,.9));
  box-shadow: 0 14px 34px rgba(8, 47, 56, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.console-command-grid article:hover {
  border-color: rgba(15, 138, 124, .24);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(8, 47, 56, .1);
}
.console-command-grid article::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(15, 138, 124, .12);
  border-radius: 999px;
  background: rgba(15, 138, 124, .05);
}
.task-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.console-command-grid span,
.task-card-top i {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 860;
  line-height: 1;
}
.console-command-grid span {
  color: var(--accent-dark);
  background: rgba(15, 138, 124, .09);
  text-transform: uppercase;
}
.task-card-top i {
  color: #7a4b00;
  background: rgba(183, 121, 31, .12);
  font-style: normal;
}
.console-command-grid strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.console-command-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.console-command-grid button {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 36px;
  margin-top: 2px;
  border-radius: 11px;
  padding: 8px 12px;
}
.console-command-grid article.done .task-card-top i {
  color: #063f37;
  background: #b9fff1;
}
.console-command-grid article.active {
  border-color: rgba(42, 168, 242, .34);
  background:
    radial-gradient(circle at 94% 10%, rgba(42,168,242,.18), transparent 34%),
    linear-gradient(135deg, #fff, rgba(233,246,255,.94));
}
.console-command-grid article.active .task-card-top i {
  color: #fff;
  background: #2563a8;
}
.console-flow {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.console-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .32fr) auto;
  gap: 14px;
  align-items: center;
}
.console-flow-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}
.console-flow-head strong {
  color: var(--ink);
  font-size: 17px;
}
.console-flow-head button {
  min-height: 38px;
}
.console-flow-progress {
  display: grid;
  gap: 7px;
  min-width: 150px;
}
.console-flow-progress span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}
.console-flow-progress i {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(6,68,60,.1);
}
.console-flow-progress b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sky), #8a49dc);
  transition: width .24s ease;
}
.console-flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.console-flow-steps::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, rgba(15,138,124,.35), rgba(42,168,242,.28), rgba(183,121,31,.18));
  pointer-events: none;
}
.console-flow-steps button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: start;
  gap: 7px;
  min-height: 142px;
  border-color: rgba(6, 68, 60, .12);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
.console-flow-steps button:hover {
  border-color: rgba(17,124,114,.26);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(8,47,56,.09);
}
.console-flow-steps i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(183, 121, 31, .12);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.console-flow-steps strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}
.console-flow-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.console-flow-steps button.active {
  border-color: rgba(42, 168, 242, .38);
  background: linear-gradient(180deg, #fff, rgba(42,168,242,.08));
  box-shadow: 0 18px 40px rgba(42,168,242,.12);
}
.console-flow-steps button.active i {
  color: #fff;
  background: #2563a8;
  box-shadow: 0 0 0 6px rgba(42,168,242,.12);
}
.console-flow-steps button.done {
  border-color: rgba(17, 124, 114, .24);
  background: linear-gradient(180deg, rgba(17,124,114,.08), rgba(255,255,255,.9));
}
.console-flow-steps button.done i {
  color: #063f37;
  background: #b9fff1;
  box-shadow: 0 0 0 6px rgba(17,124,114,.08);
}
html.theme-dark .console-command-grid article,
html.theme-dark .console-flow {
  border-color: rgba(114, 244, 215, .13);
  background:
    radial-gradient(circle at 94% 10%, rgba(51,209,181,.1), transparent 34%),
    linear-gradient(135deg, rgba(14, 24, 25, .95), rgba(18, 22, 31, .9));
  box-shadow: 0 18px 54px rgba(0,0,0,.2);
}
html.theme-dark .console-command-grid article.active {
  border-color: rgba(42,168,242,.3);
  background:
    radial-gradient(circle at 94% 10%, rgba(42,168,242,.18), transparent 34%),
    linear-gradient(135deg, rgba(12, 26, 36, .96), rgba(18, 22, 36, .92));
}
html.theme-dark .console-command-grid strong,
html.theme-dark .console-flow-head strong,
html.theme-dark .console-flow-steps strong {
  color: #f6fffd;
}
html.theme-dark .console-command-grid p,
html.theme-dark .console-flow-head span,
html.theme-dark .console-flow-steps span {
  color: rgba(239,250,248,.62);
}
html.theme-dark .console-command-grid span {
  color: #b9fff1;
  background: rgba(114,244,215,.08);
}
html.theme-dark .console-flow-progress span {
  color: #b9fff1;
}
html.theme-dark .console-flow-progress i {
  background: rgba(255,255,255,.1);
}
html.theme-dark .console-flow-steps button {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
}
html.theme-dark .console-flow-steps button:hover {
  background: rgba(255,255,255,.085);
}
.report-command-bar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(241,248,246,.94));
  box-shadow: 0 18px 50px rgba(8,47,56,.12);
  backdrop-filter: blur(16px);
}
.report-command-score {
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.22), transparent 36%),
    linear-gradient(145deg, #063f37, #092f3f);
  box-shadow: 0 14px 34px rgba(6,63,55,.18);
}
.report-command-score span {
  margin-bottom: 6px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.report-command-score strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}
.report-command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.report-command-metrics div {
  display: grid;
  align-content: center;
  min-height: 74px;
  border: 1px solid rgba(6,68,60,.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.76);
}
.report-command-metrics span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.report-command-metrics strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.report-command-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 8px;
  min-width: 184px;
}
.report-command-actions button {
  min-height: 38px;
  border-radius: 12px;
  padding: 9px 12px;
}
.report-preview-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 68, 60, .12);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(42,168,242,.13), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,248,246,.92));
  box-shadow: 0 18px 48px rgba(8,47,56,.1);
}
.report-preview-main {
  min-width: 0;
}
.report-preview-main > span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent-dark);
  background: rgba(15, 138, 124, .09);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.report-preview-main strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}
.report-preview-main p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.report-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.report-preview-meta div {
  display: grid;
  align-content: center;
  min-height: 74px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.72);
}
.report-preview-meta span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.report-preview-meta strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.report-preview-checks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.report-preview-checks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(183, 121, 31, .16);
  border-radius: 999px;
  padding: 7px 10px;
  color: #7a4b00;
  background: rgba(183, 121, 31, .08);
  font-size: 12px;
  font-weight: 860;
}
.report-preview-checks span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: .68;
}
.report-preview-checks span.done {
  border-color: rgba(17,124,114,.2);
  color: var(--accent-dark);
  background: rgba(17,124,114,.08);
}
html.theme-dark .report-command-bar,
html.theme-dark .report-preview-strip,
html.theme-dark .report-command-metrics div,
html.theme-dark .report-preview-meta div {
  border-color: rgba(114,244,215,.13);
  background:
    radial-gradient(circle at 90% 10%, rgba(42,168,242,.1), transparent 32%),
    linear-gradient(135deg, rgba(14, 24, 25, .94), rgba(18, 22, 31, .88));
  box-shadow: 0 18px 54px rgba(0,0,0,.2);
}
html.theme-dark .report-preview-main strong,
html.theme-dark .report-preview-meta strong,
html.theme-dark .report-command-metrics strong {
  color: #f6fffd;
}
html.theme-dark .report-preview-main p,
html.theme-dark .report-preview-meta span,
html.theme-dark .report-command-metrics span {
  color: rgba(239,250,248,.62);
}
html.theme-dark .report-preview-main > span {
  color: #b9fff1;
  background: rgba(114,244,215,.08);
}
.report-section-nav {
  position: sticky;
  top: 126px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 16px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(241,248,246,.88));
  box-shadow: 0 12px 32px rgba(8,47,56,.08);
  scrollbar-width: thin;
}
.report-section-nav button {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(255,255,255,.68);
  box-shadow: none;
  white-space: nowrap;
}
.report-section-nav button:hover {
  border-color: rgba(15,138,124,.24);
  color: var(--accent-dark);
  background: #fff;
  transform: translateY(-1px);
}
.report-section-nav button.active {
  border-color: rgba(15,138,124,.26);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 12px 24px rgba(15,138,124,.18);
}
html.theme-dark .report-section-nav {
  border-color: rgba(114,244,215,.12);
  background:
    linear-gradient(135deg, rgba(14, 24, 25, .94), rgba(18, 22, 31, .88));
  box-shadow: 0 18px 54px rgba(0,0,0,.18);
}
html.theme-dark .report-section-nav button {
  border-color: rgba(255,255,255,.08);
  color: rgba(239,250,248,.68);
  background: rgba(255,255,255,.055);
}
html.theme-dark .report-section-nav button:hover {
  color: #b9fff1;
  background: rgba(255,255,255,.085);
}
.delivery-assistant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 138, 124, .16);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,248,246,.94));
  box-shadow: 0 16px 42px rgba(8,47,56,.08);
}
.delivery-assistant span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.delivery-assistant strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}
.delivery-assistant p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.delivery-assistant-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 8px;
  min-width: 330px;
}
.delivery-assistant-actions button {
  min-height: 40px;
  border-radius: 12px;
  padding: 9px 10px;
  white-space: normal;
}

.report-shell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(6, 68, 60, .1);
  border-radius: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(42,168,242,.12), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(232,242,239,.74));
  box-shadow: 0 28px 80px rgba(8, 47, 56, 0.12);
}
.report-shell::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 42px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, rgba(6,68,60,.08), rgba(42,168,242,.08), transparent);
  pointer-events: none;
}
.report-shell > * {
  position: relative;
  z-index: 1;
}
.report {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
}
.cover {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 260px;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(51, 209, 181, 0.28), transparent 34%),
    linear-gradient(135deg, #083f36 0%, #0f766e 42%, #082f38 100%);
}
.cover .report-kicker, .cover p { color: rgba(255, 255, 255, 0.78); }
.cover h2 { max-width: 780px; margin-bottom: 12px; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: 0; text-shadow: 0 10px 34px rgba(0,0,0,.2); }
.score-card {
  display: grid;
  place-items: center;
  flex: 0 0 150px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 46px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}
.score-card span, .score-card small { color: rgba(255, 255, 255, 0.78); font-size: 12px; font-weight: 740; }
.score-card strong { font-size: 48px; line-height: 1; }
.report-section {
  padding: 32px 40px;
  border-top: 1px solid rgba(6, 68, 60, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,251,.96));
}

.summary-grid, .kpi-grid, .chart-grid, .automation-grid, .pricing-grid {
  display: grid;
  gap: 12px;
}
.summary-grid, .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.automation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-card, .kpi-card, .channel-item, .insight-box, .risk-item, .chart-card, .diagnostic-card, .automation-card, .price-card {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.96));
  box-shadow: var(--shadow-soft);
}
.summary-card, .kpi-card { min-height: 130px; padding: 16px; }
.summary-card span, .kpi-card span, .diagnostic-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}
.summary-card strong, .kpi-card strong { display: block; margin: 8px 0 4px; font-size: 25px; line-height: 1.12; }
.summary-card p, .kpi-card p, .diagnostic-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.quality-pill, .selected-channel {
  border: 1px solid rgba(17, 124, 114, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent-dark);
  background: rgba(17, 124, 114, 0.08);
  font-size: 12px;
  font-weight: 820;
}
.up { color: var(--accent); }
.down { color: var(--rose); }
.flat { color: var(--gold); }

.automation-card { min-height: 178px; padding: 16px; }
.automation-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 840;
}
.automation-card h4, .price-card h4 { margin: 14px 0 8px; font-size: 16px; }
.automation-card p, .price-card p { margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.automation-card strong { color: var(--accent-dark); font-size: 13px; }

.dashboard-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.segmented { display: inline-flex; border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 3px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 8px 18px rgba(8, 47, 56, 0.05); }
.segmented button { min-height: 34px; border: 0; border-radius: 6px; padding: 7px 12px; color: var(--muted); background: transparent; box-shadow: none; font-size: 13px; }
.segmented button.active { color: #fff; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.chart-card {
  min-width: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 249, 0.96));
  box-shadow: 0 10px 28px rgba(22, 34, 42, 0.06);
}
.wide-chart { grid-column: 1 / -1; }
.chart-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.chart-title h4 { margin-bottom: 0; font-size: 15px; }
.chart-title span { color: var(--muted); font-size: 12px; text-align: right; }
.chart-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.chart-stat-grid div {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.96);
}
.chart-stat-grid span {
  display: block;
  color: #526174;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}
.chart-stat-grid strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #071426;
  font-size: 15px;
  font-weight: 880;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-stat-grid em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #66758a;
  font-size: 11px;
  font-style: normal;
  font-weight: 740;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-stat-grid .good {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(20, 184, 166, 0.08);
}
.chart-stat-grid .warn {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(245, 158, 11, 0.1);
}
.chart-note {
  margin: 12px 0 0;
  color: #526174;
  font-size: 13px;
  line-height: 1.65;
}
canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: crosshair; display: block; image-rendering: auto; }
canvas { border-color: rgba(6, 68, 60, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72); }
canvas.is-hovering { cursor: pointer; }

.two-column { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; }
.insight-layout { grid-template-columns: 1.1fr 0.9fr; }
.channel-list, .risk-list, .diagnostic-grid { display: grid; gap: 10px; }
.diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease; }
.channel-item:hover { border-color: rgba(17, 124, 114, 0.35); background: rgba(17, 124, 114, 0.04); transform: translateY(-1px); }
.channel-item.selected, tbody tr.selected td { border-color: rgba(17, 124, 114, 0.45); background: rgba(17, 124, 114, 0.08); }
.muted-item { opacity: 0.4; }
.channel-item h4 { margin-bottom: 5px; font-size: 15px; }
.channel-item p, .channel-metric span { margin: 0; color: var(--muted); font-size: 13px; }
.channel-metric { display: grid; justify-items: end; align-content: center; gap: 2px; min-width: 118px; }
.channel-metric strong { font-size: 15px; }
.diagnostic-card { min-height: 112px; padding: 14px; }
.diagnostic-card strong { display: block; margin: 7px 0 4px; font-size: 17px; line-height: 1.22; }
.insight-box { min-height: 194px; padding: 18px; color: #2e3a40; line-height: 1.78; }
.risk-item { padding: 13px 14px; color: #3a454b; font-size: 14px; line-height: 1.55; }
.recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: rec; }
.recommendations li { position: relative; min-height: 92px; border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 16px 16px 16px 50px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.96)); box-shadow: var(--shadow-soft); line-height: 1.6; counter-increment: rec; }
.recommendations li::before { content: counter(rec); position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 12px; font-weight: 820; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; background: #fff; box-shadow: var(--shadow-soft); }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); background: var(--soft); font-size: 12px; font-weight: 820; }
tbody tr { cursor: pointer; transition: opacity 160ms ease; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(17, 124, 114, 0.04); }
td.num { color: #21303f; font-weight: 720; }
tbody tr.is-weak td { background: rgba(245, 158, 11, 0.08); }
tbody tr.is-weak:hover td { background: rgba(245, 158, 11, 0.12); }
td.is-best { color: #0f766e; font-weight: 880; }
td.is-warn { color: #b45309; font-weight: 880; }
.table-badge {
  display: inline-flex;
  align-items: center;
  max-width: 132px;
  margin-left: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
  vertical-align: middle;
}
.table-badge.good {
  border-color: rgba(15, 118, 110, 0.18);
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
}
.table-badge.warn {
  border-color: rgba(217, 119, 6, 0.22);
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.ai-workorder-section { background: #fbfcfc; }
.workorder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.workorder-card { border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 15px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.96)); box-shadow: var(--shadow-soft); }
.workorder-card span { display: block; margin-bottom: 7px; color: var(--accent-dark); font-size: 12px; font-weight: 820; }
.workorder-card p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.58; }

.automation-operating-section { background: #f6f8f8; }
.automation-plan { display: grid; grid-template-columns: 1.15fr repeat(2, minmax(0, 1fr)); gap: 12px; }
.readiness-card, .automation-step { border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.96)); box-shadow: var(--shadow-soft); }
.readiness-card span, .automation-step span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 820; text-transform: uppercase; }
.readiness-card strong { display: block; margin-bottom: 12px; color: var(--accent-dark); font-size: 34px; line-height: 1; }
.readiness-bar { overflow: hidden; height: 9px; border-radius: 999px; background: #e2e8e5; }
.readiness-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #2563a8); transition: width 260ms ease; }
.automation-step strong { color: var(--ink); font-size: 14px; line-height: 1.45; }
.automation-step.wide { grid-column: 2 / span 2; }
.automation-step ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }

.delivery-section { background: #fbfcfc; }
.delivery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.delivery-card {
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.96));
  box-shadow: var(--shadow-soft);
}
.delivery-card span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 820; text-transform: uppercase; }
.delivery-card strong { color: var(--ink); font-size: 14px; line-height: 1.45; }
.share-link-panel, .email-job-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.share-link-panel div, .share-link-panel p, .email-job-panel div, .email-job-panel p {
  margin: 0;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}
.share-link-panel strong, .email-job-panel strong { display: block; margin-bottom: 3px; font-size: 13px; }
.share-link-panel span, .share-link-panel p, .email-job-panel span, .email-job-panel p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.progress-section { background: #fff; }
.progress-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.progress-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid rgba(6, 68, 60, 0.12);
  border-radius: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8faf9);
  box-shadow: var(--shadow-soft);
}
.progress-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.progress-head span {
  border: 1px solid rgba(17, 124, 114, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--accent-dark);
  background: rgba(17, 124, 114, 0.07);
  font-size: 11px;
  font-weight: 820;
}
.progress-head strong { color: var(--accent-dark); font-size: 24px; line-height: 1; }
.progress-card h4 { margin: 0; font-size: 15px; line-height: 1.3; }
.progress-bar { overflow: hidden; height: 8px; border-radius: 999px; background: #e4eae8; }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.progress-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.completion-panel { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.completion-list { display: grid; gap: 10px; }
.completion-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  border: 1px solid rgba(17, 124, 114, 0.2);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, rgba(17, 124, 114, 0.035));
}
.completion-item i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 860;
}
.completion-item span { color: var(--accent-dark); font-size: 12px; font-weight: 840; }
.completion-item h4 { margin: 2px 0 5px; font-size: 15px; line-height: 1.35; }
.completion-item p { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.completion-item strong { color: var(--muted); font-size: 12px; font-weight: 760; }

.commercial-section { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98)); }
.price-card { padding: 18px; }
.price-card strong { display: block; margin-bottom: 10px; color: var(--accent-dark); font-size: 22px; }
.price-card.featured { border-color: rgba(17, 124, 114, 0.36); box-shadow: 0 18px 42px rgba(17, 124, 114, 0.16); }
.lead-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; border: 1px solid rgba(6, 68, 60, 0.12); border-radius: 10px; padding: 16px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-soft); }
.lead-form h4 { margin-bottom: 4px; }
.lead-form p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.chart-tooltip { position: fixed; z-index: 40; display: none; max-width: 260px; border: 1px solid rgba(23, 32, 38, 0.12); border-radius: 8px; padding: 10px 12px; color: #fff; background: rgba(23, 32, 38, 0.94); box-shadow: 0 14px 32px rgba(23, 32, 38, 0.22); pointer-events: none; }
.chart-tooltip.visible { display: grid; gap: 5px; }
.chart-tooltip strong { font-size: 13px; }
.chart-tooltip span { color: rgba(255, 255, 255, 0.78); font-size: 12px; }

.account-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 55;
  width: min(276px, calc(100vw - 32px));
  color: #eef8f5;
}
.account-dock-toggle {
  justify-content: flex-start;
  gap: 9px;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 9px 12px;
  color: #eef8f5;
  background: rgba(7, 28, 27, 0.9);
  box-shadow: 0 18px 40px rgba(7, 28, 27, 0.26);
  backdrop-filter: blur(14px);
}
.account-dock-toggle span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #c9fff5;
}
.account-dock-toggle strong { font-size: 13px; }
.account-dock-menu {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(23, 27, 27, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}
.account-dock-menu[hidden] { display: none !important; }
.account-dock-header {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 8px 9px;
}
.account-dock-header > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #073d36;
  background: #e9fffa;
  font-size: 12px;
  font-weight: 900;
}
.account-dock-header strong, .account-dock-menu button strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}
.account-dock-header small, .account-dock-menu button small, .dock-usage-grid span {
  color: rgba(238, 248, 245, 0.58);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.account-dock-menu button {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  justify-content: stretch;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  color: #eef8f5;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.account-dock-menu button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.account-dock-menu button span {
  color: rgba(238, 248, 245, 0.68);
  text-align: center;
}
.dock-divider {
  height: 1px;
  margin: 5px 0;
  background: rgba(255, 255, 255, 0.1);
}
.dock-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 8px 8px 40px;
}
.dock-usage-grid div {
  display: grid;
  gap: 3px;
}
.dock-usage-grid strong {
  color: #fff;
  font-size: 13px;
}
.dock-theme-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
}
.dock-theme-row > span {
  color: rgba(238, 248, 245, 0.72);
  font-size: 12px;
  font-weight: 780;
}
.account-dock-menu .dock-theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}
.account-dock-menu .dock-theme-toggle button {
  display: inline-flex;
  width: auto;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  color: rgba(238, 248, 245, 0.72);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}
.account-dock-menu .dock-theme-toggle button.active {
  color: #17201f;
  background: #fff;
}

.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 18, 0.58);
  backdrop-filter: blur(12px);
}
.upgrade-modal[hidden] { display: none !important; }
.upgrade-dialog {
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(51, 209, 181, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(35, 39, 38, 0.98), rgba(24, 27, 27, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}
.upgrade-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
}
.upgrade-head h2 { color: #fff; font-size: 20px; }
.upgrade-close {
  width: 36px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}
.upgrade-tabs {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 14px;
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.upgrade-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 15px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  box-shadow: none;
}
.upgrade-tabs button.active {
  color: #17201f;
  background: #fff;
}
.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.upgrade-plan {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.035);
}
.upgrade-plan.featured {
  border-color: rgba(51, 209, 181, 0.44);
  box-shadow: 0 18px 44px rgba(15, 138, 124, 0.16);
}
.upgrade-plan h3 {
  color: #fff;
  font-size: 15px;
}
.upgrade-price {
  display: flex;
  gap: 8px;
  align-items: end;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}
.upgrade-price small {
  padding-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}
.upgrade-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.upgrade-feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
}
.upgrade-feature-list span { color: #33d1b5; }
.upgrade-plan button {
  margin-top: 6px;
  border-radius: 999px;
  background: #fff;
  color: #17201f;
}
.upgrade-plan button.current {
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
}
.upgrade-status {
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.upgrade-status a { color: #9ff8ea; }

/* Paywall modal polish for quota blocks. */
.upgrade-modal {
  background:
    radial-gradient(circle at 50% 0%, rgba(114,244,215,.14), transparent 30%),
    rgba(2, 8, 18, .72);
}

.upgrade-dialog {
  border-color: rgba(114,244,215,.18);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 10% 0%, rgba(114,244,215,.18), transparent 30%),
    radial-gradient(circle at 100% 18%, rgba(75,216,255,.12), transparent 34%),
    linear-gradient(145deg, rgba(21, 32, 48, .98), rgba(8, 13, 28, .98));
  box-shadow: 0 42px 120px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255,255,255,.08);
}

.upgrade-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.upgrade-head .eyebrow {
  color: #b9fff1;
}

.upgrade-close:hover {
  background: rgba(255,255,255,.1);
}

.upgrade-tabs {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
}

.upgrade-tabs button.active {
  color: #061946;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
}

.upgrade-plan {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.upgrade-plan::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(75,216,255,.12);
  border-radius: 999px;
}

.upgrade-plan.featured {
  border-color: rgba(114,244,215,.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.16), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: 0 24px 70px rgba(15, 138, 124, .2), inset 0 1px 0 rgba(255,255,255,.12);
}

.upgrade-plan h3 {
  font-size: 18px;
}

.upgrade-price {
  font-size: clamp(34px, 3.4vw, 48px);
}

.upgrade-feature-list span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #061946;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  font-size: 0;
}

.upgrade-feature-list span::before {
  content: "✓";
  font-size: 12px;
  font-weight: 950;
}

.upgrade-plan button {
  position: relative;
  z-index: 2;
  min-height: 46px;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  color: #061946;
}

.upgrade-plan.featured button {
  background: linear-gradient(135deg, #315bff, #8a49dc);
  color: #fff;
}

.upgrade-status {
  display: grid;
  gap: 6px;
  border-color: rgba(114,244,215,.2);
  border-radius: 18px;
  padding: 16px 18px;
  color: rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 0% 0%, rgba(114,244,215,.12), transparent 28%),
    rgba(255,255,255,.06);
}

.upgrade-status strong {
  color: #fff;
  line-height: 1.5;
}

.upgrade-status span {
  color: rgba(255,255,255,.7);
}

html.public-landing .feature-section,
html.public-landing .pricing-section {
  background:
    linear-gradient(180deg, rgba(246,246,255,.96), rgba(255,255,255,.98));
}
html.public-landing .feature-grid article,
html.public-landing .landing-pricing-grid article {
  position: relative;
  border-color: rgba(49, 91, 255, .14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,255,.94));
  box-shadow: 0 24px 76px rgba(24, 25, 60, .08);
}
html.public-landing .feature-grid article::before,
html.public-landing .landing-pricing-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #315bff, #8a49dc, #2aa8f2);
  opacity: .76;
}
html.public-landing .feature-grid article:nth-last-child(-n+2) {
  display: grid;
  align-content: start;
  min-height: 250px;
}
html.public-landing .feature-grid article:nth-last-child(-n+2)::after {
  content: "";
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), transparent),
    linear-gradient(135deg, #315bff, #8a49dc);
  box-shadow: 0 18px 34px rgba(49,91,255,.22);
  order: -1;
}
html.public-landing .feature-media {
  border-bottom: 1px solid rgba(49,91,255,.12);
}
html.public-landing .deliverable-side-list article,
html.public-landing .deliverable-report-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html.public-landing .deliverable-side-list article:hover,
html.public-landing .deliverable-report-card:hover {
  border-color: rgba(49,91,255,.26);
  box-shadow: 0 32px 92px rgba(24,25,60,.13);
  transform: translateY(-3px);
}
html.public-landing .pricing-section {
  overflow: hidden;
}
html.public-landing .landing-pricing-grid article {
  display: grid;
  align-content: start;
  min-height: 310px;
  padding: 32px;
}
html.public-landing .landing-pricing-grid article:nth-child(2) {
  border-color: rgba(49,91,255,.32);
  background:
    linear-gradient(180deg, #fff, #f7f7ff);
  box-shadow: 0 34px 96px rgba(49,91,255,.15);
  transform: translateY(-10px);
}
html.public-landing .landing-pricing-grid article:nth-child(2)::after {
  content: "Popular";
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(135deg, #315bff, #8a49dc);
  font-size: 11px;
  font-weight: 900;
}
html.public-landing .landing-pricing-grid strong {
  font-size: 18px;
}
html.public-landing .landing-pricing-grid p {
  color: #24416f;
  line-height: 1.75;
}
.workspace .controls {
  position: sticky;
}
.workspace .controls::before {
  content: "";
  display: block;
  height: 4px;
  margin: -18px -18px 16px;
  background: linear-gradient(90deg, #72f4d7, #2aa8f2, rgba(138,73,220,.74));
}
.workspace .case-card {
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(75,216,255,.24), transparent 26%),
    linear-gradient(135deg, rgba(12, 86, 76, .98), rgba(10, 28, 42, .98));
}
.workspace .case-card strong {
  font-size: 18px;
}
.workspace .workspace-nav {
  gap: 8px;
  padding: 10px;
}
.workspace .workspace-nav button {
  min-height: 44px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.workspace .workspace-nav button:hover {
  transform: translateX(2px);
}
.workspace .workspace-focus-card {
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(114,244,215,.2), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.05));
}
.workspace .control-section,
.workspace .autopilot-panel,
.workspace .source-box,
.workspace .intake-box,
.workspace .agent-box {
  border-radius: 16px;
}
.workspace .control-section .section-title,
.workspace .autopilot-panel .section-title {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 10px;
}
.workspace .controls .primary,
.workspace .controls .ghost,
.workspace .controls .soft-action {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.workspace .controls .primary:hover,
.workspace .controls .ghost:hover,
.workspace .controls .soft-action:hover {
  transform: translateY(-1px);
}
.workspace .client-hub,
.workspace .billing-hub,
.workspace .audit-hub,
.workspace .trust-hub,
.workspace .report-library,
.workspace .access-hub,
.workspace .health-hub,
.workspace .launch-card,
.workspace .onboarding-card,
.workspace .control-section,
.workspace .autopilot-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(114,244,215,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.12);
}
.workspace .client-hub::before,
.workspace .billing-hub::before,
.workspace .audit-hub::before,
.workspace .trust-hub::before,
.workspace .report-library::before,
.workspace .access-hub::before,
.workspace .health-hub::before,
.workspace .launch-card::before,
.workspace .onboarding-card::before,
.workspace .control-section::before,
.workspace .autopilot-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(114,244,215,.8), rgba(75,216,255,.7), rgba(138,73,220,.54));
  opacity: .72;
}
.workspace .client-hub > *,
.workspace .billing-hub > *,
.workspace .audit-hub > *,
.workspace .trust-hub > *,
.workspace .report-library > *,
.workspace .access-hub > *,
.workspace .health-hub > *,
.workspace .launch-card > *,
.workspace .onboarding-card > *,
.workspace .control-section > *,
.workspace .autopilot-panel > * {
  position: relative;
  z-index: 1;
}
.workspace .section-title h2,
.workspace .section-title h3,
.workspace .section-title.compact h2 {
  color: #f6fffd;
}
.workspace .section-title p,
.workspace .hint,
.workspace .steps-list p {
  color: rgba(239,250,248,.62);
}
.workspace label span,
.workspace .field-grid label span {
  color: rgba(239,250,248,.74);
  font-size: 12px;
  font-weight: 850;
}
.workspace input,
.workspace select,
.workspace textarea {
  border-color: rgba(255,255,255,.12);
  color: #f6fffd;
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.workspace input::placeholder,
.workspace textarea::placeholder {
  color: rgba(239,250,248,.38);
}
.workspace input:focus,
.workspace select:focus,
.workspace textarea:focus {
  border-color: rgba(114,244,215,.48);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 4px rgba(114,244,215,.1), inset 0 1px 0 rgba(255,255,255,.08);
  outline: 0;
}
.workspace .status-panel,
.workspace .source-status,
.workspace .intake-status,
.workspace .agent-status,
.workspace .trust-status,
.workspace .access-status {
  border-radius: 14px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  color: rgba(239,250,248,.72);
}
.workspace .status-panel.ok,
.workspace .source-status.ok,
.workspace .intake-status.ok,
.workspace .agent-status.ok,
.workspace .trust-status.ok,
.workspace .access-status.ok {
  border-color: rgba(114,244,215,.24);
  background: rgba(114,244,215,.08);
}
.workspace .status-panel.error,
.workspace .source-status.error,
.workspace .intake-status.error,
.workspace .agent-status.error,
.workspace .trust-status.error,
.workspace .access-status.error {
  border-color: rgba(255,123,123,.26);
  background: rgba(255,123,123,.08);
}
.workspace .client-stats div,
.workspace .billing-summary div,
.workspace .audit-summary div,
.workspace .library-summary div,
.workspace .health-score-card,
.workspace .launch-meter,
.workspace .source-box,
.workspace .intake-box,
.workspace .agent-box {
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.08), transparent 32%),
    rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.workspace .client-stats strong,
.workspace .billing-summary strong,
.workspace .audit-summary strong,
.workspace .library-summary strong,
.workspace .health-score-card strong,
.workspace .launch-meter strong {
  color: #b9fff1;
}
.workspace .portal-invite-list > *,
.workspace .client-list > *,
.workspace .report-list > *,
.workspace .invoice-list > *,
.workspace .member-list > *,
.workspace .audit-list > *,
.workspace .source-list > *,
.workspace .portal-submission-list > * {
  border-radius: 14px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.workspace .portal-invite-list > *:hover,
.workspace .client-list > *:hover,
.workspace .report-list > *:hover,
.workspace .invoice-list > *:hover,
.workspace .member-list > *:hover,
.workspace .audit-list > *:hover,
.workspace .source-list > *:hover,
.workspace .portal-submission-list > *:hover {
  border-color: rgba(114,244,215,.22);
  background: rgba(255,255,255,.075);
  transform: translateY(-1px);
}
.workspace .client-hub:hover,
.workspace .billing-hub:hover,
.workspace .audit-hub:hover,
.workspace .trust-hub:hover,
.workspace .report-library:hover,
.workspace .access-hub:hover,
.workspace .health-hub:hover,
.workspace .launch-card:hover,
.workspace .onboarding-card:hover,
.workspace .control-section:hover,
.workspace .autopilot-panel:hover {
  border-color: rgba(114,244,215,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 54px rgba(0,0,0,.16);
}
.workspace .quick-actions,
.workspace .prompt-presets,
.workspace .actions-row,
.workspace .helper-actions,
.workspace .data-import-actions,
.workspace .ai-draft-actions,
.workspace .portal-submission-actions {
  gap: 10px;
}
.workspace .file-button,
.workspace .soft-action,
.workspace .ghost {
  border-color: rgba(255,255,255,.12);
  color: rgba(239,250,248,.86);
  background: rgba(255,255,255,.055);
}
.workspace .file-button:hover,
.workspace .soft-action:hover,
.workspace .ghost:hover {
  border-color: rgba(114,244,215,.24);
  background: rgba(255,255,255,.085);
}
.workspace .primary {
  background: linear-gradient(135deg, #0f8a7c, #2aa8f2);
  box-shadow: 0 16px 34px rgba(15,138,124,.2);
}
.workspace .primary:hover {
  box-shadow: 0 22px 44px rgba(42,168,242,.24);
}
html.theme-light .workspace .client-hub:hover,
html.theme-light .workspace .billing-hub:hover,
html.theme-light .workspace .audit-hub:hover,
html.theme-light .workspace .trust-hub:hover,
html.theme-light .workspace .report-library:hover,
html.theme-light .workspace .access-hub:hover,
html.theme-light .workspace .health-hub:hover,
html.theme-light .workspace .launch-card:hover,
html.theme-light .workspace .onboarding-card:hover,
html.theme-light .workspace .control-section:hover,
html.theme-light .workspace .autopilot-panel:hover {
  border-color: rgba(15,138,124,.2);
  box-shadow: 0 22px 56px rgba(8,47,56,.1);
}
html.theme-light .workspace .client-hub,
html.theme-light .workspace .billing-hub,
html.theme-light .workspace .audit-hub,
html.theme-light .workspace .trust-hub,
html.theme-light .workspace .report-library,
html.theme-light .workspace .access-hub,
html.theme-light .workspace .health-hub,
html.theme-light .workspace .launch-card,
html.theme-light .workspace .onboarding-card,
html.theme-light .workspace .control-section,
html.theme-light .workspace .autopilot-panel {
  border-color: rgba(6,68,60,.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,248,.94));
  box-shadow: 0 18px 46px rgba(8,47,56,.08);
}
html.theme-light .workspace .section-title h2,
html.theme-light .workspace .section-title h3,
html.theme-light .workspace .section-title.compact h2 {
  color: var(--ink);
}
html.theme-light .workspace .section-title p,
html.theme-light .workspace .hint,
html.theme-light .workspace .steps-list p {
  color: var(--muted);
}
html.theme-light .workspace label span,
html.theme-light .workspace .field-grid label span {
  color: var(--ink-2);
}
html.theme-light .workspace input,
html.theme-light .workspace select,
html.theme-light .workspace textarea {
  border-color: rgba(6,68,60,.16);
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
html.theme-light .workspace input::placeholder,
html.theme-light .workspace textarea::placeholder {
  color: rgba(46,72,67,.46);
}
html.theme-light .workspace input:focus,
html.theme-light .workspace select:focus,
html.theme-light .workspace textarea:focus {
  border-color: rgba(15,138,124,.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,138,124,.1);
}
html.theme-light .workspace .status-panel,
html.theme-light .workspace .source-status,
html.theme-light .workspace .intake-status,
html.theme-light .workspace .agent-status,
html.theme-light .workspace .trust-status,
html.theme-light .workspace .access-status,
html.theme-light .workspace .client-stats div,
html.theme-light .workspace .billing-summary div,
html.theme-light .workspace .audit-summary div,
html.theme-light .workspace .library-summary div,
html.theme-light .workspace .health-score-card,
html.theme-light .workspace .launch-meter,
html.theme-light .workspace .source-box,
html.theme-light .workspace .intake-box,
html.theme-light .workspace .agent-box {
  border-color: rgba(6,68,60,.12);
  color: var(--ink-2);
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
html.theme-light .workspace .client-stats strong,
html.theme-light .workspace .billing-summary strong,
html.theme-light .workspace .audit-summary strong,
html.theme-light .workspace .library-summary strong,
html.theme-light .workspace .health-score-card strong,
html.theme-light .workspace .launch-meter strong {
  color: var(--accent-dark);
}
html.theme-light .workspace .file-button,
html.theme-light .workspace .soft-action,
html.theme-light .workspace .ghost {
  border-color: rgba(6,68,60,.14);
  color: var(--ink);
  background: rgba(255,255,255,.86);
}
html.theme-light .workspace .file-button:hover,
html.theme-light .workspace .soft-action:hover,
html.theme-light .workspace .ghost:hover {
  border-color: rgba(15,138,124,.28);
  background: #fff;
}

@media (max-width: 1120px) {
  html.public-landing .topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 18px;
  }
  html.public-landing .top-actions {
    justify-self: end;
  }
  html.public-landing .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  html.public-landing .landing-pricing-grid article:nth-child(2) {
    transform: none;
  }
  .workspace, .portal-shell { grid-template-columns: 1fr; }
  .workspace-context-bar {
    grid-template-columns: 1fr;
  }
  .workspace-view-masthead {
    grid-template-columns: 1fr;
  }
  .workspace-context-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  .home-layout { grid-template-columns: 1fr; }
  .home-flow-grid, .home-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-grid, .metric-grid, .landing-pricing-grid { grid-template-columns: 1fr; }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
  .production-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }
  .production-stage article.featured {
    transform: none;
  }
  .production-rail {
    display: none;
  }
  .production-preview {
    grid-template-columns: 1fr;
  }
  .report-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
  .report-gallery .gallery-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .sample-report-stage {
    grid-template-columns: 1fr;
    max-width: 860px;
  }
  .sample-report-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rollout-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .rollout-grid article {
    min-height: auto;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid article, .feature-grid article:nth-last-child(-n+2) { grid-column: span 1; }
  .deliverable-showcase { grid-template-columns: 1fr; }
  .command-preview { grid-template-columns: 1fr; min-height: 420px; }
  .command-sidebar { display: none; }
  html.public-landing .landing-hero-visual { display: none; }
  html.public-landing .landing-nav-links { display: none; }
  html.public-landing .landing-system-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -34px;
  }
  html.public-landing .landing-proof-rail {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-top: -42px;
    margin-bottom: 54px;
  }
  html.public-landing .landing-proof-rail div + div {
    border-top: 1px solid rgba(255,255,255,.08);
    border-left: 0;
  }
  html.public-landing .landing-product-map {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-bottom: 56px;
  }
  html.public-landing .product-map-canvas {
    min-height: 470px;
  }
  html.public-landing .product-map-node.input { left: 28px; top: 28px; }
  html.public-landing .product-map-node.ai { right: 28px; left: auto; top: 116px; transform: none; }
  html.public-landing .product-map-node.report { left: 28px; right: auto; bottom: 116px; transform: none; }
  html.public-landing .product-map-node.delivery { right: 28px; top: auto; bottom: 28px; }
  html.public-landing .product-map-flow {
    left: 50%;
    right: auto;
    top: 58px;
    bottom: 58px;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
  }
  html.public-landing .landing-system-strip::before {
    display: none;
  }
  .home-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upgrade-plans { grid-template-columns: 1fr; }
  .controls { position: static; max-height: none; }
  .workspace-nav { grid-template-columns: repeat(7, minmax(88px, 1fr)); overflow-x: auto; }
  .console-overview { grid-template-columns: 1fr; }
  .console-overview-actions { justify-content: flex-start; }
  .console-readiness-strip {
    grid-template-columns: 52px minmax(0, 1fr) minmax(120px, .3fr);
  }
  .console-readiness-strip > button {
    grid-column: 2 / -1;
    justify-self: start;
  }
  .console-primary-flow { grid-template-columns: 1fr; }
  .console-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-ops-board { grid-template-columns: 1fr; }
  .console-health-radar {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .console-action-board {
    grid-template-columns: 1fr;
  }
  .health-signal-list {
    grid-column: 1 / -1;
  }
  .console-pipeline-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .console-command-grid { grid-template-columns: 1fr; }
  .console-command-grid button {
    width: fit-content;
  }
  .console-flow-head {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .38fr);
  }
  .console-flow-head button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .console-flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-command-bar {
    position: relative;
    top: auto;
    grid-template-columns: 130px minmax(0, 1fr);
  }
  .report-section-nav {
    position: relative;
    top: auto;
  }
  .report-preview-strip {
    grid-template-columns: 1fr;
  }
  .report-command-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html.public-landing .topbar {
    display: flex;
    gap: 14px;
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  html.public-landing .top-actions {
    justify-content: flex-start;
    width: 100%;
  }
  html.public-landing .landing-cta {
    width: auto;
  }
  .topbar, .cover, .dashboard-toolbar, .home-hero { align-items: stretch; flex-direction: column; }
  .topbar, .workspace, .home-page, .product-switcher { padding-left: 18px; padding-right: 18px; }
  .workspace, .home-page, .product-switcher { width: 100%; max-width: 100%; }
  .panel, .report-shell, .report { min-width: 0; max-width: 100%; }
  .workspace-context-bar {
    padding: 16px;
  }
  .workspace-context-meta {
    grid-template-columns: 1fr;
  }
  .workspace-view-masthead {
    padding: 16px;
  }
  .view-masthead-status {
    grid-template-columns: 1fr;
  }
  .workspace-context-actions {
    grid-template-columns: 1fr;
  }
  .workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }
  .field-grid, .summary-grid, .kpi-grid, .chart-grid, .automation-grid, .pricing-grid, .two-column, .diagnostic-grid, .recommendations, .lead-form, .workorder-grid, .automation-plan, .progress-grid, .delivery-grid, .portal-submission-actions { grid-template-columns: 1fr; }
  .home-case-summary, .home-shortcuts { grid-template-columns: 1fr; }
  .portal-submission-actions button { flex-basis: 100%; width: 100%; }
  .automation-step.wide { grid-column: auto; }
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .wide-chart { grid-column: auto; }
  .chart-title { align-items: flex-start; flex-direction: column; }
  .chart-title span { text-align: left; }
  .cover h2 { font-size: 30px; }
  .home-hero { min-height: auto; padding: 28px; }
  .home-hero h2 { font-size: 34px; }
  .home-hero-actions { justify-content: stretch; }
  .channel-item { flex-direction: column; }
  .channel-metric { justify-items: start; }
}
@media (max-width: 520px) {
  .brand-block { align-items: flex-start; }
  .brand-mark { width: 40px; height: 40px; }
  h1 { font-size: 23px; }
  .top-actions, .actions-row { align-items: stretch; flex-direction: column; }
  button, .file-button { width: 100%; }
  .product-switcher, .home-kpi-grid { grid-template-columns: 1fr; }
  .home-flow-grid, .home-module-grid { grid-template-columns: 1fr; }
  html.public-landing .landing-info-bar { display: none; }
  html.public-landing .topbar { min-height: 76px; }
  html.public-landing .brand-block {
    flex-direction: row;
    align-items: center;
    min-width: auto;
    width: 100%;
    padding: 0;
    box-shadow: none;
    transform: none;
  }
  html.public-landing .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  html.public-landing .brand-block h1 {
    display: none;
  }
  html.public-landing .topbar .eyebrow {
    margin: 0;
  }
  html.public-landing .top-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
  }
  html.public-landing .top-actions .landing-cta {
    min-height: 42px;
    width: 100%;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }
  html.public-landing .home-hero {
    min-height: auto;
    padding: 58px 22px 68px;
  }
  html.public-landing .home-hero h2 {
    max-width: 100%;
    font-size: clamp(28px, 8.8vw, 42px);
    line-height: 1.16;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  html.public-landing .home-hero h2 .title-word {
    display: block;
    max-width: 100%;
  }
  html.public-landing .home-hero h2 .title-word-b::after {
    content: none;
  }
  html.public-landing .home-hero p:not(.eyebrow) {
    font-size: 15px;
  }
  html.public-landing .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  html.public-landing .home-hero-actions button {
    width: 100%;
  }
  html.public-landing .landing-system-strip {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding-bottom: 24px;
  }
  html.public-landing .landing-proof-rail {
    margin: -28px 18px 42px;
    border-radius: 18px;
  }
  html.public-landing .landing-proof-rail div {
    min-height: auto;
    padding: 20px;
  }
  html.public-landing .landing-product-map {
    margin: 0 0 42px;
    padding-left: 18px;
    padding-right: 18px;
  }
  html.public-landing .product-map-copy h2 {
    font-size: 30px;
  }
  html.public-landing .product-map-canvas {
    min-height: 560px;
    border-radius: 22px;
  }
  html.public-landing .product-map-node {
    left: 22px !important;
    right: 22px !important;
    width: auto;
    transform: none !important;
  }
  html.public-landing .product-map-node.input { top: 24px; }
  html.public-landing .product-map-node.ai { top: 154px; }
  html.public-landing .product-map-node.report { top: 284px; bottom: auto; }
  html.public-landing .product-map-node.delivery { top: 414px; bottom: auto; }
  html.public-landing .product-map-flow {
    left: 50%;
    top: 48px;
    bottom: 48px;
  }
  html.public-landing .landing-system-strip article {
    min-height: auto;
    padding: 20px;
  }
  html.public-landing .landing-system-strip span {
    margin-bottom: 18px;
  }
  .landing-section { padding: 66px 22px; }
  .quick-command-grid {
    grid-template-columns: 1fr;
  }
  .landing-section h2 {
    font-size: 31px;
  }
  .landing-copy {
    margin-bottom: 30px;
    font-size: 15px;
  }
  .problem-grid article,
  .process-grid article,
  .production-stage article,
  .landing-pricing-grid article {
    min-height: auto;
    padding: 24px;
  }
  .process-grid {
    gap: 14px;
    margin-top: 34px;
  }
  .process-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
  }
  .process-grid span {
    grid-row: span 2;
    justify-self: start;
    align-self: start;
    font-size: 40px;
    line-height: .95;
  }
  .process-grid strong {
    align-self: auto;
    margin: 0;
    font-size: 19px;
  }
  .process-grid p {
    margin: 0;
  }
  .metric-grid {
    gap: 14px;
    margin-top: 34px;
  }
  .metric-grid article {
    min-height: auto;
    padding: 22px;
  }
  .metric-grid span {
    font-size: 44px;
  }
  .feature-media {
    height: 160px;
  }
  .deliverable-showcase {
    margin-top: 34px;
  }
  .deliverable-report-card {
    min-height: auto;
    padding: 20px;
  }
  .deliverable-kpis {
    grid-template-columns: 1fr;
  }
  .deliverable-chart {
    height: 150px;
  }
  .deliverable-side-list article {
    min-height: auto;
  }
  .command-preview {
    min-height: 360px;
    padding: 16px;
  }
  .console-overview {
    padding: 18px;
  }
  .console-overview-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .console-overview-actions button {
    width: 100%;
  }
  .console-readiness-strip {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .readiness-pulse {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .readiness-meter {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .readiness-meter span {
    min-width: 46px;
    font-size: 18px;
    text-align: left;
  }
  .console-readiness-strip > button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .console-status-grid {
    grid-template-columns: 1fr;
  }
  .console-ops-board {
    grid-template-columns: 1fr;
  }
  .console-health-radar {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .console-action-board {
    grid-template-columns: 1fr;
  }
  .action-board-primary,
  .action-board-card {
    min-height: auto;
    padding: 16px;
  }
  .health-radar-visual {
    justify-self: center;
    width: 132px;
    height: 132px;
  }
  .health-signal-list {
    grid-template-columns: 1fr;
  }
  .console-pipeline-list {
    grid-template-columns: 1fr;
  }
  .console-ai-metrics {
    grid-template-columns: 1fr;
  }
  .console-activity-foot {
    display: grid;
  }
  .console-activity-foot strong {
    text-align: left;
  }
  .console-pipeline-list button {
    min-height: auto;
    grid-template-columns: 38px 1fr;
    gap: 4px 10px;
  }
  .console-pipeline-list button::before {
    left: 30px;
    top: 42px;
    bottom: -12px;
  }
  .console-pipeline-list i {
    grid-row: span 2;
  }
  .console-primary-flow {
    grid-template-columns: 1fr;
  }
  .console-primary-flow button {
    width: 100%;
  }
  .console-command-grid {
    grid-template-columns: 1fr;
  }
  .console-flow-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .console-flow-progress {
    min-width: 0;
  }
  .console-flow-progress span {
    text-align: left;
  }
  .console-flow-head button {
    width: 100%;
  }
  .console-command-grid button {
    width: 100%;
  }
  .console-flow-steps {
    grid-template-columns: 1fr;
  }
  .console-flow-steps::before {
    display: none;
  }
  .console-flow-steps button {
    min-height: auto;
    grid-template-columns: 38px 1fr;
    gap: 4px 10px;
  }
  .console-flow-steps i {
    grid-row: span 2;
  }
  .report-command-bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .report-section-nav {
    margin-left: -2px;
    margin-right: -2px;
  }
  .report-preview-strip {
    padding: 14px;
  }
  .report-preview-meta,
  .report-preview-checks {
    grid-template-columns: 1fr;
  }
  .report-command-metrics {
    grid-template-columns: 1fr;
  }
  .report-command-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  .delivery-assistant {
    grid-template-columns: 1fr;
  }
  .delivery-assistant-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  .data-import-actions {
    grid-template-columns: 1fr;
  }
  .ai-draft-actions {
    grid-template-columns: 1fr;
  }
  .process-grid, .feature-grid, .landing-pricing-grid, .metric-grid, .problem-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .production-stage {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }
  .production-stage i {
    margin-bottom: 20px;
  }
  .production-preview {
    grid-template-columns: 1fr;
  }
  .report-gallery {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .report-gallery article,
  .report-gallery .gallery-main {
    min-height: auto;
  }
  .gallery-report-window {
    min-height: 340px;
  }
  .gallery-report-head {
    display: grid;
  }
  .gallery-kpi-row {
    grid-template-columns: 1fr;
  }
  .sample-report-stage {
    margin-top: 34px;
  }
  .sample-report-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sample-report-layout aside {
    display: none;
  }
  .sample-report-layout main {
    padding: 18px;
  }
  .sample-browser-bar strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sample-report-kpis,
  .sample-report-insights,
  .sample-report-notes {
    grid-template-columns: 1fr;
  }
  .sample-report-chart {
    min-height: 150px;
  }
  .rollout-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .rollout-grid article {
    min-height: auto;
    padding: 24px;
  }
  .rollout-grid span {
    margin-bottom: 26px;
  }
  .contact-section { display: grid; text-align: center; }
  .contact-section h2::after, .contact-section .landing-copy { margin-left: auto; }
  .product-switcher { display: grid; }
  .report-section, .cover, .controls { padding: 20px; }
  .account-dock { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .account-dock-toggle { width: auto; }
}
@media print {
  @page { size: A4; margin: 11mm; }
  html, body { background: #fff; }
  .topbar, .controls, .commercial-section, .account-dock { display: none; }
  .workspace { display: block; padding: 0; }
  .report { border: 0; border-radius: 0; box-shadow: none; }
  .cover { min-height: 180px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-section { padding: 20px 0; break-inside: avoid; }
  .summary-grid, .kpi-grid, .chart-grid, .automation-grid, .recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-card, .automation-card, .table-wrap { break-inside: avoid; }
}

/* Final landing layout pass: keep the marketing page roomy and readable. */
html.public-landing .home-hero {
  grid-template-columns: minmax(520px, 0.98fr) minmax(420px, 0.82fr);
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: min(760px, calc(100vh - 122px));
  padding-inline: max(52px, calc((100vw - 1280px) / 2));
  padding-block: clamp(78px, 9vw, 126px) clamp(92px, 10vw, 136px);
}

html.public-landing .home-hero > div:first-child {
  width: min(760px, 100%);
  min-width: 0;
}

html.public-landing .home-hero h2 {
  width: 100%;
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(46px, 5.2vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

html.public-landing .home-hero p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 28px;
}

html.public-landing .landing-hero-visual {
  width: min(560px, 100%);
  min-width: 420px;
  height: 410px;
}

html.public-landing .landing-system-strip {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin-top: -52px;
  padding-inline: max(30px, calc((100vw - 1160px) / 2));
}

html.public-landing .landing-system-strip article {
  min-width: 0;
  min-height: 252px;
  padding: 26px;
}

html.public-landing .landing-system-strip strong,
html.public-landing .process-grid strong,
html.public-landing .production-stage strong {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html.public-landing .landing-system-strip p,
html.public-landing .process-grid p,
html.public-landing .production-stage p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  html.public-landing .home-hero {
    grid-template-columns: 1fr;
    padding-inline: 34px;
  }

  html.public-landing .home-hero h2 {
    max-width: 820px;
  }

  html.public-landing .landing-hero-visual {
    justify-self: start;
    min-width: 0;
    width: min(560px, 100%);
  }

  html.public-landing .landing-system-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -38px;
  }
}

@media (max-width: 640px) {
  html.public-landing .home-hero {
    padding: 58px 22px 70px;
  }

  html.public-landing .home-hero h2 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.12;
    text-wrap: balance;
  }

  html.public-landing .landing-system-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: -26px;
    padding-inline: 18px;
  }

  html.public-landing .landing-system-strip article {
    min-height: auto;
  }
}

/* Three-step primary workflow with advanced correction tools. */
html:not(.public-landing) .workspace-nav button[data-workspace-view="overview"]::before {
  content: "01" !important;
}

html:not(.public-landing) .workspace-nav button[data-workspace-view="report"]::before {
  content: "02" !important;
}

html:not(.public-landing) .workspace-nav button[data-workspace-view="delivery"]::before {
  content: "03" !important;
}

.ai-advanced-tools {
  margin: 0 clamp(18px, 5vw, 72px) 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 14px;
}

.ai-advanced-tools summary {
  width: max-content;
  cursor: pointer;
  color: #91a0b3;
  font-size: 12px;
  font-weight: 750;
  list-style-position: outside;
}

.ai-advanced-tools summary:hover {
  color: #dbeafe;
}

.ai-advanced-tools > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ai-advanced-tools button {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: #dbe7f4;
  background: rgba(30, 41, 59, 0.5);
}

.ai-advanced-tools button:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(20, 184, 166, 0.1);
}

.ai-advanced-tools button span {
  font-weight: 800;
}

.ai-advanced-tools button small {
  color: #8290a3;
  font-size: 11px;
  line-height: 1.45;
}

html.theme-light:not(.public-landing) .ai-advanced-tools summary {
  color: #526174;
}

html.theme-light:not(.public-landing) .ai-advanced-tools button {
  color: #102033;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.13);
}

@media (max-width: 640px) {
  .ai-advanced-tools {
    margin: 0 12px 16px;
  }

  .ai-advanced-tools > div {
    grid-template-columns: 1fr;
  }
}

/* Keep transient AI states inside the conversation instead of between chat and composer. */
.ai-chat-thread > .ai-chat-status {
  align-self: flex-start;
  width: min(760px, calc(100% - 46px));
  margin: 0 0 0 46px;
  border-radius: 4px 14px 14px 14px;
}

.ai-chat-thread > .ai-chat-status:empty {
  display: none;
}

@media (max-width: 640px) {
  .ai-chat-thread > .ai-chat-status {
    width: 100%;
    margin-left: 0;
  }
}

.export-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 128px;
}

.export-action .export-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #071426;
  background: #99f6e4;
  font-weight: 900;
}

.report-library-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.report-library-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.report-library-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border-radius: 7px;
  color: #071426;
  background: #67e8f9;
  font-weight: 900;
}

.report-library-info { min-width: 0; }
.report-library-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-library-title strong { overflow-wrap: anywhere; }
.report-library-title span {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.report-library-title .is-ready { color: #052e2b; background: #99f6e4; }
.report-library-title .is-legacy { color: #713f12; background: #fde68a; }
.report-library-info p,
.report-library-info small { display: block; margin: 4px 0 0; color: var(--muted); }
.report-library-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: stretch;
}
.report-library-actions button { min-height: 38px; padding: 8px 12px; }
.report-library-actions button:not(.icon-only) { flex: 1; }
.report-library-actions .icon-only { width: 38px; padding: 0; font-size: 22px; }
.report-library-actions button:disabled { opacity: 0.42; cursor: not-allowed; }
.report-library-empty {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

html.theme-dark:not(.public-landing) .report-library-item {
  color: #f5f7fb;
  border-color: #384353;
  background: #202630;
}

html.theme-dark:not(.public-landing) .report-library-info p,
html.theme-dark:not(.public-landing) .report-library-info small {
  color: #aeb9ca;
}

@media (max-width: 720px) {
  .report-library-item { grid-template-columns: 38px minmax(0, 1fr); }
  .report-library-file-icon { width: 38px; height: 44px; }
  .report-library-actions { justify-content: stretch; }
}

@media print {
  body.printing-report > :not(#report) {
    display: none !important;
  }

  body.printing-report #report {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-report #report .report-command-bar,
  body.printing-report #report .report-cover,
  body.printing-report #report .panel,
  body.printing-report #report .chart-card {
    break-inside: avoid;
  }
}

/* Professional agency report structure. */
.report-section-block {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.report-section-heading {
  display: flex;
  gap: 13px;
  align-items: center;
}

.report-section-heading > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #062b32;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  font-size: 12px;
  font-weight: 900;
}

.report-section-heading p,
.report-section-heading h3 {
  margin: 0;
}

.report-section-heading p {
  color: #67e8f9;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-section-heading h3 {
  color: #f8fafc;
  font-size: 22px;
}

.executive-summary-card {
  display: grid;
  gap: 22px;
}

.executive-summary-text {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.executive-summary-text p {
  margin: 0;
  color: #d8e2ee !important;
  font-size: 15px;
  line-height: 1.85;
}

.executive-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.executive-highlight-grid > div {
  display: grid;
  gap: 7px;
  min-height: 92px;
  align-content: center;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.56);
}

.executive-highlight-grid > div.good {
  border-color: rgba(45, 212, 191, 0.3);
}

.executive-highlight-grid > div.warn {
  border-color: rgba(251, 191, 36, 0.3);
}

.executive-highlight-grid span {
  color: #91a0b3;
  font-size: 11px;
}

.executive-highlight-grid strong {
  color: #f8fafc;
  font-size: 17px;
}

.professional-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.professional-kpi-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 108px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.56);
}

.professional-kpi-grid span,
.professional-kpi-grid small {
  color: #91a0b3;
  font-size: 11px;
}

.professional-kpi-grid strong {
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: clamp(18px, 2vw, 26px);
}

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

.finding-card,
.action-plan-grid > article {
  min-width: 0;
}

.finding-card > span,
.action-plan-grid > article > span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.finding-card.warning > span {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.finding-card h4,
.action-plan-grid h4 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 17px;
}

.report-point-list {
  display: grid;
  gap: 9px;
}

.report-point-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.34);
}

.report-point-list > div > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.14);
  font-size: 10px;
  font-weight: 900;
}

.report-point-list p {
  margin: 0;
  color: #d8e2ee !important;
  font-size: 13px;
  line-height: 1.65;
}

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

.detail-section {
  padding: 24px !important;
}

.report-chart-heading {
  margin-top: 10px;
}

.report-chart-heading p,
.report-chart-heading h4 {
  margin: 0;
}

.report-chart-heading p {
  color: #67e8f9;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-chart-heading h4 {
  margin-top: 3px;
  color: #f8fafc;
  font-size: 18px;
}

html.theme-light:not(.public-landing) .report-section-heading h3,
html.theme-light:not(.public-landing) .executive-highlight-grid strong,
html.theme-light:not(.public-landing) .professional-kpi-grid strong,
html.theme-light:not(.public-landing) .finding-card h4,
html.theme-light:not(.public-landing) .action-plan-grid h4 {
  color: #102033;
}

html.theme-light:not(.public-landing) .executive-summary-text p,
html.theme-light:not(.public-landing) .report-point-list p {
  color: #334155 !important;
}

html.theme-light:not(.public-landing) .executive-highlight-grid > div,
html.theme-light:not(.public-landing) .professional-kpi-grid article,
html.theme-light:not(.public-landing) .report-point-list > div {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

@media (max-width: 980px) {
  .professional-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .executive-highlight-grid,
  .findings-grid,
  .professional-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.printing-report #report {
    color: #172033 !important;
    background: #ffffff !important;
  }

  body.printing-report .report-command-bar,
  body.printing-report #chartTooltip {
    display: none !important;
  }

  body.printing-report .report-cover {
    min-height: 58mm;
    align-content: center;
    margin-bottom: 5mm !important;
    padding: 10mm !important;
    border: 0 !important;
    border-radius: 4mm !important;
    color: #ffffff !important;
    background: #0b3b40 !important;
    break-after: auto;
  }

  body.printing-report .report-section-block {
    margin-top: 0;
    padding-top: 4mm;
  }

  body.printing-report .findings-section,
  body.printing-report .detail-section {
    break-before: page;
  }

  body.printing-report .report-chart-heading {
    margin-top: 0;
    padding-top: 4mm;
    break-before: page;
  }

  body.printing-report .report-chart-heading p {
    color: #0f766e !important;
  }

  body.printing-report .report-chart-heading h4 {
    color: #172033 !important;
    font-size: 17px;
  }

  body.printing-report .report-section-heading h3,
  body.printing-report .executive-highlight-grid strong,
  body.printing-report .professional-kpi-grid strong,
  body.printing-report .finding-card h4,
  body.printing-report .action-plan-grid h4 {
    color: #172033 !important;
  }

  body.printing-report .report-section-heading p {
    color: #0f766e !important;
  }

  body.printing-report .executive-summary-card,
  body.printing-report .finding-card,
  body.printing-report .action-plan-grid > article,
  body.printing-report .detail-section,
  body.printing-report .chart-card {
    border-color: #d7dee8 !important;
    color: #172033 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  body.printing-report .executive-summary-text p,
  body.printing-report .report-point-list p {
    color: #334155 !important;
  }

  body.printing-report .executive-highlight-grid > div,
  body.printing-report .professional-kpi-grid article,
  body.printing-report .report-point-list > div {
    border-color: #d7dee8 !important;
    background: #f8fafc !important;
  }

  body.printing-report .professional-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.5mm;
  }

  body.printing-report .professional-kpi-grid article {
    min-height: 19mm;
    padding: 3mm;
  }

  body.printing-report .professional-kpi-grid strong {
    font-size: 15px;
  }

  body.printing-report .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4mm;
    margin-top: 4mm;
  }

  body.printing-report .chart-card {
    padding: 4mm !important;
  }

  body.printing-report .chart-card canvas {
    width: 100% !important;
    height: 70mm !important;
  }

  body.printing-report .chart-stat-grid {
    display: none !important;
  }

  body.printing-report .chart-note {
    color: #475569 !important;
    font-size: 9px;
  }

  body.printing-report .findings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.printing-report .action-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.printing-report .table-wrap {
    overflow: visible;
  }

  body.printing-report table {
    font-size: 8px;
  }
}

/* Console product polish: make the app workspace feel like an operating dashboard. */
html:not(.public-landing) body {
  background:
    radial-gradient(circle at 14% 6%, rgba(114,244,215,.08), transparent 30%),
    radial-gradient(circle at 96% 0%, rgba(42,168,242,.08), transparent 28%),
    linear-gradient(135deg, #061817, #0d1320 46%, #111827);
}

html.theme-light:not(.public-landing) body {
  background:
    radial-gradient(circle at 12% 0%, rgba(15,138,124,.08), transparent 30%),
    radial-gradient(circle at 98% 0%, rgba(42,168,242,.09), transparent 28%),
    linear-gradient(135deg, #f7fbfa, #eef5f2 44%, #f8fafc);
}

html:not(.public-landing) .topbar {
  border-bottom: 1px solid rgba(114,244,215,.12);
  background: rgba(5, 18, 22, .82);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

html.theme-light:not(.public-landing) .topbar {
  border-bottom-color: rgba(6,68,60,.1);
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 44px rgba(8,47,56,.08);
}

html:not(.public-landing) .workspace {
  grid-template-columns: minmax(320px, 372px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1480px;
}

html:not(.public-landing) .workspace .controls {
  top: 18px;
  overflow: hidden;
  border: 1px solid rgba(114,244,215,.16);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(75,216,255,.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)),
    rgba(5, 20, 24, .88);
  box-shadow: 0 24px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}

html.theme-light:not(.public-landing) .workspace .controls {
  border-color: rgba(6,68,60,.12);
  background:
    radial-gradient(circle at 88% 0%, rgba(42,168,242,.1), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,250,.92));
  box-shadow: 0 24px 70px rgba(8,47,56,.1), inset 0 1px 0 rgba(255,255,255,.8);
}

html:not(.public-landing) .workspace .case-card {
  min-height: 118px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(0,0,0,.2);
}

html:not(.public-landing) .workspace .workspace-nav {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

html.theme-light:not(.public-landing) .workspace .workspace-nav {
  border-color: rgba(6,68,60,.1);
  background: rgba(255,255,255,.72);
}

html:not(.public-landing) .workspace .workspace-nav button {
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 12px 12px 12px 54px;
  text-align: left;
}

html:not(.public-landing) .workspace .workspace-nav button::before {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid rgba(114,244,215,.18);
  border-radius: 10px;
  color: rgba(239,250,248,.72);
  background: rgba(255,255,255,.055);
}

html:not(.public-landing) .workspace .workspace-nav button.active {
  color: #f6fffd;
  border-color: rgba(114,244,215,.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.16), transparent 44%),
    linear-gradient(135deg, rgba(15,138,124,.24), rgba(42,168,242,.12));
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

html:not(.public-landing) .workspace .workspace-nav button.active::before {
  color: #06201d;
  border-color: transparent;
  background: linear-gradient(135deg, #72f4d7, #2aa8f2);
}

html.theme-light:not(.public-landing) .workspace .workspace-nav button::before {
  color: var(--accent-dark);
  border-color: rgba(15,138,124,.16);
  background: rgba(15,138,124,.08);
}

html.theme-light:not(.public-landing) .workspace .workspace-nav button.active {
  color: #063f37;
  border-color: rgba(15,138,124,.22);
  background: linear-gradient(135deg, rgba(15,138,124,.12), rgba(42,168,242,.08));
  box-shadow: 0 12px 30px rgba(8,47,56,.1);
}

html:not(.public-landing) .report-shell {
  min-width: 0;
}

html:not(.public-landing) .console-overview {
  border-color: rgba(114,244,215,.14);
  border-radius: 24px;
  padding: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(75,216,255,.16), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(114,244,215,.09), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.04)),
    rgba(7, 18, 25, .86);
  box-shadow: 0 26px 76px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
}

html.theme-light:not(.public-landing) .console-overview {
  border-color: rgba(6,68,60,.12);
  background:
    radial-gradient(circle at 90% 0%, rgba(42,168,242,.1), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(15,138,124,.08), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,249,248,.92));
  box-shadow: 0 26px 76px rgba(8,47,56,.1);
}

html:not(.public-landing) .console-overview-copy h2,
html:not(.public-landing) .console-primary-flow strong,
html:not(.public-landing) .console-status-grid strong,
html:not(.public-landing) .console-card-head strong,
html:not(.public-landing) .console-flow-head strong,
html:not(.public-landing) .console-flow-steps strong {
  color: #f6fffd;
}

html:not(.public-landing) .console-overview-copy p:not(.eyebrow),
html:not(.public-landing) .console-status-grid p,
html:not(.public-landing) .console-primary-flow span,
html:not(.public-landing) .console-flow-steps span {
  color: rgba(239,250,248,.64);
}

html.theme-light:not(.public-landing) .console-overview-copy h2,
html.theme-light:not(.public-landing) .console-primary-flow strong,
html.theme-light:not(.public-landing) .console-status-grid strong,
html.theme-light:not(.public-landing) .console-card-head strong,
html.theme-light:not(.public-landing) .console-flow-head strong,
html.theme-light:not(.public-landing) .console-flow-steps strong {
  color: var(--ink);
}

html.theme-light:not(.public-landing) .console-overview-copy p:not(.eyebrow),
html.theme-light:not(.public-landing) .console-status-grid p,
html.theme-light:not(.public-landing) .console-primary-flow span,
html.theme-light:not(.public-landing) .console-flow-steps span {
  color: var(--muted);
}

html:not(.public-landing) .console-primary-flow,
html:not(.public-landing) .console-status-grid article,
html:not(.public-landing) .console-health-radar,
html:not(.public-landing) .console-action-board,
html:not(.public-landing) .console-ops-board > article,
html:not(.public-landing) .console-command-grid > article,
html:not(.public-landing) .console-flow {
  border-color: rgba(114,244,215,.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.14);
}

html.theme-light:not(.public-landing) .console-primary-flow,
html.theme-light:not(.public-landing) .console-status-grid article,
html.theme-light:not(.public-landing) .console-health-radar,
html.theme-light:not(.public-landing) .console-action-board,
html.theme-light:not(.public-landing) .console-ops-board > article,
html.theme-light:not(.public-landing) .console-command-grid > article,
html.theme-light:not(.public-landing) .console-flow {
  border-color: rgba(6,68,60,.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,249,.92));
  box-shadow: 0 18px 44px rgba(8,47,56,.08);
}

html:not(.public-landing) .console-primary-flow button,
html:not(.public-landing) .console-flow-steps button,
html:not(.public-landing) .console-pipeline-list button {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
}

html:not(.public-landing) .console-primary-flow button:hover,
html:not(.public-landing) .console-flow-steps button:hover,
html:not(.public-landing) .console-pipeline-list button:hover {
  border-color: rgba(114,244,215,.24);
  background: rgba(255,255,255,.085);
  transform: translateY(-2px);
}

html.theme-light:not(.public-landing) .console-primary-flow button,
html.theme-light:not(.public-landing) .console-flow-steps button,
html.theme-light:not(.public-landing) .console-pipeline-list button {
  border-color: rgba(6,68,60,.12);
  background: rgba(255,255,255,.78);
}

html:not(.public-landing) .console-status-grid article {
  min-height: 154px;
}

html:not(.public-landing) .console-command-grid > article.active,
html:not(.public-landing) .console-flow-steps button.active,
html:not(.public-landing) .console-pipeline-list button.active {
  border-color: rgba(114,244,215,.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.18), transparent 34%),
    rgba(114,244,215,.075);
}

@media (max-width: 1120px) {
  html:not(.public-landing) .workspace {
    grid-template-columns: 1fr;
  }

  html:not(.public-landing) .workspace .controls {
    position: relative;
    top: auto;
  }

  html:not(.public-landing) .workspace .workspace-nav {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    overflow-x: auto;
  }
}

@media print {
  html:not(.public-landing) body,
  html.theme-light:not(.public-landing) body {
    background: #fff;
  }

  html:not(.public-landing) .topbar,
  html:not(.public-landing) .controls,
  html:not(.public-landing) .commercial-section,
  html:not(.public-landing) .account-dock {
    display: none;
  }
}

/* Final system-flow and console-signal pass. */
html.public-landing .landing-workflow-band {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1180px;
  margin: -42px auto 88px;
  border: 1px solid rgba(166,189,255,.2);
  border-radius: 28px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 6% 0%, rgba(114,244,215,.14), transparent 30%),
    radial-gradient(circle at 100% 18%, rgba(138,73,220,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.045)),
    rgba(8, 13, 42, .74);
  box-shadow: 0 34px 110px rgba(7,12,38,.24), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(22px);
}

html.public-landing .workflow-band-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px 8px 12px 10px;
}

html.public-landing .workflow-band-copy span {
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(114,244,215,.2);
  border-radius: 999px;
  padding: 6px 10px;
  color: #b9fff1;
  background: rgba(114,244,215,.08);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html.public-landing .workflow-band-copy strong {
  max-width: 430px;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.08;
}

html.public-landing .workflow-band-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.66);
  line-height: 1.68;
}

html.public-landing .workflow-band-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

html.public-landing .workflow-band-steps article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.055);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

html.public-landing .workflow-band-steps article:hover {
  border-color: rgba(114,244,215,.26);
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
}

html.public-landing .workflow-band-steps article::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(75,216,255,.16);
  border-radius: 999px;
}

html.public-landing .workflow-band-steps i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: #061946;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

html.public-landing .workflow-band-steps span {
  display: block;
  margin-bottom: 6px;
  color: rgba(210,235,255,.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html.public-landing .workflow-band-steps strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

html.public-landing .workflow-band-steps small {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.45;
}

html:not(.public-landing) .console-signal-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html:not(.public-landing) .console-signal-strip button {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 3px 12px;
  align-items: center;
  min-height: 86px;
  border: 1px solid rgba(114,244,215,.12);
  border-radius: 18px;
  padding: 15px;
  color: #f6fffd;
  background:
    radial-gradient(circle at 100% 0%, rgba(75,216,255,.09), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 34px rgba(0,0,0,.12);
  text-align: left;
  white-space: normal;
}

html:not(.public-landing) .console-signal-strip button:hover {
  border-color: rgba(114,244,215,.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.14), transparent 32%),
    rgba(255,255,255,.07);
  transform: translateY(-2px);
}

html:not(.public-landing) .console-signal-strip i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

html:not(.public-landing) .console-signal-strip i::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(239,250,248,.42);
}

html:not(.public-landing) .console-signal-strip button.done i::before {
  background: #72f4d7;
  box-shadow: 0 0 18px rgba(114,244,215,.75);
}

html:not(.public-landing) .console-signal-strip button.active i::before {
  background: #4bd8ff;
  box-shadow: 0 0 18px rgba(75,216,255,.75);
}

html:not(.public-landing) .console-signal-strip span {
  color: rgba(239,250,248,.56);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html:not(.public-landing) .console-signal-strip strong {
  color: #f6fffd;
  font-size: 16px;
  line-height: 1.2;
}

html.theme-light:not(.public-landing) .console-signal-strip button {
  border-color: rgba(6,68,60,.12);
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,242,.08), transparent 32%),
    rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(8,47,56,.08);
}

html.theme-light:not(.public-landing) .console-signal-strip i {
  background: rgba(15,138,124,.08);
}

html.theme-light:not(.public-landing) .console-signal-strip span {
  color: var(--muted);
}

html.theme-light:not(.public-landing) .console-signal-strip strong {
  color: var(--ink);
}

@media (max-width: 880px) {
  html:not(.public-landing) .console-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html.public-landing .landing-workflow-band {
    grid-template-columns: 1fr;
    margin: -24px 18px 54px;
    padding: 18px;
  }

  html.public-landing .workflow-band-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  html:not(.public-landing) .console-signal-strip {
    grid-template-columns: 1fr;
  }
}

/* Premium visual pass for the public homepage and operator console. */
html.public-landing .home-hero::before {
  content: "";
  position: absolute;
  inset: 84px auto auto max(28px, calc((100vw - 1280px) / 2));
  width: min(520px, 42vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(75,216,255,.9), rgba(114,244,215,.24), transparent);
  z-index: 1;
}

html.public-landing .home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  border: 1px solid rgba(114,244,215,.2);
  border-radius: 999px;
  padding: 6px 12px;
  color: #b9fff1;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

html.public-landing .home-hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #72f4d7;
  box-shadow: 0 0 18px rgba(114,244,215,.82);
}

html.public-landing .landing-hero-visual {
  filter: drop-shadow(0 34px 74px rgba(0,0,0,.28));
}

html.public-landing .landing-hero-visual .main-panel {
  border-radius: 24px;
  padding: 28px;
}

html.public-landing .landing-hero-visual .main-panel::before {
  inset: 62px 24px auto;
}

html.public-landing .visual-bar {
  position: relative;
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background:
    linear-gradient(rgba(255,255,255,.6) 0 0) 46px 50% / 92px 7px no-repeat,
    radial-gradient(circle at 18px 50%, #72f4d7 0 5px, transparent 6px),
    rgba(255,255,255,.07);
}

html.public-landing .visual-bar::after {
  content: "AgencyReport AI";
  position: absolute;
  right: 14px;
  top: 50%;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

html.public-landing .visual-kpis span {
  height: 68px;
  border-radius: 16px;
}

html.public-landing .visual-chart {
  height: 138px;
  border-radius: 18px;
}

html.public-landing .side-panel {
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 18%, rgba(114,244,215,.14), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.05)),
    rgba(8,13,42,.82);
}

html.public-landing .side-panel::after {
  content: "";
  display: block;
  height: 82px;
  margin-top: 16px;
  border-radius: 18px;
  background:
    conic-gradient(from 20deg, #72f4d7, #4bd8ff, #8a49dc, #72f4d7);
  box-shadow: inset 0 0 0 18px rgba(10,18,54,.92);
}

html.public-landing .landing-proof-rail {
  transform: translateY(-4px);
}

html.public-landing .landing-proof-rail div {
  transition: transform .2s ease, background .2s ease;
}

html.public-landing .landing-proof-rail div:hover {
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}

html.public-landing .landing-product-map::before {
  content: "";
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  right: max(28px, calc((100vw - 1180px) / 2));
  top: -34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114,244,215,.34), transparent);
}

html.public-landing .product-map-node {
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

html.public-landing .product-map-node:hover {
  border-color: rgba(114,244,215,.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
}

html.public-landing .landing-system-strip article {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

html.public-landing .landing-system-strip article:hover {
  border-color: rgba(114,244,215,.3);
  transform: translateY(-4px);
  box-shadow: 0 30px 90px rgba(10,12,40,.28), inset 0 1px 0 rgba(255,255,255,.12);
}

html:not(.public-landing) .workspace-context-bar {
  border-radius: 26px;
  padding: 22px;
}

html:not(.public-landing) .workspace-view-masthead {
  border-radius: 22px;
  padding: 22px;
}

html:not(.public-landing) .view-masthead-status div {
  min-height: 88px;
  border-radius: 18px;
}

html:not(.public-landing) .console-overview-actions button,
html:not(.public-landing) .workspace-context-actions button,
html:not(.public-landing) .view-masthead-status button {
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

html.theme-light:not(.public-landing) .console-overview-actions button,
html.theme-light:not(.public-landing) .workspace-context-actions button,
html.theme-light:not(.public-landing) .view-masthead-status button {
  box-shadow: 0 12px 28px rgba(8,47,56,.1);
}

html:not(.public-landing) .console-readiness-strip {
  border-color: rgba(114,244,215,.16);
  background:
    radial-gradient(circle at 6% 20%, var(--readiness-start), transparent 34%),
    radial-gradient(circle at 88% 0%, var(--readiness-end), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}

html:not(.public-landing) .readiness-pulse {
  box-shadow: 0 18px 42px rgba(42,168,242,.24), 0 0 0 8px rgba(114,244,215,.05);
}

html:not(.public-landing) .console-status-grid article::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(114,244,215,.86), rgba(75,216,255,.28));
}

html:not(.public-landing) .console-status-grid article span {
  margin-top: 12px;
}

html:not(.public-landing) .console-health-radar {
  min-height: 210px;
}

html:not(.public-landing) .health-signal-list div,
html:not(.public-landing) .console-ai-metrics div,
html:not(.public-landing) .console-activity-list div {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
}

html.theme-light:not(.public-landing) .health-signal-list div,
html.theme-light:not(.public-landing) .console-ai-metrics div,
html.theme-light:not(.public-landing) .console-activity-list div {
  border-color: rgba(6,68,60,.12);
  background: rgba(255,255,255,.78);
}

html:not(.public-landing) .console-action-board {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, .58fr));
}

html:not(.public-landing) .action-board-primary {
  min-height: 210px;
  background:
    radial-gradient(circle at 90% 12%, rgba(114,244,215,.18), transparent 34%),
    linear-gradient(135deg, rgba(15,138,124,.22), rgba(42,168,242,.08)),
    rgba(255,255,255,.045);
}

html:not(.public-landing) .action-board-card {
  min-height: 210px;
}

html:not(.public-landing) .console-command-grid > article {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

html:not(.public-landing) .console-command-grid > article:hover {
  border-color: rgba(114,244,215,.24);
  transform: translateY(-3px);
}

@media (max-width: 880px) {
  html:not(.public-landing) .console-action-board {
    grid-template-columns: 1fr;
  }
}

/* Homepage layout repair: prevent the hero title and workflow cards from collapsing. */
html.public-landing .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .82fr);
  column-gap: clamp(34px, 6vw, 88px);
  row-gap: 32px;
}

html.public-landing .home-hero > div:first-child {
  max-width: 820px;
}

html.public-landing .home-hero h2 {
  max-width: 820px;
  margin: 12px 0 22px;
  font-size: clamp(54px, 5vw, 76px);
  line-height: 1.1;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

html.public-landing .home-hero p:not(.eyebrow) {
  max-width: 660px;
}

html.public-landing .home-hero-actions,
html.public-landing .landing-trust-row {
  grid-column: 1;
  justify-content: flex-start;
}

html.public-landing .landing-hero-visual {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

html.public-landing .landing-workflow-band {
  grid-template-columns: minmax(300px, .5fr) minmax(0, 1fr);
  max-width: 1240px;
  margin-top: -56px;
  padding: clamp(22px, 2.4vw, 32px);
}

html.public-landing .workflow-band-steps {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

html.public-landing .workflow-band-steps article {
  min-height: 220px;
  padding: 22px;
}

html.public-landing .workflow-band-steps strong {
  max-width: 100%;
  font-size: 20px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html.public-landing .workflow-band-steps small {
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  html.public-landing .home-hero {
    grid-template-columns: 1fr;
  }

  html.public-landing .landing-hero-visual {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    width: min(560px, 100%);
  }

  html.public-landing .landing-workflow-band {
    grid-template-columns: 1fr;
    margin-inline: 28px;
  }
}

@media (max-width: 820px) {
  html.public-landing .workflow-band-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html.public-landing .home-hero {
    padding: 48px 20px 66px;
  }

  html.public-landing .home-hero h2 {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1.16;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  html.public-landing .home-hero-actions {
    width: 100%;
  }

  html.public-landing .home-hero-actions button {
    width: 100%;
  }

  html.public-landing .landing-trust-row {
    align-items: stretch;
    width: 100%;
  }

  html.public-landing .landing-trust-row span {
    width: 100%;
  }

  html.public-landing .landing-workflow-band {
    margin: -24px 16px 52px;
  }

  html.public-landing .workflow-band-steps {
    grid-template-columns: 1fr;
  }

  html.public-landing .workflow-band-steps article {
    min-height: auto;
  }
}

html:not(.public-landing) .home-page {
  max-width: 1280px;
  padding-top: 24px;
}

html:not(.public-landing) .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

html:not(.public-landing) .home-hero h2 {
  max-width: 820px;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

html:not(.public-landing) .home-hero-actions {
  align-self: end;
}

html:not(.public-landing) .landing-proof-rail,
html:not(.public-landing) .landing-workflow-band,
html:not(.public-landing) .landing-product-map,
html:not(.public-landing) .landing-marketing {
  color: #fff;
}

html.public-landing .landing-system-strip,
html.public-landing .landing-marketing,
html:not(.public-landing) .landing-system-strip,
html:not(.public-landing) .landing-marketing {
  display: none !important;
}

.landing-modern {
  display: grid;
  gap: 0;
  color: #fff;
}

.modern-section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) max(28px, calc((100vw - 1180px) / 2));
}

.modern-section::before {
  content: "";
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  right: max(28px, calc((100vw - 1180px) / 2));
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114,244,215,.26), transparent);
}

.modern-section-head {
  display: grid;
  justify-items: center;
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.modern-section-head h2,
.modern-sample-copy h2,
.modern-contact h2 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.modern-section-head p,
.modern-sample-copy p,
.modern-contact p {
  max-width: 680px;
  margin: 0;
  color: rgba(228, 248, 245, .72);
  font-size: 16px;
  line-height: 1.8;
}

.modern-problem {
  background:
    radial-gradient(circle at 12% 24%, rgba(42,168,242,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}

.modern-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.modern-problem-grid article,
.modern-metric-grid article,
.modern-flow-grid article,
.modern-feature-grid article,
.modern-pricing-grid article,
.modern-report-preview,
.modern-contact {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(8, 13, 42, .42);
  box-shadow: 0 24px 80px rgba(7,12,38,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.modern-problem-grid article {
  padding: 28px;
}

.modern-problem-grid span,
.modern-pricing-grid span,
.modern-feature-grid strong,
.modern-flow-grid strong {
  color: #b9fff1;
}

.modern-problem-grid strong {
  display: block;
  margin: 8px 0 16px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.modern-problem-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.74);
}

.modern-problem-grid li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modern-problem-grid li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #72f4d7;
  box-shadow: 0 0 18px rgba(114,244,215,.7);
}

.modern-metrics {
  background:
    radial-gradient(circle at 80% 0%, rgba(138,73,220,.12), transparent 34%),
    rgba(255,255,255,.015);
}

.modern-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.modern-metric-grid article {
  min-height: 220px;
  padding: 28px;
}

.modern-metric-grid i,
.modern-flow-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #061946;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.modern-metric-grid strong {
  display: block;
  margin: 36px 0 12px;
  color: #fff;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
}

.modern-metric-grid span {
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.modern-flow {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(114,244,215,.09), transparent 30%),
    linear-gradient(180deg, rgba(18,11,55,.28), rgba(8,13,42,.04));
}

.modern-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.modern-flow-grid article {
  min-height: 250px;
  padding: 24px;
}

.modern-flow-grid strong {
  display: block;
  margin: 28px 0 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
}

.modern-flow-grid p,
.modern-feature-grid p,
.modern-pricing-grid p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
}

.modern-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.modern-feature-grid article {
  overflow: hidden;
  min-height: 320px;
}

.modern-feature-media {
  height: 132px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.media-kpi {
  background:
    linear-gradient(#fff 0 0) 32px 42px / 110px 10px no-repeat,
    linear-gradient(#72f4d7 0 0) 32px 72px / 160px 14px no-repeat,
    radial-gradient(circle at 76% 28%, rgba(114,244,215,.34), transparent 26%),
    linear-gradient(135deg, rgba(42,168,242,.4), rgba(138,73,220,.2));
}

.media-chart {
  background:
    linear-gradient(130deg, transparent 0 40%, rgba(255,255,255,.24) 40% 42%, transparent 42%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 2px, transparent 2px 34px),
    radial-gradient(circle at 62% 26%, rgba(138,73,220,.44), transparent 28%),
    linear-gradient(135deg, rgba(114,244,215,.28), rgba(42,168,242,.26));
}

.media-ai {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.9) 0 3px, transparent 4px),
    radial-gradient(circle at 32% 36%, rgba(114,244,215,.8) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 42%, rgba(75,216,255,.8) 0 5px, transparent 6px),
    radial-gradient(circle at 48% 70%, rgba(138,73,220,.85) 0 5px, transparent 6px),
    linear-gradient(135deg, rgba(18,11,55,.75), rgba(42,168,242,.32));
}

.media-brand {
  background:
    linear-gradient(#fff 0 0) 32px 36px / 86px 8px no-repeat,
    linear-gradient(#72f4d7 0 0) 32px 62px / 140px 9px no-repeat,
    linear-gradient(#4bd8ff 0 0) 32px 88px / 180px 9px no-repeat,
    radial-gradient(circle at 80% 30%, rgba(114,244,215,.28), transparent 28%),
    linear-gradient(135deg, rgba(15,138,124,.38), rgba(255,255,255,.05));
}

.modern-feature-grid strong,
.modern-feature-grid p {
  display: block;
  padding: 0 22px;
}

.modern-feature-grid strong {
  margin: 22px 0 10px;
  color: #fff;
  font-size: 20px;
}

.modern-sample {
  display: grid;
  grid-template-columns: minmax(280px, .48fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.modern-sample-copy {
  max-width: 440px;
}

.modern-report-preview {
  overflow: hidden;
  min-height: 420px;
  background:
    radial-gradient(circle at 82% 18%, rgba(114,244,215,.14), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04)),
    rgba(8,13,42,.72);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
}

.preview-top strong {
  margin-left: 10px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.preview-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 372px;
}

.preview-body aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}

.preview-body b,
.preview-title,
.preview-lines i {
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.preview-body b { height: 12px; }
.preview-body b:nth-child(1) { width: 88px; }
.preview-body b:nth-child(2) { width: 112px; }
.preview-body b:nth-child(3) { width: 76px; }
.preview-body b:nth-child(4) { width: 104px; }

.preview-body main {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.preview-title {
  width: 58%;
  height: 18px;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-kpis span {
  height: 72px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background:
    linear-gradient(#fff 0 0) 18px 18px / 40px 7px no-repeat,
    linear-gradient(#72f4d7 0 0) 18px 42px / 62px 12px no-repeat,
    rgba(255,255,255,.06);
}

.preview-chart {
  min-height: 150px;
  border-radius: 18px;
  background:
    linear-gradient(150deg, transparent 0 36%, rgba(255,255,255,.22) 36% 38%, transparent 38%),
    radial-gradient(circle at 72% 22%, rgba(114,244,215,.35), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 34px),
    linear-gradient(135deg, rgba(75,216,255,.24), rgba(138,73,220,.24));
}

.preview-lines {
  display: grid;
  gap: 10px;
}

.preview-lines i {
  height: 12px;
}

.preview-lines i:nth-child(2) { width: 82%; }
.preview-lines i:nth-child(3) { width: 64%; }

.modern-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.modern-pricing-grid article {
  min-height: 270px;
  padding: 28px;
}

.modern-pricing-grid article.featured {
  border-color: rgba(114,244,215,.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
}

.modern-pricing-grid strong {
  display: block;
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.modern-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: clamp(36px, 5vw, 70px) max(28px, calc((100vw - 1180px) / 2)) clamp(72px, 8vw, 120px);
  padding: clamp(28px, 4vw, 46px);
}

.modern-contact h2 {
  font-size: clamp(30px, 4vw, 48px);
}

@media (max-width: 980px) {
  .modern-problem-grid,
  .modern-sample,
  .modern-contact {
    grid-template-columns: 1fr;
  }

  .modern-flow-grid,
  .modern-feature-grid,
  .modern-pricing-grid,
  .modern-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modern-contact {
    display: grid;
  }
}

@media (max-width: 620px) {
  .modern-section {
    padding: 56px 18px;
  }

  .modern-section-head {
    justify-items: start;
    text-align: left;
  }

  .modern-section-head h2,
  .modern-sample-copy h2,
  .modern-contact h2 {
    font-size: clamp(30px, 9vw, 42px);
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .modern-problem-grid,
  .modern-flow-grid,
  .modern-feature-grid,
  .modern-pricing-grid,
  .modern-metric-grid,
  .preview-kpis {
    grid-template-columns: 1fr;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-body aside {
    display: none;
  }

  .modern-contact {
    margin: 36px 18px 68px;
  }

  .modern-contact button {
    width: 100%;
  }
}

/* Operator console refinement: make the app feel like a guided command center. */
html:not(.public-landing) .workspace-context-bar {
  overflow: hidden;
  border-color: rgba(114,244,215,.18);
  background:
    radial-gradient(circle at 8% 10%, rgba(114,244,215,.18), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(42,168,242,.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}

html:not(.public-landing) .workspace-context-main span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(114,244,215,.24);
  border-radius: 999px;
  padding: 6px 10px;
  color: #b9fff1;
  background: rgba(114,244,215,.08);
}

html:not(.public-landing) .workspace-context-meta div,
html:not(.public-landing) .view-masthead-status div,
html:not(.public-landing) .console-status-grid article,
html:not(.public-landing) .console-command-grid > article {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.12);
}

html:not(.public-landing) .workspace-context-actions button,
html:not(.public-landing) .console-overview-actions button,
html:not(.public-landing) .console-task-card button,
html:not(.public-landing) .console-flow-steps button {
  min-height: 46px;
  border-radius: 12px;
}

html:not(.public-landing) .workspace-nav {
  position: sticky;
  top: 78px;
  z-index: 12;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(7, 15, 24, .72);
  backdrop-filter: blur(18px);
}

html.theme-light:not(.public-landing) .workspace-nav {
  background: rgba(255,255,255,.78);
}

html:not(.public-landing) .workspace-nav button {
  min-height: 58px;
  border-radius: 14px;
}

html:not(.public-landing) .workspace-focus-card {
  border-color: rgba(114,244,215,.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(114,244,215,.1), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

html:not(.public-landing) .workspace-view-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr);
  gap: 22px;
  align-items: stretch;
  border-color: rgba(114,244,215,.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(114,244,215,.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
}

html:not(.public-landing) .view-masthead-status {
  align-content: stretch;
}

html:not(.public-landing) .view-masthead-status div,
html:not(.public-landing) .view-masthead-status button {
  height: 100%;
}

html:not(.public-landing) .console-overview {
  border-color: rgba(114,244,215,.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(114,244,215,.14), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(42,168,242,.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
}

html:not(.public-landing) .console-overview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html:not(.public-landing) .console-signal-strip button,
html:not(.public-landing) .console-flow-steps button {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

html:not(.public-landing) .console-signal-strip button:hover,
html:not(.public-landing) .console-flow-steps button:hover {
  border-color: rgba(114,244,215,.28);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

html:not(.public-landing) .console-signal-strip button::after,
html:not(.public-landing) .console-flow-steps button::after {
  content: "";
  position: absolute;
  inset: auto -34px -44px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(75,216,255,.12);
  border-radius: 999px;
}

html:not(.public-landing) .console-action-board {
  border-color: rgba(114,244,215,.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(114,244,215,.13), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

html:not(.public-landing) .action-board-primary,
html:not(.public-landing) .action-board-card {
  border-radius: 20px;
}

html:not(.public-landing) .console-health-radar,
html:not(.public-landing) .console-activity-panel,
html:not(.public-landing) .console-ai-panel {
  border-color: rgba(114,244,215,.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.032));
}

@media (max-width: 920px) {
  html:not(.public-landing) .workspace-view-masthead,
  html:not(.public-landing) .console-overview-actions {
    grid-template-columns: 1fr;
  }

  html:not(.public-landing) .workspace-nav {
    top: 0;
  }
}

/* Public landing overflow guard: keep the marketing hero full-bleed and contained. */
html.public-landing,
html.public-landing body {
  overflow-x: hidden;
}

html.public-landing .home-page {
  background:
    radial-gradient(circle at 76% 18%, rgba(65,119,255,.2), transparent 30%),
    linear-gradient(120deg, #241057 0%, #151b61 52%, #0f2b8e 100%);
}

html.public-landing .home-hero {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 21%),
    radial-gradient(circle at 82% 28%, rgba(65, 119, 255, 0.28), transparent 30%),
    radial-gradient(circle at 28% 110%, rgba(102, 72, 233, 0.26), transparent 34%),
    transparent;
}

html.public-landing .landing-hero-visual {
  max-width: min(560px, 42vw);
  transform: translateX(0);
}

html.public-landing .landing-workflow-band {
  width: min(calc(100% - 56px), 1240px);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

html.public-landing .workflow-band-steps {
  min-width: 0;
}

html.public-landing .workflow-band-steps article {
  min-width: 0;
}

@media (min-width: 1181px) {
  html.public-landing .home-hero {
    grid-template-columns: minmax(0, .9fr) minmax(360px, .78fr);
  }
}

@media (max-width: 1180px) {
  html.public-landing .landing-hero-visual {
    max-width: min(560px, 100%);
  }
}

html:not(.public-landing) .landing-proof-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

html:not(.public-landing) .landing-proof-rail div {
  min-height: 126px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

html:not(.public-landing) .landing-proof-rail span {
  display: block;
  margin-bottom: 10px;
  color: rgba(210,235,255,.74);
  font-size: 12px;
  font-weight: 900;
}

html:not(.public-landing) .landing-proof-rail strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1;
}

html:not(.public-landing) .landing-proof-rail p {
  margin: 0;
}

html:not(.public-landing) .landing-workflow-band {
  display: grid;
  grid-template-columns: minmax(280px, .45fr) minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 6% 0%, rgba(114,244,215,.13), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

html:not(.public-landing) .workflow-band-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

html:not(.public-landing) .workflow-band-copy span {
  width: fit-content;
  border: 1px solid rgba(114,244,215,.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: #b9fff1;
  background: rgba(114,244,215,.08);
  font-size: 11px;
  font-weight: 950;
}

html:not(.public-landing) .workflow-band-copy strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

html:not(.public-landing) .workflow-band-copy p {
  margin: 0;
}

html:not(.public-landing) .workflow-band-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

html:not(.public-landing) .workflow-band-steps article {
  min-height: 190px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.055);
}

html:not(.public-landing) .workflow-band-steps i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #061946;
  background: linear-gradient(135deg, #e9ffff, #72f4d7);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

html:not(.public-landing) .workflow-band-steps span,
html:not(.public-landing) .workflow-band-steps strong,
html:not(.public-landing) .workflow-band-steps small {
  display: block;
}

html:not(.public-landing) .workflow-band-steps span {
  margin-bottom: 6px;
  color: rgba(210,235,255,.72);
  font-size: 12px;
}

html:not(.public-landing) .workflow-band-steps strong {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

html:not(.public-landing) .landing-product-map {
  display: grid;
  grid-template-columns: minmax(280px, .45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 32px;
}

html:not(.public-landing) .product-map-copy h2 {
  max-width: 520px;
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
}

html:not(.public-landing) .product-map-copy p:not(.landing-kicker) {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.72);
}

html:not(.public-landing) .product-map-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  min-height: 210px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(114,244,215,.13), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

html:not(.public-landing) .product-map-node {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 150px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  background: rgba(255,255,255,.055);
}

html:not(.public-landing) .product-map-node span {
  color: rgba(210,235,255,.72);
  font-size: 12px;
  font-weight: 900;
}

html:not(.public-landing) .product-map-node strong {
  font-size: 18px;
  line-height: 1.3;
}

html:not(.public-landing) .product-map-node small {
  color: rgba(255,255,255,.68);
  line-height: 1.5;
}

html:not(.public-landing) .product-map-flow {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(114,244,215,.75), rgba(75,216,255,.35), rgba(138,73,220,.5));
}

html:not(.public-landing) .landing-proof-rail p,
html:not(.public-landing) .landing-workflow-band p,
html:not(.public-landing) .landing-workflow-band small,
html:not(.public-landing) .landing-product-map p {
  color: rgba(255,255,255,.72);
}

html:not(.public-landing) .landing-proof-rail strong,
html:not(.public-landing) .landing-workflow-band strong,
html:not(.public-landing) .landing-product-map strong,
html:not(.public-landing) .landing-product-map h2 {
  color: #fff;
}

@media (max-width: 860px) {
  html:not(.public-landing) .home-hero {
    grid-template-columns: 1fr;
  }

  html:not(.public-landing) .home-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  html:not(.public-landing) .home-page {
    padding-inline: 18px;
  }

  html:not(.public-landing) .home-hero {
    padding: 28px;
  }

  html:not(.public-landing) .home-hero h2 {
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.16;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  html:not(.public-landing) .home-hero p:not(.eyebrow) {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  html:not(.public-landing) .home-hero-actions button {
    width: 100%;
  }

  html:not(.public-landing) .landing-proof-rail,
  html:not(.public-landing) .landing-workflow-band,
  html:not(.public-landing) .landing-product-map {
    grid-template-columns: 1fr;
  }

  html:not(.public-landing) .workflow-band-copy strong,
  html:not(.public-landing) .workflow-band-copy p {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  html:not(.public-landing) .workflow-band-steps,
  html:not(.public-landing) .product-map-canvas {
    grid-template-columns: 1fr;
  }

  html:not(.public-landing) .workflow-band-steps article {
    min-height: auto;
  }

  html:not(.public-landing) .product-map-flow {
    display: none;
  }
}

/* Public homepage layout repair: keep the hero headline and process cards readable at every width. */
html.public-landing .home-page {
  width: 100%;
  max-width: none;
}

html.public-landing .home-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .74fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding-left: max(28px, calc((100vw - 1220px) / 2));
  padding-right: max(28px, calc((100vw - 1220px) / 2));
}

html.public-landing .home-hero > div:first-child {
  width: 100%;
  max-width: 820px;
}

html.public-landing .home-hero h2 {
  display: grid;
  gap: .06em;
  width: 100%;
  max-width: 860px;
  margin: 0 0 24px;
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
}

html.public-landing .home-hero h2 .title-line {
  display: block;
  min-width: 0;
}

html.public-landing .home-hero h2 .title-word {
  display: inline-block;
  white-space: nowrap;
}

html.public-landing .home-hero h2 .title-word-b::after {
  content: none;
}

html.public-landing .home-hero h2 .title-word-c {
  color: #4bd8ff;
}

html.public-landing .home-hero h2 .title-word-d {
  margin-left: .12em;
}

html.public-landing .landing-workflow-band {
  display: grid;
  grid-template-columns: minmax(280px, .55fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  width: min(calc(100% - 56px), 1220px);
}

html.public-landing .workflow-band-steps {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: stretch;
}

html.public-landing .workflow-band-steps article {
  min-width: 0;
  min-height: 220px;
  padding: 24px 22px;
}

html.public-landing .workflow-band-steps strong,
html.public-landing .workflow-band-steps small,
html.public-landing .workflow-band-copy strong,
html.public-landing .workflow-band-copy p {
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 1180px) {
  html.public-landing .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(72px, 10vw, 110px);
    padding-bottom: 112px;
  }

  html.public-landing .landing-hero-visual {
    justify-self: center;
    width: min(620px, 100%);
    max-width: min(620px, 100%);
  }

  html.public-landing .landing-workflow-band {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  html.public-landing .workflow-band-copy strong,
  html.public-landing .workflow-band-copy p {
    max-width: 760px;
  }

  html.public-landing .workflow-band-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html.public-landing .home-hero {
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 56px;
    padding-bottom: 78px;
  }

  html.public-landing .home-hero h2 {
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 1.08;
  }

  html.public-landing .home-hero h2 .title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .14em;
  }

  html.public-landing .home-hero h2 .title-word {
    white-space: nowrap;
  }

  html.public-landing .home-hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.72;
  }

  html.public-landing .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  html.public-landing .home-hero-actions button {
    width: 100%;
  }

  html.public-landing .landing-trust-row {
    gap: 8px;
  }

  html.public-landing .landing-trust-row span {
    flex: 1 1 100%;
    justify-content: center;
  }

  html.public-landing .landing-workflow-band {
    width: calc(100% - 32px);
    margin-bottom: 64px;
    border-radius: 24px;
    padding: 18px;
  }

  html.public-landing .workflow-band-steps {
    grid-template-columns: 1fr;
  }

  html.public-landing .workflow-band-steps article {
    min-height: auto;
    padding: 20px;
  }
}

/* Final public hero guard: prevent old dashboard constraints from squeezing the landing headline. */
html.public-landing body,
html.public-landing .home-page {
  width: 100% !important;
  max-width: none !important;
}

html.public-landing .home-page {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.public-landing .home-hero {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: clamp(76px, 10vw, 132px) max(28px, calc((100vw - 1220px) / 2)) clamp(98px, 12vw, 150px) !important;
}

html.public-landing .home-hero > div:first-child {
  max-width: 860px !important;
}

html.public-landing .home-hero h2 {
  width: min(100%, 900px) !important;
  max-width: 900px !important;
}

html.public-landing .home-hero-actions {
  justify-content: flex-start !important;
  margin-top: 28px !important;
}

html.public-landing .landing-workflow-band {
  width: min(calc(100% - 56px), 1220px) !important;
  max-width: 1220px !important;
  grid-template-columns: 1fr !important;
}

html.public-landing .workflow-band-steps,
html.public-landing .modern-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html.public-landing .workflow-band-steps article,
html.public-landing .modern-flow-grid article {
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  html.public-landing .home-hero {
    padding-top: 72px !important;
    padding-bottom: 108px !important;
  }

  html.public-landing .workflow-band-steps,
  html.public-landing .modern-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  html.public-landing .home-hero {
    padding: 56px 22px 78px !important;
  }

  html.public-landing .workflow-band-steps,
  html.public-landing .modern-flow-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Clean SaaS shell rebuilt on 2026-06-15. This block intentionally overrides
   legacy experimental sections that accumulated during MVP iteration. */
:root {
  --clean-ink: #07152a;
  --clean-muted: #5d6b7d;
  --clean-line: rgba(15, 23, 42, 0.12);
  --clean-teal: #0f8f83;
  --clean-blue: #2e67ff;
  --clean-purple: #7457e6;
  --clean-bg: #f5f7fb;
  --clean-card: #ffffff;
  --clean-dark: #170b3f;
  --clean-dark-2: #0f2476;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--clean-ink);
  background: var(--clean-bg);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--clean-line);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--clean-blue), var(--clean-purple));
  box-shadow: 0 16px 32px rgba(46, 103, 255, 0.24);
}

.ghost {
  color: var(--clean-ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.16);
}

html.theme-dark:not(.public-landing) body {
  color: #edf4ff;
  background: #101114;
}

html.theme-dark:not(.public-landing) .workspace,
html.theme-dark:not(.public-landing) .report-shell {
  color: #edf4ff;
  background: #101114;
}

html.theme-dark:not(.public-landing) .panel,
html.theme-dark:not(.public-landing) .workspace-sidebar,
html.theme-dark:not(.public-landing) .workspace-masthead,
html.theme-dark:not(.public-landing) .chart-card,
html.theme-dark:not(.public-landing) .report-cover,
html.theme-dark:not(.public-landing) .report-command-bar {
  color: #edf4ff;
  background: #1a1c21;
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark:not(.public-landing) .ghost {
  color: #edf4ff;
  background: #24272f;
  border-color: rgba(255, 255, 255, 0.16);
}

html.theme-light:not(.public-landing) .ghost {
  color: #102030;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #6d5dfc 62%, #f97316);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.24);
}

.brand-block h1,
.brand-block strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.eyebrow,
.landing-kicker {
  margin: 0 0 10px;
  color: #42d7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-nav-links,
.top-actions,
.hero-actions,
.button-row,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-nav-links a {
  color: #17233a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language-toggle,
.theme-toggle {
  display: inline-flex !important;
  padding: 3px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid rgba(46, 103, 255, 0.14);
}

.topbar .language-toggle {
  display: inline-flex !important;
}

.language-toggle button,
.theme-toggle button {
  min-height: 32px;
  padding: 0 12px;
  color: #233047;
  border: 0;
  background: transparent;
  border-radius: 999px;
}

.language-toggle button.active,
.theme-toggle button.active {
  color: #fff;
  background: #1f2b6f;
}

.overview-home {
  overflow: hidden;
  background: #f3f5ff;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(74px, 10vw, 138px) clamp(22px, 8vw, 128px);
  color: #fff;
  background:
    radial-gradient(circle at 72% 38%, rgba(85, 118, 255, 0.45), transparent 32%),
    linear-gradient(135deg, var(--clean-dark), var(--clean-dark-2));
}

.hero-copy {
  max-width: 740px;
}

.home-hero h2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
  white-space: normal;
}

.title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22em;
}

.title-word-c,
.title-word-d {
  color: #45d9ff;
}

.home-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 32px;
}

.hero-actions button {
  min-width: 170px;
  font-weight: 800;
}

.landing-trust-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.landing-trust-row span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #42d7ff;
}

.hero-visual {
  min-width: 0;
}

.hero-window {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(9, 13, 32, 0.96), rgba(57, 42, 118, 0.82));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.window-top i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
}

.window-top i:nth-child(1) { background: #f87171; }
.window-top i:nth-child(2) { background: #facc15; }

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.hero-dashboard-grid article,
.hero-ai-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-dashboard-grid span,
.hero-dashboard-grid small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-dashboard-grid strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 26px;
}

.hero-chart-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 190px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(6, 10, 28, 0.46);
}

.hero-chart-bars i {
  display: block;
  min-height: 32px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #48e1ff, #7257ff);
}

.hero-chart-bars i:nth-child(1) { height: 42%; }
.hero-chart-bars i:nth-child(2) { height: 64%; }
.hero-chart-bars i:nth-child(3) { height: 48%; }
.hero-chart-bars i:nth-child(4) { height: 82%; }
.hero-chart-bars i:nth-child(5) { height: 58%; }
.hero-chart-bars i:nth-child(6) { height: 74%; }

.hero-ai-card {
  margin-top: 18px;
}

.hero-ai-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.landing-system-strip,
.home-kpi-grid,
.product-map-section,
.workflow-band,
.sample-report-section,
.pricing-section,
.landing-final {
  padding: clamp(58px, 8vw, 108px) clamp(22px, 8vw, 128px);
}

.landing-system-strip,
.home-kpi-grid,
.product-map,
.feature-card-grid,
.pricing-grid,
.report-grid,
.chart-grid,
.workspace-dashboard {
  display: grid;
  gap: 22px;
}

.landing-system-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
}

.landing-system-strip article,
.home-kpi-card,
.product-map article,
.feature-card-grid article,
.price-card,
.panel,
.chart-card,
.report-cover,
.report-command-bar,
.sample-report-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: var(--clean-card);
  box-shadow: 0 20px 54px rgba(20, 33, 61, 0.08);
}

.landing-system-strip article,
.home-kpi-card,
.product-map article,
.feature-card-grid article,
.price-card,
.panel {
  padding: 24px;
}

.landing-system-strip span,
.home-kpi-card small,
.product-map span {
  color: var(--clean-blue);
  font-weight: 900;
}

.landing-system-strip strong,
.product-map strong,
.feature-card-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 20px;
}

.landing-system-strip p,
.home-kpi-card p,
.product-map p,
.feature-card-grid p,
.price-card p,
.section-heading p {
  color: var(--clean-muted);
  line-height: 1.75;
}

.home-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f7f8ff;
}

.home-kpi-card strong {
  display: block;
  margin: 10px 0;
  color: #5d52e8;
  font-size: clamp(42px, 5vw, 68px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.landing-final h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.product-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-band {
  color: #fff;
  background: linear-gradient(135deg, #24104f, #160a38);
}

.workflow-band .section-heading p,
.workflow-band-steps p {
  color: rgba(255, 255, 255, 0.72);
}

.workflow-band-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.workflow-band-steps article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.workflow-band-steps i {
  display: block;
  color: rgba(255, 255, 255, 0.24);
  font-size: 52px;
  font-style: normal;
  font-weight: 900;
}

.workflow-band-steps strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 20px;
}

.sample-report-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  padding: 28px;
}

.sample-report-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.feature-card-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card.featured {
  border-color: rgba(46, 103, 255, 0.38);
  box-shadow: 0 28px 70px rgba(46, 103, 255, 0.16);
}

.price-card strong {
  display: block;
  margin: 16px 0;
  font-size: 34px;
}

.landing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: linear-gradient(135deg, #081426, #143d79);
}

.landing-final p {
  color: rgba(255, 255, 255, 0.76);
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 82px);
  background: #eef3f8;
}

.workspace[hidden],
.overview-home[hidden],
.auth-gate[hidden],
.upgrade-modal[hidden],
.portal-page[hidden] {
  display: none !important;
}

.workspace-sidebar {
  position: sticky;
  top: 82px;
  height: calc(100vh - 82px);
  padding: 22px;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.workspace-nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.workspace-nav button {
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  color: var(--clean-muted);
  background: transparent;
  border-color: transparent;
  text-align: left;
}

.workspace-nav button.active,
.workspace-nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--clean-teal), #1769cc);
}

.workspace-main {
  min-width: 0;
  padding: clamp(18px, 3vw, 36px);
}

.workspace-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  margin-bottom: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.workspace-masthead h2 {
  margin: 6px 0;
  font-size: clamp(28px, 4vw, 44px);
}

.workspace-masthead p,
.panel p {
  color: var(--clean-muted);
  line-height: 1.7;
}

.workspace-dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: start;
}

.overview-dashboard {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.overview-dashboard > article:last-child {
  grid-column: 1 / -1;
}

.overview-next-card {
  display: grid;
  gap: 16px;
}

.next-step-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.96));
}

.next-step-box > span {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 12px;
  font-weight: 860;
}

.next-step-box strong {
  color: #071426;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.16;
}

.next-step-box p {
  max-width: 680px;
  margin: 0;
}

.next-step-box button {
  width: max-content;
  min-width: 180px;
}

.overview-status-grid {
  display: grid;
  gap: 10px;
}

.overview-status-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.overview-status-grid span,
.overview-status-grid small {
  color: #526174;
  font-size: 12px;
  line-height: 1.4;
}

.overview-status-grid strong {
  color: #071426;
  font-size: 18px;
}

.checklist.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-dashboard[hidden],
[data-workspace-group][hidden] {
  display: none !important;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2,
.panel h3 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--clean-ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  color: #132033;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.short-textarea {
  min-height: 104px;
}

.wide {
  margin-top: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.metric-row div {
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 143, 131, 0.08);
}

.metric-row span {
  display: block;
  color: var(--clean-muted);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.report-brief-card,
.report-decision-card,
.ai-command-card,
.ai-output-card {
  overflow: hidden;
}

.report-brief-grid,
.report-delivery-grid,
.ai-output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.report-brief-grid div,
.report-delivery-grid div,
.ai-output-block,
.mini-feed div,
.ai-work-order article {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.report-brief-grid span,
.report-delivery-grid span,
.ai-output-block > span,
.mini-feed span,
.ai-work-order span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 9px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  font-size: 11px;
  font-weight: 880;
  line-height: 1.2;
}

.report-brief-grid strong,
.report-delivery-grid strong,
.mini-feed strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.42;
}

.report-brief-grid p,
.report-delivery-grid p,
.ai-output-block p,
.ai-work-order p {
  margin: 8px 0 0;
  color: #526174;
  font-size: 13px;
  line-height: 1.65;
}

.report-delivery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-delivery-grid div.done {
  border-color: rgba(15, 118, 110, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.11), transparent 40%),
    linear-gradient(180deg, #ffffff, #f3fbf8);
}

.report-delivery-grid div.done span {
  color: #ffffff;
  background: #0f766e;
}

.ai-work-order {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ai-output-grid {
  grid-template-columns: 1fr;
}

.ai-output-block.wide {
  grid-column: 1 / -1;
}

.mini-feed {
  display: grid;
  gap: 8px;
}

.mini-feed div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.mini-feed span {
  margin: 0;
}

.report-shell {
  padding: clamp(22px, 4vw, 58px);
  background: #f5f7fb;
}

html.public-landing .report-shell,
html.public-landing .lead-form {
  display: none !important;
}

.report-command-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.report-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.report-nav button {
  min-height: 36px;
  padding: 0 14px;
  color: #1f2b44;
  background: #fff;
}

.report-cover {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  margin-bottom: 18px;
}

.report-cover h2 {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 52px);
}

.report-grid {
  grid-template-columns: 1.25fr 0.8fr 0.95fr;
  margin-bottom: 22px;
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.chart-card {
  padding: 18px;
}

.chart-card canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  background: #fff;
}

.upgrade-modal,
.auth-gate,
.legal-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 10, 22, 0.68);
  backdrop-filter: blur(14px);
}

.upgrade-dialog,
.auth-card,
.legal-card {
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34);
}

.auth-card {
  width: min(460px, 100%);
}

.upgrade-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.upgrade-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #eef2ff;
}

.upgrade-tabs button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.upgrade-tabs button.active {
  color: #fff;
  background: #152669;
}

.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.upgrade-plan {
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  background: #fff;
}

.upgrade-plan.featured {
  border-color: rgba(46, 103, 255, 0.4);
  box-shadow: 0 24px 60px rgba(46, 103, 255, 0.14);
}

.upgrade-price {
  margin: 14px 0;
  font-size: 34px;
  font-weight: 900;
}

.upgrade-price small {
  font-size: 14px;
  color: var(--clean-muted);
}

.upgrade-feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.upgrade-feature-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--clean-muted);
}

.upgrade-feature-list li span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #42d7ff;
}

.upgrade-plan button {
  width: 100%;
  color: #fff;
  background: #111827;
}

.status-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  color: #405268;
  background: rgba(15, 143, 131, 0.08);
  border: 1px solid rgba(15, 143, 131, 0.18);
}

.account-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  display: block !important;
}

html.public-landing .account-dock,
html.auth-locked .account-dock,
html:not(.public-landing) .account-dock {
  display: block !important;
}

.account-dock-toggle,
.account-dock-menu {
  color: #fff;
  background: #202226;
  border-color: rgba(255, 255, 255, 0.12);
}

.account-dock-menu {
  display: grid;
  gap: 4px;
  width: 260px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.account-dock-menu[hidden] {
  display: none !important;
}

.account-dock-menu button {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  color: #fff;
  border: 0;
  background: transparent;
  text-align: left;
}

.account-dock-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: auto !important;
  min-width: 172px;
  height: auto !important;
  padding: 10px 14px;
}

@media (max-width: 1080px) {
  .home-hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .workspace-nav {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
  }

  .landing-system-strip,
  .product-map,
  .workflow-band-steps,
  .feature-card-grid,
  .pricing-grid,
  .report-grid,
  .chart-grid,
  .upgrade-plans,
  .workspace-dashboard {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav-links {
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
  }

  .home-hero h2 {
    font-size: clamp(38px, 15vw, 62px);
  }

  .title-line {
    display: block;
  }

  .landing-system-strip,
  .home-kpi-grid,
  .product-map,
  .workflow-band-steps,
  .feature-card-grid,
  .pricing-grid,
  .sample-report-card,
  .report-command-bar,
  .report-grid,
  .chart-grid,
  .upgrade-plans,
  .workspace-dashboard,
  .form-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .workspace-masthead,
  .landing-final,
  .report-cover {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Usage and billing quota state */
.usage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
  display: grid;
  gap: 12px;
}

.usage-card-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.usage-card-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.usage-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.usage-card-head strong {
  color: var(--text);
  font-size: 18px;
}

.usage-card-head b {
  color: inherit;
}

.usage-progress {
  height: 9px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.usage-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .28s ease;
}

.compact-status.warn {
  border-color: rgba(217, 119, 6, .38);
  background: rgba(217, 119, 6, .09);
}

.compact-status.error {
  border-color: rgba(220, 38, 38, .42);
  background: rgba(220, 38, 38, .09);
}

@media (max-width: 720px) {
  .usage-card-head {
    grid-template-columns: 1fr;
  }
}

/* Contrast pass: public launch visual polish for light/dark backgrounds. */
:root {
  --text: #102033;
  --text-strong: #071426;
  --text-soft: #526174;
  --text-muted: #637287;
  --bg-page: #f4f7fb;
  --bg-page-dark: #0d1117;
  --panel: #ffffff;
  --panel-dark: #181d25;
  --panel-soft: #f8fbfd;
  --line-soft: rgba(15, 23, 42, 0.1);
  --line-dark: rgba(226, 232, 240, 0.16);
  --accent: #0f766e;
  --accent-2: #2563eb;
  --accent-strong: #174ea6;
  --accent-purple: #6d28d9;
  --focus-ring: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

html.theme-light body,
html.theme-light:not(.public-landing) .workspace,
html.theme-light:not(.public-landing) .report-shell {
  color: #102033;
  background:
    radial-gradient(circle at 8% -8%, rgba(20, 184, 166, 0.13), transparent 30%),
    linear-gradient(135deg, #f7fafc 0%, #eef4f8 52%, #ffffff 100%);
}

html.theme-dark body,
html.theme-dark:not(.public-landing) .workspace,
html.theme-dark:not(.public-landing) .report-shell {
  color: #edf4ff;
  background:
    radial-gradient(circle at 12% -10%, rgba(20, 184, 166, 0.18), transparent 34%),
    linear-gradient(135deg, #0b1015 0%, #14181f 50%, #1f242d 100%);
}

html.public-landing body {
  color: #071426;
  background: #f4f7fb;
}

body {
  color: var(--text);
}

html.public-landing .topbar {
  color: #071426;
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

html.public-landing .landing-nav-links a,
html.public-landing .topbar h1,
html.public-landing .topbar .eyebrow,
html.public-landing .topbar .ghost,
html.public-landing .language-toggle button {
  color: #071426;
}

html.public-landing .landing-nav-links a:hover {
  color: #174ea6;
}

html.public-landing .topbar .ghost {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.16);
}

.ghost,
button.ghost,
.file-button {
  color: #102033;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html.public-landing .topbar .ghost:hover,
html.theme-light .ghost:hover,
.ghost:hover {
  color: #071426;
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.primary,
html.public-landing .topbar .primary,
html.public-landing .home-hero .primary,
html.public-landing .landing-bottom-start {
  color: #ffffff;
  background: linear-gradient(135deg, #174ea6, #6d28d9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.primary:hover,
html.public-landing .topbar .primary:hover,
html.public-landing .home-hero .primary:hover,
html.public-landing .landing-bottom-start:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #123d82, #581cbd);
}

.home-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 34%, rgba(56, 189, 248, 0.32), transparent 30%),
    radial-gradient(circle at 25% 18%, rgba(139, 92, 246, 0.24), transparent 28%),
    linear-gradient(135deg, #130b36 0%, #111f5a 56%, #06243a 100%);
}

.home-hero p:not(.eyebrow),
.landing-trust-row {
  color: rgba(255, 255, 255, 0.9);
}

.home-hero .eyebrow,
.landing-kicker {
  color: #67e8f9;
}

.home-hero .ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.home-hero .ghost:hover {
  color: #071426;
  background: #ffffff;
  border-color: #ffffff;
}

.landing-system-strip,
.sample-report-section,
.pricing-section,
.product-map-section {
  background: #f7f9fc;
}

.landing-system-strip article,
.home-kpi-card,
.product-map article,
.feature-card-grid article,
.price-card,
.panel,
.chart-card,
.report-cover,
.report-command-bar,
.sample-report-card,
.workspace-masthead,
.upgrade-dialog,
.auth-card,
.legal-card {
  color: #102033;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.13);
}

.landing-system-strip p,
.home-kpi-card p,
.product-map p,
.feature-card-grid p,
.price-card p,
.section-heading p,
.workspace-masthead p,
.panel p,
.sample-report-card p,
.upgrade-feature-list li,
.status-panel,
.metric-row span {
  color: #526174;
}

.section-heading h2,
.section-heading strong,
.landing-system-strip strong,
.product-map strong,
.feature-card-grid strong,
.price-card h4,
.price-card strong,
.panel h2,
.panel h3,
.workspace-masthead h2,
.sample-report-card strong,
label {
  color: #071426;
}

input,
select,
textarea {
  color: #102033;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: #6b7a90;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: var(--focus-ring);
}

.workspace {
  background: #edf3f8;
}

.workspace-main,
.workspace-dashboard {
  color: #102033;
}

.workspace-sidebar {
  color: #102033;
  background: #ffffff;
  border-right-color: rgba(15, 23, 42, 0.12);
}

.workspace-nav button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: start;
  color: #42536a;
  background: transparent;
  border-color: transparent;
  line-height: 1.25;
  text-align: left;
}

.workspace-nav button::before {
  width: 28px;
  height: 28px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.11);
  border: 1px solid rgba(20, 184, 166, 0.18);
}

.workspace-nav button.active,
.workspace-nav button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

html.theme-dark:not(.public-landing) .workspace-sidebar,
html.theme-dark:not(.public-landing) .workspace-masthead,
html.theme-dark:not(.public-landing) .panel,
html.theme-dark:not(.public-landing) .chart-card,
html.theme-dark:not(.public-landing) .report-cover,
html.theme-dark:not(.public-landing) .report-command-bar,
html.theme-dark:not(.public-landing) .sample-report-card,
html.theme-dark:not(.public-landing) .upgrade-dialog,
html.theme-dark:not(.public-landing) .auth-card,
html.theme-dark:not(.public-landing) .legal-card,
html.theme-dark:not(.public-landing) .upgrade-plan {
  color: #edf4ff;
  background: #181d25;
  border-color: rgba(226, 232, 240, 0.14);
}

html.theme-dark:not(.public-landing) .panel p,
html.theme-dark:not(.public-landing) .workspace-masthead p,
html.theme-dark:not(.public-landing) .status-panel,
html.theme-dark:not(.public-landing) .metric-row span,
html.theme-dark:not(.public-landing) .upgrade-feature-list li,
html.theme-dark:not(.public-landing) .upgrade-price small,
html.theme-dark:not(.public-landing) .usage-card-head span {
  color: #b7c4d6;
}

html.theme-dark:not(.public-landing) .section-heading h2,
html.theme-dark:not(.public-landing) .panel h2,
html.theme-dark:not(.public-landing) .panel h3,
html.theme-dark:not(.public-landing) .workspace-masthead h2,
html.theme-dark:not(.public-landing) label,
html.theme-dark:not(.public-landing) .price-card strong,
html.theme-dark:not(.public-landing) .upgrade-plan strong,
html.theme-dark:not(.public-landing) .usage-card-head strong {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) .usage-card {
  color: #edf4ff;
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(18, 24, 34, 0.96));
}

html.theme-dark:not(.public-landing) .usage-card-head div {
  color: #edf4ff;
}

html.theme-dark:not(.public-landing) .usage-card-head span {
  color: #9fb2c8;
}

html.theme-dark:not(.public-landing) .usage-card-head strong,
html.theme-dark:not(.public-landing) .usage-card-head b {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) .usage-progress {
  background: rgba(148, 163, 184, 0.18);
}

html.theme-dark:not(.public-landing) .usage-card .compact-status {
  color: #dce8f7;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
}

html.theme-dark:not(.public-landing) .usage-card .compact-status strong {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) .usage-card .compact-status span {
  color: #b7c4d6;
}

html.theme-dark:not(.public-landing) .usage-card .compact-status.error {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.18);
}

html.theme-dark:not(.public-landing) input,
html.theme-dark:not(.public-landing) select,
html.theme-dark:not(.public-landing) textarea {
  color: #f8fbff;
  background: #0f141b;
  border-color: rgba(226, 232, 240, 0.2);
}

html.theme-dark:not(.public-landing) input::placeholder,
html.theme-dark:not(.public-landing) textarea::placeholder {
  color: #9aa8ba;
}

html.theme-dark:not(.public-landing) .ghost {
  color: #f8fbff;
  background: #222936;
  border-color: rgba(226, 232, 240, 0.2);
}

html.theme-dark:not(.public-landing) .ghost:hover {
  color: #ffffff;
  background: #2b3444;
  border-color: rgba(96, 165, 250, 0.48);
}

html.theme-dark:not(.public-landing) .workspace-nav button {
  color: #c9d5e5;
}

html.theme-dark:not(.public-landing) .workspace-nav button::before {
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.13);
  border-color: rgba(94, 234, 212, 0.22);
}

html.theme-dark:not(.public-landing) .workspace-nav button.active,
html.theme-dark:not(.public-landing) .workspace-nav button:hover {
  color: #ffffff;
}

html.theme-dark:not(.public-landing) .report-nav button,
html.theme-dark:not(.public-landing) .upgrade-tabs button,
html.theme-dark:not(.public-landing) .language-toggle button,
html.theme-dark:not(.public-landing) .theme-toggle button {
  color: #dce8f7;
}

html.theme-dark:not(.public-landing) .chart-stat-grid div {
  border-color: rgba(226, 232, 240, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

html.theme-dark:not(.public-landing) .chart-stat-grid span,
html.theme-dark:not(.public-landing) .chart-note {
  color: #b7c4d6;
}

html.theme-dark:not(.public-landing) .chart-stat-grid em {
  color: #8fa0b6;
}

html.theme-dark:not(.public-landing) .chart-stat-grid strong {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) .chart-stat-grid .good {
  border-color: rgba(94, 234, 212, 0.22);
  background: rgba(20, 184, 166, 0.1);
}

html.theme-dark:not(.public-landing) .chart-stat-grid .warn {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.1);
}

html.theme-dark:not(.public-landing) .chart-card canvas {
  border-color: rgba(226, 232, 240, 0.12);
  background: #101720;
  box-shadow: none;
}

html.theme-dark:not(.public-landing) .table-wrap {
  border-color: rgba(226, 232, 240, 0.12);
  background: #111821;
  box-shadow: none;
}

html.theme-dark:not(.public-landing) th {
  color: #9fb0c6;
  background: #17212c;
}

html.theme-dark:not(.public-landing) td {
  border-bottom-color: rgba(226, 232, 240, 0.1);
  color: #dce8f7;
}

html.theme-dark:not(.public-landing) td.num {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) tbody tr:hover td {
  background: rgba(45, 212, 191, 0.07);
}

html.theme-dark:not(.public-landing) tbody tr.is-weak td {
  background: rgba(245, 158, 11, 0.1);
}

html.theme-dark:not(.public-landing) tbody tr.is-weak:hover td {
  background: rgba(245, 158, 11, 0.14);
}

html.theme-dark:not(.public-landing) td.is-best {
  color: #5eead4;
}

html.theme-dark:not(.public-landing) td.is-warn {
  color: #fbbf24;
}

html.theme-dark:not(.public-landing) .table-badge {
  border-color: rgba(226, 232, 240, 0.14);
  color: #dce8f7;
  background: rgba(255, 255, 255, 0.06);
}

html.theme-dark:not(.public-landing) .table-badge.good {
  border-color: rgba(94, 234, 212, 0.22);
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.12);
}

html.theme-dark:not(.public-landing) .table-badge.warn {
  border-color: rgba(251, 191, 36, 0.24);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

html.theme-dark:not(.public-landing) .report-brief-grid div,
html.theme-dark:not(.public-landing) .report-delivery-grid div,
html.theme-dark:not(.public-landing) .ai-output-block,
html.theme-dark:not(.public-landing) .mini-feed div,
html.theme-dark:not(.public-landing) .ai-work-order article {
  border-color: rgba(226, 232, 240, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
}

html.theme-dark:not(.public-landing) .report-brief-grid span,
html.theme-dark:not(.public-landing) .report-delivery-grid span,
html.theme-dark:not(.public-landing) .ai-output-block > span,
html.theme-dark:not(.public-landing) .mini-feed span,
html.theme-dark:not(.public-landing) .ai-work-order span {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.14);
}

html.theme-dark:not(.public-landing) .report-brief-grid strong,
html.theme-dark:not(.public-landing) .report-delivery-grid strong,
html.theme-dark:not(.public-landing) .mini-feed strong {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) .report-brief-grid p,
html.theme-dark:not(.public-landing) .report-delivery-grid p,
html.theme-dark:not(.public-landing) .ai-output-block p,
html.theme-dark:not(.public-landing) .ai-work-order p {
  color: #b7c4d6;
}

html.theme-dark:not(.public-landing) .report-delivery-grid div.done {
  border-color: rgba(94, 234, 212, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.035));
}

html.theme-dark:not(.public-landing) .report-delivery-grid div.done span {
  color: #082f2c;
  background: #99f6e4;
}

html.theme-dark:not(.public-landing) .next-step-box {
  border-color: rgba(94, 234, 212, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

html.theme-dark:not(.public-landing) .next-step-box > span {
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.13);
}

html.theme-dark:not(.public-landing) .next-step-box strong,
html.theme-dark:not(.public-landing) .overview-status-grid strong {
  color: #f8fbff;
}

html.theme-dark:not(.public-landing) .overview-status-grid div {
  border-color: rgba(226, 232, 240, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

html.theme-dark:not(.public-landing) .overview-status-grid span,
html.theme-dark:not(.public-landing) .overview-status-grid small {
  color: #b7c4d6;
}

html.theme-dark:not(.public-landing) .upgrade-tabs button.active,
html.theme-dark:not(.public-landing) .language-toggle button.active,
html.theme-dark:not(.public-landing) .theme-toggle button.active {
  color: #ffffff;
  background: #2563eb;
}

html.theme-light:not(.public-landing) .language-toggle button,
html.theme-light:not(.public-landing) .theme-toggle button {
  color: #334155;
}

html.theme-light:not(.public-landing) .language-toggle button.active,
html.theme-light:not(.public-landing) .theme-toggle button.active {
  color: #ffffff;
  background: #174ea6;
}

.account-dock-toggle,
.account-dock-menu {
  color: #f8fbff;
  background: #171a21;
  border-color: rgba(255, 255, 255, 0.16);
}

.account-dock-menu button {
  color: #f8fbff;
}

.account-dock-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  html.public-landing .home-hero h2 {
    font-size: clamp(38px, 13vw, 58px);
    line-height: 1.05;
  }

  html.public-landing .home-hero p:not(.eyebrow) {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
  }

  html.public-landing .topbar {
    background: rgba(255, 255, 255, 0.99);
  }

  .chart-stat-grid {
    grid-template-columns: 1fr;
  }

  .report-brief-grid,
  .report-delivery-grid,
  .ai-output-grid,
  .ai-work-order {
    grid-template-columns: 1fr;
  }

  .mini-feed div {
    grid-template-columns: 1fr;
  }

  .overview-dashboard,
  .checklist.compact {
    grid-template-columns: 1fr;
  }

  .next-step-box button {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  html:not(.public-landing) .workspace-nav {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  html:not(.public-landing) .workspace-nav {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
}

/* Hero readability fix: keep white launch copy readable on every public theme. */
html.public-landing .home-hero {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.2), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(99, 102, 241, 0.28), transparent 34%),
    linear-gradient(135deg, #0b1026 0%, #13256d 52%, #071827 100%) !important;
}

html.public-landing .home-hero h2,
html.public-landing .home-hero h2 .title-word-a,
html.public-landing .home-hero h2 .title-word-b {
  color: #ffffff !important;
  text-shadow: 0 10px 34px rgba(2, 6, 23, 0.38);
}

html.public-landing .home-hero h2 .title-word-c,
html.public-landing .home-hero h2 .title-word-d {
  color: #45d9ff !important;
  text-shadow: 0 10px 34px rgba(2, 6, 23, 0.26);
}

html.public-landing .home-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 8px 26px rgba(2, 6, 23, 0.24);
}

html.public-landing .home-hero .eyebrow {
  color: #9ffbf1 !important;
  background: rgba(20, 184, 166, 0.13);
  border-color: rgba(153, 246, 228, 0.26);
}

html.public-landing .home-hero .ghost {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

html.public-landing .home-hero .ghost:hover {
  color: #071426 !important;
  background: #ffffff !important;
}

html.public-landing .landing-trust-row span {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Workflow readability fix: prevent white process copy from sitting on pale backgrounds. */
html.public-landing .landing-workflow-band {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 212, 191, 0.18), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.2), transparent 34%),
    linear-gradient(135deg, #0c1024 0%, #1a1550 54%, #081827 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.28) !important;
}

html.public-landing .workflow-band-copy span,
html.public-landing .workflow-band-copy strong,
html.public-landing .workflow-band-copy p {
  color: #ffffff !important;
}

html.public-landing .workflow-band-copy span {
  color: #67e8f9 !important;
}

html.public-landing .workflow-band-copy p {
  color: rgba(226, 232, 240, 0.86) !important;
}

html.public-landing .workflow-band-steps article,
html.public-landing .modern-flow-grid article {
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.public-landing .workflow-band-steps i,
html.public-landing .modern-flow-grid i {
  color: #071426 !important;
  background: linear-gradient(135deg, #99f6e4, #67e8f9) !important;
  box-shadow: 0 14px 32px rgba(45, 212, 191, 0.22) !important;
}

html.public-landing .workflow-band-steps span,
html.public-landing .modern-flow-grid span {
  color: #9ffbf1 !important;
}

html.public-landing .workflow-band-steps strong,
html.public-landing .modern-flow-grid strong {
  color: #ffffff !important;
  text-shadow: 0 8px 28px rgba(2, 6, 23, 0.24);
}

html.public-landing .workflow-band-steps small,
html.public-landing .modern-flow-grid p {
  color: rgba(226, 232, 240, 0.86) !important;
}

/* Workflow section fix: this is the visible #workflow block shown below the hero. */
html.public-landing #workflow.product-map-section {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(45, 212, 191, 0.16), transparent 30%),
    radial-gradient(circle at 88% 28%, rgba(96, 165, 250, 0.2), transparent 32%),
    linear-gradient(135deg, #0b1026 0%, #17194a 55%, #071827 100%) !important;
}

html.public-landing #workflow .section-heading .landing-kicker {
  color: #67e8f9 !important;
}

html.public-landing #workflow .section-heading h2 {
  color: #ffffff !important;
  text-shadow: 0 10px 34px rgba(2, 6, 23, 0.3);
}

html.public-landing #workflow .section-heading p:not(.landing-kicker) {
  color: rgba(226, 232, 240, 0.86) !important;
}

html.public-landing #workflow .workflow-band-steps article {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)) !important;
  border-color: rgba(153, 246, 228, 0.2) !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.24) !important;
}

html.public-landing #workflow .workflow-band-steps article::after {
  border-color: rgba(103, 232, 249, 0.18) !important;
  opacity: 0.65 !important;
}

html.public-landing #workflow .workflow-band-steps i {
  color: #071426 !important;
  background: linear-gradient(135deg, #99f6e4, #67e8f9) !important;
}

html.public-landing #workflow .workflow-band-steps span {
  color: #9ffbf1 !important;
}

html.public-landing #workflow .workflow-band-steps strong {
  color: #ffffff !important;
  text-shadow: 0 8px 28px rgba(2, 6, 23, 0.24);
}

html.public-landing #workflow .workflow-band-steps p,
html.public-landing #workflow .workflow-band-steps small {
  color: rgba(226, 232, 240, 0.88) !important;
}

/* Header interaction and contrast fixes. */
.marketing-topbar .brand-block {
  cursor: pointer;
  text-decoration: none;
}

.marketing-topbar .brand-block:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.9);
  outline-offset: 4px;
}

html.public-landing .marketing-topbar .landing-nav-links a,
.marketing-topbar .landing-nav-links a {
  color: #ffffff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

html.public-landing .marketing-topbar .landing-nav-links a:hover,
.marketing-topbar .landing-nav-links a:hover {
  color: #7dd3fc !important;
}

.marketing-topbar .language-toggle {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.marketing-topbar .language-toggle button {
  color: #061946 !important;
}

.marketing-topbar .language-toggle button.active {
  color: #ffffff !important;
  background: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
}

html.public-landing .marketing-topbar .language-toggle button:not(.active),
.marketing-topbar .language-toggle button:not(.active) {
  color: #06111f !important;
  background: transparent !important;
  opacity: 1 !important;
}

html.public-landing .marketing-topbar .language-toggle button:not(.active):hover,
.marketing-topbar .language-toggle button:not(.active):hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.08) !important;
}

html.public-landing .marketing-topbar .language-toggle button.active,
.marketing-topbar .language-toggle button.active {
  color: #ffffff !important;
}

/* Workspace sidebar layout repair: keep the case menu compact on tablet/mobile. */
html:not(.public-landing) .workspace-sidebar {
  box-sizing: border-box;
}

html:not(.public-landing) .workspace-sidebar .workspace-nav {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

html:not(.public-landing) .workspace-sidebar .workspace-nav button {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: start;
  column-gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 9px 12px !important;
  overflow: hidden;
  text-align: left;
}

html:not(.public-landing) .workspace-sidebar .workspace-nav button::before {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center;
  align-self: center;
  transform: none !important;
  margin: 0 !important;
}

@media (max-width: 1080px) {
  html:not(.public-landing) .workspace-sidebar {
    position: relative !important;
    top: auto !important;
    display: grid;
    grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
    gap: 14px;
    height: auto !important;
    max-height: none;
    overflow: visible;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  }

  html:not(.public-landing) .workspace-sidebar .brand-block.compact {
    align-self: start;
    min-width: 0;
  }

  html:not(.public-landing) .workspace-sidebar .workspace-nav {
    position: static !important;
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 1fr)) !important;
    gap: 8px;
    margin: 0;
    padding: 8px;
    overflow: visible;
  }

  html:not(.public-landing) .workspace-sidebar .workspace-nav button {
    min-height: 44px !important;
    padding: 9px 10px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px;
    white-space: normal;
  }

  html:not(.public-landing) .workspace-sidebar .workspace-focus-card {
    grid-column: 1;
    margin: 0;
    padding: 14px;
  }
}

@media (max-width: 720px) {
  html:not(.public-landing) .workspace-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px;
  }

  html:not(.public-landing) .workspace-sidebar .brand-block.compact {
    width: 100%;
  }

  html:not(.public-landing) .workspace-sidebar .workspace-nav {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-radius: 16px;
  }

  html:not(.public-landing) .workspace-sidebar .workspace-nav button {
    min-height: 42px !important;
    border-radius: 12px;
    font-size: 13px;
  }

  html:not(.public-landing) .workspace-sidebar .workspace-nav button::before {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 10px;
  }

html:not(.public-landing) .workspace-sidebar .workspace-focus-card {
    grid-column: 1;
  }
}

/* Trust settings contrast repair. */
html.theme-dark:not(.public-landing) .workspace .consent-list label {
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.08), transparent 36%),
    rgba(15, 23, 42, 0.88) !important;
}

html.theme-dark:not(.public-landing) .workspace .consent-list label span {
  color: #f8fbff !important;
  opacity: 1 !important;
}

html.theme-dark:not(.public-landing) .workspace .consent-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2dd4bf;
}

html.theme-light:not(.public-landing) .workspace .consent-list label {
  color: #102033 !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html.theme-light:not(.public-landing) .workspace .consent-list label span {
  color: #102033 !important;
}

/* AI intake assistant: make the primary workflow feel like a simple chat box. */
html:not(.public-landing) .ai-intake-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border-color: rgba(45, 212, 191, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.9)) !important;
}

html:not(.public-landing) .assistant-badge {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.ai-intake-chat {
  display: grid;
  gap: 14px;
}

.ai-intake-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ai-intake-message span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #06111f;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  font-size: 12px;
  font-weight: 950;
}

.ai-intake-message p {
  margin: 0;
  color: #e5eef8 !important;
  line-height: 1.75;
}

.ai-intake-input {
  display: grid;
  gap: 8px;
}

.ai-intake-input > span {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 850;
}

.ai-intake-input textarea {
  min-height: 136px;
}

.ai-intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ai-intake-actions .primary,
.ai-intake-actions .ghost,
.ai-intake-actions .file-button {
  width: auto;
  min-height: 42px;
}

.ai-intake-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-intake-result:empty {
  display: none;
}

.ai-intake-result div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.18);
}

.ai-intake-result span {
  display: block;
  margin-bottom: 6px;
  color: #8bd8ff;
  font-size: 12px;
  font-weight: 850;
}

.ai-intake-result strong {
  display: block;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 15px;
}

html.theme-light:not(.public-landing) .ai-intake-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff, #f3f8fb) !important;
}

html.theme-light:not(.public-landing) .assistant-badge {
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.22);
}

html.theme-light:not(.public-landing) .ai-intake-message {
  background: #f8fbfd;
  border-color: rgba(15, 23, 42, 0.12);
}

html.theme-light:not(.public-landing) .ai-intake-message p,
html.theme-light:not(.public-landing) .ai-intake-input > span,
html.theme-light:not(.public-landing) .ai-intake-result strong {
  color: #102033 !important;
}

html.theme-light:not(.public-landing) .ai-intake-result div {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

html:not(.public-landing) .workspace-nav button[hidden] {
  display: none !important;
}

html:not(.public-landing) .workspace-nav button[data-workspace-view="settings"]::before {
  content: "07" !important;
}

@media (max-width: 900px) {
  .ai-intake-result {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ai-intake-message {
    grid-template-columns: 1fr;
  }

  .ai-intake-actions .primary,
  .ai-intake-actions .ghost,
  .ai-intake-actions .file-button {
    width: 100%;
  }

  .ai-intake-result {
    grid-template-columns: 1fr;
  }
}

/* Simplified workspace: AI intake is now the primary navigation. */
html:not(.public-landing) .workspace {
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: start;
  gap: 24px;
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
}

html:not(.public-landing) .workspace-sidebar {
  display: flex !important;
  position: sticky;
  top: 88px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-height: calc(100vh - 112px);
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(13, 20, 30, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

html:not(.public-landing) .workspace-sidebar-head {
  display: grid;
  gap: 5px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

html:not(.public-landing) .workspace-sidebar-head span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

html:not(.public-landing) .workspace-sidebar-head strong {
  color: #f8fafc;
  font-size: 18px;
}

html:not(.public-landing) .workspace-sidebar-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

html:not(.public-landing) .workspace-nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.public-landing) .workspace-nav button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px !important;
  text-align: left;
  color: #cbd5e1 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
}

html:not(.public-landing) .workspace-nav button::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  color: #99f6e4 !important;
  background: rgba(20, 184, 166, 0.14) !important;
  border: 1px solid rgba(45, 212, 191, 0.26) !important;
  font-size: 11px !important;
  font-weight: 800;
}

html:not(.public-landing) .workspace-nav button span {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: inherit;
  font-weight: 800;
}

html:not(.public-landing) .workspace-nav button small {
  grid-column: 2;
  grid-row: 2;
  color: #8190a5;
  font-size: 11px;
  line-height: 1.35;
}

html:not(.public-landing) .workspace-nav button:hover,
html:not(.public-landing) .workspace-nav button.active {
  color: #ffffff !important;
  border-color: rgba(45, 212, 191, 0.34) !important;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25), rgba(14, 165, 233, 0.18)) !important;
}

html:not(.public-landing) .workspace-nav button.active::before {
  color: #062b32 !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  border-color: transparent !important;
}

html.theme-light:not(.public-landing) .workspace-sidebar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.13);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html.theme-light:not(.public-landing) .workspace-sidebar-head strong {
  color: #0f172a;
}

html.theme-light:not(.public-landing) .workspace-sidebar-head p,
html.theme-light:not(.public-landing) .workspace-nav button small {
  color: #64748b;
}

html.theme-light:not(.public-landing) .workspace-nav button {
  color: #334155 !important;
}

html.theme-light:not(.public-landing) .workspace-nav button:hover,
html.theme-light:not(.public-landing) .workspace-nav button.active {
  color: #0f172a !important;
}

html:not(.public-landing) .workspace-main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-right: clamp(18px, 3vw, 36px) !important;
  padding-left: clamp(18px, 3vw, 36px) !important;
}

html:not(.public-landing) .workspace-masthead {
  align-items: flex-start;
}

html:not(.public-landing) .workspace-masthead #viewMastheadStep,
html:not(.public-landing) .workspace-masthead .masthead-status {
  display: none !important;
}

html:not(.public-landing) .overview-next-card[hidden] {
  display: none !important;
}

/* Content rhythm repair: align workspace and generated report edges. */
html:not(.public-landing) .report-shell {
  box-sizing: border-box;
  width: min(1320px, calc(100% - clamp(28px, 6vw, 96px))) !important;
  margin: clamp(18px, 3vw, 36px) auto 0 !important;
  padding: clamp(18px, 3vw, 36px) !important;
  border-radius: 22px !important;
}

html:not(.public-landing) .report-command-bar,
html:not(.public-landing) .report-nav,
html:not(.public-landing) .report-cover,
html:not(.public-landing) .report-grid,
html:not(.public-landing) .chart-grid,
html:not(.public-landing) .report-shell > .panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html:not(.public-landing) .report-nav {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 720px) {
  html:not(.public-landing) .workspace {
    grid-template-columns: 1fr !important;
    width: calc(100% - 24px);
    gap: 14px;
  }

  html:not(.public-landing) .workspace-sidebar {
    position: static;
    max-height: none;
    padding: 12px;
    overflow: visible;
  }

  html:not(.public-landing) .workspace-sidebar-head {
    display: none;
  }

  html:not(.public-landing) .workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html:not(.public-landing) .workspace-nav button {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 54px;
    padding: 8px !important;
  }

  html:not(.public-landing) .workspace-nav button small {
    display: none;
  }

  html:not(.public-landing) .workspace-main,
  html:not(.public-landing) .report-shell {
    width: calc(100% - 24px) !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

/* Final workspace density override. */
html:not(.public-landing) .overview-dashboard,
html:not(.public-landing) [data-workspace-group="report"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

html:not(.public-landing) .overview-dashboard > article,
html:not(.public-landing) [data-workspace-group="report"] > article {
  grid-column: 1 / -1 !important;
  width: 100%;
}

html:not(.public-landing) .overview-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html:not(.public-landing) .overview-status-grid > div {
  min-height: 112px;
  align-content: start;
}

html:not(.public-landing) .overview-dashboard > article:last-child #homeFeed,
html:not(.public-landing) .overview-dashboard > article:last-child #homeNextActions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html:not(.public-landing) .overview-dashboard > article:last-child #homeFeed > div,
html:not(.public-landing) .overview-dashboard > article:last-child #homeNextActions > div {
  min-width: 0;
  min-height: 88px;
  align-content: center;
}

html:not(.public-landing) .report-brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html:not(.public-landing) .report-delivery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html:not(.public-landing) .report-brief-grid > div,
html:not(.public-landing) .report-delivery-grid > div {
  height: 100% !important;
  min-height: 132px;
  align-content: start;
}

@media (max-width: 980px) {
  html:not(.public-landing) .overview-status-grid,
  html:not(.public-landing) .overview-dashboard > article:last-child #homeFeed,
  html:not(.public-landing) .overview-dashboard > article:last-child #homeNextActions,
  html:not(.public-landing) .report-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:not(.public-landing) .report-brief-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html:not(.public-landing) .overview-status-grid,
  html:not(.public-landing) .overview-dashboard > article:last-child #homeFeed,
  html:not(.public-landing) .overview-dashboard > article:last-child #homeNextActions,
  html:not(.public-landing) .report-delivery-grid {
    grid-template-columns: 1fr;
  }
}

/* AI workspace: stack primary tools and use the full result width. */
html:not(.public-landing) [data-workspace-group="ai"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

html:not(.public-landing) [data-workspace-group="ai"] > article {
  grid-column: 1 / -1 !important;
  width: 100%;
}

html:not(.public-landing) [data-workspace-group="ai"] .ai-output-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

html:not(.public-landing) [data-workspace-group="ai"] .ai-output-block,
html:not(.public-landing) [data-workspace-group="ai"] .ai-output-block.wide {
  grid-column: auto;
  margin-top: 0 !important;
  min-height: 132px;
  height: 100% !important;
  align-content: start;
}

@media (max-width: 980px) {
  html:not(.public-landing) [data-workspace-group="ai"] .ai-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html:not(.public-landing) [data-workspace-group="ai"] .ai-output-grid,
  html:not(.public-landing) [data-workspace-group="ai"] .ai-work-order {
    grid-template-columns: 1fr;
  }
}

/* Chat-style AI intake workspace. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html:not(.public-landing) .ai-intake-panel {
  padding: 0 !important;
  background: #111821 !important;
}

html:not(.public-landing) .ai-intake-panel > .panel-head {
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

html:not(.public-landing) .assistant-badge {
  gap: 7px;
}

html:not(.public-landing) .assistant-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

html:not(.public-landing) .ai-intake-chat {
  display: block;
}

.ai-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 360px;
  max-height: 560px;
  padding: 28px clamp(18px, 5vw, 72px);
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.ai-chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(820px, 100%);
}

.ai-chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
  width: min(680px, 88%);
}

.ai-chat-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #06202a;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  font-size: 11px;
  font-weight: 900;
}

.ai-chat-message.user .ai-chat-avatar {
  color: #eef6ff;
  background: #334155;
}

.ai-chat-bubble {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 4px 16px 16px 16px;
  color: #e5edf7;
  background: rgba(30, 41, 59, 0.72);
}

.ai-chat-message.user .ai-chat-bubble {
  border-radius: 16px 4px 16px 16px;
  background: #263244;
}

.ai-chat-bubble strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
  font-size: 15px;
}

.ai-chat-bubble p {
  margin: 0;
  color: #d5deea !important;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-chat-suggestions button,
.ai-example-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  color: #cbd5e1;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.ai-chat-suggestions button:hover,
.ai-example-button:hover {
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(20, 184, 166, 0.1);
}

.ai-chat-analysis[hidden] {
  display: none !important;
}

.ai-chat-analysis .ai-chat-bubble {
  width: 100%;
}

.ai-chat-analysis .ai-intake-result {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.ai-chat-analysis .ai-intake-result div {
  background: rgba(2, 6, 23, 0.25);
}

.ai-chat-next {
  width: auto;
  margin-top: 14px;
}

.ai-chat-status {
  margin: 0 clamp(18px, 5vw, 72px) 16px;
}

.ai-chat-status:empty {
  display: none;
}

.ai-chat-composer {
  margin: 0 clamp(18px, 5vw, 72px) 24px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  background: #1a2330;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.ai-chat-composer textarea {
  display: block;
  width: 100%;
  min-height: 78px;
  max-height: 220px;
  padding: 8px 10px;
  resize: vertical;
  border: 0 !important;
  outline: 0;
  color: #f8fafc !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ai-chat-composer textarea::placeholder {
  color: #8290a3;
}

.ai-chat-composer-footer,
.ai-chat-tools {
  display: flex;
  gap: 9px;
  align-items: center;
}

.ai-chat-composer-footer {
  justify-content: space-between;
  padding-top: 8px;
}

.ai-chat-tools {
  min-width: 0;
  flex-wrap: wrap;
}

.ai-attach-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  color: #dbe7f4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.ai-attach-button span {
  font-size: 18px;
  line-height: 0;
}

.ai-attach-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ai-file-name {
  max-width: 210px;
  overflow: hidden;
  color: #8290a3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-send-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  min-width: 142px;
  min-height: 40px;
  padding: 8px 10px 8px 16px;
}

.ai-send-button b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #0c2731;
  background: rgba(255, 255, 255, 0.86);
}

.ai-send-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.ai-chat-attachment {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.12);
}

html.theme-light:not(.public-landing) .ai-intake-panel {
  background: #ffffff !important;
}

html.theme-light:not(.public-landing) .ai-chat-bubble,
html.theme-light:not(.public-landing) .ai-chat-composer {
  border-color: rgba(15, 23, 42, 0.14);
  background: #f4f7fa;
}

html.theme-light:not(.public-landing) .ai-chat-message.user .ai-chat-bubble {
  background: #e8eef5;
}

html.theme-light:not(.public-landing) .ai-chat-bubble strong,
html.theme-light:not(.public-landing) .ai-chat-bubble p,
html.theme-light:not(.public-landing) .ai-chat-composer textarea {
  color: #102033 !important;
}

html.theme-light:not(.public-landing) .ai-chat-suggestions button,
html.theme-light:not(.public-landing) .ai-example-button,
html.theme-light:not(.public-landing) .ai-attach-button {
  color: #334155;
  border-color: rgba(15, 23, 42, 0.16);
}

@media (max-width: 640px) {
  .ai-chat-thread {
    min-height: 320px;
    padding: 20px 14px;
  }

  .ai-chat-message.user {
    width: 94%;
  }

  .ai-chat-analysis .ai-intake-result {
    grid-template-columns: 1fr;
  }

  .ai-chat-composer {
    margin: 0 12px 16px;
  }

  .ai-chat-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-send-button {
    justify-content: center;
    width: 100%;
  }
}
