/* Skoleuka 3.0 — additive UX layer. Keeps older IDs, content modules and storage intact. */
:root{--ui-forest:#1d5548;--ui-dark:#183e36;--ui-mint:#e7f3e9;--ui-cream:#fff8ee;--ui-orange:#efab75;--ui-border:#dde8e0;--ui-shadow:0 16px 44px rgba(27,71,52,.075)}
html{scroll-behavior:smooth}
body{background:#f8faf6}
button{touch-action:manipulation}
.skip-link{position:absolute;top:-80px;left:18px;z-index:1000;background:#fff;color:#183e36;padding:12px 16px;border:2px solid #1d5548;border-radius:12px}
.skip-link:focus{top:12px}
.topbar{height:auto;min-height:88px;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(160px,1fr);align-items:center;gap:24px;border-bottom:1px solid var(--ui-border);margin-bottom:16px}
.logo strong{font-size:26px;letter-spacing:-1.3px}
.logo small{font-size:9px}
.primary-nav{display:flex;align-items:center;gap:6px;padding:5px;background:#eff4ef;border:1px solid #e3ece4;border-radius:17px}
.primary-nav-link{border:0;background:transparent;min-height:43px;border-radius:12px;padding:10px 19px;color:#4c6c60;font-size:14px;font-weight:800;white-space:nowrap}
.primary-nav-link:hover{background:#fff;color:var(--ui-forest)}
.primary-nav-link[aria-current="page"]{background:#fff;color:var(--ui-dark);box-shadow:0 3px 11px rgba(25,68,44,.08)}
.header-actions{display:flex;justify-content:flex-end}
.account-nav{min-height:44px;border:1px solid #c3d7cb;border-radius:13px;color:var(--ui-forest);padding:11px 19px;background:#fff;font-size:14px;font-weight:800}
.account-nav:hover{background:var(--ui-mint)}
.account-panel{margin-top:6px;margin-bottom:30px}
.welcome-view{padding:18px 0 64px}
.welcome-view[hidden]{display:none!important}
.welcome-hero{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(260px,.78fr);align-items:center;gap:36px;position:relative;overflow:hidden;background:linear-gradient(112deg,#e6f5e9 4%,#f0f8ed 56%,#fff2e0 100%);border:1px solid #dbe9dd;border-radius:30px;padding:54px 58px;min-height:360px}
.welcome-hero:before{content:"";position:absolute;right:-76px;top:-165px;width:445px;height:445px;border:1px solid #a4cbb15e;border-radius:50%;box-shadow:0 0 0 44px #badabd29,0 0 0 94px #e9ceb028;pointer-events:none}
.welcome-copy{position:relative;z-index:1}
.welcome-eyebrow{font-size:11px;font-weight:900;letter-spacing:.16em;color:#457d61;margin:0 0 18px}
.welcome-copy h1{max-width:680px;color:#204e40;letter-spacing:-2.1px;font-size:clamp(36px,4.65vw,57px);line-height:1.11;margin:0 0 19px;font-weight:900}
.welcome-copy h1 span{color:#bf7844}
.welcome-lead{max-width:550px;font-size:17px;line-height:1.64;color:#557469;margin:0}
.welcome-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}
.welcome-points span{padding:7px 12px;border:1px solid #d0e6d4;border-radius:99px;background:#ffffffa9;color:#2d6850;font-size:12px;font-weight:750}
.welcome-illustration{position:relative;min-height:270px;z-index:1;display:grid;place-items:center}
.welcome-notebook{width:230px;height:258px;display:flex;flex-direction:column;gap:12px;padding:27px;border-radius:23px 23px 23px 9px;background:#fff;box-shadow:12px 15px 0 #f5c797,-13px 14px 0 #c9e2cd,0 23px 42px #21463430;transform:rotate(6deg)}
.welcome-notebook>span{font-size:10px;font-weight:900;letter-spacing:.18em;color:#6f987d}
.welcome-notebook>strong{font-size:30px;color:#255f4c;letter-spacing:-1px}
.welcome-notebook i{font-style:normal;font-weight:750;font-size:14px;color:#547263;padding:5px 0;border-bottom:1px solid #e8efe9}
.welcome-mini-card{position:absolute;bottom:6px;left:-5px;background:#fffef9;box-shadow:0 7px 26px #25473425;border:1px solid #f1e5d7;border-radius:13px;padding:12px 16px;color:#4b6c56;font-size:12px;font-weight:800;transform:rotate(-5deg)}
.welcome-start{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-top:24px}
.welcome-choice{min-width:0;background:#fff;border:1px solid #dfe8e0;border-radius:25px;padding:30px 32px 23px;box-shadow:var(--ui-shadow);display:flex;flex-direction:column;align-items:flex-start}
.welcome-choice-main{border-color:#c9e1cf;background:linear-gradient(140deg,#fff,#f7fdf8)}
.welcome-choice-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#e4f4e7;font-size:27px}
.welcome-choice:not(.welcome-choice-main) .welcome-choice-icon{background:#fff1e1}
.welcome-choice h2{font-size:25px;font-weight:900;letter-spacing:-.75px;color:var(--ui-dark);margin:18px 0 10px}
.welcome-choice>p:not(.welcome-helper){font-size:15px;line-height:1.65;color:#61796f;max-width:430px;margin:0 0 23px}
.welcome-button{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:auto;padding:14px 18px;border-radius:13px;border:1px solid var(--ui-forest);min-width:216px;min-height:50px;font-size:14px;font-weight:850}
.welcome-button-primary{background:var(--ui-forest);color:#fff}
.welcome-button-primary:hover{background:#143f33}
.welcome-button-secondary{background:#fff;color:var(--ui-forest);border-color:#a5ccba}
.welcome-button-secondary:hover{background:#e9f7ed}
.welcome-helper{color:#799084;font-size:11px!important;margin:13px 0 0!important}
.welcome-local{text-align:center;color:#667e72;font-size:13px;margin:21px 0 30px}
.welcome-local button{padding:4px;border:0;background:none;text-decoration:underline;text-underline-offset:3px;font-size:inherit;color:#266a51;font-weight:800}
.welcome-explain{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:1020px;margin:44px auto 0}
.welcome-explain>div{display:grid;grid-template-columns:32px 1fr;column-gap:11px;align-content:start}
.welcome-explain span{grid-row:span 2;border-radius:11px;width:31px;height:31px;display:grid;place-items:center;background:#e4f1e5;color:#28614e;font-weight:850}
.welcome-explain strong{font-size:13px;color:#315d4b}
.welcome-explain p{font-size:12px;color:#72887c;line-height:1.6;margin:4px 0}
.gate{background:#fff;max-width:820px;margin:30px auto 75px;padding:38px 42px 45px;box-shadow:var(--ui-shadow);border:1px solid var(--ui-border)}
.school-gate{max-width:860px;padding:38px 42px}
.gate-back{border:0;background:transparent;padding:9px 3px;color:#447c63;font-weight:800;font-size:13px;margin:0 0 15px}
.gate-back:hover{text-decoration:underline;text-underline-offset:3px}
.gate-step{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;background:#eff7f0;border:1px solid #deeadf;border-radius:12px;color:#507a62;margin-bottom:23px}
.gate-step span{font-size:11px;font-weight:900;letter-spacing:.1em}
.gate-step strong{font-size:12px}
.gate h1{font-size:clamp(29px,4vw,39px);letter-spacing:-1.4px;line-height:1.2}
.school-gate .gate-icon,.gate>.gate-icon{margin-left:auto;margin-right:auto}
.school-gate .lead,.gate>.lead{text-align:center;max-width:520px;margin:9px auto 20px;color:#617e70}
.school-search-label{font-size:13px;margin-top:26px}
.school-search{min-height:54px;border-radius:13px}
.school-choices{max-height:425px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.school-choice{min-height:60px;padding:13px 16px;border-radius:14px;box-shadow:none}
.school-choice:active{transform:translateY(1px)}
.school-gate .fineprint,.gate .fineprint{margin-top:18px;font-size:11px;color:#84968d;text-align:center}
#grade-gate .grades{gap:11px}
.plan-context{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:12px 18px;background:#fff;border:1px solid var(--ui-border);border-radius:18px;margin:18px 0 2px;box-shadow:0 6px 22px #21463408}
.plan-context-name{display:flex;flex-direction:column;gap:2px}
.plan-context-name strong{font-size:17px;letter-spacing:-.4px;color:var(--ui-dark)}
.plan-context-label{font-size:10px;letter-spacing:.12em;color:#688f78;font-weight:900}
.plan-context-name .date-chip{font-size:12px;font-weight:600;color:#8aa093;text-transform:capitalize}
.plan-context-actions{display:flex;align-items:center;gap:9px}
.plan-context-actions .ghost{min-height:41px;font-size:12px;padding:10px 13px}
.plan-context .week-badge{font-size:12px;padding:10px 12px}
#app-hero{margin-top:14px}
#account-panel .account-signed-in{word-break:break-word}
@media (max-width:900px){
  .topbar{grid-template-columns:minmax(160px,1fr) auto auto;gap:10px}
  .primary-nav-link{padding:10px 12px}
  .welcome-hero{padding:39px 35px;gap:15px}
  .welcome-notebook{width:205px}
  .welcome-choice{padding:26px 24px 23px}
}
@media (max-width:700px){
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .shell{padding:0 15px 40px}
  .topbar{display:flex;height:auto;min-height:72px;padding:12px 0;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ui-border)}
  .logo strong{font-size:22px}
  .brand-mark{width:39px;height:39px;min-width:39px}
  .header-actions{flex:none;margin-left:auto}
  .account-nav{min-height:42px;padding:8px 13px;font-size:13px}
  .primary-nav{position:fixed;bottom:0;left:0;right:0;z-index:100;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:8px max(12px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right));border-radius:18px 18px 0 0;border:1px solid #dce9dc;background:#fffffffa;box-shadow:0 -8px 30px #244b361c}
  .primary-nav-link{display:grid;place-items:center;min-height:47px;padding:10px 5px;font-size:12px}
  .primary-nav-link[aria-current="page"]{background:#e7f3e9;color:#1b5642;box-shadow:none}
  .welcome-view{padding:3px 0 28px}
  .welcome-hero{grid-template-columns:1fr;min-height:0;padding:31px 24px;border-radius:23px}
  .welcome-copy h1{font-size:clamp(34px,8.5vw,45px);letter-spacing:-1.4px}
  .welcome-lead{font-size:14px;line-height:1.55}
  .welcome-eyebrow{font-size:10px;margin-bottom:13px}
  .welcome-points{gap:7px;margin-top:17px}
  .welcome-points span{font-size:10px;padding:6px 9px}
  .welcome-illustration{display:none}
  .welcome-start{grid-template-columns:1fr;gap:12px;margin-top:15px}
  .welcome-choice{border-radius:19px;padding:21px 21px 18px}
  .welcome-choice-icon{width:44px;height:44px;font-size:22px;border-radius:14px}
  .welcome-choice h2{font-size:21px;margin:13px 0 8px}
  .welcome-choice>p:not(.welcome-helper){font-size:13px;margin-bottom:17px}
  .welcome-button{min-width:0;width:100%;min-height:48px}
  .welcome-local{line-height:1.55;margin:18px 0 24px}
  .welcome-explain{grid-template-columns:1fr;gap:16px;margin:28px 3px 0}
  .gate,.school-gate{margin:12px auto 38px;padding:21px 19px 29px;border-radius:21px}
  .gate-back{margin-bottom:8px}
  .gate-step{margin-bottom:17px;padding:9px 12px}
  .school-choices{grid-template-columns:1fr;max-height:45vh}
  .school-choice{min-height:55px}
  .plan-context{margin:9px 0 0;border-radius:14px;padding:12px 13px;gap:10px}
  .plan-context-name{flex:1 1 160px}
  .plan-context-name strong{font-size:14px}
  .plan-context-label{font-size:9px}
  .plan-context .date-chip{display:block!important;font-size:11px}
  .plan-context-actions{gap:6px}
  .plan-context-actions #change-school,.plan-context-actions #change-grade{display:none!important}
  .plan-context .week-badge{font-size:11px;padding:8px 9px}
  .plan-context .mobile-selection-menu:not([hidden]){display:block}
  .plan-context .mobile-selection-menu summary{min-height:40px;padding:8px 9px;font-size:11px}
  .account-panel{margin:8px 0 18px}
}
@media (max-width:380px){
  .shell{padding-left:11px;padding-right:11px}
  .logo strong{font-size:20px}
  .account-nav{padding:8px 10px}
  .welcome-hero{padding:26px 19px}
  .welcome-copy h1{font-size:32px}
  .plan-context-name{flex-basis:100%}
  .plan-context-actions{width:100%;justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.school-choice:active{transform:none}}
