/* TradeDesk presentation system. Keep application selectors and behaviour intact. */
/* Academy / Pro refinement: local outline icons; completion is data-driven. */
:root {
  --td-navy: #12243b;
  --td-copy: #64748b;
  --td-border: #e3eaf1;
  --td-mint: #10d4a2;
  --td-soft: #f5f8fb;
  --bg: #f5f8fb;
  --panel: #fff;
  --panel2: #f8fafc;
  --text: #12243b;
  --muted: #64748b;
  --line: #e3eaf1;
  --accent: #10d4a2;
  --accent2: #008367;
  --nav: #fff;
  --shadow: 0 4px 20px #22395605, 0 1px 3px #22395603;
  --td-radius: 18px;
  --td-space: 24px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1727;
  --panel: #142236;
  --panel2: #192b40;
  --text: #eef5ff;
  --muted: #a4b4c8;
  --line: #2a3b50;
  --nav: #101e30;
  --accent2: #52e1ba;
  --td-navy: var(--text);
  --td-copy: var(--muted);
  --td-border: var(--line);
  --td-soft: var(--panel2);
  --shadow: 0 6px 24px #00000012;
}
body { color: var(--text); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
}
iconify-icon { flex-shrink: 0; }
.app { grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: 80px 1fr; }
.side { padding: 28px 18px 20px; gap: 0; border-color: var(--line); }
.side .logo { font-size: 22px; gap: 11px; margin: 0 10px 36px; letter-spacing: -.6px; }
.logo span { width: 38px; height: 38px; border-radius: 11px; }
.side nav { gap: 8px; }
.side nav a { min-height: 48px; font-size: 14px; padding: 12px 14px; border-radius: 11px; font-weight: 550; }
.side nav a i { font-size: 22px; width: 24px; }
.side nav a:hover { transform: none; background: var(--panel2); }
.side nav a.active { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent2); font-weight: 700; }
.side nav a[href="#calculator"] i { color: #00a986; }
.side nav a[href="#sessions"] i { color: #4285e8; }
.side nav a[href="#academy"] i { color: #8e67d9; }
.side nav a[href="#journal"] i { color: #ba66ad; }
.app-downloads { padding-top: 28px; gap: 8px; }
.app-downloads>span { font-size: 10px; letter-spacing: .1em; margin-bottom: 2px; }
.app-downloads a { padding: 10px 13px; background: var(--panel); border-radius: 10px; gap: 12px; }
.app-downloads i { font-size: 25px; }
.app-downloads small { font-size: 9px; }
.app-downloads b { font-size: 15px; }
.side-ad { margin-top: 16px; padding: 12px; background: var(--panel2); box-shadow: none; }
.side-ad b { font-size: 12px; }
.side-pro { padding: 18px 15px; margin-top: 16px; gap: 9px; border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel)); }
.side-pro>b { font-size: 15px; }
.side-pro>span { font-size: 25px; }
.side-pro small { font-size: 12px; line-height: 1.6; }
.side-pro a { font-size: 13px; min-height: 40px; display: grid; place-items: center; border-radius: 8px; }
.bar { min-height: 80px; padding: 16px 36px; background: var(--panel); }
.search { width: min(520px, 50vw); height: 44px; border-color: transparent; background: var(--panel2); border-radius: 11px; padding: 10px 14px; }
.search>span { display: grid; font-size: 21px; color: var(--muted); }
.search input { font-size: 14px; }
.bar-actions { gap: 20px; }
.bar-actions a { font-size: 14px; gap: 10px; }
.bar-actions a span { width: 38px; height: 38px; }
.bar-actions .notification-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--muted); }
.connection-badge { font-size: 11px; background: none; border: 0; padding: 0; }
main { max-width: 1550px; padding: 34px clamp(24px, 3vw, 48px) 60px; }
.page { scroll-margin-top: 114px; }
.page-title { margin-bottom: 28px; align-items: center; gap: 16px; }
.page-title h1 { font-size: clamp(28px, 2.2vw, 36px); line-height: 1.2; letter-spacing: -.035em; font-weight: 750; margin-bottom: 8px; }
.page-title p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.page-title select { font: inherit; font-size: 13px; padding: 11px 14px; border-radius: 10px; }
.panel { border: 1px solid var(--line); border-radius: var(--td-radius); box-shadow: var(--shadow); background: var(--panel); }
.panel-head { gap: 12px; margin-bottom: 20px; }
.panel-head h2 { font-size: 19px; letter-spacing: -.025em; }
.panel-head a, .panel-head span { font-size: 12px; }
.primary, .outline { min-height: 44px; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 650; line-height: 1.4; }
.primary { color: #063e32; background: var(--accent); box-shadow: none; }
.outline { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.home-top { grid-template-columns: 1fr; gap: 22px; }
.streak { padding: 20px 24px; gap: 18px; background: linear-gradient(105deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }
.flame { display: grid; place-items: center; width: 52px; height: 52px; font-size: 35px; border-radius: 15px; background: color-mix(in srgb, #f9bd67 14%, var(--panel)); }
.streak h3 { font-size: 19px; letter-spacing: -.02em; }
.streak p { font-size: 13px; margin-top: 4px; }
.week { gap: 12px; }
.week span { width: 34px; height: 34px; font-size: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--muted); }
.week span.complete { background: var(--accent); color: #064536; box-shadow: none; }
.mini-stats { gap: 20px; }
.mini-stats article { position: relative; min-height: 112px; padding: 22px 24px; align-content: center; gap: 8px; }
.mini-stats span, .journal-stats span { font-size: 13px; }
.mini-stats b { font-size: 30px; font-weight: 700; line-height: 1.2; }
.stat-icon { position: absolute; right: 22px; top: 25px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #4789df; background: color-mix(in srgb, #4789df 10%, var(--panel)); font-size: 22px; }
.mini-stats article:nth-child(2) .stat-icon { color: #9370dc; background: color-mix(in srgb, #9370dc 10%, var(--panel)); }
.mini-stats article:nth-child(3) .stat-icon { color: var(--accent2); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.quick { margin: 24px 0; gap: 16px; }
.quick a { min-height: 122px; padding: 20px 12px; gap: 12px; font-size: 14px; border-radius: 16px; box-shadow: var(--shadow); background: var(--panel); }
.quick a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #173a5110; border-color: var(--line); }
.quick i { width: 46px; height: 46px; font-size: 28px; border-radius: 14px; filter: none; }
.quick a:nth-child(3) i { color: #8e67d9; background: #f0eafb; }
.quick a:nth-child(5) i { color: #ba8a20; background: #fff5d9; }
.dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
.dashboard-grid>.panel { padding: 24px; min-width: 0; }
.asset-tabs, .journal-tabs { gap: 6px; flex-wrap: wrap; }
.asset-tabs button, .journal-tabs button { padding: 8px 13px; min-height: 36px; font-size: 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.asset-tabs button.active, .journal-tabs button.active { border-color: transparent; background: color-mix(in srgb, var(--accent) 11%, var(--panel)); color: var(--accent2); font-weight: 700; }
.watch #watchRows>button { grid-template-columns: 32px minmax(62px, 1fr) minmax(55px, .8fr) minmax(70px, 1fr) minmax(54px, .7fr); min-height: 66px; gap: 10px; padding: 13px 0; font-size: 13px; }
.watch #watchRows>button:hover { transform: none; }
.watch #watchRows .instrument-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); font-size: 20px; }
.watch #watchRows .mini-spark { min-width: 0; height: 25px; }
.event-row { grid-template-columns: 50px minmax(0, 1fr) auto; min-height: 66px; gap: 12px; font-size: 13px; }
.event-row>span { font-size: 12px; color: var(--muted); }
.event-row em { font-size: 10px; padding: 4px 8px; border-radius: 6px; }
.home-lower { gap: 22px; margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-lower article { padding: 24px; min-height: 240px; }
.home-lower article>span { color: var(--accent2); font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.home-lower h2 { font-size: 21px; line-height: 1.35; margin: 14px 0 10px; letter-spacing: -.03em; }
.home-lower p { font-size: 13px; line-height: 1.7; }
.home-lower a { font-size: 13px; }
.continue-card { background: linear-gradient(130deg, color-mix(in srgb, #aa8ce0 7%, var(--panel)), var(--panel)); }
.pulse-card { background: linear-gradient(130deg, color-mix(in srgb, #6295e0 7%, var(--panel)), var(--panel)); }
.compact-disclosure { border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; }
.compact-disclosure>summary { padding: 18px 24px; min-height: 68px; }
.compact-disclosure>summary span { font-size: 18px; }
.compact-disclosure>summary b { font-size: 12px; color: var(--muted); }
.calculator-library { padding: 24px; }
.calculator-library h2 { font-size: 21px; line-height: 1.4; }
.calculator-chips button { font-size: 13px; padding: 9px 14px; }
.live-strip { padding: 18px 24px; margin-bottom: 18px; border-radius: 14px; gap: 16px; }
.live-strip small { font-size: 10px; letter-spacing: .08em; }
.live-strip b { font-size: 16px; }
.live-strip strong { font-size: 24px; }
.market-examples { border: 0; background: transparent; box-shadow: none; padding: 2px 0 12px!important; }
.market-examples button { border: 1px solid var(--line); border-radius: 10px; }
.calculator-chart-drawer { margin: 18px 0 24px; }
.calculator-chart-drawer>summary { padding: 18px 24px!important; min-height: 72px!important; }
.calculator-chart-drawer>summary b { font-size: 18px!important; }
.calculator-chart-toolbar { padding: 12px 24px; font-size: 12px; }
.pro-calculator { grid-template-columns: minmax(0, 1.4fr) minmax(290px, .9fr); gap: 24px; align-items: start; }
.calc-form { padding: 28px; gap: 20px 18px; }
.calc-form label, .profile-card label, .trade-fields label, .settings label { font-size: 14px; font-weight: 550; gap: 8px; }
.calc-form input, .calc-form select, .profile-card input, .profile-card select, .settings input:not([type="checkbox"]), .settings select, .trade-fields input, .trade-fields select, .trade-fields textarea {
  min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 10px; font-size: 16px; width: 100%;
}
.calc-form label>small { font-size: 12px; line-height: 1.6; font-weight: 400; }
.calculator-defaults { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; gap: 12px; }
.calculator-defaults label { font-size: 12px; }
.calculator-defaults input { background: var(--panel2)!important; color: var(--text)!important; font-weight: 550; border-color: var(--line)!important; }
.results { padding: 26px; border-radius: 18px; }
.pro-results .result-top { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border: 0; margin: -6px -6px 14px; padding: 24px 20px; border-radius: 13px; gap: 10px; }
.pro-results .result-top strong { font-size: 35px; text-shadow: none; line-height: 1.3; }
.pro-results .result-top small { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.pro-results .result-top>span { font-size: 11px; white-space: nowrap; }
.results>div:not(.result-top) { padding: 16px 0; gap: 12px; font-size: 14px; border-color: var(--line); }
.results>div>span { font-size: 14px; color: var(--muted); }
.results>div>b, .results>div>strong { font-size: 17px; }
.results>small { font-size: 12px; line-height: 1.7; margin-top: 16px; }
.specialist-tool { gap: 24px; }
.specialist-tool label { font-size: 14px; }
.specialist-tool input, .specialist-tool select { min-height: 48px; font-size: 16px; border-radius: 10px; }
.specialist-tool article { padding: 24px; }
.specialist-tool article small, .specialist-tool article p { font-size: 13px; }
.specialist-tool article strong { font-size: 28px; text-shadow: none; }
.supporting-calculator { padding: 24px; }
.market-analysis-hero { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); margin-bottom: 24px; }
.market-symbol h2 { font-size: 28px; }
.market-symbol p, .market-symbol small { font-size: 12px; }
.current-price { box-shadow: none; border: 0; background: var(--panel2); padding: 16px 20px; }
.current-price b { text-shadow: none; font-size: 25px; }
.market-hub-block { margin-top: 28px; }
.hub-heading { margin-bottom: 16px; }
.hub-heading h2, .session-heading h2 { font-size: 24px; letter-spacing: -.03em; }
.chart-with-watchlist { gap: 22px; grid-template-columns: minmax(0, 1fr) 260px; }
.chart-shell { border: 1px solid var(--line); border-radius: 16px; }
.chart-market-watch { padding: 20px; }
.chart-market-watch #marketWatchRows>button { min-height: 62px; padding: 12px 0; }
.chart-market-watch #marketWatchRows strong { font-size: 14px; }
.chart-market-watch #marketWatchRows small, .chart-market-watch>small { font-size: 11px; }
.analysis-grid, .market-intelligence { gap: 22px; margin-top: 24px; }
.analysis-grid>article, .market-intelligence>article { padding: 24px; }
.snapshot-grid article { padding: 16px; border-radius: 11px; min-height: 100px; }
.snapshot-grid small { font-size: 10px; }
.snapshot-grid b { font-size: 21px; text-shadow: none; }
.breakdown>p { font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: .1em; }
.ai-chat-head h2 { font-size: 24px; }
.ai-chat-head p { font-size: 14px; }
.ai-thread { font-size: 15px; }
.ai-prompts button { font-size: 13px; padding: 10px 14px; }
.ai-composer input { font-size: 16px; min-height: 50px; }
.course-list { gap: 20px; }
.course-list>button { min-height: 114px; padding: 24px; gap: 20px; box-shadow: var(--shadow); border-radius: 16px; }
.course-list>button:hover { transform: translateY(-2px); }
.course-list>button>span { width: 54px; height: 54px; border-radius: 15px; }
.course-list>button b { font-size: 17px; line-height: 1.5; }
.course-list>button small { font-size: 13px; margin-top: 5px; }
.course-list .locked { background: var(--panel); }
.lesson { padding: 28px; }
.lesson-copy p, .lesson-copy li { font-size: 16px; line-height: 1.8; }
.lesson-copy h3 { font-size: 24px; }
.lesson-copy h4 { font-size: 18px; }
.journal-stats { gap: 20px; margin: 24px 0; }
.journal-stats article { padding: 24px; min-height: 115px; }
.journal-stats b { font-size: 30px; }
.trade-table { padding: 24px; }
.trade-table th { font-size: 12px; color: var(--muted); padding: 16px 12px; }
.trade-table td { font-size: 14px; padding: 16px 12px; }
.journal-empty { min-height: 280px; }
.journal-empty b { font-size: 21px; }
.journal-empty span { font-size: 14px; }
.account-grid { gap: 24px; }
.profile-card, .plan-card, .settings { padding: 28px; }
.profile-card h2 { font-size: 25px; line-height: 1.35; margin-bottom: 24px; }
.profile-facts { gap: 16px; }
.profile-facts label { min-width: 0; }
.profile-actions { margin-top: 24px; }
.plan-card p, .plan-card li { font-size: 14px; line-height: 1.8; }
.settings-layout { gap: 24px; grid-template-columns: 210px minmax(0, 1fr); }
.settings-menu { padding: 12px; }
.settings-menu button { font-size: 14px; min-height: 46px; border-radius: 8px; }
.settings h2 { font-size: 22px; margin-bottom: 20px; }
.settings p { font-size: 14px; line-height: 1.7; }
.pricing-grid { gap: 24px; }
.price-card { border-radius: 20px; padding: 36px; }
.price-card li { font-size: 15px; line-height: 1.8; }
.price-card .price b { font-size: 48px; }
html[data-theme="dark"] .notification-button, html[data-theme="dark"] .calculator-defaults { background: var(--panel); border-color: var(--line); }
html[data-theme="dark"] .bar { background: var(--panel); }
html[data-theme="dark"] .chart-fullscreen-toggle { background: var(--panel)!important; color: var(--accent2)!important; border-color: var(--line)!important; }
html[data-theme="dark"] .scene-icons span { background: var(--panel); }
@media (max-width: 1180px) and (min-width: 701px) {
  .app { grid-template-columns: 198px minmax(0, 1fr); }
  .side { padding-inline: 12px; }
  .bar { padding-inline: 24px; }
  main { padding: 28px 24px 48px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick { gap: 12px; }
  .quick a { min-height: 100px; }
  .week { gap: 7px; }
  .pro-calculator { grid-template-columns: 1fr; }
  .results { position: static; }
  .chart-with-watchlist { grid-template-columns: 1fr; }
  .chart-market-watch { max-height: none; }
  .tradingview-analysis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-lower { grid-template-columns: 1fr; }
  .home-lower article { min-height: 185px; }
  .account-grid { grid-template-columns: 1fr; }
  .profile-facts { grid-template-columns: 1fr; }
  .streak { grid-template-columns: auto 1fr; }
  .week { grid-column: 1/-1; }
  .mini-stats article { padding: 18px; }
  .stat-icon { display: none; }
  .mini-stats b { font-size: 25px; }
  .specialist-tool, .specialist-tool form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .app { display: block; }
  .bar { min-height: 68px; height: 68px; padding: 12px 18px; background: var(--panel); gap: 12px; }
  .bar .mobile-logo { font-size: 20px; gap: 9px; }
  .mobile-logo span { width: 32px; height: 32px; }
  .bar-actions { gap: 10px; }
  .bar-actions a span { width: 34px; height: 34px; }
  .connection-badge { display: none; }
  main { padding: 26px 18px calc(112px + env(safe-area-inset-bottom)); overflow: visible; }
  .page { scroll-margin-top: 94px; }
  .page-title { margin-bottom: 22px; align-items: flex-start; flex-wrap: wrap; }
  .page-title h1 { font-size: 28px; line-height: 1.22; }
  .page-title p { font-size: 14px; }
  #home .page-title select { font-size: 12px; min-height: 38px; padding: 8px 12px; }
  .home-top { gap: 16px; }
  .streak { padding: 18px; grid-template-columns: 44px 1fr; gap: 12px; }
  .flame { width: 44px; height: 44px; font-size: 31px; }
  .streak h3 { font-size: 18px; }
  .streak p { font-size: 12px; }
  .week { grid-column: 1/-1; justify-content: space-between; padding-top: 8px; gap: 8px; }
  .week span { width: 32px; height: 32px; }
  .mini-stats { gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-stats article { min-height: 96px; padding: 14px 10px; gap: 8px; }
  .mini-stats span { font-size: 11px; white-space: nowrap; }
  .mini-stats b { font-size: 22px; letter-spacing: -.04em; overflow-wrap: anywhere; }
  .stat-icon { display: none; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
  .quick a { min-height: 102px; padding: 15px 8px; font-size: 13px; border-radius: 14px; gap: 9px; }
  .quick i { width: 40px; height: 40px; font-size: 26px; }
  .dashboard-grid, .home-lower { grid-template-columns: 1fr; gap: 18px; }
  .dashboard-grid>.panel { padding: 20px 16px; }
  .panel-head { margin-bottom: 18px; }
  .panel-head h2 { font-size: 18px; }
  .asset-tabs, .journal-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .asset-tabs button, .journal-tabs button { flex-shrink: 0; font-size: 12px; padding: 8px 12px; }
  .watch #watchRows>button { grid-template-columns: 27px minmax(60px, 1fr) minmax(46px, .8fr) minmax(67px, 1fr); gap: 7px; font-size: 12px; }
  .watch #watchRows>button>em { display: none; }
  .watch #watchRows .instrument-badge { width: 25px; height: 25px; font-size: 18px; }
  .watch #watchRows .mini-spark { height: 20px; }
  .event-row { gap: 8px; font-size: 12px; }
  .home-lower article { min-height: 210px; padding: 24px; }
  .home-lower h2 { font-size: 22px; }
  .home-lower p { font-size: 14px; }
  .side { width: min(310px, 85vw); padding: 24px 18px; }
  .dock { left: 12px; right: 12px; bottom: 10px; height: auto; min-height: 72px; padding: 8px 5px calc(8px + env(safe-area-inset-bottom)); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 4px 28px #12344c1a; }
  .dock a { font-size: 10px; padding: 5px 0; gap: 4px; }
  .dock i { width: 28px; height: 28px; font-size: 22px; }
  .dock a.active { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent2); border-radius: 11px; }
  .compact-disclosure>summary { min-height: 65px; padding: 16px; }
  .compact-disclosure>summary span { font-size: 16px; }
  .compact-disclosure>summary b { font-size: 11px; }
  .calculator-library { padding: 18px; }
  .calculator-library .panel-head { display: grid; }
  .calculator-library .panel-head h2 { font-size: 20px; }
  #calculator.active { display: flex; flex-direction: column; }
  #positionCalculator, #supportingCalculator { order: 1; }
  #calculator .calculator-chart-drawer { order: 2; }
  #calculator>.mobile-ad { order: 3; }
  .live-strip { padding: 16px; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 10px 12px; }
  .live-strip>div { grid-column: 1; grid-row: 1; }
  .live-strip>strong { grid-column: 2; grid-row: 1; }
  .live-strip>span { grid-column: 2/4; grid-row: 2; justify-self: end; font-size: 12px; }
  .live-strip .icon-button { grid-column: 3; grid-row: 1; width: 36px; height: 36px; }
  .live-strip strong { font-size: 22px; }
  .live-strip .primary { grid-column: 1; grid-row: 2; min-height: 36px; padding: 8px 12px; font-size: 12px; justify-self: start; }
  .calc-asset-tabs { display: flex!important; }
  .calculator-chart-drawer>summary { padding: 16px!important; }
  .calculator-chart-drawer>summary b { font-size: 16px!important; }
  .pro-calculator { grid-template-columns: 1fr; gap: 20px; }
  .calc-form { padding: 20px; gap: 18px 14px; }
  .pro-calculator .calc-form { grid-template-columns: 1fr; }
  .calc-form label { font-size: 14px; }
  .calculator-defaults { grid-template-columns: 1fr; }
  .results { position: static; padding: 24px; }
  .pro-results .result-top strong { font-size: 34px; }
  .specialist-tool, .specialist-tool form { grid-template-columns: 1fr; }
  .supporting-calculator { padding: 20px; }
  .supporting-calculator .panel-head { flex-wrap: wrap; }
  .market-analysis-hero { grid-template-columns: 1fr; padding: 20px; }
  .chart-with-watchlist, .analysis-grid, .market-intelligence { display: grid; grid-template-columns: minmax(0, 1fr); }
  .analysis-grid>article, .market-intelligence>article { padding: 20px; }
  .chart-market-watch { margin-top: 0; }
  .snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-chat-head { gap: 12px; }
  .ai-chat-head h2 { font-size: 21px; }
  .ai-chat-head p { font-size: 12px; }
  .ai-prompts button { font-size: 12px; }
  .course-list { grid-template-columns: 1fr; gap: 14px; }
  .course-list>button { min-height: 100px; padding: 18px; gap: 14px; }
  .course-list>button b { font-size: 16px; }
  .course-list>button>span { width: 44px; height: 44px; font-size: 28px; }
  .lesson { padding: 0; }
  .journal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .journal-stats article { padding: 20px; min-height: 100px; }
  .journal-stats b { font-size: 27px; }
  .trade-table { padding: 16px; }
  .journal-empty { width: calc(100vw - 72px); }
  .profile-card, .plan-card, .settings { padding: 22px; }
  .profile-facts { grid-template-columns: 1fr; }
  .settings-layout { display: block; }
  .settings-menu { padding: 8px; }
  .settings-menu button { font-size: 13px; }
  .price-card { padding: 28px; }
}
/* Public pages share the same typography, spacing and colour palette. */
body:has(>.auth-page) { background: #f5f8fb; color: #12243b; }
.auth-page {
  width: 100%; max-width: 1400px; margin: auto; min-height: 100vh; padding: 0 56px 60px;
  display: grid; grid-template-columns: minmax(340px, .85fr) minmax(440px, 1.15fr);
  grid-template-rows: 90px auto 1fr; gap: 0 100px;
  background: radial-gradient(ellipse at 80% 45%, #e2f6f380, transparent 55%);
}
.auth-page>header { grid-column: 1/-1; height: 90px; border-bottom: 1px solid #e3eaf1; margin-bottom: 0; }
.auth-logo { color: #12243b; font-size: 23px; gap: 11px; letter-spacing: -.5px; }
.auth-logo span { width: 38px; height: 38px; border-radius: 11px; }
.auth-page>header p { color: #64748b; font-size: 13px; }
.auth-intro { display: block; grid-column: 2; grid-row: 2; align-self: end; padding-top: 65px; }
.auth-intro small { font-size: 10px; color: #008367; letter-spacing: .11em; }
.auth-intro h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.04em; margin: 14px 0 12px; }
.auth-intro h1 br { display: block; }
.auth-intro>p { color: #64748b; font-size: 15px; margin: 0; }
.auth-intro ul, .auth-intro blockquote { display: none; }
.auth-panel {
  grid-column: 1; grid-row: 2/4; align-self: start; margin: 70px 0 0; width: 100%; max-width: 440px;
  padding: 36px; background: #fff; color: #12243b; border: 1px solid #e3eaf1; border-radius: 22px;
  box-shadow: 0 16px 50px #1a3c5b08; animation: none;
}
.auth-panel h2 { font-size: 32px; letter-spacing: -.035em; color: #12243b; margin-bottom: 9px; }
.auth-panel>p { font-size: 14px; color: #64748b; line-height: 1.6; }
.auth-panel .social-button { height: 50px; border: 1px solid #dce5ef; border-radius: 10px; color: #12243b; background: #fff; font-size: 14px; }
.google-button iconify-icon { width: 20px; height: 20px; font-size: 20px; }
.auth-panel .divider { font-size: 12px; color: #64748b; margin: 24px 0; }
#authForm { gap: 20px; }
#authForm>label { color: #34465e; font-size: 13px; gap: 8px; }
#authForm input:not([type="checkbox"]) { width: 100%; height: 50px; padding: 13px 14px; font-size: 16px; color: #12243b; background: #f8fafc; border: 1px solid #e3eaf1; border-radius: 10px; }
#authForm input[type="checkbox"] { width: 16px; height: 16px; accent-color: #00a980; }
#passwordTools, #passwordTools button { font-size: 12px; }
#authSubmit, #continueButton { height: 50px; background: #10d4a2; color: #063e32; font-size: 15px; border-radius: 10px; }
.auth-panel .switch, .auth-panel .back { font-size: 13px!important; line-height: 1.6; }
.auth-panel .back { color: #64748b; margin-top: 18px; }
.auth-scene { display: block; grid-column: 2; grid-row: 3; align-self: start; padding: 38px 0 0; min-width: 0; }
.auth-scene>em { font-size: 24px; color: #42665e; margin: 0 0 26px; text-align: right; }
.device-laptop { border-radius: 18px 18px 10px 10px; padding: 13px 13px 0; box-shadow: 0 22px 50px #13395326; }
.screen.calculator-preview { padding: 24px; min-height: 320px; animation: none; }
.preview-head { font-size: 15px; }
.preview-fields label { font-size: 11px; padding: 13px; }
.preview-fields strong { font-size: 19px; }
.preview-result b { font-size: 30px; }
.preview-result small, .preview-result span { font-size: 12px; }
.scene-icons { margin-top: 32px; gap: 12px; }
.scene-icons span { background: transparent; border: 0; padding: 10px 0; font-size: 25px; }
.scene-icons small { font-size: 11px!important; line-height: 1.5; }
.signed-card.visible { grid-column: 1/-1; grid-row: 2/4; max-width: 480px; width: 100%; margin: 70px auto; padding: 36px; background: #fff; border: 1px solid #e3eaf1; border-radius: 20px; }
.auth-page:has(.signed-card.visible) .auth-intro, .auth-page:has(.signed-card.visible) .auth-scene { display: none; }
body:has(.hero-device) { background: #f8fafc; color: #12243b; font-family: Inter, system-ui, sans-serif; }
body:has(.hero-device)>header { height: 88px; max-width: 1320px; padding: 0 40px; margin: auto; border-bottom: 1px solid #e3eaf1; background: transparent; }
body:has(.hero-device)>header nav { gap: 30px; }
body:has(.hero-device)>header nav a { font-size: 14px; color: #53647a; }
body:has(.hero-device) .brand { color: #12243b; font-size: 23px; letter-spacing: -.5px; }
body:has(.hero-device) .button { padding: 13px 22px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 650; background: #10d4a2; color: #063e32; box-shadow: none; }
body:has(.hero-device)>main { max-width: 1320px; padding: 0 40px; margin: auto; }
.hero { padding: 78px 0 32px; gap: 40px; grid-template-columns: .9fr 1.1fr; }
.hero-copy>small { font-size: 11px; letter-spacing: .12em; color: #008367; }
.hero h1 { font-size: clamp(46px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -.055em; color: #12243b; margin: 20px 0 24px; }
.hero h1 em { color: #009f7b; }
.hero-copy>p { font-size: 17px; line-height: 1.75; color: #64748b; }
.hero-actions { gap: 22px; margin-top: 30px; }
.hero-actions .watch { font-size: 13px; color: #34465e; }
.hero-device { min-width: 0; background: radial-gradient(ellipse, #d9f5ed90, transparent 70%); }
.hero-device .float { border: 1px solid #e3eaf1; border-radius: 13px; background: #fff; box-shadow: 0 12px 32px #16384d0c; }
.hero-device .float b { font-size: 13px; }
.hero-device .float small { font-size: 11px; }
.trust { margin-top: 34px; padding: 24px 0; gap: 30px; border-top: 1px solid #e3eaf1; }
.trust span { font-size: 12px; color: #64748b; }
.feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 80px; }
.feature-strip article { padding: 24px; border: 1px solid #e3eaf1; border-radius: 15px; background: #fff; box-shadow: 0 4px 16px #22395604; }
.feature-strip b { font-size: 16px; }
.feature-strip small { font-size: 13px; color: #64748b; }
.feature-strip i { width: 44px; height: 44px; border-radius: 13px; }
.companion { gap: 40px; padding: 45px 0 80px; }
.companion h2, .app-list h2 { font-size: 38px; letter-spacing: -.035em; line-height: 1.2; }
.companion-copy>p { font-size: 16px; line-height: 1.75; color: #64748b; }
.benefits { gap: 16px; }
.benefits article { padding: 24px; border: 1px solid #e3eaf1; border-radius: 18px; background: #fff; box-shadow: none; }
.benefits article>b { font-size: 16px; }
.benefits article>p { font-size: 13px; line-height: 1.7; color: #64748b; }
.apps { border-radius: 24px; padding: 44px; background: #edf7f4; border: 1px solid #deeee8; }
.apps li { font-size: 15px; line-height: 1.8; }
.apps blockquote { font-size: 18px; line-height: 1.7; }
.cta { margin: 70px 0; padding: 55px 32px; border: 1px solid #dbece6; border-radius: 24px; background: linear-gradient(125deg, #effaf6, #f2f7fc); }
.cta h2 { font-size: 38px; letter-spacing: -.04em; color: #12243b; }
body:has(.hero-device)>footer { max-width: 1320px; margin: auto; padding: 32px 40px; border-top: 1px solid #e3eaf1; background: transparent; }
@media (max-width: 1100px) and (min-width: 761px) {
  body:has(.hero-device)>header { height: auto; min-height: 110px; flex-wrap: wrap; padding-block: 15px; gap: 16px; }
  body:has(.hero-device)>header nav { order: 3; flex-basis: 100%; justify-content: center; gap: 26px; }
  body:has(.hero-device)>header>div { margin-left: auto; }
  body:has(.hero-device)>header .hamb { display: none; }
  .auth-page { padding: 0 28px 44px; gap: 0 40px; grid-template-columns: minmax(290px, 1fr) minmax(320px, 1fr); }
  .auth-panel { padding: 26px; }
  .auth-intro h1 { font-size: 32px; }
  .auth-scene { padding-left: 0; }
  .screen.calculator-preview { padding: 14px; }
  .preview-fields strong { font-size: 16px; }
  .scene-icons { gap: 5px; }
  .scene-icons small { font-size: 10px!important; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-device { width: min(650px, 100%); margin: auto; }
  .companion { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .auth-page { display: block; padding: 0 20px 36px; background: radial-gradient(ellipse at 50% 20%, #e4f5ef80, transparent 60%); }
  .auth-page>header { height: 72px; }
  .auth-logo { font-size: 21px; }
  .auth-intro { display: block; padding-top: 30px; text-align: center; }
  .auth-intro small { font-size: 9px; }
  .auth-intro h1 { font-size: 30px; margin: 12px 0 8px; }
  .auth-intro>p { font-size: 14px; }
  .auth-panel { padding: 26px 22px; margin: 25px auto 0; max-width: 440px; border-radius: 18px; }
  .auth-panel h2 { font-size: 28px; text-align: left; }
  .auth-panel>p { text-align: left; }
  .auth-scene { display: block; padding: 0; max-width: 440px; margin: auto; }
  .auth-scene>em, .auth-scene>.device-laptop { display: none; }
  .scene-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; gap: 12px; }
  .scene-icons span { border-radius: 12px; background: #fff; border: 1px solid #e3eaf1; padding: 12px 5px; }
  .scene-icons small { font-size: 11px!important; }
  body:has(.hero-device)>header { padding: 0 20px; height: 72px; }
  body:has(.hero-device)>main { padding: 0 20px; }
  body:has(.hero-device) .brand { font-size: 21px; }
  .hero { padding: 44px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy>small { font-size: 9px; }
  .hero h1 { font-size: 46px; margin: 18px 0 22px; }
  .hero-copy>p { font-size: 16px; }
  .hero-copy>p br { display: none; }
  .hero-actions { flex-wrap: wrap; gap: 18px; margin-top: 24px; }
  .hero-device { width: 100%; margin: 10px 0; }
  .trust { margin-top: 0; padding: 20px 0; gap: 13px; flex-wrap: wrap; }
  .trust span { font-size: 11px; }
  .feature-strip { grid-template-columns: 1fr; gap: 12px; margin: 14px 0 45px; }
  .feature-strip article { padding: 20px; }
  .companion { display: grid; grid-template-columns: 1fr; padding: 15px 0 40px; gap: 24px; }
  .companion h2, .app-list h2 { font-size: 31px; }
  .benefits { grid-template-columns: 1fr; }
  .benefits article { padding: 24px; }
  .apps { padding: 28px 22px; }
  .apps blockquote { font-size: 16px; }
  .cta { margin: 40px 0; padding: 35px 22px; }
  .cta h2 { font-size: 31px; }
  body:has(.hero-device)>footer { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
}
/* September 11: approved mobile navigation, Academy and member presentation. */
.td-icon { width: 24px; height: 24px; display: block; flex: 0 0 auto; }
#sideNav i, #dock i, #quick i { display: grid; place-items: center; }
[data-icon="home"] i { color: #008b70; }
[data-icon="calculator"] i { color: #009c80; }
[data-icon="sessions"] i, [data-icon="analytics"] i { color: #397adc; }
[data-icon="academy"] i { color: #7759c7; }
[data-icon="journal"] i { color: #cb8b36; }
[data-icon="account"] i, [data-icon="settings"] i { color: #6182a2; }
#quick { gap: 12px; }
#quick a { display: grid; grid-template-columns: 36px minmax(0,1fr); column-gap: 10px; row-gap: 0; text-align: left; min-height: 90px; padding: 16px 12px; align-content: center; }
#quick a i { grid-row: 1 / 3; width: 36px; height: 40px; border-radius: 10px; }
#quick a b { font-size: 14px; align-self: end; line-height: 1.4; }
#quick a small { font-size: 10px; color: var(--muted); line-height: 1.5; font-weight: 400; }
.course-list>button { text-align: left; }
.course-list>button>span { color: var(--course-color); background: color-mix(in srgb,var(--course-color) 9%,var(--panel)); border: 1px solid color-mix(in srgb,var(--course-color) 12%,var(--panel)); flex-shrink: 0; display: grid; place-items: center; }
.course-list .td-icon { width: 28px; height: 28px; }
.course-list>button i { white-space: nowrap; font-size: 11px; font-style: normal; color: var(--muted); padding: 5px 9px; background: var(--panel2); border-radius: 7px; }
.course-list>button[data-chapter] i { color: var(--accent2); background: color-mix(in srgb,var(--accent) 10%,var(--panel)); }
.course-list>button b { font-size: 17px; }
.academy-progress-panel { padding: 22px 24px; margin: 0 0 24px; }
.academy-progress-panel>div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.academy-progress-copy { color: var(--accent2); font-size: 14px; }
.academy-progress-panel small { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
progress[data-academy-progress] { appearance: none; display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 20px; color: var(--accent); background: var(--line); }
progress[data-academy-progress]::-webkit-progress-bar { background: var(--line); border-radius: 20px; }
progress[data-academy-progress]::-webkit-progress-value { background: var(--accent); border-radius: 20px; transition: width .25s; }
progress[data-academy-progress]::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
.continue-card progress { margin: 16px 0; }
.progress-ring { position: relative; isolation: isolate; flex-shrink: 0; }
.progress-ring::before { position: absolute; content: ""; inset: 6px; background: var(--panel); border-radius: 50%; z-index: -1; }
#lesson aside ol { padding: 0; list-style: none; }
#lesson aside li { padding: 0; position: relative; }
#lesson aside li>button { width: 100%; border: 0; border-radius: 8px; padding: 12px 30px 12px 12px; text-align: left; font: inherit; font-size: 14px; color: inherit; background: transparent; cursor: pointer; }
#lesson aside li.completed::after { content: "✓"; position: absolute; right: 10px; top: 10px; color: var(--accent2); pointer-events: none; font-weight: 700; }
.lesson-complete-prompt { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.lesson-complete-prompt p { color: var(--muted); margin: 8px 0 18px; }
.course-availability { color: var(--muted); padding: 16px 0; font-size: 14px; }
.header-plan-badge { background: #e9faf4; border: 1px solid #b7e7d8; border-radius: 6px; padding: 3px 7px; font-size: 10px; color: #007f63; font-weight: 750; letter-spacing: .06em; white-space: nowrap; }
.header-plan-badge[hidden], #proOverview[hidden] { display: none; }
.pro-overview { border-radius: 20px; padding: 26px; color: #f5fcff; background: radial-gradient(ellipse at top right,#18556855,transparent 65%),#10263d; margin: 0 0 24px; }
.pro-overview-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pro-emblem { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #67d8b944; border-radius: 14px; color: #73e6c2; background: #73e6c211; flex-shrink: 0; }
.pro-overview .eyebrow { color: #76d9be; letter-spacing: .16em; font-size: 10px; }
.pro-overview h2 { color: #f5fcff; font-size: 25px; line-height: 1.3; margin: 4px 0 6px; letter-spacing: -.025em; }
.pro-overview p { color: #afc4d4; font-size: 14px; margin: 0; }
.pro-status { margin-left: auto; color: #9de2ca; font-size: 9px; border: 1px solid #9de2ca44; border-radius: 20px; padding: 5px 10px; letter-spacing: .1em; white-space: nowrap; }
.pro-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.pro-actions a { display: flex; align-items: center; gap: 12px; color: #7ee4c2; padding: 16px; border: 1px solid #b4dded22; border-radius: 12px; background: #ffffff05; text-decoration: none; }
.pro-actions a:hover { background: #ffffff10; border-color: #70d8be77; }
.pro-actions b, .pro-actions small { display: block; }
.pro-actions b { color: #f0f7fc; font-size: 14px; }
.pro-actions small { color: #afc4d4; font-size: 12px; margin-top: 4px; }
.pro-actions i { margin-left: auto; font-style: normal; }
body[data-plan-appearance="pro"] [data-free-only] { display: none; }
body[data-plan-appearance="pro"] .side-pro { background: #10263d; border-color: #21445d; color: #eef8ff; }
body[data-plan-appearance="pro"] .side-pro small { color: #abc9da; }
body[data-plan-appearance="pro"] .side-pro>span { color: #73e6c2; }
.pro-preview-notice { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; margin: 0 0 20px; border-radius: 10px; background: var(--panel); border: 1px dashed var(--accent2); font-size: 12px; }
.pro-preview-notice span { color: var(--muted); }
.pro-preview-notice a { margin-left: auto; color: var(--accent2); text-decoration: underline; }
html[data-theme="dark"] .course-list>button>span { color: color-mix(in srgb,var(--course-color) 65%,white); }
@media (min-width: 769px) and (max-width: 1250px) {
  #quick { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pro-actions a { padding: 12px; gap: 8px; }
  .pro-status { display: none; }
}
@media (max-width: 768px) {
  #dock { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
  #dock a { min-width: 0; font-size: 11px; min-height: 48px; }
  #dock .td-icon { width: 23px; height: 23px; }
  #quick { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
  #quick a { grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; text-align: center; min-height: 92px; }
  #quick a[data-icon="journal"], #quick a[data-icon="analytics"] { grid-column: span 3; }
  #quick a[href="#account"] { display: none; }
  #quick a b { align-self: center; font-size: 13px; }
  #quick a small { display: none; }
  #quick a i { width: 34px; height: 30px; }
  #userButton { min-width: 44px; min-height: 44px; }
  .academy-progress-panel { padding: 18px; }
  .academy-progress-panel>div { flex-direction: column; gap: 4px; }
  .course-list>button { flex-wrap: nowrap; }
  .course-list>button>div { min-width: 0; flex: 1; }
  .course-list>button i { white-space: normal; max-width: 62px; padding: 5px; text-align: center; }
  .course-list>button b { font-size: 16px; }
  .course-list>button small { font-size: 12px; }
  .pro-overview { padding: 20px; }
  .pro-overview-heading { gap: 12px; align-items: flex-start; }
  .pro-overview h2 { font-size: 23px; }
  .pro-status { display: none; }
  .pro-actions { grid-template-columns: 1fr; gap: 8px; }
  .pro-actions a { padding: 13px; }
  .header-plan-badge { display: none; }
  body[data-plan-appearance="pro"] #userButton { position: relative; }
  body[data-plan-appearance="pro"] #userButton::after { content: "PRO"; position: absolute; bottom: -2px; right: 8px; border-radius: 4px; background: #dcf9ed; color: #006b52; border: 1px solid #a6dbc6; padding: 0 4px; font-size: 8px; font-weight: 750; pointer-events: none; }
  .bar-actions { gap: 8px; }
  .pro-preview-notice { font-size: 11px; }
}
