
:root {
  --bg: #08110d;
  --bg-2: #0d1612;
  --panel: rgba(13, 19, 16, 0.92);
  --panel-2: rgba(18, 26, 22, 0.95);
  --panel-3: rgba(22, 33, 27, 0.98);
  --text: #f0f6f1;
  --muted: #bfd0c6;
  --soft: #94a69a;
  --line: rgba(175, 228, 193, .12);
  --line-strong: rgba(175, 228, 193, .23);
  --green: #89f7ad;
  --green-2: #67d98f;
  --purple: #9580ff;
  --lime: #d4ff6f;
  --yellow: #ffd978;
  --red: #ff8da7;
  --shadow: 0 28px 68px rgba(0,0,0,.36);
  --cut: 18px;
  --max: 1320px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;min-height:100%}
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(137,247,173,.14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(149,128,255,.16), transparent 24%),
    linear-gradient(180deg,#08110d 0%,#0a120f 100%);
}
.bg-noise{position:fixed;inset:0;pointer-events:none;opacity:.045;background-image:radial-gradient(circle at 1px 1px, rgba(255,255,255,.7) 1px, transparent 0);background-size:20px 20px}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
img{display:block;max-width:100%}
.topbar{
  position:sticky;top:0;z-index:30;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;
  max-width:calc(var(--max) + 48px);margin:0 auto;padding:16px 24px;
  backdrop-filter: blur(18px);background:linear-gradient(180deg, rgba(5,10,8,.92), rgba(5,10,8,.72));border-bottom:1px solid rgba(255,255,255,.05)
}
.brand{display:flex;gap:11px;align-items:center;min-width:max-content}
.brand-mark{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;filter:drop-shadow(0 10px 22px rgba(137,247,173,.18))}
.brand-mark svg{width:100%;height:100%;overflow:visible}
.logo-frame{fill:rgba(12,24,18,.96);stroke:rgba(137,247,173,.58);stroke-width:1.5}
.logo-n{fill:none;stroke:var(--green);stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round}
.logo-node{fill:var(--lime);stroke:#08110d;stroke-width:1.5}.logo-node.hot{fill:var(--purple)}
.brand-title{font-weight:900;font-size:21px;letter-spacing:-.035em;line-height:1;white-space:nowrap}
.main-nav{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.main-nav a{padding:11px 14px;border-radius:999px;border:1px solid transparent;color:var(--muted);font-weight:650;font-size:14px;background:transparent;cursor:pointer;transition:.18s ease}
.main-nav a:hover,.main-nav a.active{background:rgba(137,247,173,.08);border-color:rgba(137,247,173,.14);color:var(--text)}
.top-actions{display:flex;gap:10px;align-items:center}
.search-shell{min-width:min(33vw,340px);height:48px;padding:0 14px;display:flex;align-items:center;gap:10px;border-radius:999px;border:1px solid var(--line);background:rgba(13,19,16,.88)}
.search-shell span{color:var(--soft)}
.search-shell input{flex:1;border:0;outline:none;background:transparent;color:var(--text)}
.page{max-width:var(--max);margin:0 auto;padding:30px 24px 96px}
.stack{display:grid;gap:20px}
.kicker{font-size:12px;line-height:1;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--green)}
.section-title{margin:0;font-size:clamp(28px,4vw,50px);line-height:1.03}
.section-lead{margin:0;color:var(--muted);font-size:clamp(16px,2vw,19px);line-height:1.7;max-width:860px}
.pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--line-strong);background:rgba(8,13,11,.52);font-size:12px;font-weight:700;color:var(--muted)}
.pill strong{color:var(--text)}
.card,.hero,.split-card,.topic-card,.cover-card,.panel,.mini-card,.quote-card,.related-card,.source-card,.graph-shell,.sticky-progress,.thumb-row{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--panel),var(--panel-2));border:1px solid var(--line);box-shadow:var(--shadow);clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,var(--cut) 100%,0 calc(100% - var(--cut)))}
.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:24px;min-height:430px;padding:30px}
.hero-content{display:grid;align-content:end;z-index:1}
.hero-visual{display:grid;align-items:center;justify-items:center;min-height:320px;z-index:1}
.hero-visual img{width:100%;height:auto;min-height:290px;object-fit:cover;border:1px solid var(--line);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));background:rgba(255,255,255,.03)}
.card-bg{position:absolute;inset:0;opacity:.9;pointer-events:none}
.card-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,10,8,.1),rgba(5,10,8,.58) 45%,rgba(5,10,8,.93) 100%)}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.button,.button-secondary{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 18px;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));border:1px solid transparent;cursor:pointer}
.button{background:linear-gradient(135deg,var(--green),var(--lime));color:#041109;font-weight:800}
.button-secondary{background:rgba(255,255,255,.04);border-color:var(--line);color:var(--text)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cover-card,.topic-card{display:grid;gap:14px;padding:18px}
.cover-thumb,.topic-thumb,.side-thumb,.inline-thumb,.row-thumb{width:100%;border:1px solid var(--line);background:rgba(255,255,255,.03);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}
.cover-thumb{aspect-ratio:16/9;object-fit:cover}
.topic-thumb{aspect-ratio:16/10;object-fit:cover}
.topic-card h3,.cover-card h3,.mini-card h3,.panel h2,.split-card h2,.quote-card h3{margin:0}
.topic-card p,.cover-card p,.panel p,.split-card p,.mini-card p,.thumb-row p,.source-card small,.related-card small{color:var(--muted);line-height:1.75}
.topic-card .meta-line,.cover-card .meta-line,.thumb-row .meta-line{display:flex;gap:8px;flex-wrap:wrap}
.list-rows{display:grid;gap:16px}
.thumb-row{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;padding:16px;align-items:center}
.row-thumb{aspect-ratio:4/3;object-fit:cover}
.row-title{font-weight:800;font-size:22px}
.row-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}
.filters{display:flex;gap:12px;flex-wrap:wrap}
.filter{height:46px;padding:0 14px;border:1px solid var(--line);background:rgba(10,15,13,.9);color:var(--text);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;color:var(--soft);font-size:13px}
.breadcrumbs a:hover{color:var(--green)}
.page-cover{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;padding:26px;min-height:340px}
.page-cover-main{display:grid;align-content:end;z-index:1}
.page-cover-visual{display:grid;align-items:center}
.page-cover-visual img{width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--line);clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px))}
.content-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:18px;align-items:start}
.main-stack,.side-stack{display:grid;gap:18px}
.panel{padding:22px}
.panel h2{font-size:24px;margin-bottom:12px}
.panel p{margin:0;font-size:16px}
.panel p + p{margin-top:14px}
.strong-lead{font-size:18px;color:#eaf3ec}
.highlight-line{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.highlight{padding:10px 12px;border-left:3px solid var(--green);background:rgba(137,247,173,.06);color:#eaf5ec;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.split-card{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;padding:22px}
.inline-thumb{aspect-ratio:1/1;object-fit:cover}
.quote-card{padding:22px;background:linear-gradient(180deg,rgba(149,128,255,.12),rgba(13,19,16,.9));border-color:rgba(149,128,255,.18)}
.quote-card p{margin:0;color:#e9ecff;font-size:18px;line-height:1.8}
.bullet-list{display:grid;gap:10px;margin-top:14px}
.bullet{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start}
.bullet i{color:var(--green);font-style:normal;font-weight:900}
.mini-card{padding:18px}
.side-thumb{aspect-ratio:5/4;object-fit:cover;margin-bottom:14px}
.link-stack{display:grid;gap:10px}
.link-chip{display:block;padding:12px 14px;border:1px solid var(--line);background:rgba(255,255,255,.03);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.link-chip:hover{border-color:var(--line-strong);background:rgba(255,255,255,.05)}
.link-chip strong{display:block}
.link-chip span{display:block;margin-top:5px;font-size:12px;color:var(--soft);line-height:1.6}
.course-progress-slot{grid-column:1 / -1;width:100%;min-width:0}
.course-progress-slot:empty{display:none}
.sticky-progress-wrap{position:static;z-index:1;width:100%;max-width:none;margin:0;padding:0}
.sticky-progress{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:14px 18px;background:rgba(10,15,12,.92);backdrop-filter: blur(16px)}
.sticky-progress .progress-title{font-weight:800}
.progress-track{height:10px;background:rgba(255,255,255,.06);overflow:hidden;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px))}
.progress-track span{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--purple),var(--lime))}
.sticky-meta{font-size:13px;color:var(--muted)}
.path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.path-step-list{display:grid;gap:16px}
.path-step{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;padding:16px}
.step-thumb{aspect-ratio:4/3;object-fit:cover;border:1px solid var(--line);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}
.step-body{display:grid;gap:10px;align-content:center}
.step-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.step-index{width:42px;height:42px;display:grid;place-items:center;color:#06120a;background:linear-gradient(135deg,var(--green),var(--lime));font-weight:800;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.toggle-done{min-height:40px;padding:0 12px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));cursor:pointer}
.toggle-done.done{background:rgba(137,247,173,.12);border-color:rgba(137,247,173,.26);color:var(--green)}
.related-grid,.source-grid{display:grid;gap:12px}
.related-card,.source-card{padding:18px}
.search-results{position:fixed;right:max(24px, calc((100vw - var(--max))/2 + 24px));top:82px;width:min(560px, calc(100vw - 48px));z-index:50;background:rgba(13,19,16,.98);border:1px solid var(--line-strong);clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px));box-shadow:var(--shadow);overflow:hidden}
.search-hit{display:block;padding:14px 18px;border-top:1px solid rgba(255,255,255,.04)}
.search-hit:first-child{border-top:0}.search-hit:hover{background:rgba(255,255,255,.03)}
.search-hit-title{font-weight:800}.search-hit-meta{font-size:12px;color:var(--soft);margin-top:4px}
.graph-shell{display:grid;grid-template-columns:1fr 330px;min-height:640px}
.graph-canvas{min-height:640px;background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01))}
.graph-canvas svg{width:100%;height:100%;min-height:640px;display:block}
.graph-node{cursor:pointer}.graph-node circle{stroke-width:2}.graph-node text{font-size:12px;font-weight:800;fill:#f8fbf8;paint-order:stroke;stroke:rgba(8,16,13,.82);stroke-width:6px}.graph-edge{stroke:rgba(191,208,198,.24);stroke-width:1.2}.graph-edge.dep{stroke:rgba(137,247,173,.45);stroke-width:1.7}.graph-side{padding:18px;border-left:1px solid var(--line)}
.empty{padding:36px;text-align:center;color:var(--muted)}

@media (max-width: 1100px){
  .topbar{grid-template-columns:1fr}
  .main-nav{justify-content:flex-start}
  .top-actions{justify-content:space-between}
  .hero,.page-cover,.content-grid,.split-card,.graph-shell,.path-step,.thumb-row{grid-template-columns:1fr}
  .grid-2,.grid-3,.path-grid{grid-template-columns:1fr}
  .graph-side{border-left:0;border-top:1px solid var(--line)}
  .sticky-progress{grid-template-columns:1fr;gap:10px}
}
@media (max-width: 760px){
  .page,.sticky-progress-wrap{padding-inline:16px}
  .topbar{padding-inline:16px}
  .search-shell{min-width:0;width:100%}
  .top-actions{flex-direction:column;align-items:stretch}
}


/* V6: unmistakable cannabis background motifs */
.cannabis-bg-icons{position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden;color:rgba(137,247,173,.08);font-weight:900}
.bg-icon{position:absolute;font-size:clamp(42px,7vw,110px);filter:blur(.15px);text-shadow:0 0 32px rgba(137,247,173,.06)}
.bg-icon.leaf{left:4%;top:18%;transform:rotate(-18deg) scale(1.4)}
.bg-icon.laugh{right:7%;top:28%;color:rgba(212,255,111,.065);transform:rotate(10deg)}
.bg-icon.food{left:9%;bottom:8%;opacity:.20;filter:grayscale(1) saturate(.2);font-size:74px}
.bg-icon.moon{right:15%;bottom:9%;color:rgba(149,128,255,.08);font-size:92px}
.bg-icon.med{right:3%;top:58%;color:rgba(212,255,111,.07);font-size:92px}
.bg-icon.focus{left:42%;top:8%;color:rgba(134,239,255,.06);font-size:76px}
.bg-icon.spark{left:55%;bottom:17%;color:rgba(149,128,255,.07);font-size:82px}
.version-badge{display:inline-flex;vertical-align:middle;margin-left:6px;padding:3px 7px;border-radius:999px;background:var(--lime);color:#06110a;font-size:9px;letter-spacing:.08em;font-weight:900}
.simple-topic-thumb{aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line);background:#0b1410;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}
.course-cover-thumb{aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}


/* V7.3 — course progress lives inside the sticky header. No JS positioning. */
.course-progress-slot .sticky-progress{box-shadow:none;background:rgba(11,18,15,.96);border-color:rgba(137,247,173,.18)}
.course-progress-slot .sticky-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.course-progress-slot .progress-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1100px){
  .course-progress-slot .sticky-progress{grid-template-columns:minmax(0,auto) minmax(140px,1fr) auto;gap:10px}
}
@media (max-width:680px){
  .course-progress-slot .sticky-progress{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title pct" "bar bar";gap:7px 10px;padding:9px 11px}
  .course-progress-slot .sticky-progress>div:nth-child(1){grid-area:title;min-width:0}
  .course-progress-slot .sticky-progress>div:nth-child(2){grid-area:bar;min-width:0}
  .course-progress-slot .sticky-progress>div:nth-child(3){grid-area:pct}
  .course-progress-slot .sticky-progress .kicker{display:none}
  .course-progress-slot .progress-title{font-size:13px}
  .course-progress-slot .sticky-meta{font-size:10.5px;margin-top:3px}
}


/* V8 — interactive 2.5D knowledge map */
.graph-lab{padding:0}
.graph-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01))}
.graph-control{display:grid;gap:6px;min-width:220px;flex:1}
.graph-control span{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--soft)}
.graph-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:720px}
.map-canvas{display:grid;align-items:stretch;position:relative;overflow:hidden;background:
  radial-gradient(circle at 16% 18%, rgba(137,247,173,.10), transparent 26%),
  radial-gradient(circle at 82% 14%, rgba(149,128,255,.12), transparent 28%),
  linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01))}
.graph-hint{position:absolute;left:18px;top:16px;z-index:3;padding:10px 12px;border:1px solid var(--line);background:rgba(9,14,11,.74);backdrop-filter:blur(10px);font-size:12px;font-weight:700;color:var(--muted);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.knowledge-map-stage{position:relative;min-height:720px;transform-style:preserve-3d;transition:transform .18s ease-out}
.knowledge-map-stage svg{width:100%;height:100%;min-height:720px;display:block}
.graph-grid-layer path{stroke:rgba(255,255,255,.06);stroke-width:1}
.graph-edge-layer{pointer-events:none}
.graph-edge{stroke-linecap:round;transition:opacity .2s ease}
.graph-edge.membership{stroke:rgba(255,255,255,.12);stroke-width:1.1}
.graph-edge.dependency{stroke:rgba(137,247,173,.72);stroke-width:1.9}
.graph-edge.related{stroke:rgba(149,128,255,.38);stroke-dasharray:6 7;stroke-width:1.2}
.graph-edge.path{stroke:rgba(255,217,120,.82);stroke-width:2.3}
.graph-node{cursor:pointer;transform-origin:center center;transition:opacity .15s ease;outline:none}
.graph-node circle{paint-order:stroke;fill:rgba(14,19,17,.94)}
.graph-node.type-category circle{fill:rgba(8,14,12,.94)}
.graph-node-label{font-size:12px;font-weight:900;fill:#f8fbf8;paint-order:stroke;stroke:rgba(8,16,13,.9);stroke-width:6px;letter-spacing:.01em}
.graph-node-sub{font-size:7px;font-weight:800;fill:#bfd0c6;paint-order:stroke;stroke:rgba(8,16,13,.9);stroke-width:5px;letter-spacing:.04em;text-transform:uppercase}
.graph-side{padding:18px;border-left:1px solid var(--line);display:grid;align-content:start;gap:14px;background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015))}
.graph-side h3{margin:0;font-size:28px}
.graph-side p{margin:0;color:var(--muted);line-height:1.75}
.graph-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.graph-stat{padding:12px;border:1px solid var(--line);background:rgba(255,255,255,.03);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.graph-stat strong{display:block;font-size:16px;color:#fff}
.graph-stat span{display:block;margin-top:4px;font-size:12px;color:var(--soft);line-height:1.5}
.graph-chip-list{display:flex;flex-wrap:wrap;gap:8px}
.graph-chip{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid var(--line);background:rgba(255,255,255,.03);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));font-size:13px;font-weight:700;color:var(--muted)}
.graph-chip:hover{border-color:var(--line-strong);color:var(--text)}
.graph-actions-row{display:flex;gap:10px;flex-wrap:wrap}
.graph-subtitle{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--green);margin-top:2px}
.graph-legend{display:grid;gap:8px;padding-top:4px}
.legend-item{display:grid;grid-template-columns:20px 1fr;column-gap:10px;row-gap:2px;align-items:center;padding:10px 0;border-top:1px solid rgba(255,255,255,.05)}
.legend-item:first-child{border-top:0}
.legend-item strong{font-size:13px}
.legend-item small{grid-column:2;color:var(--soft);line-height:1.45}
.legend-dot,.legend-line{display:block;width:16px;height:16px;align-self:center}
.legend-dot{border-radius:50%;border:2px solid currentColor}
.legend-dot.category{color:var(--green)}
.legend-dot.concept{color:var(--purple)}
.legend-line{height:0;border-top:3px solid currentColor;width:18px}
.legend-line.dep{color:var(--green)}
.legend-line.path{color:var(--yellow)}
.graph-mode-switch{display:inline-flex;gap:8px;align-items:center;padding:4px;border:1px solid var(--line);background:rgba(255,255,255,.02);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.graph-mode{min-height:38px;padding:0 14px;border:0;background:transparent;color:var(--muted);cursor:pointer;font-weight:800}
.graph-mode.active{background:rgba(137,247,173,.12);color:var(--text);clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px))}
@media (max-width: 1100px){
  .graph-main{grid-template-columns:1fr}
  .graph-side{border-left:0;border-top:1px solid var(--line)}
}
@media (max-width: 760px){
  .graph-toolbar{padding:14px}
  .graph-control{min-width:100%}
  .graph-hint{left:12px;right:12px;top:12px}
  .knowledge-map-stage,.knowledge-map-stage svg{min-height:560px}
  .graph-stat-grid{grid-template-columns:1fr}
}


/* V8.1 — robust responsive 2D knowledge map */
.graph-page-stack{gap:18px}
.graph-explorer{overflow:hidden}
.graph-intro-card{min-height:300px}
.graph-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px 18px;border-bottom:1px solid var(--line);background:rgba(7,12,10,.72)}
.graph-control{display:grid;gap:6px;min-width:210px;flex:1}
.graph-control span{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--soft)}
.graph-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.graph-tool-btn{min-height:44px;padding-inline:14px}
.graph-workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:min(76vh,820px)}
.graph-viewport{position:relative;min-height:min(76vh,820px);overflow:hidden;touch-action:none;cursor:grab;background:radial-gradient(circle at 50% 40%,rgba(137,247,173,.055),transparent 40%),linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.005))}
.graph-viewport.dragging{cursor:grabbing}
.graph-viewport svg{width:100%;height:100%;min-height:min(76vh,820px);display:block;user-select:none}
.graph-help{position:absolute;z-index:5;left:14px;top:14px;max-width:520px;padding:9px 11px;border:1px solid var(--line);background:rgba(8,13,11,.78);backdrop-filter:blur(10px);font-size:12px;color:var(--muted);pointer-events:none;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.graph-info-panel{padding:18px;display:grid;align-content:start;gap:14px;border-left:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01));overflow:auto;max-height:min(76vh,820px)}
.graph-info-panel h3{margin:0;font-size:28px}.graph-info-panel p{margin:0;color:var(--muted);line-height:1.72}
.graph-grid-layer path{stroke:rgba(255,255,255,.055);stroke-width:1;vector-effect:non-scaling-stroke}
.graph-node{cursor:pointer;transition:opacity .16s ease,filter .16s ease}.graph-node circle{transition:r .16s ease,stroke-width .16s ease,fill .16s ease}.graph-node text{pointer-events:none}.graph-node.active circle{filter:url(#nodeGlow);stroke-width:4}.graph-node.connected circle{stroke-width:3}.graph-node.dimmed{opacity:.18}.graph-node:hover circle{filter:url(#nodeGlow)}
.graph-edge{vector-effect:non-scaling-stroke;transition:opacity .16s ease,stroke-width .16s ease}.graph-edge.membership{stroke:rgba(255,255,255,.12);stroke-width:1.1}.graph-edge.dependency{stroke:rgba(137,247,173,.45);stroke-width:1.8}.graph-edge.related{stroke:rgba(149,128,255,.26);stroke-width:1.1;stroke-dasharray:5 6}.graph-edge.path{stroke:rgba(255,217,120,.60);stroke-width:2.1}.graph-edge.active{opacity:1!important;stroke-width:3}
.graph-explorer:fullscreen{background:#07100c;padding:0;width:100vw;height:100vh;clip-path:none;border:0}.graph-explorer:fullscreen .graph-workspace{height:calc(100vh - 78px);min-height:0}.graph-explorer:fullscreen .graph-viewport,.graph-explorer:fullscreen .graph-viewport svg{height:100%;min-height:0}.graph-explorer:fullscreen .graph-info-panel{max-height:calc(100vh - 78px)}
.graph-explorer.pseudo-fullscreen{position:fixed!important;inset:0!important;z-index:9999!important;background:#07100c;clip-path:none!important;border:0!important}.graph-explorer.pseudo-fullscreen .graph-workspace{height:calc(100vh - 78px)}
@media(max-width:1100px){
  .graph-workspace{grid-template-columns:1fr;min-height:0}
  .graph-viewport{min-height:62vh}.graph-viewport svg{min-height:62vh}
  .graph-info-panel{border-left:0;border-top:1px solid var(--line);max-height:none;overflow:visible}
  .graph-toolbar-actions{width:100%;margin-left:0}.graph-tool-btn{flex:1}
  .graph-explorer:fullscreen .graph-workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;height:calc(100vh - 110px)}
  .graph-explorer:fullscreen .graph-info-panel{max-height:32vh;overflow:auto}
}
@media(max-width:680px){
  .graph-intro-card{display:none}
  .graph-page-stack{gap:0}.page{padding-top:10px}
  .graph-toolbar{padding:10px;gap:8px}.graph-control{min-width:100%}.graph-control span{display:none}.graph-toolbar-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.graph-tool-btn{min-height:40px;padding:0 8px;font-size:12px}
  .graph-viewport{min-height:64vh}.graph-viewport svg{min-height:64vh}.graph-help{font-size:10.5px;left:8px;right:8px;top:8px;max-width:none}
  .graph-info-panel{padding:14px}.graph-info-panel h3{font-size:23px}.graph-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.graph-stat{padding:9px}.graph-stat strong{font-size:14px}.graph-stat span{font-size:10px}
}


/* V8.2 — readable clustered map + explicit active state */
.graph-zone-layer{pointer-events:none}
.graph-zone-bg{fill:rgba(255,255,255,.018);stroke-opacity:.22;stroke-width:2;vector-effect:non-scaling-stroke}
.graph-zone-accent{opacity:.55}
.graph-zone-title{font-size:22px;font-weight:900;fill:#eef7f1;paint-order:stroke;stroke:#08110d;stroke-width:6px}
.graph-zone-count{font-size:13px;font-weight:800;fill:#94a69a;paint-order:stroke;stroke:#08110d;stroke-width:5px}
.graph-node-shape{transition:fill .16s ease,stroke-width .16s ease,filter .16s ease}
.graph-node-label{font-size:14px!important;font-weight:850;fill:#f6fbf7;stroke:#08110d!important;stroke-width:5px!important;paint-order:stroke}
.graph-node .category-label{font-size:18px!important}
.graph-node.active .graph-node-shape{filter:url(#nodeGlow);stroke-width:4!important;fill:rgba(137,247,173,.08)}
.graph-node.hovered .graph-node-shape{filter:url(#nodeGlow);stroke-width:3!important;fill:rgba(149,128,255,.07)}
.graph-node.connected .graph-node-shape{stroke-width:3!important}
.graph-node.dimmed{opacity:.22}
.graph-edge.dependency,.graph-edge.related{opacity:0}
.graph-edge.membership{display:none}
.graph-edge.path{opacity:0}
.graph-edge.path.path-visible{opacity:.55}
.graph-edge.active{opacity:1!important;stroke-width:3!important}
.graph-info-panel{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.graph-info-panel.has-active{border-left-color:rgba(137,247,173,.42);background:linear-gradient(180deg,rgba(137,247,173,.055),rgba(255,255,255,.012));box-shadow:inset 4px 0 0 rgba(137,247,173,.08)}
.graph-info-empty{display:grid;gap:14px;align-content:start}
.graph-active-tab{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid rgba(137,247,173,.18);background:rgba(137,247,173,.07);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));font-size:12px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#dff7e7}
.graph-active-dot{width:10px;height:10px;border-radius:50%;box-shadow:0 0 14px currentColor}
.graph-active-tab button{width:28px;height:28px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted);cursor:pointer;font-size:18px;line-height:1}
.graph-active-tab button:hover{color:#fff;border-color:var(--line-strong)}
@media(max-width:1100px){
  .graph-info-panel.has-active{border-left-color:transparent;border-top-color:rgba(137,247,173,.42);box-shadow:inset 0 4px 0 rgba(137,247,173,.08)}
}


/* V8.3 — dynamic non-overlapping zones + click-only active state */
.graph-zone-rule{stroke:rgba(255,255,255,.07);stroke-width:1;vector-effect:non-scaling-stroke}
.graph-zone-bg{fill:rgba(255,255,255,.015);stroke-opacity:.20}
.graph-node.type-concept .graph-node-shape{fill:#0f1714}
.graph-node.hovered:not(.active) .graph-node-shape{filter:url(#nodeGlow);stroke-width:3!important;fill:rgba(149,128,255,.055)}
.graph-node.active .graph-node-shape{filter:url(#nodeGlow);stroke-width:4!important;fill:rgba(137,247,173,.11)}
.graph-node.connected .graph-node-shape{stroke-width:3!important;fill:rgba(255,255,255,.035)}
.graph-node.dimmed{opacity:.17}
.graph-edge.dependency,.graph-edge.related,.graph-edge.path{opacity:0}
.graph-edge.active{opacity:1!important}
.graph-edge.path.path-visible{opacity:.55}
.graph-info-panel.has-active{position:relative}
.graph-active-tab{position:sticky;top:0;z-index:2;backdrop-filter:blur(12px)}
@media(max-width:1100px){
  .graph-workspace{grid-template-columns:minmax(0,1fr) 320px}
  .graph-info-panel{border-left:1px solid var(--line);border-top:0;max-height:min(74vh,760px);overflow:auto}
}
@media(max-width:820px){
  .graph-workspace{grid-template-columns:1fr}
  .graph-info-panel{border-left:0;border-top:1px solid var(--line);max-height:none;overflow:visible}
}


/* V9 — longer, structured educational entries */
.lesson-intro p{max-width:920px}
.lesson-intro .strong-lead{font-size:20px;line-height:1.65;color:#f4faf5;margin-bottom:16px}
.mechanism-panel{background:linear-gradient(180deg,rgba(137,247,173,.065),rgba(13,19,16,.95))}
.mechanism-steps{display:grid;gap:10px;margin-top:18px}
.mechanism-step{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:start;padding:14px;border:1px solid var(--line);background:rgba(255,255,255,.025);clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px))}
.mechanism-number{width:42px;height:42px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green),var(--lime));color:#06110a;font-weight:900;font-size:18px;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
.mechanism-step strong{display:block;color:#f4faf5;font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.mechanism-step p{margin:5px 0 0;color:var(--muted);line-height:1.72}
.lesson-context h3{margin:10px 0 8px;font-size:18px}
.concept-divider{height:1px;background:var(--line);margin:20px 0}
.evidence-reading{background:linear-gradient(180deg,rgba(134,239,255,.045),rgba(13,19,16,.95))}
.evidence-strip{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 14px;border-left:3px solid #86efff;background:rgba(134,239,255,.055)}
.evidence-strip span{font-weight:850;color:#eafbff}
.evidence-strip small{color:var(--soft)}
@media(max-width:680px){
  .mechanism-step{grid-template-columns:38px minmax(0,1fr);padding:12px;gap:10px}
  .mechanism-number{width:34px;height:34px;font-size:15px}
  .lesson-intro .strong-lead{font-size:18px}
}


/* V10 — personal cannabis profiler */
.profiler-page{gap:20px}
.profiler-cover .page-cover-visual img{min-height:260px}
.profiler-disclaimer{padding:16px 18px;border:1px solid rgba(255,217,120,.24);background:rgba(255,217,120,.07);color:#f6eed5;line-height:1.65;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}
.profiler-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:18px;align-items:start}
.profiler-form{display:grid;gap:16px}
.profiler-section{padding:20px;border:1px solid var(--line);background:linear-gradient(180deg,var(--panel),var(--panel-2));clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,var(--cut) 100%,0 calc(100% - var(--cut)))}
.profiler-section h2,.profiler-result-card h2,.profiler-history h2,.profiler-feedback h2{margin:7px 0 14px}
.profiler-section h2 small{font-size:.58em;color:var(--soft);font-weight:650}
.profiler-help{color:var(--muted);line-height:1.65;margin:-4px 0 14px}
.profiler-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profiler-terp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.profiler-field{display:grid;gap:7px;min-width:0}
.profiler-field.wide{grid-column:1/-1}
.profiler-field>span,.feedback-slider>span{font-size:12px;font-weight:800;color:var(--muted);display:flex;justify-content:space-between;gap:8px}
.profiler-field small{color:var(--soft);font-weight:600}
.profiler-field input,.profiler-field select,.profiler-field textarea{width:100%;min-width:0;border:1px solid var(--line);background:#0a110e;color:var(--text);padding:11px 12px;outline:none;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px))}
.profiler-field input:focus,.profiler-field select:focus,.profiler-field textarea:focus{border-color:rgba(137,247,173,.45);box-shadow:inset 0 0 0 1px rgba(137,247,173,.12)}
.profiler-field input[type=range]{padding:0;clip-path:none;accent-color:var(--green)}
.profiler-mode-switch{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.profiler-mode-switch label{cursor:pointer}
.profiler-mode-switch input{position:absolute;opacity:0;pointer-events:none}
.profiler-mode-switch span{display:inline-flex;min-height:42px;align-items:center;padding:0 13px;border:1px solid var(--line);background:rgba(255,255,255,.03);font-weight:800;color:var(--muted)}
.profiler-mode-switch input:checked+span{border-color:rgba(137,247,173,.34);background:rgba(137,247,173,.11);color:var(--text)}
.profiler-note{margin-top:12px;padding:12px 14px;border-left:3px solid var(--green);background:rgba(137,247,173,.05);color:var(--muted);font-size:13px;line-height:1.65}
.profiler-auto-hint{min-height:18px;margin-top:10px;color:var(--soft);font-size:12px;line-height:1.55}.profiler-auto-hint:not(:empty)::before{content:"AUTO • ";color:var(--green);font-weight:900;letter-spacing:.08em}
.profiler-note.warning{border-left-color:var(--yellow);background:rgba(255,217,120,.05)}
.profiler-checks{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.profiler-checks label{display:inline-flex;gap:7px;align-items:center;padding:9px 11px;border:1px solid var(--line);background:rgba(255,255,255,.03);font-size:13px;color:var(--muted)}
.profiler-checks input{accent-color:var(--green)}
.profiler-validation{min-height:24px;color:var(--red);font-weight:750;font-size:13px}
.profiler-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.profiler-result{position:sticky;top:126px;min-width:0}
.profiler-result-empty,.profiler-result-card{padding:22px;border:1px solid var(--line);background:linear-gradient(180deg,var(--panel),var(--panel-2));box-shadow:var(--shadow);clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,var(--cut) 100%,0 calc(100% - var(--cut)))}
.profiler-result-empty{min-height:420px;display:grid;align-content:center;gap:10px;text-align:center}
.profiler-result-empty h2{margin:0}.profiler-result-empty p{color:var(--muted);line-height:1.7;margin:0 auto;max-width:540px}
.profiler-orbit{width:92px;height:92px;margin:0 auto 6px;border:1px solid rgba(137,247,173,.25);display:grid;place-items:center;font-size:38px;color:var(--green);border-radius:50%;box-shadow:inset 0 0 0 18px rgba(137,247,173,.025)}
.profiler-empty-flow{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:16px;color:var(--soft);font-size:12px}.profiler-empty-flow span{padding:7px 9px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.profiler-result-head{display:flex;gap:16px;justify-content:space-between;align-items:start}
.confidence-badge{min-width:88px;padding:10px;border:1px solid var(--line);text-align:center}.confidence-badge span{display:block;font-weight:900;text-transform:uppercase;font-size:12px}.confidence-badge small{display:block;color:var(--soft);margin-top:3px}.confidence-badge.good{border-color:rgba(137,247,173,.28)}.confidence-badge.mid{border-color:rgba(255,217,120,.28)}.confidence-badge.low{border-color:rgba(255,141,167,.28)}
.profiler-safety{padding:11px 12px;margin-bottom:14px;border-left:3px solid var(--yellow);background:rgba(255,217,120,.06);color:#e8dfc7;font-size:12px;line-height:1.55}
.profiler-score-list{display:grid;gap:12px}
.profiler-score-top{display:flex;justify-content:space-between;gap:12px;font-size:13px}.profiler-score-top span{color:var(--muted);font-weight:750}.profiler-score-top strong{font-size:15px}.profiler-score-top small{color:var(--soft);font-weight:700}
.profiler-score-track{height:8px;background:rgba(255,255,255,.06);overflow:hidden;margin-top:6px}.profiler-score-track span{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--purple))}
.profiler-score-range{font-size:10.5px;color:var(--soft);margin-top:4px}
.profiler-time-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.profiler-time-grid div{padding:10px;border:1px solid var(--line);background:rgba(255,255,255,.025)}.profiler-time-grid span{display:block;color:var(--soft);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.profiler-time-grid strong{display:block;margin-top:5px;font-size:13px}
.profiler-explain{display:grid;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.profiler-factor{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:start;font-size:12px}.profiler-factor strong{color:var(--muted)}.profiler-factor strong.strong{color:var(--green)}.profiler-factor strong.medium{color:var(--yellow)}.profiler-factor strong.low{color:var(--soft)}.profiler-factor span{color:var(--soft);line-height:1.5}
.profiler-personal-box{margin:16px 0;padding:14px;border:1px solid rgba(149,128,255,.16);background:rgba(149,128,255,.05)}.profiler-personal-box.active{border-color:rgba(137,247,173,.24);background:rgba(137,247,173,.05)}.profiler-personal-box strong{display:block;margin-top:5px}.profiler-personal-box p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.profiler-history{margin-top:2px}.profiler-history-head,.profiler-feedback-head{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap}.profiler-history-list{display:grid;gap:10px;margin-top:14px}
.profiler-session{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:14px;border:1px solid var(--line);background:rgba(255,255,255,.025)}.profiler-session.calibrated{border-color:rgba(137,247,173,.20)}.profiler-session h3{margin:5px 0}.profiler-session p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.profiler-session-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.profiler-session-actions .button,.profiler-session-actions .button-secondary{min-height:38px;padding:0 11px;font-size:12px}.session-pending{display:inline-flex;margin-top:8px;padding:5px 8px;border:1px solid rgba(255,217,120,.18);color:var(--yellow);font-size:11px}.session-actual{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px;color:var(--soft);font-size:11px}.session-actual strong{color:var(--green);font-size:13px}
.icon-delete{width:38px;height:38px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted);cursor:pointer;font-size:20px}.icon-delete:hover,.button-secondary.danger:hover{border-color:rgba(255,141,167,.35);color:var(--red)}
.profiler-feedback{margin-top:2px}.feedback-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 18px}.feedback-slider{display:grid;gap:8px}.feedback-slider input{width:100%;accent-color:var(--green)}.feedback-slider output{color:var(--text);font-weight:900}
.profiler-saved{border-color:rgba(137,247,173,.22)}
@media(max-width:1100px){.profiler-layout{grid-template-columns:1fr}.profiler-result{position:static}.profiler-terp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.profiler-field-grid,.feedback-grid,.profiler-terp-grid{grid-template-columns:1fr}.profiler-field.wide{grid-column:auto}.profiler-time-grid{grid-template-columns:1fr}.profiler-session{grid-template-columns:1fr}.profiler-session-actions{justify-content:flex-start}.profiler-factor{grid-template-columns:90px 1fr}}

/* Mobile header — compact, two-row layout */
@media (max-width: 1100px){
  .topbar{
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:10px 14px;
  }
  .brand{grid-column:1;grid-row:1;min-width:0}
  .top-actions{grid-column:2;grid-row:1;justify-content:flex-end;min-width:0}
  .main-nav{
    grid-column:1/-1;grid-row:2;
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
  }
  .main-nav::-webkit-scrollbar{display:none}
  .course-progress-slot{grid-column:1/-1;grid-row:3}
}
@media (max-width: 760px){
  .topbar{padding:8px 10px;gap:6px 8px}
  .brand{gap:8px}
  .brand-mark{width:38px;height:38px}
  .brand-title{font-size:18px}
  .top-actions{flex-direction:row;align-items:center;gap:5px;overflow:hidden}
  .search-shell{min-width:0;width:100%;height:38px;padding:0 10px;gap:7px;font-size:13px}
  .search-shell input{min-width:0;width:100%;font-size:13px}
  .main-nav{gap:3px;margin-inline:-2px;padding-bottom:1px}
  .main-nav a{padding:7px 9px;font-size:11.5px;white-space:nowrap}
  .page{padding:20px 12px 72px}
}
@media (max-width: 380px){
  .brand-mark{width:34px;height:34px}
  .brand-title{font-size:17px}
  .main-nav a{padding-inline:8px}
}

/* Mobile content density — keep page intros useful without taking over the screen */
@media (max-width: 760px){
  .hero,.page-cover{min-height:auto;padding:20px}
  .hero-content,.page-cover-main{align-content:start}
  .hero-visual,.page-cover-visual{display:none}
  .hero > .card-bg,.page-cover > .card-bg{opacity:.32}
  .hero .card-shade,.page-cover .card-shade{background:linear-gradient(180deg,rgba(5,10,8,.45),rgba(5,10,8,.86) 42%,rgba(5,10,8,.97) 100%)}
  .hero-content .kicker,.page-cover-main .kicker{margin-bottom:8px}
  .hero-content .section-title,.page-cover-main .section-title{margin-bottom:10px}
  .hero .section-lead,.page-cover .section-lead{font-size:15px;line-height:1.58}
  .hero .pills,.page-cover .pills{margin-top:14px}
  .hero .cta-row{margin-top:16px}
  .graph-help{font-size:11px;line-height:1.45}
}

/* V10.4 — transparent prediction reasoning + trust audit */
.profiler-result{position:static}
.confidence-badge{min-width:112px}
.confidence-badge span{font-size:14px;text-transform:none}
.profiler-analysis-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}
.profiler-analysis-head h3{margin:5px 0 0;font-size:16px;line-height:1.3}
.profiler-evidence-chip{flex:0 0 auto;padding:6px 8px;border:1px solid rgba(255,217,120,.22);background:rgba(255,217,120,.05);color:var(--yellow);font-size:9.5px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.profiler-model-why,.profiler-trust-card{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.profiler-driver-list{display:grid;gap:8px}
.profiler-driver{position:relative;padding:12px;border:1px solid var(--line);background:rgba(255,255,255,.022)}
.profiler-driver.strong{border-color:rgba(137,247,173,.24);background:rgba(137,247,173,.045)}
.profiler-driver.medium{border-color:rgba(255,217,120,.20);background:rgba(255,217,120,.035)}
.profiler-driver.uncertain{border-style:dashed;border-color:rgba(149,128,255,.24);background:rgba(149,128,255,.035)}
.profiler-driver-signal{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:start;padding-right:98px}
.profiler-driver-arrow{width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line);background:rgba(255,255,255,.04);font-weight:1000;color:var(--green)}
.profiler-driver-signal small{display:block;color:var(--soft);font-size:9.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.profiler-driver-signal strong{display:block;margin-top:3px;font-size:12.5px;line-height:1.35}
.profiler-driver p{margin:9px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.profiler-driver-weight{position:absolute;right:10px;top:11px;max-width:92px;text-align:right;color:var(--soft);font-size:9px;font-weight:850;line-height:1.25;text-transform:uppercase;letter-spacing:.04em}
.profiler-driver.strong .profiler-driver-weight{color:var(--green)}
.profiler-driver.medium .profiler-driver-weight{color:var(--yellow)}
.profiler-driver.uncertain .profiler-driver-weight{color:#b9aaff}
.profiler-trust-intro{margin:0 0 14px;color:var(--muted);font-size:11.5px;line-height:1.65}
.profiler-trust-ring{--trust:50;width:62px;height:62px;flex:0 0 62px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,var(--panel-2) 57%,transparent 59%),conic-gradient(var(--yellow) var(--trust),rgba(255,255,255,.07) 0);border:1px solid var(--line)}
.profiler-trust-ring.good{background:radial-gradient(circle at center,var(--panel-2) 57%,transparent 59%),conic-gradient(var(--green) var(--trust),rgba(255,255,255,.07) 0)}
.profiler-trust-ring.low{background:radial-gradient(circle at center,var(--panel-2) 57%,transparent 59%),conic-gradient(var(--red) var(--trust),rgba(255,255,255,.07) 0)}
.profiler-trust-ring span{font-weight:950;font-size:16px;line-height:1}.profiler-trust-ring small{color:var(--soft);font-size:8px;margin-top:2px}
.profiler-trust-components{display:grid;gap:10px}
.profiler-trust-component{padding:10px 11px;border:1px solid var(--line);background:rgba(255,255,255,.02)}
.profiler-trust-component-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px}.profiler-trust-component-top span{color:var(--muted);font-weight:800}.profiler-trust-component-top strong{font-size:11px}
.profiler-trust-track{height:5px;margin-top:7px;background:rgba(255,255,255,.06);overflow:hidden}.profiler-trust-track span{display:block;height:100%;background:linear-gradient(90deg,var(--purple),var(--green))}
.profiler-trust-component p{margin:7px 0 0;color:var(--soft);font-size:10.5px;line-height:1.5}
.profiler-caveats{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.profiler-caveats span{padding:5px 7px;border:1px solid rgba(255,217,120,.18);background:rgba(255,217,120,.035);color:#e6dcbf;font-size:9.5px;font-weight:750}
@media(max-width:700px){
  .confidence-badge{min-width:100px;padding:8px}
  .profiler-analysis-head{align-items:center}
  .profiler-evidence-chip{display:none}
  .profiler-driver-signal{padding-right:0}
  .profiler-driver-weight{position:static;display:inline-block;margin-top:8px;max-width:none;text-align:left}
}

/* V10.5 — UX hardening + clearer prediction hierarchy */
.profiler-journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border:1px solid var(--line);background:rgba(8,17,13,.78);backdrop-filter:blur(12px)}
.profiler-journey button{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;text-align:left;min-width:0;padding:10px;border:1px solid transparent;background:rgba(255,255,255,.025);color:var(--muted);cursor:pointer;transition:.16s ease}
.profiler-journey button:hover{background:rgba(255,255,255,.05);border-color:var(--line-strong)}
.profiler-journey b{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);color:var(--soft);font-size:12px}
.profiler-journey span{font-size:12px;font-weight:900;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profiler-journey small{font-size:9.5px;color:var(--soft);margin-top:1px}
.profiler-journey button.complete b{border-color:rgba(137,247,173,.34);background:rgba(137,247,173,.09);color:var(--green)}
.profiler-journey button.complete:not(.optional){border-color:rgba(137,247,173,.10)}
.profiler-journey button.needs-attention b{border-color:rgba(255,141,167,.28);color:var(--red)}
.profiler-section{scroll-margin-top:118px}
.profiler-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0 0;border-top:1px solid var(--line)}
.profiler-ready-state{display:flex;align-items:center;gap:8px;min-width:0;color:var(--soft);font-size:11px;font-weight:750;line-height:1.35}
.profiler-ready-state .ready-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 4px rgba(255,217,120,.07)}
.profiler-ready-state.ready{color:var(--muted)}
.profiler-ready-state.ready .ready-dot{background:var(--green);box-shadow:0 0 0 4px rgba(137,247,173,.07)}
.profiler-ready-state.missing{color:#e6b8c3}
.profiler-ready-state.missing .ready-dot{background:var(--red);box-shadow:0 0 0 4px rgba(255,141,167,.07)}
.profiler-submit-bar .button:disabled{opacity:.42;cursor:not-allowed;filter:saturate(.45)}
.profiler-result-context{margin:-6px 0 0;color:var(--soft);font-size:10.5px;line-height:1.45}
.profiler-result-overview{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);gap:10px;margin:14px 0}
.profiler-intensity-hero{display:grid;align-content:center;min-height:126px;padding:16px;border:1px solid rgba(137,247,173,.22);background:linear-gradient(135deg,rgba(137,247,173,.09),rgba(149,128,255,.055))}
.profiler-intensity-hero>span{font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
.profiler-intensity-hero strong{font-size:36px;line-height:1;margin:9px 0 6px;letter-spacing:-.04em}
.profiler-intensity-hero strong small{font-size:13px;color:var(--soft);letter-spacing:0}
.profiler-intensity-hero em{font-style:normal;color:var(--muted);font-size:10.5px}
.profiler-dominant-effects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profiler-dominant-effects div{display:grid;align-content:center;gap:7px;padding:12px;border:1px solid var(--line);background:rgba(255,255,255,.025)}
.profiler-dominant-effects span{font-size:10px;color:var(--soft);line-height:1.25}
.profiler-dominant-effects strong{font-size:16px}
.profiler-full-profile{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.profiler-section-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;margin-bottom:13px}
.profiler-section-head h3{margin:4px 0 0;font-size:16px}
.profiler-section-head>span{max-width:180px;text-align:right;color:var(--soft);font-size:9.5px;line-height:1.4}
.profiler-driver-targets{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0 0 39px}
.profiler-driver-targets span{padding:4px 6px;border:1px solid rgba(137,247,173,.13);background:rgba(137,247,173,.035);color:#cfe5d6;font-size:9px;font-weight:800}
.profiler-next-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding:14px;border:1px solid rgba(137,247,173,.18);background:rgba(137,247,173,.045)}
.profiler-next-actions>div:first-child{min-width:0}
.profiler-next-actions>div:first-child span{display:block;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.profiler-next-actions>div:first-child strong{display:block;margin-top:4px;font-size:11px;line-height:1.4}

@media(max-width:800px){
  .profiler-journey{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;padding:8px;gap:6px}
  .profiler-journey::-webkit-scrollbar{display:none}
  .profiler-journey button{flex:0 0 126px;padding:8px;grid-template-columns:26px minmax(0,1fr);column-gap:7px}
  .profiler-journey b{width:26px;height:26px}
  .profiler-section{scroll-margin-top:104px}
  .profiler-result-overview{grid-template-columns:1fr}
  .profiler-intensity-hero{min-height:112px}
  .profiler-dominant-effects{grid-template-columns:repeat(3,minmax(0,1fr))}
  .profiler-next-actions{align-items:flex-start;flex-direction:column}
}
@media(max-width:700px){
  .profiler-submit-bar{position:sticky;bottom:0;z-index:12;margin:0 -12px -12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(8,17,13,.91),rgba(8,17,13,.98));backdrop-filter:blur(14px);border-top:1px solid var(--line-strong)}
  .profiler-submit-bar .profiler-actions{flex-wrap:nowrap;flex:0 0 auto}
  .profiler-submit-bar .button,.profiler-submit-bar .button-secondary{min-height:42px;padding-inline:12px;font-size:11.5px}
  .profiler-ready-state{font-size:10px}
  .profiler-result-head{align-items:flex-start}
  .profiler-dominant-effects{gap:6px}
  .profiler-dominant-effects div{padding:10px 8px}
  .profiler-dominant-effects strong{font-size:14px}
  .profiler-driver-targets{margin-left:0}
  .profiler-section-head{align-items:flex-start;flex-direction:column}
  .profiler-section-head>span{text-align:left;max-width:none}
}
@media(max-width:430px){
  .profiler-submit-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .profiler-submit-bar .button-secondary{display:none}
  .profiler-ready-state{line-height:1.25}
  .profiler-dominant-effects{grid-template-columns:1fr 1fr 1fr}
  .profiler-dominant-effects span{font-size:9px}
  .profiler-intensity-hero strong{font-size:32px}
}

/* V10.5 progressive disclosure: keep the result useful without making it a wall of data */
.profiler-result{scroll-margin-top:112px}
.profiler-disclosure{margin-top:10px;border:1px solid var(--line);background:rgba(255,255,255,.018)}
.profiler-disclosure.profiler-full-profile,.profiler-disclosure.profiler-model-why,.profiler-disclosure.profiler-trust-card{padding:0;border-top:1px solid var(--line)}
.profiler-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;cursor:pointer;list-style:none;user-select:none;transition:.15s ease}
.profiler-disclosure>summary::-webkit-details-marker{display:none}
.profiler-disclosure>summary:hover{background:rgba(255,255,255,.035)}
.profiler-disclosure>summary>div:first-child{min-width:0}
.profiler-disclosure>summary .kicker{margin:0 0 4px}
.profiler-disclosure>summary strong{display:block;font-size:12px;line-height:1.35}
.profiler-disclosure-state{flex:0 0 auto;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.profiler-disclosure-state::before{content:'Rozwiń'}
.profiler-disclosure[open]>.profiler-disclosure-state::before,.profiler-disclosure[open]>summary .profiler-disclosure-state::before{content:'Zwiń'}
.profiler-disclosure[open]>summary{background:rgba(137,247,173,.025);border-bottom:1px solid var(--line)}
.profiler-disclosure-body{padding:14px}
.profiler-disclosure .profiler-analysis-head{margin-bottom:13px}
.profiler-disclosure .profiler-section-head{margin-bottom:13px}
.profiler-disclosure .profiler-section-head>span{text-align:left;max-width:none}
.profiler-disclosure.profiler-trust-card>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
.profiler-disclosure.profiler-trust-card .profiler-trust-ring{width:48px;height:48px;flex-basis:48px}
.profiler-disclosure.profiler-trust-card .profiler-trust-ring span{font-size:13px}
@media(max-width:700px){
  .profiler-result{scroll-margin-top:96px}
  .profiler-disclosure>summary{padding:12px}
  .profiler-disclosure-body{padding:12px}
  .profiler-disclosure.profiler-trust-card>summary{grid-template-columns:minmax(0,1fr) auto}
  .profiler-disclosure.profiler-trust-card>summary .profiler-disclosure-state{grid-column:1/-1;justify-self:start;margin-top:-5px}
}


/* V10.6 — data quality, feedback, search and map UX */
.profiler-inline-status{display:grid;gap:5px;margin-top:10px;font-size:12px;line-height:1.5}
.profiler-inline-status:empty{display:none}
.profiler-inline-status span{display:block;padding:8px 10px;border:1px solid var(--line);background:rgba(255,255,255,.02)}
.profiler-inline-status .status-ok{border-color:rgba(137,247,173,.20);color:#ccefd7;background:rgba(137,247,173,.055)}
.profiler-inline-status .status-warn{border-color:rgba(255,217,120,.24);color:#ffe6a2;background:rgba(255,217,120,.055)}
.profiler-inline-status .status-error{border-color:rgba(255,141,167,.32);color:#ffc0cf;background:rgba(255,141,167,.07)}
.terp-mode-switch{margin-bottom:12px}
.feedback-intro{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid rgba(137,247,173,.16);background:rgba(137,247,173,.045);color:var(--muted);font-size:13px}
.feedback-intro strong{color:var(--text)}
.feedback-control-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.feedback-slider.unrated{opacity:.68}
.feedback-slider.unrated input[type=range]{filter:saturate(.2)}
.feedback-rate-toggle{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 9px;border:1px solid var(--line);background:rgba(255,255,255,.025);font-size:11px;font-weight:800;color:var(--muted);cursor:pointer;white-space:nowrap}
.feedback-rate-toggle input{accent-color:var(--green)}
.feedback-slider.rated .feedback-rate-toggle{border-color:rgba(137,247,173,.30);color:var(--text);background:rgba(137,247,173,.07)}
.session-actual-flex{display:flex;flex-wrap:wrap;gap:7px!important;align-items:center}
.session-actual-flex span{display:inline-flex;gap:5px;align-items:baseline;padding:6px 8px;border:1px solid rgba(137,247,173,.14);background:rgba(137,247,173,.035)}
.search-results{max-height:min(68vh,620px);overflow:auto}
.search-hit{outline:none}
.search-hit.selected,.search-hit:focus-visible{background:rgba(137,247,173,.075);box-shadow:inset 3px 0 0 var(--green)}
.search-hit-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.search-hit-top>span{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--green);white-space:nowrap}
.search-hit-snippet{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.search-hit mark{padding:0 2px;background:rgba(212,255,111,.16);color:#efffc5}
.search-empty-result{display:grid;gap:4px;color:var(--muted)}
.graph-quick-open{position:absolute;z-index:7;right:12px;bottom:12px;max-width:min(78%,360px);min-height:42px;padding:9px 13px;border:1px solid rgba(137,247,173,.34);background:rgba(8,18,13,.94);backdrop-filter:blur(12px);color:#edfff2;font-weight:900;cursor:pointer;box-shadow:0 12px 32px rgba(0,0,0,.35);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.graph-quick-open:hover{background:rgba(137,247,173,.12)}
.graph-quick-open[hidden]{display:none}
@media(max-width:700px){
  .feedback-control-row{grid-template-columns:1fr}
  .feedback-rate-toggle{width:max-content}
  .graph-quick-open{right:8px;bottom:8px;max-width:calc(100% - 16px)}
  .search-results{left:8px!important;right:8px!important;top:92px!important;width:auto!important;max-height:62vh}
  .search-hit{padding:12px 13px}
  .search-hit-top>span{display:none}
}


/* V10.7 — clearer course actions + restrained motion system */
html{scroll-behavior:smooth}

.course-card{align-content:start}
.course-card-media{display:block;overflow:hidden;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px))}
.course-card-media .course-cover-thumb{transition:transform .22s cubic-bezier(.2,.7,.2,1),filter .22s ease}
.course-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:2px}
.course-open-button,.course-lesson-button{min-height:42px;padding-inline:14px;font-size:12px;white-space:nowrap;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
.course-open-button span,.course-lesson-button span{font-size:16px;line-height:1;transition:transform .16s ease}
.course-step-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px}
.course-step-actions .toggle-done{margin-left:auto}
.path-step h3{margin:0;font-size:20px}

/* Page changes should feel responsive, not theatrical. */
.page>.stack{animation:na-view-in .22s cubic-bezier(.2,.75,.25,1) both}
@keyframes na-view-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* Small stagger makes lists readable while keeping total motion under ~300 ms. */
.path-grid>.course-card,.path-step-list>.path-step{animation:na-card-in .24s cubic-bezier(.2,.75,.25,1) both}
.path-grid>:nth-child(2),.path-step-list>:nth-child(2){animation-delay:25ms}
.path-grid>:nth-child(3),.path-step-list>:nth-child(3){animation-delay:50ms}
.path-grid>:nth-child(4),.path-step-list>:nth-child(4){animation-delay:75ms}
.path-grid>:nth-child(5),.path-step-list>:nth-child(5){animation-delay:100ms}
.path-grid>:nth-child(n+6),.path-step-list>:nth-child(n+6){animation-delay:120ms}
@keyframes na-card-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.button,.button-secondary,.toggle-done,.link-chip,.related-card,.source-card,.cover-card,.topic-card,.path-step,.mini-card,.profiler-disclosure>summary,.graph-quick-open{
  transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .18s ease,filter .16s ease,opacity .16s ease;
}
.progress-track span{transition:width .48s cubic-bezier(.2,.75,.25,1)}
.profiler-disclosure[open]>.profiler-disclosure-body{animation:na-disclosure-in .18s ease both}
@keyframes na-disclosure-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.search-results:not([hidden]){animation:na-pop-in .15s ease-out both}
@keyframes na-pop-in{from{opacity:0;transform:translateY(-4px) scale(.995)}to{opacity:1;transform:none}}

@media(hover:hover) and (pointer:fine){
  .course-card:hover,.topic-card:hover,.path-step:hover,.related-card:hover,.source-card:hover{transform:translateY(-2px);border-color:var(--line-strong)}
  .course-card:hover .course-card-media .course-cover-thumb{transform:scale(1.012);filter:brightness(1.035)}
  .course-open-button:hover,.course-lesson-button:hover,.button:hover{filter:brightness(1.035);box-shadow:0 8px 22px rgba(137,247,173,.10)}
  .course-open-button:hover span,.course-lesson-button:hover span{transform:translateX(2px)}
  .toggle-done:hover,.button-secondary:hover{background:rgba(255,255,255,.065);border-color:var(--line-strong)}
  .main-nav a:hover{transform:translateY(-1px)}
}
.button:active,.button-secondary:active,.toggle-done:active,.course-open-button:active,.course-lesson-button:active{transform:translateY(1px) scale(.99)}

@media(max-width:700px){
  .course-card-footer{align-items:stretch;flex-direction:column}
  .course-card-footer .meta-line{order:1}
  .course-card-footer .course-open-button{order:2;width:100%;justify-content:center}
  .course-step-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .course-step-actions .button,.course-step-actions .toggle-done{width:100%;min-height:44px;margin:0;justify-content:center;text-align:center;padding-inline:10px}
}
@media(max-width:430px){
  .course-step-actions{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
