:root{
  --brand:#00649A;
  --bg:#EAEFF2; --surface:#FFFFFF; --sunk:#F4F7F8; --ink:#14202B; --slate:#56636F; --hair:#D2DAE0;
  --lake:30 90 168; --ok:33 128 84;
  --wedge:.06; --fill:.14; --shadow:0 1px 0 rgb(20 32 43/.06);
  --dye-M:176 62 40; --dye-E:181 121 20; --dye-C:58 78 168; --dye-F:138 51 104; --dye-G:33 116 90; --dye-0:97 102 109;
  --dye-X:14 120 140; --dye-Y:190 80 30;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0F1419; --surface:#171E25; --sunk:#131920; --ink:#E7ECEF; --slate:#98A4AE; --hair:#2B3540;
    --lake:120 165 235; --ok:90 190 140; --wedge:.1; --fill:.22;
    --dye-M:228 108 78; --dye-E:226 165 60; --dye-C:126 147 234; --dye-F:203 110 168; --dye-G:80 188 150; --dye-0:150 156 163;
    --dye-X:70 190 205; --dye-Y:235 135 80;
  }
}
:root[data-theme="dark"]{
  --bg:#0F1419; --surface:#171E25; --sunk:#131920; --ink:#E7ECEF; --slate:#98A4AE; --hair:#2B3540;
  --lake:120 165 235; --ok:90 190 140; --wedge:.1; --fill:.22;
  --dye-M:228 108 78; --dye-E:226 165 60; --dye-C:126 147 234; --dye-F:203 110 168; --dye-G:80 188 150; --dye-0:150 156 163;
  --dye-X:70 190 205; --dye-Y:235 135 80;
}
:root{box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:inherit}
body{margin:0; background:var(--bg); color:var(--ink); font-family:"Open Sans",system-ui,sans-serif; font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit; color:inherit}
.disp{font-family:"Open Sans",system-ui,sans-serif}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace}
:focus-visible{outline:2px solid rgb(var(--lake)); outline-offset:2px}

/* top bar */
.bar{position:sticky; top:env(safe-area-inset-top,0px); z-index:20; background:color-mix(in srgb,var(--bg) 88%,transparent); backdrop-filter:blur(10px); border-bottom:1px solid var(--hair)}
.bar-in{max-width:1280px; margin:0 auto; padding:12px 24px; display:flex; align-items:center; gap:22px; flex-wrap:wrap}
.logo{font-family:"Open Sans",sans-serif; font-weight:800; font-size:27px; letter-spacing:-.03em; line-height:1; display:flex; align-items:center; gap:9px}
.logo svg{width:34px; height:34px; flex:none}
nav{display:flex; gap:4px; background:var(--sunk); border:1px solid var(--hair); border-radius:999px; padding:3px}
nav button{border:0; background:none; padding:7px 15px; border-radius:999px; cursor:pointer; font-size:14.5px; color:var(--slate)}
nav button[aria-pressed="true"]{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgb(0 0 0/.12); font-weight:700}
.who{margin-left:auto; display:flex; align-items:center; gap:10px; font-size:14px; color:var(--slate)}
.av{width:32px; height:32px; border-radius:50%; background:rgb(var(--dye-G)); color:#fff; display:grid; place-items:center; font-weight:700; font-family:"Open Sans",sans-serif}

main{max-width:1280px; margin:0 auto; padding:34px 24px 80px}
h1{font-family:"Open Sans",sans-serif; font-weight:700; font-size:clamp(30px,4.6vw,50px); line-height:1.02; letter-spacing:-.025em; margin:0 0 10px}
h2{font-family:"Open Sans",sans-serif; font-weight:700; font-size:22px; letter-spacing:-.01em; margin:0 0 4px}
.lede{color:var(--slate); max-width:62ch; margin:0}
.sec{margin-top:40px}
.sechead{display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:14px}
.sechead p{margin:0; color:var(--slate); font-size:14.5px; max-width:60ch}

/* area tiles */
.tiles{display:grid; gap:12px}
.tiles.themes{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.tiles.fields{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.tile{position:relative; text-align:left; border:1px solid rgb(var(--a)/.45); border-radius:14px; cursor:pointer; padding:16px 16px 14px;
  background:rgb(var(--a)/var(--i)); color:var(--ink); display:flex; flex-direction:column; min-height:176px; overflow:hidden}
.tiles.themes .tile{min-height:208px}
.tile.hot{color:#fff; border-color:transparent}
.tile.none{background:var(--surface); border-style:dashed; border-color:var(--hair)}
.tile:hover{border-color:rgb(var(--a)); box-shadow:0 0 0 1px rgb(var(--a))}
.tile .code{font-family:"IBM Plex Mono",monospace; font-size:12px; opacity:.75}
.tile .nm{font-family:"Open Sans",sans-serif; font-weight:700; font-size:19px; line-height:1.12; letter-spacing:-.01em; margin:4px 0 1px; max-width:15ch}
.tiles.themes .nm{font-size:26px}
.tile .fi{font-size:13px; opacity:.78}
.tile .num{margin-top:auto; display:flex; align-items:flex-end; justify-content:space-between; gap:8px; padding-top:14px}
.tile .num b{font-family:"Open Sans",sans-serif; font-weight:800; font-size:44px; line-height:.85; letter-spacing:-.04em; font-variant-numeric:tabular-nums}
.tiles.themes .num b{font-size:62px}
.tile .num span{font-size:12.5px; opacity:.85; text-align:right; line-height:1.3}
.tile .jobs{font-size:13px; opacity:.85; margin-top:8px; line-height:1.35}
.tile.none .num b{color:var(--slate); opacity:.5}
.scale{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--slate)}
.scale i{display:block; width:120px; height:10px; border-radius:3px; background:linear-gradient(90deg,rgb(var(--dye-C)/.08),rgb(var(--dye-C)/.92))}
.soon{border:1px dashed var(--hair); border-radius:14px; padding:16px; color:var(--slate); font-size:14px; display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:208px}
.soon strong{color:var(--ink); font-family:"Open Sans",sans-serif; font-size:18px}

/* area view */
.back{border:0; background:none; cursor:pointer; color:rgb(var(--lake)); padding:0; font-weight:700; margin-bottom:16px}
.areahead{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:end; padding-bottom:22px; border-bottom:1px solid var(--hair); margin-bottom:22px}
@media (max-width:700px){.areahead{grid-template-columns:1fr}}
.bigcred{text-align:right}
.bigcred b{display:block; font-family:"Open Sans",sans-serif; font-weight:800; font-size:72px; line-height:.8; letter-spacing:-.05em; color:rgb(var(--a))}
.bigcred span{font-size:13px; color:var(--slate)}
@media (max-width:700px){.bigcred{text-align:left}}
.chips{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px}
.chip{font-size:13px; padding:3px 10px; border-radius:999px; background:rgb(var(--a)/.12); color:var(--ink); border:1px solid rgb(var(--a)/.3)}
.progtabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.progtabs button{border:1px solid var(--hair); background:var(--surface); border-radius:10px; padding:8px 14px; cursor:pointer; text-align:left; line-height:1.25}
.progtabs button small{display:block; color:var(--slate); font-size:12px}
.progtabs button[aria-pressed="true"]{border-color:rgb(var(--lake)); box-shadow:inset 0 0 0 1px rgb(var(--lake))}

.layout{display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:24px; align-items:start}
@media (max-width:980px){.layout{grid-template-columns:1fr}}
.stage{background:var(--surface); border:1px solid var(--hair); border-radius:16px; padding:10px}
.keys{display:flex; flex-wrap:wrap; gap:6px; padding:6px 6px 0}
.key{display:inline-flex; align-items:center; gap:7px; padding:4px 11px 4px 9px; border:1px solid var(--hair); background:var(--sunk); border-radius:999px; cursor:pointer; font-size:12.5px}
.key .dot{width:9px; height:9px; border-radius:50%; background:rgb(var(--d))}
.legend{display:flex; gap:16px; flex-wrap:wrap; padding:4px 10px 8px; font-size:13px; color:var(--slate)}
.legend span{display:inline-flex; align-items:center; gap:6px}
.legend i{width:13px; height:13px; border-radius:50%; display:inline-block; border:1.5px solid rgb(var(--dye-C))}
.legend i.d{background:rgb(var(--dye-C))}.legend i.n{background:rgb(var(--dye-C)/.15)}.legend i.l{border-style:dashed; opacity:.6}
svg.map{display:block; width:100%; height:auto; touch-action:manipulation}
.ring{fill:none; stroke:var(--hair); stroke-width:1; stroke-dasharray:2 6}
.tick{stroke:var(--hair); stroke-width:1}
.rim{fill:none; stroke:var(--hair)}
.link{stroke:var(--slate); stroke-width:1; opacity:.3; fill:none}
.link.lit{opacity:.8; stroke:rgb(var(--d)); stroke-width:2}
.hub{fill:var(--surface); stroke:var(--hair)}
.hublabel{font-family:"IBM Plex Mono",monospace; font-size:10px; letter-spacing:.14em; fill:var(--slate)}
.rlabel{font-family:"IBM Plex Mono",monospace; font-size:10px; fill:var(--slate)}
.node{cursor:pointer; outline:none}
.node circle.c{stroke:rgb(var(--d)); stroke-width:1.4}
.node text{font-family:"IBM Plex Mono",monospace; font-weight:500; text-anchor:middle; dominant-baseline:central; pointer-events:none}
.node.done circle.c{fill:rgb(var(--d))}
.node.done text{fill:#fff}
.node.next circle.c{fill:rgb(var(--d)/var(--fill)); stroke-width:2.2}
.node.next circle.halo{fill:none; stroke:rgb(var(--d)); stroke-width:1; opacity:.5}
.node.later circle.c{fill:var(--surface); stroke-dasharray:3 3; stroke-opacity:.55}
.node.later text{fill:var(--slate)}
.node.next text{fill:var(--ink)}
.node.new circle.c{stroke-width:2.4}
.node:hover circle.c,.node:focus-visible circle.c{stroke-width:3}
.node.sel circle.c{stroke:var(--ink); stroke-width:3}
.node.mute{opacity:.16}
.node .star{fill:rgb(var(--dye-Y))}
@media (prefers-reduced-motion:no-preference){
  .node{transition:opacity .2s}
  .node.next circle.halo{animation:halo 2.4s ease-out infinite; transform-box:fill-box; transform-origin:center}
  @keyframes halo{0%{transform:scale(1);opacity:.55}80%,100%{transform:scale(1.45);opacity:0}}
}

.readout{background:var(--surface); border:1px solid var(--hair); border-radius:16px; padding:24px; position:sticky; top:84px}
@media (max-width:980px){.readout{position:static}}
.empty{color:var(--slate)}
.empty strong{display:block; color:var(--ink); font-family:"Open Sans",sans-serif; font-size:20px; margin-bottom:6px}
.rtop{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.lcode{font-family:"IBM Plex Mono",monospace; font-size:13px; font-weight:500; padding:2px 8px; border-radius:6px; background:rgb(var(--d)/var(--fill)); color:rgb(var(--d))}
.pill{font-size:12.5px; padding:2px 9px; border-radius:999px; border:1px solid var(--hair); color:var(--slate)}
.pill.done{background:rgb(var(--ok)/.14); color:rgb(var(--ok)); border-color:rgb(var(--ok)/.35)}
.pill.next{background:rgb(var(--lake)/.1); color:rgb(var(--lake)); border-color:rgb(var(--lake)/.35)}
.rname{font-family:"Open Sans",sans-serif; font-weight:700; font-size:28px; line-height:1.08; letter-spacing:-.02em; margin:10px 0 2px}
.prov{font-size:13.5px; color:var(--slate); margin:0 0 14px}
.brief{margin:0 0 16px; padding-left:13px; border-left:3px solid rgb(var(--d))}
.cred{display:flex; align-items:center; gap:10px; margin-bottom:6px; font-size:14px}
.cred b{font-family:"Open Sans",sans-serif; font-size:24px}
h3{font-size:13.5px; font-weight:700; margin:0 0 9px; padding-top:16px; border-top:1px solid var(--hair); color:var(--slate)}
.dims{display:grid; gap:6px}
.dim{display:grid; grid-template-columns:92px 1fr 30px; align-items:center; gap:10px; font-size:13.5px}
.dim .t{height:7px; background:rgb(var(--d)/.15); border-radius:4px; overflow:hidden}
.dim .t span{display:block; height:100%; background:rgb(var(--d)); border-radius:4px}
.dim .v{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--slate); text-align:right}
ul.lst{margin:0; padding:0; list-style:none}
ul.lst li{position:relative; padding-left:18px; margin-bottom:6px; font-size:14.5px}
ul.lst li::before{content:""; position:absolute; left:2px; top:10px; width:8px; height:2px; background:rgb(var(--d))}
.meta{display:grid; gap:7px; font-size:14px; margin:0}
.meta div{display:grid; grid-template-columns:104px 1fr; gap:10px}
.meta dt{color:var(--slate); font-size:13px}
.meta dd{margin:0}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:10px; padding:10px 16px; cursor:pointer; font-weight:700; background:rgb(var(--lake)); color:#fff}
.btn.ghost{background:transparent; color:rgb(var(--lake)); border:1px solid rgb(var(--lake)/.45)}
.btn.small{padding:6px 11px; font-size:13.5px; border-radius:8px}
.btn.warn{background:transparent; color:#B3261E; border:1px solid #B3261E66}
.actions{display:flex; gap:8px; flex-wrap:wrap; margin-top:18px}
.nolessons{background:var(--surface); border:1px dashed var(--hair); border-radius:16px; padding:34px; max-width:640px}
.nolessons strong{font-family:"Open Sans",sans-serif; font-size:22px; display:block; margin-bottom:6px}

/* parent */
.pgrid{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px}
.card{background:var(--surface); border:1px solid var(--hair); border-radius:16px; padding:20px}
.span4{grid-column:span 4}.span5{grid-column:span 5}.span7{grid-column:span 7}.span8{grid-column:span 8}.span12{grid-column:span 12}
@media (max-width:900px){.span4,.span5,.span7,.span8{grid-column:span 12}}
.stat b{font-family:"Open Sans",sans-serif; font-weight:800; font-size:52px; line-height:.9; letter-spacing:-.04em; display:block; color:rgb(var(--a))}
.stat span{color:var(--slate); font-size:14px}
.fbars{display:grid; gap:8px}
.fbar{display:grid; grid-template-columns:minmax(0,190px) 1fr 36px; gap:12px; align-items:center; font-size:14px}
.fbar .t{height:12px; background:var(--sunk); border-radius:6px; overflow:hidden; border:1px solid var(--hair)}
.fbar .t span{display:block; height:100%; background:rgb(var(--a))}
.fbar .v{font-family:"IBM Plex Mono",monospace; font-size:13px; text-align:right}
.fbar.z{color:var(--slate)}
.ev{display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:11px 0; border-top:1px solid var(--hair); font-size:14.5px}
.ev:first-of-type{border-top:0}
.ev .lcode{align-self:start}
.ev small{color:var(--slate); display:block}
.note{font-size:13.5px; color:var(--slate); margin:12px 0 0}
.radar text{font-size:12px; fill:var(--slate); font-family:"Open Sans",sans-serif}

/* partner / admin */
.flow{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; background:var(--surface); border:1px solid var(--hair); border-radius:16px; overflow:hidden}
@media (max-width:800px){.flow{grid-template-columns:1fr}}
.step{padding:18px 20px; border-left:1px solid var(--hair)}
.step:first-child{border-left:0}
@media (max-width:800px){.step{border-left:0; border-top:1px solid var(--hair)}.step:first-child{border-top:0}}
.step .n{font-family:"Open Sans",sans-serif; font-weight:800; font-size:30px; color:rgb(var(--lake)); line-height:1}
.step strong{display:block; margin:6px 0 3px; font-size:16px}
.step p{margin:0; font-size:14px; color:var(--slate)}
.two{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; align-items:start}
@media (max-width:980px){.two{grid-template-columns:1fr}}
form.f{display:grid; gap:12px}
.row{display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px}
label.fl{display:grid; gap:4px; font-size:13.5px; color:var(--slate)}
label.fl input,label.fl select,label.fl textarea{background:var(--sunk); border:1px solid var(--hair); border-radius:8px; padding:8px 10px; color:var(--ink); width:100%}
textarea{resize:vertical}
fieldset{border:1px solid var(--hair); border-radius:10px; padding:10px 12px 12px; margin:0}
legend{font-size:13.5px; color:var(--slate); padding:0 4px}
.checks{display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13.5px}
.checks label{display:inline-flex; align-items:center; gap:5px; cursor:pointer}
.seg{display:inline-flex; border:1px solid var(--hair); border-radius:9px; overflow:hidden}
.seg button{border:0; background:var(--sunk); padding:7px 13px; cursor:pointer; font-size:13.5px}
.seg button[aria-pressed="true"]{background:rgb(var(--lake)); color:#fff}
.err{color:#B3261E; font-size:14px; margin:0}
:root[data-theme="dark"] .err{color:#FF8A80}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .err{color:#FF8A80}}
.q{display:grid; grid-template-columns:auto 1fr auto; gap:6px 12px; align-items:start; padding:12px 0; border-top:1px solid var(--hair)}
.q:first-child{border-top:0}
.q small{color:var(--slate); display:block; font-size:13px}
.q .acts{display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end}
.src{font-size:11.5px; padding:1px 7px; border-radius:5px; background:var(--sunk); border:1px solid var(--hair); color:var(--slate); font-family:"IBM Plex Mono",monospace}
.ep{border-top:1px solid var(--hair); padding:11px 0}
.ep:first-of-type{border-top:0}
.ep code{font-family:"IBM Plex Mono",monospace; font-size:13px}
.ep .m{display:inline-block; min-width:52px; font-weight:500; font-size:12px; font-family:"IBM Plex Mono",monospace; color:rgb(var(--lake))}
.ep p{margin:3px 0 0 56px; font-size:13.5px; color:var(--slate)}
pre.code,textarea.code{font-family:"IBM Plex Mono",monospace; font-size:12.5px; line-height:1.5; background:var(--sunk); border:1px solid var(--hair); border-radius:10px; padding:12px; overflow:auto; margin:0; white-space:pre; color:var(--ink); width:100%}
textarea.code{min-height:290px}
.log{margin-top:10px}
.muted{color:var(--slate); font-size:14px}
.toast{position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom,0px)); transform:translate(-50%,20px); background:var(--ink); color:var(--bg); padding:11px 18px; border-radius:10px; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; z-index:50; max-width:90vw; font-size:14.5px}
.toast.on{opacity:1; transform:translate(-50%,0)}
.foot{margin-top:56px; padding-top:18px; border-top:1px solid var(--hair); font-size:13px; color:var(--slate); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
.linkbtn{border:0; background:none; color:rgb(var(--lake)); cursor:pointer; padding:0; text-decoration:underline; font-size:13px}
@media (max-width:560px){main{padding:24px 14px 60px}.bar-in{padding:10px 14px; gap:12px}.who span{display:none}.stage{padding:4px}}

/* ===== added tokens ===== */
:root{--leg:86 99 111; --ec-I:214 118 48; --ec-R:104 158 78; --ec-A:74 128 158; --hub:42 57 144; --petal:.13; --wait:170 110 10}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--leg:152 164 174; --ec-I:236 150 88; --ec-R:140 196 110; --ec-A:118 172 206; --hub:120 140 235; --petal:.16; --wait:226 165 60}
}
:root[data-theme="dark"]{--leg:152 164 174; --ec-I:236 150 88; --ec-R:140 196 110; --ec-A:118 172 206; --hub:120 140 235; --petal:.16; --wait:226 165 60}

nav{overflow-x:auto; max-width:100%; scrollbar-width:none}
nav::-webkit-scrollbar{display:none}
nav button{white-space:nowrap}
.who select{border:1px solid var(--hair); background:var(--sunk); border-radius:999px; padding:5px 12px; font-size:14px; color:var(--ink); cursor:pointer}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* theme map cards on the home page */
.orbs{display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:14px}
.orb{background:var(--surface); border:1px solid var(--hair); border-radius:16px; padding:18px 18px 14px; display:flex; flex-direction:column; min-width:0}
.orbhead{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; width:100%; text-align:left; border:0; background:none; padding:0; cursor:pointer; color:var(--ink)}
.orbhead .nm{display:block; font-family:"Open Sans",sans-serif; font-weight:700; font-size:26px; line-height:1.05; letter-spacing:-.015em}
.orbhead:hover .nm{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; text-decoration-color:rgb(var(--a))}
.orbhead .fi{display:block; font-size:12.5px; color:var(--slate); margin-top:3px; max-width:28ch; line-height:1.35}
.orbcr{text-align:right; flex:none}
.orbcr b{display:block; font-family:"Open Sans",sans-serif; font-weight:800; font-size:48px; line-height:.85; letter-spacing:-.04em; color:rgb(var(--a))}
.orbcr small{font-size:12.5px; color:var(--slate)}
svg.orbsvg{max-width:420px; margin:10px auto 4px}
.orbfoot{margin:4px 0 0; font-size:13px; color:var(--slate); line-height:1.45}

/* course nodes on theme maps */
.node.none circle.c{fill:rgb(var(--d)/var(--fill)); stroke:rgb(var(--d)/.6); stroke-width:1.6}
.node.later circle.c{fill:var(--surface); stroke:rgb(var(--d)/.6); stroke-dasharray:4 3; stroke-width:1.6; stroke-opacity:1}
.node.done circle.c,.node.eval circle.c{fill:rgb(var(--d)); stroke:rgb(var(--d))}
.node .tk{fill:none; stroke:#fff; stroke-width:3.6; stroke-linecap:round; stroke-linejoin:round; pointer-events:none}
.node .pip{pointer-events:none}
.node .pip.e{fill:#fff}
.node .pip.p{fill:none; stroke:#fff; stroke-width:1.6}
.node .pip.o{fill:rgb(255 255 255/.35)}
.node.none .pip.o,.node.later .pip.o{fill:rgb(var(--d)/.5)}
.node:hover circle.c,.node:focus-visible circle.c{stroke-width:3.2}
.node.sel circle.c{stroke:var(--ink); stroke-width:3.8}
.node.mute,.nl.mute{opacity:.14}
.mini-map .node{cursor:pointer}
.link.walked{opacity:.7; stroke:rgb(var(--d)); stroke-width:1.8}
.nl{font-family:"Open Sans",system-ui,sans-serif; font-weight:700; fill:var(--ink); paint-order:stroke; stroke:var(--surface); stroke-width:5px; stroke-linejoin:round; pointer-events:none}
.nl.later{fill:var(--slate); font-weight:400}
.nl.sel{text-decoration:underline}
.hubempty{font-size:15px; fill:var(--slate); text-anchor:middle}
.states{display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--slate)}
.states span{display:inline-flex; align-items:center; gap:7px}
.states svg{flex:none; overflow:visible; pointer-events:none}
.stage .states{padding:8px 10px 6px}

/* skills flower strip on home */
.ecstrip{display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:22px; align-items:center; background:var(--surface); border:1px solid var(--hair); border-radius:16px; padding:14px 22px 14px 14px}
@media (max-width:700px){.ecstrip{grid-template-columns:84px 1fr}.ecstrip .btn{grid-column:1/-1}}
.ecstrip svg{width:100%; height:auto; display:block}
.ecstrip h2{margin:0 0 4px}
.ecstrip p{margin:0; color:var(--slate); font-size:14.5px; max-width:66ch}

/* course readout */
.pill.wait{background:rgb(var(--wait)/.13); color:rgb(var(--wait)); border-color:rgb(var(--wait)/.4)}
.part{display:grid; grid-template-columns:14px 1fr; gap:10px; padding:9px 0; border-top:1px solid var(--hair); font-size:14.5px}
.part:first-of-type{border-top:0; padding-top:2px}
.part small{display:block; color:var(--slate); font-size:13px; line-height:1.4}
.pdot{width:12px; height:12px; border-radius:50%; margin-top:6px; border:2px solid rgb(var(--d)); background:rgb(var(--d))}
.pdot.p{background:transparent}
.flag{color:rgb(var(--ec-I)); font-weight:700}
.ecchips{display:flex; flex-wrap:wrap; gap:6px}
.ecchip{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--hair); background:var(--sunk); border-radius:999px; padding:3px 11px 3px 4px; font-size:13px; cursor:pointer; color:var(--ink)}
.ecchip span{font-family:"IBM Plex Mono",monospace; font-size:11.5px; background:rgb(var(--e)); color:#fff; border-radius:999px; padding:0 7px}
.ecchip:hover{border-color:rgb(var(--e))}
.callout{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; background:rgb(var(--hub)/.06); border:1px solid rgb(var(--hub)/.28); border-radius:14px; padding:14px 18px; margin-bottom:18px}
.callout strong{display:block}
.callout p{margin:2px 0 0; color:var(--slate); font-size:14px; max-width:70ch}
.adot{display:inline-block; width:9px; height:9px; border-radius:50%; background:rgb(var(--a)); margin-right:6px; flex:none; vertical-align:0}
.golist{margin:0; padding:0; list-style:none}
.golist li{padding:3px 0; display:flex; align-items:center}
.golist .linkbtn{font-size:14.5px; text-align:left}
.proj{padding:9px 0; border-top:1px solid var(--hair); font-size:14px}
.proj:first-of-type{border-top:0}
.proj small{display:block; color:var(--slate); font-size:12.5px}

/* skills flower */
.flhead{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:end; padding-bottom:22px; border-bottom:1px solid var(--hair); margin-bottom:18px}
@media (max-width:760px){.flhead{grid-template-columns:1fr}}
.vc{display:flex; gap:22px; flex-wrap:wrap}
.vc div{min-width:92px}
.vc b{display:block; font-family:"Open Sans",sans-serif; font-weight:800; font-size:38px; line-height:1; letter-spacing:-.03em}
.vc span{font-size:12.5px; color:var(--slate); line-height:1.3; display:block; margin-top:4px}
.flt{display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:10px}
.fltl{font-size:13.5px; color:var(--slate); margin-right:4px}
.flt button{display:inline-flex; align-items:center; gap:7px; border:1px solid var(--hair); background:var(--surface); border-radius:999px; padding:5px 12px; cursor:pointer; font-size:14px}
.flt button i{width:10px; height:10px; border-radius:50%; background:rgb(var(--a))}
.flt button span{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--slate)}
.flt button[aria-pressed="true"]{border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); font-weight:700}
.eckeys{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; align-items:center}
.eckeys .note{font-size:13px; color:var(--slate); margin:0 0 0 auto}
@media (max-width:980px){.eckeys .note{margin-left:0}}
svg.flower{display:block; width:100%; height:auto; touch-action:manipulation}
.petal{cursor:pointer; outline:none}
.petal .shape{fill:rgb(var(--d)/var(--petal)); stroke:var(--ink); stroke-width:1.6}
.petal .band{fill:rgb(var(--d)/var(--o))}
.petal .sep{fill:none; stroke:var(--surface); stroke-width:1.4; opacity:.9}
.petal .lab{font-family:"Open Sans",sans-serif; font-weight:700; font-size:13px; fill:var(--ink); paint-order:stroke; stroke:var(--surface); stroke-width:3.5px; stroke-linejoin:round; pointer-events:none}
.petal .lift{transition:transform .25s cubic-bezier(.2,.8,.25,1)}
.petal:hover .shape,.petal:focus-visible .shape{stroke-width:2.6}
.petal.on .shape{stroke-width:3}
.petal.on .lift{transform:translateX(10px)}
.petal.mute{opacity:.25}
@media (prefers-reduced-motion:reduce){.petal .lift{transition:none}}
.mini-fl .petal{cursor:default}
.mini-fl .petal .shape{stroke-width:3.2}
.eccode{font-family:"IBM Plex Mono",monospace; font-size:12px; font-weight:500; fill:var(--slate); text-anchor:middle; dominant-baseline:central; pointer-events:none}
.eccode.on{fill:var(--ink)}
.disc{stroke:var(--ink); stroke-width:1.6}
.hubring{fill:#fff; stroke:var(--ink); stroke-width:1.6}
.hubtxt{fill:#fff; text-anchor:middle; font-family:"Open Sans",sans-serif}
.guide{fill:none; stroke:var(--slate); stroke-width:1; stroke-dasharray:2 5; opacity:.55}
.fl-legend i{display:inline-block; width:22px; height:12px; border-radius:2px; border:1px solid var(--ink)}
.fl-legend i.f{background:rgb(var(--ec-R)/.8)}
.fl-legend i.h{background:repeating-linear-gradient(135deg,rgb(var(--ec-R)) 0 2px,transparent 2px 5px)}
.fl-legend i.e{background:rgb(var(--ec-R)/.13)}
.eccodechip{font-family:"IBM Plex Mono",monospace; font-size:13px; font-weight:500; padding:3px 8px; border-radius:6px; background:rgb(var(--d)/.16); color:var(--ink); border-left:3px solid rgb(var(--d))}
.ecarea{font-size:13px; color:var(--slate)}
.kid{margin:0 0 16px; font-size:15.5px}
.steps{display:grid; grid-template-columns:repeat(8,1fr); gap:3px; margin:0 0 6px}
.steps span{height:14px; border:1px solid rgb(var(--d)/.6); border-radius:3px}
.steps span.f{background:rgb(var(--d))}
.steps span.h{background:repeating-linear-gradient(135deg,rgb(var(--d)) 0 2px,transparent 2px 5px)}
.stepnames{display:grid; grid-template-columns:repeat(4,1fr); gap:3px; font-size:11.5px; color:var(--slate); margin-bottom:6px}
.stepnames span{border-top:2px solid var(--hair); padding-top:3px}
.lvline{font-size:14px; margin:0 0 4px}
.lvline b{font-family:"Open Sans",sans-serif; font-weight:700; font-size:17px}
.ladder{display:grid; border-left:2px solid var(--hair); margin-left:5px}
.rung{position:relative; padding:5px 0 9px 16px; font-size:14px; color:var(--slate)}
.rung::before{content:""; position:absolute; left:-7px; top:10px; width:12px; height:12px; border-radius:50%; background:var(--surface); border:2px solid var(--hair)}
.rung b{display:block; font-size:12.5px; font-weight:700; color:var(--slate)}
.rung.done::before{background:rgb(var(--d)); border-color:rgb(var(--d))}
.rung.here{color:var(--ink)}
.rung.here::before{border-color:rgb(var(--d)); box-shadow:0 0 0 3px rgb(var(--d)/.25)}
.rung.here b{color:var(--ink)}
.rung.here b::after{content:", you are here"; font-weight:400; color:rgb(var(--d))}
.contrast{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (max-width:560px){.contrast{grid-template-columns:1fr}}
.contrast div{padding:10px 12px; border-radius:8px; font-size:13.5px; background:var(--sunk)}
.contrast div:last-child{background:rgb(var(--d)/.14)}
.contrast small{display:block; font-size:12px; color:var(--slate); margin-bottom:2px; font-weight:700}
.principle{font-size:13px; color:var(--slate); margin:8px 0 0}
.fev{display:grid; grid-template-columns:auto 1fr; gap:2px 12px; padding:10px 0; border-top:1px solid var(--hair); font-size:14px}
.fev:first-of-type{border-top:0; padding-top:0}
.fev .lv{font-family:"IBM Plex Mono",monospace; font-size:12px; background:rgb(var(--d)/.16); padding:1px 6px; border-radius:4px; align-self:start; margin-top:2px}
.fev small{display:block; color:var(--slate); font-size:12.5px}
.fev small .linkbtn{font-size:12.5px}
.nextstep{margin:0; padding:12px 14px; border:1px dashed rgb(var(--d)); border-radius:8px; font-size:14px}
.school,.index,.sources{margin-top:44px; border-top:1px solid var(--hair); padding-top:26px}
.lede2{color:var(--slate); max-width:74ch; margin:0 0 12px; font-size:14.5px}
.l6sum{margin:0 0 16px; font-size:15px}
.l6sum b{font-family:"Open Sans",sans-serif}
.l6grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px}
@media (max-width:900px){.l6grid{grid-template-columns:1fr}}
.l6col h4,.col h4{font-family:"Open Sans",sans-serif; font-weight:700; font-size:16px; margin:0 0 4px}
.l6row{background:var(--surface); border:1px solid var(--hair); border-radius:12px; padding:12px 14px; margin-top:8px; transition:box-shadow .3s}
.l6row.flash{box-shadow:0 0 0 3px rgb(var(--hub)/.45)}
.l6top{display:flex; justify-content:space-between; gap:8px; align-items:flex-start; flex-wrap:wrap}
.l6n{font-weight:700; font-size:14.5px; line-height:1.3}
.hard{font-size:11.5px; color:rgb(var(--ec-I)); border:1px solid rgb(var(--ec-I)/.5); border-radius:999px; padding:0 8px; white-space:nowrap}
.opp{display:flex; align-items:center; gap:4px; margin:8px 0 4px; font-size:13px}
.opp i{width:22px; height:8px; border-radius:2px; background:rgb(var(--hub)/.14)}
.opp i.on{background:rgb(var(--hub))}
.opp span{margin-left:6px; color:var(--slate)}
.l6row small{display:block; color:var(--slate); font-size:12.5px; line-height:1.4}
.feeds{display:flex; gap:4px; flex-wrap:wrap; margin-top:8px}
.feeds button{font-family:"IBM Plex Mono",monospace; font-size:11.5px; border:1px solid rgb(var(--d)); background:rgb(var(--d)/.14); border-radius:4px; padding:0 6px; cursor:pointer}
.l6note{font-size:12.5px; color:var(--slate); margin:12px 0 0}
.l6chips{display:flex; flex-wrap:wrap; gap:6px}
.l6chip{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--hair); background:var(--sunk); border-radius:999px; padding:2px 10px 2px 3px; font-size:13px; cursor:pointer}
.l6chip span{font-family:"IBM Plex Mono",monospace; font-size:11px; background:rgb(var(--hub)); color:#fff; border-radius:999px; padding:0 6px}
.l6chip:hover{border-color:rgb(var(--hub))}
.cols{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px}
@media (max-width:800px){.cols{grid-template-columns:1fr}}
.col h4{margin:0 0 8px; display:flex; align-items:center; gap:8px}
.col h4 i{width:12px; height:12px; border-radius:50%; background:rgb(var(--d))}
.col button{display:grid; grid-template-columns:34px 1fr 88px; gap:8px; align-items:center; width:100%; text-align:left; background:none; border:0; border-top:1px solid var(--hair); padding:8px 0; cursor:pointer; font-size:14px}
.col button:hover .n,.col button:focus-visible .n{color:rgb(var(--d)); text-decoration:underline}
.col .c{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--slate)}
.mini{display:grid; grid-template-columns:repeat(8,1fr); gap:2px}
.mini span{height:8px; background:rgb(var(--d)/.15)}
.mini span.f{background:rgb(var(--d))}
.mini span.h{background:rgb(var(--d)/.5)}
.srcgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px}
.srcgrid div{font-size:14px}
.srcgrid b{display:block; font-family:"Open Sans",sans-serif; font-size:16px}
.srcgrid small{display:block; color:var(--slate); font-size:12.5px; margin-bottom:4px}

/* parent view */
.evdot{width:11px; height:11px; border-radius:50%; background:rgb(var(--a)); margin-top:6px}
.flcard{display:grid; grid-template-columns:150px minmax(0,1fr); gap:18px; align-items:center}
@media (max-width:560px){.flcard{grid-template-columns:1fr}}
.toplist{margin:0; padding:0; list-style:none; font-size:14.5px}
.toplist li{display:flex; justify-content:space-between; gap:10px; padding:5px 0; border-top:1px solid var(--hair)}
.toplist li:first-child{border-top:0}
.toplist b{font-family:"IBM Plex Mono",monospace; font-weight:500; font-size:13px; color:var(--slate)}

/* admin */
.gradeguide{background:var(--sunk); border:1px solid var(--hair); border-radius:10px; padding:12px 14px; font-size:14px; margin:0 0 14px}
.gradeguide p{margin:0 0 8px}
.gradeguide p:last-child{margin:0}
.lvtable{width:100%; border-collapse:collapse; font-size:14px}
.lvtable th,.lvtable td{text-align:left; padding:7px 8px 7px 0; border-top:1px solid var(--hair); vertical-align:top}
.lvtable th{font-weight:700; color:var(--slate); font-size:13px; border-top:0}
.lvtable td:first-child{font-family:"IBM Plex Mono",monospace; font-size:13px; white-space:nowrap}
.cgroup h4{font-family:"Open Sans",sans-serif; font-weight:700; font-size:16px; margin:18px 0 2px; display:flex; align-items:center; gap:8px}
.cgroup:first-child h4{margin-top:0}
.cgroup h4 i{width:11px; height:11px; border-radius:50%; background:rgb(var(--a))}
.crow{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:9px 0; border-top:1px solid var(--hair); font-size:14.5px}
.cgroup h4 + .crow{border-top:0}
.crow small{display:block; color:var(--slate); font-size:12.5px; line-height:1.4}
.crow .cm{text-align:right; white-space:nowrap; font-size:12.5px; color:var(--slate)}
.crow .cm b{display:block; font-family:"Open Sans",sans-serif; font-size:19px; color:var(--ink); line-height:1.15}
.catscroll{max-height:760px; overflow:auto}
.hint{font-size:13px; color:var(--slate); margin:0; display:flex; gap:4px 10px; flex-wrap:wrap; align-items:baseline}
.checks.ec label{min-width:200px}

.proj .pn{font-weight:700}
.mini-map .node.none circle.c{fill:rgb(var(--d)/.3); stroke-width:2.4}
.mini-map .node.later circle.c{stroke-width:2.4}
.mini-map .link{stroke-width:1.6}

/* ===== focus: colour for what is yours or in focus, grey for the rest ===== */
.node{--d:var(--bc)}
.node.none,.node.later{--d:var(--dye-0)}
.node.none.nx,.node.focus{--d:var(--bc)}
.node.none.nx circle.c{stroke-width:2.4}
.wedge{fill:rgb(var(--bc)/var(--wedge))}
.wedge.cold{fill:rgb(var(--dye-0)/calc(var(--wedge)*.8))}
.nl{cursor:pointer; pointer-events:auto}
.nl.cold{fill:var(--slate); font-weight:400}
svg.focusing .node:not(.focus){--d:var(--dye-0); opacity:.38}
svg.focusing .nl:not(.focus){opacity:.3}
svg.focusing .wedge:not(.focus){fill:rgb(var(--dye-0)/calc(var(--wedge)*.8))}
svg.focusing .wedge.focus{fill:rgb(var(--bc)/calc(var(--wedge)*1.8))}
svg.focusing .link:not(.lit){opacity:.08}
svg.focusing .nl.focus{fill:var(--ink); font-weight:700}
@media (prefers-reduced-motion:no-preference){.node,.nl{transition:opacity .2s}.node circle.c{transition:fill .2s,stroke .2s,stroke-width .15s}.wedge{transition:fill .25s}}
.whole{margin:0 0 10px; font-size:13.5px}
.whole .linkbtn{font-size:13.5px}
.pill.next{background:rgb(var(--lake)/.1); color:rgb(var(--lake)); border-color:rgb(var(--lake)/.35)}
.evquote{color:var(--ink) !important; font-style:italic}

/* grey for empty themes and fields */
.orbcr b.zero{color:var(--slate); opacity:.5}
.stat.zero b{color:var(--slate); opacity:.5}
.tile.cold{background:var(--surface); border-color:var(--hair)}
.tile.cold .num b{color:var(--slate); opacity:.55}
.tile.cold:hover{border-color:rgb(var(--a)); box-shadow:0 0 0 1px rgb(var(--a))}

/* skills flower: grey petals without evidence, grey bands for levels from other themes */
.petal{--d:var(--bc)}
.petal.cold{--d:var(--dye-0)}
.petal.mute{--d:var(--dye-0); opacity:.45}
.petal .band.ctx{fill:rgb(var(--dye-0)/.42)}
.fl-legend i.c{background:rgb(var(--dye-0)/.42)}
.fl-legend i.e{background:rgb(var(--dye-0)/.12)}
.steps span.c{background:rgb(var(--dye-0)/.4); border-color:rgb(var(--dye-0)/.5)}
.mini span.c{background:rgb(var(--dye-0)/.42)}
.fev.ctx{color:var(--slate)}
.fev.ctx .lv{background:rgb(var(--dye-0)/.16)}
.fltnote{margin:-2px 0 12px; font-size:13.5px; color:var(--slate); max-width:80ch}

/* instructor evaluation form */
.evrow{border-top:1px solid var(--hair)}
.evrow:first-child{border-top:0}
.evrow .q{border-top:0}
.evform{background:var(--sunk); border:1px solid var(--hair); border-radius:12px; padding:14px; margin:0 0 14px; display:grid; gap:12px}
.evlead{margin:0; font-size:13.5px; color:var(--slate)}
.evskills{display:grid; gap:10px}
.evsk{background:var(--surface); border:1px solid var(--hair); border-left:4px solid rgb(var(--e)); border-radius:10px; padding:10px 12px; display:grid; gap:6px}
.evsk.off{opacity:.55}
.evsk.off textarea{display:none}
.evtop{display:flex; justify-content:space-between; align-items:center; gap:8px 12px; flex-wrap:wrap}
.evname{font-weight:700; font-size:14.5px; display:inline-flex; align-items:center; gap:8px}
.evcode{font-family:"IBM Plex Mono",monospace; font-size:11.5px; font-weight:500; background:rgb(var(--e)); color:#fff; border-radius:999px; padding:0 7px}
.evsk select{background:var(--sunk); border:1px solid var(--hair); border-radius:8px; padding:6px 8px; color:var(--ink); font-size:14px}
.evsk textarea{width:100%; background:var(--sunk); border:1px solid var(--hair); border-radius:8px; padding:7px 9px; color:var(--ink); font-size:14px; resize:vertical}
.evanchor{font-size:12.5px; color:var(--slate); line-height:1.4}
.evadd{align-items:end}
.evprev{margin:0; padding:10px 12px; border-radius:8px; background:rgb(var(--hub)/.07); border:1px solid rgb(var(--hub)/.25); font-size:14px}

/* parent view: courses and progress */
.pstat{display:flex; flex-wrap:wrap; gap:6px; margin:0 0 18px}
.pstat button{display:inline-flex; align-items:center; gap:7px; border:1px solid var(--hair); background:var(--surface); border-radius:999px; padding:4px 12px 4px 6px; cursor:pointer; font-size:13.5px; color:var(--ink)}
.pstat button[data-ps="all"]{padding-left:12px}
.pstat button b{font-family:"IBM Plex Mono",monospace; font-weight:500; font-size:12.5px; color:var(--slate)}
.pstat button[aria-pressed="true"]{border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); font-weight:700}
.sti{display:block; flex:none; pointer-events:none; overflow:visible}
.pcols{display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:28px}
.pcol{min-width:0}
.pchead{display:flex; align-items:baseline; gap:6px; margin-bottom:8px}
.pctitle{font-family:"Open Sans",sans-serif; font-weight:700; font-size:20px; letter-spacing:-.01em; margin-right:auto}
.pchead b{font-family:"Open Sans",sans-serif; font-weight:800; font-size:32px; line-height:.9; letter-spacing:-.03em; color:rgb(var(--a))}
.pchead b.zero{color:var(--slate); opacity:.5}
.pchead span:last-child{font-size:12.5px; color:var(--slate)}
.pbar{display:flex; height:10px; border-radius:5px; background:var(--sunk); border:1px solid var(--hair); overflow:hidden}
.pbar .e{background:rgb(var(--a))}
.pbar .w{background:repeating-linear-gradient(135deg,rgb(var(--a)/.85) 0 2px,transparent 2px 5px)}
.pcsub{font-size:12.5px; color:var(--slate); margin:6px 0 8px; line-height:1.4}
.crslist{list-style:none; margin:0; padding:0}
.crs{display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:10px; align-items:start; padding:8px 0; border-top:1px solid var(--hair); font-size:14px}
.crs > span:first-child{padding-top:1px}
.crs .linkbtn{font-size:14.5px; text-align:left; color:var(--ink); text-decoration:none; font-weight:700; line-height:1.3}
.crs .linkbtn:hover,.crs .linkbtn:focus-visible{text-decoration:underline; color:rgb(var(--lake))}
.crs small{display:block; color:var(--slate); font-size:12.5px; line-height:1.35; margin-top:1px}
.crs[data-st="none"] .linkbtn,.crs[data-st="later"] .linkbtn{font-weight:400; color:var(--slate)}
.crs.hide{display:none}
.ccr{font-family:"Open Sans",sans-serif; font-weight:800; font-size:16px; text-align:right; white-space:nowrap; line-height:1.2}
.ccr small{font-family:"Open Sans",sans-serif; font-weight:400; font-size:11.5px}
.ccr .m{color:var(--slate)}
.pnone{font-size:13px; color:var(--slate); padding:8px 0; border-top:1px solid var(--hair)}
.pfields{display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:20px; padding-top:14px; border-top:1px solid var(--hair); font-size:13.5px}
.pfl{font-weight:700; margin-right:4px}
.pfields .chip b{font-family:"IBM Plex Mono",monospace; font-weight:500; margin-left:6px}
.pfields details{flex-basis:100%}
.pfields summary{cursor:pointer; color:rgb(var(--lake)); font-weight:700; width:max-content}
.pfields .fbars{margin-top:10px; max-width:640px}
.pc{display:block; width:100%; height:auto}
.pc text{font-size:11px; fill:var(--slate); font-family:"Open Sans",sans-serif}
.pc .grid{stroke:var(--hair); stroke-width:1}
.pc .area{fill:rgb(var(--lake)/.08)}
.pc .stepl{fill:none; stroke:rgb(var(--lake)); stroke-width:2.2; stroke-linejoin:round}
.pc .dot{stroke:var(--surface); stroke-width:2}
.pc .dot.w{fill:var(--surface); stroke-width:2.2; stroke-dasharray:3 2}
.pc .endl{font-family:"Open Sans",sans-serif; font-weight:800; font-size:15px; fill:var(--ink)}
.pclegend{display:flex; gap:6px 16px; flex-wrap:wrap; font-size:12.5px; color:var(--slate); margin-top:6px}
.pclegend span{display:inline-flex; align-items:center; gap:6px}
.pclegend i{width:10px; height:10px; border-radius:50%; background:rgb(var(--a))}
.pclegend i.w{background:transparent; border:2px dashed rgb(var(--leg))}

/* ======================================================================
   Application additions: navigation links, account menu, auth pages,
   tabs, tables, status pills. Built on the prototype's tokens.
   ====================================================================== */
a{color:rgb(var(--lake))}
.logo{color:var(--ink); text-decoration:none}
nav a{display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:7px 15px; border-radius:999px; cursor:pointer; font-size:14.5px; color:var(--slate); text-decoration:none; white-space:nowrap}
nav a[aria-current="page"]{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgb(0 0 0/.12); font-weight:700}
nav a:hover{color:var(--ink)}
nav:empty{display:none}
.badge{display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:rgb(var(--wait)); color:#fff; font-size:11.5px; font-weight:700; line-height:1}
.acct{display:flex; align-items:center; gap:10px}
.acct .nm{display:flex; flex-direction:column; line-height:1.15; font-size:14px; color:var(--ink)}
.acct .nm small{font-size:12px; color:var(--slate)}
.iconbtn{border:1px solid var(--hair); background:var(--sunk); color:var(--slate); border-radius:999px; width:34px; height:34px; display:grid; place-items:center; cursor:pointer; padding:0}
.iconbtn:hover{color:var(--ink)}
.iconbtn svg{width:17px; height:17px}
.menu{position:relative}
.menu .pop{position:absolute; right:0; top:calc(100% + 8px); background:var(--surface); border:1px solid var(--hair); border-radius:12px; box-shadow:0 8px 28px rgb(0 0 0/.14); min-width:230px; padding:6px; z-index:40}
.menu .pop[hidden]{display:none}
.menu .pop button,.menu .pop a{display:block; width:100%; text-align:left; border:0; background:none; padding:9px 12px; border-radius:8px; cursor:pointer; font-size:14px; color:var(--ink); text-decoration:none}
.menu .pop button:hover,.menu .pop a:hover{background:var(--sunk)}
.menu .pop .hd{padding:8px 12px 10px; border-bottom:1px solid var(--hair); margin-bottom:4px; font-size:13px; color:var(--slate)}
.menu .pop .hd b{display:block; color:var(--ink); font-size:14.5px}
.who label{display:flex; align-items:center; gap:8px}

/* start page */
.auth{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:40px; align-items:start; margin-top:10px}
@media (max-width:900px){.auth{grid-template-columns:1fr}}
.auth .hero .lede{font-size:17px; margin-top:12px}
.hero-art{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:28px; max-width:520px}
.hero-art svg{width:100%; height:auto; display:block}
.hero-art div{background:var(--surface); border:1px solid var(--hair); border-radius:14px; padding:8px}
.hero-art small{display:block; text-align:center; color:var(--slate); font-size:12.5px; margin-top:2px}
.roles-info{display:grid; gap:10px; margin-top:26px; max-width:560px}
.roles-info div{display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start; font-size:14.5px}
.roles-info i{width:28px; height:28px; border-radius:8px; background:rgb(var(--a)/.16); border:1px solid rgb(var(--a)/.4); display:block}
.roles-info b{display:block}
.roles-info span{color:var(--slate)}
.authcard{padding:26px}
.authtabs{display:flex; gap:4px; background:var(--sunk); border:1px solid var(--hair); border-radius:12px; padding:4px; margin-bottom:20px}
.authtabs a{flex:1; text-align:center; padding:9px 12px; border-radius:9px; text-decoration:none; color:var(--slate); font-weight:700}
.authtabs a[aria-current="page"]{background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgb(0 0 0/.12)}
.rolepick{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.rolepick label{position:relative; display:block; border:1px solid var(--hair); background:var(--sunk); border-radius:12px; padding:12px 12px 11px 40px; cursor:pointer; line-height:1.3}
.rolepick label b{display:block; font-size:15px; color:var(--ink)}
.rolepick label small{display:block; color:var(--slate); font-size:12.5px; margin-top:2px}
.rolepick input{position:absolute; left:14px; top:15px; accent-color:rgb(var(--lake))}
.rolepick label:has(input:checked){border-color:rgb(var(--lake)); box-shadow:inset 0 0 0 1px rgb(var(--lake)); background:rgb(var(--lake)/.06)}
.rolepick label:has(input:focus-visible){outline:2px solid rgb(var(--lake)); outline-offset:2px}
@media (max-width:460px){.rolepick{grid-template-columns:1fr}}
.demo{display:grid; gap:6px; margin-top:8px}
.demo button{display:grid; grid-template-columns:auto 1fr; gap:0 10px; align-items:center; text-align:left; border:1px solid var(--hair); background:var(--sunk); border-radius:10px; padding:8px 12px; cursor:pointer; color:var(--ink)}
.demo button:hover{border-color:rgb(var(--lake))}
.demo button i{grid-row:span 2; width:10px; height:10px; border-radius:50%; background:rgb(var(--d))}
.demo button b{font-size:14px}
.demo button small{color:var(--slate); font-size:12.5px}
.okbox{border:1px solid rgb(var(--ok)/.4); background:rgb(var(--ok)/.08); border-radius:12px; padding:16px 18px}
.okbox strong{display:block; font-family:"Open Sans",sans-serif; font-size:20px; margin-bottom:4px}
.okbox p{margin:0; color:var(--slate)}
.small{font-size:13px}
.hint{font-size:13px; color:var(--slate); margin:0; display:block}
.hint:has(> button){display:flex; gap:8px; flex-wrap:wrap; align-items:center}

/* tabs inside a role area */
.tabs-unused{display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--hair); margin:22px 0 22px}
.tabs a{padding:9px 14px; text-decoration:none; color:var(--slate); border-bottom:2px solid transparent; margin-bottom:-1px; font-weight:700; display:inline-flex; gap:7px; align-items:center}
.tabs a[aria-current="page"]{color:var(--ink); border-bottom-color:rgb(var(--lake))}

/* status pills and tables */
.pill.pending_review,.pill.pending,.pill.awaiting_parent,.pill.wait{background:rgb(var(--wait)/.12); color:rgb(var(--wait)); border-color:rgb(var(--wait)/.4)}
.pill.published,.pill.active,.pill.sent_to_partner,.pill.completed{background:rgb(var(--ok)/.12); color:rgb(var(--ok)); border-color:rgb(var(--ok)/.35)}
.pill.rejected,.pill.disabled,.pill.declined{background:rgb(179 38 30/.08); color:#B3261E; border-color:#B3261E55}
:root[data-theme="dark"] .pill.rejected,:root[data-theme="dark"] .pill.disabled,:root[data-theme="dark"] .pill.declined{color:#FF8A80}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pill.rejected,:root:not([data-theme="light"]) .pill.disabled,:root:not([data-theme="light"]) .pill.declined{color:#FF8A80}}
.tblwrap{overflow-x:auto}
table.tbl{width:100%; border-collapse:collapse; font-size:14px}
table.tbl th{text-align:left; font-size:12.5px; color:var(--slate); font-weight:700; padding:8px 10px; border-bottom:1px solid var(--hair); white-space:nowrap}
table.tbl td{padding:9px 10px; border-bottom:1px solid var(--hair); vertical-align:top}
table.tbl td small{display:block; color:var(--slate); font-size:12.5px}
table.tbl tr:last-child td{border-bottom:0}
.regcard{border:1px solid var(--hair); border-radius:14px; padding:16px 18px; background:var(--surface); margin-bottom:12px}
.regcard .rtop{margin-bottom:6px}
.regcard h3{border:0; padding:0; margin:4px 0 2px; font-size:18px; color:var(--ink); font-family:"Open Sans",sans-serif}
.regcard .msg{margin:8px 0 0; padding-left:12px; border-left:3px solid var(--hair); color:var(--slate); font-size:14px}
.regcard dl{display:grid; grid-template-columns:130px 1fr; gap:4px 12px; margin:10px 0 0; font-size:14px}
.regcard dt{color:var(--slate)}
.regcard dd{margin:0}
.codecard{display:inline-flex; align-items:center; gap:12px; flex-wrap:wrap; background:var(--surface); border:1px dashed var(--hair); border-radius:12px; padding:10px 14px; margin-top:18px; font-size:14px; color:var(--slate)}
.codecard b{font-family:"IBM Plex Mono",monospace; font-size:16px; color:var(--ink); letter-spacing:.04em}
.empty-card{background:var(--surface); border:1px dashed var(--hair); border-radius:16px; padding:28px; max-width:680px}
.empty-card strong{display:block; font-family:"Open Sans",sans-serif; font-size:22px; margin-bottom:6px}
.keybox{font-family:"IBM Plex Mono",monospace; font-size:13px; background:var(--sunk); border:1px solid var(--hair); border-radius:8px; padding:10px 12px; word-break:break-all; margin:8px 0}
.stack{display:grid; gap:20px}
.loading{color:var(--slate); padding:40px 0}
.jr{display:grid; grid-template-columns:1fr auto; gap:8px 12px; align-items:center; padding:10px 0; border-top:1px solid var(--hair)}
.jr:first-child{border-top:0}
.jr small{display:block; color:var(--slate); font-size:13px}

.acctbtn{border:1px solid var(--hair); background:var(--sunk); border-radius:999px; padding:3px 14px 3px 3px; cursor:pointer; text-align:left}
.acctbtn:hover{border-color:var(--slate)}
@media (max-width:640px){.acctbtn .nm{display:none}.acctbtn{padding:3px}}
[hidden]{display:none !important}
#tabbody{margin-top:30px}
.who .acctbtn .av{display:grid}

/* learners page */
.lav{flex:none}
.lgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px}
.lcard{display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:start; background:var(--surface); border:1px solid var(--hair); border-radius:14px; padding:14px 16px}
.lcard strong{display:block; font-size:16px}
.lcard small{display:block; color:var(--slate); font-size:13px; margin-top:2px}
.lcard .chips{margin-top:8px}
.lcard a.chip{text-decoration:none; color:var(--ink)}
.lme{display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:center}
@media (max-width:640px){.lme{grid-template-columns:1fr}}
.swatches{border:0; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:6px}
.swatches legend{font-size:13px; color:var(--slate); margin-bottom:6px; padding:0}
.swatches label{width:26px; height:26px; border-radius:50%; background:rgb(var(--c)); cursor:pointer; display:block; position:relative}
.swatches input{position:absolute; opacity:0; inset:0; margin:0; cursor:pointer}
.swatches label:has(input:checked){box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.swatches label:has(input:focus-visible){outline:2px solid rgb(var(--lake)); outline-offset:3px}
.alsohere{display:flex; align-items:center; gap:4px; flex-wrap:wrap}
.alsohere a{display:inline-block; margin-right:-8px; border-radius:50%; box-shadow:0 0 0 2px var(--surface)}
.alsohere a:hover{transform:translateY(-2px)}
.alsohere .muted{margin-left:14px}

h1,h2,.logo{font-weight:800}
h1{letter-spacing:-.02em}

/* community board */
.boardcard{padding:10px 12px 14px}
.board{display:block; width:100%; height:auto; max-height:600px}
.board line{stroke:rgb(var(--a)); stroke-opacity:.32; stroke-width:1.6; transition:stroke-opacity .15s,stroke-width .15s}
.board line.mine{stroke-opacity:.6; stroke-width:3}
.board.focus line{stroke-opacity:.07}
.board.focus line.on{stroke-opacity:.9; stroke-width:3.2}
.board .bc rect{fill:rgb(var(--a)/var(--fill)); stroke:rgb(var(--a)/.55); stroke-width:1.2}
.board .bc.mine rect{stroke:rgb(var(--a)); stroke-width:2}
.board .bc text{font-size:12.5px; font-weight:600; fill:var(--ink); text-anchor:middle; dominant-baseline:central; pointer-events:none}
.board .bc:hover rect{fill:rgb(var(--a)/.28)}
.board .bl{cursor:pointer; outline:none}
.board .bl .ini{fill:#fff; font-weight:800; text-anchor:middle; dominant-baseline:central; pointer-events:none}
.board .bl .nk{font-size:12.5px; font-weight:600; fill:var(--ink); text-anchor:middle; dominant-baseline:hanging; paint-order:stroke; stroke:var(--surface); stroke-width:4px; stroke-linejoin:round}
.board .bl .ring{fill:none; stroke:var(--brand); stroke-width:3}
.board .bl:focus-visible circle:not(.ring){stroke:rgb(var(--lake)); stroke-width:3}
.board.focus [data-n]{opacity:.28; transition:opacity .15s}
.board.focus [data-n].on{opacity:1}
.binfo{margin:6px 6px 0; font-size:14.5px; color:var(--slate); min-height:2.6em}
.binfo b{color:var(--ink)}
#board{overflow-x:auto; -webkit-overflow-scrolling:touch}
@media (max-width:760px){.board{min-width:760px}}
.hint select,.sechead select{background:var(--surface); color:var(--ink); border:1px solid var(--hair); border-radius:6px; padding:2px 4px}

/* ===== blue top bar (Helsinki blue) and four-leaf clover logo ===== */
:root{
  --bar-bg:#00649A; --bar-text:#FFFFFF; --bar-border:transparent;
  --bar-nav-bg:rgb(255 255 255/.15); --bar-nav-border:rgb(255 255 255/.3); --bar-nav-text:rgb(255 255 255/.9);
  --bar-nav-active-bg:#FFFFFF; --bar-nav-active-text:#00649A; --bar-btn-bg:rgb(255 255 255/.15);
  --leaf-a:#FFFFFF; --leaf-b:#BFE1F6;
}
:root[data-theme="dark"]{--bar-bg:#0A4F7A; --bar-border:#2B3540; --bar-nav-active-bg:#171E25; --bar-nav-active-text:#E7ECEF}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bar-bg:#0A4F7A; --bar-border:#2B3540; --bar-nav-active-bg:#171E25; --bar-nav-active-text:#E7ECEF}}
.bar{background:var(--bar-bg); border-bottom:1px solid var(--bar-border); color:var(--bar-text); backdrop-filter:none}
.logo{color:var(--bar-text); letter-spacing:.06em; font-size:20px}
.clover .lf.a{fill:var(--leaf-a)}
.clover .lf.b{fill:var(--leaf-b)}
.clover .lf{stroke:var(--bar-bg); stroke-width:.8}
.clover .stem{stroke:var(--leaf-a)}
.clover .mid{fill:var(--bar-bg)}
.logo:hover .clover{transform:rotate(20deg)}
@media (prefers-reduced-motion:no-preference){.clover{transition:transform .35s cubic-bezier(.2,.8,.25,1)}}
.bar nav{background:var(--bar-nav-bg); border-color:var(--bar-nav-border)}
.bar nav a{color:var(--bar-nav-text)}
.bar nav a:hover{color:var(--bar-text)}
.bar nav a[aria-current="page"]{background:var(--bar-nav-active-bg); color:var(--bar-nav-active-text)}
.bar .iconbtn,.bar .acctbtn{background:var(--bar-btn-bg); border-color:var(--bar-nav-border); color:var(--bar-text)}
.bar .iconbtn:hover,.bar .acctbtn:hover{color:var(--bar-text); border-color:var(--bar-text)}
.bar .acct .nm,.bar .acct .nm small{color:var(--bar-text)}
.bar .acct .nm small{opacity:.8}
.bar .badge{box-shadow:0 0 0 2px var(--bar-bg)}
.bar :focus-visible{outline-color:#fff}
