:root{--ko-ink:#0f1d16;--ko-orange:#b96835;--ko-paper:#fffdf7;--ko-bg:#f5f2ea;--ko-line:#dfe6d9;--ko-sage:#e7eedf;color-scheme:light}
a.ko-brand{display:inline-flex;align-items:center;gap:10px;flex:none;max-width:100%;color:var(--ko-ink);text-decoration:none;white-space:nowrap;font-family:Onest,'Segoe UI',Arial,sans-serif;letter-spacing:-1.1px;line-height:1.1}
.ko-brand img.ko-brand-mark{display:block;flex:0 0 auto;width:40px;height:40px;max-width:none;object-fit:contain;transform:none;border-radius:12px}
.ko-brand .ko-brand-name{font-size:25px;font-weight:800;letter-spacing:-1.1px;color:var(--ko-ink);line-height:1.1}
.ko-brand .ko-brand-name>span{color:var(--ko-orange);font-weight:700}
.ko-brand--compact .ko-brand-name{display:none}
.ko-brand:focus-visible{outline:3px solid #d48a51;outline-offset:5px;border-radius:12px}
.room-topbar>.ko-brand{margin-right:2px}.room-topbar>.ko-brand .ko-brand-mark{width:34px;height:34px}
.ko-page{margin:0;background:var(--ko-bg);color:var(--ko-ink);font-family:Onest,'Segoe UI',Arial,sans-serif;line-height:1.7;min-height:100dvh}
.ko-page *{box-sizing:border-box}.ko-page a{color:inherit}.ko-page input,.ko-page button{font:inherit}
.ko-page-header{min-height:84px;background:var(--ko-paper);border-bottom:1px solid var(--ko-line);padding:18px max(24px,calc((100vw - 1160px)/2));display:flex;justify-content:space-between;align-items:center;gap:18px}
.ko-page-header nav{display:flex;gap:24px;font-size:14px;font-weight:600}.ko-page-header nav a{text-decoration:none;padding:8px 0}
.ko-page-header nav a:hover{color:var(--ko-orange)}
.ko-page-shell{max-width:1160px;margin:0 auto;padding:52px 24px 72px}.ko-page-footer{max-width:1160px;margin:0 auto;border-top:1px solid var(--ko-line);padding:24px;color:#536654;display:flex;gap:20px;justify-content:space-between;font-size:13px}
.ko-form-page{max-width:540px;margin:7vh auto;padding:32px;background:var(--ko-paper);border:1px solid var(--ko-line);border-radius:22px;box-shadow:0 15px 45px #24483b07}
.ko-form-page h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:30px 0 18px}.ko-form-page p{color:#506253}.ko-form-page label{display:block;font-weight:600;margin-top:24px}.ko-form-page input{display:block;width:100%;min-height:48px;border:1px solid #abbda6;border-radius:10px;margin:8px 0 18px;padding:12px;color:var(--ko-ink);font-size:16px;background:#fff}
.ko-form-page button{min-height:48px;border:0;border-radius:10px;background:#315a43;color:#fff;padding:12px 20px;font-weight:600;cursor:pointer}.ko-form-page button:disabled{opacity:.6}.ko-form-page small{color:#536654}
@media(max-width:700px){a.ko-brand{gap:8px}.ko-brand img.ko-brand-mark{width:35px;height:35px}.ko-brand .ko-brand-name{font-size:23px}.ko-page-header{min-height:74px;padding:16px 20px;flex-wrap:wrap}.ko-page-header nav{gap:18px;font-size:13px}.ko-page-shell{padding:32px 20px 44px}.ko-page-footer{padding:22px 20px;flex-wrap:wrap}.ko-form-page{margin:24px 16px;padding:25px}.ko-form-page h1{font-size:28px}}

/* admin-mobile-repair-20261020: legacy tables only */
.kc-dashboard.kc-dashboard{overflow-wrap:normal;word-break:normal;hyphens:none}
.kc-dashboard.kc-dashboard .kc-search{display:flex;align-items:center;gap:10px;min-width:0}
.kc-dashboard .kc-search>svg{flex:none}
.kc-dashboard .kc-search>input{flex:1;min-width:0}
.kc-dashboard.kc-dashboard .kc-card>table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;text-align:left;font-size:12px;margin:16px 0}
.kc-dashboard .kc-card>table th,.kc-dashboard .kc-card>table td{padding:12px 16px;border-bottom:1px solid #dfe6d9;white-space:nowrap;overflow-wrap:normal}
.kc-dashboard.kc-dashboard .kc-table table:not(:has(.kc-cell-value)){min-width:840px}
.kc-dashboard .kc-table table:not(:has(.kc-cell-value)) th,.kc-dashboard .kc-table table:not(:has(.kc-cell-value)) td{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.kc-dashboard .kc-table td .kc-notice,.kc-dashboard .kc-table td .kc-error{display:inline-flex;align-items:center;margin:0;padding:3px 8px;white-space:nowrap;line-height:1.6;font-size:12px}
.kc-dashboard .kc-card>table:not(:has(tbody tr)){display:none}
/* V7: local scrolling and consistent touch states. */
.kw-main,.kw-work,.kw-content,.kw-card,.kw-lesson-layout,.kw-editor,.kw-output,.year-mission,.year-day,.room-app,.room-topbar,.kc-work{min-width:0;max-width:100%}.kw-code-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;color:#35523f}.kw-code-tools>span{white-space:normal;overflow-wrap:anywhere;flex:1 1 190px}.kw-code-tools label{display:flex;align-items:center;gap:6px}.kw-file-tabs{display:flex;gap:8px;padding:12px;flex-wrap:wrap}.kw-file-tabs [aria-pressed=true]{background:#246348;color:white}.kw-executor-note{font-size:14px;color:#36543f;padding:10px 16px;border-bottom:1px solid #dbe4d5}.kw-trial-status{padding:12px 16px;border:1px solid #d1ddc7;background:#f1f5e9;border-radius:10px;color:#35513f}.kodo-voice-state{display:inline-block;font-size:13px;color:#3b5645;margin:0 10px 0 0}.year-volume input,.kodo-auto-label input[type=range]{accent-color:#43764f;max-width:100%}.year-voice-settings,.kodo-volume-settings{margin:12px 0}.room-view-hint{position:static!important;pointer-events:none;margin:6px 12px;font-size:13px;max-width:100%;white-space:normal}.room-topbar{flex-wrap:wrap}.room-view-controls{flex-wrap:wrap;max-width:calc(100% - 16px)}.room-bottom-nav{max-width:100%;gap:4px}.room-bottom-nav>button{min-width:0;flex:1 1 0}.kw-lesson-layout pre,.kw-output pre{white-space:pre-wrap;overflow-wrap:anywhere}.kw-code-mirror .cm-scroller{min-height:112px!important}.kw-code-mirror .cm-editor{max-width:100%}.kc-menu-group>summary{font-size:12px;color:#536854;letter-spacing:.08em;padding:16px 10px 7px;cursor:pointer}.kc-menu-group{margin:0 0 5px}.kw-adult .kw-brand .ko-brand-mark{display:none}@media(max-width:600px){.kw-editor-actions{position:sticky;bottom:0;background:#f5f2ea;padding:12px 8px max(12px,env(safe-area-inset-bottom));z-index:4;display:flex;flex-wrap:wrap}.kw-editor-actions button{min-height:44px;flex:1 1 auto}.kw-code-tools{font-size:13px}.kw-code-tools>span{flex-basis:100%}.kw-code-mirror .cm-scroller{max-height:45dvh!important}.room-bottom-nav>button{font-size:12px}.room-view-controls button{min-height:38px}.year-actions{flex-wrap:wrap}.year-actions>button{min-height:44px}.room-title{min-width:0;flex:1 1 130px}.room-title h1{overflow-wrap:anywhere}.room-title span{white-space:normal}.room-app{overflow-x:clip}.year-mission pre,.year-teaching pre{max-width:100%;overflow:auto}.kw-code-label,.kw-code-tools{overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.kw-goal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:20px 0}.kw-goal-grid button{text-align:left;min-height:56px}.kw-adventure-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;list-style:none;margin:24px 0}.kw-adventure-path li{border:1px solid #cfdbc6;border-radius:14px;padding:16px;background:#f2f5e9;display:grid;gap:8px}.kw-adventure-path li.reached{background:#e1ecd2;border-color:#6b8b56}.kw-adventure-path li span{font-size:22px;color:#416e45}.kw-parent-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.kw-parent-tabs [aria-current=page]{background:#246348;color:white}.kw-activity-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:24px 0}.kw-activity-chart>div{text-align:center;min-width:0;font-size:12px}.kw-activity-track{height:100px;background:#e7eddf;border-radius:8px;display:flex;align-items:flex-end;margin:8px 0}.kw-activity-track i{display:block;width:100%;background:#648a50;border-radius:8px;min-height:2px}.kw-project-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.kw-project-gallery article{border:1px solid #d4dfcc;border-radius:14px;padding:18px}.kw-parent-advanced{border:1px solid #d3ddcb;border-radius:14px;padding:18px;margin:20px 0}.kw-parent-advanced>summary{cursor:pointer;font-weight:700}.kw-adult .kw-welcome{grid-template-columns:1fr}.kw-first-path.is-child{background:#edf3e0}@media(max-width:500px){.kw-goal-grid{grid-template-columns:1fr}.kw-activity-chart{gap:5px}.kw-adventure-path li{padding:12px 8px;font-size:13px}}

.kodo-earned-star{position:fixed;z-index:10000;color:#cf7928;font-size:36px;pointer-events:none;text-shadow:0 3px 0 #fff}.decor-shortfall{font-size:13px;color:#6b4630}.room-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.kw-adventure-path{flex-wrap:wrap}.kw-parent-tabs button[aria-current=page]{background:#214c3d;color:white}

.kw-adult .kw-adventure-path{grid-template-columns:repeat(4,minmax(0,1fr))}.kw-adventure-path [aria-current=step]{box-shadow:inset 0 0 0 2px #426b45}.kw-adult .kw-kodo-mini{display:none}@media(max-width:600px){.kw-adult .kw-adventure-path{grid-template-columns:repeat(2,minmax(0,1fr))}.kw-goal-grid{grid-template-columns:1fr}.kw-activity-chart{gap:4px}}

/* Navigation may occupy another line when translated or enlarged. */
.ko-page-header>nav{min-width:0;max-width:100%;flex-wrap:wrap;row-gap:4px}
.ko-page-header>nav a{white-space:normal;overflow-wrap:normal}

/* Shared mobile repair lives here so one stylesheet updates every role.
   Repeated root classes override bundled styles from the preceding release. */
/* Shared header: controls keep their width in every learning/parent profile. */
.kw-app.kw-app .kw-topbar{height:auto;min-height:80px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;overflow-wrap:normal;word-break:normal}
.kw-app.kw-app .kw-breadcrumb{min-width:0;flex:1 1 180px;overflow-wrap:normal}
.kw-app.kw-app .kw-breadcrumb>svg{flex:none}
.kw-app.kw-app .kw-header-right{min-width:0;max-width:100%;flex-wrap:wrap;gap:12px}
.kw-app.kw-app .kw-header-right>.kw-small-btn{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;min-height:44px}
.kw-app.kw-app .kw-header-right select{width:auto!important;min-width:0;max-width:min(230px,100%)!important;min-height:44px!important;font-size:16px!important;overflow-wrap:normal}
@media(max-width:760px){
 .kw-app.kw-app .kw-topbar{min-height:65px;display:grid;grid-template-columns:44px 28px minmax(0,1fr);gap:10px;padding:12px max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px))}
 .kw-app.kw-app .kw-mobile-menu{width:44px;height:44px}
 .kw-app.kw-app .kw-breadcrumb{flex-wrap:wrap;gap:4px 6px}
 .kw-app.kw-app .kw-breadcrumb>strong{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}
 .kw-app.kw-app .kw-header-right{grid-column:1/-1;width:100%;margin:0;justify-content:flex-start;gap:10px}
 .kw-app.kw-app .kw-header-right select{width:100%!important;max-width:100%!important;flex:1 1 150px;padding:8px 10px!important}
 .kw-app.kw-app .kw-header-right .kw-wallet{white-space:nowrap;flex:none}
 .kw-app.kw-app .kw-main{padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}
}

/* A long section name must not squeeze the menu or the site link. */
.kc-dashboard.kc-dashboard .kc-toolbar{flex-wrap:wrap;overflow-wrap:normal}
.kc-dashboard.kc-dashboard .kc-toolbar>.kc-menu,.kc-dashboard.kc-dashboard .kc-toolbar>a{flex-shrink:0;white-space:nowrap}
.kc-dashboard.kc-dashboard .kc-toolbar>span{flex:1 1 180px;min-width:0}
@media(max-width:760px){.kc-dashboard.kc-dashboard .kc-toolbar>.kc-menu{min-width:44px;min-height:44px}.kc-dashboard.kc-dashboard .kc-toolbar>span{flex-basis:150px}.kc-dashboard.kc-dashboard .kc-toolbar>a{min-height:44px}}

/* Cookie actions must remain readable at narrow widths and large text sizes. */
.platform-cookie .cookie-actions{flex-wrap:wrap;gap:8px 16px}
.platform-cookie .cookie-actions>button{flex-shrink:0;min-height:44px;white-space:normal}
