/* KasH Learning 3.0 – skill-level pathways and browser navigation */
.kash-native-back{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line,#e6dbf5);background:rgba(255,255,255,.9);color:var(--ink,#2b2344);border-radius:12px;font-size:12px;font-weight:700;padding:11px 13px;cursor:pointer;flex-shrink:0}
.kash-native-back[hidden]{display:none!important}
.kash-native-back:focus-visible,.kash-level-switch button:focus-visible,.kash-depth-subject button:focus-visible,.kash-lesson-level-switch button:focus-visible,.kash-onboard-levels button:focus-visible{outline:3px solid #9c80f2;outline-offset:3px}
.kash-level-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:20px;background:linear-gradient(120deg,#f7f2ff,#eff4ff);border:1px solid #e5daf9;border-radius:23px}
.kash-level-toolbar h2{font-size:19px;margin:5px 0 7px;color:#29213f}
.kash-level-toolbar p{margin:0;color:#6c6683;font-size:12px;line-height:1.65;max-width:620px}
.kash-level-switch,.kash-depth-subject,.kash-lesson-level-switch{display:flex;align-items:center;gap:4px;border:1px solid #e6dcf7;background:#f1ebfc;border-radius:13px;padding:4px;flex-shrink:0}
.kash-level-switch button,.kash-depth-subject button,.kash-lesson-level-switch button{cursor:pointer;border:0;border-radius:10px;background:transparent;color:#665885;font-size:11px;font-weight:800;padding:10px 11px;white-space:nowrap}
.kash-level-switch button.active,.kash-depth-subject button.active,.kash-lesson-level-switch button.active{background:#6f46db;color:#fff;box-shadow:0 2px 7px rgba(82,41,150,.16)}
.kash-depth-path .kash-depth-subject{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:14px 0 8px}
.kash-depth-path .kash-depth-subject button{white-space:normal;padding:10px 3px;font-size:10px}
.kash-depth-explainer{font-size:11px!important;line-height:1.55!important;color:#71658b!important;min-height:35px;margin:0 0 12px!important}
.kash-depth-path .path-progress small{font-size:10px}
.kash-onboard-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 20px}
.kash-onboard-levels button{border:1px solid #ded3f2;border-radius:14px;padding:15px 12px;background:#faf8ff;color:#302643;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:8px}
.kash-onboard-levels button b{font-size:13px}.kash-onboard-levels button small{color:#6a627e;font-size:11px;line-height:1.5}
.kash-onboard-levels button.selected{border-color:#7448d5;background:#f0e9ff;box-shadow:0 0 0 2px #bca4f158}
.kash-depth-lesson-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.kash-depth-badge{font-size:11px;font-weight:800;border-radius:100px;background:#f0e8ff;color:#6942c1;padding:7px 11px}
.kash-lesson-level-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:15px 0;max-width:520px;width:100%}
.kash-lesson-level-switch button{white-space:normal}
.kash-lesson-learning-objective{background:linear-gradient(120deg,#f4ecff,#f5f8ff);border:1px solid #e2d8f8;border-radius:16px;padding:14px 16px;margin:14px 0}
.kash-lesson-learning-objective strong{font-size:14px;color:#39255e}.kash-lesson-learning-objective p{font-size:12px;margin:5px 0 0;color:#655c78}
.kash-depth-focus{border-left:4px solid #9770e2;padding-left:15px!important}
#kashLevelReflection{display:block;box-sizing:border-box;width:100%;min-height:110px;margin:12px 0 10px;padding:14px;border:1px solid #dcd0ec;border-radius:13px;resize:vertical;color:#2e2440;background:#fff;line-height:1.6;font:inherit;font-size:13px}
.kash-depth-honesty{color:#796b8f;font-size:11px;line-height:1.5}
.kash-learning-resume{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #dfd3f5;background:#fff;border-radius:16px;margin:14px 0;padding:13px 16px}
.kash-learning-resume span{font-size:12px;color:#615875}.kash-learning-resume button{white-space:nowrap;font-size:12px}
@media(max-width:1100px){.kash-level-toolbar{flex-wrap:wrap}.kash-level-switch{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.kash-level-switch button{white-space:normal}}
@media(max-width:670px){.kash-native-back{padding:9px;font-size:17px}.kash-native-back span{display:none}.kash-onboard-levels{grid-template-columns:1fr}.kash-onboard-levels button{padding:10px 12px;gap:3px}.kash-level-toolbar{padding:16px}.kash-learning-resume{flex-direction:column;align-items:stretch}.kash-learning-resume button{width:100%}}

/* Keep the original three-column header layout; the Back action replaces only the section label slot. */
.kash-top-scope:has(.kash-native-back:not([hidden])){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
.kash-top-scope:has(.kash-native-back:not([hidden])) .kash-native-back{grid-row:1/span 2;grid-column:1}
.kash-top-scope:has(.kash-native-back:not([hidden])) small,.kash-top-scope:has(.kash-native-back:not([hidden])) strong{grid-column:2;min-width:0;white-space:nowrap}
.kash-native-back{width:auto;padding:9px 10px;font-size:12px}
.kash-mobile-nav-slot{display:none}
.kash-mobile-nav-slot [hidden]{display:none!important}
.kash-mobile-back{background:rgba(255,255,255,.9);border:1px solid #ddd2f1;border-radius:13px;font-weight:800;font-size:21px;color:#6344ad;width:41px;height:41px;cursor:pointer}
@media(max-width:860px){.kash-mobile-nav-slot{display:flex;justify-content:center;align-items:center;min-width:40px}.kash-mobile-nav-slot .mobile-logo{display:flex}.kash-top-scope{display:none!important}}
