/* BennuForge 2.1.0 product adaptation. Load after the dashboard layout. */
@font-face {
  font-family: "Manrope";
  src: url("/brand/assets/fonts/manrope-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/brand/assets/fonts/manrope-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/brand/assets/fonts/manrope-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: var(--bf-color-ink);
  --muted: var(--bf-color-muted);
  --line: var(--bf-color-border);
  --panel: var(--bf-color-surface);
  --panel-2: var(--bf-color-surface-raised);
  --surface: var(--bf-color-bg);
  --accent: var(--bf-color-blue);
  --accent-soft: var(--bf-color-highlight);
  --accent-2: #e45f5f;
  --accent-3: var(--bf-color-ink);
  --danger: #ff9999;
  --shadow: none;
  --bf-tracking-display: 0;
  --bf-tracking-label: 0;
}

body {
  background: var(--surface);
  font-family: var(--bf-font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(1720px, calc(100% - 48px));
  padding: 0 0 40px;
}

h1, h2, h3, strong, th, button { font-weight: 700; }
h1, h2, h3, .bf-wordmark, .bf-button { letter-spacing: 0; }
h1 { font-size: 34px; line-height: 1.15; text-shadow: none; }
h2 { font-size: 16px; line-height: 1.4; }

.topbar {
  min-height: 162px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}
.eyebrow::before { content: none; }

.brand-endorsement {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.brand-endorsement .bf-wordmark { font-size: 12px; }

.account-tools { gap: 10px; margin-top: 12px; font-size: 11px; }
.account-tools .feedback-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 11px; }
.account-tools .feedback-link:hover { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.account-tools button {
  min-height: 32px;
  border-color: var(--line);
  padding: 3px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.quote-strip {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#quotePrice { font-size: 24px; font-weight: 700; }
#quoteState { color: var(--muted); font-size: 11px; }

button, .orbuculum-toggle summary {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
button:hover:not(:disabled), .orbuculum-toggle summary:hover {
  border-color: var(--ink);
  color: var(--surface);
  background: var(--ink);
}
button:disabled { opacity: .5; }

:is(button, input, select, summary, a, th):focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.workspace-tabs {
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.workspace-tab {
  flex: 1 0 auto;
  min-width: 108px;
  min-height: 52px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}
.workspace-tab:hover:not(:disabled),
.workspace-tab.active {
  color: var(--ink);
  background: var(--panel);
}
.workspace-tab.active { border-bottom-color: var(--accent); }
.workspace-tab.active:hover:not(:disabled) { border-bottom-color: var(--accent); }

.symbol-browser {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.group-tabs { gap: 4px; padding: 0 0 8px; background: transparent; }
.symbol-tabs { gap: 6px; padding: 10px 0; background: transparent; }
.group-tab {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
}
.group-tab.active, .group-tab:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--panel-2);
}
.symbol-tab {
  min-width: 56px;
  min-height: 44px;
  border-color: var(--line);
  color: var(--muted);
  background: var(--panel);
  font-size: 11px;
}
.symbol-tab.active {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.custom-symbol button { color: var(--ink); background: transparent; }
.custom-symbol label { font-size: 10px; }

.market-bias-toggle {
  gap: 4px;
  padding: 4px;
  border-color: var(--line);
  border-radius: 0;
  background: var(--panel);
}
.market-bias-toggle button {
  min-height: 44px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
}
.market-bias-toggle button[data-market-bias="bull"].active { color: #8ae0b9; background: #152820; }
.market-bias-toggle button[data-market-bias="bear"].active { color: #ff9999; background: #30191a; }

.controls {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  background: transparent;
}
label { color: var(--muted); font-size: 10px; font-weight: 600; }
input, select {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 400;
}
input::placeholder { color: #959ba6; }
input[type="range"], input[type="checkbox"] { accent-color: var(--accent); }
.rates-controls, .sentiment-controls { gap: 1px; padding: 0; background: var(--line); }
.rates-controls label, .sentiment-controls label { background: var(--panel); }

.universe-toolbar, .valuation-lead, .gamma-toolbar {
  min-height: 122px;
  gap: 20px;
  padding: 20px 0;
  background: transparent;
}
.universe-toolbar h2, .valuation-identity h2, .gamma-toolbar h2 { font-size: 24px; line-height: 1.3; }
.valuation-method { font-size: 12px; }
.refresh-meta { max-width: 100%; color: var(--muted); font-size: 10px; white-space: normal; text-align: right; }

.summary-grid, .universe-summary, .valuation-summary, .divergence-indicators {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}
.summary-grid article, .universe-summary article,
.valuation-summary article, .divergence-indicators article {
  padding: 16px;
  background: var(--panel);
}
.summary-grid span, .universe-summary span,
.valuation-summary span, .divergence-indicators span { font-size: 10px; font-weight: 600; }
.summary-grid strong, .universe-summary strong,
.valuation-summary strong, .divergence-indicators strong { color: var(--ink); font-weight: 700; }
.summary-grid strong { font-size: 21px; }
.summary-grid .vol-state-card strong { font-size: 14px; }
.universe-summary strong { font-size: 20px; }

.panel {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
}
.panel-heading { background: var(--panel); }
.panel-heading h2 { font-size: 14px; }
.panel-meta { color: var(--muted); font-size: 11px; }
.heatmap-wrap, .gamma-panel .table-wrap, canvas { background: var(--panel); }
.axis-cell { color: var(--ink); background: var(--panel-2); }
.axis-cell.closest-strike { color: var(--ink); background: var(--accent); }
.cell.empty { color: #959ba6; background: var(--panel); }

table { font-size: 12px; font-variant-numeric: tabular-nums; }
th, .universe-table th { color: var(--muted); background: var(--panel-2); font-size: 10px; }
td { color: #edf0f4; background: var(--panel); }
tbody tr:nth-child(even) td { background: #101217; }
tbody tr:hover td { background: #1c222d; }
.table-sort { min-height: 44px; color: var(--muted); font-size: 10px; }
.table-sort:hover:not(:disabled), .table-sort.active,
th.sortable-column:hover { color: var(--ink); background: #242b36; }
.table-sort.active { box-shadow: inset 0 -2px 0 var(--accent); }
.asset-link { min-height: 32px; padding: 0 5px; color: var(--accent-soft); background: transparent; font-size: 12px; }
.asset-link:hover:not(:disabled) { border-color: transparent; color: var(--ink); background: transparent; }
.rank { color: #959ba6; }
.positive-text { color: #8ae0b9; }
.negative-text { color: #ff9999; }
.multiple-difference, .research-body p { color: var(--muted); }
.type-pill, .gap-chip { border-radius: 2px; }
.type-call { color: var(--ink); background: #244c91; }
.type-put { color: #ffb9b9; background: #612b32; }
.column-resizer { background: rgba(104, 167, 255, .16); }
.screener-target-input { font-size: 12px; }
body[data-market-bias="bull"] .screener-bull-target,
body[data-market-bias="bear"] .screener-bear-target { background: #111d31; }
.target-stale .screener-target-input { background: #242113; }
#updateTargets.filter-active { border-color: var(--accent-soft); color: var(--ink); background: #182b48; }

.valuation-tab { min-height: 44px; font-size: 11px; }
.valuation-tab.active { color: var(--ink); background: var(--panel-2); }
.fair-value-block strong { font-size: 38px; color: var(--ink); }
.gamma-index-tabs { border-radius: 0; background: var(--panel); }
.gamma-index-tabs button, .gamma-month-tabs button { min-height: 44px; color: var(--muted); background: transparent; }
.gamma-index-tabs button.active, .gamma-month-tabs button.active {
  border-color: var(--accent-soft);
  color: var(--ink);
  background: #182b48;
}
.gamma-month-tabs { gap: 4px; }
.orbuculum-toggle-menu { border-color: var(--line); border-radius: 0; background: var(--panel); }
.orbuculum-toggle-menu button { border-color: transparent; color: var(--muted); background: transparent; }
.orbuculum-toggle-menu button:hover:not(:disabled), .orbuculum-toggle-menu button.active { color: var(--ink); background: var(--panel-2); }
.orbuculum-contract > strong { color: var(--accent-soft); }

.rates-turn-band, .rates-state { background: var(--panel); }
.rates-surface-workspace { background: var(--surface); }
.rates-surface-workspace .panel-heading { background: rgba(5, 6, 8, .94); }
.rates-surface-selection { color: var(--ink); background: rgba(5, 6, 8, .94); }
.rates-source-links a, .source-links a, .divergence-method a,
.disclaimer a, .chart-source:hover { color: var(--accent-soft); }
.research-body, .fundamental-grid { background: var(--panel); }
.assumption-list dd, .fundamental-grid strong { color: var(--ink); }
.disclaimer { color: #a3a9b3; }
.chart-readout { border-color: var(--line); border-top-color: var(--accent); border-radius: 0; background: var(--panel-2); }
.chart-readout > strong { color: var(--accent-soft); }
* { scrollbar-color: #535a67 var(--panel); }

.login-page { position: relative; isolation: isolate; min-height: 100svh; background: var(--surface); }
.login-artwork { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.login-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 8, .97), rgba(5, 6, 8, .92) 32%, rgba(5, 6, 8, .15) 75%); }
.login-shell { width: min(400px, calc(100% - 48px)); margin: 0 0 0 max(60px, calc((100% - 1440px) / 2)); padding: max(72px, 15svh) 0 48px; }
.login-brand { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.login-brand h1 { margin-top: 10px; font-size: 38px; line-height: 1.15; text-transform: uppercase; }
.login-brand .eyebrow { color: var(--accent-soft); }
.login-form { gap: 12px; padding-top: 28px; }
.login-form h2 { margin-bottom: 12px; font-size: 18px; }
.login-form label { color: var(--muted); font-size: 11px; }
.login-form input { min-height: 48px; margin-bottom: 8px; border-radius: 0; color: var(--ink); background: rgba(12, 14, 18, .9); font-size: 15px; }
.login-form .bf-button { width: 100%; min-height: 50px; border: 1px solid var(--ink); padding: 12px; color: var(--ink); background: transparent; font-size: 11px; }
.login-form .bf-button:hover:not(:disabled) { color: var(--surface); background: transparent; }
.login-form .bf-button:disabled { color: var(--muted); }
.login-shell > .brand-endorsement { margin-top: 36px; }
.membership-intro { padding-top: 28px; }
.membership-intro h2, .membership-checkout h2 { margin: 0 0 16px; font-size: 18px; }
.membership-intro p, .membership-checkout p { margin: 12px 0; line-height: 1.6; }
.membership-muted, #registrationStatus, .membership-facts dt { color: var(--muted); font-size: 13px; line-height: 1.6; }
.social-buttons { display: grid; gap: 12px; margin-top: 24px; }
.social-buttons button, .membership-page button, .membership-action { min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 600; }
.social-buttons button:hover:not(:disabled), .membership-page button:hover:not(:disabled), .membership-action:hover { border-color: var(--ink); }
.social-buttons button:disabled, .membership-page button:disabled { opacity: .5; cursor: not-allowed; }
.membership-policies { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.membership-policies a, .membership-header a { color: var(--ink); text-underline-offset: 4px; }
.owner-login { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.owner-login summary { cursor: pointer; color: var(--muted); font-size: 13px; }
#socialError, #accountError { color: #f09a9a; line-height: 1.5; font-size: 13px; }
.membership-page { min-height: 100svh; background: var(--surface); }
.membership-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.membership-header a { text-decoration: none; font-weight: 700; font-size: 18px; }
.membership-shell { width: min(640px, calc(100% - 48px)); margin: 56px auto; }
.membership-shell h1 { margin: 12px 0 20px; font-size: 28px; line-height: 1.25; }
.membership-facts { margin: 28px 0; border-block: 1px solid var(--line); }
.membership-facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.membership-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; text-transform: capitalize; }
.membership-checkout { padding: 28px 0; border-bottom: 1px solid var(--line); }
.membership-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin: 24px 0; font-size: 13px; font-weight: 400; line-height: 1.6; text-transform: none; }
.membership-consent input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.membership-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.membership-action { display: inline-flex; align-items: center; text-decoration: none; }
.membership-page [hidden], .membership-intro [hidden] { display: none !important; }
.membership-page :focus-visible, .social-buttons button:focus-visible, .owner-login summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.feedback-form { display: grid; gap: 12px; margin: 28px 0; }
.feedback-form label, .feedback-receipt label { color: var(--muted); font-size: 12px; text-transform: none; }
.feedback-form input, .feedback-form textarea, .feedback-form select, #receiptValue { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font: inherit; }
.feedback-form textarea { resize: vertical; line-height: 1.6; }
.feedback-receipt, .feedback-ledger { padding: 28px 0; border-top: 1px solid var(--line); }
.feedback-page h2 { font-size: 20px; margin-bottom: 20px; }
.feedback-page h3 { font-size: 16px; margin: 20px 0; }
.feedback-ledger ol { padding-left: 0; list-style: none; display: grid; gap: 12px; margin: 20px 0; }
.feedback-ledger li button { width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; text-transform: none; }
.feedback-ledger summary { cursor: pointer; min-height: 44px; padding-block: 12px; }
.feedback-page p { line-height: 1.6; }
#feedbackError { color: #f09a9a; }
#receiptValue { font-family: monospace; font-size: 12px; margin: 12px 0; }
@media (max-width: 480px) {
  .membership-shell { margin-top: 32px; }
  .membership-facts > div { grid-template-columns: 100px minmax(0, 1fr); }
  .membership-actions > button, .membership-checkout > button { width: 100%; }
}

@media (min-width: 1720px) { .login-shell { margin-left: max(60px, calc((100% - 1440px) / 2)); } }
@media (max-width: 980px) {
  .topbar { gap: 20px; }
  .screener-table { min-width: 1240px; }
  #ivView .summary-grid, #gammaView .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-strip { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); padding-top: 0; }
  .topbar { padding: 24px 0 20px; }
  .account-tools button, .asset-link { min-height: 44px; }
  h1 { font-size: 30px; }
  .quote-strip { flex-direction: row; align-items: center; justify-content: space-between; }
  #quotePrice { font-size: 22px; }
  #ivView .summary-grid, #gammaView .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid article { padding: 14px 12px; }
  .summary-grid .vol-state-card { grid-column: 1 / -1; }
  .summary-grid strong { font-size: 18px; }
  .universe-toolbar h2, .valuation-identity h2, .gamma-toolbar h2 { font-size: 22px; }
  .fair-value-block strong { font-size: 32px; }
  .panel-heading { gap: 8px; padding: 14px 12px; }
  .refresh-meta { text-align: left; }
  .screener-actions, .gamma-actions, .divergence-actions { flex-wrap: wrap; gap: 10px; }
  .login-shell { width: calc(100% - 48px); max-width: 400px; margin-inline: 24px; padding-top: 64px; }
  .login-page::before { background: rgba(5, 6, 8, .88); }
  .login-artwork { object-position: 72% center; }
  .login-brand h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
