/* One header menu across marketing, account and School pages. */
.site-header { position: relative; z-index: 30; }
.site-header .mobile-nav[hidden] { display: none; }
.site-header .mobile-nav { margin: 0; }
.site-header .mobile-nav-label { margin: 14px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.site-header .mobile-nav :is(a,button),.site-header .nojs-navigation :is(a,button,summary) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.site-header .nojs-navigation { display: none; }
@media (max-width: 850px) {
  .site-header .mobile-nav:not([hidden]) { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .site-header .mobile-nav { position: absolute; inset: 100% 0 auto; width: 100%; max-width: none; max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; padding: 12px max(22px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--bg,#f7f8f2); border-top: 1px solid var(--line,#d6ddcf); border-bottom: 1px solid var(--line,#d6ddcf); box-shadow: 0 14px 28px #1920190d; }
  .site-header .mobile-nav a,.site-header .nojs-navigation nav a { display: flex; align-items: center; justify-content: flex-start; flex: none; width: 100%; min-height: 48px; margin: 0; padding: 12px 0; color: var(--text,#192019); font-size: 16px; line-height: 1.5; letter-spacing: 0; border: 0; border-bottom: 1px solid var(--line,#d6ddcf); border-radius: 0; text-decoration: none; white-space: normal; }
  .site-header .mobile-nav a[aria-current='page'] { color: var(--accent-text,#465c2c); font-weight: 600; }
  .site-header .mobile-nav .header-cta,.site-header .nojs-navigation .header-cta { justify-content: center; min-height: 48px; margin: 12px 0 4px; padding: 12px 20px; border: 1px solid transparent; border-radius: 6px; background: var(--lime,#d2ff79); color: var(--button-ink,#465c2c); font-size: 16px; font-weight: 600; }
  .site-header .mobile-workspace-help { width: 100%; margin-top: 8px; }
  .site-header .mobile-workspace-help > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 0; color: var(--muted,#626c5d); font-size: 15px; line-height: 1.5; cursor: pointer; list-style: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .site-header .mobile-workspace-help > summary::-webkit-details-marker { display: none; }
  .site-header .mobile-workspace-help > summary::after { content: '+'; font-size: 20px; }
  .site-header .mobile-workspace-help[open] > summary::after { content: '−'; }
  .site-header .mobile-workspace-help form { margin: 8px 0 0; }
  .site-header .mobile-workspace-help button { display: flex; align-items: center; width: 100%; min-height: 48px; margin: 0; padding: 12px 0; border: 0; background: transparent; color: var(--muted,#626c5d); font: inherit; font-size: 16px; text-align: left; }
  .site-header .menu-toggle { flex: 0 0 44px; border-radius: 7px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .site-header .menu-toggle[aria-expanded='true'] { background: var(--panel-soft,#edf0e6); border-color: var(--line-strong,#aab49d); }
  .site-header .nojs-navigation { display: block; padding-block: 0; border-top: 1px solid var(--line,#d6ddcf); }
  .site-header .nojs-navigation > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-size: 16px; }
  .site-header .nojs-navigation nav { display: block; margin: 0; padding-bottom: 16px; }
  .site-header:has(.nojs-navigation) .menu-toggle { display: none; }
  .dashboard.simple-workspace .layout { display: block; }
  .dashboard.simple-workspace .layout > aside { position: static; width: auto; height: auto; max-height: none; padding: 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard.simple-workspace .workspace-menu { position: static; height: auto; min-height: 0; overflow: visible; }
  .dashboard.simple-workspace .workspace-menu > .workspace-nav:first-of-type { display: flex; flex-direction: row; flex-wrap: nowrap; flex: none; min-height: 0; height: auto; gap: 4px; margin: 0; padding: 6px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .dashboard.simple-workspace .workspace-menu > .workspace-nav:first-of-type::-webkit-scrollbar { display: none; }
  .dashboard.simple-workspace .workspace-menu > .workspace-nav:first-of-type a { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: 10px 12px; margin: 0; font-size: 13px; line-height: 1.4; }
  .dashboard.simple-workspace .workspace-menu .workspace-account-nav { display: none; }
  .dashboard.simple-workspace .workspace-menu > .signout-form { display: none; }
  .site-header .mobile-nav :is(a,button):active,.site-header .menu-toggle:active { background: var(--panel-soft,#edf0e6); }
  .site-header .mobile-nav .header-cta:active { background: #c3f461; }
}
/* Workspace headers align to the sidebar, rather than the marketing max width. */
.dashboard.dashboard-signed-in .site-header .wrap.header-inner{width:100%;max-width:none;margin:0;padding-inline:28px 40px}
.dashboard.simple-workspace main{max-width:none}.dashboard.simple-workspace .workspace-content{max-width:1440px;margin-inline:0}
.notification-center{position:relative;flex:0 0 auto;margin:0;color:var(--text,#192019)}
.notification-center>.notification-trigger{position:relative;display:grid;place-items:center;list-style:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line,#d6ddcf);border-radius:7px;background:var(--panel,#fff);color:inherit;cursor:pointer}
.notification-trigger::-webkit-details-marker{display:none}.notification-trigger:focus-visible{outline:3px solid var(--accent-text,#465c2c);outline-offset:3px}.notification-trigger:hover{background:var(--panel-soft,#edf0e5)}
.notification-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;background:#bd302b;color:white;font:600 10px/1 Arial,sans-serif;border:2px solid var(--bg,#f7f8f2);border-radius:12px;font-variant-numeric:tabular-nums}
.notification-badge[hidden]{display:none}.notification-panel{position:absolute;top:calc(100% + 12px);right:0;z-index:80;width:360px;max-width:calc(100vw - 24px);padding:0;background:var(--panel,#fff);border:1px solid var(--line,#d6ddcf);border-radius:10px;box-shadow:0 14px 40px #19201924;overflow:hidden;text-align:left;line-height:1.5}
.notification-center:not([open])>.notification-panel{display:none}
.notification-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line,#d6ddcf)}
.notification-panel .notification-panel-heading h2{font:600 15px/1.4 var(--sans,Arial,sans-serif);margin:0;color:var(--text,#192019)}
.notification-panel form{margin:0}.notification-panel .notification-panel-heading button{min-height:44px;padding:6px 0;background:none;border:0;color:var(--accent-text,#465c2c);font:500 12px/1.4 var(--sans,Arial,sans-serif);white-space:nowrap;cursor:pointer;letter-spacing:0;text-transform:none}
.notification-panel-heading button:disabled{color:var(--muted,#626c5d);opacity:.65;cursor:default}.notification-load-status{margin:0;padding:14px 16px;font-size:13px;color:var(--muted,#626c5d)}.notification-load-status:empty{display:none}
.notification-list{list-style:none;margin:0;padding:0;max-height:min(440px,60dvh);overflow-y:auto;overscroll-behavior:contain}
.notification-item{margin:0;border-bottom:1px solid var(--line,#d6ddcf);position:relative}.notification-item:last-child{border-bottom:0}.notification-item-unread{background:#f3f7ea}.notification-item-unread:before{content:'';position:absolute;left:10px;top:23px;width:5px;height:5px;border-radius:50%;background:#759e34}
.notification-panel .notification-item a{display:grid;gap:5px;padding:16px 18px 16px 24px;min-height:60px;text-decoration:none;color:var(--text,#192019);font-size:12px;white-space:normal}
.notification-item strong{font-size:13px;font-weight:600}.notification-item time{font-size:11px;color:var(--muted,#626c5d)}.notification-panel .notification-item a:hover{background:var(--panel-soft,#edf0e5)}
.notification-panel a.notification-view-all{display:flex;justify-content:center;align-items:center;min-height:46px;padding:10px 16px;border-top:1px solid var(--line,#d6ddcf);font-size:12px;font-weight:600;color:var(--accent-text,#465c2c);text-decoration:none}
@media(max-width:850px){.dashboard.dashboard-signed-in .site-header .wrap.header-inner{padding-inline:22px}.notification-panel{position:fixed;top:78px;left:12px;right:12px;width:auto;max-width:none}.notification-list{max-height:calc(100dvh - 240px)}}
@media(min-width:851px){.dashboard-signed-in .workspace-menu .workspace-nav a,.admin-workspace .workspace-nav a{padding-inline:14px}}

/* The broker workspace owns its navigation, independently of the public header. */
body.dashboard.simple-workspace .layout{grid-template-columns:220px minmax(0,1fr);min-height:100dvh}
body.dashboard.simple-workspace .layout>aside{position:sticky;top:0;align-self:start;height:100dvh;min-width:0;padding:18px 16px 94px;background:#fff;overflow:visible;border-right:1px solid var(--line)}
.broker-sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:22px;min-height:44px}
.dashboard .broker-sidebar-brand{font-size:23px;font-weight:650;letter-spacing:-1.2px;color:var(--text);text-decoration:none;white-space:nowrap}.broker-sidebar-brand>span{color:#b6ec60;font-size:17px}
body.dashboard.simple-workspace .workspace-menu>summary{display:none}
body.dashboard.simple-workspace .workspace-menu>.workspace-nav:first-of-type{display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;overflow:visible;white-space:normal;margin:0;padding:0;height:auto;min-height:0}
body.dashboard.simple-workspace .workspace-menu>.workspace-nav:first-of-type>a{width:100%;min-height:42px;padding:10px 12px;border-radius:7px;white-space:normal;line-height:1.4;font-size:14px}
body.dashboard.simple-workspace .workspace-nav small{display:block;font-size:10px;font-weight:400;color:var(--muted)}
.broker-account-dock{position:absolute;bottom:18px;left:16px;right:16px;border-top:1px solid var(--line);padding-top:12px;z-index:20}
.broker-account-dock>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;font-size:12px;min-height:44px}.broker-account-dock>summary::-webkit-details-marker{display:none}.broker-account-dock>summary>span:nth-last-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.broker-account-dock small{display:block;color:var(--muted);font-size:10px}.broker-account-dock img,.account-initials{border-radius:50%;width:32px;height:32px;flex:0 0 32px;object-fit:cover}.account-initials{display:grid;place-items:center;background:#e9efdf;color:#465c2c;font-weight:600}.broker-account-links{position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px;box-shadow:0 12px 32px #19201914}.dashboard .broker-account-links a,.dashboard .broker-account-links button{display:block;width:100%;font:inherit;font-size:13px;text-align:left;padding:9px 10px;border:0;background:transparent;color:var(--text);min-height:38px;text-decoration:none}.broker-account-links form{margin:0}.broker-account-links a:hover,.broker-account-links button:hover{background:#edf0e5;border-radius:6px}
body.dashboard.simple-workspace .notification-panel{position:fixed;top:72px;left:220px;right:auto;width:min(390px,calc(100vw - 32px));z-index:60}
body.dashboard.simple-workspace main{max-width:none;padding:36px clamp(20px,3vw,48px)}
body.dashboard .workspace-content{width:100%;max-width:1280px;margin-inline:auto}
body.dashboard.simple-workspace>footer{display:none}
.commission-chart{display:block;width:100%;height:auto;max-height:220px;color:var(--muted)}.commission-history .table-note{max-width:70ch}.commission-history>details{font-size:13px}.commission-history table{width:100%;min-width:0}
@media(max-width:850px){body.dashboard.simple-workspace .layout{display:block}body.dashboard.simple-workspace .layout>aside{position:relative;height:auto;padding:12px 20px;border-right:0;border-bottom:1px solid var(--line)}.broker-sidebar-top{margin:0}body.dashboard.simple-workspace .workspace-menu>summary{display:block;padding:10px 0;font-size:13px;cursor:pointer}body.dashboard.simple-workspace .workspace-menu>.workspace-nav:first-of-type{padding-bottom:12px}body.dashboard.simple-workspace .broker-account-dock{position:relative;bottom:auto;left:auto;right:auto;margin-top:10px}.broker-account-links{bottom:auto;top:100%;right:auto;width:230px}.broker-account-dock>summary{max-width:260px}body.dashboard.simple-workspace .notification-panel{top:64px;left:16px;right:16px;width:auto}body.dashboard.simple-workspace main{padding:26px 20px}}

html.dashboard-page body.dashboard .layout main>.workspace-content{max-width:1280px;width:100%;margin-inline:auto}.dashboard.simple-workspace svg.commission-chart{height:180px;max-height:180px;width:100%}
.dashboard .workspace-content>.status-message{box-sizing:border-box;width:100%;max-width:none;margin:0 0 24px;border-left-width:1px}
.dashboard .application-status-title{font-size:20px;font-weight:500;line-height:1.4;margin:24px 0 12px}.dashboard .application-status{padding:20px 24px;max-width:720px;margin:0 0 24px}.dashboard .application-status>p{font-size:16px;line-height:1.5;margin:0;max-width:65ch}.dashboard .application-status .page-actions{justify-content:flex-start;gap:12px 20px;margin:16px 0 0}.dashboard .application-status .page-actions>.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;line-height:20px;padding:10px 16px;font-size:14px}.dashboard .application-status .page-actions>a:not(.button-link){display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:14px}

/* Fallback layering for browsers without the Popover API. */
body.dashboard.simple-workspace .layout>aside{z-index:20}body.dashboard.simple-workspace .layout>main{position:relative;isolation:isolate}.notification-center[open]{z-index:100}.site-header:has(.notification-center[open]){z-index:100}.notification-panel[popover]{color:var(--text,#192019)}
/* The menu and account controls share the sidebar height without overlap. */
@media(min-width:851px){
 body.dashboard.simple-workspace .layout>aside{display:flex;flex-direction:column;padding:18px 16px}
 body.dashboard.simple-workspace .broker-sidebar-top{flex-shrink:0}
 body.dashboard.simple-workspace .workspace-menu{position:static;top:auto;flex:1;height:auto;min-height:0;padding:0;overflow:visible}
 body.dashboard.simple-workspace .workspace-menu::details-content{display:flex;flex-direction:column;flex:1;min-height:0}
 body.dashboard.simple-workspace .workspace-menu>.workspace-nav:first-of-type{flex:1;min-height:0;overflow-y:auto}
 body.dashboard.simple-workspace .workspace-nav>a{flex-shrink:0}
 body.dashboard.simple-workspace .workspace-nav>a[href="/broker/how-to/"]{margin-top:auto}
 body.dashboard.simple-workspace .workspace-nav>a[href="/learn/"]{margin-bottom:0}
 body.dashboard.simple-workspace .broker-account-dock{position:relative;bottom:auto;left:auto;right:auto;flex-shrink:0;margin-top:12px}
}
/* The status heading now sits inside the status box. */
.dashboard .application-status>.application-status-title{margin:0 0 12px;color:var(--text)}
.dashboard .application-status>a.button-link{margin-top:12px}
