@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.otf") format("opentype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-ExtraBold.otf") format("opentype"); font-weight: 800 900; font-display: swap; }
:root {
  --vanilla: #F2F3AE;
  --gold: #EDD382;
  --sandy: #FC9E4F;
  --flame: #FF521B;
  --prussian: #020122;
  --paper: #FFFDF0;
  --ink: #020122;
  --ink-2: #3a3956;
  --line: #e7dfb4;
  --radius: 16px;
  --shadow: 0 2px 0 rgba(2, 1, 34, .08), 0 8px 24px rgba(2, 1, 34, .06);
  --font: "Gilroy", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px;
  padding: 12px 24px; background: var(--prussian); color: var(--vanilla); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--flame); }
.stud { width: 26px; height: 26px; border-radius: 6px; background: var(--flame); position: relative; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.stud::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sandy); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.crumbs { flex: 1; display: flex; gap: 8px; font-weight: 700; font-size: 14px; color: var(--gold); overflow: hidden; white-space: nowrap; }
.crumbs a { text-decoration: none; opacity: .8; } .crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs span { opacity: .5; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.hub-pill { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(242,243,174,.1); }
.hub-pill i { width: 9px; height: 9px; border-radius: 50%; background: #8a89a3; }
.hub-pill.on i { background: #7be07b; box-shadow: 0 0 8px #7be07b; }
.hub-pill.run i { background: var(--sandy); box-shadow: 0 0 8px var(--sandy); }

.btn { border: 0; border-radius: 99px; padding: 10px 20px; font-weight: 800; background: var(--flame); color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transition: transform .08s; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-dark { background: var(--prussian); color: var(--vanilla); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.icon-btn { border: 0; background: none; color: inherit; font-size: 20px; width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { background: rgba(242,243,174,.12); }
:focus-visible { outline: 3px solid var(--sandy); outline-offset: 2px; }

/* Hero */
.hero { background: var(--flame); color: #fff; padding: 56px 24px 72px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 8px 0 12px; font-weight: 900; max-width: 18ch; }
.hero p { max-width: 60ch; font-size: 18px; margin: 0; opacity: .95; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; color: var(--prussian); }
.hero .eyebrow { color: var(--vanilla); }
.bricks { position: absolute; right: -20px; top: 20px; display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; opacity: .9; transform: rotate(-8deg); }
.bricks span { height: 40px; border-radius: 8px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.15); }
.wrap { max-width: 1180px; margin: 0 auto; }
.hero.gold { background: var(--gold); color: var(--prussian); }
.hero.gold .eyebrow { color: var(--flame); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--prussian); color: var(--vanilla); }
.tag.light { background: rgba(255,255,255,.7); color: var(--prussian); }
.tag.sol { background: var(--vanilla); color: var(--prussian); border: 1.5px solid var(--prussian); }

/* Grids */
.section { padding: 40px 24px; }
.section h2 { font-size: 28px; font-weight: 900; margin: 0 0 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: -48px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; border: 1px solid var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(2,1,34,.08), 0 16px 32px rgba(2,1,34,.12); }
.card-art { height: 120px; position: relative; display: flex; align-items: flex-end; padding: 14px 18px; }
.card-art .num { font-size: 56px; font-weight: 900; line-height: .8; color: rgba(2,1,34,.85); }
.card-art .studs { position: absolute; top: 14px; right: 16px; display: flex; gap: 6px; }
.card-art .studs i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.35); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.25; }
.card-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--ink-2); font-size: 14px; }
.meta { display: flex; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: auto; padding-top: 6px; }

/* Lesson layout */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 44%); min-height: calc(100vh - 60px); }
.lesson-main { padding: 0 0 48px; min-width: 0; }
.lesson-head { background: var(--gold); padding: 28px 32px 0; }
.lesson-head h1 { margin: 4px 0 6px; font-size: 32px; font-weight: 900; line-height: 1.1; }
.lesson-head p { margin: 0; color: var(--ink-2); }
.mode { display: flex; gap: 4px; margin-top: 20px; }
.mode button { border: 0; padding: 10px 18px; border-radius: 12px 12px 0 0; background: rgba(255,255,255,.35); font-weight: 800; color: var(--prussian); }
.mode button[aria-selected="true"] { background: var(--paper); }
.steps { display: flex; gap: 8px; padding: 20px 32px 4px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); background: #fff; padding: 6px 14px 6px 6px;
  border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--prussian); }
.step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vanilla); font-size: 13px; }
.step[aria-selected="true"] { border-color: var(--flame); background: var(--flame); color: #fff; }
.step[aria-selected="true"] b { background: #fff; color: var(--flame); }
.content { padding: 12px 32px; max-width: 780px; }
.content h2 { font-size: 24px; font-weight: 900; margin: 20px 0 8px; }
.content h3 { font-size: 18px; font-weight: 900; margin: 24px 0 6px; color: var(--flame); }
.content ul { padding-left: 22px; } .content li { margin: 4px 0; }
.content code { font-family: var(--mono); font-size: .9em; background: var(--vanilla); padding: 1px 5px; border-radius: 4px; }
.question { background: var(--vanilla); border-left: 6px solid var(--flame); padding: 16px 20px; border-radius: 12px; font-size: 18px; font-weight: 800; margin: 20px 0 8px; }
.codeblock { background: var(--prussian); color: var(--vanilla); border-radius: 12px; margin: 14px 0; overflow: hidden; }
.codeblock pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.codeblock .bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; background: rgba(242,243,174,.08); font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--gold); }
.pager { display: flex; justify-content: space-between; padding: 24px 32px; max-width: 780px; }

/* Workspace */
.workspace { position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; flex-direction: column; background: var(--prussian); color: var(--vanilla); }
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(242,243,174,.12); }
.ws-bar .title { font-weight: 900; flex: 1; }
.editor { position: relative; flex: 1 1 50%; min-height: 160px; display: flex; font: 13px/1.6 var(--mono); }
.gutter { padding: 12px 8px 12px 12px; color: rgba(242,243,174,.35); text-align: right; user-select: none; white-space: pre; overflow: hidden; }
.editor textarea { flex: 1; border: 0; resize: none; background: transparent; color: var(--vanilla); font: inherit; padding: 12px 12px 12px 4px; outline: none; tab-size: 4; white-space: pre; caret-color: var(--sandy); }
.progress { height: 3px; background: var(--sandy); width: 0; transition: width .2s; }
.panes { display: flex; border-top: 1px solid rgba(242,243,174,.12); }
.panes button { flex: 1; border: 0; background: none; color: var(--gold); padding: 10px; font-weight: 800; opacity: .6; border-bottom: 3px solid transparent; }
.panes button[aria-selected="true"] { opacity: 1; border-color: var(--flame); }
.pane { flex: 1 1 45%; min-height: 0; display: flex; flex-direction: column; background: #0b0a2e; }
.console { flex: 1; margin: 0; padding: 12px 14px; overflow: auto; font: 12px/1.55 var(--mono); white-space: pre-wrap; color: #d8d9a0; }
.telemetry { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid rgba(242,243,174,.1); font-size: 12px; font-weight: 700; }
.telemetry span { background: rgba(242,243,174,.1); padding: 3px 9px; border-radius: 99px; }

.chat { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg.user { align-self: flex-end; background: var(--flame); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--vanilla); color: var(--prussian); border-bottom-left-radius: 4px; }
.msg.ai .codeblock { margin: 8px 0; }
.msg p { margin: 4px 0; }
.msg.err { background: #ffd9cc; color: #7a1d00; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.quick button { border: 1.5px solid rgba(242,243,174,.3); background: none; color: var(--vanilla); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.quick button:hover { border-color: var(--sandy); color: var(--sandy); }
.ask { display: flex; gap: 8px; padding: 10px 14px 14px; }
.ask input { flex: 1; border-radius: 99px; border: 0; padding: 10px 16px; font: inherit; background: var(--paper); color: var(--prussian); }

dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(440px, 92vw); box-shadow: 0 20px 60px rgba(2,1,34,.35); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(2,1,34,.55); }
dialog h2 { margin: 0 0 14px; font-weight: 900; }
dialog label { display: grid; gap: 6px; font-weight: 800; }
dialog input { padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); font: inherit; }
.muted { color: var(--ink-2); font-size: 13px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

@media (max-width: 960px) {
  .lesson { grid-template-columns: 1fr; }
  .workspace { position: static; height: 80vh; }
  .crumbs { display: none; }
  .hub-pill span { display: none; }
}
@media (max-width: 600px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand { font-size: 16px; }
  #connectBtn { padding: 8px 12px; font-size: 13px; }
  .lesson-head, .steps, .content, .pager { padding-left: 16px; padding-right: 16px; }
  .section, .hero { padding-left: 16px; padding-right: 16px; }
  .bricks { display: none; }
}

/* ===== Halo-inspired layer: deep night hero, glow, thin type, pill + chip buttons ===== */
:root { --font: "Gilroy", system-ui, sans-serif; --serif: "Gilroy", system-ui, sans-serif; --night: #020122; --night-2: #0a0838; }
body { letter-spacing: -0.005em; }
h1, h2, h3, .brand { letter-spacing: -0.03em; }
h1 em, h2 em, .display em { font-family: var(--serif); font-style: normal; font-weight: 800; letter-spacing: -0.01em; color: var(--sandy); }

.topbar { background: rgba(2,1,34,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(242,243,174,.08); }
.brand { font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.brand b { font-family: var(--serif); font-style: normal; font-weight: 800; text-transform: none; font-size: 22px; }
.stud { width: 22px; height: 22px; border-radius: 50%; background: none; border: 3px solid var(--vanilla); border-right-color: transparent; box-shadow: none; }
.stud::after { inset: auto; width: 7px; height: 7px; right: -6px; top: -5px; background: var(--flame); box-shadow: 0 0 10px var(--flame); }
.crumbs { justify-content: center; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 500; color: rgba(242,243,174,.75); }

.btn { font-weight: 600; box-shadow: none; letter-spacing: .01em; }
.btn:hover { transform: none; filter: brightness(1.08); }
.btn-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 18px; background: transparent; color: var(--vanilla);
  border: 1px solid rgba(242,243,174,.25); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.btn-pill .chip { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vanilla); color: var(--night); font-style: normal; font-size: 14px; transition: transform .25s, background .25s; }
.btn-pill:hover .chip { transform: rotate(-45deg); background: var(--flame); color: #fff; }

/* Night hero */
.hero.halo { background: radial-gradient(120% 70% at 50% 110%, #1b1260 0%, var(--night-2) 35%, var(--night) 70%); color: var(--vanilla);
  padding: 72px 24px 56px; text-align: center; overflow: hidden; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--vanilla); animation: twinkle 4s ease-in-out infinite alternate; }
.stars i:nth-child(3n) { animation-delay: -2s; } .stars i:nth-child(5n) { background: var(--gold); }
@keyframes twinkle { from { opacity: .15; } }
.orb-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto 28px; }
.orb { position: absolute; inset: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--vanilla) 18%, var(--sandy) 45%, var(--flame) 72%, #7a1a00 100%);
  box-shadow: 0 0 60px 10px rgba(255,82,27,.55), 0 0 160px 40px rgba(252,158,79,.25); animation: float 6s ease-in-out infinite; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(242,243,174,.18); transform: rotateX(70deg); animation: spin 14s linear infinite; }
.ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotateX(70deg) rotateZ(360deg); } }
.center { text-align: center; }
.hero.halo h1 { font-weight: 500; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; max-width: 16ch; margin: 14px auto 16px; color: #fff; }
.hero.halo p { margin: 0 auto; max-width: 54ch; color: rgba(242,243,174,.72); font-size: 17px; }
.hero.halo .eyebrow { color: var(--gold); font-weight: 500; letter-spacing: .16em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; position: relative; text-align: left; }
.feature { display: flex; align-items: center; gap: 16px; padding: 10px 28px; text-decoration: none; border-left: 1px solid rgba(242,243,174,.14); }
.feature:first-child { border-left: 0; }
.feature b { display: block; font-weight: 600; font-size: 17px; color: #fff; }
.feature small { color: rgba(242,243,174,.6); font-size: 14px; }
.f-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; font-size: 22px; color: #fff;
  background: linear-gradient(140deg, rgba(252,158,79,.9), rgba(255,82,27,.6)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 24px rgba(255,82,27,.35); }
.arrow { margin-left: auto; font-size: 20px; color: var(--vanilla); transition: transform .2s; }
.feature:hover .arrow { transform: translate(3px, -3px); color: var(--sandy); }
.trusted { display: flex; align-items: center; gap: 18px; margin-top: 48px; color: rgba(242,243,174,.55); font-family: var(--serif); font-style: normal; font-size: 17px; }
.trusted::before, .trusted::after { content: ""; flex: 1; height: 1px; background: rgba(242,243,174,.14); }
.logos { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.logos b { font-weight: 600; color: rgba(242,243,174,.5); letter-spacing: -.01em; font-size: 16px; }

/* Light section + cards */
.section.light { background: linear-gradient(180deg, var(--night) 0, #2a1d3a 40px, var(--paper) 360px); padding-top: 120px; }
.display { font-weight: 500; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; text-align: center; max-width: 24ch; margin: 0 auto 56px !important; color: var(--night); }
.section.light .grid { margin-top: 0; }
.card { border-radius: 24px; border: 1px solid rgba(2,1,34,.06); box-shadow: 0 1px 2px rgba(2,1,34,.04); position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(255,82,27,.28); }
.card-art { height: 132px; background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.55), transparent 55%) !important; }
.card-art .num { font-family: var(--serif); font-style: normal; font-weight: 800; font-size: 72px; }
.card-art .studs { display: none; }
.card-body h3 { font-weight: 600; font-size: 19px; padding-right: 40px; }
.card .go { position: absolute; top: 148px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(2,1,34,.15); transition: all .25s; }
.card:hover .go { background: var(--flame); border-color: var(--flame); color: #fff; transform: rotate(45deg); }

/* Scroll reveal (blur-in like the reference) */
.reveal, .card { opacity: 0; filter: blur(10px); transform: translateY(16px); transition: opacity .8s ease, filter .8s ease, transform .8s ease, box-shadow .2s; }
.reveal.in, .card.in { opacity: 1; filter: none; transform: none; }
.card.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card { opacity: 1; filter: none; transform: none; transition: none; }
  .stars i, .orb, .ring { animation: none; }
}

/* Unit + lesson heads get the night treatment too */
.hero.gold { background: radial-gradient(90% 120% at 85% 0%, rgba(255,82,27,.35), transparent 60%), var(--night); color: var(--vanilla); }
.hero.gold h1 { font-weight: 500; color: #fff; }
.hero.gold p { color: rgba(242,243,174,.75); }
.hero.gold .eyebrow { color: var(--sandy); }
.hero.gold .tag.sol { background: transparent; color: var(--vanilla); border-color: rgba(242,243,174,.35); }
.hero.gold + .section .grid { margin-top: -40px; }
.lesson-head { background: radial-gradient(80% 140% at 100% 0%, rgba(255,82,27,.3), transparent 60%), var(--night); color: var(--vanilla); }
.lesson-head h1 { font-weight: 500; color: #fff; }
.lesson-head p { color: rgba(242,243,174,.72); }
.lesson-head .eyebrow { color: var(--sandy); }
.lesson-head .tag.light { background: rgba(242,243,174,.1); color: var(--vanilla); }
.mode button { background: rgba(242,243,174,.08); color: var(--vanilla); font-weight: 600; }
.mode button[aria-selected="true"] { background: var(--paper); color: var(--night); }
.step { font-weight: 600; border-width: 1px; }
.content h2 { font-weight: 500; font-size: 30px; }
.content h3 { font-family: var(--serif); font-style: normal; font-weight: 800; font-size: 24px; }
.question { font-weight: 500; border-left: 0; background: var(--vanilla); border-radius: 20px; position: relative; padding-left: 52px; }
.question::before { content: "?"; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--flame); color: #fff; font-size: 14px; }
.workspace { background: var(--night); border-left: 1px solid rgba(242,243,174,.08); }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; gap: 8px; }
  .feature { border-left: 0; border-top: 1px solid rgba(242,243,174,.12); padding: 14px 4px; }
  .orb-wrap { width: 160px; height: 160px; }
  .btn-pill span { display: none; }
  .btn-pill { padding: 4px; }
}

/* Coach IV: tables, numbered lists, facilitator guide */
.table { overflow-x: auto; margin: 14px 0; border-radius: 14px; border: 1px solid var(--line); }
.table table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
.table th { background: var(--night); color: var(--vanilla); text-align: left; font-weight: 600; padding: 10px 12px; }
.table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:nth-child(even) td { background: #fffbe6; }
.content ol { padding-left: 24px; } .content h4 { font-size: 16px; margin: 18px 0 4px; }
.unit-guide { padding: 24px 24px 48px; }

.connect-choices { display: grid; gap: 10px; margin-top: 12px; }
.choice { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.choice:hover, .choice:focus-visible { border-color: var(--flame); }
.choice b { font-size: 16px; } .choice small { color: var(--ink-2); }

/* AI Studio: prompt window (left) + code window (right) */
.nav-link { color: var(--vanilla); text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 600; }
.nav-link:hover { color: var(--sandy); }
.studio .workspace { position: static; height: calc(100vh - 60px); display: grid; grid-template-columns: minmax(320px, 2fr) 3fr;
  grid-template-rows: auto 1fr; grid-template-areas: "tabs bar" "pane editor"; }
.studio .ws-bar { grid-area: bar; } .studio .progress { grid-area: bar; align-self: end; }
.studio .editor { grid-area: editor; } .studio .panes { grid-area: tabs; border-top: 0; border-bottom: 1px solid rgba(242,243,174,.12); }
.studio .pane { grid-area: pane; border-right: 1px solid rgba(242,243,174,.12); }
@media (max-width: 760px) { .studio .workspace { grid-template-columns: 1fr; grid-template-rows: auto 45vh auto 1fr; grid-template-areas: "bar" "editor" "tabs" "pane"; height: auto; min-height: 100vh; } }

/* ---------- VI: levels, blocks ---------- */
.nav-link.on { color: var(--sandy); }
.feature .f-ico { font-size: 15px; font-weight: 800; min-width: 44px; text-align: center; }
.card.planned { opacity: .62; border-style: dashed; border-color: rgba(2,1,34,.25); }
.card.planned:hover, .card.planned.in:hover { transform: none; box-shadow: 0 1px 2px rgba(2,1,34,.04); }
.card.planned .card-art { filter: grayscale(.6); }
.seg { display: inline-flex; flex-shrink: 0; border: 1.5px solid rgba(242,243,174,.3); border-radius: 99px; overflow: hidden; }
.seg button { border: 0; background: none; color: var(--vanilla); font-size: 12px; font-weight: 700; padding: 5px 12px; }
.seg button[aria-selected="true"] { background: var(--sandy); color: var(--prussian); }
.blocks { flex: 1 1 50%; min-height: 240px; position: relative; background: #fff; color: #020122; }
.blocks[hidden], .editor[hidden] { display: none; }
.blocks-note { padding: 18px; margin: 0; }
.studio .blocks { grid-area: editor; }
.blocklyToolboxDiv { background: #F6F4E4 !important; }
.blocklyTreeLabel { font-family: inherit !important; font-weight: 700; }
.blockstack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 14px 0; padding: 14px; background: #F6F4E4; border-radius: 14px; }
.blk { color: #fff; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 9px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.blk-event { background: #E0A100; border-radius: 16px 16px 9px 9px; } .blk-move { background: #D6336C; } .blk-motor { background: #2F7DE1; }
.blk-light { background: #8E5BD9; } .blk-sound { background: #C04FC0; } .blk-control { background: #E8731A; } .blk-sensor { background: #1B9AAA; }
@media (max-width: 1100px) { .topbar .crumbs { display: none; } }

/* ===================================================================
   4-H Beyond Ready layer (2026 Beyond Ready brand guide)
   Palette: 4-H Green #339966, Kale #004438, Sunflower #FDC82F, Tomato #F54359,
   tints Mint #82C4B7, Sky #C9E3DC, Stone #E0DED8, Cherry Blossom #EBBDA9.
   Only guide-approved text/background pairings are used.
   =================================================================== */
:root {
  --green: #339966; --kale: #004438; --kale-2: #00352c; --sunflower: #FDC82F; --tomato: #F54359;
  --mint: #82C4B7; --sky: #C9E3DC; --stone: #E0DED8; --blossom: #EBBDA9;
  /* remap the old theme variables onto the Beyond Ready palette */
  --vanilla: var(--sky); --gold: var(--mint); --sandy: var(--sunflower); --flame: var(--green);
  --prussian: var(--kale); --night: var(--kale); --night-2: var(--kale-2);
  --paper: #fff; --ink: #000; --ink-2: #2f3d39; --line: var(--stone);
}
body { letter-spacing: -0.010em; background: #fff; }
h1, h2, h3 { letter-spacing: -0.025em; }
h1 em, h2 em, .display em { color: var(--green); font-weight: 800; }

/* Top bar: white with the Beyond Ready mark */
.topbar { background: rgba(255,255,255,.94); color: var(--kale); border-bottom: 1px solid var(--stone); }
.brand { gap: 12px; color: #000; text-transform: none; letter-spacing: -0.015em; font-weight: 800; }
.br-logo { height: 34px; width: auto; display: block; }
.brand-sep { width: 1px; height: 28px; background: var(--stone); }
.brand-name { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--kale); }
.brand-name b { color: var(--green); font-size: 17px; }
.crumbs { color: var(--kale); }
.nav-link { color: var(--kale); font-weight: 700; }
.nav-link:hover, .nav-link.on { color: var(--green); }
.nav-link.on { box-shadow: inset 0 -3px 0 var(--green); padding-bottom: 4px; }
.hub-pill { background: var(--sky); color: var(--kale); }
.hub-pill i { background: #6c7f79; }
.hub-pill.on i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.hub-pill.run i { background: var(--sunflower); box-shadow: 0 0 8px var(--sunflower); }
.topbar .btn-pill { background: transparent; color: var(--kale); border-color: var(--kale); }
.topbar .btn-pill .chip { background: var(--kale); color: #fff; }
.btn-pill:hover .chip { background: var(--tomato); color: #fff; }
.topbar .icon-btn { color: var(--kale); }
.icon-btn:hover { background: var(--sky); }
:focus-visible { outline-color: var(--sunflower); }

/* Buttons: 4-H Green primary, Tomato for the run action */
.btn { background: var(--green); color: #fff; font-weight: 700; }
.btn-dark { background: var(--kale); color: #fff; }
#runBtn, .btn.run { background: var(--tomato); color: #fff; }

/* Sticker label */
.sticker { display: inline-block; background: var(--tomato); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: 14px; padding: 6px 14px; border-radius: 8px; transform: rotate(-4deg); margin-bottom: 18px; }

/* Home hero */
.hero.br-hero { background: #fff; color: #000; padding: 56px 24px 40px; text-align: left; }
.br-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.br-hero h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; max-width: 15ch; margin: 10px 0 18px; color: #000; }
.br-hero p { color: var(--ink-2); font-size: 17px; max-width: 56ch; opacity: 1; }
.br-hero .eyebrow, .eyebrow { color: var(--green); font-weight: 700; letter-spacing: .06em; }
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.collage .tile { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; }
.collage .tile:nth-child(5) { border-radius: 50%; }
.collage .tile:nth-child(9) { border-radius: 50% 50% 14px 50%; }
.collage svg { width: 46%; height: 46%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; background: var(--green); border-radius: 20px; overflow: hidden; }
.stats div { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.25); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -0.025em; }
.stats span { display: block; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: #fff; }
.br-hero .features { margin-top: 28px; gap: 12px; }
.br-hero .feature { border: 1px solid var(--stone); border-radius: 18px; padding: 14px 18px; background: #fff; }
.br-hero .feature:first-child { border-left: 1px solid var(--stone); }
.br-hero .feature:hover { border-color: var(--green); }
.br-hero .feature b { color: #000; font-weight: 700; }
.br-hero .feature small { color: var(--ink-2); }
.f-ico { background: var(--kale); color: #fff; box-shadow: none; border-radius: 50%; }
.br-hero .arrow { color: var(--green); }
.feature:hover .arrow { color: var(--green); }
.elm { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 22px; border-radius: 18px; background: var(--kale); color: #fff; flex-wrap: wrap; }
.elm span { font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
.elm i { width: 28px; height: 3px; background: var(--sunflower); border-radius: 2px; }
.elm em { margin-left: auto; font-style: normal; color: var(--sky); font-size: 14px; font-weight: 600; }

/* Sections and cards */
.section.light { background: var(--stone); padding-top: 64px; }
.display { color: #000; font-weight: 800; margin-bottom: 40px !important; }
.card { border: 0; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,68,56,.08); background: #fff; }
.card:hover { box-shadow: 0 18px 40px -16px rgba(0,68,56,.35); }
.card-art { background-image: none !important; }
.card-art .num { color: #000; font-weight: 800; }
.card-body h3 { color: #000; font-weight: 700; }
.card-body .eyebrow { color: var(--green); }
.card .go { border-color: var(--stone); color: var(--kale); }
.card:hover .go { background: var(--green); border-color: var(--green); color: #fff; }
.meta { color: var(--ink-2); }

/* Age-group hero: 4-H Green */
.hero.gold { background: var(--green); color: #fff; }
.hero.gold h1 { color: #fff; font-weight: 800; }
.hero.gold p { color: #fff; }
.hero.gold .eyebrow { color: #fff; }
.hero.gold .tag.sol { background: #fff; color: var(--kale); border: 0; }
.hero.gold .btn-pill { color: #fff; border-color: rgba(255,255,255,.7); }
.hero.gold .btn-pill .chip { background: #fff; color: var(--kale); }
.hero.gold + .section, .hero.gold ~ .section { background: var(--stone); }
.hero.gold + .unit-guide + .section { background: var(--stone); }

/* Session page */
.lesson-head { background: var(--kale); color: #fff; }
.lesson-head h1 { color: #fff; font-weight: 800; }
.lesson-head p { color: var(--sky); }
.lesson-head .eyebrow { color: var(--mint); }
.lesson-head .tag.light { background: rgba(201,227,220,.16); color: #fff; }
.lesson-head .builds a.tag { background: var(--sunflower); color: var(--kale); }
.mode button { background: rgba(201,227,220,.14); color: #fff; }
.mode button[aria-selected="true"] { background: #fff; color: var(--kale); }
.step { border-color: var(--stone); color: var(--kale); }
.step b { background: var(--sky); color: var(--kale); }
.step[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.step[aria-selected="true"] b { background: #fff; color: var(--green); }
.content h2 { color: #000; font-weight: 800; }
.content h3 { color: var(--green); }
.content strong { color: var(--kale); }
.content code { background: var(--sky); color: var(--kale); }
.content blockquote, .content .callout { border-left: 6px solid var(--sunflower); }
.question { background: var(--sky); color: #000; }
.question::before { background: var(--tomato); }
.table { border-color: var(--stone); }
.table th { background: var(--kale); color: #fff; }
.table td { border-color: var(--stone); }
.table tr:nth-child(even) td { background: #F2F8F6; }
.codeblock { background: var(--kale); color: var(--sky); }
.codeblock .bar { background: rgba(0,0,0,.18); color: var(--mint); }
.blockstack { background: #F3F2EE; }

/* Workspace: Kale */
.workspace { background: var(--kale); color: #fff; border-left: 0; }
.ws-bar { border-color: rgba(201,227,220,.18); }
.gutter { color: rgba(201,227,220,.45); }
.editor textarea { color: #fff; caret-color: var(--sunflower); }
.progress { background: var(--sunflower); }
.panes { border-color: rgba(201,227,220,.18); }
.panes button { color: var(--sky); }
.panes button[aria-selected="true"] { border-color: var(--sunflower); color: #fff; }
.pane { background: var(--kale-2); }
.console { color: var(--sky); }
.telemetry span { background: rgba(201,227,220,.14); }
.msg.user { background: var(--green); color: #fff; }
.msg.ai { background: var(--sky); color: #000; }
.quick button { border-color: rgba(201,227,220,.4); color: var(--sky); }
.quick button:hover { border-color: var(--sunflower); color: var(--sunflower); }
.ask input { background: #fff; color: #000; }
.seg { border-color: rgba(201,227,220,.4); }
.seg button { color: var(--sky); }
.seg button[aria-selected="true"] { background: var(--sunflower); color: var(--kale); }
.blocklyToolboxDiv { background: #F3F2EE !important; }

/* Dialogs */
dialog { box-shadow: 0 20px 60px rgba(0,68,56,.35); }
dialog::backdrop { background: rgba(0,68,56,.55); }
.choice:hover, .choice:focus-visible { border-color: var(--green); }

/* Footer partnership lockup */
.br-foot { background: #fff; border-top: 1px solid var(--stone); padding: 32px 24px 40px; text-align: center; }
.lockup { display: inline-flex; align-items: center; gap: 22px; }
.lockup img { height: 64px; width: auto; }
.lockup i { width: 1px; height: 56px; background: #000; opacity: .35; }
.br-foot p { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; }
.br-foot p b { color: var(--green); }

@media (max-width: 900px) {
  .br-grid { grid-template-columns: 1fr; }
  .collage { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
}
@media (max-width: 600px) {
  .br-logo { height: 26px; }
  .brand-sep, .brand-name { display: none; }
  .lockup img { height: 48px; }
  .elm em { margin-left: 0; }
}
.step { text-decoration: none; }

/* ===================================================================
   Accounts: sign-in, account bar, club leader dashboard, code cards
   =================================================================== */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: 12px; }
.account { display: inline-flex; align-items: center; gap: 10px; }
.account .who { display: grid; line-height: 1.1; text-align: right; color: var(--kale); max-width: 180px; }
.account .who small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account .btn-ghost, .leader-dash .btn-ghost { color: var(--kale); }
.linkish { background: none; border: 0; padding: 0; color: var(--kale); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; justify-self: start; }
.danger { color: #b3202f !important; }

.auth { padding: 48px 16px 64px; }
.auth-intro { max-width: 640px; margin-bottom: 28px; }
.auth-intro h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 8px; color: #000; }
.auth-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.auth-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--stone); }
.auth-card.youth { background: var(--sunflower); border-color: var(--sunflower); color: #000; }
.auth-card.youth .muted { color: #000; }
.auth-card.leader { background: var(--sky); border-color: var(--sky); color: #000; }
.auth-card.leader .muted { color: var(--kale); }
.auth-card h2 { margin: 0; color: #000; }
.auth-card label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; color: var(--kale); }
.auth-card input, .dash-card input:not([type=checkbox]), .dash-card select, .club-tabs input, .seats input, .seats select {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--stone); background: #fff; color: #000; min-width: 0; }
.auth-card .code-input { font-family: var(--mono); font-size: 28px; letter-spacing: .12em; text-align: center; text-transform: uppercase; padding: 14px; border: 2px solid #000; }
.auth-card .btn { justify-self: start; }
.auth-card .row, .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.auth-card.leader .btn-ghost { color: var(--kale); }
.auth-msg { margin: 0; min-height: 1.2em; font-weight: 700; color: #000; }
.privacy { margin-top: 20px; }

.leader-dash { padding: 36px 16px 64px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { margin: 10px 0 0; color: #000; }
.dash-msg { min-height: 1.4em; font-weight: 700; color: var(--kale); margin: 12px 0; }
.dash-msg.err { color: #b3202f; }
.club-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.club-tabs a { padding: 8px 16px; border-radius: 99px; background: var(--stone); color: #000; font-weight: 700; text-decoration: none; }
.club-tabs a.on { background: var(--kale); color: #fff; }
.new-club summary { cursor: pointer; font-weight: 700; color: var(--kale); padding: 8px 12px; }
.new-club form { margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-card { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--stone); background: #fff; }
.dash-card h2 { margin: 0; font-size: 20px; color: #000; }
.dash-card h2 small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.dash-card label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; color: var(--kale); }
.dash-card label.check { display: flex; align-items: center; gap: 8px; color: #000; font-size: 15px; }
.dash-card label.check input { width: 20px; height: 20px; accent-color: var(--green); }
.dash-card .btn { justify-self: start; }
.seats-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.seats { width: 100%; border-collapse: collapse; font-size: 14px; }
.seats th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--kale); padding: 8px; border-bottom: 2px solid var(--stone); }
.seats td { padding: 8px; border-bottom: 1px solid var(--stone); vertical-align: middle; }
.seats input, .seats select { padding: 6px 8px; width: 100%; }
.seat-code { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .08em; background: var(--sky); color: #000; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.seat-actions { white-space: nowrap; display: flex; gap: 6px; }
.remove-club { margin-top: 24px; }
.code-cards { display: none; }

@media print {
  body.printing-cards > *:not(main), body.printing-cards .leader-dash > *:not(#dashBody), body.printing-cards #dashBody > *:not(.code-cards) { display: none !important; }
  body.printing-cards .leader-dash { padding: 0; }
  body.printing-cards .code-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .code-card { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 16px; border: 1px dashed #999; break-inside: avoid; color: #000; }
  .code-card img { height: 30px; }
  .code-card .cc-club { font-size: 14px; }
  .code-card .cc-seat { font-size: 13px; }
  .code-card code { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .12em; padding: 6px 14px; border: 2px solid #000; border-radius: 8px; }
  .code-card small { font-size: 11px; }
}
@media (max-width: 720px) {
  .account .who { display: none; }
}
.top-actions .btn, .account a { white-space: nowrap; }

/* Admin dashboard */
.admin-dash { display: grid; gap: 16px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-tiles .tile { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--kale); color: #fff; }
.stat-tiles .tile:nth-child(4n+2) { background: var(--green); }
.stat-tiles .tile:nth-child(4n+3) { background: var(--sunflower); color: #000; }
.stat-tiles .tile:nth-child(4n+4) { background: var(--sky); color: #000; }
.stat-tiles .tile b { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.stat-tiles .tile b small { font-size: 13px; font-weight: 600; }
.stat-tiles .tile span { font-size: 13px; font-weight: 600; }
.bars { width: 100%; height: auto; }
.bars rect { fill: var(--green); }
.bars rect:hover { fill: var(--kale); }
.bars text { font-size: 11px; fill: var(--ink-2); text-anchor: middle; }
.bars text.max { text-anchor: start; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--stone); font-size: 14px; }
.feed time { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.admin-dash .row input, .admin-dash .row select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--stone); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--sky); color: #000; font-size: 12px; font-weight: 700; margin-right: 4px; }
@media (max-width: 600px) { .feed li { grid-template-columns: 1fr; gap: 2px; } }

/* Workspace on white: program.py editor, AI Coach and Hub Console (Kale/black text on white) */
.workspace { background: #fff; color: #000; border-left: 1px solid var(--stone); }
.ws-bar { background: #fff; color: var(--kale); border-bottom: 1px solid var(--stone); }
.ws-bar .btn-ghost, .ws-bar select { color: var(--kale); }
.ws-bar select option { color: #000; background: #fff; }
.editor { background: #fff; }
.gutter { color: #8a9692; background: #fff; border-right: 1px solid var(--stone); margin-right: 8px; }
.editor textarea { color: #000; caret-color: var(--green); }
.editor textarea::selection { background: var(--sky); }
.panes { background: #fff; border-top: 1px solid var(--stone); }
.panes button { color: var(--kale); opacity: .7; }
.panes button[aria-selected="true"] { background: var(--sunflower); color: #000; opacity: 1; border-color: var(--sunflower); }
.pane { background: #fff; }
.console { background: #fff; color: #000; }
.telemetry { border-top: 1px solid var(--stone); color: var(--kale); }
.telemetry span { background: var(--sky); color: #000; }
.chat { background: #fff; }
.msg.ai { background: var(--sky); color: #000; }
.msg.user { background: var(--green); color: #fff; }
.quick button { border-color: var(--stone); color: var(--kale); }
.quick button:hover { border-color: var(--green); color: var(--green); }
.ask input { background: #fff; color: #000; border: 1px solid var(--stone); }
.seg { border-color: var(--stone); }
.seg button { color: var(--kale); }
.seg button[aria-selected="true"] { background: var(--sunflower); color: #000; }
.studio .panes { border-bottom: 1px solid var(--stone); }
.studio .pane { border-right: 1px solid var(--stone); }

/* Reflect check questions */
.check { margin: 28px 0; padding: 22px; border-radius: var(--radius); background: var(--sky); color: #000; display: grid; gap: 18px; }
.check h2 { margin: 0; color: #000; }
.check .q { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: #fff; }
.check .qtext { margin: 0; font-weight: 600; }
.check .choices { display: grid; gap: 6px; }
.check .choice-row { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--stone); border-radius: 10px; cursor: pointer; }
.check .choice-row:has(input:checked) { border-color: var(--kale); box-shadow: inset 0 0 0 1px var(--kale); }
.check .choice-row.right { background: #e3f2ea; border-color: var(--green); }
.check .choice-row.wrong { background: #fde6e9; border-color: var(--tomato); }
.check .choice-row input { accent-color: var(--green); width: 18px; height: 18px; }
.check textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--stone); border-radius: 10px; resize: vertical; min-height: 70px; }
.check .btn { justify-self: start; }
.check .fb { font-size: 14px; min-height: 1.2em; }
.check .fb:not(:empty) { padding: 10px 12px; border-radius: 10px; background: #F3F2EE; }
.check .fb.ok { background: #e3f2ea; } .check .fb.part { background: #FFF4D1; } .check .fb.no { background: #fde6e9; }
.check .fb b { margin-right: 4px; }
.check .sample { margin: 8px 0 0; }
.feed q.answer { display: block; margin-top: 4px; padding: 6px 10px; border-left: 3px solid var(--sunflower); background: #F3F2EE; quotes: none; }

/* Learning habits: Bloom tags, confidence, challenge, predict-before-run, teach mode, check-in, strategy box */
.bloom { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--kale); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; cursor: help; }
.check .q-challenge { border: 2px dashed var(--sunflower); }
.sure { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--kale); }
.sure button, .strats button { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--stone); background: #fff; color: #000; cursor: pointer; }
.sure button[aria-checked="true"], .strats button[aria-pressed="true"] { background: var(--sunflower); border-color: var(--sunflower); }
.predict { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: var(--sunflower); color: #000; font-size: 14px; }
.predict input { flex: 1 1 200px; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid #000; background: #fff; color: #000; }
.predict .btn-ghost { color: #000; }
.teach-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; background: var(--sunflower); color: #000; font-size: 13px; }
.teach-bar .btn-ghost { color: #000; margin-left: auto; }
.checkin { margin: 28px 0; padding: 22px; border-radius: var(--radius); background: var(--sky); color: #000; display: grid; gap: 10px; }
.checkin h2 { margin: 0; color: #000; }
.checkin p { margin: 0; }
.checkin .strats { display: flex; flex-wrap: wrap; gap: 8px; }
.checkin textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--stone); border-radius: 10px; background: #fff; }
.checkin .btn { justify-self: start; }
.checkin-msg { font-weight: 700; color: var(--kale); }
.last-goal { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--sunflower); color: #000; }
.last-goal .muted { color: #000; }
.strategy { margin: 0 0 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--sky); color: #000; }
.strategy h2 { margin: 10px 0 6px; color: #000; }
.strategy p { margin: 6px 0; }
.strategy .muted { color: var(--kale); }
.hbars { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.hbars i { display: block; height: 14px; min-width: 2px; border-radius: 7px; background: var(--green); }
.hbars b { text-align: right; }
@media (max-width: 560px) { .hbars li { grid-template-columns: 1fr 40px; } .hbars i { grid-column: 1 / -1; grid-row: 2; } }
/* Block view zoom buttons */
.ws-tools { position: absolute; right: 18px; top: 12px; z-index: 30; display: flex; flex-direction: column; gap: 6px; }
.ws-tools button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--stone); background: #fff; color: var(--kale); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ws-tools button:hover { background: var(--sunflower); border-color: var(--sunflower); color: #000; }
.ws-tools button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.ws-tools svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ws-trash { opacity: 1 !important; cursor: pointer; }
.ws-trash rect { fill: #fff; stroke: var(--stone); stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.ws-trash .ico path { fill: none; stroke: var(--kale); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ws-trash:hover rect { fill: var(--sunflower); stroke: var(--sunflower); }
.ws-trash.open rect { fill: var(--tomato); stroke: var(--tomato); }
.ws-trash.open .ico path { stroke: #fff; }
.ws-trash:hover .ico path { stroke: #000; }

/* Resizable workspace borders */
.split { position: absolute; z-index: 40; touch-action: none; }
.split::after { content: ""; position: absolute; background: transparent; border-radius: 2px; transition: background .15s; }
.split:hover::after, .split:focus-visible::after, body.resizing .split::after { background: var(--sunflower); }
.split:focus-visible { outline: none; }
.split-x { top: 0; bottom: 0; left: -4px; width: 9px; cursor: col-resize; }
.split-x::after { top: 0; bottom: 0; left: 3px; width: 3px; }
.split-y { position: relative; flex: 0 0 9px; margin: -4px 0; cursor: row-resize; }
.split-y::after { left: 0; right: 0; top: 3px; height: 3px; }
.split-y::before { content: ""; position: absolute; left: 50%; top: 2px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--stone); }
.split-y:hover::before, .split-y:focus-visible::before { background: transparent; }
.workspace.ed-sized > .editor, .workspace.ed-sized > .blocks { flex: 0 0 var(--ed-h); }
.studio .workspace { position: relative; }
.studio .split-y { display: none; }
body.resizing { user-select: none; }
body.resizing-x { cursor: col-resize; } body.resizing-y { cursor: row-resize; }
body.resizing iframe, body.resizing .blocks { pointer-events: none; }
@media (max-width: 960px) { .lesson .split-x { display: none; } }
@media (max-width: 760px) { .studio .split-x { display: none; } }

/* Virginia standards row on lesson pages */
.lesson-head .sol-row { margin-top: 10px; align-items: center; }
.lesson-head .sol-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sunflower); margin-right: 4px; }
.lesson-head .tag.sol { background: transparent; color: #fff; border: 1.5px solid rgba(201,227,220,.5); cursor: help; }
.hero.gold .tag.sol { cursor: help; }
a.tag.sol { text-decoration: none; }
a.tag.sol:hover, a.tag.sol:focus-visible { background: var(--sunflower); color: var(--kale); border-color: var(--sunflower); }

/* ---------- Leader club insights ---------- */
.sub-tabs { display: flex; gap: 4px; margin: -4px 0 16px; border-bottom: 2px solid var(--stone); }
.sub-tabs a { padding: 10px 16px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sub-tabs a.on { color: var(--kale); border-bottom-color: var(--green); }
.insights { display: grid; gap: 16px; }
.ins-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ins-head p { margin: 0; }
.insights .row { display: flex; gap: 8px; flex-wrap: wrap; }
.insights select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--stone); background: #fff; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #F3F2EE; }
.notes li span { font-size: 18px; line-height: 1.3; }
.notes p { margin: 0; font-size: 14px; line-height: 1.45; }
.insights .pill { white-space: nowrap; }
.pill.ok { background: var(--green); color: #fff; }
.pill.warn { background: var(--sunflower); color: #000; }
.pill.bad { background: var(--tomato); color: #fff; }
.sortable th button { all: unset; cursor: pointer; font-weight: 700; white-space: nowrap; }
.sortable th button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sortable th button.asc::after { content: " ▲"; font-size: 10px; }
.sortable th button.desc::after { content: " ▼"; font-size: 10px; }
.heat { border-collapse: separate; border-spacing: 4px; margin-bottom: 8px; }
.heat caption { text-align: left; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding: 4px; }
.heat th { font-size: 13px; text-align: left; padding: 2px 8px 2px 0; white-space: nowrap; }
.heat thead th { text-align: center; color: var(--ink-2); font-weight: 600; padding: 0; }
.heat td { width: 48px; height: 26px; border-radius: 6px; background: var(--stone); }
.heat td.visited, .heat-key .visited { background: #fff; box-shadow: inset 0 0 0 2px var(--kale); }
.heat td.notyet, .heat-key .notyet { background: var(--sunflower); }
.heat td.partly, .heat-key .partly { background: var(--mint, #82C4B7); }
.heat td.correct, .heat-key .correct { background: var(--green); }
.heat-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin: 0; }
.heat-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.heat-key i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--stone); }

/* Workbook page link beside each step heading */
.content h2 .wb-page{ float:right; font-size:.55em; font-weight:700; letter-spacing:0; margin-top:.5em; color:var(--green, #339966); text-decoration:none; }
.content h2 .wb-page:hover{ text-decoration:underline; }
@media (max-width:600px){ .content h2 .wb-page{ float:none; display:block; margin-top:4px; } }
