.korys-day-card{margin:22px 0;padding:22px;border:1px solid color-mix(in srgb,var(--theme-text,#29445d) 18%,transparent);border-radius:24px;background:var(--theme-card,#f2f7fb);color:var(--theme-text,#243e54);text-align:left}.korys-day-card[hidden]{display:none!important}.streak-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.korys-day-card h2{font-size:24px;margin:0}.streak-count{font-weight:700;font-size:15px;margin:0;padding:8px 12px;border-radius:99px;background:color-mix(in srgb,currentColor 8%,transparent)}.korys-day-card p{font-size:14px;line-height:1.5}.streak-main-checks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.streak-task{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:10px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:13px;text-align:left;cursor:pointer}.streak-task:focus-visible,.streak-info summary:focus-visible{outline:3px solid #327fb4;outline-offset:3px}.streak-check{display:grid;place-items:center;flex:0 0 20px;height:20px;border:1.5px solid currentColor;border-radius:50%;font-weight:800;font-size:14px}.streak-task[data-complete=true] .streak-check{background:#267646;color:#fff;border-color:#267646}.streak-topic-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.streak-topic-group h3{font-size:14px;margin:8px 0}.streak-topic-group .streak-task{margin-bottom:7px}.streak-day-status{font-weight:600}.streak-medals{display:flex;justify-content:center;gap:18px;padding:12px 0}.streak-medals figure{margin:0;text-align:center;min-width:0}.streak-medals img{display:block;width:88px;height:88px;object-fit:contain}.streak-medals figure[data-earned=false] img{opacity:.45}.streak-medals figcaption{font-size:13px;font-weight:700}.streak-info{border-top:1px solid color-mix(in srgb,currentColor 16%,transparent);padding-top:12px}.streak-info summary{cursor:pointer;min-height:44px;font-size:14px;font-weight:600}.streak-info p{margin:8px 0}.streak-save-warning{font-weight:700}.streak-topic-tick{color:#267646;font-weight:800;margin-left:5px}.streak-topic-tick:empty{display:none}@media(max-width:480px){.korys-day-card{padding:16px}.streak-topic-groups{grid-template-columns:1fr}.streak-topic-group{display:grid;grid-template-columns:1fr 1fr;gap:6px}.streak-topic-group h3{grid-column:1/-1}.streak-topic-group .streak-task{margin:0}.streak-medals{gap:12px}}
.streak-sprint{font-weight:700;margin:10px 0}.streak-topic-tick{background:var(--theme-card,#fff);border-radius:50%;padding:0 4px}

.korys-day-card{padding:0;overflow:hidden}.streak-dashboard-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:10px 16px;list-style:none;cursor:pointer}.streak-dashboard-bar::-webkit-details-marker{display:none}.streak-dashboard-bar::after{content:'⌄';font-size:22px;line-height:1}.korys-day-card[open]>.streak-dashboard-bar::after{content:'⌃'}.streak-bar-words{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;flex:1}.streak-bar-words strong{font-size:16px}.streak-bar-words>span{font-size:14px}.streak-dashboard-bar>img{width:44px;height:52px;object-fit:contain}.streak-dashboard-bar>img[hidden]{display:none}.korys-day-card[open]>.streak-dashboard-bar{border-bottom:1px solid var(--theme-border,#c6d3dc);margin-bottom:16px}.korys-day-card>*:not(.streak-dashboard-bar){margin-left:16px;margin-right:16px}.korys-day-card>.streak-info{margin-bottom:12px}.streak-dashboard-bar:focus-visible{outline:3px solid #327fb4;outline-offset:-3px}
.streak-dashboard-bar::after,.korys-day-card[open]>.streak-dashboard-bar::after{display:none}.streak-bar-arrow{display:block;flex:0 0 32px;width:32px;height:32px}.streak-bar-arrow svg{display:block;width:32px;height:32px}.korys-day-card[open] .streak-bar-arrow{transform:rotate(180deg)}

/* The streak is a full-width row in the home header grid, never a logo-column item. */
html body main>.hero>details.korys-day-card{grid-column:1 / -1!important;grid-row:5!important;justify-self:stretch!important;align-self:start;width:100%!important;min-width:0;max-width:none;box-sizing:border-box;margin:8px 0 0!important;padding:0!important;border-radius:14px;}
html body main>.hero>.korys-day-card>.streak-dashboard-bar{box-sizing:border-box;display:flex;width:100%;min-width:0;min-height:48px;padding:8px 12px;gap:10px;}
.korys-day-card .streak-bar-words{min-width:0;flex:1 1 auto;display:flex;flex-direction:row;align-items:center;gap:4px 12px;}
.korys-day-card .streak-bar-words strong{font-size:17px;line-height:1.25;white-space:nowrap;}
.korys-day-card .streak-bar-words>span{font-size:15px;font-weight:500;line-height:1.25;}
.korys-day-card .streak-dashboard-bar>img{flex:0 0 28px;width:28px;height:32px;}
.korys-day-card .streak-bar-arrow,.korys-day-card .streak-bar-arrow svg{flex:0 0 28px;width:28px;height:28px;}

html body main>.hero>.korys-day-card>.streak-dashboard-bar{background:var(--theme-action,#284d70);color:#fff;border-radius:13px;}

/* Distinct streak accent; compact instructions with readable section headings. */
html body main>.hero>.korys-day-card>.streak-dashboard-bar{background:#176b6b;color:#fff;}
.korys-day-card .streak-bar-arrow{background:#e9dab0;color:#173d46;border-radius:50%;}
.korys-day-card .streak-info{text-align:left;}
.korys-day-card .streak-info h3{font-size:15px;line-height:1.35;margin:16px 0 4px;font-weight:700;}
.korys-day-card .streak-info p{margin:0 0 12px;text-align:left;}
.korys-day-card .streak-info .streak-storage-note{font-size:12px;margin-top:16px;}
.streak-medals figure[data-earned=false] img{opacity:.85;}

/* Centre the label independently of the right-hand disclosure control. */
html body main>.hero>.korys-day-card>.streak-dashboard-bar{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:8px;}
.korys-day-card .streak-bar-words{grid-column:2;grid-row:1;justify-content:center;text-align:center;gap:4px 8px;}
.korys-day-card .streak-bar-icon{display:inline-flex;width:24px;height:28px;flex:0 0 24px;}
.korys-day-card .streak-bar-icon svg{width:24px;height:28px;}
.korys-day-card .streak-dashboard-bar>img{grid-column:1;grid-row:1;}
.korys-day-card .streak-bar-arrow{grid-column:3;grid-row:1;}

/* One centred group, with a flame beside two consistently aligned lines. */
.korys-day-card .streak-bar-words{flex-wrap:nowrap;gap:10px;text-align:start;}
.korys-day-card .streak-bar-text{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;}
.korys-day-card .streak-bar-text>span{font-size:15px;line-height:1.3;}

.streak-task-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px}.streak-task-icon svg{display:block;width:18px;height:18px}

/* One completion screen after the final daily activity, with optional practice. */
.streak-complete-dialog{box-sizing:border-box;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:32px 24px;border:1px solid var(--theme-border,#819bb5);border-radius:28px;background:var(--theme-bg,#dbe7f2);color:var(--theme-text,#20374f);text-align:center;font-family:inherit;box-shadow:0 16px 60px #142c4855}
.streak-complete-dialog::backdrop{background:#152b4866}
.streak-complete-dialog h2{font:750 30px/1.2 system-ui,sans-serif;margin:18px 0 14px}
.streak-complete-dialog p{font:400 18px/1.5 system-ui,sans-serif;margin:12px 0}
.streak-complete-dialog .streak-complete-count{font-weight:700}
.streak-complete-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#2e6555;color:white;font:700 36px system-ui,sans-serif}
html body .streak-complete-dialog button{display:block;width:100%;min-height:52px;border:1px solid #f3ede2;border-radius:999px;margin:14px 0 0;padding:12px 18px;background:#284d70;color:white;font:650 18px/1.3 system-ui,sans-serif;cursor:pointer}
html body .streak-complete-dialog .streak-complete-home{background:transparent;color:var(--theme-text,#20374f);border-color:var(--theme-border,#819bb5)}
.streak-complete-dialog button:focus-visible{outline:3px solid #b2955e;outline-offset:3px}

/* Celebration: generous inner space on phones, including narrow screens. */
html body dialog.streak-complete-dialog{padding:clamp(28px,6vw,40px);width:min(480px,calc(100% - 40px));scroll-padding-block:28px}
html body .streak-complete-dialog p,html body .streak-complete-dialog h2{max-width:34ch;margin-inline:auto;overflow-wrap:anywhere}
html body .streak-complete-dialog audio{display:none}

/* Premium original sprite: three equal columns, bronze / silver / gold. */
.streak-premium-medal{display:block;width:88px;height:88px;flex-shrink:0;background-image:url('/challenge-assets/medals-20261019.webp');background-size:300% 100%;background-repeat:no-repeat;background-position:0% center}
.streak-premium-medal[data-medal=silver]{background-position:50% center}
.streak-premium-medal[data-medal=gold]{background-position:100% center}
.streak-premium-medal[hidden]{display:none!important}
.streak-medals figure[data-earned=false] .streak-premium-medal{opacity:.45;filter:saturate(.4)}
.korys-day-card .streak-dashboard-bar>.streak-premium-medal{grid-column:1;grid-row:1;width:30px;height:30px}
.streak-main-checks{grid-template-columns:repeat(3,minmax(0,1fr))}
.streak-topic-group>.streak-task{height:100%}
@media(max-width:480px){.streak-main-checks{grid-template-columns:1fr}.streak-topic-group{display:block}}

.scene-session{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#101b29;color:white}
.scene-session::backdrop{background:#101b29}
.scene-session iframe{width:100%;height:100%;border:0}
.scene-session .scene-close{position:absolute;z-index:2;right:12px;top:max(12px,env(safe-area-inset-top));background:#162537;color:white;border:1px solid #abc;border-radius:50%;width:44px;height:44px;font-size:24px}
.scene-session.reflecting section{max-width:38rem;margin:auto;padding:4rem 1.25rem 2rem}
.scene-session label,.scene-session textarea{display:block}.scene-session textarea{box-sizing:border-box;width:100%;margin:1rem 0;padding:.75rem;font:inherit}
.scene-session section>button{padding:.75rem 1.25rem;color:#172334;background:#f3bf72;border:0;border-radius:.5rem;font:inherit}

html body dialog.scene-session[open]:not(.reflecting){
 position:fixed!important;inset:0!important;margin:0!important;padding:0!important;border:0!important;
 width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;
 overflow:hidden!important;box-sizing:border-box!important;display:block!important;border-radius:0!important;
}
dialog.scene-session:not(.reflecting)>iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
dialog.scene-session.local-scene:not(.reflecting)>.scene-close{display:none!important}

dialog.scene-session.reflecting{background-color:#17222b;color:#fff;background-size:cover;background-position:center}
dialog.scene-session.reflecting section{margin:clamp(60px,13vh,130px) auto 24px;padding:24px;background:color-mix(in srgb,var(--tag-ink,#26435c) 38%,#161c22);border-radius:18px;color:#fff}
dialog.scene-session.reflecting label,dialog.scene-session.reflecting h2,dialog.scene-session.reflecting p{color:inherit}
[data-view=today] .streak-today-overview{margin-block:4px;padding-block:8px}
[data-view=today] .today-activity-list{gap:4px}

:root{--pov-shade:#16334d;--pov-fill:#bfd8ef;--pov-ink:#18374e}
[data-theme=light]{--pov-shade:#442032;--pov-fill:#e5c3ce;--pov-ink:#562338}
[data-theme=green]{--pov-shade:#173d32;--pov-fill:#c3ddce;--pov-ink:#174634}
[data-theme=dark]{--pov-shade:#202127;--pov-fill:#bdc2cb;--pov-ink:#20232a}
[data-theme=mono]{--pov-shade:#282828;--pov-fill:#ddd;--pov-ink:#222}
html body :is(#roomExit,#roomBack,#scene-back,#scene-exit,.pov-reflect-back,.scene-close,.korys-home-close,.korys-home-return){background-color:var(--pov-fill)!important;color:var(--pov-ink)!important}
html body :is(#roomBack,#scene-back,.pov-reflect-back){display:grid!important;visibility:visible!important;position:fixed!important;bottom:max(4px,env(safe-area-inset-bottom))!important;left:max(8px,env(safe-area-inset-left))!important;place-items:center;width:44px;height:44px;border-radius:50%;z-index:2147483646!important}
html body #intro .intro-controls{flex:none}

html body main #korys-360-feature{background-image:linear-gradient(90deg,var(--pov-shade),transparent 78%),var(--scene-photo)!important}
html body main:has(#korys-360-feature) .korys-primary-nav button[data-content-view=today]::before{background-image:linear-gradient(90deg,var(--pov-shade),transparent 78%),var(--tile-photo)!important}
#korys-content-panel[data-view=today]>h2{margin:0 0 4px}
#korys-content-panel[data-view=today] .streak-today-overview :is(h3,p){margin-block:4px}
#korys-content-panel[data-view=today] .today-activity-list .streak-task{min-height:44px;margin-block:0;padding-block:5px}

dialog.scene-session.reflecting section button.pov-listen{display:flex;align-items:center;justify-content:center;gap:8px;width:min(100%,250px);min-height:54px;padding:8px 14px;margin:12px auto;border-radius:100px;background:#168342;color:white;border:1px solid #73d89b;box-shadow:0 2px 8px #0004;font:700 18px/1.2 system-ui}
dialog.scene-session.reflecting section button.pov-listen[aria-pressed=true]{background:#c52f3e;border-color:#ff8e98}
dialog.scene-session.reflecting section button.pov-listen svg{width:20px;height:20px;fill:currentColor}

html body .scene-session :is(.scene-close,.pov-reflect-back){display:grid;place-items:center;padding:0!important}
html body .korys-primary-nav button[data-korys-trial=true]{font-size:clamp(22px,5.3vw,32px)!important;line-height:1.12!important;font-weight:750!important}
html body .korys-primary-nav button[data-korys-trial=true] svg{color:white!important;stroke:white!important;opacity:1!important}
html[data-theme=mono] body [data-korys-trial=true]{filter:grayscale(1)!important}
html[data-theme=mono] body main #korys-360-feature{isolation:isolate;overflow:hidden;filter:none!important;background:none!important}
html[data-theme=mono] body main #korys-360-feature::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#222a,transparent),var(--scene-photo) center 48%/cover;filter:grayscale(1)}
html[data-theme=mono] body main #korys-360-feature>span{color:#f2d58d!important}
html[data-theme]{background:var(--theme-bg)!important}

html body #korys-content-panel[data-view=moment]{background:linear-gradient(#081723a8,#081723cb),var(--moment-photo) center/cover!important;color:white!important}
html body #korys-content-panel[data-view=moment] :is(h2,h3,p){color:white!important}
html body #korys-content-panel[data-view=moment] video.moment-caption-video{display:block!important;width:min(100%,440px)!important;height:min(42dvh,420px)!important;object-fit:contain!important;margin:0 auto 12px}
html body #korys-content-panel .moment-transport{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;width:min(100%,320px);min-height:54px;border-radius:999px;background:#168342!important;color:white!important;border:1px solid #73d89b;font:700 18px system-ui}
html body #korys-content-panel .moment-transport[aria-pressed=true]{background:#c52f3e!important;border-color:#ff8e98}
html body #korys-content-panel .moment-nav{position:fixed!important;display:grid!important;place-items:center;padding:0!important;z-index:2147483646;width:44px;height:44px;border-radius:50%;color:var(--nav-ink,#19374e)!important;background:var(--nav-fill,#bfd8ef)!important;border:1.5px solid white}
.moment-back{bottom:max(8px,env(safe-area-inset-bottom));left:8px}.moment-close{top:max(8px,env(safe-area-inset-top));right:8px}
body:has(#korys-content-panel[data-view=moment]:not([hidden]))>:is(.korys-home-return,.korys-home-close){display:none!important}
#korys-content-panel#korys-content-panel[data-view=moment]:not([hidden]) {
  background:linear-gradient(#08172388,#081723b8),var(--moment-photo) center/cover!important;
}
#korys-content-panel#korys-content-panel[data-view=moment] :is(h2,h3,p) {
  color:white!important;
  -webkit-text-fill-color:white!important;
}

.web-store-notice{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:12px;border-radius:16px;background:var(--pov-shade);color:white;text-align:center}
.web-store-notice strong{width:100%}.web-store-notice img{height:32px;width:auto}
body:has(#korys-content-panel[data-view=today]:not([hidden])) #korys-content-panel[data-view=today]{position:fixed!important;inset:0!important;margin:0 auto!important;width:100%;height:100dvh;box-sizing:border-box;max-height:none!important;overflow-y:auto;z-index:1000;background:var(--theme-card,white);padding:12px 14px 64px}
body:has(#korys-content-panel[data-view=today]:not([hidden])) :is(.korys-home-close,.korys-home-return){z-index:1010!important}
html:root body:has(#korys-content-panel[data-view=today]) button.korys-home-close:not([hidden]){background:var(--pov-fill)!important;border:1.5px solid white!important;color:white!important}
html:root body:has(#korys-content-panel[data-view=today]) button.korys-home-close svg path{stroke:white!important;fill:none!important}

html[data-theme=mono] #korys-content-panel#korys-content-panel[data-view=moment]:not([hidden]) {
  background-color:#292929!important;
  background-image:linear-gradient(#1117,#111b),var(--moment-photo)!important;
  background-blend-mode:normal,luminosity!important;
}
#korys-content-panel .moment-nav.moment-close {position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;right:8px!important;bottom:auto!important;transform:none!important}
#korys-content-panel .moment-nav.moment-back {position:fixed!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:8px!important}
html:root body:has(#korys-content-panel[data-view=today]) button.korys-home-close svg path {stroke:white!important}


html body #korys-content-panel#korys-content-panel[data-view=moment]:not([hidden]) {
  position:fixed!important;inset:0!important;z-index:2147483600!important;
  width:100%!important;height:100dvh!important;box-sizing:border-box;
  max-width:none!important;max-height:none!important;margin:0!important;overflow-y:auto!important;
  padding:max(64px,env(safe-area-inset-top)) 18px max(70px,env(safe-area-inset-bottom))!important;
}
html:has(#korys-content-panel[data-view=moment]:not([hidden])) {overflow:hidden}
html:root body button:is(.korys-home-close,.korys-home-return,.moment-nav) svg path {
  stroke:white!important;
}
html body #korys-content-panel .korys-playback-times {color:white!important;-webkit-text-fill-color:white!important}

html body #korys-content-panel .daystart-transport .korys-playback-row {flex-direction:column!important}
html body #korys-content-panel .daystart-transport .daystart-play,
html body #korys-content-panel .moment-intro button {width:min(100%,340px)!important;max-width:100%!important;min-height:54px!important;font-size:18px!important;color:white!important}
html body #korys-content-panel .moment-intro button {background:#008333!important;border-radius:999px}
html body #korys-content-panel .daystart-transport .korys-playback-bar {width:100%!important}

html:root body :is(.korys-home-return,.korys-home-close,.moment-nav,.home-back,.back-link,.lesson-close,.scene-close,.pov-reflect-back,#scene-back,#scene-exit,#roomBack,#roomExit,[aria-label="Back"],[aria-label="Terug"],[aria-label="Sluiten"],[aria-label="Close"]) {color:#fff!important;-webkit-text-fill-color:#fff!important}
html:root body :is(.korys-home-return,.korys-home-close,.moment-nav,.home-back,.back-link,.lesson-close,.scene-close,.pov-reflect-back,#scene-back,#scene-exit,#roomBack,#roomExit,[aria-label="Back"],[aria-label="Terug"],[aria-label="Sluiten"],[aria-label="Close"]) svg path[stroke],html:root body :is(.korys-home-return,.korys-home-close,.moment-nav,.home-back,.back-link,.lesson-close,.scene-close,.pov-reflect-back,#scene-back,#scene-exit,#roomBack,#roomExit,[aria-label="Back"],[aria-label="Terug"],[aria-label="Sluiten"],[aria-label="Close"]) svg[stroke] path {stroke:#fff!important}

/* POV reflection stays readable against its fixed dark panel in every theme. */
html body dialog.scene-session.reflecting section > h2,
html body dialog.scene-session.reflecting section > p,
html body dialog.scene-session.reflecting section > label{color:#fff!important}
html body dialog.scene-session.reflecting textarea{background:#fff!important;color:#172334!important}

html body dialog.scene-session.reflecting section > button[hidden]{display:none!important}
