/* 091: dashboard hierarchy using the original Tristan palette and Tilda Sans. */
#app>main[data-view="market"]>header{height:76px;margin-bottom:20px}
#market{gap:16px}
#market .dashboard-heading{padding:22px 26px;border-radius:20px;background:radial-gradient(ellipse at 95% -30%,#185ac1 0,transparent 64%),#0b1b32;color:white;align-items:center;box-shadow:0 10px 30px #0b234c10}
#market .dashboard-heading .eyebrow{color:#a7c6fb;margin:0;font-size:10px}
#market .dashboard-heading h1{font-size:30px;letter-spacing:-1px;margin:6px 0}
#market .dashboard-heading .muted{color:#c6d7ef;margin:0;font-size:13px}
.desk-actions{display:grid;gap:12px;justify-items:end;flex-shrink:0}
#market .desk-actions .data-pill{margin:0;background:#ffffff0c;border-color:#54739b;color:#dae8ff;font-size:9px;letter-spacing:.8px;padding:6px 10px}
.desk-actions>div{display:flex;gap:8px}.desk-actions .primary{background:#0058ff;border:1px solid #6398ff;min-height:40px;padding:9px 17px;border-radius:10px;font-size:12px}
.desk-macro{border:1px solid #56729a;border-radius:10px;color:#e0ebff;background:#ffffff08;padding:9px 14px;min-height:40px;font-size:12px}.desk-macro:hover{background:#214675}
#market .watch-tile{border-radius:14px;padding:14px 18px;box-shadow:0 3px 10px #19345604}
#market .watch-tile.selected{background:linear-gradient(120deg,#0e2443,#173e78);border-color:#477ddd;box-shadow:0 5px 16px #0e315e18;color:#fff}
#market .watch-tile.selected>span small{color:#b3cff4}#market .watch-tile.selected>b{color:#fff}#market .watch-tile.selected>.positive{color:#82e0c3!important}#market .watch-tile.selected>.negative{color:#ffb3c4!important}#market .watch-tile.selected svg polyline{stroke:#8fb8ff}
#market .watch-tile>b{font-size:23px;font-variant-numeric:tabular-nums;letter-spacing:-.4px}#market .watch-tile>span{font-size:13px}
#market .pretrade-check{border-radius:13px;padding:13px 15px;gap:7px;border-top:3px solid #dae6fb;box-shadow:0 3px 12px #1f426706}
#market .pretrade-check:first-child{border-top-color:#4d88ff}#market .pretrade-check.unavailable{border-top-color:#d1a35d}#market .check-heading{font-size:11px}#market .pretrade-check>b{font-size:15px;line-height:1.35}
#market .intelligence-main{grid-template-columns:minmax(0,2.5fr) minmax(260px,1fr);gap:16px}
#market .chart{padding:20px;border-radius:18px;box-shadow:0 7px 24px #20385908}
#market .chart canvas{height:350px}#market .chart-readout{font-size:11px;color:#455e7e;line-height:1.6;min-height:20px}
#market .timeframes{gap:4px;background:#f1f5fb;border-radius:9px;padding:4px}#market .timeframes button{font-size:11px;min-width:32px;min-height:30px;border-radius:6px;padding:5px 8px}#market .timeframes button.active{background:#0058ff;color:#fff;box-shadow:0 2px 6px #0058ff25}
.chart-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:12px 0 2px}
#chartLayers{min-width:0;flex:1}#chartLayers>summary{display:inline-flex;cursor:pointer;border:1px solid #dbe4f2;background:#f7f9fd;color:#35547c;padding:7px 12px;border-radius:8px;font-size:12px;min-height:32px;align-items:center;gap:8px}#chartLayers>summary:after{content:'+';font-size:16px;color:#0058ff}#chartLayers[open]>summary:after{content:'−'}
#chartLayers .layerbar{padding:13px;border:1px solid #e2e9f4;border-radius:10px;gap:12px 16px;margin-top:8px;background:#fbfcff}#chartLayers .layerbar label{font-size:12px;display:inline-flex;align-items:center;gap:5px}
.chart-toolbar .chart-zoom{display:flex;gap:6px;margin:0;padding:0}.chart-toolbar .chart-zoom button{width:34px;height:34px;border:1px solid #dbe4f2;border-radius:8px;color:#315884;background:#fff;font-size:17px}
#market .flow-card{border-radius:18px;background:linear-gradient(180deg,#f9fbff,#fff 35%);padding:24px}#market .flow-card h3{font-size:19px}#market .flow-title b{font-size:13px}#market .flow-values{font-variant-numeric:tabular-nums}
#market .legend{border-top:1px solid #e9eef6;padding-top:10px;line-height:1.6}#market .legend .demo{font-size:10px}
#market .fundamental-desk{scroll-margin-top:20px}
@media(max-width:1100px){#market .intelligence-main{grid-template-columns:minmax(0,1fr)}#market .flow-card #flowBoard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}#market .flow-card .flow-row{padding:12px 0}.pretrade-checks{scrollbar-width:thin}#market .pretrade-checks{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:10px;padding-bottom:5px}#market .pretrade-check{flex:1 0 165px;scroll-snap-align:start;display:flex;min-width:0}#market .pretrade-check:nth-child(5) .check-detail{text-align:left}}
@media(max-width:700px){#app>main[data-view="market"]>header{height:auto;min-height:58px;margin-bottom:14px;padding:12px 0}#market{gap:12px}#market .dashboard-heading{padding:18px;border-radius:16px;display:flex;flex-direction:column;align-items:stretch;gap:12px}#market .dashboard-heading h1{font-size:26px}#market .dashboard-heading .muted{font-size:12px}.desk-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}#market .desk-actions .data-pill{font-size:8px;padding:5px 7px}.desk-actions .primary,.desk-macro{min-height:38px;font-size:11px;padding:8px 10px}.desk-actions>div{gap:6px}#market .watchlist{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}#market .watch-tile{padding:11px 9px;border-radius:11px;gap:5px}#market .watch-tile>b{font-size:17px;align-self:flex-start}#market .watch-tile>span{font-size:11px}#market .watch-tile>small{font-size:9px}#market .pretrade-check{flex-basis:158px;min-height:96px;padding:11px 12px}#market .pretrade-check>b{font-size:14px}#market .chart{padding:13px;border-radius:15px}#market .chart canvas{height:290px}#market .timeframes{width:100%;justify-content:space-between}#market .timeframes button{min-width:31px;min-height:38px;padding:5px}#market .chart .row{gap:10px}#market .flow-card #flowBoard{display:block}#market .flow-card{padding:20px}#market .legend .demo{font-size:9px}#chartLayers .layerbar{gap:11px;padding:10px}#chartLayers .layerbar label{min-height:30px}.chart-toolbar .chart-zoom button{width:38px;height:38px}.chart-toolbar{margin-top:10px}}
@media(prefers-reduced-motion:reduce){#market *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:700px){#market .dashboard-heading{padding:16px;gap:10px}#market .dashboard-heading h1{font-size:24px;margin:4px 0 0}#market .dashboard-heading .muted{display:none}.desk-actions .execution-note{display:none}.desk-actions{flex-wrap:nowrap}.desk-actions .primary,.desk-macro{min-height:36px;padding:7px 9px}#market .desk-actions .data-pill{flex-shrink:0;font-size:8px;letter-spacing:.4px}}

/* 092: readable calculation and recoverable planning, within the original brand. */
.plan-workflow a{background:#edf3ff;color:#204577;border:1px solid #dae5fa;border-radius:8px;padding:10px 12px;font-size:12px;font-weight:600;text-decoration:none;min-height:40px;display:flex;align-items:center}
.plan-workflow a:hover{background:#dce9ff}.plan-workflow a:focus-visible{outline:2px solid #0058ff;outline-offset:3px}
#riskCalculator,#savedPlans,#planForm{scroll-margin-top:24px}#riskCalculator{align-self:start}#riskCalculator h3{margin:6px 0 16px}#riskCalculator>.eyebrow{margin:0}
#riskCalculator #riskFromPlan{margin-bottom:0}#riskResult{white-space:normal;margin-top:16px}#riskResult[data-state="ready"]{background:#eef4ff;border-color:#0058ff}
.risk-result-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:600}.risk-result-heading strong{font-size:32px;line-height:1.2;color:#08357d;font-variant-numeric:tabular-nums}.risk-result-heading small{font-size:15px;font-weight:500}
.risk-result-context{font-size:13px;margin:12px 0 16px;color:#355274}.risk-result-metrics{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}.risk-result-metrics>div{min-width:0}.risk-result-metrics dt{font-size:12px;color:#435c7c}.risk-result-metrics dd{margin:4px 0 0;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#riskResult .risk-result-note{font-size:12px;line-height:1.6;color:#435c7c;margin:16px 0 0}#riskResult[data-state="error"],#riskResult[data-state="blocked"]{border-color:#b13e4e;background:#fff5f5;color:#852b3a}
.risk-mt5{border-top:1px solid #e1e8f2;margin-top:22px;padding-top:16px;font-size:13px;line-height:1.6}.risk-mt5 summary{cursor:pointer;font-weight:600;color:#254b7d}
.plan-list-error,.plan-recovery{border:1px solid #ecc7ca;background:#fff7f7;border-radius:12px;padding:16px;color:#792f3b;font-size:14px;line-height:1.5}.plan-recovery>div{display:flex;gap:8px;flex-wrap:wrap}.plan-recovery p:first-child,.plan-list-error p:first-child{margin-top:0}.plan-recovery [role="status"]:empty{display:none}
@media(max-width:600px){.plan-workflow a{font-size:12px;flex:1 1 100%;min-height:44px}.risk-result-heading strong{font-size:30px}.risk-result-metrics{gap:12px}.plan-recovery button{width:100%}}

/* 094: make the existing market cards visibly selectable. */
.market-choice-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:24px 0 12px}.market-choice-heading h2{font-size:20px;margin:0;color:#152c4c}.market-choice-heading p{font-size:14px;color:#52647c;margin:0}
#watchlist .watch-tile{cursor:pointer}#watchlist .watch-tile:focus-visible{outline:3px solid #0058ff;outline-offset:4px}#watchlist .watch-identity{display:flex;flex-direction:column;gap:3px}#watchlist .watch-name{font-style:normal;font-size:16px;font-weight:700;line-height:1.3}#watchlist .watch-symbol{font-size:12px;font-weight:500;opacity:.85}#watchlist .watch-choice{display:block;grid-column:1/-1;font-size:13px;font-weight:700;line-height:1.4;color:#0058ff;margin-top:6px}#watchlist .selected .watch-choice{color:#fff}#watchlist .watch-tile:hover .watch-choice{text-decoration:underline}
@media(max-width:600px){.market-choice-heading{display:block;margin-top:18px}.market-choice-heading h2{font-size:18px}.market-choice-heading p{font-size:12px;margin-top:4px}#watchlist .watch-name{font-size:13px}#watchlist .watch-symbol{font-size:11px}#watchlist .watch-choice{font-size:11px}}

/* 095: catalogue -> dedicated course screen -> lesson. */
#educationHome>.edu-heading[hidden],#courseCards[hidden],#courseOutline[hidden],#coursePageNav[hidden]{display:none!important}#coursePageNav{display:flex;align-items:center;gap:16px;margin-bottom:20px;color:#52647c;font-size:14px}#coursePageNav+ #courseOutline{margin-top:0}#courseOutline h2:focus{outline:none}@media(max-width:600px){#coursePageNav{gap:12px;margin-bottom:14px}#coursePageNav .secondary{min-height:44px}}

/* 096: readable course chapters and explicit, legible lesson availability. */
#lessonBody {max-width:72ch;margin-inline:auto;color:#293d56;overflow-wrap:break-word;}
#lessonBody p, #lessonBody li {font-size:16px;line-height:1.75;color:#293d56;white-space:normal;}
#lessonBody p {margin:0 0 1.15em;}
#lessonBody h3 {font-size:21px;line-height:1.35;font-weight:700;color:#142840;margin:2em 0 .7em;letter-spacing:-.02em;text-transform:none;}
#lessonBody h3:first-child {margin-top:0;}
#lessonBody h3 + h3 {margin-top:1.15em;font-size:18px;}
#lessonBody ul {padding-left:1.35em;margin:.75em 0 1.6em;}
#lessonBody li {padding-left:.2em;margin-bottom:.65em;}
#lessonBody li::marker {color:#0058ff;}
#lessonBody blockquote {margin:1.6em 0;padding:18px 22px;border-left:4px solid #0058ff;background:#f1f5ff;border-radius:0 12px 12px 0;}
#lessonBody blockquote p {margin:0;font-weight:500;color:#1b355b;}
#lessonBody .reading-figure {margin:1.6em 0;padding:20px;background:#f5f7fb;border:1px solid #dce4ef;border-radius:14px;}
#lessonBody .reading-figure-label {font-size:12px;font-weight:700;color:#52647a;margin-bottom:12px;}
#lessonBody .reading-figure ul {margin:0 0 14px;}
#lessonBody figcaption {font-size:13px;line-height:1.6;color:#52647a;border-top:1px solid #dce4ef;padding-top:12px;}
.course-rail .rail-row {font-size:14px;line-height:1.5;color:#31465f;font-weight:600;padding:14px 12px;gap:12px;}
.course-rail .rail-row:disabled {opacity:1;color:#52647a;cursor:default;}
.course-rail .rail-row>span:first-child {color:#52647a;font-weight:600;font-size:12px;}
.course-rail .rail-row.selected {color:#0046cc;background:#eaf1ff;box-shadow:inset 3px 0 #0058ff;}
.course-rail .rail-row.selected>span:first-child {color:#0046cc;}
.course-rail .rail-row:not(:disabled):hover {background:#eaf1ff;}
.course-rail .rail-row:focus-visible {outline:2px solid #0058ff;outline-offset:2px;}
.course-rail .rail-lock {display:block;margin-top:4px;font-size:11px;line-height:1.4;font-weight:400;color:#52647a;}
@media(max-width:600px){#lessonBody h3{font-size:19px;}#lessonBody p,#lessonBody li{font-size:15px;line-height:1.75;}#lessonBody blockquote,#lessonBody .reading-figure{padding:15px;}}

#lessonBody .reading-table{overflow-x:auto;margin:1.4em 0 1.8em;border:1px solid #dce4ef;border-radius:12px;}
#lessonBody table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;}
#lessonBody th,#lessonBody td{text-align:left;padding:12px 15px;vertical-align:top;color:#293d56;border-bottom:1px solid #dce4ef;min-width:110px;}
#lessonBody th{font-weight:700;background:#eef3fb;color:#142840;}
#lessonBody tr:last-child td{border-bottom:0;}
#lessonBody .reading-table:focus-visible{outline:2px solid #0058ff;outline-offset:2px;}

.course-rail .rail-lock{display:flex;align-items:center;gap:5px;}

/* 097: the wheel is a first-class workspace destination. */
.product-switch [data-product="wheel"] .nav-icon,.drawer-links [data-view="wheel"] .nav-icon{color:#e7bb72;}

/* 099: time context belongs next to the readings. */
.market-data-bar{margin:18px 0 24px;padding:20px 24px;background:#fff;border:1px solid #dbe4f1;border-radius:18px;color:#293d56;}
.market-data-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.market-data-controls label{display:grid;gap:7px;font-weight:650;font-size:13px;}
.market-data-controls select{min-width:190px;padding:10px 14px;border:1px solid #bccde3;border-radius:10px;background:#f8faff;color:#183251;font:inherit;}
.market-data-bar p{font-size:13px;line-height:1.65;margin:12px 0 0;}
.market-data-bar details{margin-top:12px;font-size:13px;}.market-data-bar summary{cursor:pointer;color:#0058ff;font-weight:600;}
#marketDataUpdated{color:#52647a;}.data-period-note{grid-column:1/-1;flex-basis:100%;font-size:12px;line-height:1.6;color:#52647a;margin:0 0 12px;}
.watch-tile .watch-period{font-size:11px;line-height:1.5;color:inherit;opacity:.85;display:block;margin-top:5px;}
@media(max-width:600px){.market-data-bar{padding:16px;}.market-data-controls{align-items:stretch;}.market-data-controls label,.market-data-controls button{width:100%;}}

/* Trade review: one scope for every metric and chart. */
.ta-filters{display:grid;grid-template-columns:minmax(160px,1.3fr) repeat(2,minmax(145px,1fr)) auto auto;gap:12px;align-items:end;margin:0;padding:18px}
.ta-filters label{min-width:0;font-size:13px;color:#344766;margin:0}.ta-filters label:first-child{grid-column:1/-1}
.ta-filters input,.ta-filters select{width:100%;min-width:0;font:inherit;min-height:44px}
.ta-filters button{min-height:44px;white-space:nowrap}
.ta-filters [role=status]{grid-column:1/-1;margin:0;color:#425776;font-size:13px}
@media(max-width:850px){.ta-filters{grid-template-columns:1fr 1fr}.ta-filters label:nth-child(2){grid-column:1/-1}.ta-filters button{width:100%}}
/* 101: readable learning reports in the original light/navy/blue workspace. */
#learningAdmin{padding:24px;min-width:0;color:#16263e}
#learningAdmin h2{font-size:28px;margin:0 0 8px}#learningAdmin h3{font-size:21px;margin:26px 0 8px}
#learningAdmin p{font-size:14px;line-height:1.6;color:#4b607c}#learningAdmin button{min-height:44px}
.report-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0 8px}
.report-filters label{display:grid;gap:6px;font-size:13px;min-width:140px;flex:1}
.report-filters input,.report-filters select{width:100%;min-height:44px;box-sizing:border-box}
.report-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.report-heading h3{margin-top:12px!important}
.learning-funnel{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.learning-funnel li{padding:18px;background:#0e2344;color:white;border-radius:14px;display:grid;gap:10px}
.learning-funnel li>span{font-size:14px}.learning-funnel strong{font-size:32px}.learning-funnel small{font-size:12px;color:#d5e1f5;line-height:1.5}
.funnel-track{height:6px;border-radius:8px;background:#3d5270;overflow:hidden}.funnel-track span{display:block;height:100%;background:#70acff}
.learning-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}
.learning-metrics>div{display:grid;align-content:space-between;gap:12px;background:#f1f5fc;border:1px solid #dbe5f2;border-radius:12px;padding:16px}
.learning-metrics span{font-size:13px;color:#4b607c}.learning-metrics strong{font-size:26px}
.report-definition{margin:16px 0;padding:12px 0;border-top:1px solid #dbe5f2}.report-definition summary,#learningMemberDetail summary{cursor:pointer;font-size:14px;font-weight:600;min-height:32px}
.report-coverage{border-left:3px solid #6299ee;padding:8px 12px;font-size:13px!important;background:#f2f6fd}
.report-table{overflow-x:auto;max-width:100%;margin:12px 0 20px}.report-table table{width:100%;border-collapse:collapse;min-width:490px;font-size:14px}
.report-table th,.report-table td{text-align:left;vertical-align:top;border-bottom:1px solid #dbe5f2;padding:14px 12px;color:#16263e}
.report-table th{font-size:12px;color:#4b607c;background:#f1f5fc}.report-table small{display:block;color:#526780;margin-top:6px;font-size:12px}
.report-link{color:#064acb!important;background:transparent!important;border:0!important;border-radius:4px!important;padding:2px 0!important;text-align:left;font-size:14px!important;font-weight:600;overflow-wrap:anywhere}
.report-link:hover{text-decoration:underline}.report-pages{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:16px 0;font-size:13px}.report-pages button{min-height:44px}.report-pages span{text-align:center}
#learningMemberDetail h3{overflow-wrap:anywhere}#learningMemberDetail dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 16px}#learningMemberDetail dt{font-weight:600;font-size:14px}
#learningMemberDetail details{padding:12px 0;border-bottom:1px solid #dbe5f2}
@media(max-width:800px){.learning-funnel{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-heading{align-items:start;flex-direction:column}#learningAdmin{padding:18px}.report-filters label{min-width:110px}.report-filters button{flex:1}.report-pages{gap:6px}.report-pages button{padding:10px}.report-pages span{font-size:12px}}
@media(max-width:600px){
 #admin .admin-heading{padding:0 0 14px;margin-bottom:16px}
 #admin .admin-heading h1{font-size:22px;margin:8px 0 12px}
 #admin .admin-heading>p{display:none}
 #admin #adminTools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 #admin #adminTools button{padding:9px 6px;min-height:44px;font-size:11px;text-align:center}
 #learningDates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #learningDates label{min-width:0}#learningDates input{min-width:0;width:100%;padding:10px 6px}
 #learningDates button{width:100%;padding:10px 8px;font-size:12px}
 #learningAdmin .report-heading{gap:8px}#learningAdmin .report-heading .eyebrow{font-size:11px;letter-spacing:1px}
}

/*102: selected identity and unavailable summaries stay readable in the original palette. */
#market #dashSubtitle{display:block;color:#c2d3ec;max-width:none}
#market .watch-tile>.watch-empty{color:inherit;font-size:11px;line-height:1.5}
#market #chartSymbol{overflow-wrap:anywhere;line-height:1.5}

/* 105: existing Figma-derived card/type/blue system, no replacement assets. */
.ta-ai {margin-top:24px;scroll-margin-bottom:100px}
.ta-ai>label {display:grid;gap:8px;margin-top:16px;font-weight:600}
.ta-ai textarea {width:100%;box-sizing:border-box;resize:vertical;min-height:88px}
.ta-ai .ta-ai-notes {display:flex;align-items:center;gap:10px;min-height:44px}
.ta-ai-notes input {width:20px;height:20px;flex:0 0 20px}
.ta-ai-actions {display:flex;gap:12px;flex-wrap:wrap}
.ta-ai-actions button {min-height:44px}
.ta-ai .ta-source {margin-top:16px;overflow-wrap:anywhere}
.ta-ai-answer {border-top:1px solid #dce5f4;padding-top:16px;margin-top:20px;overflow-wrap:anywhere}
.ta-ai-answer>p {white-space:pre-wrap}
.ta-ai [data-ar-status]:focus {outline:2px solid #0058ff;outline-offset:4px}
@media(max-width:600px){.ta-ai-actions>button {width:100%}}

.ta-ai textarea {font:inherit;font-size:16px}

/* 107/108/109/113: Figma 2:398-derived workspace; semantic direction never DOM position. */
/* Proposed scoped integration in polish.css; IDs preserve existing JS handlers. */
#coursePageNav #allCourses {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:44px;padding:10px 18px;border:1px solid #CCDDFB;border-radius:999px;
 color:#124CCB;background:#EDF3FF;font:600 14px/1.4 Tilda, sans-serif;
 transform:none;box-shadow:none;transition:background-color 140ms ease,border-color 140ms ease;
}
#coursePageNav #allCourses span {display:inline;font:inherit;}
#coursePageNav > span {display:inline;}
#coursePageNav #allCourses svg {width:18px;height:18px;flex:none;color:inherit;}
#coursePageNav #allCourses:hover {color:#124CCB;background:#E1EBFF;border-color:#AAC5F6;transform:none;box-shadow:none;}
#coursePageNav #allCourses:active {color:#124CCB;background:#D5E3FC;transform:none;box-shadow:none;}
#coursePageNav #allCourses:focus-visible {outline:3px solid #0058FF;outline-offset:3px;}
#coursePageNav {flex-wrap:wrap;}
@media (prefers-reduced-motion:reduce) {#coursePageNav #allCourses{transition:none;}}
/* Use with the four replacement SVGs only; retain the current breakpoint sizes. */
img.course-cover-icon[src$="-icon.svg"],img.lesson-cover-icon[src$="-icon.svg"] {filter:none;}
.welcome-product-cover img[src$="-icon.svg"] {transform:none;}
/* 109: append after pass-002/integration.css in polish.css.
   This course nav wraps; it does not need the global mobile nav scroller. */
#coursePageNav { overflow: visible; }

#market .scenario-grid article[data-direction="bullish"]{background:#eff9f5;border-color:#b8ded0}
#market .scenario-grid article[data-direction="bearish"]{background:#fff3f5;border-color:#ebc4cc}
#market .scenario-grid article[data-direction="bullish"] h4{color:#087052}
#market .scenario-grid article[data-direction="bearish"] h4{color:#a52b48}
#market .scenario-grid article[data-direction="bullish"] h4:before{content:'↗'}
#market .scenario-grid article[data-direction="bearish"] h4:before{content:'↘'}
#market .scenario-grid article[data-direction] p{color:#34465d;font-size:14px}
#market .scenario-grid article[data-direction] small,#market .scenario-grid .scenario-status{color:#536176;font-size:12px;line-height:1.6;letter-spacing:0}
#market .overview-text h2[data-direction="bullish"]{color:#8be5c3}
#market .overview-text h2[data-direction="bearish"]{color:#ffb7c7}
#market .overview-text h2[data-direction="mixed"]{color:#f0d69a}
#market .direction-gauge{width:210px;height:155px;transform:none;justify-self:center;margin:0}
#market .direction-gauge svg{width:210px;height:136px}
#market .gauge-number{top:59px}
#market .gauge-number b{font-size:34px}
#market .gauge-number small{font-size:10px;letter-spacing:.4px}
#market .gauge-labels{width:210px;font-size:10px;bottom:0}
#market .market-overview{grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr)}
#market .signal{font-size:12px;font-weight:600}
#market .signal.bullish{color:#087052;background:#e6f6ee}
#market .signal.bearish{color:#a52b48;background:#fff0f3}
#welcome .welcome-product.wheel{grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,1fr) 2fr}
#welcome .welcome-product.wheel .welcome-product-cover{height:auto;min-height:220px}
#welcome .welcome-product.wheel .welcome-product-cover img{top:65px}
#welcome .welcome-product.wheel .welcome-product-monogram{display:none}
#welcome .welcome-product.wheel .welcome-product-content{padding:26px}
#welcome .welcome-product.wheel ul{display:flex;flex-wrap:wrap;gap:8px 24px;margin:14px 0}
#welcome .welcome-product.wheel button{margin-top:8px}
@media(max-width:1250px){#market .market-overview{grid-template-columns:minmax(0,1fr) 210px}}
@media(max-width:700px){#market .market-overview{grid-template-columns:1fr}#market .overview-context{grid-column:1}#market .overview-text h2{font-size:28px}#market .overview-text p{font-size:14px}#market .overview-badge{font-size:11px}#welcome .welcome-product.wheel{grid-template-columns:1fr}#welcome .welcome-product.wheel .welcome-product-cover{min-height:100px;height:100px}#welcome .welcome-product.wheel .welcome-product-cover img{width:90px;height:90px;top:5px}#welcome .welcome-product.wheel .welcome-product-cover .eyebrow{max-width:55%}}

/* 115: readable price-derived factors, Figma 2:398 system / 14px surfaces. */
#flowBoard .alignment-row{padding:16px 0;border-bottom:1px solid #d9e3f0}
#flowBoard .alignment-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#flowBoard .alignment-heading button{min-height:44px;padding:8px 12px;background:#eef3ff;color:#174589;border:1px solid #bdcee9;border-radius:10px;font:inherit;font-weight:600;cursor:pointer}
#flowBoard .is-selected .alignment-heading button{background:#0058ff;color:#fff;border-color:#0058ff}
#flowBoard .alignment-heading>b{font-size:15px;color:#172b46}
#flowBoard .alignment-factors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
#flowBoard .alignment-factors>div{border-radius:8px;padding:8px 5px;background:#f3f6fb}
#flowBoard .alignment-factors small,#flowBoard .alignment-factors b{display:block;font-size:13px;line-height:1.5}
#flowBoard .alignment-factors small{color:#52647a}
#flowBoard p{font-size:13px;color:#52647a;line-height:1.5;margin:10px 0 0}
#flowBoard .alignment-source{overflow-wrap:anywhere;padding-top:6px}
.reading-bullish{color:#087457}.reading-bearish{color:#a63149}.reading-neutral{color:#67501b}.reading-unavailable{color:#52647a}
#marketOverview .alignment-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:180px}
#marketOverview .alignment-counts span{background:#172c46;padding:10px;border-radius:10px;font-size:14px;color:#e4ecf8}
#marketOverview .alignment-counts b{font-size:24px;display:block;color:#fff}
#marketOverview h2[data-direction=bullish]{color:#7ae0c0}#marketOverview h2[data-direction=bearish]{color:#ffb3c2}
#marketOverview h2[data-direction=conflicting],#marketOverview h2[data-direction=neutral],#marketOverview h2[data-direction=partial]{color:#f4d27c}
#marketForces.market-forces{display:block}
#marketForces .factor-reading{padding:16px 0;border-bottom:1px solid #e0e7f0}
#marketForces .factor-reading:last-child{border-bottom:0}
#marketForces .factor-reading>div{display:flex;justify-content:space-between;gap:12px;font-size:16px;flex-wrap:wrap}
#marketForces .factor-reading p{color:#52647a;line-height:1.5;font-size:14px;margin:8px 0 0}
#technicalCards .atr-context{font-size:14px;line-height:1.5;color:#52647a;margin:12px 0;overflow-wrap:anywhere}
#technicalCards .atr-values{font-size:13px;color:#344964}
#technicalCards .atr-values summary{min-height:44px;padding:12px 0;cursor:pointer}
#technicalCards .atr-values ol{max-height:240px;overflow:auto;padding-left:24px}
#technicalCards .atr-values li{padding:4px 0}
#flowBoard button:focus-visible,#technicalCards summary:focus-visible{outline:3px solid #0058ff;outline-offset:3px}
@media(max-width:380px){#flowBoard .alignment-factors{grid-template-columns:1fr}#flowBoard .alignment-factors>div{display:flex;justify-content:space-between;padding:6px 10px}}
#market .technical-content .section-title>span,#market .technical-content .indicator-card>small,#market .technical-content .reading>small,#market .technical-content .range-price>span,#market .technical-content .range-labels>span,#market #ruleBrief>p{color:#52647a}
#market .technical-content .signal.mixed{background:#fff4d4;color:#67501b}
#market .technical-content .signal.insufficient{background:#edf2f8;color:#52647a}
#market .intelligence-main{align-items:start}
@media(max-width:380px){#flowBoard .alignment-factors>div{display:grid;grid-template-columns:1fr auto;gap:0 8px}#flowBoard .alignment-factors>div>small:last-child{grid-column:2;text-align:right}}
#market .flow-card #flowBoard{display:block}
/* Learning report controls use the existing Figma-derived navy/Tilda system. */
.report-pages>span{display:block;min-width:0;overflow-wrap:anywhere}
.learning-funnel .secondary{align-self:end}
@media(max-width:520px){
 .learning-funnel{grid-template-columns:minmax(0,1fr)}
 .learning-funnel li{grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .learning-funnel li>.funnel-track,.learning-funnel li>small,.learning-funnel li>button{grid-column:1/-1}
}
/* Member save feedback uses the existing Figma-derived form typography. */
.member-save-status:empty,.member-recovery:empty{display:none}
.member-save-status,.member-recovery{font-size:14px;line-height:1.6;color:#52647a;overflow-wrap:anywhere}
.member-recovery{padding:14px;border:1px solid #d9e3f0;border-radius:14px;background:#f9fbff}
.member-recovery button{margin:4px 4px 4px 0;white-space:normal;min-height:44px}
.member-recovery dt{font-weight:600}.member-recovery dd{margin:0 0 8px}
/* DESIGN-011 · 115/107: existing reading-rule disclosure only. */
#market .flow-card .score-definition {font-size:14px;color:#52647a;line-height:1.6}
#market .flow-card .score-definition summary {min-height:44px;padding:12px 0;color:#52647a}
#market .flow-card .score-definition summary:focus-visible {outline:3px solid #0058ff;outline-offset:3px}
/* 101: derived from the existing Figma/Tilda staff controls; no new artwork. */
.member-access-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.member-access-summary p{margin:0;padding:16px;background:#f1f5fc;border-radius:16px;overflow-wrap:anywhere}
.member-access-summary small{display:block;margin-top:8px;color:#52647a;font-size:14px}
#learningMemberDetail #accessHistory summary{min-height:44px;display:flex;align-items:center}
#accessHistory summary::before{content:'▸';margin-right:8px}#accessHistory[open] summary::before{content:'▾'}
.access-history-list{list-style:none;padding:0;margin:0}.access-history-list li{padding:16px 0;border-bottom:1px solid #dbe5f2;overflow-wrap:anywhere}
.access-history-list li>p:first-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.access-history-list time{font-size:14px;color:#52647a}
#learningMemberDetail .access-history-list dl{display:grid;grid-template-columns:minmax(100px,160px) 1fr;gap:8px 16px}
#learningMemberDetail .access-history-list dd{margin:0}#returnToLearningMember{margin:12px 0}
@media(max-width:600px){.member-access-summary{grid-template-columns:1fr}#learningMemberDetail .access-history-list dl{display:block}.access-history-list dt{margin-top:12px}}

.member-card .member-save-status:focus{outline:3px solid #0058ff;outline-offset:3px;border-radius:4px}
#accessHistory .secondary:hover,#accessHistory .secondary:focus-visible{color:#004cdd;background:#dde8ff}
#accessHistoryFilters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
#accessHistoryFilters label{min-width:0;margin:0}#accessHistoryFilters input,#accessHistoryFilters select{min-width:0}
#accessHistoryFilters button{justify-self:start}
@media(min-width:1100px){#accessHistoryFilters{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){#accessHistoryFilters{grid-template-columns:minmax(0,1fr)}}

#accessHistoryStatus:focus{outline:3px solid #0058ff;outline-offset:3px;border-radius:4px}

/* 101 Activity: Figma-derived existing tables become labelled records on narrow screens. */
#learningAdmin .report-link{min-height:44px;overflow-wrap:anywhere}
#learningMemberScope,#learningMemberStatus{overflow-wrap:anywhere;scroll-margin-top:24px}
#learningAdmin .report-table td{overflow-wrap:anywhere}
@media(max-width:600px){
 #learningAdmin .report-table table{min-width:0}
 #learningAdmin .report-table thead{display:none}
 #learningAdmin .report-table tr{display:block;padding:12px 0;border-bottom:1px solid #dbe5f2}
 #learningAdmin .report-table td{display:grid;grid-template-columns:minmax(80px,34%) minmax(0,1fr);gap:10px;padding:7px 0;border:0;align-items:start}
 #learningAdmin .report-table td::before{content:attr(data-label);font-size:12px;font-weight:600;color:#4b607c}
 #learningAdmin .report-table td>*{grid-column:2}
 #learningAdmin .report-table td>br{display:none}
 #learningAdmin .report-table .report-link{text-align:left;white-space:normal}
}
