/* Readability-only repairs to legacy surfaces. Preserve each route's theme and behaviour. */
/* Dark learning screens must pair inherited light text with dark component surfaces. */
body.taiaio-dark :is(.quick-route-result,.guide-home-v09,.founder-card-v12,.about-card-v06,.pwa-ready-card,.start-path-cta-v08){background:#222c31;color:#f3f5f4;border-color:#607079}
body.taiaio-dark :is(.route-arrow,.guide-mode-grid-v09 span,.pwa-ready-points span,.preview-status-grid>div){background:#33424a;color:#f3f5f4;border-color:#607079}
body.taiaio-dark .work-icon{color:#11191e}
body.taiaio-dark .work-icon span{color:#11191e}
body.taiaio-dark :is(.ag-msg-link,.ag-foot a){color:#205d73}
body.taiaio-dark :is(.ag-msg-link,.ag-foot a):is(:hover,:visited){color:#173f50}
body.taiaio-dark .skip-link,body.taiaio-dark .skip-link:visited{background:#fff;color:#173f50}
/* Light legacy pages inherited a dark-theme muted token. */
body.public-body:not(.taiaio-dark) .lede{color:#526b76}
body.guide-page :is(.guide-intro>p,.guide-capabilities span),.ag-meta,.ag-foot{color:#526b76}
.aill-guide-shell .ag-meta,.aill-guide-shell .ag-foot{font-size:.75rem;color:#526b76}
body.taiaio-dark .aill-guide-shell .ag-foot span{color:#526b76}
/* Keep the guide's existing dark heading explicit beneath inherited resets. */
.aill-guide-shell .ag-head{background-color:#102f3d}
/**** Tailored Path's light panels ****/
body.path-page-v08 :is(.path-hero-v08 p,.path-privacy-v08 small,.path-orbit span,.path-question-head>span,.path-question-head p,.path-options-v08 small,.path-hint,.path-result-summary span,.path-rung-v08 span,.path-rung-v08 small,.path-style-note-v08 span,.path-safety-note-v08 span,.path-local-note-v08){color:#526b76}
body.path-page-v08 .public-nav .public-brand small{color:#526b76}
body.path-page-v08 :is(.path-privacy-v08 small,.path-options-v08 small,.path-hint){font-size:.75rem}
/**** Task decomposition lesson metadata and light activity cards ****/
body.lesson-page-v07 :is(.lesson-progress-count,.you-are-here small,.lesson-hero-v07 p,.lesson-stage-heading small,.lesson-stage-heading p,.concept-label,.workflow-before small,.workflow-after small,.scenario-brief small,.scenario-brief p,.tailor-strip-v07 small,.human-check-interactive-v07 button small,.human-check-status span,.takeaway-head small,.takeaway-three span,.takeaway-footer span){color:#526b76}
body.lesson-page-v07 :is(.public-brand small,.lesson-progress-count,.you-are-here small,.lesson-stage-heading small,.workflow-before small,.workflow-after small,.scenario-brief small,.tailor-strip-v07 small,.human-check-interactive-v07 button small,.takeaway-head small){font-size:.75rem;color:#526b76}
body.lesson-page-v07 .lesson-home-link.secondary{color:#d3e2e6!important}
/* Brand research page keeps its dark recommendation and footer panels. */
body.brand-lab-page :is(.lab-brand span,.lab-hero p,.lab-heading p,.direction p,.score-grid span,.name-row span,.domain-type,.domain-card p,.collision p,.buy-card p,.shortlist-list span){color:#526b76}
body.brand-lab-page :is(.lab-brand span,.score-grid span,.domain-type,.shortlist-list span){font-size:.75rem}
/* Small captions within the existing business-demo themes. */
body.home .principle-list>div>span{color:#555b5b}
body.restaurant :is(.restaurant-hero-note span,.menu-course,.menu-grid article p){color:#65533f}
body.oakline :is(.oak-services article>span,.oak-services article p,.oak-planner>div>p:not(.eyebrow)){color:#52624e}
body.forma :is(.forma-hero-copy>p:not(.eyebrow),.forma-services p,.forma-focus>div>p:not(.eyebrow),.focus-card label small){color:#525f88}
/* The food install page does not load the homepage theme. */
body .skip-link{background:#fff;color:#173f50}
body .skip-link:focus-visible{color:#173f50;outline:3px solid #237c98;outline-offset:3px}
@media(max-width:650px){
 .path-options-v08 button,.quick-options button,.human-check-interactive-v07 button{min-width:0;white-space:normal;overflow-wrap:anywhere}
 .lesson-progress-row{gap:10px}.lesson-progress-count{white-space:nowrap}
}
@media(forced-colors:active){body .skip-link,body .skip-link:visited{background:Canvas;color:LinkText}body .skip-link:focus-visible{outline-color:Highlight}}
body.taiaio-dark .pwa-ready-benefits span{background:#33424a;color:#f3f5f4;border-color:#607079}
body.taiaio-dark .rv-challenge span{color:#11191e}
body.taiaio-dark .eyebrow-line{color:#c0ccd2}
body.taiaio-dark .task-pieces i{color:#11191e}
body .install-hero p{color:#526b76}
/* Let the transcript yield space to the composer in short cloud/mobile windows. */
.aill-widget-panel .ag-messages{min-height:0}
.aill-widget-panel :is(.ag-head,.ag-boundary,.ag-suggestions,.ag-compose,.ag-foot){flex-shrink:0}
body.taiaio-dark .public-nav-links a:is(:hover,.current){background:#33424a;color:#f3f5f4}
body.taiaio-dark .public-nav-links .nav-cta:hover{background:#ffd1ac;color:#171c20}
body.taiaio-dark .mobile-menu-btn span{background:#f3f5f4}
@media(max-width:650px){
 /* A hidden legacy <br> joined “impression” to the italic final phrase. */
 body.taiaio-dark .hero h1 em{display:block;max-width:100%;overflow-wrap:anywhere}
 body.path-page-v08 .public-nav .bar,body.lesson-page-v07 .lesson-nav-v07 .bar{flex-wrap:wrap;gap:10px;padding-block:12px}
 body.path-page-v08 .lesson-exit,body.lesson-page-v07 .lesson-exit{max-width:100%;white-space:normal}
}
body.path-page-v08 .public-nav .public-brand-copy small,body.lesson-page-v07 .lesson-nav-v07 .public-brand-copy small,body.guide-page .public-brand-copy small{color:#526b76}
body.home .lesson-steps li>span{color:#555b5b}
body.taiaio-dark .work-badge:not(.secondary){color:#11191e}
.aill-widget-panel .ag-suggestions{flex-shrink:0}
body.taiaio-dark .task-pieces i:nth-child(4){color:#05090c}
body.lesson-page-v07 :is(.choice-card-v07 p,.choice-feedback-v07 span,.step-builder-v07 button>small,.takeaway-rule b){color:#526b76}
body.lesson-page-v07 .lesson-check-btn{background:#216fb8;color:#fff}
body.lesson-page-v07 .lesson-check-btn:disabled{opacity:1;background:#e4edf1;color:#526b76}
body.lesson-page-v07 .tailor-strip-v07 article:not(:first-child)>b{color:#05090c}
body.brand-lab-page .shortlist-box p[style]{color:#526b76!important}

body.lesson-page-v07 .choice-card-v07>span,body.lesson-page-v07 .choice-card-v07:is(.best,.correct,.wrong)>span,body.lesson-page-v07 .step-builder-v07 button>span{color:#05090c}
