/**
 * CALIO Enterprise Web Platform Design System
 * Institutional Fintech Interface · Clean Typography & High-Precision Financial Data
 * Authentic CALIO Extension Palette: Pine/Teal, Emerald, Mist & Crisp White
 */

:root {
  /* Brand Teal / Emerald / Pine palette (from CALIO Extension app.css) */
  --brand: #19443c;
  --brand-soft: #1f5248;
  --brand-deep: #0f2e29;
  --brand-darkest: #0a1f1b;
  --brand-nav: #081d19;
  --ink: #122e29;
  --ink-heading: #0a201c;
  --soft: #3d5c56;
  --muted: #6b8681;
  
  /* Canvas and surfaces */
  --bg-snow: #f7faf9;
  --bg-mist: #eef4f2;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-hover: #f3f7f5;
  
  /* Lines and borders */
  --line: rgba(25, 68, 60, 0.12);
  --line-strong: rgba(25, 68, 60, 0.22);
  --line-teal: rgba(20, 184, 166, 0.35);
  
  /* Accents */
  --teal-primary: #0f766e;
  --teal-vibrant: #14b8a6;
  --teal-bright: #2dd4bf;
  --teal-glow: rgba(20, 184, 166, 0.2);
  --teal-soft: #e6f7f5;
  
  /* Functional status */
  --ok: #047857;
  --ok-bg: #e6f5ef;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  
  /* Typography */
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", sans-serif;
  --mono: "SF Mono", "SFMono-Regular", Consolas, Menlo, ui-monospace, monospace;
  
  /* Radii */
  --radius-full: 9999px;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --max-width: 1240px;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--bg-snow);
  color: var(--ink);
}

body {
  font-family: var(--font);
  background-color: var(--bg-snow);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--teal-vibrant);
}

button {
  font-family: var(--font);
}

.wrap {
  width: min(var(--max-width), calc(100% - clamp(1.5rem, 4vw, 3.5rem)));
  margin: 0 auto;
}

/* ── Floating Header Pill Navigation (Apple / Wix Style) ── */
.nav-outer {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: 100%;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.nav-pill {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0.52rem 0.65rem 0.52rem 1.35rem;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  gap: 1.1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-primary);
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.4);
  display: inline-block;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* Nav Links & Dropdowns */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-item-wrap {
  position: relative;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.94rem;
  font-weight: 550;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item-wrap:hover .nav-item {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.nav-item.is-active {
  color: #0f172a;
  font-weight: 600;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  stroke: #64748b;
  transition: transform 0.2s ease;
}

.nav-item-wrap:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown Card (Wix / Apple Style) */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  min-width: 620px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  z-index: 1001;
}

.nav-item-wrap:hover .nav-dropdown,
.nav-item-wrap:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-dropdown-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.2rem;
}

.nav-dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-dropdown-link:hover {
  background: #f8fafc;
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown-heading {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.nav-dropdown-desc {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Dropdown Footer Bar */
.nav-dropdown-footer {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-dropdown-footer-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-dropdown-footer-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.nav-mini-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-mini-chip:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
  color: #065f46;
  transform: translateY(-1px);
}

.nav-footer-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-footer-cta:hover {
  color: #0f766e;
  transform: translateX(2px);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-actions .btn-pill {
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.52rem 1.25rem;
}

.nav-actions .btn-pill svg {
  width: 17px;
  height: 17px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Institutional Apple-style Chrome CTA Pill - Calm, Prestigious, Zero Neon Glare */
.btn-pill-chrome {
  background: var(--teal-primary);
  color: #ffffff !important;
  border: 1px solid var(--teal-primary);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.btn-pill-chrome svg {
  stroke: #ffffff;
}

.btn-pill-chrome:hover {
  background: #115e59;
  border-color: #115e59;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.btn-pill-primary {
  background: var(--teal-primary);
  color: #ffffff !important;
  border: 1px solid var(--teal-primary);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.btn-pill-primary svg {
  stroke: #ffffff;
}

.btn-pill-primary:hover {
  background: #115e59;
  border-color: #115e59;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-pill-ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-pill-ghost:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-pill-secondary {
  background: #ffffff;
  color: var(--brand-deep);
  border: 1px solid var(--line-strong);
}

.btn-pill-secondary:hover {
  background: var(--bg-mist);
  border-color: var(--brand);
}

/* Mobile Hamburger & Drawer */
.nav-mobile-btn {
  display: none;
  background: transparent;
  border: none;
  color: #0f172a;
  padding: 0.4rem;
  cursor: pointer;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  z-index: 9999;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.is-open {
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-nav-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: var(--teal-primary);
}

/* ── Hero Sections (Pristine Light / Institutional Teal) ── */
.hero-clean {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e6f7f5;
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--ink-heading);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 960px;
  margin: 0 auto 1.25rem auto;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--teal-primary) 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--soft);
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-large {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.hero-ticker-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 auto 2rem auto;
  max-width: 860px;
}

.hero-ticker-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  margin-right: 0.25rem;
}

.hero-ticker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 0.32rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-heading);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(25, 68, 60, 0.05);
}

.hero-ticker-btn:hover,
.hero-ticker-btn.is-active {
  border-color: var(--teal-primary);
  background: #edf7f4;
  color: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(20, 184, 166, 0.15);
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--soft);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 820px;
  margin: 0 auto;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.hero-trust-item svg {
  color: var(--teal-primary);
}

/* ── Institutional Desk Panel (Replicating CALIO Screenshot qCODks) ── */
.desk-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(25, 68, 60, 0.08), 0 1px 3px rgba(25, 68, 60, 0.05);
  margin-bottom: 3.5rem;
  overflow: hidden;
}

.desk-panel-head {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-snow);
}

.desk-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.desk-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-heading);
  letter-spacing: -0.01em;
}

.desk-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.desk-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.desk-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Category selector & chips */
.desk-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip-btn {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--soft);
  background: var(--bg-mist);
  border: 1px solid var(--line);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip-btn:hover {
  background: #e2ece9;
  color: var(--ink);
}

.chip-btn.is-active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  font-weight: 600;
}

.desk-select {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.desk-select:focus {
  border-color: var(--teal-primary);
}

.desk-input {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
  min-width: 220px;
}

.desk-input:focus {
  border-color: var(--teal-primary);
}

.mini-btn {
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* ── Universal Financial Tables (Horizontal Scroll Fluid) ── */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.table-scroll-wrap::-webkit-scrollbar {
  height: 6px;
}

.table-scroll-wrap::-webkit-scrollbar-track {
  background: var(--bg-mist);
}

.table-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(25, 68, 60, 0.25);
  border-radius: var(--radius-full);
}

.calio-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 940px;
}

.calio-table th {
  background: var(--bg-mist);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.calio-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  vertical-align: middle;
}

.calio-table tbody tr {
  transition: background-color 0.12s ease;
}

.calio-table tbody tr:hover {
  background-color: var(--bg-snow);
}

.calio-table tr.main-ticker-row {
  background-color: rgba(20, 184, 166, 0.06);
  font-weight: 600;
}

.calio-table .ticker-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calio-table .ticker-name {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

/* Badges inside tables */
.peer-badge-safe {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.peer-badge-warn {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.peer-badge-alert {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--mono);
}

/* ── Section Titles & Standard Headers ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--ink-heading);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--soft);
  line-height: 1.6;
}

/* ── Products & Solutions Showcase Grid (Homepage) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(25, 68, 60, 0.03);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-primary);
  box-shadow: 0 16px 32px -8px rgba(25, 68, 60, 0.09);
}

.product-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.product-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--soft);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-primary);
}

.product-card-link svg {
  transition: transform 0.15s ease;
}

.product-card:hover .product-card-link svg {
  transform: translateX(4px);
}

/* ── Interactive DCF Calculator Layout (valuation.html & index.html) ── */
.dcf-engine-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 1.75rem;
}

.dcf-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dcf-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dcf-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.dcf-slider-val {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--bg-mist);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.dcf-slider {
  width: 100%;
  accent-color: var(--teal-primary);
  cursor: pointer;
}

.dcf-result-col {
  background: var(--brand-darkest);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px -10px rgba(8, 29, 25, 0.4);
}

.dcf-result-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 0.5rem;
}

.dcf-fair-value {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.dcf-safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.dcf-bridge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  margin-top: auto;
}

.dcf-bridge-item span {
  font-size: 0.78rem;
  color: #9cb8b2;
}

.dcf-bridge-item strong {
  font-size: 1.05rem;
  font-family: var(--mono);
  color: #ffffff;
}

/* ── Wix Plans Inspired Pricing (pricing.html, Screenshot BnDSL4) ── */
.pricing-wrap {
  padding: 1rem 0 5rem 0;
}

.pricing-billing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.switch-pill-container {
  display: inline-flex;
  background: var(--bg-mist);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  gap: 0.35rem;
}

.switch-pill-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.switch-pill-btn.is-active {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(25, 68, 60, 0.12);
}

.discount-badge {
  background: var(--ok);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(25, 68, 60, 0.04);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(25, 68, 60, 0.12);
}

.plan-card.is-popular {
  border-color: var(--teal-vibrant);
  border-width: 2px;
  box-shadow: 0 20px 48px -10px rgba(20, 184, 166, 0.25);
}

.plan-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-deep);
  color: #ffffff;
  border: 1px solid var(--teal-vibrant);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 1.1rem;
  border-radius: var(--radius-full);
}

.plan-tier-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-heading);
  margin-bottom: 0.4rem;
}

.plan-tier-desc {
  font-size: 0.9rem;
  color: var(--soft);
  min-height: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.plan-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.plan-price {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font);
  color: var(--ink-heading);
  line-height: 1;
}

.plan-period {
  font-size: 0.92rem;
  color: var(--soft);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}

.plan-check {
  width: 18px;
  height: 18px;
  color: var(--teal-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-cta-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

/* Feature Comparison Table (Wix Plans Style) */
.comparison-section {
  margin-top: 5rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(25, 68, 60, 0.04);
}

.comp-table th,
.comp-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.comp-table th:first-child,
.comp-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  width: 40%;
}

.comp-table th {
  background: var(--bg-mist);
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 700;
}

.comp-table tr.category-row td {
  background: var(--bg-snow);
  color: var(--teal-primary);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.5rem;
}

/* ── FAQ Accordion Section ── */
.faq-section {
  max-width: 800px;
  margin: 5rem auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--soft);
  line-height: 1.6;
}

/* ── Terminal Embed in index.html ── */
.terminal-shell {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 4rem;
}

.terminal-header {
  background: #f8fafc;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.terminal-traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.terminal-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.terminal-tab-btn.is-active {
  background: var(--teal-primary);
  color: #ffffff;
  border-color: var(--teal-primary);
  font-weight: 600;
}

.terminal-body {
  padding: 1.5rem;
  background: var(--surface);
}

/* ── Institutional Footer ── */
.site-footer {
  background: var(--brand-darkest);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2.5rem 0;
  color: #9cb8b2;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.15rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: #c7dcd7;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ── Responsive Queries (iPad & Mobile Fluid Adaptation) ── */
@media (max-width: 1080px) {
  .nav-links {
    display: none !important;
  }
  
  .nav-mobile-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .dcf-engine-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-outer {
    top: 8px;
    padding: 0 0.5rem;
  }
  
  .nav-pill {
    padding: 0.4rem 0.6rem 0.4rem 0.85rem;
  }

  .hide-sm {
    display: none !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .desk-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .desk-controls {
    width: 100%;
  }

  .desk-input {
    width: 100%;
  }
}

/* ── Universal Ticker Search & Company Lookup Bar ── */
.universal-ticker-strip {
  background: #ffffff;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.universal-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 280px;
  max-width: 580px;
  position: relative;
}

.universal-search-icon {
  position: absolute;
  left: 0.85rem;
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.universal-search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.35rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
  font-family: var(--font);
}

.universal-search-input:focus {
  background: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.universal-search-btn {
  padding: 0.55rem 1.15rem;
  background: #0f766e;
  color: #ffffff;
  border: 1px solid #0f766e;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.universal-search-btn:hover {
  background: #115e59;
}

.universal-pills-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.universal-pills-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.2rem;
}

/* ── Embedded Terminal (.wt-*) Component Styles ── */
.terminal-frame {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 4rem;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 1rem;
  flex-wrap: wrap;
  color: #0f172a;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wt-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.wt-badge {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.terminal-quick-tickers {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.ticker-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ticker-btn:hover,
.ticker-btn.is-active {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  color: #ffffff;
}

.terminal-tab-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 1.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.tab-btn.is-active {
  color: var(--teal-primary);
  background: #ffffff;
  border-bottom: 2px solid var(--teal-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.terminal-body {
  padding: 1.75rem;
  background: #ffffff;
  color: #0f172a;
}

/* DCF Layout */
.wt-dcf-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
}

.wt-sliders-panel {
  background: var(--bg-snow);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.wt-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.wt-slider-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.wt-tag {
  font-size: 0.75rem;
  font-family: var(--mono);
  background: var(--bg-mist);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--brand-deep);
  font-weight: 600;
}

.wt-slider-row {
  margin-bottom: 1.35rem;
}

.wt-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.wt-slider-labels strong {
  font-family: var(--mono);
  color: var(--teal-primary);
}

.wt-range {
  width: 100%;
  accent-color: var(--teal-primary);
  cursor: pointer;
}

.wt-valuation-card {
  background: var(--brand-darkest);
  border: 1px solid var(--line-teal);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(8, 29, 25, 0.4);
}

.wt-val-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 0.4rem;
}

.wt-fair-value {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--mono);
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.wt-margin-safety {
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.wt-badge-safe {
  color: var(--teal-bright);
}

.wt-badge-warn {
  color: var(--warn);
}

.wt-ev-bridge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  margin-top: auto;
}

.wt-bridge-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wt-bridge-item span {
  font-size: 0.78rem;
  color: #9cb8b2;
}

.wt-bridge-item strong {
  font-size: 1rem;
  font-family: var(--mono);
  color: #ffffff;
}

/* Peers Layout */
.wt-peers-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wt-sector-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.wt-sector-btn {
  background: var(--bg-mist);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wt-sector-btn:hover,
.wt-sector-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.wt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.wt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.wt-table th,
.wt-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.wt-table th {
  background: var(--bg-mist);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wt-table tr:hover {
  background: var(--bg-snow);
}

.wt-row-highlight {
  background: rgba(20, 184, 166, 0.08) !important;
}

.wt-ticker-tag {
  font-family: var(--mono);
  color: var(--teal-primary);
  font-weight: 700;
}

.wt-num {
  font-family: var(--mono);
}

.wt-txt-safe { color: var(--ok); font-weight: 700; }
.wt-txt-warn { color: var(--warn); font-weight: 700; }
.wt-txt-alert { color: var(--danger); font-weight: 700; }

.wt-audit-link {
  font-size: 0.8rem;
  color: var(--teal-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Forensics Layout */
.wt-forensics-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.wt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(25, 68, 60, 0.03);
}

.wt-card-safe { border-top: 3px solid var(--ok); }
.wt-card-warn { border-top: 3px solid var(--warn); }
.wt-card-alert { border-top: 3px solid var(--danger); }

.wt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wt-card-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.wt-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.wt-badge-pill.safe { background: var(--ok-bg); color: var(--ok); }
.wt-badge-pill.warn { background: var(--warn-bg); color: var(--warn); }
.wt-badge-pill.alert { background: var(--danger-bg); color: var(--danger); }

.wt-card-score {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--ink-heading);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.wt-unit {
  font-size: 1rem;
  color: var(--soft);
  font-weight: 500;
}

.wt-card-sub {
  font-size: 0.85rem;
  color: var(--soft);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.wt-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.wt-chip {
  font-size: 0.75rem;
  font-family: var(--mono);
  background: var(--bg-mist);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--ink);
}

/* Financials Tab */
.wt-fin-layout, .wt-gov-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wt-fin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.wt-fin-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.wt-gov-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.wt-gov-executive {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-heading);
  margin-top: 0.5rem;
}

.wt-gov-title {
  font-size: 0.9rem;
  color: var(--soft);
  font-weight: 500;
}

.wt-gov-total {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--teal-primary);
  margin: 0.4rem 0;
}

.wt-gov-table-wrap {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 500px) {
  .nav-outer {
    padding: 0 0.35rem;
  }
  .nav-pill {
    padding: 0.35rem 0.55rem 0.35rem 0.75rem;
    gap: 0.45rem;
  }
  .nav-brand {
    font-size: 1rem;
    gap: 0.45rem;
  }
  .nav-brand img {
    width: 24px;
    height: 24px;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .nav-actions .btn-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    word-break: break-word;
  }
  .hero-badge-wrap {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
  .desk-select, .desk-input {
    width: 100%;
  }
}

/* ── Mobile Layout Hardening & Zero-Overflow ── */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.hero-badge-wrap {
  max-width: 90vw;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }
  .nav-outer {
    top: 8px;
    padding: 0 0.5rem;
  }
  .nav-pill {
    padding: 0.35rem 0.65rem 0.35rem 0.85rem;
    gap: 0.5rem;
  }
  .nav-brand span {
    font-size: 1.05rem;
  }
  .nav-actions .btn-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .desk-panel-title {
    font-size: 1.05rem;
  }
}

/* ── Chrome Extension Pop-up Modal ── */
.calio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 18, 15, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.calio-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.calio-modal-card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 68, 60, 0.12);
  box-shadow: 0 28px 72px -12px rgba(8, 29, 25, 0.42), 0 2px 6px rgba(8, 29, 25, 0.06);
  padding: 2.25rem 2rem 2rem 2rem;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.calio-modal-backdrop.is-visible .calio-modal-card {
  transform: scale(1) translateY(0);
}

.calio-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f5f3;
  border: 1px solid rgba(25, 68, 60, 0.08);
  color: #43635b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calio-modal-close:hover {
  background: #e2ede9;
  color: #081d19;
  transform: scale(1.06);
}

.calio-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eef7f4;
  color: #0b4f44;
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.calio-modal-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 6px rgba(20, 184, 166, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

.calio-modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #081d19;
  line-height: 1.2;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.02em;
}

.calio-modal-subtitle {
  font-size: 0.92rem;
  color: #4b6b63;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.calio-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
  background: #f8faf9;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #e5ede8;
}

.calio-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.calio-flow-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #ccfbf1;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.calio-flow-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.calio-flow-text p {
  font-size: 0.81rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.calio-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.calio-modal-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.72rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.calio-modal-cta:hover {
  background: #115e59;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
}

.calio-modal-cta svg {
  stroke: #2dd4bf;
}

.calio-modal-dismiss {
  background: transparent;
  border: none;
  color: #5d7c74;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.calio-modal-dismiss:hover {
  color: #081d19;
  background: #eef5f2;
}

@media (max-width: 520px) {
  .calio-modal-backdrop {
    padding: 0.75rem;
  }
  .calio-modal-card {
    padding: 1.5rem 1.15rem 1.25rem 1.15rem;
    max-height: calc(100vh - 1.5rem);
    border-radius: 18px;
  }
  .calio-modal-title {
    font-size: 1.28rem;
  }
  .calio-modal-subtitle {
    font-size: 0.83rem;
    margin-bottom: 0.95rem;
  }
  .calio-modal-close {
    top: 0.9rem;
    right: 0.9rem;
    width: 28px;
    height: 28px;
  }
  .calio-modal-body {
    padding: 0.85rem;
    gap: 0.7rem;
    margin-bottom: 1.15rem;
  }
  .calio-flow-text p {
    font-size: 0.78rem;
  }
  .calio-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .calio-modal-dismiss {
    text-align: center;
  }
}

/* ── Specialized Desks: Segment, Compare, & Redline Styles ── */
.diff-add {
  background: rgba(52, 211, 153, 0.25) !important;
  color: #34d399 !important;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.diff-del {
  background: rgba(248, 113, 113, 0.25) !important;
  color: #f87171 !important;
  padding: 2px 4px;
  border-radius: 4px;
  text-decoration: line-through;
}

.compare-variance-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.compare-variance-badge.pos {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.compare-variance-badge.neg {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

@media (max-width: 768px) {
  .compare-form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Workstation Parity: Autocomplete, Timeline, Filings Table & Compare Form ── */
.suggest-wrap {
  position: relative;
}

.suggest-dropdown,
.search-results.cmp-suggest,
.search-results.val-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-width: 540px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.suggest-head {
  display: grid;
  grid-template-columns: 110px 1fr 72px;
  gap: 12px;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.suggest-row {
  display: grid;
  grid-template-columns: 110px 1fr 72px;
  gap: 12px;
  align-items: center;
  width: 100%;
  appearance: none;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 10px 16px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.suggest-row:hover,
.suggest-row:focus {
  background: #f0fdfa;
  outline: none;
}

.suggest-cik {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
}

.suggest-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-ticker {
  font-size: 12px;
  font-weight: 750;
  color: #0f766e;
  text-align: right;
  letter-spacing: 0.04em;
}

.suggest-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* Compare Desk Form */
.compare-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.compare-form {
  padding: 1.25rem 1.5rem;
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .compare-columns {
    grid-template-columns: 1fr;
  }
}

.compare-col {
  background: #f8fafc;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.compare-col-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cmp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.cmp-field:last-child {
  margin-bottom: 0;
}

.cmp-field label {
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cmp-input,
.cmp-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cmp-input:focus,
.cmp-select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* Company Timeline Panel */
.timeline-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.panel-head {
  padding: 1rem 1.4rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.panel-head h2 {
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-blurb {
  font-size: 13px;
  color: #64748b;
  margin: 0.5rem 1.4rem 0.85rem;
  line-height: 1.45;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  max-height: 380px;
  overflow-y: auto;
}

.timeline-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s ease;
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-row:hover {
  background: #f8fafc;
  border-radius: 8px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  white-space: nowrap;
}

.timeline-body {
  min-width: 0;
}

.timeline-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.timeline-form {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  white-space: nowrap;
}

.timeline-form.kind-event {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.timeline-form.kind-proxy {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.timeline-form.kind-insider {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.timeline-desc {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
}

.timeline-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.timeline-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.timeline-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.timeline-btn-primary {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 118, 110, 0.2);
}

.timeline-btn-primary:hover {
  background: #115e59;
}

/* Filings Table */
.filings-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}

table.filings {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.filings th,
table.filings td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  white-space: nowrap;
}

table.filings th {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: sticky;
  top: 0;
  z-index: 1;
}

table.filings tr:hover td {
  background: #f8fafc;
}

table.filings td.form {
  font-weight: 750;
  color: #0f766e;
}

table.filings td.actions-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

table.filings .row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 250px;
  width: 250px;
}

.btn-filing {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-filing-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-filing-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-filing-primary {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 118, 110, 0.2);
}

.btn-filing-primary:hover {
  background: #115e59;
}

/* Company Workstation Hero & Metadata Panel */
.company-hero-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.company-hero-title {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #0f172a;
}

.company-hero-sub {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.company-hero-sub strong {
  color: #0f172a;
}

.company-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.company-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.company-chip.accent {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.25);
}

.company-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.company-action-btn {
  appearance: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.company-action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Company Information Grid Panel */
.company-info-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 18px;
  padding: 1rem 1.4rem 1.4rem;
}

.company-info-cell {
  min-width: 0;
}

.company-info-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.company-info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}

.company-info-value.is-multiline {
  white-space: pre-line;
  font-weight: 500;
  font-size: 12.5px;
  color: #475569;
}

/* Notification Toast */
.workstation-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.workstation-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.workstation-toast-icon {
  color: #2dd4bf;
  flex-shrink: 0;
}


/* Financial Line Items & Audit Trail (Chrome Extension Parity) */
.audit-trail-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.fact-list {
  background: #ffffff;
}

.fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  transition: background 0.12s ease;
}

.fact-row:hover {
  background: #f8fafc;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.fact-info .k {
  font-weight: 600;
  color: #1e293b;
}

.tag-label {
  display: inline-block;
  font-size: 10.5px;
  font-family: var(--mono);
  color: #0f766e;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1px 7px;
  border-radius: 4px;
}

.fact-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fact-actions-wrap .v {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 13px;
  color: #0f172a;
}

.btn-source-link,
.btn-formula-copy {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f766e;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-source-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.btn-formula-copy:hover {
  background: #0f2e29;
  color: #ffffff;
  border-color: #0f2e29;
}

/* Peer Comps Matrix Styles matching Chrome extension */
.peer-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--line);
  margin-top: 14px;
}

.peer-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.peer-table th {
  background: var(--table-head, #f8fafc);
  padding: 12px 16px;
  text-align: right;
  font-weight: 700;
  color: var(--soft, #64748b);
  border-bottom: 1px solid var(--line, #e2e8f0);
  white-space: nowrap;
}

.peer-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--table-head, #f8fafc);
  z-index: 3;
  min-width: 180px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.peer-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line, #e2e8f0);
  font-family: var(--mono, monospace);
  white-space: nowrap;
  background: #ffffff;
}

.peer-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 2;
  min-width: 180px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.peer-table tr.main-ticker-row td {
  background: #ecfdf5 !important;
  font-weight: 700;
}

.peer-table tr.main-ticker-row td:first-child {
  background: #ecfdf5 !important;
}

.extract-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  min-height: 240px;
  color: var(--soft, #64748b);
}

.extract-loading strong {
  display: block;
  color: var(--ink, #0f172a);
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
  letter-spacing: -0.02em;
}

.extract-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line, #e2e8f0);
  border-top-color: var(--teal-primary, #0d9488);
  animation: calio-spin 0.75s linear infinite;
}

@keyframes calio-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Institutional Statement Engine (v1.18.0 Parity) ── */
.institutional-panel {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.institutional-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.institutional-head .head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.institutional-head .head-left h2,
.institutional-head .head-left h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0;
}
.verified-badge {
  background: rgba(4, 120, 87, 0.09);
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.22);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.institutional-head .head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.period-toggle-group {
  display: inline-flex;
  background: var(--bg-snow, #f8fafc);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--line, #e2e8f0);
}
.btn-period-toggle {
  border: none;
  background: transparent;
  color: var(--ink-muted, #64748b);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-period-toggle:hover {
  color: var(--ink, #0f172a);
}
.btn-period-toggle.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

/* ── Statement Tabs ── */
.statement-nav-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.stmt-tab-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.stmt-tab-btn:hover {
  color: var(--ink, #0f172a);
  background: var(--bg-snow, #f8fafc);
}
.stmt-tab-btn.active {
  color: #0f766e;
  font-weight: 700;
  border-bottom: 2px solid #0f766e;
  background: transparent;
}

/* ── Statement Tables ── */
.stmt-table-wrapper {
  width: 100%;
}
.stmt-table-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.stmt-table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}
.stmt-table-units {
  font-size: 11px;
  color: var(--ink-muted, #64748b);
}
.stmt-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.stmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.stmt-table th {
  background: #f1f5f9;
  color: var(--ink, #0f172a);
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  white-space: nowrap;
}
.stmt-table th.th-label {
  min-width: 270px;
}
.stmt-table th.th-period {
  min-width: 115px;
  text-align: right;
}
.stmt-table th.th-period .period-label {
  font-size: 13px;
  font-weight: 700;
}
.stmt-table th.th-period .period-end {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted, #64748b);
}
.stmt-table th.th-audit {
  min-width: 75px;
  text-align: center;
}
.stmt-row-section td {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted, #64748b);
  background: var(--bg-snow, #f8fafc);
  padding: 10px 12px 6px;
  border-top: 1px solid var(--line, #e2e8f0);
}
.stmt-row {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.12s ease;
}
.stmt-row:hover {
  background: var(--bg-snow, #f8fafc);
}
.stmt-row.is-subtotal {
  font-weight: 700;
  border-top: 1px solid var(--line, #cbd5e1);
  background: rgba(241, 245, 249, 0.4);
}
.stmt-row.is-total {
  font-weight: 800;
  border-top: 1px solid var(--ink, #0f172a);
  border-bottom: 3px double var(--ink, #0f172a);
  background: rgba(241, 245, 249, 0.6);
}
.stmt-row.is-check {
  font-weight: 700;
  background: rgba(4, 120, 87, 0.04);
  border-top: 1px dashed var(--line, #cbd5e1);
}
.stmt-col-label {
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stmt-label-text {
  color: var(--ink, #0f172a);
}
.stmt-tag-pill {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: var(--ink-muted, #64748b);
  background: var(--bg-snow, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  padding: 1px 5px;
  border-radius: 3px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stmt-col-val {
  padding: 7px 12px;
  text-align: right;
  color: var(--ink, #0f172a);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono, monospace);
}
.stmt-col-pct {
  padding: 7px 12px;
  text-align: right;
  color: var(--ink-muted, #64748b);
  font-family: var(--font-mono, monospace);
}
.stmt-col-audit {
  padding: 7px 8px;
  text-align: center;
}
.btn-stmt-audit {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  color: #0f766e;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-stmt-audit:hover {
  background: #f0fdfa;
  border-color: #0f766e;
}
.no-audit {
  color: var(--ink-muted, #64748b);
  font-size: 12px;
}

/* ── SBC Forensics Card ── */
.sbc-forensics-card {
  margin-top: 22px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: var(--bg-snow, #f8fafc);
  padding: 18px 20px;
}
.forensics-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.forensics-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.forensics-title-wrap h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0;
}
.forensics-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.25);
}
.dilution-trend-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(15, 118, 110, 0.2);
}
.sbc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.sbc-metric-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sbc-metric-card.highlight {
  border-color: rgba(15, 118, 110, 0.3);
  background: linear-gradient(to bottom, #ffffff, #f0fdfa);
}
.sbc-metric-card .lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted, #64748b);
}
.sbc-metric-card .val {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}
.sbc-metric-card .sub {
  font-size: 11px;
  color: var(--ink-muted, #64748b);
  line-height: 1.3;
}
.fcf-compare-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.fcf-compare-row .reported-val {
  color: var(--ink-muted, #64748b);
}
.fcf-compare-row .arrow {
  color: var(--ink-muted, #64748b);
}
.fcf-compare-row .real-val {
  color: #0f766e;
}
.sbc-footnote-callout {
  font-size: 12px;
  color: var(--ink-muted, #475569);
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.45;
}

/* ── Debt Maturity Card ── */
.debt-maturity-card {
  margin-top: 22px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: #ffffff;
  padding: 18px 20px;
}
.maturity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.maturity-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.maturity-title-wrap h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0;
}
.footnote-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.2);
}
.maturity-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}
.maturity-table {
  margin-top: 8px;
}

/* ── Audit Trail View ── */
.audit-trail-container {
  width: 100%;
}
.audit-trail-head {
  margin-bottom: 14px;
}
.audit-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.audit-title-wrap h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0;
}
.audit-trail-desc {
  font-size: 12px;
  color: var(--ink-muted, #64748b);
  line-height: 1.4;
  margin: 0;
}
.audit-table th {
  font-size: 12px;
}

/* ── Status Badges & Loaders ── */
.badge.balanced {
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge.unbalance {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.institutional-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  color: var(--ink-muted, #64748b);
  font-size: 13px;
}
.stmt-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line, #e2e8f0);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: calio-spin 0.7s linear infinite;
}
.stmt-empty-state {
  text-align: center;
  padding: 30px 20px;
}
.stmt-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin-bottom: 6px;
}
.stmt-empty-sub {
  font-size: 13px;
  color: var(--ink-muted, #64748b);
  max-width: 520px;
  margin: 0 auto 16px;
}
