/* Shared visual language for the student portal and its sign-in pages. */
:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #fff;
  --panel2: #fff;
  --line: #d9e2ec;
  --text: #142942;
  --muted: #4d6177;
  --blue: #175fc3;
  --navy: #102640;
  --deep: #0b1b30;
  --gold: var(--blue);
  --gold2: #164f9f;
  --green: #09634b;
  --red: #a62f45;
  --amber: #865008;
  --ice: #edf4fd;
  --soft: #f5f8fc;
  --radius: 12px;
}
html { scroll-padding-top: 1.5rem; }
body { font: 1rem/1.48 Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
button, select, input, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid #287be7 !important; outline-offset: 3px; }
[hidden] { display: none !important; }
.app-shell { grid-template-columns: 236px minmax(0,1fr); }
.sidebar {
  background: linear-gradient(150deg, var(--navy), var(--deep) 84%);
  padding: 28px 16px 18px; border: 0; z-index: 6; overflow-y: auto;
}
.brand, .auth-brand {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  border: 0; background: none; font: inherit; color: #fff; letter-spacing: 0;
}
.brand { padding: 8px 9px 24px; border-radius: 0; cursor: pointer; margin: 0 0 18px; border-bottom: 1px solid #31475e; }
.brand strong,.auth-brand strong { font-size: 2.05rem; font-weight: 850; letter-spacing: -.09em; line-height: 1; }
.brand span,.auth-brand span { font-size: .76rem; line-height: 1.2; letter-spacing: .012em; color: #d1e1f2; font-weight: 650; }
.nav { gap: .27rem; }
.nav-link {
  display: flex; align-items: center; gap: .78rem; min-height: 44px; width: 100%;
  color: #c9d9ea; font-size: .91rem; font-weight: 550; line-height: 1.3;
  padding: .65rem .78rem; border-radius: 7px; position: relative;
}
.nav-link svg { width: 1.12rem; height: 1.12rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { color: #fff; background: #1b3754; }
.nav-link.active { color: #fff; background: #214b79; font-weight: 700; box-shadow: inset 3px 0 #68b4ff; }
.side-foot { color: #c0d0df; font-size: .75rem; border-top: 1px solid #31475e; padding: 15px 8px 0; }
.topbar { height: auto; min-height: 64px; background: #fff; padding: 12px clamp(16px, 3vw, 46px); gap: 1rem; font-size: .82rem; }
.topbar-right { gap: 18px; }
.market-state { min-width: 0; overflow-wrap: anywhere; }
.market-state strong { color: var(--text); }
.dot.amber { background: #bc7615; }
.market-clock { border-color: var(--line); }
.market-clock small { color: var(--muted); font-size: .66rem; }
.market-clock strong { color: var(--text); font-size: .9rem; font-variant-numeric: tabular-nums; }
.student { min-width: 0; color: var(--text); }
#studentName { display: inline-block; min-width: 0; max-width: min(24rem, 36vw); overflow-wrap: anywhere; line-height: 1.3; }
.avatar { background: var(--ice); color: var(--gold2); }
.logout-button { font-size: .76rem; min-height: 32px; padding: 4px 9px; }
.risk-ticker { background: #edf2f8; height: 26px; border-color: #dce5ef; }
.risk-ticker-track { font-size: .7rem; color: #46586c; }
.risk-ticker-copy span:first-child,.risk-ticker-copy b { color: #36516c; }
.view { max-width: 1540px; padding: clamp(22px, 3vw, 46px) clamp(16px, 3vw, 46px) 48px; }
.view-title,.hero { margin: 0 0 1.5rem; }
.view-title:not(.center-heading):not(.futures-title) { display: block; }
.eyebrow { color: var(--gold2); font-size: .73rem; letter-spacing: .105em; line-height: 1.35; }
.hero h1,.view-title h1,.academy-card h1 { color: var(--text); font-size: clamp(2rem, 3.3vw, 3.05rem); line-height: 1.09; letter-spacing: -.055em; }
.subhead { margin-top: .65rem; line-height: 1.52; max-width: 48rem; font-size: 1rem; }
.gold-button,.outline-button,.text-button,.link-button { font-size: .875rem; font-weight: 650; line-height: 1.25; }
.gold-button,.outline-button,.link-button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; border-radius: 7px; text-decoration: none; }
.gold-button { background: var(--blue); border-color: var(--blue); color: #fff; }
.gold-button:hover:not(:disabled) { background: #104c9e; }
.gold-button:disabled { opacity: .65; cursor: progress; }
.outline-button { border-color: #abc0d8; background: #fff; color: var(--gold2); }
.outline-button:hover,.text-button:hover { color: #103965; background: var(--ice); }
.center-heading {
  display: flex; align-items: center; flex-direction: row; justify-content: space-between;
  gap: 1.25rem; border-block-end: 1px solid var(--line); padding-bottom: 1.45rem; margin-bottom: 1.2rem;
}
.center-heading .eyebrow { margin-bottom: .55rem; }
.center-actions { justify-content: flex-end; align-items: center; gap: .55rem; }
.center-actions .outline-button,.center-actions .gold-button { padding: .62rem .85rem; }
.center-counts {
  gap: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0;
}
.center-counts article {
  padding: 15px clamp(10px, 1.4vw, 22px); background: none;
  border: 0; border-radius: 0; display: flex; flex-direction: column; align-items: flex-start;
}
.center-counts article + article { border-left: 1px solid var(--line); }
.center-counts span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.center-counts strong { margin-top: 4px; color: var(--text); line-height: 1.18; font-size: clamp(1.35rem,2.2vw,1.9rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.center-overview { padding: .7rem 0; margin: .6rem 0; background: none; border: 0; border-radius: 0; }
.center-overview h2 { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.center-overview p { color: var(--muted); margin: .2rem 0 0; font-size: .85rem; line-height: 1.5; }
.desk-section,.earnings-radar {
  padding: clamp(16px, 2vw, 28px); margin: 1.25rem 0; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); min-width: 0;
}
.desk-section-head,.radar-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.desk-section-head { margin-bottom: 1rem; }
.desk-section-head h2,.desk-calendar h2,.radar-heading h2,.section-header h2 { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -.037em; }
.desk-section-head p,.radar-heading p:not(.eyebrow) { margin: .4rem 0 0; font-size: .94rem; line-height: 1.48; color: var(--muted); }
.desk-feed { border-top: 3px solid var(--blue); }
.desk-evidence { margin-top: 1.65rem; }
.match-feed { display: grid; gap: 0; }
.match-post { position: relative; padding: 1rem 0 1rem 1.1rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.match-post::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: .38rem; height: .38rem; border-radius: 50%; background: var(--blue); }
.match-post h3,.match-post h4 { margin: .3rem 0; font-size: 1.03rem; }
.match-post p { margin: .3rem 0; }
.match-time,.match-meta { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.match-empty { padding: .85rem 1rem; border: 1px dashed #b7c8da; background: var(--soft); border-radius: 7px; }
.match-empty p { color: var(--muted); font-size: .88rem; max-width: 74ch; margin: .25rem 0 0; }
.match-post header { display: flex; gap: .55rem; align-items: baseline; flex-wrap: wrap; }
.match-post header>strong { font-size: 1.12rem; color: var(--text); }
.match-post header>span { font-size: .76rem; font-weight: 750; }
.match-post .match-time { margin-left: auto; }
.match-post.bull::before { background: var(--green); }
.match-post.bear::before { background: var(--red); }
.match-post p { color: var(--text); font-size: .89rem; }
@media(min-width:1101px) {
  .match-post { display: grid; grid-template-columns: 132px minmax(0,1fr) minmax(0,1fr); column-gap: 1rem; row-gap: .2rem; }
  .match-post header { grid-row: 1/4; align-content: start; align-items: center; }
  .match-post .match-time { flex-basis: 100%; margin: .15rem 0 0; }
  .match-post p { margin: 0; }
  .match-post .match-meta,.match-post p:last-child { grid-column: 2/-1; }
}
.radar-toolbar,.agenda-toolbar { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: space-between; align-items: end; margin: .75rem 0; }
.radar-toolbar label,.agenda-toolbar label { display: grid; gap: .25rem; color: var(--muted); font-size: .8rem; font-weight: 650; }
.radar-toolbar select,.radar-toolbar input,.radar-filter { max-width: 100%; min-width: 0; }
.radar-toolbar button,.agenda-toolbar button,.desk-feed button,.radar-table button,.center-card button { cursor: pointer; }
.desk-feed button:not(.text-button),.radar-table button:not(.text-button),.radar-toolbar button,.agenda-toolbar button {
  background: #fff; color: var(--gold2); border: 1px solid #c3d3e5;
  border-radius: 6px; padding: .45rem .65rem; font-size: .85rem; line-height: 1.25; font-weight: 650;
}
.radar-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.radar-table { width: 100%; min-width: 730px; border-collapse: collapse; font-size: .89rem; line-height: 1.38; font-variant-numeric: tabular-nums; }
.radar-table th,.radar-table td { padding: .65rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
/* The radar has its own light header. The default table header is dark. */
th { color: #e5eef8; }
.radar-table th { color: var(--muted); background: var(--soft); font-size: .78rem; text-transform: none; letter-spacing: .01em; }
.radar-table tbody tr:hover { background: #f6faff; }
.radar-table small,.radar-table time { display: block; color: var(--muted); font-size: .76rem; margin-top: .18rem; }
.radar-status,.center-bias,.signal,.strategy-label,.futures-source-state {
  display: inline-flex; align-items: center; border: 1px solid #ccdced; background: var(--ice); color: var(--gold2);
  padding: .24rem .55rem; border-radius: 5px; font-size: .75rem; line-height: 1.35; font-weight: 700; letter-spacing: .025em;
}
.bull,.center-frames b.bull { color: var(--green); }
.bear,.center-frames b.bear { color: var(--red); }
.radar-status.bull,.center-bias.bull { background: #e2f4eb; border-color: #b2deca; color: var(--green); }
.radar-status.bear,.center-bias.bear { background: #feebee; border-color: #efc6cf; color: var(--red); }
.radar-status.neutral,.center-bias.neutral { background: var(--soft); border-color: var(--line); color: var(--muted); }
.center-method { margin: 1rem 0; padding: .85rem 1.1rem; border: 1px solid var(--line); background: #fff; }
.center-method summary,.center-card summary { color: var(--gold2); font-size: .89rem; }
.center-method p { color: var(--muted); font-size: .95rem; }
.center-grid { gap: 14px; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); }
.center-card,.center-card.pending {
  color: var(--text); background: #fff; border-color: var(--line);
  border-top: 3px solid #849ab2; border-radius: 10px; padding: 17px;
}
.center-card.bull { border-top-color: #198363; }
.center-card.bear { border-top-color: #be465a; }
.center-card header { align-items: center; gap: .6rem; flex-wrap: wrap; }
.center-card h3 { font-size: 1.35rem; color: var(--text); }
.center-card>p,.center-card details p,.center-card .center-date,.center-strategies li,.center-table table { color: var(--muted); }
.center-card>p,.center-card details p { font-size: .89rem; line-height: 1.52; }
.center-frames>div,.scenario-pair>div { background: var(--soft); padding: .6rem .72rem; border-radius: 6px; min-width: 0; }
.center-frames small { color: var(--muted); font-size: .7rem; }
.center-frames b { font-size: .8rem; }
.center-setup { color: var(--text); background: var(--ice); border-color: #cadbef; font-size: .85rem; }
.center-strategies li,.center-table td,.center-table th { border-color: var(--line); font-size: .78rem; }
.center-table table { min-width: 0; }
.center-card footer { max-width: none; border-top: 1px solid var(--line); }
.scenario-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .7rem 0; }
.scenario-pair strong,.scenario-pair small { display: block; }
.scenario-pair strong { color: var(--text); }
.scenario-pair small { color: var(--muted); }
.center-flow-note,.center-pattern { border-left: 2px solid #bdcfe5; padding-left: .65rem; }
.agenda-toolbar { align-items: center; }
.agenda-toolbar p,.agenda-day p,.agenda-source p { margin: .3rem 0; }
.agenda-toolbar p,.agenda-day p { color: var(--muted); font-size: .85rem; }
.agenda-toolbar button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.agenda-next { padding: .75rem 1rem; background: var(--ice); border-left: 3px solid var(--blue); border-radius: 4px; color: var(--text); }
.agenda-days { display: grid; gap: .75rem; }
.agenda-day { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.agenda-day h3,.agenda-day h4 { color: var(--text); margin: .2rem 0 .55rem; font-size: 1rem; }
.agenda-day ul { list-style: none; padding: 0; margin: 0; }
.agenda-day.today,.agenda-day[aria-current="date"] { border-left: 3px solid var(--blue); background: #f4f8fe; }
.agenda-event { display: grid; grid-template-columns: minmax(6rem,.35fr) minmax(0,3fr) auto; align-items: baseline; gap: .6rem; padding: .52rem 0; border-top: 1px solid var(--line); }
.agenda-event small { color: var(--muted); }
.agenda-time { color: var(--text); font-size: .87rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda-source,.agenda-empty,.earnings-source,.earnings-empty { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.desk-section a:not(.outline-button),.earnings-radar a { color: var(--gold2); text-underline-offset: 2px; }
.earnings-radar { overflow: visible; }
.earnings-radar::after { display: none; }
.earnings-feed { grid-template-columns: repeat(2,minmax(0,1fr)); }
.earnings-lead { color: var(--text); background: #eef4fc; border-color: #c6d8ed; border-left-color: var(--blue); }
.earnings-lead p { border-color: #c6d8ed; }
.earnings-item { background: #fff; }
.earnings-date,.earnings-lead-main b { color: var(--text); }
.earnings-item b,.earnings-lead-main b { font-size: .85rem; }
.earnings-lead small,.earnings-item small,.earnings-kicker { font-size: .7rem; }
.earnings-lead p,.earnings-lead .asset-title span { font-size: .82rem; }
.earnings-source { margin-bottom: 0; }
.asset-logo { position: relative; display: grid; align-items: center; justify-items: center; background: #eff4fa; }
.asset-logo img,.asset-logo b { grid-area: 1/1; }
.asset-logo img { z-index: 1; background: #fff; }
.status-grid { margin: 1rem 0 2rem; }
.asset-card,.watch-asset,.strategy-card,.analysis-card,.analyzer-form,.academy-card,.status-card,.contract-card,.portal-contract-card,.flow-stat,.reading-facts>div,.futures-panel,.futures-plan-grid article {
  background: #fff; color: var(--text); border-color: var(--line); border-radius: 9px;
}
.asset-card:hover,.watch-asset:hover,.strategy-card:hover { transform: none; box-shadow: none; border-color: #a9beD4; }
.asset-card,.watch-asset { min-width: 0; }
.asset-card p,.watch-asset span,.status-card p,.status-card span { color: var(--muted); }
.watch-asset .asset-logo,.asset-card .asset-logo { color: var(--gold2); }
.filters label,.futures-controls label,.analyzer-form label { font-size: .82rem; color: var(--muted); letter-spacing: .015em; }
select,.filters select,.futures-controls select,textarea,.auth-form input,.radar-toolbar input {
  color: var(--text); background-color: #fff; border: 1px solid #aebfd1; border-radius: 6px; padding: .6rem .7rem; min-height: 40px; font-size: .9rem;
}
.filters,.futures-controls { background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); }
.data-notice,.flow-warning,.flow-warning.attention { background: #fff8e9; border-color: #e4d1aa; color: #61430f; }
.data-notice p,.flow-warning p,.flow-warning small,.flow-warning strong { color: #61430f; }
.flow-reading,.flow-conclusion,.reference-board,.featured-contract,.futures-status-card,.thesis-grid section,.analysis-context,.engine-board,.flow-signal {
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.flow-reading h2,.reference-board h2,.analysis-card h2 { color: var(--text); }
.flow-reading p,.flow-reading small,.thesis-grid p,.engine-title p,.analysis-context p,.futures-status-card p:not(.eyebrow) { color: var(--muted); }
.reading-facts>div,.thesis-grid section,.featured-contract,.analysis-context,.engine-board { background: var(--soft); }
.reading-facts h3,.thesis-grid b,.analysis-context p,.futures-plan-grid strong,.futures-checklist li { color: var(--text); }
.reading-answer { background: var(--ice); border-left-color: var(--blue); color: var(--text); }
.contract-type.call,.conviction.call,.flow-signal.call,.featured-contract.call { border-color: #9bcab8; color: var(--green); }
.contract-type.put,.conviction.put,.flow-signal.put,.featured-contract.put,.thesis-grid section.risk { border-color: #e1afba; color: var(--red); }
.portal-contract-card,.featured-contract { border-left-width: 3px; }
.futures-status-card,.strategy-card.featured,.reference-board { border-top: 3px solid var(--blue); }
.contract-reading p,.contract-strike span,.featured-contract-main p,.featured-contract-read p,.portal-contract-title p,.featured-contract-note,.portal-contract-foot,.contract-simple-data small { color: var(--muted); }
.featured-contract-read strong,.portal-contract-title>strong,.portal-contract-metrics em,.contract-simple-data span:last-child b,.featured-contract-label b,.earnings-kicker,.featured-contract-label span,.portal-contract-head small { color: var(--gold2); }
/* Local text colors for panels with dark backgrounds. */
.reference-cards .featured-contract,
.strategy-card.featured,
.flow-signal:is(.call, .put) {
  --text: #ffffff;
  --muted: #d6e2ee;
  --gold: #c1ddff;
  --gold2: #c1ddff;
  --line: #607488;
  background-color: #101a22;
  color: var(--text);
}
.strategy-card.featured .strategy-label { background: #233b52; color: #eaf4ff; border-color: var(--line); font-size: .75rem; }
.featured-contract-main h2,
.featured-contract-read strong,
.featured-contract-metrics b { color: var(--text); }
.featured-contract-main h2,
.featured-contract-metrics b { font-variant-numeric: tabular-nums; }
.featured-contract-label span,
.featured-contract-metrics small { font-size: .75rem; }
.featured-contract-label b,
.featured-contract-main p { font-size: .875rem; }
.featured-contract-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
}
.featured-contract-metrics span { min-width: 0; }
.contract-type.call { background: #e4f4ed; }
.contract-type.put { background: #fcecf0; }
.reference-board>header>span,.expiry-group>header>span,.analysis-stages span,.conviction { background: var(--ice); color: var(--gold2); border-color: #c6d8ed; }
.futures-status-card .futures-quote,.analysis-lead { color: var(--muted)!important; }
.futures-score span,.futures-checklist b,.engine-state.pending b { color: var(--amber); }
.future-check-dot { background: #b47a22; }
.engine-state.ready b,.futures-checklist li.ready b { color: var(--green); }
.analysis-progress { background: #dfe9f5; }
.analysis-progress div { background: var(--blue); }
.analyzer-form,.analysis-card,.analyzer-form label,.thesis-grid>section,.engine-state { min-width: 0; }
.analyzer-form select,.analyzer-form textarea { width: 100%; max-width: 100%; min-width: 0; }
.analysis-card { overflow-wrap: anywhere; }
.futures-error { color: var(--red); }
.academy-card { padding: clamp(22px, 4vw, 54px); border-top: 3px solid var(--blue); }
.main>footer { color: var(--muted); border-color: var(--line); font-size: .78rem; line-height: 1.6; }
.auth-gate { overflow-y: auto; background: linear-gradient(115deg,#eaf0f7,#f8fafd 60%); }
.auth-card { border: 1px solid #c8d6e5; background: #fff; border-radius: 14px; padding: clamp(22px,5vw,36px); box-shadow: 0 14px 44px #11263f12; margin: auto; }
.auth-brand { color: var(--navy); padding: 0 0 1.25rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
.auth-brand span { color: var(--muted); }
.auth-card h1 { font-size: 2rem; line-height: 1.13; }
.auth-form label { font-size: .87rem; color: var(--text); font-weight: 600; letter-spacing: 0; }
.auth-form input { font-size: 1rem; }
.auth-actions { gap: .7rem 1.1rem; }
.auth-actions a,.auth-actions button,.auth-back { font-size: .84rem; color: var(--gold2); }
.auth-card .auth-message.error { color: var(--red); }
.auth-card .auth-message { color: var(--amber); }
.auth-note { font-size: .8rem; }
@media(max-width:1100px) {
  .app-shell { grid-template-columns: 209px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .nav-link { font-size: .86rem; }
  .center-heading { align-items: flex-start; flex-direction: column; }
  .center-actions { justify-content: flex-start; }
  .earnings-feed { grid-template-columns: 1fr; }
  .analyzer-layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:760px) {
  .app-shell { display: block; }
  .topbar { position: sticky; top: 0; z-index: 8; min-height: 57px; padding: 7px 12px; gap: .45rem; }
  .topbar-right { gap: .3rem; }
  .market-state { flex: 1; }
  .market-state strong { display: block; font-size: .79rem; }
  .market-state .dot { display: none; }
  .market-state span:last-child { font-size: .7rem; }
  .student { gap: .35rem; }
  #studentName { max-width: 38vw; font-size: .8rem; }
  .student .avatar { display: none; }
  .menu-toggle { flex-shrink: 0; padding: .3rem .5rem; color: var(--text); }
  .sidebar { position: fixed; z-index: 9; top: auto; left: 0; bottom: 0; transform: translateY(100%); visibility: hidden; width: 100%; height: auto; max-height: calc(100dvh - 70px); padding: 8px 18px 15px; border-radius: 16px 16px 0 0; }
  .sidebar.open { visibility: visible; transform: translateY(0); box-shadow: 0 -14px 35px #0b1b3030; }
  .brand { margin: 0 0 7px; padding: 8px 4px; }
  .brand strong { font-size: 1.45rem; }
  .brand span,.side-foot { display: none; }
  .nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-link { padding: .5rem; }
  .view { padding: 24px 14px 36px; }
  .desk-section,.earnings-radar { padding: 15px; }
  .center-counts { display: flex; flex-wrap: wrap; gap: 0; }
  .center-counts article { flex: 1 0 32%; padding: 10px; border: 0; }
  .center-counts article + article { border-left: 0; }
  .center-counts article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .center-counts span { font-size: .75rem; }
  .center-grid { grid-template-columns: minmax(0,1fr); }
  .scenario-pair { grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); }
  .radar-toolbar { align-items: stretch; }
  .radar-toolbar>* { max-width: 100%; }
  .agenda-event { grid-template-columns: minmax(0,1fr) auto; }
  .agenda-event>span { grid-column: 1/-1; grid-row: 2; }
  .radar-table th:first-child,.radar-table td:first-child { position: sticky; left: 0; z-index: 1; background: #f7faff; border-right: 1px solid var(--line); }
  #escenarios { scroll-margin-top: 60px; }
  .desk-section-head h2 { font-size: 1.3rem; }
  .center-actions { width: 100%; flex-wrap: wrap; }
}
@media(max-width:420px) {
  .nav-link { font-size: .8rem; gap: .45rem; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; }
  .view.active { animation: none; }
  .sidebar,.asset-card,.strategy-card,.watch-asset { transition: none!important; }
}
