/* Five appearances: blue, burgundy, green, dark and monochrome. */
html[data-theme=light],html[data-theme=light] body[data-content-app]{
 --theme-bg:#f3e7eb;--theme-surface:#ecd9e0;--theme-card:#e3c4d0;--theme-soft:#d9b2c2;
 --theme-text:#442632;--theme-muted:#67505a;--theme-accent:#701c32;--theme-border:#b78094;
 --theme-action:#701c32;--primary-ink:#fff;--menu-bg:#701c32;--menu-ink:#fff;
}
html[data-theme=color],html[data-theme=color] body[data-content-app]{
 color-scheme:light;--theme-bg:#dbe7f2;--theme-surface:#ccdced;--theme-card:#bed1e5;--theme-soft:#aec5dd;
 --theme-text:#20374f;--theme-muted:#435971;--theme-accent:#203e5c;--theme-border:#819bb5;
 --theme-action:#284d70;--primary-ink:#fff;--menu-bg:#284d70;--menu-ink:#fff;
}
html[data-theme=green],html[data-theme=green] body[data-content-app]{
 color-scheme:light;--theme-bg:#dce8d5;--theme-surface:#ccddbf;--theme-card:#bdd2b2;--theme-soft:#adc6a3;
 --theme-text:#263b29;--theme-muted:#455842;--theme-accent:#294a34;--theme-border:#819b77;
 --theme-action:#32593d;--primary-ink:#fff;--menu-bg:#32593d;--menu-ink:#fff;
}
html[data-theme=dark],html[data-theme=dark] body[data-content-app]{
 color-scheme:dark;--theme-bg:#243b53;--theme-surface:#2c4662;--theme-card:#36536f;--theme-soft:#43617e;
 --theme-text:#f6f4f0;--theme-muted:#cbd1d8;--theme-accent:#eee4d5;--theme-border:#5f6976;
 --theme-action:#d9dfe7;--primary-ink:#161d27;--menu-bg:#eee4d5;--menu-ink:#161d27;
}
html[data-theme=mono],html[data-theme=mono] body[data-content-app]{
 --theme-bg:#eee;--theme-surface:#e5e5e5;--theme-card:#d7d7d7;--theme-soft:#c8c8c8;
 --theme-text:#222;--theme-muted:#555;--theme-accent:#292929;--theme-border:#999;
 --theme-action:#292929;--primary-ink:#fff;--menu-bg:#292929;--menu-ink:#fff;
}
html[data-theme],html[data-theme] body[data-content-app]{
 --tile-0:var(--theme-card);--tile-1:var(--theme-card);--tile-2:var(--theme-card);--tile-3:var(--theme-card);
 --quiet-card:var(--theme-card);--quiet-hover:var(--theme-soft);--quiet-edge:var(--theme-border);--quiet-ink:var(--theme-text);
 --coach-top-left:var(--theme-bg);--coach-top-right:var(--theme-bg);
 --question-ink:var(--theme-accent);--choice-fill:var(--theme-card);--choice-ink:var(--theme-text);
 --choice-edge:var(--theme-border);--choice-selected:var(--theme-soft);--choice-selected-edge:var(--theme-accent);
 --topic-action-bg:var(--theme-action);--topic-action-fg:var(--primary-ink);--topic-action-border:var(--theme-action);
}
html[data-theme] body,html[data-theme] body main{background:var(--theme-bg)!important;color:var(--theme-text)!important}
html[data-theme]:has(main>.portrait),html[data-theme]:has(main.coach-page){background:var(--theme-bg)!important}
html[data-theme] body main>.hero{background:var(--theme-surface)!important;box-shadow:none!important}
html[data-theme] body main>.brand-context{color:var(--theme-accent)!important}
html[data-theme],html[data-theme] body[data-content-app]{--theme-whatsapp:#285747;--brand-fill:var(--theme-surface);--brand-border:var(--theme-border);--shortcut-active:var(--theme-action)}
html[data-theme] body:has(main>.portrait),html[data-theme] body main:has(>.portrait),html[data-theme] body main.coach-page{background:var(--theme-bg)!important}
html[data-theme] body :is(.learning-heading,.archive-reader,.appearance-options,.card){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] body :is(.lesson-choices button,.lesson-close,.lesson-back,.home-back,.language-nav select,.appearance-toggle){background:var(--theme-card)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] body .lesson-choices button[aria-pressed=true]{background:var(--theme-soft)!important;outline-color:var(--theme-accent)!important}
html[data-theme] body .identity .junior{color:var(--theme-accent)!important}
html[data-theme] body main>.hero>.korys-primary-nav>button:is([data-content-view=today],[data-content-view=mini]){background:var(--theme-action)!important;color:var(--primary-ink)!important;border-color:var(--theme-action)!important}
html[data-theme] body main>.hero>.korys-primary-nav>button:is([data-content-view=today],[data-content-view=mini])>svg{border-color:currentColor!important}
html[data-theme] body main>.hero .language-nav .korys-menu-toggle{
 background:var(--menu-bg)!important;color:var(--menu-ink)!important;border:2px solid var(--menu-ink)!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;box-shadow:none!important;
}
html[data-theme] body .korys-menu-toggle svg{display:block;width:26px;height:26px;flex:none}
html[data-theme] body .korys-menu-toggle:focus-visible{outline:3px solid var(--theme-accent)!important;outline-offset:3px}
html[data-theme] body .korys-menu-dialog{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] body .korys-menu-dialog>[aria-pressed=true]{background:var(--theme-action)!important;color:var(--primary-ink)!important;border-color:var(--theme-action)!important}
html[data-theme] body .appearance-options button,html[data-theme] body .lesson-dialog .lesson-close{background:var(--theme-card)!important;color:var(--theme-text)!important}
html[data-theme] body .appearance-options button[aria-pressed=true]{background:var(--theme-action)!important;color:var(--primary-ink)!important;outline-color:var(--theme-border)!important}
html:is([data-theme=color],[data-theme=dark]) body :is(.campus,.coach-portrait,main>.portrait img){mix-blend-mode:normal!important;filter:none!important;mask-image:none!important;-webkit-mask-image:none!important}
/* Physical coach order stays left/right even on RTL pages. Labels retain RTL. */
html[data-theme] body .coach-photo-caption{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;justify-items:stretch;direction:ltr;gap:12px;margin:12px 0 24px}
html[data-theme] body .coach-photo-caption>a.coach-photo-call{
 display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:56px;box-sizing:border-box;width:100%;height:100%;margin:0;
 padding:12px 10px;border:2px solid #f0e6d5;border-radius:28px;background:#101318;color:#fff;
 font-size:clamp(16px,4vw,20px);font-weight:700;line-height:1.2;text-align:center;text-decoration:none;box-shadow:none;
}
html[data-theme] body .coach-photo-call svg{width:24px;height:24px;flex:0 0 24px;color:#25d366;fill:currentColor}
html[data-theme] body .coach-photo-call:hover{background:#202832;text-decoration:none}
html[data-theme] body .coach-photo-call:focus-visible{outline:3px solid var(--theme-accent);outline-offset:4px}
/* Calling keeps its universal green/red cues, even in monochrome. */
html[data-theme] body :is(.coach-photo-call,a.call,button#call):not(.whatsapp){
 border:2px solid #f6f2ea!important;box-shadow:0 0 0 1px #ffffff20,0 3px 10px #0002!important;
 transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
html[data-theme] body :is(.coach-photo-call,a.call,button#call):not(.whatsapp) svg{color:#25d366!important;fill:currentColor!important;filter:none!important}
html[data-theme] body :is(a.call,button#call).end svg{color:#ff453a!important;fill:currentColor!important;filter:none!important}
@media(hover:hover) and (pointer:fine){
 html[data-theme] body :is(.coach-photo-call,a.call,button#call):not(.whatsapp):not(:disabled):not([aria-disabled=true]):hover{
  background:#262b31!important;border-color:#fff!important;box-shadow:0 0 0 1px #ffffff50,0 0 12px #ffffff20,0 4px 12px #0003!important;
 }
}
html[data-theme] body :is(.coach-photo-call,a.call,button#call):not(.whatsapp):not(:disabled):active{background:#30363d!important;border-color:#fff!important}
html[data-theme] body :is(.coach-photo-call,a.call,button#call):not(.whatsapp):focus-visible{outline:3px solid #fff!important;outline-offset:3px!important}
@media(prefers-reduced-motion:reduce){html[data-theme] body :is(.coach-photo-call,a.call,button#call){transition:none}}

/* Shared call layout: readable palettes, proportional portraits and aligned actions. */
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)){
 box-sizing:border-box!important;max-width:640px!important;margin:0 auto!important;padding:10px 12px 18px!important;
 border:0!important;box-shadow:none!important;background:var(--theme-bg)!important;color:var(--theme-text)!important;justify-content:flex-start!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header))>h1{
 color:var(--theme-accent)!important;font-size:clamp(54px,14vw,72px)!important;line-height:1.04!important;margin:8px 0 10px!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header))>p,
html[data-theme] body :is(main.coach-page,main:has(>.coach-header))>footer{
 color:var(--theme-muted)!important;opacity:1!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header))>:is(.soon-note,.intro){
 color:var(--theme-accent)!important;font-size:clamp(19px,5vw,23px)!important;line-height:1.3!important;margin:4px 0 16px!important;max-width:42ch;
}
html[data-theme] body main>.coach-header>.call-tagline{color:var(--theme-accent)!important}
html[data-theme] body :is(.call-header,.coach-header) .language-nav :is(select,.appearance-toggle){
 background:var(--theme-card)!important;color:var(--theme-text)!important;opacity:1!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) :is(#call,#call.end){
 background:#101318!important;background-image:none!important;color:#fff!important;opacity:1;
 min-height:52px!important;padding:12px 10px!important;font:700 clamp(15px,4vw,19px)/1.2 Arial,Helvetica,sans-serif!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #call :is(span,#label){color:#fff!important;opacity:1!important}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #call:disabled{opacity:.65!important;cursor:wait}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #call svg{color:#25d366!important;filter:none!important}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #call.end svg{color:#ff453a!important;filter:none!important}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) :is(.contact-actions,.controls){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;direction:ltr;width:100%!important;max-width:480px!important;
 gap:8px!important;margin:24px auto 0!important;align-items:stretch;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) .whatsapp{
 background:#25d366!important;color:#fff!important;min-height:52px!important;box-sizing:border-box;margin-top:0!important;align-self:stretch!important;
 padding:12px 8px!important;font-size:clamp(14px,3.8vw,18px)!important;line-height:1.2!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) .whatsapp>span:not(.coming-soon-badge){color:#fff!important}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) .coming-soon-badge{
 background:var(--theme-accent)!important;color:var(--theme-bg)!important;border-color:var(--theme-bg)!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #mute{
 background:var(--theme-card)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
 grid-column:1 / -1;margin:8px auto 0!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #status{
 color:var(--theme-muted)!important;opacity:1!important;margin:10px auto 0!important;min-height:0!important;font-size:15px!important;line-height:1.35!important;
}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #status:empty{margin:0!important;min-height:0!important;height:0!important;padding:0!important}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header))>:is(.note,footer){
 margin:14px auto 0!important;padding:0!important;font-size:13px!important;line-height:1.4!important;
}
html[data-theme] body main.coach-page>.call-portrait-stage{margin-top:18px!important}
html[data-theme] body main.coach-page .coach-avatar{width:clamp(240px,min(86vw,calc(100svh - 330px)),400px)!important;margin-bottom:0!important;box-shadow:none!important;border:0!important;background:transparent!important}
html[data-theme] body main.coach-page .coach-portrait{
 width:100%!important;aspect-ratio:1!important;border-radius:50%!important;box-sizing:border-box!important;
 border:2px solid var(--theme-border)!important;background:var(--theme-surface)!important;box-shadow:0 6px 22px #0000000a!important;mix-blend-mode:normal!important;
 object-fit:cover!important;object-position:center top!important;mask-image:none!important;-webkit-mask-image:none!important;
}
html[data-theme] body main:has(>.coach-header)>.portrait{
 height:clamp(220px,calc(100svh - 320px),530px)!important;margin:16px auto 0!important;padding:0!important;
 border:0!important;box-shadow:none!important;background:transparent!important;
}
html[data-theme] body main:has(>.coach-header)>.portrait>img{
 mix-blend-mode:normal!important;mask-image:none!important;-webkit-mask-image:none!important;
 object-fit:contain!important;object-position:center!important;
}
html[data-theme] body main.coach-page .online-dot{width:27%!important;height:27%!important}
html[data-theme] body main.coach-page>.call-portrait-stage>.back-link,
html[data-theme] body main>.portrait>.home-back{top:50%!important;transform:translateY(-50%)!important}
html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) :is(.contact-actions,.controls)>[hidden]{display:none!important}
html[data-theme] body dialog#consent{background:var(--theme-surface)!important;color:var(--theme-text)!important}
html[data-theme] body dialog#consent :is(h2,p){color:var(--theme-text)!important}
html[data-theme] body dialog#consent #cancel{background:var(--theme-card)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] body dialog#consent #agree{background:var(--theme-action)!important;color:var(--primary-ink)!important;border-color:var(--theme-accent)!important}
html[data-theme] body :is(.coach-photo-call,a.call,button#call):not(.whatsapp):focus-visible{outline-color:var(--theme-accent)!important}
@media(hover:hover) and (pointer:fine){
 html[data-theme] body :is(main.coach-page,main:has(>.coach-header)) #call:not(:disabled):hover{background:#262b31!important}
}
@media(max-height:600px){
 html[data-theme] body main.coach-page .coach-avatar{width:clamp(160px,calc(100svh - 290px),240px)!important}
 html[data-theme] body main:has(>.coach-header)>.portrait{height:clamp(120px,calc(100svh - 320px),280px)!important}
}
