:root {
  --ink: #14231d;
  --muted: #66736d;
  --forest: #102a22;
  --green: #1f6b4c;
  --green-soft: #e8f3ed;
  --gold: #c9952d;
  --gold-soft: #fbf2dc;
  --cream: #f6f5ef;
  --paper: #fffefa;
  --line: #dfe4df;
  --red: #a54237;
  --shadow: 0 16px 40px rgba(20, 35, 29, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 18px 20px; background: var(--forest); color: #f6fbf8; z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--forest); background: linear-gradient(135deg, #e9bd5b, var(--gold)); font-family: Georgia, serif; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: #9fb3aa; font-size: 11px; }
.nav { padding-top: 18px; }
.nav a { display: block; margin: 2px 0; padding: 9px 11px; border-radius: 8px; color: #cbd9d2; font-size: 13px; transition: .15s ease; }
.nav a:hover, .nav a.active { color: white; background: rgba(255,255,255,.09); }
.nav a.active { box-shadow: inset 3px 0 var(--gold); }
.nav-label { margin: 20px 11px 6px; color: #6f887c; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: 22px 8px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8da398; font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #62c997; box-shadow: 0 0 0 4px rgba(98,201,151,.12); }
.main { min-width: 0; }
.topbar { min-height: 104px; display: flex; align-items: center; gap: 16px; padding: 22px 38px; background: rgba(255,254,250,.92); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.snapshot-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 11px; }
.logout-button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.menu-button { display: none; padding: 8px; border: 0; background: transparent; font-size: 22px; }
.integration-banner { padding: 10px 38px; color: #6e4d0b; background: var(--gold-soft); border-bottom: 1px solid #ebd59e; font-size: 12px; }
.content { max-width: 1500px; margin: 0 auto; padding: 34px 38px 60px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.hero-card, .signal-card, .panel, .index-card, .dataset-card, .automation-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hero-card { padding: 34px; background: radial-gradient(circle at 90% 10%, rgba(201,149,45,.18), transparent 35%), var(--forest); color: white; }
.hero-card .eyebrow { color: #e9bd5b; }
.hero-card p:not(.eyebrow) { max-width: 620px; color: #cbd9d2; line-height: 1.6; }
.hero-number { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(52px, 7vw, 82px); line-height: 1; }
.hero-links { display: flex; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 12px; }
.button.primary { color: var(--forest); background: var(--gold); }
.button.ghost { color: var(--ink); border-color: var(--line); background: white; }
.hero-card .button.ghost { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.button.small { min-height: 34px; padding: 0 12px; }
.signal-card { padding: 28px; }
.signal-list { margin: 16px 0 0; }
.signal-list div { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.signal-list div:last-child { border: 0; }
.signal-list dt { color: var(--muted); font-size: 13px; }
.signal-list dd { margin: 0; font-family: Georgia, serif; font-size: 25px; }
.warning-text { color: var(--red); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 42px 0 16px; }
.section-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 26px; font-weight: 600; }
.section-heading > a { color: var(--green); font-size: 12px; font-weight: 800; }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.index-card { padding: 20px; box-shadow: none; }
.index-card-head, .index-meta { display: flex; justify-content: space-between; align-items: center; }
.ticker { display: inline-block; min-width: 44px; margin-right: 8px; padding: 5px 8px; border-radius: 6px; color: white; background: var(--forest); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-align: center; }
.index-card h3 { margin: 18px 0 8px; font-size: 14px; }
.index-value { font-family: Georgia, serif; font-size: 31px; }
.index-value small { margin-left: 3px; color: var(--muted); font-family: inherit; font-size: 13px; }
.index-meta { margin-top: 15px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; max-width: 220px; padding: 4px 8px; border-radius: 999px; background: #edf0ee; color: #54635c; font-size: 10px; font-weight: 800; white-space: normal; }
.badge.high, .badge.published, .badge.open { color: #175c3e; background: var(--green-soft); }
.badge.medium, .badge.concern-orange, .badge.announced { color: #7b570f; background: var(--gold-soft); }
.badge.low, .badge.high-severity { color: #8a3129; background: #f8e7e4; }
.direction { font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.direction.up { color: var(--red); }
.direction.down { color: var(--green); }
.direction.stable { color: var(--muted); }
.dataset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dataset-card { display: grid; gap: 7px; padding: 18px; box-shadow: none; transition: .16s ease; }
.dataset-card:hover { transform: translateY(-2px); border-color: #b9c8c0; box-shadow: var(--shadow); }
.dataset-card span { color: var(--muted); font-size: 12px; }
.dataset-card strong { font-family: Georgia, serif; font-size: 29px; }
.dataset-card small { color: #89958f; font-size: 10px; }
.issue-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.issue-row:last-child { border: 0; }
.issue-row strong, .issue-row small { display: block; }
.issue-row small { margin-top: 4px; color: var(--muted); }
.warning-icon { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--red); font-weight: 900; }
.page-intro { display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 24px; }
.page-intro.compact { align-items: center; }
.page-intro p { margin: 4px 0; color: var(--muted); line-height: 1.55; }
.page-intro .lead { margin-top: 0; color: var(--ink); font-family: Georgia, serif; font-size: 21px; }
.as-of { min-width: 145px; padding: 16px; border-radius: 12px; background: var(--forest); color: white; }
.as-of span, .as-of strong { display: block; }
.as-of span { color: #9fb3aa; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.as-of strong { margin-top: 6px; font-family: Georgia, serif; font-size: 21px; }
.table-panel { overflow: hidden; box-shadow: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 14px; color: var(--muted); background: #f1f3ef; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { max-width: 320px; padding: 13px 14px; border-bottom: 1px solid #ecefeb; vertical-align: top; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfa; }
.table-title { display: inline-block; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.signal { display: inline-block; max-width: 150px; color: var(--green); font-size: 10px; font-weight: 900; }
.methodology { padding: 14px 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.market-terminal { margin-bottom: 26px; overflow: hidden; border: 1px solid #263d34; border-radius: 17px; color: #edf4f0; background: #10251e; box-shadow: 0 22px 55px rgba(16,42,34,.18); }
.terminal-toolbar { display: flex; align-items: end; gap: 18px; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.1); background: #0c2019; }
.instrument-picker { min-width: 230px; }
.instrument-picker label { display: block; margin-bottom: 5px; color: #789589; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.instrument-picker select { min-height: 35px; border-color: #365047; color: white; background: #17352b; }
.range-controls { display: flex; gap: 3px; }
.range-controls button { min-width: 43px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 6px; color: #8ea69c; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; }
.range-controls button:hover, .range-controls button.active { color: #10251e; background: #d4a844; }
.indicator-controls { display: flex; gap: 14px; margin-left: auto; padding-bottom: 8px; }
.indicator-controls label { display: flex; align-items: center; gap: 6px; color: #9eb2aa; font-size: 10px; font-weight: 800; }
.indicator-controls input { min-height: auto; width: auto; accent-color: #d4a844; }
.terminal-quote { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 22px 10px; }
.terminal-quote > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 9px; }
.terminal-quote strong { font-size: 15px; }
.terminal-quote small { grid-column: 2; color: #799187; font-size: 10px; }
.terminal-ticker { grid-row: span 2; margin: 0; color: #10251e; background: #d4a844; }
.terminal-price { display: flex; align-items: baseline; gap: 12px; }
.terminal-price strong { font-family: Georgia, serif; font-size: clamp(25px, 4vw, 38px); font-variant-numeric: tabular-nums; }
.terminal-price span { font-size: 11px; font-weight: 900; }
.terminal-price .positive { color: #65d39b; }
.terminal-price .negative { color: #ef7f70; }
.chart-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 5px 22px 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.chart-stats div { padding: 10px 12px; border-right: 1px solid rgba(255,255,255,.08); }
.chart-stats div:last-child { border: 0; }
.chart-stats span, .chart-stats strong { display: block; }
.chart-stats span { color: #789087; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.chart-stats strong { margin-top: 5px; color: #e4ede9; font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-shell { position: relative; min-height: 430px; margin: 6px 0 0; }
.chart-shell canvas { display: block; width: 100%; height: 430px; }
.chart-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #88a096; background: rgba(16,37,30,.78); font-size: 12px; }
.chart-loading[hidden] { display: none; }
.chart-tooltip { position: absolute; z-index: 3; width: 230px; padding: 11px 13px; border: 1px solid #3a5349; border-radius: 8px; color: #dce7e2; background: rgba(7,23,17,.95); box-shadow: 0 12px 30px rgba(0,0,0,.28); pointer-events: none; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip strong { margin-bottom: 6px; color: white; font-size: 11px; }
.chart-tooltip span { margin-top: 3px; color: #a3b8af; font-size: 9px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 3px 22px 19px; color: #83998f; font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 18px; height: 2px; background: #1f6b4c; }
.chart-legend .legend-close { background: #4bab7c; }
.chart-legend .legend-sma3 { background: #c9952d; }
.chart-legend .legend-sma7 { background: #7596c0; }
.chart-legend .legend-volume { height: 7px; background: rgba(79,167,126,.35); }
.terminal-lower-grid { display: grid; grid-template-columns: .8fr 1.2fr; border-top: 1px solid rgba(255,255,255,.1); }
.analysis-card { padding: 18px 22px; }
.analysis-card + .analysis-card { border-left: 1px solid rgba(255,255,255,.1); }
.analysis-card .eyebrow { color: #d4a844; }
.analysis-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 0; }
.analysis-card dl div { padding-right: 15px; }
.analysis-card dt { color: #789087; font-size: 9px; }
.analysis-card dd { margin: 5px 0 0; font-size: 11px; font-weight: 800; }
.market-board > div { margin-top: 10px; }
.market-board > div > div { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 10px; }
.market-board > div > div:last-child { border: 0; }
.market-board span { color: #657f74; font-variant-numeric: tabular-nums; }
.market-board strong { overflow: hidden; color: #cbd9d3; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.market-board b { color: #eef4f1; font-variant-numeric: tabular-nums; }
.market-board-empty { color: #789087; font-size: 10px; }
.chart-disclaimer { margin: 0; padding: 12px 22px; color: #70877d; background: rgba(0,0,0,.09); border-top: 1px solid rgba(255,255,255,.07); font-size: 9px; line-height: 1.5; }
.filters { display: flex; align-items: end; gap: 12px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.filters label { display: grid; gap: 6px; min-width: 190px; }
.filters label:first-child { flex: 1; }
.filters label span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
input, select { min-height: 40px; width: 100%; padding: 0 11px; border: 1px solid #cad2cd; border-radius: 8px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,107,76,.1); }
.clear-filter { padding: 10px 4px; color: var(--muted); font-size: 11px; }
.details-button { border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; color: var(--muted); font-size: 11px; }
.pagination div { display: flex; gap: 8px; }
.empty-state { padding: 35px; color: var(--muted); text-align: center; }
dialog { width: min(720px, calc(100vw - 32px)); max-height: 80vh; padding: 28px; border: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(16,42,34,.55); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 20px; font-family: Georgia, serif; }
.dialog-close { position: absolute; top: 15px; right: 18px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.record-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.record-details div { padding: 12px; background: white; }
.record-details dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.record-details dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.integration-key { display: flex; gap: 16px; color: var(--muted); font-size: 11px; }
.integration-key span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ready { background: var(--green); }
.dot.blocked { background: var(--gold); }
.automation-list { display: grid; gap: 10px; }
.automation-card { display: grid; grid-template-columns: 5px 1fr minmax(190px, .7fr); overflow: hidden; box-shadow: none; }
.automation-state.ready { background: var(--green); }
.automation-state.blocked { background: var(--gold); }
.automation-body { padding: 17px 20px; }
.automation-body h3 { margin: 0; font-size: 14px; }
.automation-body p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; }
.automation-meta { display: flex; gap: 8px; }
.automation-meta span { padding: 4px 7px; border-radius: 5px; color: #52615a; background: #edf0ee; font-size: 9px; font-weight: 800; }
.automation-note { display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; border-left: 1px solid var(--line); background: #fafbf9; }
.automation-note strong { font-size: 11px; }
.automation-note span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.quality-card { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.quality-card:last-child { border: 0; }
.quality-head { display: flex; justify-content: space-between; gap: 14px; }
.quality-head span, .quality-card small { color: var(--muted); font-size: 10px; }
.quality-card p { margin: 5px 0; color: var(--red); font-size: 11px; font-weight: 800; }
.quality-card small { line-height: 1.5; }
.newsletter-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.ingestion-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.ingestion-layout { display: grid; grid-template-columns: minmax(280px,.65fr) minmax(620px,1.35fr); gap: 16px; }
.ingestion-upload-panel { padding: 22px; box-shadow: none; }
.ingestion-upload-panel h2, .ingestion-review-panel h2 { margin: 6px 0 18px; font-family: Georgia, serif; font-size: 22px; }
.ingestion-review-panel { margin-top: 18px; overflow: hidden; box-shadow: none; }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 20px 0; }
.review-actions { display: flex; gap: 8px; }
.ingestion-chip { display: inline-block; padding: 5px 7px; border-radius: 999px; color: #52615a; background: #edf0ee; font-size: 8px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.ingestion-chip.applied, .ingestion-chip.validated { color: #175c3e; background: var(--green-soft); }
.ingestion-chip.failed, .ingestion-chip.rejected, .ingestion-chip.blocked { color: #8a3129; background: #f8e7e4; }
.ingestion-chip.review_required, .ingestion-chip.extracting, .ingestion-chip.received { color: #7b570f; background: var(--gold-soft); }
.newsletter-status-card { position: relative; display: grid; align-content: start; min-height: 145px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.newsletter-status-card > span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.newsletter-status-card > strong { margin: 10px 0 6px; font-family: Georgia, serif; font-size: 20px; }
.newsletter-status-card > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-chip { width: fit-content; margin-top: 12px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 900; }
.status-chip.ready { color: #175c3e; background: var(--green-soft); }
.status-chip.blocked { color: #7b570f; background: var(--gold-soft); }
.newsletter-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(560px,1.28fr); gap: 16px; }
.newsletter-add-panel { padding: 22px; box-shadow: none; }
.newsletter-add-panel h2, .panel-heading h2 { margin: 6px 0 18px; font-family: Georgia, serif; font-size: 22px; }
.subscriber-form { display: grid; gap: 14px; }
.subscriber-form label { display: grid; gap: 6px; }
.subscriber-form label span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.subscriber-form .button { width: 100%; }
.form-help { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.subscriber-panel { overflow: hidden; box-shadow: none; }
.panel-heading { padding: 20px 20px 0; }
.form-notice { margin-bottom: 14px; padding: 12px 14px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.form-notice.success { color: #175c3e; background: var(--green-soft); border: 1px solid #b9d8c8; }
.form-notice.error { color: #8a3129; background: #f8e7e4; border: 1px solid #e8b9b3; }
.table-subtitle, .run-error { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.run-error { max-width: 240px; color: var(--red); }
.approval-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--cream); }
.approval-card { width: min(540px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.approval-card h1 { margin: 22px 0 12px; font-family: Georgia, serif; font-size: 34px; line-height: 1.08; }
.approval-card p { color: var(--muted); line-height: 1.6; }
.approval-warning { margin: 20px 0; padding: 14px; border: 1px solid #ebd59e; border-radius: 9px; color: #6e4d0b; background: var(--gold-soft); font-size: 11px; line-height: 1.55; }
.login-page { min-height: 100vh; background: var(--forest); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 42px clamp(34px, 6vw, 88px); color: white; background: radial-gradient(circle at 85% 15%, rgba(201,149,45,.28), transparent 29%), linear-gradient(145deg, #163d31 0%, #102a22 58%, #0b211a 100%); }
.login-story::after { content: ""; position: absolute; right: -110px; bottom: -170px; width: 430px; height: 430px; border: 1px solid rgba(233,189,91,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(233,189,91,.035), 0 0 0 140px rgba(233,189,91,.025); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: fit-content; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 18px; }
.login-brand small { margin-top: 3px; color: #a9bcb3; font-size: 11px; }
.login-message { position: relative; z-index: 1; max-width: 650px; margin: auto 0; padding: 70px 0; }
.login-message .eyebrow { color: #e9bd5b; }
.login-message h1 { margin: 17px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 78px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.login-message > p:last-child { max-width: 570px; color: #bfd0c8; font-size: 16px; line-height: 1.7; }
.login-foot { position: relative; z-index: 1; color: #829d90; font-size: 11px; letter-spacing: .04em; }
.login-panel { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.login-form-wrap { width: min(410px, 100%); }
.login-form-wrap h2 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 500; letter-spacing: -.04em; }
.login-subtitle { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 18px; }
.login-form label { display: grid; gap: 7px; }
.login-form label span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-form input { min-height: 50px; padding: 0 14px; }
.login-submit { min-height: 50px; margin-top: 4px; border: 0; border-radius: 9px; color: white; background: var(--green); cursor: pointer; font-weight: 800; box-shadow: 0 10px 24px rgba(31,107,76,.2); }
.login-submit:hover { background: #195b40; }
.login-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #e8b9b3; border-radius: 9px; color: #852d25; background: #fbebe9; font-size: 12px; line-height: 1.5; }
.login-security { margin: 22px 0 0; color: #8b9691; font-size: 10px; line-height: 1.5; text-align: center; }
@media (max-width: 1100px) { .index-grid { grid-template-columns: repeat(2,1fr); } .dataset-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -280px; width: 260px; transition: left .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  .sidebar.open { left: 0; }
  .menu-button { display: block; }
  .topbar { padding: 18px 20px; }
  .topbar-actions { display: none; }
  .integration-banner { padding: 10px 20px; }
  .content { padding: 24px 20px 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .dataset-grid { grid-template-columns: repeat(2,1fr); }
  .page-intro { flex-direction: column; }
  .filters { align-items: stretch; flex-direction: column; }
  .automation-card { grid-template-columns: 5px 1fr; }
  .automation-note { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }
  .terminal-toolbar { align-items: stretch; flex-wrap: wrap; }
  .instrument-picker { flex: 1 0 100%; }
  .indicator-controls { margin-left: 0; }
  .chart-stats { grid-template-columns: repeat(3, 1fr); }
  .chart-stats div:nth-child(3) { border-right: 0; }
  .terminal-lower-grid { grid-template-columns: 1fr; }
  .analysis-card + .analysis-card { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .newsletter-status-grid { grid-template-columns: 1fr; }
  .newsletter-layout { grid-template-columns: 1fr; }
  .ingestion-status-grid, .ingestion-layout { grid-template-columns: 1fr; }
  .review-heading { align-items: stretch; flex-direction: column; }
}
@media (max-width: 760px) { .login-shell { display: block; min-height: 100vh; background: var(--paper); } .login-story { min-height: 260px; padding: 28px 24px; } .login-message { margin: 40px 0 0; padding: 20px 0; } .login-message h1 { margin: 10px 0; font-size: 42px; } .login-message > p:last-child { display: none; } .login-foot { display: none; } .login-panel { padding: 38px 24px 55px; } .login-form-wrap h2 { font-size: 36px; } }
@media (max-width: 540px) { .index-grid, .dataset-grid { grid-template-columns: 1fr; } .hero-links { flex-direction: column; } .record-details { grid-template-columns: 1fr; } .terminal-quote { align-items: start; flex-direction: column; } .terminal-price { width: 100%; justify-content: space-between; } .chart-stats { grid-template-columns: repeat(2, 1fr); } .chart-stats div:nth-child(3) { border-right: 1px solid rgba(255,255,255,.08); } .chart-stats div:nth-child(even) { border-right: 0; } .analysis-card dl { grid-template-columns: 1fr; gap: 12px; } }
