/* One persistent appearance choice for the public site and the workspace. */
:root{
  --chart-bg:#0b111b;
  --chart-grid:#1c2633;
  --chart-axis:#a1aab8;
  --chart-border:#283445;
}
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
  min-height:35px;padding:0 10px;border:1px solid var(--line,#293647);
  border-radius:8px;background:var(--panel2,var(--surface-2,#172231));
  color:var(--text,#f0efe9);font:650 11px/1.2 system-ui,sans-serif;
  white-space:nowrap;cursor:pointer;
}
.theme-toggle:hover{border-color:var(--accent,#e6a94e);background:var(--panel-elevated,var(--surface,#1d2937))}
.theme-toggle:focus-visible{outline:2px solid var(--accent,#e6a94e);outline-offset:3px}
.theme-toggle [data-theme-icon]{font-size:17px;line-height:1}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:15px;border-bottom:1px solid var(--line-soft)}
.sidebar .sidebar-top .brand{position:static;flex:1;min-width:0;margin:0;padding:6px 0 16px;border:0;background:transparent}
.sidebar-top .theme-toggle{margin:0 0 10px;padding-inline:7px}
.auth-theme-toggle{position:fixed;top:20px;right:22px;z-index:2}
@media(max-width:600px){
  .sidebar .sidebar-top{grid-column:1;grid-row:1;margin:0;border:0;min-width:0}
  .sidebar .sidebar-top .brand{padding:2px 0;margin:0}
  .sidebar-top .theme-toggle{width:36px;min-width:36px;margin:0;padding:0}
  .sidebar-top .theme-toggle [data-theme-label]{display:none}
  .auth-theme-toggle{top:12px;right:12px}
}
@media(max-width:700px){.landing-header .theme-toggle{width:36px;min-width:36px;padding:0}.landing-header .theme-toggle [data-theme-label]{display:none}}

html[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f7fb;--bg-soft:#edf2f8;--panel:#fff;--panel2:#e9f0f7;
  --panel-elevated:#e6eef7;--field:#fff;
  --surface:#fff;--surface-2:#e9f0f7;
  --line:#d2deeb;--line-soft:#e0e8f1;--line-strong:#b5c8db;
  --text:#17283b;--text-dim:#334b63;--muted:#52677d;--faint:#667f98;
  --accent:#ad711e;--accent-strong:#88520b;--accent-dim:#b27b2b;
  --accent-soft:rgba(185,124,36,.1);--accent-soft-strong:rgba(185,124,36,.18);
  --good:#0b8059;--good-soft:rgba(11,128,89,.1);--good-line:#a9d8c4;
  --danger:#bd3650;--danger-soft:rgba(189,54,80,.08);--danger-line:#e5a9b4;
  --amber:#d99b41;--amber-light:#8f580d;--green:#10885f;--red:#c94d67;
  --polish-line:#c9d8e7;--polish-shadow:0 16px 36px rgba(35,65,95,.08);
  --polish-panel:linear-gradient(155deg,#fff 0%,#f7faff 100%);
  --chart-bg:#fff;--chart-grid:#e4ebf3;--chart-axis:#52677d;--chart-border:#c5d4e3;
  --shadow-1:0 8px 24px rgba(35,65,95,.06);--shadow-2:0 20px 45px rgba(35,65,95,.13);
}
html[data-theme="light"] ::selection{color:#17283b}
html[data-theme="light"] body{background:radial-gradient(ellipse 900px 620px at 80% -220px,rgba(97,149,200,.14),transparent 70%),var(--bg);color:var(--text)}
html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#f9fbff,#edf3fa);border-right-color:var(--line);box-shadow:12px 0 32px rgba(40,72,105,.05)}
html[data-theme="light"] .sidebar .brand{background:transparent}
html[data-theme="light"] .sidebar .brand-name>span{color:var(--accent-strong)!important}
html[data-theme="light"] .sidebar .account-strip{border-color:#cad8e7;background:linear-gradient(145deg,#fff,#eef4fa);box-shadow:0 10px 25px rgba(45,75,108,.08)}
html[data-theme="light"] .sidebar .account-avatar{color:var(--accent-strong);background:#fff5e6}
html[data-theme="light"] .sidebar .account-identity small{color:var(--accent-strong);border-color:#e6cb9d;background:#fff7eb}
html[data-theme="light"] .sidebar .account-strip form{border-top-color:var(--line)}
html[data-theme="light"] .sidebar .account-signout{background:#fff;border-color:var(--line-strong);color:var(--text-dim)}
html[data-theme="light"] .sidebar .account-signout:hover{background:#eaf1f8;color:var(--text)}
html[data-theme="light"] .sidebar .nav-label{color:var(--faint)}
html[data-theme="light"] .sidebar nav a{color:var(--text-dim)}
html[data-theme="light"] .sidebar nav a:hover{background:#e8f0f8;border-color:var(--line);color:var(--text)}
html[data-theme="light"] .sidebar nav a.active{background:linear-gradient(90deg,#fff0d8,#fff8ed);border-color:#e1bb7b;color:#794908;box-shadow:none}
html[data-theme="light"] .sidebar nav a b{background:#fff;color:var(--muted)}
html[data-theme="light"] .sidebar .nav-group,html[data-theme="light"] .sidebar .nav-subgroup{border-bottom-color:var(--line)}
html[data-theme="light"] .sidebar .nav-group>summary:hover,html[data-theme="light"] .sidebar .nav-subgroup>summary:hover{color:var(--accent-strong)}
html[data-theme="light"] .sidebar .nav-group>summary::after,html[data-theme="light"] .sidebar .nav-subgroup>summary::after{color:var(--faint)}
html[data-theme="light"] .sidebar::-webkit-scrollbar-thumb{background:#bdcedf;border-color:#f4f8fc}
html[data-theme="light"] .main>.page-head:not(.member-dashboard-head),
html[data-theme="light"] .gtf-eye-page .gtf-hero,
html[data-theme="light"] .member-dashboard-head{background:radial-gradient(circle at 78% -30%,rgba(217,155,65,.14),transparent 44%),linear-gradient(110deg,#fff,#edf4fb);border-color:var(--polish-line)}
html[data-theme="light"] .main>.page-head>div>p,html[data-theme="light"] .main .panel-head p{color:var(--muted)}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,
html[data-theme="light"] .card strong,html[data-theme="light"] .stock-name{color:var(--text)}
html[data-theme="light"] .main .card{background:linear-gradient(150deg,#fff,#f5f9fd);border-color:var(--polish-line)}
html[data-theme="light"] .main .card:hover{border-color:#8ca9c4;box-shadow:0 18px 40px rgba(42,76,109,.12)}
html[data-theme="light"] .main .panel:not(.dashboard-queue):not(.dashboard-open-trades),
html[data-theme="light"] .main .dashboard-queue,html[data-theme="light"] .main .dashboard-open-trades{background:var(--polish-panel);border-color:var(--polish-line)}
html[data-theme="light"] .main .panel-badge,html[data-theme="light"] .main .pill{color:var(--accent-strong);background:#fff3de;border-color:#e4c998}
html[data-theme="light"] .pill{background:#eef4fb;color:var(--text-dim)}
html[data-theme="light"] .main .table-scroll,html[data-theme="light"] .main .member-table-wrap{background:#fff;border-color:var(--line)}
html[data-theme="light"] .main table th{background:#eaf1f8;color:var(--text-dim);border-bottom-color:var(--line)}
html[data-theme="light"] .main table td{border-bottom-color:var(--line-soft)}
html[data-theme="light"] .main table td strong,html[data-theme="light"] .main table .stock-name{color:var(--text)}
html[data-theme="light"] .main table tbody tr:nth-child(even){background:#f8fbfe}
html[data-theme="light"] .main table tbody tr:hover{background:#ebf3fa}
html[data-theme="light"] .gtf-segment{background:#f3f8fc;border-color:var(--line)}
html[data-theme="light"] .gtf-segment-btn{color:var(--text-dim)}
html[data-theme="light"] .gtf-segment-btn+.gtf-segment-btn{border-color:var(--line)}
html[data-theme="light"] .gtf-segment-btn.selected{background:#e7b35f;color:#24180b}
html[data-theme="light"] .gtf-time-btn{background:#fff;border-color:var(--line-strong);color:var(--text-dim)}
html[data-theme="light"] .gtf-time-btn.active{background:#dcefe5;border-color:#9dcdb5;color:#176347}
html[data-theme="light"] .main .journal-facts>div,html[data-theme="light"] .main .process-grid>div,
html[data-theme="light"] .workflow-stage,html[data-theme="light"] .dialog-stage{background:#f6f9fd;border-color:var(--line)}
html[data-theme="light"] .main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-theme="light"] .main select,html[data-theme="light"] .main textarea,
html[data-theme="light"] .zone-trade-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-theme="light"] .zone-trade-dialog select,html[data-theme="light"] .zone-trade-dialog textarea{background-color:#fff;color:var(--text);border-color:var(--line-strong)}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#74889d}
html[data-theme="light"] select,html[data-theme="light"] option{color-scheme:light;background:#fff;color:var(--text)}
html[data-theme="light"] .button.secondary{background:linear-gradient(180deg,#fff,#eaf1f8);border-color:var(--line-strong);color:var(--text-dim)}
html[data-theme="light"] .button.secondary:hover{background:#e1ebf5;border-color:#91abc4;color:var(--text)}
html[data-theme="light"] .button.danger{color:#a52b44;background:#fff3f4}
html[data-theme="light"] .flash.success{background:#e8f6ee;color:#176347}
html[data-theme="light"] .flash.error{background:#fff0f2;color:#9c2f44}
html[data-theme="light"] .member-action-intro{color:var(--muted)}
html[data-theme="light"] .member-action-intro strong{color:var(--text)}
html[data-theme="light"] .member-action-dialog .auth-form input,
html[data-theme="light"] .member-action-dialog .auth-form select,
html[data-theme="light"] .member-action-dialog .auth-form textarea{background:#fff;color:var(--text);border-color:var(--line-strong)}
html[data-theme="light"] .access-alert-banner{background:linear-gradient(100deg,#fff3db,#f7faff);color:#765015;border-color:#d5ae74}
html[data-theme="light"] .access-alert-banner>span:last-child,
html[data-theme="light"] .access-phase-filters a.selected,
html[data-theme="light"] .access-phase-filters b,
html[data-theme="light"] .access-phase-tag--new{color:#88520b}
html[data-theme="light"] .access-request-head a{color:#175f9b}
html[data-theme="light"] .stock-picker-option:hover,html[data-theme="light"] .stock-picker-option.is-active{background:#eaf1f8}
html[data-theme="light"] .progress-track{background:#e3ecf5}
html[data-theme="light"] .main .empty,html[data-theme="light"] .site-disclaimer,
html[data-theme="light"] .site-disclaimer>p,html[data-theme="light"] .site-disclaimer details>div{color:var(--muted)}
html[data-theme="light"] .site-disclaimer summary{color:var(--accent-strong)}
html[data-theme="light"] th,html[data-theme="light"] .table-scroll thead th{background:#eaf1f8;color:var(--text-dim)}
html[data-theme="light"] .table-scroll .stock-name:first-child{background:var(--panel)}
html[data-theme="light"] tbody tr:hover{background:#eef5fb}
html[data-theme="light"] .gtf-stock-card{background:linear-gradient(150deg,#fff,#f1f7fc);border-color:var(--line-strong)}
html[data-theme="light"] .gtf-stock-card:hover{border-color:#8eabc5;box-shadow:0 15px 30px rgba(42,76,109,.13)}
html[data-theme="light"] .watchlist-stock-row:hover,html[data-theme="light"] .queue-item:hover,
html[data-theme="light"] .watchlist-sheet-head{background:rgba(48,104,153,.045)}
html[data-theme="light"] .watchlist-manage,html[data-theme="light"] .watchlist-new[open] form{background:#f5f9fd;border-color:var(--line)}
html[data-theme="light"] .zone-trade-dialog{background:linear-gradient(155deg,#fff,#f1f6fb);border-color:var(--line-strong);box-shadow:0 28px 75px rgba(32,56,80,.22)}
html[data-theme="light"] .context-dialog .zone-trade-dialog-head{background:var(--panel)}
html[data-theme="light"] .nse-chart-host{background:var(--chart-bg)}
html[data-theme="light"] #contextDialog .chart-only-dialog .chart-panel .chart-levels{background:#f6f9fd;border-color:var(--line)}
html[data-theme="light"] .chart-canvas-legend{background:rgba(255,255,255,.94);border-color:var(--line);color:var(--text);box-shadow:0 5px 15px rgba(35,65,95,.12)}
html[data-theme="light"] .chart-legend-prices{color:var(--text)}
html[data-theme="light"] .chart-legend-date{color:var(--muted)}
html[data-theme="light"] .chart-legend-change{background:#edf3f8}
html[data-theme="light"] .chart-scale-actions{background:rgba(255,255,255,.9);border-color:var(--line)}
html[data-theme="light"] .chart-scale-actions .button{color:var(--muted)}
html[data-theme="light"] .chart-timeframe-strip{background:#f4f8fc;border-color:var(--line)}
html[data-theme="light"] .chart-timeframe-strip button{color:var(--text-dim)}
html[data-theme="light"] .chart-timeframe-strip button:hover{background:#e5edf6;color:var(--text)}
html[data-theme="light"] .chart-timeframe-strip button[aria-pressed=true]{background:#d9e7f4;color:var(--text)}
html[data-theme="light"] .chart-active-zone,html[data-theme="light"] .chart-active-zone-more{background:#f0f5fa;color:var(--text-dim)}
html[data-theme="light"] .chart-active-zone[aria-current=true]{background:#e5eff9}
html[data-theme="light"] .chart-active-zone:hover,html[data-theme="light"] .chart-active-zone-more:hover{background:#dfeaf5}
html[data-theme="light"] .chart-inspector-label{color:var(--faint)}
html[data-theme="light"] .auth-page{background:radial-gradient(circle at 75% 10%,rgba(97,149,200,.15),transparent 38%),var(--bg);color:var(--text)}
html[data-theme="light"] .auth-card{background:linear-gradient(145deg,#fff,#f3f8fc);border-color:var(--line-strong);box-shadow:0 25px 65px rgba(35,65,95,.15)}
html[data-theme="light"] .auth-card .auth-tagline{color:var(--muted)}
html[data-theme="light"] .auth-card .auth-form input{background:#fff;border-color:var(--line-strong);color:var(--text)}
@media(max-width:600px){
  html[data-theme="light"] .sidebar{border-bottom-color:var(--line);box-shadow:0 8px 24px rgba(35,65,95,.13)}
  html[data-theme="light"] .sidebar .mobile-nav-toggle{background:#fff;border-color:var(--line-strong);color:var(--text)}
  html[data-theme="light"] .sidebar .mobile-nav-toggle[aria-expanded="true"]{background:#fff0d8;color:var(--accent-strong)}
  html[data-theme="light"] .sidebar nav{border-top-color:var(--line)}
}

/* Landing page uses the same palette but keeps its own typography and spacing. */
html[data-theme="light"] .landing-header{border-bottom-color:var(--line)}
html[data-theme="light"] .landing-brand b,html[data-theme="light"] .hero h1 em,
html[data-theme="light"] .eyebrow,html[data-theme="light"] .step-number,
html[data-theme="light"] .tier-number{color:var(--amber-light)}
html[data-theme="light"] .hero-intro{color:var(--text-dim)}
html[data-theme="light"] .hero-visual{background:#fff;border-color:var(--line-strong);box-shadow:0 28px 60px -36px rgba(35,65,95,.24)}
html[data-theme="light"] .preview-tab{color:var(--text)}
html[data-theme="light"] .preview-chart,html[data-theme="light"] .preview-inspector{background:#f8fbff;border-color:var(--line)}
html[data-theme="light"] .preview-chart{background:linear-gradient(180deg,#fbfdff,#f3f8fd)}
html[data-theme="light"] .chart-grid{stroke:#dce6f0}
html[data-theme="light"] .chart-zone{fill:#aee0c9;fill-opacity:.55}
html[data-theme="light"] .zone-top{stroke:#aa711e}
html[data-theme="light"] .zone-bottom{stroke:#288a65}
html[data-theme="light"] .chart-price-line{stroke:#6c8399}
html[data-theme="light"] .chart-axis,html[data-theme="light"] .chart-date-axis{fill:#5e748b}
html[data-theme="light"] .chart-axis text:nth-child(3){fill:var(--text)}
html[data-theme="light"] .chart-axis text:nth-child(4),html[data-theme="light"] .chart-axis text:nth-child(5){fill:#88520b}
html[data-theme="light"] .chart-base-label{fill:#88520b}
html[data-theme="light"] .chart-bottom{border-color:var(--line)}
html[data-theme="light"] .inspector-divider{background:var(--line)}
html[data-theme="light"] .inspector-state{color:#08744f;border-color:#93cdb2}
html[data-theme="light"] .inspector-action{background:#fff1db;border-color:#dfbf8f;color:#794908}
html[data-theme="light"] .access-section{background:#edf3f9}
html[data-theme="light"] .workflow-steps article{background:#fff;border-color:var(--line)}
html[data-theme="light"] .tier-card{background:linear-gradient(155deg,#fff,#f5f9fd);border-color:var(--line-strong);box-shadow:0 15px 32px rgba(35,65,95,.07)}
html[data-theme="light"] .tier-featured{background:radial-gradient(circle at 100% 0,rgba(217,155,65,.16),transparent 48%),linear-gradient(155deg,#fff,#fff8ec);border-color:#d7ae70}
html[data-theme="light"] .tier-card .plan-price{color:var(--text)}
html[data-theme="light"] .tier-card ul{color:var(--text-dim);border-top-color:var(--line)}
html[data-theme="light"] .request-section{background:radial-gradient(circle at 85% 5%,rgba(217,155,65,.12),transparent 40%),#f7faff;border-top-color:var(--line)}
html[data-theme="light"] .request-copy li{color:var(--text-dim)}
html[data-theme="light"] .request-card{background:linear-gradient(155deg,#fff,#f3f8fc);border-color:var(--line-strong);box-shadow:0 18px 40px rgba(35,65,95,.1)}
html[data-theme="light"] .request-form label{color:var(--text-dim)}
html[data-theme="light"] .request-form input,html[data-theme="light"] .request-form select,
html[data-theme="light"] .request-form textarea{background:#fff;border-color:var(--line-strong);color:var(--text)}
html[data-theme="light"] .request-success{background:#e8f6ee;border-color:#a7d6bb;color:#176347}
html[data-theme="light"] .request-error{background:#fff0f2;border-color:#e6aab4;color:#9c2f44}
html[data-theme="light"] .closing-cta{background:#fff8ec;border-color:#dfbd8b}
html[data-theme="light"] .landing-disclaimer>p,html[data-theme="light"] .landing-disclaimer details>div{color:var(--muted)}
html[data-theme="light"] .landing-disclaimer summary{color:var(--amber-light)}
