:root {
  --ink: #081016;
  --ink-2: #0d1921;
  --paper: #f2f4ee;
  --paper-2: #e7ebe2;
  --line: rgba(213, 226, 220, 0.18);
  --line-dark: #cfd8d1;
  --muted: #83928f;
  --accent: #47e3b0;
  --accent-soft: #baf5df;
  --danger: #fa8273;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(71, 227, 176, 0.55); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.market-shell { overflow: hidden; }

.market-header { min-height: 76px; padding: 0 clamp(21px, 4.8vw, 82px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.market-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--paper); font-size: 15px; font-weight: 840; letter-spacing: .02em; text-decoration: none; }
.market-brand b { color: var(--accent); font-weight: inherit; }
.market-nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 33px); }
.market-nav a { color: #a4afad; font-size: 10px; font-weight: 690; text-decoration: none; transition: color 0.2s ease; }
.market-nav a:hover { color: var(--accent); }
.market-header-actions { justify-self: end; display: flex; align-items: center; gap: 17px; }
.market-status { display: flex; align-items: center; gap: 7px; color: #9daba8; font: 9px var(--mono); }
.market-status i, .terminal-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(71, 227, 176, 0.11); }
.market-login { min-height: 37px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid rgba(186, 245, 223, 0.35); border-radius: 5px; color: var(--accent-soft); background: transparent; font-size: 9px; font-weight: 760; text-decoration: none; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.market-login:hover { color: var(--ink); background: var(--accent); transform: translateY(-1px); }
.market-account { min-height: 37px; padding: 0; border: 0; color: #9fb1ab; background: transparent; font-size: 9px; font-weight: 740; cursor: pointer; transition: color 0.2s ease; }
.market-account:hover, .market-account.authenticated { color: var(--accent); }

.ticker-tape { height: 39px; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b151c; }
.ticker-track { width: max-content; min-width: 100%; height: 100%; display: flex; align-items: center; animation: ticker-shift 38s linear infinite; }
.ticker-tape:hover .ticker-track { animation-play-state: paused; }
.ticker-item { min-width: 188px; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); color: #b6c1bd; font: 9px var(--mono); white-space: nowrap; }
.ticker-item strong { color: #f1f4ed; font-weight: 650; }
.ticker-item b { font-weight: 650; }
.ticker-item.negative b { color: var(--danger); }
.ticker-item.positive b { color: var(--accent); }

main { background: var(--paper); color: var(--ink); }
.market-hero { min-height: min(730px, calc(100svh - 115px)); padding: clamp(55px, 8vw, 128px) clamp(21px, 8.6vw, 150px) clamp(55px, 7vw, 105px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr); align-items: center; gap: clamp(52px, 10vw, 180px); position: relative; background: radial-gradient(circle at 79% 32%, rgba(71, 227, 176, 0.15), transparent 26%), var(--ink); overflow: hidden; }
.market-hero::after { content: ""; width: min(62vw, 800px); aspect-ratio: 1; position: absolute; right: -18vw; bottom: -42vw; border: 1px solid rgba(186, 245, 223, 0.09); border-radius: 50%; box-shadow: 0 0 0 60px rgba(186, 245, 223, 0.025), 0 0 0 120px rgba(186, 245, 223, 0.018); pointer-events: none; }
.hero-copy, .hero-terminal { position: relative; z-index: 1; }
.eyebrow { margin: 0; color: #75cdb0; font: 9px var(--mono); font-weight: 700; letter-spacing: 0.13em; }
.hero-copy h1 { max-width: 730px; margin: 18px 0 0; color: #f4f7f0; font-size: clamp(45px, 6.2vw, 92px); letter-spacing: -0.08em; line-height: 0.94; }
.hero-copy h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.1em; }
.hero-description { max-width: 520px; margin: 26px 0 0; color: #aebbb8; font-size: 13px; line-height: 1.72; }
.hero-actions { margin-top: 34px; display: flex; gap: 10px; }
.action { min-height: 48px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 820; text-decoration: none; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.action span { font-size: 17px; line-height: 1; }
.action.primary { color: var(--ink); background: var(--accent); }
.action.primary:hover { background: #6af0c4; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(71, 227, 176, 0.16); }
.action.quiet { border-color: rgba(186, 245, 223, 0.26); color: #c9d5d1; background: transparent; }
.action.quiet:hover { border-color: var(--accent); color: var(--accent); }
.action.light { color: var(--ink); background: #e8eee9; }
.action.light:hover { color: var(--ink); background: var(--accent); transform: translateY(-2px); }
.hero-meta { max-width: 680px; margin: 56px 0 0; padding-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-meta div { min-width: 0; }
.hero-meta dt { color: #73807d; font: 8px var(--mono); }
.hero-meta dd { margin: 8px 0 0; color: #d1dcda; font-size: 9px; font-weight: 680; line-height: 1.45; }

.hero-terminal { min-height: 408px; padding: 22px; border: 1px solid rgba(186, 245, 223, 0.21); background: rgba(12, 28, 34, 0.78); box-shadow: 0 38px 90px rgba(0, 0, 0, 0.22); backdrop-filter: blur(12px); animation: terminal-in 0.65s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.terminal-head, .terminal-foot { display: flex; align-items: center; justify-content: space-between; color: #7d928e; font: 8px var(--mono); }
.terminal-live { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.terminal-symbol { margin-top: 31px; display: flex; align-items: start; justify-content: space-between; }
.terminal-symbol small { display: block; color: var(--accent); font: 10px var(--mono); }
.terminal-symbol strong { display: block; margin-top: 7px; color: #eff7f1; font-size: 19px; letter-spacing: -0.035em; }
.terminal-symbol button { width: 34px; height: 34px; border: 1px solid rgba(186, 245, 223, 0.25); border-radius: 50%; color: var(--accent); background: transparent; font-size: 18px; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.terminal-symbol button:hover { color: var(--ink); background: var(--accent); transform: rotate(25deg); }
.terminal-price { margin-top: 33px; display: flex; align-items: baseline; gap: 8px; }
.terminal-price strong { color: #f5f9f5; font: 34px var(--mono); letter-spacing: -0.08em; }
.terminal-price span { color: #8ba19c; font: 10px var(--mono); }
.terminal-price b { padding: 5px 7px; border-radius: 3px; color: var(--accent); background: rgba(71, 227, 176, 0.1); font: 9px var(--mono); }
.terminal-price b.negative { color: var(--danger); background: rgba(250, 130, 115, 0.1); }
.terminal-chart { width: 100%; height: 148px; margin-top: 20px; overflow: visible; }
.terminal-chart path:first-of-type { fill: url(#data-area); }
.terminal-chart path:last-of-type { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.terminal-foot { padding-top: 14px; border-top: 1px solid var(--line); }

.source-note { min-height: 90px; padding: 20px clamp(21px, 8.6vw, 150px); display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 17px; color: #53635f; background: #dce4dc; }
.source-note p { max-width: 880px; margin: 0; font-size: 10px; line-height: 1.65; }
.source-note strong { color: var(--ink); }
.source-pulse { width: 9px; height: 9px; border-radius: 50%; background: #75a996; box-shadow: 0 0 0 6px rgba(117, 169, 150, 0.18); }
.source-note a { color: #255b4a; font-size: 9px; font-weight: 780; text-decoration: none; white-space: nowrap; }
.source-note a span { margin-left: 5px; }

.stream-section, .plan-section, .tools-section { padding: clamp(65px, 8vw, 112px) clamp(21px, 8.6vw, 150px); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 0.56fr); align-items: end; gap: 50px; }
.section-intro h2 { max-width: 650px; margin: 15px 0 0; font-size: clamp(33px, 4.4vw, 61px); letter-spacing: -0.065em; line-height: 0.96; }
.section-intro > p { max-width: 400px; margin: 0 0 4px; color: #63706d; font-size: 12px; line-height: 1.7; }
.stream-toolbar { margin-top: 50px; padding-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-dark); }
.market-filters { display: flex; gap: 6px; }
.market-filters button { min-height: 34px; padding: 0 11px; border: 1px solid transparent; border-radius: 4px; color: #64716e; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.market-filters button:hover, .market-filters button.active { border-color: #b7c4bd; color: var(--ink); background: #e7ece5; }
.instrument-search { width: min(230px, 36vw); min-height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #cbd5ce; border-radius: 4px; background: #f8faf6; }
.instrument-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.instrument-search input::placeholder { color: #99a39f; }
.instrument-search span { color: #62736e; font: 17px var(--mono); }
.market-table-wrap { overflow-x: auto; }
.market-table { min-width: 670px; width: 100%; border-collapse: collapse; }
.market-table th { height: 54px; color: #889491; font: 8px var(--mono); font-weight: 700; letter-spacing: 0.08em; text-align: left; }
.market-table td { height: 71px; border-top: 1px solid #d8dfd9; color: #4f5e59; font: 10px var(--mono); }
.market-table td:first-child strong, .market-table td:first-child small { display: block; }
.market-table td:first-child strong { color: var(--ink); font: 11px var(--sans); }
.market-table td:first-child small { margin-top: 5px; color: #7a8984; font-size: 9px; }
.market-table .price { color: var(--ink); font-weight: 700; }
.market-table .change { font-weight: 700; }
.market-table .change.positive { color: #168662; }
.market-table .change.negative { color: #cf5f51; }
.range-bar { width: 125px; height: 4px; position: relative; overflow: hidden; border-radius: 99px; background: #d6dfd8; }
.range-bar i { height: 100%; position: absolute; left: 0; border-radius: inherit; background: #759b8e; }
.feed-label { color: #6d7e79; font-size: 8px; }
.watch-toggle { width: 32px; height: 32px; border: 1px solid #cdd7d0; border-radius: 50%; color: #779087; background: transparent; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.watch-toggle:hover, .watch-toggle.active { border-color: #2a8b6b; color: #12654b; background: #d8f2e7; transform: rotate(15deg); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.alert-toggle { width: 32px; height: 32px; border: 1px solid #cdd7d0; border-radius: 50%; color: #779087; background: transparent; font: 13px var(--mono); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.alert-toggle:hover { border-color: #2a8b6b; color: #12654b; background: #d8f2e7; }

.plan-section { background: #e3e8e1; }
.plan-intro { align-items: start; }
.plan-grid { margin-top: 51px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #bdc9c1; border-bottom: 1px solid #bdc9c1; }
.plan-item { min-height: 432px; padding: 31px clamp(18px, 2.6vw, 42px) 25px; display: flex; flex-direction: column; border-right: 1px solid #bdc9c1; }
.plan-item:last-child { border-right: 0; }
.plan-item.featured { color: #e9f4ee; background: #12231f; }
.plan-item > div > span { color: #70817a; font: 8px var(--mono); }
.plan-item h3 { margin: 22px 0 0; font-size: 28px; letter-spacing: -0.05em; }
.plan-item p { min-height: 58px; margin: 12px 0 0; color: #63726d; font-size: 10px; line-height: 1.65; }
.plan-price { display: block; margin-top: 18px; color: #765800; font: 12px var(--mono); }
.plan-item.featured > div > span { color: var(--accent); }
.plan-item.featured p { color: #a7b9b2; }
.plan-item.featured .plan-price { color: var(--accent); }
.plan-item ul { margin: 30px 0; padding: 0; list-style: none; border-top: 1px solid #bdc9c1; }
.plan-item li { padding: 11px 0; border-bottom: 1px solid #bdc9c1; color: #53625d; font-size: 9px; }
.plan-item.featured ul, .plan-item.featured li { border-color: rgba(186, 245, 223, 0.19); }
.plan-item.featured li { color: #c0d1c9; }
.plan-item button { width: 100%; min-height: 43px; margin-top: auto; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #aebeb6; border-radius: 4px; color: #2f5145; background: transparent; font-size: 9px; font-weight: 810; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.plan-item button:hover { color: var(--ink); border-color: #6de8bb; background: #c6f5df; transform: translateY(-1px); }
.plan-item.featured button { border-color: rgba(186, 245, 223, 0.4); color: var(--accent); }
.plan-item.featured button:hover { color: var(--ink); background: var(--accent); }

.access-section { min-height: 460px; padding: clamp(57px, 7vw, 100px) clamp(21px, 8.6vw, 150px); display: grid; grid-template-columns: 0.22fr 0.9fr 1fr; align-items: center; gap: clamp(24px, 5vw, 90px); color: #eff8f2; background: #0d191d; }
.access-number { color: #4ddcab; font: clamp(54px, 7vw, 100px) Georgia, serif; font-style: italic; }
.access-copy h2 { max-width: 560px; margin: 15px 0 0; font-size: clamp(34px, 4.1vw, 58px); letter-spacing: -0.065em; line-height: 0.98; }
.access-copy > p:last-child { max-width: 470px; margin: 17px 0 0; color: #a5b6b0; font-size: 11px; line-height: 1.7; }
.access-actions { width: 100%; max-width: 440px; display: grid; gap: 12px; justify-self: end; }
.provider-label { color: #7d968d; font: 8px var(--mono); }
.provider-access-item { padding: 17px 0; border-top: 1px solid rgba(186, 245, 223, 0.19); }
.provider-access-item:first-child { border-top: 0; }
.provider-access-item strong { display: block; margin: 7px 0 5px; color: var(--accent); font-size: 24px; letter-spacing: -0.05em; }
.provider-access-item p { margin: 0 0 13px; color: #9eaea9; font-size: 9px; line-height: 1.55; }
.access-actions .action { width: 100%; }
.access-actions small { display: block; margin-top: 14px; color: #788a84; font-size: 8px; line-height: 1.6; }
.provider-access-item small { margin: 4px 0 0; }

.tools-section { background: var(--paper); }
.tools-list { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.tools-list article { min-height: 184px; padding: 24px 30px 24px 0; border-right: 1px solid var(--line-dark); }
.tools-list article + article { padding-left: 30px; }
.tools-list article:last-child { border-right: 0; }
.tools-list span { color: #73857f; font: 8px var(--mono); }
.tools-list strong { display: block; margin-top: 28px; color: var(--ink); font-size: 17px; letter-spacing: -0.03em; }
.tools-list p { max-width: 250px; margin: 9px 0 0; color: #687773; font-size: 10px; line-height: 1.65; }

.partner-section { min-height: 355px; padding: clamp(57px, 8vw, 112px) clamp(21px, 8.6vw, 150px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.52fr); align-items: end; gap: 80px; color: #f0f6f2; background: radial-gradient(circle at 73% 80%, rgba(71, 227, 176, 0.15), transparent 30%), #0a1216; }
.partner-section h2 { max-width: 720px; margin: 14px 0 0; font-size: clamp(35px, 5.1vw, 72px); letter-spacing: -0.075em; line-height: 0.94; }
.partner-section > div:last-child p { max-width: 350px; margin: 0 0 24px; color: #acbbb7; font-size: 11px; line-height: 1.7; }
.market-footer { min-height: 83px; padding: 0 clamp(21px, 8.6vw, 150px); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #789087; background: #081016; font-size: 8px; line-height: 1.5; }
.market-footer span:last-child { max-width: 510px; text-align: right; }
.market-footer nav { display: flex; gap: 16px; white-space: nowrap; }
.market-footer a { color: inherit; text-underline-offset: 3px; }

.market-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 35px; overflow-y: auto; border: 0; border-radius: 11px; color: var(--ink); background: #f2f6f0; box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38); }
.market-dialog[open] { animation: terminal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.market-dialog::backdrop { background: rgba(2, 7, 10, 0.73); backdrop-filter: blur(8px); }
.dialog-close { width: 36px; height: 36px; position: absolute; top: 14px; right: 14px; border: 1px solid #cbd5ce; border-radius: 50%; color: #657772; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.market-dialog h2 { max-width: 340px; margin: 13px 0 0; font-size: 31px; letter-spacing: -0.06em; line-height: 1; }
.market-dialog > p:not(.eyebrow) { max-width: 370px; margin: 14px 0 20px; color: #5d6e68; font-size: 11px; line-height: 1.7; }
.market-dialog-detail { margin: 0 0 24px; padding: 15px 0; border-top: 1px solid #cbd5ce; border-bottom: 1px solid #cbd5ce; color: #436056; font: 9px var(--mono); line-height: 1.7; }
.market-dialog .action { width: 100%; }
.lead-form[hidden] { display: none; }
.lead-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-form label > span { display: block; margin-bottom: 7px; color: #52635d; font: 8px var(--mono); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lead-form input:not([type="checkbox"]), .lead-form textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #c4d0c8; border-radius: 5px; outline: 0; color: var(--ink); background: #fbfcf8; font-size: 11px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.lead-form textarea { min-height: 78px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { border-color: #339d78; box-shadow: 0 0 0 3px rgba(71, 227, 176, 0.13); }
.lead-message-field { grid-column: 1 / -1; }
.lead-consent { margin: 14px 0 0; display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 9px; color: #52635d; font-size: 9px; line-height: 1.55; cursor: pointer; }
.lead-consent input { width: 17px; height: 17px; margin: 0; accent-color: #168662; }
.lead-consent > span { margin: 0 !important; color: inherit !important; font: inherit !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
.lead-form-status { min-height: 17px; margin: 11px 0; color: #50635c; font: 9px var(--mono); line-height: 1.55; }
.lead-form-status.error { color: #ad3e34; }
.lead-form-status.success { color: #12654b; }
.lead-submit[disabled] { opacity: 0.58; cursor: wait; transform: none; }
.dialog-secondary { width: 100%; min-height: 39px; margin-top: 10px; border: 0; color: #60716b; background: transparent; font-size: 9px; font-weight: 760; cursor: pointer; }
.dialog-secondary:hover { color: var(--ink); }

.account-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow-y: auto; border: 0; border-radius: 11px; color: var(--ink); background: #eef2ec; box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42); }
.account-dialog[open] { animation: terminal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.account-dialog::backdrop { background: rgba(2, 7, 10, 0.78); backdrop-filter: blur(8px); }
.account-close { width: 38px; height: 38px; position: absolute; top: 17px; right: 17px; z-index: 2; border: 1px solid rgba(224, 239, 231, 0.25); border-radius: 50%; color: #b8c9c2; background: transparent; font-size: 21px; cursor: pointer; }
.account-head { min-height: 190px; padding: 40px clamp(25px, 5vw, 55px); color: #eff7f3; background: radial-gradient(circle at 80% 70%, rgba(71, 227, 176, 0.13), transparent 35%), #0a1418; }
.account-head h2 { margin: 13px 0 0; font-size: clamp(32px, 4.5vw, 50px); letter-spacing: -0.065em; line-height: 0.96; }
.account-head > p:last-child { max-width: 460px; margin: 15px 0 0; color: #8fa19b; font-size: 10px; line-height: 1.65; }
.account-load-notice { margin: 22px clamp(25px, 5vw, 55px); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e2c457; border-left: 4px solid #c89500; background: #fff4c7; }
.account-load-notice[hidden] { display: none; }
.account-load-notice strong { color: #725700; font: 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.account-load-notice p { margin: 5px 0 0; color: #665b3d; font: 9px/1.55 var(--mono); }
.account-load-notice button { flex: 0 0 auto; min-height: 35px; padding: 0 13px; border: 1px solid #c89500; border-radius: 4px; color: #725700; background: transparent; font: 8px var(--mono); font-weight: 800; cursor: pointer; }
.account-load-notice button:disabled { opacity: .55; cursor: wait; }
.account-auth { max-width: 560px; padding: 36px clamp(25px, 5vw, 55px) 45px; }
.account-auth form > label { display: block; margin-bottom: 8px; color: #52635d; font: 8px var(--mono); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.account-auth form > div { display: grid; grid-template-columns: 1fr auto; }
.account-auth input { min-width: 0; min-height: 48px; padding: 0 13px; border: 1px solid #becbc3; border-radius: 5px 0 0 5px; outline: 0; color: var(--ink); background: #fafcf8; font-size: 12px; }
.account-auth form > div > button { min-width: 128px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 0 5px 5px 0; color: var(--ink); background: var(--accent); font-size: 9px; font-weight: 800; cursor: pointer; }
.account-auth form > small { display: block; margin-top: 9px; color: #778780; font-size: 8px; }
.otp-back { margin-top: 11px; padding: 0; border: 0; color: #557067; background: transparent; font-size: 8px; text-decoration: underline; cursor: pointer; }
.account-feedback { min-height: 18px; margin: 12px 0 0; color: #34745e; font: 8px var(--mono); line-height: 1.55; }.account-feedback.error { color: #ad3e34; }
.account-workspace { padding: 0 clamp(25px, 5vw, 55px) 45px; }
.account-workspace[hidden], .account-auth[hidden], #otp-form[hidden] { display: none; }
.account-summary { min-height: 86px; margin: 0 calc(clamp(25px, 5vw, 55px) * -1); padding: 0 clamp(25px, 5vw, 55px); display: grid; grid-template-columns: repeat(5, 1fr) auto; align-items: center; border-bottom: 1px solid #c7d2ca; background: #e2e8e1; }
.account-summary > div { padding-right: 25px; }.account-summary span { display: block; color: #72817b; font: 7px var(--mono); }.account-summary strong { display: block; margin-top: 8px; color: #173229; font: 15px var(--mono); }
.account-summary small { display: block; margin-top: 4px; color: #70817a; font: 6px var(--mono); }
.account-summary button { padding: 9px 0; border: 0; color: #687a73; background: transparent; font-size: 8px; cursor: pointer; }
.account-grid { padding-top: 36px; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 42px; }
.account-section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid #c7d2ca; }
.account-section-head span { color: #2c9b76; font: 7px var(--mono); letter-spacing: 0.09em; }.account-section-head h3 { margin: 7px 0 0; font-size: 21px; letter-spacing: -0.05em; }.account-section-head small { color: #7b8984; font: 7px var(--mono); }
.account-list:empty::before { content: "Henüz kayıt yok."; min-height: 86px; display: grid; place-items: center; color: #87948f; font: 8px var(--mono); border-bottom: 1px solid #d0d9d2; }
.account-list-item { min-height: 67px; padding: 12px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #d0d9d2; }
.account-list-item strong, .account-list-item span { display: block; }.account-list-item strong { color: #193129; font-size: 10px; }.account-list-item span { margin-top: 4px; color: #75847e; font: 7px var(--mono); }
.account-list-item b { color: #1f795b; font: 8px var(--mono); font-weight: 700; }.account-list-item b.triggered { color: #a75445; }
.account-list-item button { width: 29px; height: 29px; border: 1px solid #bfcbc3; border-radius: 50%; color: #6c7e77; background: transparent; cursor: pointer; }
.account-notifications { margin-top: 30px; }
.account-team { margin-top: 34px; padding: 22px; border: 1px solid #ddc563; background: #fff9e6; }
.team-invitations { margin-top: 18px; padding: 15px; border-left: 3px solid #c89500; background: #fff4c7; }
.team-invitations > strong, .team-columns h4 { color: #725700; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.team-create-form { margin-top: 18px; }
.team-create-form > label { display: block; margin-bottom: 7px; color: #675a35; font: 8px var(--mono); }
.team-create-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.team-create-form input, .team-invite-form input, .team-invite-form select, .team-member-role { min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid #cfbd78; color: var(--ink); background: #fffdf6; font: 9px var(--mono); }
.team-create-form button, .team-invite-form button { min-height: 40px; padding: 0 13px; border: 1px solid #be920d; color: var(--ink); background: #f4bd12; font: 700 8px var(--mono); cursor: pointer; }
.team-create-form[hidden], .team-workspace[hidden], .team-invitations[hidden], #organization-management[hidden] { display: none; }
.team-workspace { margin-top: 18px; border-top: 1px solid #e1ce82; }
.team-workspace-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e1ce82; }
.team-workspace-head select { min-width: 190px; min-height: 32px; margin-bottom: 8px; padding: 0 8px; border: 1px solid #cfbd78; color: var(--ink); background: #fffdf6; font: 8px var(--mono); }
.team-workspace-head select[hidden] { display: none; }
.team-workspace-head strong { display: block; color: var(--ink); font-size: 18px; }
.team-workspace-head span { display: block; margin-top: 5px; color: #736640; font: 8px var(--mono); }
.team-workspace-head button { border: 0; color: #9b4f43; background: transparent; font: 8px var(--mono); text-decoration: underline; cursor: pointer; }
.team-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .82fr); gap: 30px; padding-top: 20px; }
.team-columns h4 { margin: 0 0 10px; }
.team-invite-form { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 7px; }
.team-invite-form button { grid-column: 1 / -1; }
.team-member-actions { display: flex; align-items: center; gap: 6px; }
.team-member-role { min-height: 31px; padding-inline: 7px; }
.team-member-actions button, .team-invitation-action { width: auto; padding: 0 8px; border-radius: 14px; color: #8f493e; font-size: 7px; }
.team-role-badge { min-width: 54px; text-align: right; text-transform: uppercase; }
.account-api-access { margin-top: 30px; }
.api-access-copy { max-width: 640px; margin: 12px 0 0; color: #64756e; font-size: 9px; line-height: 1.65; }
.api-key-form { padding: 13px 0; display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; gap: 7px; border-bottom: 1px solid #d0d9d2; }
.api-key-form input { min-width: 0; height: 36px; padding: 0 8px; border: 1px solid #c2cec6; border-radius: 4px; color: #253d35; background: #fafcf8; font-size: 8px; }
.api-key-form button { min-height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 4px; color: var(--ink); background: var(--accent); font-size: 8px; font-weight: 800; cursor: pointer; }
.api-key-reveal { margin-top: 13px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid #96c8b4; border-radius: 5px; background: #dff3e8; }
.api-key-reveal span { grid-column: 1 / -1; color: #35735c; font: 7px var(--mono); letter-spacing: 0.07em; }
.api-key-reveal code { overflow: hidden; color: #173229; font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.api-key-reveal button { padding: 5px 8px; border: 1px solid #9ac9b6; border-radius: 3px; color: #1f604a; background: transparent; font-size: 7px; cursor: pointer; }
.api-key-item > div > span:nth-child(2) { color: #546b62; }
.api-key-item b { min-width: 52px; text-align: right; }
.api-key-item b.revoked, .api-key-item b.expired { color: #a75445; }
.api-key-item > button { width: auto; padding: 0 9px; border-radius: 15px; color: #9b4f43; font-size: 7px; }
.notification-item.unread { margin-inline: -10px; padding-inline: 10px; background: rgba(71, 227, 176, 0.08); }
.notification-item > div > span:nth-child(2) { max-width: 720px; color: #4b5d56; font: 9px var(--sans); line-height: 1.5; }
.notification-item > button { width: auto; padding: 0 9px; border-radius: 15px; color: #285e4b; font-size: 7px; }
.alert-form { padding: 13px 0; display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 7px; border-bottom: 1px solid #d0d9d2; }
.alert-form select, .alert-form input { min-width: 0; height: 36px; padding: 0 8px; border: 1px solid #c2cec6; border-radius: 4px; color: #253d35; background: #fafcf8; font-size: 8px; }
.alert-form > button { width: 36px; height: 36px; border: 0; border-radius: 4px; color: var(--ink); background: var(--accent); font-size: 0; cursor: pointer; }.alert-form > button span { font-size: 16px; }
.session-details { margin-top: 35px; border-top: 1px solid #c7d2ca; }.session-details summary { padding: 15px 0; display: flex; justify-content: space-between; color: #546860; font: 8px var(--mono); cursor: pointer; }.session-details summary::marker { content: ""; }
#account-session-list > div { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #d0d9d2; color: #667871; font: 8px var(--mono); }
#account-session-list button { border: 0; color: #9b4f43; background: transparent; font-size: 8px; cursor: pointer; }

@keyframes ticker-shift { to { transform: translateX(-38%); } }
@keyframes terminal-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .market-header { grid-template-columns: 1fr auto; }
  .market-nav { display: none; }
  .market-hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 710px; }
  .hero-terminal { width: min(100%, 560px); }
  .plan-grid, .tools-list { grid-template-columns: 1fr; }
  .plan-item { min-height: 0; border-right: 0; border-bottom: 1px solid #bdc9c1; }
  .plan-item:last-child { border-bottom: 0; }
  .plan-item p { min-height: 0; }
  .plan-item ul { margin: 22px 0; }
  .plan-item button { margin-top: 0; }
  .tools-list article, .tools-list article + article { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .tools-list article:last-child { border-bottom: 0; }
  .tools-list strong { margin-top: 12px; }
  .access-section { grid-template-columns: 0.2fr 1fr; }
  .access-actions { grid-column: 2; justify-self: start; }
  .partner-section { grid-template-columns: 1fr; gap: 32px; }
  .market-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .market-footer span:last-child { text-align: left; }
}

@media (max-width: 620px) {
  .account-team { padding: 16px; }
  .team-columns { grid-template-columns: 1fr; }
  .team-create-form > div, .team-invite-form { grid-template-columns: 1fr; gap: 7px; }
  .team-invite-form button { grid-column: auto; }
  .team-workspace-head { align-items: flex-start; flex-direction: column; padding-block: 17px; }
  .market-header { min-height: 65px; }
  .market-status { display: none; }
  .market-header-actions { gap: 10px; }
  .market-account { font-size: 8px; }
  .market-hero { min-height: auto; padding-top: 67px; }
  .hero-copy h1 { font-size: 47px; }
  .hero-description { font-size: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .action { width: 100%; }
  .hero-meta { margin-top: 39px; gap: 12px; grid-template-columns: 1fr; }
  .hero-terminal { min-height: 370px; padding: 18px; }
  .terminal-price strong { font-size: 28px; }
  .source-note { grid-template-columns: 15px 1fr; padding-block: 17px; }
  .source-note a { grid-column: 2; }
  .section-intro { grid-template-columns: 1fr; gap: 17px; }
  .stream-toolbar { align-items: stretch; flex-direction: column; }
  .market-filters { overflow-x: auto; }
  .market-filters button { flex: 0 0 auto; }
  .instrument-search { width: 100%; }
  .access-section { grid-template-columns: 1fr; }
  .access-actions { grid-column: 1; }
  .access-number { line-height: 0.8; }
  .market-footer { min-height: 105px; }
  .market-dialog { padding: 31px 23px 24px; }
  .dialog-close { width: 42px; height: 42px; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .lead-message-field { grid-column: auto; }
  .account-dialog { width: calc(100% - 14px); max-height: calc(100svh - 14px); }
  .account-head { min-height: 175px; padding-top: 48px; }
  .account-auth form > div { grid-template-columns: 1fr; gap: 7px; }.account-auth input, .account-auth form > div > button { border-radius: 5px; }.account-auth form > div > button { min-height: 44px; }
  .account-summary { padding-block: 15px; grid-template-columns: repeat(2, 1fr); gap: 15px 12px; }.account-summary button { grid-column: 1 / -1; text-align: left; }
  .account-grid { grid-template-columns: 1fr; gap: 38px; }
  .alert-form { grid-template-columns: 1fr 1fr; }.alert-form > button { width: 100%; }.alert-form > button span { display: inline; }
  .api-key-form { grid-template-columns: 1fr 1fr; }.api-key-form button { grid-column: 1 / -1; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Yellow / white product identity */
:root { --ink: #241f12; --ink-2: #372d12; --paper: #fffdf6; --paper-2: #fff5cf; --line: rgba(78, 60, 11, .18); --line-dark: #e7d895; --muted: #786b43; --accent: #f4bd12; --accent-soft: #ffe9a1; --danger: #ca5345; }
body { color: var(--ink); background: #fffdf6; }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: rgba(244, 189, 18, .7); }
.market-header { background: #fffdf6; border-bottom-color: #eadb9c; }.market-brand { color: var(--ink); }.market-nav a, .market-status, .market-account { color: #70613b; }.market-status i, .terminal-live i { box-shadow: 0 0 0 4px rgba(244, 189, 18, .17); }
.market-login { border-color: #d6b33c; color: #674a00; background: #fff9df; }.market-login:hover { color: var(--ink); background: var(--accent); }.market-account:hover, .market-account.authenticated { color: #9b7000; }
.ticker-tape { border-color: #d4ae28; background: var(--accent); }.ticker-item { border-color: rgba(47, 36, 4, .18); color: #654d08; }.ticker-item strong { color: var(--ink); }.ticker-item.positive b { color: #5b4600; }
.market-hero { color: var(--ink); background: linear-gradient(112deg, #fffdf6 0 53%, #f4bd12 53% 100%); }.market-hero::after { border-color: rgba(74, 55, 3, .18); box-shadow: 0 0 0 60px rgba(255, 253, 246, .2), 0 0 0 120px rgba(255, 253, 246, .13); }
.eyebrow { color: #9a7100; }.hero-copy h1 { color: var(--ink); }.hero-copy h1 em { color: #9a7100; }.hero-description { color: #594f35; }
.action.primary { color: var(--ink); background: #f4bd12; }.action.primary:hover { background: #ffd54e; box-shadow: 0 12px 28px rgba(189, 137, 0, .2); }.action.quiet { border-color: #cbb76a; color: #514625; background: rgba(255, 253, 246, .56); }.action.quiet:hover { border-color: #9a7100; color: #6f5000; }.action.light { background: #fffdf6; }
.hero-meta { border-color: rgba(55, 45, 18, .22); }.hero-meta dt { color: #796f50; }.hero-meta dd { color: #3f3620; }
.hero-terminal { border-color: rgba(48, 37, 5, .32); background: rgba(255, 253, 246, .88); box-shadow: 0 32px 64px rgba(95, 71, 4, .18); }.terminal-head, .terminal-foot, .terminal-price span { color: #786c48; }.terminal-symbol strong, .terminal-price strong { color: var(--ink); }.terminal-symbol button { border-color: #c7a22a; color: #795900; }.terminal-price b { color: #6e5200; background: #fff1bc; }.terminal-foot { border-color: #e0ce82; }
.source-note { color: #635732; background: #fff4c7; }.source-pulse { background: #e0a900; box-shadow: 0 0 0 6px rgba(224, 169, 0, .17); }.source-note a { color: #6c4e00; }
.market-filters button:hover, .market-filters button.active { border-color: #d8bd54; background: #fff4c7; }.instrument-search { border-color: #e2ce81; background: #fffefa; }.market-table td { border-color: #f0e6bd; color: #534a32; }.market-table .change.positive { color: #856100; }.range-bar { background: #f1e5b3; }.range-bar i { background: #edbd21; }.watch-toggle:hover, .watch-toggle.active, .alert-toggle:hover { border-color: #bd9004; color: #6e5100; background: #fff1ba; }
.plan-section { background: #fffdf6; }.plan-grid, .plan-item, .plan-item ul, .plan-item li { border-color: #e6d794; }.plan-item.featured { color: var(--ink); background: #f4bd12; }.plan-item.featured p, .plan-item.featured li { color: #503f10; }.plan-item.featured ul, .plan-item.featured li { border-color: rgba(73, 54, 4, .22); }.plan-item.featured > div > span { color: #765800; }.plan-item button { border-color: #d4bb59; color: #624b06; }.plan-item button:hover { border-color: #e4ad00; background: #fff0b3; }.plan-item.featured button { border-color: rgba(68, 51, 4, .34); color: #503c00; background: #fff6d5; }
.plan-item.featured .plan-price { color: #503c00; }
.access-section { color: var(--ink); background: #fff7dc; }.access-number { color: #e5ac00; }.access-copy > p:last-child, .provider-access-item p, .access-actions small { color: #655a3d; }.provider-label { color: #92701a; }.provider-access-item { border-color: #e5d48d; }
.partner-section { color: var(--ink); background: radial-gradient(circle at 78% 78%, rgba(255, 255, 255, .55), transparent 28%), #f4bd12; }.partner-section > div:last-child p { color: #564619; }.market-footer { color: #685a31; background: #fffdf6; border-top: 1px solid #eadb9c; }
.market-dialog, .account-dialog { background: #fffdf6; }.market-dialog::backdrop { background: rgba(59, 46, 13, .36); }.account-head { color: var(--ink); background: #f4bd12; }.account-head > p:last-child { color: #5f4d16; }.account-close { border-color: rgba(55, 42, 3, .34); color: var(--ink); }.account-summary { background: #fff4c7; border-color: #e6d794; }.account-summary strong { color: var(--ink); }.account-section-head { border-color: #e6d794; }.account-section-head span { color: #9a7100; }.account-list:empty::before, .account-list-item { border-color: #f0e6bd; }.account-list-item strong { color: var(--ink); }.account-auth form > div > button, .api-key-form button, .alert-form > button { background: #f4bd12; }.api-key-reveal { border-color: #e2c457; background: #fff2ba; }.api-key-reveal span, .api-key-reveal button { color: #715300; }
.api-usage-summary { margin: 15px 0 0; padding: 13px 0; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px; border-top: 1px solid #e8d991; border-bottom: 1px solid #e8d991; }.api-usage-summary span { color: #8c6800; font: 7px var(--mono); letter-spacing: .08em; }.api-usage-summary strong { color: var(--ink); font: 22px var(--mono); letter-spacing: -.06em; }.api-usage-summary small { color: #665a3b; font: 8px var(--mono); }.api-usage-summary b { color: #896400; }
.market-hero .hero-copy { animation: yellow-rise .7s cubic-bezier(.2, .8, .2, 1) both; }.market-table tbody tr { animation: row-reveal .42s ease both; }.market-table tbody tr:nth-child(2) { animation-delay: .04s; }.market-table tbody tr:nth-child(3) { animation-delay: .08s; }.market-table tbody tr:nth-child(4) { animation-delay: .12s; }.market-table tbody tr:hover td { background: #fff9e4; }.plan-item { transition: background .22s ease, transform .22s ease; }.plan-item:hover { transform: translateY(-4px); background: #fff8dc; }.plan-item.featured:hover { background: #ffd54e; }
@keyframes yellow-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } } @keyframes row-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) { .api-usage-summary { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .market-hero .hero-copy, .market-table tbody tr { animation: none; }.plan-item { transition: none; } }

/* 2026 interface refinement: editorial market terminal */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; color: var(--ink); background: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.market-header { position: sticky; top: 0; z-index: 80; min-height: 72px; background: rgba(255, 253, 246, .94); backdrop-filter: blur(18px); transition: min-height .2s ease, box-shadow .2s ease, background .2s ease; }
.market-header.scrolled { min-height: 64px; background: rgba(255, 253, 246, .98); box-shadow: 0 12px 34px rgba(55, 40, 0, .08); }
.market-brand { font-size: 16px; letter-spacing: -.01em; }
.market-nav a { position: relative; padding: 27px 0 25px; color: #625633; font-size: 11px; }
.market-nav a::after { content: ""; height: 2px; position: absolute; right: 50%; bottom: 16px; left: 50%; background: #b58500; transition: right .2s ease, left .2s ease; }
.market-nav a:hover::after, .market-nav a.active::after { right: 0; left: 0; }
.market-status { font-size: 10px; }
.market-status.stale { color: #a34135; }
.market-status.stale i { background: var(--danger); box-shadow: 0 0 0 4px rgba(202, 83, 69, .12); }
.market-account, .market-login { font-size: 11px; }
.market-login { min-height: 40px; padding-inline: 16px; }
.ticker-item { min-width: 198px; padding-inline: 22px; font-size: 10px; }
.market-hero { min-height: min(720px, calc(100svh - 111px)); padding-block: clamp(52px, 6.8vw, 92px); grid-template-columns: minmax(0, 1.05fr) minmax(380px, .74fr); gap: clamp(48px, 7vw, 118px); background: linear-gradient(113deg, #fffdf6 0 56%, #f4bd12 56% 100%); isolation: isolate; }
.market-hero::before { content: ""; position: absolute; inset: 0 0 0 56%; z-index: -1; opacity: .19; background-image: linear-gradient(rgba(79, 57, 0, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 57, 0, .2) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(135deg, transparent, #000 28%, #000); pointer-events: none; }
.hero-copy h1 { max-width: 760px; margin-top: 20px; font-size: clamp(50px, 6.15vw, 88px); line-height: .93; }
.hero-description { max-width: 570px; margin-top: 27px; font-size: 14px; line-height: 1.68; }
.hero-actions { margin-top: 32px; }
.action { min-height: 50px; padding-inline: 19px; font-size: 11px; }
.hero-meta { margin-top: 42px; }
.hero-meta dt { font-size: 9px; letter-spacing: .05em; }
.hero-meta dd { margin-top: 7px; font-size: 11px; }
.hero-terminal { min-height: 420px; padding: 26px; border-width: 1px; box-shadow: 0 36px 80px rgba(90, 66, 0, .2); }
.terminal-head, .terminal-foot { font-size: 9px; letter-spacing: .05em; }
.terminal-symbol strong { font-size: 22px; }
.terminal-price strong { font-size: clamp(32px, 3.1vw, 43px); }
.terminal-chart { height: 145px; }
.source-note p { font-size: 12px; }
.source-note a { font-size: 11px; }
.section-intro h2 { max-width: 720px; }
.section-intro > p { font-size: 14px; }
.stream-toolbar { margin-top: 44px; }
.market-filters button { min-height: 38px; padding-inline: 14px; font-size: 11px; }
.instrument-search { min-height: 40px; }
.instrument-search input { font-size: 12px; }
.market-table th { height: 58px; font-size: 9px; }
.market-table td { height: 76px; font-size: 11px; transition: background .18s ease; }
.market-table td:first-child strong { font-size: 13px; }
.market-table td:first-child small, .feed-label { font-size: 10px; }
.plan-item { min-height: 450px; }
.plan-item > div > span, .tools-list span, .provider-label { font-size: 9px; letter-spacing: .06em; }
.plan-item h3 { font-size: 31px; }
.plan-item p { font-size: 12px; }
.plan-item li, .plan-item button { font-size: 11px; }
.access-copy > p:last-child, .provider-access-item p, .tools-list p, .partner-section > div:last-child p { font-size: 12px; }
.tools-list strong { font-size: 20px; }
.market-footer { font-size: 10px; }
.market-dialog > p:not(.eyebrow), .lead-form input:not([type="checkbox"]), .lead-form textarea { font-size: 13px; }
.market-dialog-detail, .lead-form-status, .lead-consent { font-size: 10px; }
.lead-form label > span { font-size: 9px; }
.account-head > p:last-child, .api-access-copy { font-size: 11px; }
.account-auth form > label, .account-feedback, .account-section-head small, .account-list:empty::before { font-size: 9px; }
.account-list-item strong { font-size: 12px; }
.account-list-item span, .session-details summary, #account-session-list > div { font-size: 9px; }
.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .market-hero { grid-template-columns: 1fr; background: linear-gradient(160deg, #fffdf6 0 52%, #f4bd12 52% 100%); }
  .market-hero::before { inset: 52% 0 0; }
}

@media (max-width: 620px) {
  .market-header { min-height: 64px; padding-inline: 17px; }
  .market-header.scrolled { min-height: 58px; }
  .market-brand { font-size: 14px; }
  .market-login { min-height: 38px; padding-inline: 12px; font-size: 10px; }
  .ticker-tape { height: 36px; }
  .ticker-item { min-width: 168px; padding-inline: 15px; font-size: 9px; }
  .market-hero { min-height: auto; padding-top: 56px; background: linear-gradient(165deg, #fffdf6 0 58%, #f4bd12 58% 100%); }
  .market-hero::before { inset: 58% 0 0; background-size: 40px 40px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 54px); }
  .hero-description { font-size: 13px; }
  .hero-terminal { min-height: 365px; padding: 20px; }
  .source-note p { font-size: 11px; }
  .stream-section, .plan-section, .tools-section { padding-block: 58px; }
  .section-intro > p { font-size: 13px; }
  .market-table td { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; transform: none; }
  .market-header { transition: none; }
}

/* Account quota and portable data */
.api-quota-band { margin: 18px 0 3px; padding: 17px 0; display: grid; grid-template-columns: minmax(120px, .65fr) minmax(240px, 1.5fr) minmax(150px, .8fr); align-items: center; gap: 24px; border-block: 1px solid #ddc563; }
.api-quota-band[hidden], .api-key-form[hidden], .api-key-reveal[hidden] { display: none; }
.api-quota-status span, .api-quota-remaining > span, .account-data > div:first-child > span { display: block; color: #8d6800; font: 8px var(--mono); letter-spacing: .08em; }
.api-quota-status strong { display: block; margin-top: 8px; color: #2d624b; font: 13px var(--mono); }
.api-quota-status strong[data-level="warning"] { color: #8b6500; }
.api-quota-status strong[data-level="critical"], .api-quota-status strong[data-level="exhausted"] { color: #a33d34; }
.api-quota-meter > div { display: flex; align-items: baseline; gap: 7px; color: #65582f; font: 12px var(--mono); }
.api-quota-meter > div strong { color: var(--ink); font-size: 24px; letter-spacing: -.05em; }
.api-quota-meter > div b { color: #806000; font-weight: 700; }
.api-quota-meter progress { width: 100%; height: 8px; margin-top: 10px; display: block; overflow: hidden; border: 0; border-radius: 0; background: #eee3b8; accent-color: #c79600; }
.api-quota-meter progress::-webkit-progress-bar { background: #eee3b8; }
.api-quota-meter progress::-webkit-progress-value { background: #c79600; }
.api-quota-meter progress[data-level="critical"]::-webkit-progress-value, .api-quota-meter progress[data-level="exhausted"]::-webkit-progress-value { background: #a33d34; }
.api-quota-meter progress::-moz-progress-bar { background: #c79600; }
.api-quota-meter small { display: block; margin-top: 7px; color: #776b48; font: 8px var(--mono); }
.api-quota-remaining strong { display: block; margin-top: 5px; color: var(--ink); font: 23px var(--mono); }
.api-quota-remaining small { display: block; margin-top: 4px; color: #776b48; font: 8px var(--mono); line-height: 1.5; }
.api-quota-remaining small b { color: #795a00; }
.account-data { margin-top: 32px; padding: 19px 0; display: flex; align-items: center; justify-content: space-between; gap: 35px; border-block: 1px solid #ddc563; }
.account-data h3 { margin: 7px 0 0; color: var(--ink); font-size: 18px; }
.account-data p:not(.account-feedback) { max-width: 650px; margin: 7px 0 0; color: #665b3d; font-size: 10px; line-height: 1.6; }
.account-data-action { min-width: 150px; text-align: right; }
.account-data-action button { min-width: 142px; height: 44px; padding: 0 15px; border: 1px solid #be920d; color: var(--ink); background: #f4bd12; font: 9px var(--mono); font-weight: 700; cursor: pointer; }
.account-data-action button span { margin-left: 10px; font-size: 14px; }
.account-data-action button:disabled { opacity: .55; cursor: wait; }
.account-data-action .account-feedback { margin-top: 7px; text-align: right; }

.account-management { margin-top: 28px; padding: 22px; border: 1px solid #ddc563; background: #fff9e6; }
.account-management .account-section-head a { color: var(--ink); text-underline-offset: 3px; }
.account-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; border: 1px solid #e1ce82; background: #e1ce82; }
.account-management-grid article { padding: 21px; background: #fffdf6; }
.account-management-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: 16px; }
.account-management-grid p { margin: 0 0 18px; color: #665b3d; font-size: 10px; line-height: 1.65; }
.account-management-form { display: grid; gap: 8px; }
.account-management-form label { color: #675a35; font: 8px var(--mono); letter-spacing: .04em; }
.account-management-form > div { display: flex; gap: 8px; }
.account-management-form input { min-width: 0; flex: 1; border: 1px solid #cfbd78; background: #fff; color: var(--ink); padding: 11px 12px; font: 10px var(--mono); }
.account-management-form button { border: 1px solid #be920d; background: #f4bd12; color: var(--ink); padding: 10px 14px; font: 700 8px var(--mono); cursor: pointer; }
.account-management-form button:disabled { cursor: wait; opacity: .55; }
.account-management-form .management-secondary { justify-self: start; border-color: transparent; background: transparent; color: #715f2e; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.account-danger-zone { box-shadow: inset 3px 0 0 #d84b38; }
.account-danger-zone h4, .account-danger-zone label strong { color: #a32f21; }
.account-danger-zone .account-management-form button { border-color: #b8392a; background: #d84b38; color: #fff; }

@media (max-width: 620px) {
  .api-quota-band { grid-template-columns: 1fr; gap: 15px; }
  .account-data { align-items: stretch; flex-direction: column; gap: 16px; }
  .account-data-action { text-align: left; }
  .account-data-action button { width: 100%; }
  .account-data-action .account-feedback { text-align: left; }
  .account-management { padding: 16px; }
  .account-management-grid { grid-template-columns: 1fr; }
  .account-danger-zone { box-shadow: inset 0 3px 0 #d84b38; }
  .account-management-form > div { flex-direction: column; }
}

/* Account billing */
.account-billing { margin-top: 34px; }
.billing-layout { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 34px; padding-top: 20px; }
.billing-checkout-form { padding-right: 34px; border-right: 1px solid #e6d794; }
.billing-checkout-form label { display: block; margin-bottom: 8px; color: #6e6244; font: 9px var(--mono); }
.billing-checkout-form select, .billing-checkout-form button { width: 100%; min-height: 43px; border: 1px solid #d8c36f; border-radius: 0; font: 10px var(--mono); }
.billing-checkout-form select { padding: 0 12px; color: var(--ink); background: #fffdf6; }
.billing-checkout-form button { margin-top: 9px; color: var(--ink); background: #f4bd12; font-weight: 700; cursor: pointer; }
.billing-checkout-form button span { margin-left: 8px; font-size: 14px; }
.billing-checkout-form button:disabled, .billing-checkout-form select:disabled { opacity: .52; cursor: not-allowed; }
.billing-checkout-form > small { display: block; margin-top: 9px; color: #776b4b; font: 8px/1.5 var(--mono); }
.billing-checkout-form .account-feedback { margin-top: 10px; }
.billing-cancellation { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e6d794; }
.billing-cancellation > strong { display: block; color: var(--ink); font-size: 10px; }
.billing-cancellation > p:not(.account-feedback) { margin: 7px 0 0; color: #776b4b; font: 8px/1.55 var(--mono); }
.billing-cancellation button { color: #8a3f35; background: transparent; border-color: #d8a69e; }
.billing-cancellation button:hover { color: #fffdf6; background: #a84e42; border-color: #a84e42; }
.billing-cancellation button:disabled { opacity: .52; cursor: wait; }
.billing-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.billing-history h4 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid #e6d794; color: #77651d; font: 8px var(--mono); letter-spacing: .08em; }
.billing-row a { min-width: 76px; padding: 8px 10px; border: 1px solid #d4bb59; color: #624b06; font: 8px var(--mono); text-align: center; text-decoration: none; }
.billing-row b[data-status="failed"], .billing-row b[data-status="payment_failed"] { color: #a75445; }
.billing-row b[data-status="expired"], .billing-row b[data-status="canceled"] { color: #756f61; }

.subscriber-market { margin-top: 34px; padding: 22px; border: 1px solid #d9bd4e; background: linear-gradient(135deg, #fff9dc, #fffdf6 68%); }
.subscriber-market .account-section-head { margin-bottom: 0; }
.subscriber-market .account-section-head button { min-height: 36px; padding: 0 13px; border: 1px solid #bd9004; color: #5e4700; background: transparent; font: 8px var(--mono); font-weight: 700; cursor: pointer; }
.subscriber-market .account-section-head button:hover { background: #f4bd12; }
.subscriber-market .account-section-head button:disabled { opacity: .45; cursor: not-allowed; }
.subscriber-market-meta { min-height: 42px; padding: 12px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #665b3d; font: 9px/1.5 var(--mono); }
.subscriber-market-meta p { margin: 0; }
.subscriber-market-meta time { flex: 0 0 auto; color: #876700; font-size: 8px; }
.subscriber-market-table-wrap { overflow-x: auto; }
.subscriber-market-table { width: 100%; min-width: 540px; border-collapse: collapse; }
.subscriber-market-table th { padding: 10px 8px; border-block: 1px solid #e6d794; color: #8b7634; font: 8px var(--mono); text-align: left; }
.subscriber-market-table td { padding: 14px 8px; border-bottom: 1px solid #eee3b8; color: var(--ink); font: 10px var(--mono); }
.subscriber-market-table td:first-child strong, .subscriber-market-table td:first-child small { display: block; }
.subscriber-market-table td:first-child small { margin-top: 4px; color: #776b4b; font: 9px var(--sans); }
.subscriber-market-table td.positive { color: #2d7457; font-weight: 700; }
.subscriber-market-table td.negative { color: #a84e42; font-weight: 700; }
.subscriber-market > a { width: max-content; margin-top: 13px; display: block; color: #735700; font: 8px var(--mono); }
.subscriber-market.locked { border-color: #e5dba9; background: #fbf7e7; }

@media (max-width: 800px) {
  .billing-layout { grid-template-columns: 1fr; gap: 26px; }
  .billing-checkout-form { padding-right: 0; padding-bottom: 24px; border-right: 0; border-bottom: 1px solid #e6d794; }
}

@media (max-width: 560px) {
  .billing-history { grid-template-columns: 1fr; }
  .account-billing .account-section-head { align-items: start; flex-direction: column; }
  .subscriber-market { padding: 17px; }
  .subscriber-market .account-section-head, .subscriber-market-meta { align-items: flex-start; flex-direction: column; }
}

/* Native price history, sharing the terminal's typography and palette. */
.price-chart { margin: 22px 0 26px; padding: 24px; border: 1px solid var(--line, #dfddd4); background: #fffef8; min-width: 0; scroll-margin-top: 100px; }
.chart-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.chart-heading .eyebrow { margin: 0 0 8px; font-size: 10px; }
.chart-heading h3 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.6px; }
#chart-feed, .chart-selection-label { font-size: 11px; color: #6b6b62; }
.chart-selection { position: relative; width: min(330px, 50vw); max-width: 50%; display: grid; justify-items: stretch; gap: 6px; text-align: right; }
.chart-symbol-trigger {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #cfc7a7;
  background: #fffdf6;
  color: #24261f;
  font: 600 12px/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
}
.chart-symbol-trigger:hover, .chart-symbol-trigger[aria-expanded="true"] { border-color: #a77900; background: #fff8d9; }
.chart-symbol-trigger:disabled { color: #9a988d; cursor: default; background: #f5f3eb; }
.chart-symbol-trigger i { width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.chart-symbol-trigger[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.chart-symbol-list {
  position: absolute;
  z-index: 20;
  top: 59px;
  right: 0;
  width: min(360px, calc(100vw - 72px));
  max-height: 286px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #b99319;
  background: #fffdf6;
  box-shadow: 0 14px 32px rgb(55 43 5 / 18%);
  scrollbar-color: #bd9004 #f2ecd3;
  text-align: left;
}
.chart-symbol-list[hidden] { display: none; }
.chart-symbol-list button {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 9px 12px 9px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #ebe2bc;
  background: transparent;
  color: #24261f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chart-symbol-list button:last-child { border-bottom: 0; }
.chart-symbol-list button:hover, .chart-symbol-list button:focus-visible { background: #f8f0cd; }
.chart-symbol-list button[aria-selected="true"] { background: #f4bd12; }
.chart-symbol-list button[aria-selected="true"]::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #5f4700; }
.chart-symbol-list button > span { min-width: 0; display: grid; gap: 2px; }
.chart-symbol-list strong { font: 700 12px var(--mono); letter-spacing: .02em; }
.chart-symbol-list small { overflow: hidden; color: #6c685b; font: 11px var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.chart-symbol-list button[aria-selected="true"] small { color: #55430b; }
.chart-symbol-list i { padding: 4px 6px; border: 1px solid #d6c98f; color: #756023; font: normal 700 8px var(--mono); letter-spacing: .06em; }
.chart-symbol-list button[aria-selected="true"] i { border-color: #846500; color: #4f3c00; }
#chart-price { justify-self: end; font-size: 20px; font-variant-numeric: tabular-nums; }
.chart-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 12px; border-bottom: 1px solid #e8e5da; }
.chart-button-group { display: flex; flex-wrap: wrap; gap: 3px; }
.chart-controls button, .chart-footer button { padding: 7px 10px; background: transparent; border: 1px solid transparent; font: inherit; font-size: 11px; color: #65685d; cursor: pointer; }
.chart-controls button[aria-pressed="true"] { background: #f4bd12; color: #24261f; border-color: #e7b411; }
.chart-controls button:hover, .chart-footer button:hover { border-color: #9e9f92; }
.chart-readout { min-height: 35px; padding-top: 12px; font-size: 11px; color: #606556; font-variant-numeric: tabular-nums; }
.market-price-chart { width: 100%; display: block; height: auto; min-height: 190px; touch-action: pan-y; cursor: crosshair; }
.chart-grid-line { fill: none; stroke: #e7e8df; stroke-width: 1; }
.chart-axis-label { fill: #72776a; font-size: 10px; font-family: inherit; }
.chart-candles-up { fill: #288462; stroke: #288462; stroke-width: 1; }
.chart-candles-down { fill: #cc5c4f; stroke: #cc5c4f; stroke-width: 1; }
.chart-price-line { fill: none; stroke: #b78a00; stroke-width: 2; }
.chart-price-area { fill: #f4bd12; opacity: .12; stroke: none; }
.chart-crosshair { fill: none; stroke: #757d69; stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.chart-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e8e5da; padding-top: 8px; font-size: 10px; color: #74776c; }
.chart-footer span:first-child { color: #4f5847; }
.row-actions .chart-toggle { background: transparent; color: #6b725e; border: 0; font-size: 20px; cursor: pointer; padding: 5px; }
.price-chart :focus-visible { outline: 2px solid #977100; outline-offset: 3px; }
@media (max-width: 640px) {
  .price-chart { padding: 15px 10px; }
  .chart-heading { gap: 12px; }
  .chart-heading h3 { font-size: 18px; }
  .chart-selection { width: 54%; max-width: 54%; }
  .chart-symbol-trigger { min-height: 40px; padding-inline: 10px; font-size: 11px; }
  .chart-symbol-list { top: 56px; width: min(330px, calc(100vw - 80px)); }
  #chart-price { font-size: 16px; }
  .chart-heading .eyebrow { font-size: 9px; }
  .chart-readout { min-height: 48px; line-height: 1.5; }
  .chart-footer { flex-wrap: wrap; }
  .chart-footer span:nth-child(2) { display: none; }
  .chart-controls button { padding: 8px; }
}

.market-table-wrap { max-height: 620px; overflow: auto; }
.market-table thead { position: sticky; top: 0; z-index: 2; background: #fffdf6; }

/* Market finder */
.stream-toolbar {
  margin-top: 44px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 13px;
  border: 0;
}
.instrument-finder {
  min-height: 76px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border-block: 1px solid #dcca7e;
  background: #fffdf6;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.instrument-finder:focus-within {
  border-color: #aa7e00;
  background: #fffaf0;
  box-shadow: inset 4px 0 #f4bd12;
}
.instrument-search-icon {
  width: 17px;
  height: 17px;
  position: relative;
  display: block;
  border: 1.8px solid #6f674d;
  border-radius: 50%;
}
.instrument-search-icon::after {
  content: "";
  width: 8px;
  height: 1.8px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  border-radius: 2px;
  background: #6f674d;
  transform: rotate(45deg);
  transform-origin: left center;
}
.instrument-finder label {
  min-width: 0;
  display: grid;
  gap: 5px;
  cursor: text;
}
.instrument-finder label > span {
  color: #8a6a0a;
  font: 8px var(--mono);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.instrument-finder input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 650;
  letter-spacing: -.02em;
}
.instrument-finder input::-webkit-search-cancel-button { display: none; }
.instrument-finder input::placeholder { color: #a6a08d; font-weight: 520; }
.instrument-search-shortcut {
  min-width: 26px;
  padding: 5px 8px;
  border: 1px solid #ded2a3;
  color: #7b704e;
  background: #f8f2d8;
  font: 10px var(--mono);
  text-align: center;
}
.instrument-search-clear {
  min-height: 34px;
  padding: 0 3px 0 10px;
  border: 0;
  color: #6f5a18;
  background: transparent;
  font: 9px var(--mono);
  cursor: pointer;
}
.instrument-search-clear span { margin-left: 5px; font-size: 16px; vertical-align: -1px; }
.instrument-search-clear:hover { color: #1f1b10; }
.instrument-search-clear[hidden] { display: none; }
.market-filter-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.market-filters {
  min-width: 0;
  display: flex;
  gap: 3px;
}
.market-filters button {
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  color: #70694f;
  background: transparent;
  font-size: 10px;
}
.market-filters button b {
  min-width: 19px;
  padding: 3px 5px;
  border-radius: 10px;
  color: #897b50;
  background: #f1ead0;
  font: 8px var(--mono);
  font-weight: 700;
  text-align: center;
}
.market-filters button:hover { border-color: transparent; background: #f5efd9; }
.market-filters button.active {
  border-color: transparent;
  color: #241f12;
  background: #f4bd12;
}
.market-filters button.active b { color: #47380a; background: rgba(255, 255, 255, .48); }
.market-result-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 15px; }
.market-result-count { color: #7f765b; font: 9px var(--mono); white-space: nowrap; }
.watched-filter {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #ddcf99;
  color: #6f5d22;
  background: transparent;
  font: 9px var(--mono);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.watched-filter span { margin-right: 5px; font-size: 14px; }
.watched-filter b { margin-left: 5px; font-weight: 800; }
.watched-filter:hover, .watched-filter.active { border-color: #c29100; color: #3f3105; background: #fff0b5; }
.market-empty-state {
  height: 280px !important;
  padding: 55px 20px !important;
  color: #6f684f !important;
  text-align: center;
}
.market-empty-state > * { display: block; margin-inline: auto; }
.market-empty-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 19px;
  position: relative;
  border: 2px solid #b99c3d;
  border-radius: 50%;
}
.market-empty-icon::after {
  content: "";
  width: 12px;
  height: 2px;
  position: absolute;
  right: -9px;
  bottom: -4px;
  background: #b99c3d;
  transform: rotate(45deg);
}
.market-empty-state strong { color: var(--ink); font: 18px var(--sans); }
.market-empty-state small { max-width: 420px; margin-top: 9px; font: 11px/1.6 var(--sans); }
.market-empty-state button {
  margin-top: 20px;
  padding: 9px 13px;
  border: 1px solid #c49b16;
  color: #5f4900;
  background: transparent;
  font: 9px var(--mono);
  cursor: pointer;
}
.market-empty-state button:hover { color: #241f12; background: #f4bd12; }

@media (max-width: 880px) {
  .market-filter-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .market-filters { padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
  .market-filters::-webkit-scrollbar { display: none; }
  .market-result-tools { justify-content: space-between; }
}

@media (max-width: 560px) {
  .stream-toolbar { margin-top: 32px; gap: 10px; }
  .instrument-finder {
    min-height: 68px;
    padding-inline: 13px;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    gap: 11px;
  }
  .instrument-finder input { font-size: 15px; }
  .instrument-finder input::placeholder { font-size: 13px; }
  .instrument-search-shortcut { display: none; }
  .instrument-search-clear { width: 34px; padding: 0; font-size: 0; }
  .instrument-search-clear span { margin: 0; font-size: 19px; }
  .market-filters button { min-height: 36px; padding-inline: 9px; }
  .market-result-count { overflow: hidden; max-width: 57%; text-overflow: ellipsis; }
  .watched-filter { padding-inline: 9px; }
}

/* Asymmetric editorial composition — content and product palette stay intact. */
@media (min-width: 921px) {
  .market-hero {
    min-height: min(810px, calc(100svh - 111px));
    padding: clamp(76px, 8vw, 126px) clamp(28px, 7.4vw, 126px) clamp(92px, 10vw, 160px);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 2vw, 34px);
    background: linear-gradient(105deg, #fffdf6 0 62%, #f4bd12 62% 100%);
  }
  .market-hero::before { inset: 0 0 0 62%; background-size: 72px 72px; }
  .market-hero::after { right: -24vw; bottom: -31vw; }
  .hero-copy { grid-column: 1 / 8; padding-top: clamp(8px, 3vw, 44px); }
  .hero-copy h1 { max-width: 820px; }
  .hero-description { max-width: 540px; }
  .hero-meta { width: 88%; margin-top: clamp(54px, 6vw, 88px); }
  .hero-terminal {
    width: min(100%, 560px);
    min-height: 454px;
    grid-column: 8 / 13;
    align-self: end;
    justify-self: end;
    margin-bottom: clamp(-74px, -5vw, -42px);
    translate: 0 clamp(25px, 4vw, 62px);
  }

  .source-note {
    width: min(1120px, calc(100% - clamp(54px, 12vw, 210px)));
    min-height: 108px;
    margin: -28px 0 0 auto;
    padding: 24px clamp(25px, 4vw, 66px);
    position: relative;
    z-index: 4;
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .stream-section, .plan-section, .tools-section {
    padding: clamp(128px, 12vw, 190px) clamp(28px, 7.4vw, 126px);
  }
  .stream-section { position: relative; }
  .stream-section::after {
    content: "";
    width: 1px;
    height: clamp(120px, 14vw, 220px);
    position: absolute;
    top: 0;
    left: clamp(28px, 4.2vw, 72px);
    background: #e6d794;
  }
  .stream-section .section-intro,
  .plan-section .section-intro,
  .tools-section .section-intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 2vw, 34px);
  }
  .stream-section .section-intro > div { grid-column: 1 / 8; }
  .stream-section .section-intro > p { grid-column: 9 / 13; margin-top: clamp(52px, 6vw, 92px); }
  .stream-toolbar { width: 92%; margin: clamp(70px, 7vw, 110px) 0 0 auto; }
  .price-chart { width: 82%; margin: clamp(62px, 6vw, 92px) 0 clamp(50px, 5vw, 78px) auto; }
  .market-table-wrap { width: 92%; margin-right: auto; }

  .plan-section { padding-bottom: clamp(170px, 15vw, 240px); }
  .plan-section .section-intro > div { grid-column: 2 / 8; }
  .plan-section .section-intro > p { grid-column: 9 / 13; margin-top: 18px; }
  .plan-grid {
    margin-top: clamp(80px, 9vw, 138px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 2vw, 32px);
    border: 0;
  }
  .plan-item {
    min-height: 480px;
    padding: clamp(26px, 2.6vw, 42px);
    border: 0;
    border-block: 1px solid #e6d794;
  }
  .plan-item:nth-child(1) { grid-column: 1 / 4; margin-top: 92px; }
  .plan-item:nth-child(2) { grid-column: 4 / 9; min-height: 570px; }
  .plan-item:nth-child(3) { grid-column: 9 / 13; margin-top: 164px; }

  .access-section {
    min-height: 720px;
    padding: clamp(130px, 12vw, 190px) clamp(28px, 7.4vw, 126px);
    position: relative;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 2vw, 34px);
    overflow: hidden;
  }
  .access-number {
    position: absolute;
    top: 50%;
    right: -1.5vw;
    z-index: 0;
    color: #e5ac00;
    font-size: clamp(250px, 31vw, 470px);
    line-height: .7;
    opacity: .16;
    filter: blur(1px);
    transform: translateY(-48%);
    pointer-events: none;
  }
  .access-copy { grid-column: 2 / 8; position: relative; z-index: 1; }
  .access-copy h2 { max-width: 650px; }
  .access-actions { grid-column: 9 / 13; margin-top: clamp(160px, 17vw, 250px); position: relative; z-index: 1; }

  .tools-section { padding-top: clamp(160px, 15vw, 235px); padding-bottom: clamp(150px, 14vw, 220px); }
  .tools-section .section-intro > div { grid-column: 6 / 13; }
  .tools-section .section-intro > p { grid-column: 1 / 5; grid-row: 1; margin-top: clamp(90px, 10vw, 148px); }
  .tools-list {
    margin-top: clamp(90px, 10vw, 150px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(22px, 3.5vw, 56px);
    border: 0;
  }
  .tools-list article,
  .tools-list article + article {
    min-height: 250px;
    padding: 28px 0 20px;
    border: 0;
    border-top: 1px solid var(--line-dark);
  }
  .tools-list article:nth-child(1) { grid-column: 1 / 5; }
  .tools-list article:nth-child(2) { grid-column: 5 / 9; margin-top: 104px; }
  .tools-list article:nth-child(3) { grid-column: 9 / 13; margin-top: 34px; }
  .tools-list strong { margin-top: 45px; }

  .partner-section {
    min-height: 680px;
    padding: clamp(120px, 11vw, 175px) clamp(28px, 7.4vw, 126px);
    position: relative;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 2vw, 34px);
    overflow: hidden;
  }
  .partner-section::after {
    content: "";
    width: min(62vw, 880px);
    aspect-ratio: 1;
    position: absolute;
    top: -72%;
    right: -10%;
    border: 1px solid rgba(73, 54, 4, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 253, 246, .13), 0 0 0 140px rgba(255, 253, 246, .08);
    pointer-events: none;
  }
  .partner-section > div:first-child { grid-column: 1 / 9; position: relative; z-index: 1; }
  .partner-section > div:last-child { grid-column: 8 / 12; margin-top: clamp(190px, 18vw, 275px); position: relative; z-index: 1; }
  .market-footer { min-height: 118px; padding-inline: clamp(28px, 7.4vw, 126px); }

  .plan-section.reveal-ready { transform: translate3d(-34px, 18px, 0); }
  .access-section.reveal-ready { transform: translate3d(34px, 18px, 0); }
  .tools-section.reveal-ready { transform: translate3d(-24px, 28px, 0); }
  .plan-section.reveal-ready.is-visible,
  .access-section.reveal-ready.is-visible,
  .tools-section.reveal-ready.is-visible { transform: none; }
}

@media (min-width: 621px) and (max-width: 920px) {
  .stream-section, .plan-section, .tools-section { padding-block: clamp(100px, 13vw, 132px); }
  .source-note { width: calc(100% - 42px); margin: -20px 0 0 auto; position: relative; z-index: 3; }
  .stream-section .section-intro > p { margin-left: 18%; }
  .stream-toolbar { width: 95%; margin-left: auto; }
  .price-chart { width: 91%; margin: 62px 0 54px auto; }
  .market-table-wrap { width: 96%; }
  .plan-grid { border: 0; }
  .plan-item { width: 86%; border: 0; border-block: 1px solid #e6d794; }
  .plan-item:nth-child(2) { width: 94%; margin-left: auto; }
  .plan-item:nth-child(3) { width: 81%; margin: 64px 0 0 9%; }
  .access-section { min-height: 640px; position: relative; overflow: hidden; }
  .access-number { align-self: start; opacity: .38; }
  .access-actions { margin-top: 66px; }
  .tools-section .section-intro > div { width: 78%; margin-left: auto; }
  .tools-list article { width: 78%; }
  .tools-list article:nth-child(2) { margin-left: 15%; }
  .tools-list article:nth-child(3) { margin-left: auto; }
  .partner-section > div:last-child { width: 68%; margin-left: auto; }
}

@media (max-width: 620px) {
  .market-hero { padding-bottom: 104px; }
  .hero-terminal { margin-top: 22px; }
  .source-note { margin-top: -24px; position: relative; z-index: 3; }
  .stream-section, .plan-section, .tools-section { padding-block: 88px; }
  .stream-section .section-intro > p { width: 84%; margin-left: auto; }
  .price-chart { margin-block: 52px 42px; }
  .plan-grid { margin-top: 64px; border: 0; }
  .plan-item { border: 0; border-block: 1px solid #e6d794; }
  .plan-item:nth-child(1) { width: 91%; }
  .plan-item:nth-child(2) { width: 100%; margin: 34px 0 0; }
  .plan-item:nth-child(3) { width: 88%; margin: 54px 0 0 auto; }
  .access-section { min-height: 700px; padding-block: 106px; position: relative; overflow: hidden; }
  .access-number { position: absolute; top: 66px; right: -20px; opacity: .16; font-size: 190px; line-height: .7; pointer-events: none; }
  .access-copy, .access-actions { position: relative; z-index: 1; }
  .access-actions { width: 88%; margin: 82px 0 0 auto; }
  .tools-section .section-intro > div { width: 92%; margin-left: auto; }
  .tools-list { margin-top: 72px; border: 0; }
  .tools-list article,
  .tools-list article + article { width: 90%; padding-block: 30px 42px; border: 0; border-top: 1px solid var(--line-dark); }
  .tools-list article:nth-child(2) { margin-left: auto; }
  .tools-list article:nth-child(3) { width: 82%; margin-left: 8%; }
  .partner-section { min-height: 590px; padding-block: 98px; align-content: start; }
  .partner-section > div:last-child { width: 86%; margin: 76px 0 0 auto; }
  .market-footer { min-height: 150px; padding-block: 30px; }
}

/* Technical analysis controls and native indicator rendering. */
.indicator-toggle { display: inline-flex; align-items: center; gap: 7px; }
.indicator-toggle b {
  min-width: 19px;
  padding: 3px 5px;
  border-radius: 10px;
  color: #765800;
  background: #f1ead0;
  font: 700 8px var(--mono);
  text-align: center;
}
.indicator-toggle[aria-expanded="true"] { border-color: #b78a00; color: #4f3c00; background: #fff0b3; }
.indicator-picker {
  margin: 5px 0 15px;
  padding: 20px 0 17px;
  border-block: 1px solid #e6d794;
  background: #fffdf6;
  animation: indicator-picker-in .2s cubic-bezier(.2, .8, .2, 1) both;
}
.indicator-picker[hidden] { display: none; }
.indicator-picker-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.indicator-picker-head > div { display: grid; gap: 5px; }
.indicator-picker-head span { color: #8a6a0a; font: 800 8px var(--mono); letter-spacing: .1em; }
.indicator-picker-head strong { color: var(--ink); font-size: 17px; letter-spacing: -.03em; }
.indicator-picker-head button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #c49b16;
  color: #6f5a18;
  background: transparent;
  font: 700 9px var(--mono);
  cursor: pointer;
}
.indicator-groups { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 70px); }
.indicator-groups fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.indicator-groups legend { width: 100%; padding: 0 0 9px; border-bottom: 1px solid #e8e5da; color: #7f765b; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.indicator-groups fieldset > div { padding-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.indicator-groups button {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid #d8d5c9;
  color: #65685d;
  background: transparent;
  font: 700 9px var(--mono);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.indicator-groups button small { margin-left: 5px; color: #8b7b4c; font-size: 7px; }
.indicator-groups button:hover { border-color: #a77900; color: #3f3105; transform: translateY(-1px); }
.indicator-groups button[aria-pressed="true"] { border-color: #c29100; color: #241f12; background: #f4bd12; }
.indicator-groups button[aria-pressed="true"] small { color: #5f4700; }
.indicator-groups button:disabled { border-color: #e8e5da; color: #aaa79d; background: #f5f3eb; cursor: not-allowed; transform: none; }
.indicator-picker > p { margin: 14px 0 0; color: #7f765b; font: 8px/1.55 var(--mono); }
.indicator-legend { min-height: 25px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 15px; color: #6b6b62; font: 8px var(--mono); }
.indicator-legend:empty { display: none; }
.indicator-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.indicator-legend i { width: 14px; height: 2px; display: inline-block; background: #b78a00; }
.indicator-legend .ema i, .indicator-legend .vwap i { background: #288462; }
.indicator-legend .bollinger i { background: #cc5c4f; }
.indicator-legend .donchian i { background: #6b725e; }
.indicator-legend .ichimoku i { background: #846500; }
.chart-indicator-line { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }
.indicator-sma { stroke: #b78a00; }
.indicator-ema { stroke: #288462; }
.indicator-bollinger { stroke: #cc5c4f; stroke-dasharray: 5 4; opacity: .86; }
.indicator-bollinger-mid { stroke: #a84e42; stroke-width: 1; opacity: .68; }
.indicator-donchian { stroke: #6b725e; stroke-dasharray: 2 4; }
.indicator-ichimoku-fast { stroke: #846500; }
.indicator-ichimoku-base { stroke: #a84e42; }
.indicator-ichimoku-cloud { fill: #f4bd12; opacity: .08; stroke: none; pointer-events: none; }
.indicator-vwap { stroke: #288462; stroke-width: 2; stroke-dasharray: 8 3; }
.indicator-band { fill: #f4bd12; opacity: .055; stroke: none; pointer-events: none; }
.indicator-panels { display: grid; }
.indicator-panel { padding: 12px 0 8px; border-top: 1px solid #e8e5da; }
.indicator-panel-head { min-height: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.indicator-panel-head strong { color: var(--ink); font: 700 9px var(--mono); letter-spacing: .04em; }
.indicator-panel-head span { overflow: hidden; color: #6b6b62; font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.indicator-panel svg { width: 100%; height: auto; min-height: 105px; display: block; overflow: visible; }
.indicator-panel-line { fill: none; stroke: #b78a00; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.indicator-panel-line.secondary { stroke: #288462; stroke-width: 1.25; }
.indicator-panel-line.signal { stroke: #cc5c4f; stroke-width: 1.25; }
.indicator-guide { fill: none; stroke: #d8d5c9; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.indicator-zero { fill: none; stroke: #9e9f92; stroke-width: 1; vector-effect: non-scaling-stroke; }
.indicator-axis-label { fill: #72776a; font: 8px var(--mono); }
.indicator-hist-positive { fill: #288462; opacity: .7; }
.indicator-hist-negative { fill: #cc5c4f; opacity: .7; }
@keyframes indicator-picker-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .indicator-groups { grid-template-columns: 1fr; gap: 19px; }
  .indicator-picker { padding-block: 17px 14px; }
  .indicator-picker-head { align-items: start; }
  .indicator-picker-head strong { font-size: 15px; }
  .indicator-groups button { min-height: 37px; padding-inline: 9px; }
  .indicator-picker > p { max-width: 92%; }
  .indicator-legend { gap: 5px 10px; }
  .indicator-panel-head { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .indicator-picker { animation: none; }
}
