:root {
  --ink: #29232c;
  --muted: #6f645f;
  --navy: #43264f;
  --teal: #6f327f;
  --teal-dark: #4d245b;
  --mint: #f3e9f3;
  --yellow: #f2b827;
  --paper: #fffdf8;
  --line: #e7dccf;
  --background: #faf5eb;
  --purple: #6f327f;
  --purple-dark: #43264f;
  --pencil: #f2b827;
  --pencil-light: #fff0ad;
  --coral: #b96643;
  --sage: #657a61;
  --moose: #a75f1c;
  --moose-dark: #704119;
  --shadow: 0 20px 55px rgba(71, 43, 26, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--background); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: rgba(111, 50, 127, .09); top: -180px; right: -90px; }
.ambient-two { width: 300px; height: 300px; background: rgba(245, 185, 31, .15); bottom: -140px; left: -120px; }
h1, h2, h3 { font-family: "Manrope", sans-serif; margin-top: 0; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.login-card { width: min(620px, 100%); padding: 56px; border: 1px solid rgba(27,135,124,.18); border-radius: 30px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); text-align: center; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 34px; text-align: left; }
.brand-lockup img { width: 58px; height: 58px; object-fit: contain; }
.brand-lockup div { display: flex; flex-direction: column; line-height: 1.05; }
.brand-lockup span { color: var(--teal); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.brand-lockup strong { font-family: "Manrope"; font-size: 20px; }
.eyebrow, .step-label { color: var(--teal); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.login-card h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.08; margin-bottom: 18px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0 auto 30px; max-width: 460px; }
.privacy-note { color: var(--muted); font-size: 13px; margin: 20px 0 0; }
.school-legal-intro { margin: 0 0 16px; padding: 13px 15px; border-radius: 13px; background: var(--mint); color: var(--muted); font-size: 13px; line-height: 1.55; }
.school-legal-intro a { color: var(--purple-dark); font-weight: 800; }
.public-footer-links { display: flex; align-items: center; gap: 18px; }
.public-footer-links a { color: inherit; }

/* Public trust centre */
.legal-page { min-height: 100vh; color: var(--ink); background: #fffaf0; }
.legal-nav { width: min(1020px,calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.legal-nav > a:last-child { color: var(--purple-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.legal-main { width: min(900px,calc(100% - 40px)); margin: 0 auto; padding: 48px 0 90px; }
.legal-hero { margin-bottom: 34px; padding: 42px; border-radius: 28px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.legal-hero h1 { margin: 8px 0 16px; font-size: clamp(38px,6vw,64px); line-height: 1; letter-spacing: -.045em; }
.legal-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.65; }
.legal-status { display: inline-flex; margin-top: 20px; padding: 8px 11px; border-radius: 999px; background: var(--pencil); color: var(--ink); font-size: 12px; font-weight: 800; }
.legal-toc { margin: 0 0 24px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.legal-toc a { color: var(--purple-dark); font-size: 13px; font-weight: 800; }
.legal-section { margin-top: 20px; padding: 30px; scroll-margin-top: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.legal-section h2 { margin-bottom: 10px; font-size: 28px; }
.legal-section h3 { margin: 24px 0 7px; font-size: 17px; }
.legal-section p,.legal-section li { color: var(--muted); font-size: 14px; line-height: 1.65; }
.legal-section ul { padding-left: 20px; }
.legal-callout { margin: 18px 0; padding: 15px 17px; border-left: 4px solid var(--pencil); border-radius: 10px; background: #fff3c6; }
.legal-table-wrap { overflow-x: auto; }
.legal-section table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-section th,.legal-section td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.legal-section th { color: var(--ink); background: var(--mint); }
.legal-footer { margin-top: 28px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.legal-footer strong { color: var(--ink); }
.anchor-offset { display: block; scroll-margin-top: 20px; }
.privacy-request-form { margin-top: 24px; padding: 22px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px solid #ddcfdf; border-radius: 18px; background: #fbf5fc; }
.privacy-form-heading { grid-column: 1 / -1; display: grid; gap: 4px; }
.privacy-form-heading strong { color: var(--ink); font: 800 21px "Manrope"; }
.privacy-form-heading span { color: var(--muted); font-size: 12px; }
.privacy-request-form label { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 800; }
.privacy-request-form input,.privacy-request-form select,.privacy-request-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9cfdc; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.privacy-request-form input,.privacy-request-form select { min-height: 45px; }
.privacy-request-form textarea { min-height: 120px; resize: vertical; }
.privacy-request-form input:focus,.privacy-request-form select:focus,.privacy-request-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,42,168,.1); }
.privacy-form-wide { grid-column: 1 / -1; }
.privacy-request-message { min-height: 18px; margin: 0 !important; color: #245a3c !important; font-size: 12px !important; font-weight: 800; }
.privacy-request-message.error { color: #9b2d3a !important; }
.trust-centre-hero { min-height: 360px; padding-right: 265px; position: relative; display: flex; align-items: center; overflow: hidden; }
.trust-centre-hero > img { width: 260px; max-height: 330px; position: absolute; right: 8px; bottom: -20px; object-fit: contain; filter: drop-shadow(-12px 18px 18px rgba(0,0,0,.28)); }
.legal-summary-section { background: #fff7df; }
.legal-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.legal-summary-grid article { padding: 20px; border: 1px solid #eadfbf; border-radius: 16px; background: white; }
.legal-summary-grid article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--purple); font-size: 11px; font-weight: 900; }
.legal-summary-grid h3 { margin-top: 15px; }
.legal-summary-grid p { margin-bottom: 0; }
.legal-split-section { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: center; }
.legal-split-section .legal-callout { margin: 0; }
.legal-security-list { margin: 20px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.legal-security-list div { padding: 17px; border-radius: 14px; background: var(--mint); }
.legal-security-list strong,.legal-security-list span { display: block; }
.legal-security-list span { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.legal-safeguarding-section { border-color: #e8ccd1; background: #fff8f8; }
.legal-responsibility-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.legal-responsibility-grid article { padding: 20px; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(75,49,28,.06); }
.legal-responsibility-grid h3 { margin-top: 0; }
@media (max-width: 720px) {
  .legal-hero,.legal-section { padding: 24px; }
  .legal-nav { align-items: flex-start; padding: 15px 0; }
  .public-footer-links { flex-direction: column; align-items: flex-end; gap: 6px; }
  .trust-centre-hero { padding-bottom: 235px; }
  .trust-centre-hero > img { width: 210px; right: 50%; bottom: -10px; transform: translateX(50%); }
  .legal-summary-grid,.legal-security-list,.legal-responsibility-grid,.legal-split-section { grid-template-columns: 1fr; }
  .privacy-request-form { grid-template-columns: 1fr; }
  .privacy-form-heading,.privacy-form-wide { grid-column: 1; }
}

/* Public product story */
.showing-public-site { background: #fffaf0; }
.showing-public-site .ambient { display: none; }
.showing-public-site #barney-assistant { display: none; }
.public-site { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 78% 9%,rgba(242,184,39,.12),transparent 22%),linear-gradient(180deg,#fffaf0 0%,#faf4e9 100%); }
.closed-beta-site { background: #fffaf0; }
.closed-beta-entry { min-height: calc(100vh - 180px); padding-block: 64px; display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,300px); align-items: center; gap: 64px; }
.closed-beta-copy { max-width: 65ch; }
.closed-beta-copy h1 { max-width: 15ch; margin: 0 0 22px; font-size: clamp(38px,5vw,64px); line-height: 1.08; letter-spacing: -.025em; }
.closed-beta-copy p { color: var(--muted); line-height: 1.65; }
.closed-beta-intro { margin: 0 0 26px; font-size: 19px; }
.closed-beta-help { margin: 14px 0 0; font-size: 14px; }
.closed-beta-scope { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.closed-beta-scope h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; }
.closed-beta-scope p { margin: 10px 0 0; font-size: 15px; }
.closed-beta-mascot { width: 100%; max-width: 300px; height: auto; }
.closed-beta-trust-link,.closed-beta-footer a { color: var(--purple-dark); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.closed-beta-footer { padding-block: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.closed-beta-footer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.closed-beta-site a:focus-visible,.school-fictional-access button:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.school-fictional-access { margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.school-fictional-access h3 { margin: 0 0 10px; }
@media (max-width: 820px) {
  .closed-beta-entry { min-height: 0; padding-block: 42px; grid-template-columns: minmax(0,1fr); gap: 26px; }
  .closed-beta-mascot { max-width: 160px; justify-self: center; }
  .closed-beta-intro { font-size: 17px; }
  .closed-beta-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .closed-beta-site .public-nav { gap: 16px; }
  .closed-beta-trust-link { max-width: 150px; text-align: right; line-height: 1.5; }
}
.public-nav { width: min(1240px,calc(100% - 48px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 20; }
.public-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: "Manrope",sans-serif; font-size: 19px; font-weight: 800; line-height: .96; letter-spacing: -.02em; }
.public-brand img { width: 49px; height: 49px; object-fit: cover; object-position: 50% 14%; border-radius: 50%; background: var(--pencil); transform: rotate(-3deg); }
.public-brand span { display: flex; flex-direction: column; }
.public-brand small { color: var(--purple); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.public-nav nav { display: flex; align-items: center; gap: 28px; }
.public-nav nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.public-nav nav a:hover { color: var(--purple); }
.public-nav-cta { min-height: 40px; }
.public-section { width: min(1180px,calc(100% - 48px)); margin-inline: auto; }
.public-hero { min-height: 680px; padding: 70px 0 82px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 35px; }
.public-hero-copy { position: relative; z-index: 2; }
.public-hero-copy h1 { max-width: 670px; margin: 10px 0 24px; font-size: clamp(58px,8vw,104px); line-height: .91; letter-spacing: -.065em; }
.public-hero-copy h1 span { color: var(--moose-dark); position: relative; }
.public-hero-copy h1 span::after { content: ""; height: 13px; position: absolute; left: 4px; right: -6px; bottom: -5px; border-radius: 50%; background: var(--pencil); opacity: .78; transform: rotate(-2deg); z-index: -1; }
.public-lede { max-width: 610px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.public-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link span { color: var(--purple); }
.public-proof { display: flex; flex-wrap: wrap; gap: 9px 19px; margin-top: 34px; color: var(--muted); font-size: 12px; font-weight: 700; }
.public-proof span::before { content: "✓"; margin-right: 7px; color: var(--purple); font-weight: 900; }
.public-hero-visual { min-height: 540px; position: relative; display: grid; place-items: center; isolation: isolate; }
.barney-hero-wrap { --moose-look-x: 0px; --moose-look-y: 0px; width: min(420px,80%); aspect-ratio: .82; position: relative; z-index: 3; animation: public-barney-float 4.6s ease-in-out infinite; cursor: pointer; outline: 0; }
.barney-hero-wrap:focus-visible { border-radius: 38%; box-shadow: 0 0 0 5px rgba(123,42,168,.2); }
.barney-scene-frames { position: absolute; inset: 0; z-index: 2; }
.barney-scene-frame { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; opacity: 0; transform: translateY(13px) scale(.96) rotate(-2deg); filter: drop-shadow(0 28px 20px rgba(78,45,18,.21)); transition: opacity .7s ease,transform .8s cubic-bezier(.2,.75,.25,1); }
.barney-scene-frame.is-active { opacity: 1; transform: translate(var(--moose-look-x),var(--moose-look-y)) scale(1) rotate(0); }
.barney-glow { position: absolute; width: 390px; height: 390px; top: 22%; left: 50%; border-radius: 43% 57% 48% 52%; background: linear-gradient(145deg,#fff0a6,#f2b827); transform: translate(-50%,-10%) rotate(-4deg); box-shadow: 0 0 0 34px rgba(242,184,39,.12),0 0 0 68px rgba(111,50,127,.05); z-index: 0; }
.barney-speech { width: 180px; padding: 12px 15px; position: absolute; top: 55px; left: -98px; border: 2px solid var(--ink); border-radius: 17px 17px 4px 17px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.35; box-shadow: 7px 8px 0 var(--pencil); z-index: 5; animation: speech-bob 3.2s ease-in-out infinite; }
.result-preview { min-width: 220px; padding: 13px 15px; position: absolute; z-index: 6; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 15px 35px rgba(68,45,28,.14); }
.result-preview-top { top: 65px; right: -25px; transform: rotate(2deg); }
.result-preview-bottom { bottom: 58px; left: -30px; transform: rotate(-2deg); }
.preview-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 11px; color: #49380c; background: var(--pencil-light); font-weight: 900; }
.preview-icon.purple { color: white; background: var(--purple); }
.result-preview small,.result-preview strong { display: block; }
.result-preview small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-preview strong { margin-top: 2px; font-size: 12px; }
.hero-doodle { position: absolute; color: var(--purple); font: 800 28px "Manrope"; opacity: .5; }
.hero-doodle-one { top: 28px; left: 70px; transform: rotate(-15deg); }
.hero-doodle-two { right: 30px; bottom: 15px; transform: rotate(9deg); }
.public-outcomes { width: 100%; padding: 29px max(24px,calc((100% - 1180px)/2)); display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: linear-gradient(110deg,#29232c,#43264f 70%,#5c2c68); color: white; }
.public-outcomes div { min-height: 72px; padding: 8px 28px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.14); }
.public-outcomes div:first-child { border-left: 0; padding-left: 0; }
.public-outcomes strong { color: var(--pencil); font: 800 20px "Manrope"; }
.public-outcomes span { color: rgba(255,255,255,.68); font-size: 11px; }
.story-section { padding: 120px 0; }
.section-intro { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.section-intro h2,.difference-copy h2,.trust-copy h2,.pilot-section h2 { margin: 9px 0 17px; font-size: clamp(37px,5vw,58px); line-height: 1.05; letter-spacing: -.04em; }
.section-intro > p:not(.eyebrow) { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.6; }
.story-steps { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.story-steps article { min-height: 330px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--line); }
.story-steps article:first-child { border-left: 0; }
.story-steps article > span { color: var(--purple); font: 800 32px "Manrope"; }
.story-steps small { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.story-steps h3 { margin: 10px 0 12px; font-size: 20px; line-height: 1.25; }
.story-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.difference-section { min-height: 690px; padding: 85px; display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 80px; border-radius: 42px; background: linear-gradient(135deg,#29232c 0%,#43264f 72%,#5b2d63 100%); color: white; }
.barney-guide { min-height: 430px; position: relative; display: grid; place-items: end center; }
.barney-guide::before { content: ""; width: 330px; height: 330px; position: absolute; bottom: 12px; border-radius: 47% 53% 43% 57%; background: var(--pencil); transform: rotate(5deg); }
.barney-guide img { width: 325px; position: relative; z-index: 2; filter: drop-shadow(0 22px 20px rgba(0,0,0,.3)); }
.barney-inspector { transform-origin: 55% 70%; animation: inspector-peek 4s ease-in-out infinite; }
.barney-at-work::after { content: "✓  ✓  ···"; width: 116px; height: 72px; padding: 12px 14px; position: absolute; right: 5%; bottom: 8%; z-index: 4; border: 2px solid var(--ink); border-radius: 8px; color: var(--purple); background: repeating-linear-gradient(#fff 0 14px,#dcd4c9 15px,#fff 16px); font: 900 14px "Manrope"; letter-spacing: 5px; box-shadow: 6px 7px 0 rgba(48,34,55,.18); transform: rotate(5deg); animation: paper-check 3.2s ease-in-out infinite; }
.barney-at-work::before { content: ""; width: 58px; height: 5px; position: absolute; right: 22%; bottom: 24%; z-index: 5; border-radius: 4px; background: var(--purple); transform-origin: 90% 50%; animation: pencil-write 1.15s ease-in-out infinite; }
@keyframes pencil-write { 0%,100% { transform: translateX(-9px) rotate(-16deg); } 50% { transform: translateX(11px) rotate(-11deg); } }
@keyframes paper-check { 0%,100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-3px); } }
@keyframes inspector-peek { 0%,100% { transform: translateY(5px) rotate(-3deg); } 45% { transform: translateY(-7px) rotate(1deg) scale(1.025); } 60% { transform: translateY(-5px) rotate(0) scale(1.025); } }
.guide-note { padding: 11px 15px; position: absolute; top: 23px; right: -5px; z-index: 3; border-radius: 14px 14px 14px 3px; background: white; color: var(--ink); font-weight: 800; box-shadow: 7px 7px 0 var(--purple); }
.difference-copy .eyebrow { color: #dca9f4; }
.difference-copy > p:not(.eyebrow) { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.7; }
.difference-list { display: grid; gap: 15px; margin-top: 30px; }
.difference-list > div { display: grid; grid-template-columns: 31px 1fr; gap: 12px; }
.difference-list > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--pencil); font-weight: 900; }
.difference-list p { margin: 0; color: rgba(255,255,255,.71); font-size: 13px; line-height: 1.55; }
.difference-list strong { color: white; }
.outputs-section { padding: 120px 0; }
.output-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.output-grid article { min-height: 340px; padding: 30px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 13px 34px rgba(68,45,28,.07); }
.output-grid article:nth-child(2) { background: #f4eafa; }
.output-grid article:nth-child(3) { background: #fff2c4; }
.output-number { color: var(--purple); font: 800 12px "Manrope"; letter-spacing: .1em; }
.output-grid h3 { margin: 27px 0 10px; font-size: 25px; }
.output-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.mini-sheet { width: 185px; height: 120px; padding: 24px; position: absolute; right: -10px; bottom: -14px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: white; transform: rotate(-4deg); box-shadow: -8px -8px 26px rgba(65,44,26,.1); }
.mini-sheet i { height: 7px; display: block; margin-bottom: 13px; border-radius: 6px; background: #dfd5e6; }
.mini-sheet i.short { width: 65%; background: var(--pencil); }
.output-barney-feedback { width: 190px; max-height: 205px; position: absolute; right: -12px; bottom: -31px; object-fit: contain; filter: drop-shadow(-8px -8px 20px rgba(65,44,26,.14)); transform-origin: 60% 80%; animation: feedback-write 3.8s ease-in-out infinite; }
@keyframes feedback-write { 0%,100% { transform: translateY(5px) rotate(-3deg); } 38% { transform: translateY(-4px) rotate(-1deg); } 55% { transform: translateY(-2px) rotate(1deg); } }
.mini-chart { height: 105px; position: absolute; left: 30px; right: 30px; bottom: 25px; display: flex; align-items: flex-end; gap: 12px; }
.mini-chart i { flex: 1; border-radius: 8px 8px 2px 2px; background: var(--purple); opacity: .8; }
.mini-priority { padding: 14px; position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; align-items: center; gap: 12px; border-radius: 13px; background: white; }
.mini-priority i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: white; font-style: normal; font-weight: 800; }
.mini-priority span { font-size: 12px; font-weight: 800; }
.pricing-section { padding: 120px 0; }
.pricing-scope { width: min(690px,100%); margin: -20px auto 38px; padding: 6px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; border: 1px solid var(--line); border-radius: 18px; background: #f3eadc; }
.pricing-scope button { min-height: 62px; padding: 9px 12px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; cursor: pointer; }
.pricing-scope button strong,.pricing-scope button span { display: block; }
.pricing-scope button strong { font: 800 14px "Manrope"; }
.pricing-scope button span { margin-top: 3px; font-size: 10px; }
.pricing-scope button.active { color: var(--purple-dark); background: white; box-shadow: 0 7px 20px rgba(68,45,28,.09); }
.pricing-panel { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; align-items: stretch; }
.price-card { min-width: 0; padding: 31px 28px 27px; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 25px; background: var(--paper); box-shadow: 0 13px 34px rgba(68,45,28,.07); }
.price-card-featured { border: 2px solid var(--purple); box-shadow: 0 18px 48px rgba(97,34,129,.15); }
.price-card-pioneer { border-color: #d8ae2a; background: linear-gradient(160deg,#fffdf8 45%,#fff3c5); }
.price-ribbon { padding: 6px 10px; position: absolute; top: -14px; right: 21px; border-radius: 999px; color: white; background: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.price-card-heading { min-height: 150px; }
.price-level { margin: 0 0 12px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.price-card-pioneer .price-level { color: #83600b; }
.price-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; }
.price-card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 6px; }
.price strong { color: var(--ink); font: 800 clamp(34px,4vw,46px) "Manrope"; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 12px; font-weight: 700; }
.price-note { min-height: 32px; margin: 2px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.price-card ul { margin: 0 0 25px; padding: 0; display: grid; gap: 10px; list-style: none; }
.price-card li { padding-left: 22px; position: relative; color: var(--muted); font-size: 12px; line-height: 1.4; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 900; }
.price-card .button { width: 100%; margin-top: auto; text-align: center; }
.pricing-footnote { margin-top: 24px; padding: 20px 24px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; border-radius: 17px; background: #f1e7d3; }
.pricing-footnote p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.pricing-footnote strong { color: var(--ink); }
.trust-section { padding: 90px 85px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 85px; align-items: center; border-radius: 38px; background: #f1e7d3; }
.trust-copy > p:not(.eyebrow):not(.trust-control) { color: var(--muted); font-size: 16px; line-height: 1.7; }
.trust-control { margin-top: 25px; padding: 16px 18px; border-left: 4px solid var(--purple); background: rgba(255,255,255,.65); font-size: 13px; font-weight: 700; line-height: 1.55; }
.trust-control span { color: var(--purple); margin-right: 7px; }
.trust-card { overflow: hidden; border-radius: 21px; background: white; box-shadow: var(--shadow); }
.trust-card > div { padding: 22px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; border-top: 1px solid var(--line); }
.trust-card > div:first-child { border-top: 0; }
.trust-card > div > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--purple); font-weight: 800; }
.trust-card p,.trust-card strong,.trust-card small { display: block; margin: 0; }
.trust-card small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.pilot-section { margin-top: 115px; margin-bottom: 70px; padding: 64px 315px 64px 65px; min-height: 390px; position: relative; display: grid; grid-template-columns: 1fr 180px; gap: 45px; align-items: center; border-radius: 38px; color: white; background: linear-gradient(135deg,#43264f,#6f327f 68%,#9d5b24); overflow: hidden; }
.pilot-section .eyebrow { color: var(--pencil-light); }
.pilot-section h2 { max-width: 620px; }
.pilot-section p { max-width: 650px; color: rgba(255,255,255,.75); line-height: 1.6; }
.pilot-section .button { margin-top: 14px; background: var(--pencil); color: var(--ink); box-shadow: none; }
.pilot-section .button:hover { background: #ffd764; }
.pilot-section > img { width: 285px; position: absolute; right: -3px; bottom: -75px; filter: drop-shadow(-12px 18px 18px rgba(0,0,0,.24)); transform: rotate(4deg); }
.waitlist-section { padding: 58px 270px 58px 58px; grid-template-columns: minmax(260px,.8fr) minmax(390px,1.2fr); gap: 38px; align-items: start; }
.waitlist-copy { padding-top: 18px; }
.waitlist-copy h2 { font-size: clamp(34px,4vw,54px); line-height: 1.02; }
.pilot-signin { margin-top: 24px; font-size: 13px; }
.pilot-signin a { color: white; font-weight: 800; text-underline-offset: 4px; }
.waitlist-form { padding: 25px; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 22px; color: var(--ink); background: #fffdf9; box-shadow: 0 24px 55px rgba(23,12,28,.25); }
.waitlist-form-heading { grid-column: 1 / -1; display: grid; gap: 3px; }
.waitlist-form-heading strong { font: 800 24px "Manrope"; }
.waitlist-form-heading span { color: var(--muted); font-size: 12px; }
.waitlist-form label:not(.waitlist-check) { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 800; }
.waitlist-form input:not([type="checkbox"]), .waitlist-form select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #d9cfdc; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.waitlist-form input:focus, .waitlist-form select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,42,168,.1); }
.waitlist-wide { grid-column: 1 / -1; }
.waitlist-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; color: #514557; font-size: 11px; line-height: 1.45; }
.waitlist-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple); }
.waitlist-privacy { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.waitlist-privacy a { color: var(--purple-dark); font-weight: 800; }
.waitlist-form .button { width: 100%; margin-top: 0; }
.waitlist-message { min-height: 18px; margin: 0; color: #245a3c !important; font-size: 12px; font-weight: 800; }
.waitlist-message.error { color: #9b2d3a !important; }
.waitlist-honeypot { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.waitlist-section > img { width: 235px; right: -8px; bottom: -60px; }

.waitlist-admin-section { max-width: 1240px; margin: 0 auto; }
.waitlist-admin-summary { margin: 22px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.waitlist-admin-summary div { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.waitlist-admin-summary strong { display: block; color: var(--purple-dark); font: 800 28px "Manrope"; }
.waitlist-admin-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.waitlist-admin-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
.waitlist-admin-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.waitlist-admin-table th, .waitlist-admin-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.waitlist-admin-table th { color: var(--muted); background: #fbf8fc; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.waitlist-admin-table tr:last-child td { border-bottom: 0; }
.waitlist-admin-table select { min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.waitlist-delete { border: 0; color: #9b2d3a; background: transparent; font-weight: 800; cursor: pointer; }
.waitlist-empty { padding: 38px; color: var(--muted); text-align: center; }
.privacy-admin-heading { margin-top: 38px; }
.privacy-admin-heading h2 { margin-bottom: 6px; }
.privacy-admin-heading > p:last-child { color: var(--muted); font-size: 13px; }
.pilot-price { width: 165px; height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.pilot-price small { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.pilot-price strong { color: var(--pencil); font: 800 50px "Manrope"; line-height: 1; }
.pilot-price span { color: rgba(255,255,255,.7); font-size: 10px; }
.public-footer { min-height: 115px; padding: 25px max(24px,calc((100% - 1180px)/2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.public-footer p { color: var(--muted); font-size: 12px; text-align: center; }
.public-footer > a:last-child { justify-self: end; color: var(--purple); font-size: 12px; font-weight: 800; text-decoration: none; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease,transform .7s cubic-bezier(.2,.75,.25,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes public-barney-float { 0%,100% { transform: translateY(7px) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes speech-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }

.sr-only { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.barney-assistant { position: fixed; right: 24px; bottom: 22px; z-index: 1000; font-family: "DM Sans",sans-serif; }
.barney-launcher { min-width: 86px; height: 86px; padding: 0; position: relative; display: grid; place-items: center; overflow: hidden; border: 3px solid #fff8e9; border-radius: 50%; color: white; background: var(--pencil); box-shadow: 0 14px 35px rgba(50,28,61,.28); cursor: pointer; transition: transform .2s ease; }
.barney-launcher:hover { transform: translateY(-3px) rotate(-1deg); }
.barney-launcher img { width: 105px; height: 105px; position: relative; top: 19px; z-index: 2; object-fit: cover; object-position: 50% 8%; filter: drop-shadow(0 7px 6px rgba(0,0,0,.18)); animation: assistant-breathe 3s ease-in-out infinite; }
.barney-launcher-ring { position: absolute; inset: -5px; border: 2px solid rgba(123,42,168,.28); border-radius: inherit; animation: assistant-ring 2.6s ease-out infinite; }
.barney-launcher-label { padding: 5px 9px; position: absolute; right: 66px; bottom: 4px; width: max-content; border-radius: 9px; color: var(--ink); background: white; font-size: 11px; font-weight: 800; box-shadow: 0 7px 20px rgba(35,24,39,.14); }
.barney-chat { width: min(390px,calc(100vw - 28px)); max-height: min(620px,calc(100vh - 120px)); margin-bottom: 13px; overflow: hidden; border: 1px solid #d9c9de; border-radius: 24px; background: #fffdf9; box-shadow: 0 28px 80px rgba(39,25,45,.27),0 0 0 1px rgba(255,255,255,.7) inset; transform-origin: bottom right; animation: chat-arrive .25s ease both; }
.barney-chat header { min-height: 76px; padding: 11px 14px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 11px; color: white; background: radial-gradient(circle at 15% 0%,rgba(242,184,39,.28),transparent 35%),linear-gradient(120deg,#39243f,#7b2aa8); }
.barney-chat-avatar { width: 50px; height: 50px; position: relative; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.75); border-radius: 16px; background: var(--pencil-light); }
.barney-chat-avatar img { width: 64px; height: 64px; position: relative; top: 10px; object-fit: cover; }
.barney-chat-avatar .barney-online-dot { position: absolute; right: 3px; bottom: 3px; border: 2px solid var(--purple-dark); }
.barney-chat header strong,.barney-chat header small { display: block; }
.barney-chat header small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 10px; }
.barney-chat header small span { color: #a9efc5; font-weight: 800; }
.barney-chat header button { border: 0; color: rgba(255,255,255,.75); background: transparent; font-size: 25px; cursor: pointer; }
.barney-online-dot { width: 9px; height: 9px; border-radius: 50%; background: #8ee5b2; box-shadow: 0 0 0 4px rgba(142,229,178,.12); }
.barney-messages { min-height: 180px; max-height: 290px; padding: 18px 17px 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: radial-gradient(circle at 100% 0%,rgba(242,184,39,.09),transparent 38%); }
.barney-message { max-width: 86%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; color: #4b414e; background: #f2ebf5; font-size: 13px; line-height: 1.45; animation: message-arrive .2s ease both; }
.barney-message.user { align-self: flex-end; border-radius: 14px 14px 4px 14px; color: white; background: var(--purple); }
.barney-message-action { align-self: flex-start; padding: 8px 11px; border: 1px solid #cab0d5; border-radius: 10px; color: var(--purple-dark); background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.barney-message-action::after { content: "  →"; }
.barney-typing { width: max-content; margin: 0 17px 10px; padding: 9px 12px; display: flex; gap: 4px; border-radius: 13px 13px 13px 4px; background: #f2ebf5; }
.barney-typing i { width: 5px; height: 5px; border-radius: 50%; background: #927a9b; animation: typing-dot 1s ease-in-out infinite; }
.barney-typing i:nth-child(2) { animation-delay: .14s; }
.barney-typing i:nth-child(3) { animation-delay: .28s; }
.barney-suggestions { padding: 0 15px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.barney-suggestions button { padding: 7px 9px; border: 1px solid #dbc9e3; border-radius: 999px; color: var(--purple-dark); background: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.barney-suggestions button:hover { border-color: var(--purple); background: #fbf4ff; }
.barney-chat form { margin: 0 14px; padding: 5px 5px 5px 13px; display: flex; align-items: center; gap: 7px; border: 1px solid #ded4e2; border-radius: 13px; background: white; }
.barney-chat form:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,42,168,.08); }
.barney-chat input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.barney-chat form button { width: 32px; height: 32px; border: 0; border-radius: 9px; color: white; background: var(--purple); font-size: 17px; cursor: pointer; }
.barney-chat form button:hover { background: var(--purple-dark); transform: translateX(1px); }
.barney-chat-note { margin: 9px 16px 13px; color: #8a7e8c; font-size: 9px; line-height: 1.35; text-align: center; }
.barney-nudge { width: 205px; margin: 0 4px 12px auto; padding: 4px 4px 4px 12px; display: flex; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 15px 15px 4px 15px; background: white; box-shadow: 6px 7px 0 var(--pencil); animation: chat-arrive .28s ease both; }
.barney-nudge > button:first-child { flex: 1; padding: 8px 0; border: 0; color: var(--ink); background: transparent; text-align: left; font-size: 12px; font-weight: 800; cursor: pointer; }
.barney-nudge-close { width: 28px; height: 28px; border: 0; border-radius: 8px; color: var(--muted); background: #f5f0e8; cursor: pointer; }
@keyframes assistant-breathe { 0%,100% { transform: translateY(1px) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes assistant-ring { 0% { transform: scale(.93); opacity: .7; } 75%,100% { transform: scale(1.17); opacity: 0; } }
@keyframes chat-arrive { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes message-arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes typing-dot { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

.topbar { min-height: 76px; padding: 0 max(24px, calc((100vw - 1280px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,253,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.mini-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Manrope"; font-weight: 800; }
.mini-brand img { width: 42px; height: 42px; object-fit: contain; }
.primary-app-nav { padding: 5px; display: flex; align-items: center; gap: 3px; border: 1px solid #e7dccd; border-radius: 14px; background: #f7f0e4; }
.primary-app-nav button { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease; }
.primary-app-nav button:hover { color: var(--purple-dark); transform: translateY(-1px); }
.primary-app-nav button span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: var(--purple); background: rgba(123,42,168,.08); font-size: 12px; }
.primary-app-nav button.active { color: var(--purple-dark); background: white; box-shadow: 0 4px 13px rgba(69,41,24,.09); }
.primary-app-nav button.active span { color: #49380c; background: var(--pencil-light); }
.account-cluster { display: flex; align-items: center; gap: 10px; }
.billing-dialog { width: min(760px,calc(100vw - 32px)); padding: 34px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 80px rgba(45,24,55,.28); }
.billing-dialog::backdrop { background: rgba(33,22,38,.58); backdrop-filter: blur(3px); }
.billing-dialog h2 { margin: 5px 38px 8px 0; font: 800 28px/1.18 "Manrope"; }
.billing-dialog > p { color: var(--muted); line-height: 1.55; }
.billing-dialog-close { position: absolute; top: 17px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--ink); background: var(--cream); font-size: 24px; cursor: pointer; }
.billing-plan-grid { margin: 25px 0 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.billing-plan-grid article { padding: 20px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.billing-plan-grid article > strong { font: 800 20px "Manrope"; }
.billing-plan-grid article > span { color: var(--muted); font-size: 13px; }
.billing-plan-grid .button { width: 100%; }
.billing-dialog-note { margin-bottom: 0; font-size: 11px; }
@media (max-width: 720px) { .billing-plan-grid { grid-template-columns: 1fr; } }
.workspace-identity { max-width: 235px; padding: 7px 10px; overflow: hidden; border: 1px solid #ded1e5; border-radius: 999px; color: var(--purple-dark); background: #f5ecf8; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; background: var(--mint); color: var(--teal-dark); border-radius: 12px; font-weight: 800; }
.account-copy { display: flex; flex-direction: column; min-width: 150px; }
.account-copy strong { font-size: 14px; }
.account-copy span { font-size: 12px; color: var(--muted); }
.public-preview-link { margin-right: 5px; color: var(--purple); font-size: 12px; font-weight: 800; text-decoration: none; }
.public-preview-link:hover { text-decoration: underline; }
.school-context-bar { width: min(1120px,calc(100% - 40px)); min-height: 68px; margin: 18px auto 0; padding: 10px 13px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,248,.92); box-shadow: 0 8px 25px rgba(68,45,28,.06); }
.school-context-bar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.school-context-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--purple); font: 800 15px "Manrope"; }
.school-context-bar label { min-width: 220px; }
.school-context-bar label small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.school-context-bar select { width: min(340px,42vw); border: 0; outline: 0; color: var(--ink); background: transparent; font: 800 14px "Manrope"; }
.school-status-badge { padding: 6px 9px; border-radius: 999px; color: #75531a; background: var(--pencil-light); font-size: 10px; font-weight: 800; }
.school-status-badge.ready { color: #176c54; background: #eaf7f0; }
.school-status-badge.pending { color: var(--purple-dark); background: var(--mint); }
.school-account-panel { width: min(1040px,calc(100% - 40px)); margin: 26px auto 70px; overflow: hidden; border: 1px solid #dfd0e6; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.school-account-panel > header { min-height: 210px; padding: 34px 250px 34px 42px; position: relative; display: flex; align-items: center; color: white; background: linear-gradient(120deg,#32253a,#63227c 62%,#8e32b4); overflow: hidden; }
.school-account-panel > header h1 { margin: 7px 0 10px; font-size: clamp(28px,4vw,42px); line-height: 1.08; }
.school-account-panel > header p:last-child { max-width: 650px; margin: 0; color: rgba(255,255,255,.75); line-height: 1.55; }
.school-account-panel > header .eyebrow { color: var(--pencil-light); }
.school-account-panel > header img { width: 215px; position: absolute; right: 24px; bottom: -63px; filter: drop-shadow(0 18px 18px rgba(0,0,0,.24)); }
.school-account-layout { display: grid; grid-template-columns: 245px 1fr; min-height: 390px; }
.school-account-layout aside { padding: 28px 22px; border-right: 1px solid var(--line); background: #fbf6ea; }
.school-account-layout aside > strong { display: block; margin-bottom: 15px; font: 800 13px "Manrope"; }
#account-school-list { display: grid; gap: 8px; margin-bottom: 17px; }
.account-school-choice { width: 100%; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.account-school-choice span { min-width: 0; }
.account-school-choice strong,.account-school-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-school-choice strong { font-size: 12px; }
.account-school-choice small { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.account-school-choice.active { border-color: #d9c4e3; background: white; box-shadow: 0 6px 14px rgba(68,45,28,.06); }
.school-account-detail { padding: 34px 38px; }
.school-account-detail h2 { margin-bottom: 8px; font-size: 27px; }
.school-account-detail > p { max-width: 650px; color: var(--muted); line-height: 1.55; }
.school-detail-status { margin: 22px 0; padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; border-radius: 14px; background: #f6edf9; }
.school-detail-status.ready { background: #eaf7f0; }
.school-detail-status > span { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--purple); font-weight: 900; }
.school-detail-status.ready > span { background: #176c54; }
.school-detail-status strong,.school-detail-status small { display: block; }
.school-detail-status small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.school-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.school-form-grid .wide { grid-column: 1 / -1; }
.school-checklist { display: grid; gap: 9px; margin: 20px 0; }
.school-checklist label { padding: 12px 13px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font-size: 12px; line-height: 1.4; }
.school-checklist input { width: 17px; min-height: 17px; margin-top: 1px; }
.school-admin-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.school-admin-block h3 { margin-bottom: 7px; font-size: 17px; }
.school-admin-block p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.school-readiness-block details { border: 1px solid var(--line); border-radius: 15px; background: #fffdf7; }
.school-readiness-block summary { padding: 15px 17px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-size: 13px; font-weight: 800; }
.school-readiness-block summary small { color: var(--muted); font-size: 10px; font-weight: 600; }
.school-readiness-block details > p { margin: 0; padding: 0 17px 13px; }
.private-readiness-list { padding: 0 13px 13px; display: grid; gap: 9px; }
.private-readiness-list > div { padding: 11px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; border-radius: 11px; background: white; }
.private-readiness-list > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--purple); font-size: 11px; font-weight: 900; }
.private-readiness-list .complete > span { background: var(--teal); }
.private-readiness-list .waiting > span { color: var(--ink); background: var(--pencil); }
.private-readiness-list .operator-check { background: var(--mint); }
.private-readiness-list p,.private-readiness-list strong,.private-readiness-list small { display: block; margin: 0; }
.private-readiness-list small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.invite-result { margin-top: 12px; padding: 12px; border-radius: 10px; background: #fff3c8; word-break: break-all; font-size: 11px; }
.school-team-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.school-team-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px solid rgba(30, 43, 40, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.72); }
.school-team-row span { display: grid; gap: 2px; min-width: 0; }
.school-team-row strong, .school-team-row small { overflow-wrap: anywhere; }
.school-team-row small { color: var(--ink-soft); }
.school-team-loading, .school-team-error { margin: 12px 0; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.68); }
.school-team-error { color: #9b2f2f; }
.school-admin-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 5px; }
.school-admin-links a { padding: 8px 11px; border-radius: 9px; color: var(--purple-dark); background: #f2e9f4; font-size: 12px; font-weight: 800; text-decoration: none; }
.school-admin-links a:hover { background: #e9d8ee; }
.school-admin-links a:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.school-activity-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 15px 0; border-block: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.school-activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.school-activity-heading > div { min-width: 0; }
.school-activity-heading .button { flex: 0 0 auto; }
.school-activity-summary span { display: flex; align-items: baseline; gap: 6px; }
.school-activity-summary strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.school-activity-list { display: grid; gap: 8px; margin-top: 14px; }
.school-activity-teacher { border: 1px solid var(--line); border-radius: 12px; background: white; }
.school-activity-teacher summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; cursor: pointer; }
.school-activity-teacher summary > span:first-child { min-width: 0; display: grid; gap: 2px; }
.school-activity-teacher summary strong,.school-activity-teacher summary small { overflow-wrap: anywhere; }
.school-activity-teacher summary small { color: var(--ink-soft); }
.school-activity-counts { flex: 0 1 auto; color: var(--ink-soft); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.school-activity-detail { padding: 0 15px 14px; border-top: 1px solid var(--line); }
.school-activity-detail > p { margin: 11px 0; }
.school-activity-assessments { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.school-activity-assessments li { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.school-activity-assessments li span { display: grid; gap: 2px; min-width: 0; }
.school-activity-assessments li small { color: var(--ink-soft); overflow-wrap: anywhere; }
.school-activity-assessments li > small { flex: 0 0 auto; }
.school-activity-teacher summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.school-usage-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 17px 0 20px; padding: 15px 0; border-block: 1px solid var(--line); }
.school-usage-summary div { min-width: 0; }
.school-usage-summary dt { color: var(--ink-soft); font-size: 12px; }
.school-usage-summary dd { margin: 4px 0 0; color: var(--ink); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.school-usage-block h4 { margin: 20px 0 8px; color: var(--ink); font-size: 14px; }
.school-usage-runs { list-style: none; margin: 0; padding: 0; }
.school-usage-run { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.school-usage-run > span { min-width: 0; }
.school-usage-run > span:last-child { text-align: right; }
.school-usage-run strong,.school-usage-run small { display: block; overflow-wrap: anywhere; }
.school-usage-run strong { color: var(--ink); font-size: 13px; }
.school-usage-run small { margin-top: 2px; color: var(--ink-soft); font-size: 11px; }
.school-usage-warning { padding: 11px 13px; border-radius: 10px; color: #62440b !important; background: #fff2c8; }
.school-usage-note { margin-top: 16px; font-size: 11px !important; }
.upload-check-confirm { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 16px 0 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: 13px; line-height: 1.5; cursor: pointer; }
.upload-check-confirm input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple); }
.upload-check-confirm:focus-within { outline: 3px solid var(--purple); outline-offset: 3px; }
.workspace-access-notice { width: min(900px,calc(100% - 40px)); min-height: 310px; margin: 70px auto; padding: 45px 55px; display: grid; grid-template-columns: 180px 1fr; gap: 45px; align-items: center; border: 1px solid #dfd0e6; border-radius: 30px; background: linear-gradient(135deg,#fff9e6,#f4e7f8); box-shadow: var(--shadow); }
.workspace-access-notice img { width: 175px; filter: drop-shadow(0 18px 16px rgba(74,45,20,.17)); }
.workspace-access-notice h1 { margin: 8px 0 13px; font-size: clamp(29px,4vw,43px); line-height: 1.08; }
.workspace-access-notice > div > p:last-child { max-width: 600px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.app-shell { min-height: 100vh; background: radial-gradient(circle at 8% 18%,rgba(245,185,31,.10),transparent 24%),radial-gradient(circle at 92% 30%,rgba(123,42,168,.07),transparent 25%),var(--background); }
.workspace { width: min(1120px, calc(100% - 40px)); margin: 28px auto 80px; }
.teacher-dashboard { display: grid; gap: 20px; }
.dashboard-welcome { min-height: 390px; padding: 48px 420px 44px 48px; position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 32px; color: white; background: linear-gradient(118deg,#29232c 0%,#43264f 55%,#6f327f 100%); box-shadow: var(--shadow); isolation: isolate; }
.dashboard-welcome::before { content: ""; width: 360px; height: 360px; position: absolute; right: 52px; bottom: -116px; border-radius: 50%; background: var(--pencil); box-shadow: 0 0 0 36px rgba(245,185,31,.12),0 0 0 72px rgba(245,185,31,.06); z-index: -1; }
.dashboard-welcome-copy { position: relative; z-index: 2; }
.dashboard-welcome .eyebrow { color: var(--pencil-light); }
.dashboard-welcome h1 { max-width: 650px; margin: 8px 0 15px; font-size: clamp(38px,5vw,58px); line-height: 1.02; letter-spacing: -.045em; }
.dashboard-welcome-copy > p:not(.eyebrow) { max-width: 610px; margin: 0; color: rgba(255,255,255,.73); font-size: 16px; line-height: 1.65; }
.dashboard-actions { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-actions .button-primary { color: #3d2d08; background: var(--pencil); box-shadow: none; }
.dashboard-actions .button-primary:hover { background: #ffd45f; }
.button-light { color: white; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.button-light:hover { background: rgba(255,255,255,.2); }
.dashboard-stats { margin-top: 31px; display: flex; gap: 0; }
.dashboard-stats > span { min-width: 112px; padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(255,255,255,.17); }
.dashboard-stats > span:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.dashboard-stats strong,.dashboard-stats small { display: block; }
.dashboard-stats strong { color: white; font: 800 20px "Manrope"; }
.dashboard-stats small { margin-top: 3px; color: rgba(255,255,255,.57); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.dashboard-barney { width: 360px; height: 360px; position: absolute; right: 23px; bottom: -61px; display: grid; place-items: center; }
.dashboard-barney img { width: 325px; position: relative; z-index: 2; filter: drop-shadow(0 25px 20px rgba(0,0,0,.27)); animation: public-barney-float 4.6s ease-in-out infinite; }
.dashboard-barney > span { width: 175px; padding: 12px 14px; position: absolute; top: 25px; left: -14px; z-index: 4; border: 2px solid var(--ink); border-radius: 15px 15px 4px 15px; color: var(--ink); background: white; font-size: 12px; font-weight: 800; line-height: 1.35; box-shadow: 7px 7px 0 var(--pencil); transform: rotate(-2deg); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.dashboard-classes-card,.dashboard-next-card { border: 1px solid var(--line); border-radius: 25px; background: var(--paper); box-shadow: 0 14px 38px rgba(68,45,28,.065); }
.dashboard-classes-card { min-height: 330px; padding: 30px; }
.dashboard-classes-card > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.dashboard-classes-card h2,.dashboard-next-card h2 { margin: 5px 0 0; font-size: 25px; }
.text-button { padding: 4px 0; border: 0; color: var(--purple); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.text-button:hover { color: var(--purple-dark); text-decoration: underline; }
.dashboard-class-list { display: grid; gap: 9px; margin-top: 17px; }
.dashboard-class-choice { width: 100%; padding: 12px 13px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); background: #fbf7ef; text-align: left; cursor: pointer; transition: border-color .16s ease,background .16s ease,transform .16s ease; }
.dashboard-class-choice:hover { border-color: #dbc9e3; background: white; transform: translateX(2px); }
.dashboard-class-choice > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--purple-dark); background: var(--mint); font: 800 12px "Manrope"; }
.dashboard-class-choice strong,.dashboard-class-choice small { display: block; }
.dashboard-class-choice small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-class-choice b { color: var(--purple); font-size: 18px; }
.dashboard-empty { min-height: 170px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.dashboard-empty strong { display: block; margin-bottom: 4px; color: var(--ink); }
.dashboard-next-card { padding: 30px; position: relative; overflow: hidden; background: linear-gradient(150deg,#fffdf8 0%,#fff3c7 100%); }
.dashboard-next-card::after { content: ""; width: 130px; height: 130px; position: absolute; right: -48px; bottom: -58px; border: 24px solid rgba(123,42,168,.10); border-radius: 50%; }
.dashboard-next-icon { width: 49px; height: 49px; margin-bottom: 29px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--purple); font-size: 21px; font-weight: 900; box-shadow: 7px 7px 0 rgba(245,185,31,.62); }
.dashboard-next-card > p:not(.step-label) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.dashboard-next-card ol { margin: 19px 0 22px; padding: 0; display: grid; gap: 8px; list-style: none; counter-reset: marking-step; }
.dashboard-next-card li { counter-increment: marking-step; display: flex; align-items: center; gap: 9px; color: #554c43; font-size: 12px; font-weight: 700; }
.dashboard-next-card li::before { content: counter(marking-step); width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 7px; color: var(--purple-dark); background: white; font-size: 10px; font-weight: 900; }
.hero-panel { min-height: 218px; padding: 35px 42px; border-radius: 28px; background: linear-gradient(120deg,#29232c 0%,#43264f 58%,#6f327f 100%); color: white; display: flex; align-items: center; justify-content: space-between; overflow: hidden; box-shadow: var(--shadow); }
.hero-panel h1 { max-width: 720px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.hero-panel p:not(.eyebrow) { max-width: 650px; color: rgba(255,255,255,.78); margin: 0; font-size: 17px; }
.hero-panel .eyebrow { color: var(--pencil-light); }
.barney-stage { width: 230px; min-width: 230px; align-self: stretch; position: relative; display: grid; place-items: center; }
.barney-stage img { width: 150px; z-index: 2; filter: drop-shadow(0 16px 18px rgba(0,0,0,.18)); animation: barney-float 4s ease-in-out infinite; }
.barney-orbit { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; animation: orbit-pulse 4s ease-in-out infinite; }
.barney-bubble { position: absolute; top: 8px; right: 150px; z-index: 3; width: max-content; max-width: 150px; padding: 9px 13px; border-radius: 13px 13px 3px 13px; background: white; color: var(--navy); text-align: center; font-size: 12px; line-height: 1.25; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.12); animation: bubble-in 900ms ease both; }
@keyframes barney-float { 0%,100% { transform: translateY(5px) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes orbit-pulse { 50% { transform: scale(1.06); opacity: .55; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.95); } }

.journey { padding: 16px 20px; display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr; align-items: center; margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.82); box-shadow: 0 8px 25px rgba(68,45,28,.05); }
.journey-step { display: flex; align-items: center; gap: 12px; color: #929daf; }
.journey-step > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #e5ebed; font-weight: 800; }
.journey-step div { display: flex; flex-direction: column; }
.journey-step strong { font-size: 14px; }
.journey-step small { font-size: 11px; }
.journey-step.active, .journey-step.complete { color: var(--ink); }
.journey-step.active > span { background: var(--teal); color: white; box-shadow: 0 0 0 6px rgba(27,135,124,.1); }
.journey-step.complete > span { background: var(--mint); color: var(--teal-dark); }
.journey-line { height: 2px; background: var(--line); }

.setup-card { min-height: 350px; margin-top: 18px; padding: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 42px rgba(68,45,28,.07); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-heading h2 { font-size: 25px; margin-bottom: 7px; }
.section-heading p { color: var(--muted); margin: 0; }
.step-label { margin: 0 0 8px !important; }
.back-link { display: inline-flex; margin: 0 0 14px; padding: 0; border: 0; color: var(--purple); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.back-link:hover { text-decoration: underline; }
.back-link-light { margin-bottom: 18px; color: var(--pencil-light); }
.button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 11px; cursor: pointer; font-weight: 700; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .46; transform: none; }
.button-primary { background: var(--purple); color: white; box-shadow: 0 8px 18px rgba(91,29,126,.20); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: var(--mint); color: var(--teal-dark); }
.button-quiet { background: transparent; color: var(--muted); }
.button-large { min-height: 54px; padding: 0 24px; }
.button-large svg { width: 21px; }
.button-drive { width: 100%; margin-top: 12px; color: var(--navy); background: #f3ebf6; }

.inline-form { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; margin-top: 24px; padding: 20px; background: #f7faf9; border-radius: 16px; }
label span { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
input, select { font: inherit; }
input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #cfdadd; border-radius: 10px; outline: none; background: white; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(123,42,168,.1); }
.school-form-grid select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #cfdadd; border-radius: 10px; outline: none; background: white; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 25px; }
.choice-card { padding: 17px; min-height: 108px; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: white; cursor: pointer; position: relative; display: grid; grid-template-columns: 47px 1fr auto; align-items: center; gap: 13px; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.choice-card:hover { border-color: #c797dc; background: #fffdfd; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(83,42,102,.09); }
.choice-card.selected { border: 2px solid var(--teal); background: var(--mint); }
.choice-card strong { display: block; padding-right: 4px; font-family: "Manrope"; font-size: 15px; line-height: 1.25; }
.choice-card span { color: var(--muted); font-size: 12px; }
.choice-card .class-monogram { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; color: var(--purple-dark); background: var(--mint); font: 800 14px "Manrope"; }
.choice-card .class-card-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.choice-card .class-card-copy small { color: var(--muted); font-size: 11px; }
.choice-card .class-arrow { color: var(--purple); font-size: 19px; transition: transform .18s ease; }
.choice-card:hover .class-arrow { transform: translateX(3px); }
.choice-card .check { display: none; position: absolute; right: 15px; top: 15px; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: white; background: var(--teal); }
.choice-card.selected .check { display: grid; }

.assessment-list { margin-top: 24px; display: grid; gap: 10px; }
.class-hub-tabs { margin: 28px -4px 4px; padding: 5px; display: inline-flex; gap: 5px; border-radius: 14px; background: #f0e9de; }
.class-hub-tabs button { min-height: 39px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.class-hub-tabs button span { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(69,50,35,.08); font-size: 10px; }
.class-hub-tabs button.active { color: var(--purple-dark); background: white; box-shadow: 0 3px 10px rgba(68,45,28,.09); }
.class-hub-tabs button.active span { color: white; background: var(--purple); }
.class-tab-panel { padding-top: 4px; }
.hub-empty { min-height: 190px; margin-top: 24px; padding: 30px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px dashed #d7c9b8; border-radius: 18px; color: var(--muted); background: #fffcf5; }
.hub-empty > span { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 15px; color: var(--purple-dark); background: var(--mint); font-size: 12px; font-weight: 900; }
.hub-empty strong { display: block; color: var(--ink); }
.hub-empty p { max-width: 470px; margin: 5px 0 0; font-size: 13px; }
.hub-panel-heading { margin-top: 22px; padding: 8px 2px 15px; }
.hub-panel-heading h3 { margin: 0 0 6px; font-size: 22px; }
.hub-panel-heading p:not(.step-label) { margin: 0; color: var(--muted); font-size: 13px; }
.result-assessment-list,.report-library { display: grid; gap: 12px; }
.result-assessment-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; }
.result-assessment-card[open] { border-color: #cda7dc; box-shadow: 0 10px 25px rgba(78,41,94,.07); }
.result-assessment-card > summary { padding: 16px 18px; display: grid; grid-template-columns: 42px 1fr auto 24px; align-items: center; gap: 13px; list-style: none; cursor: pointer; }
.result-assessment-card > summary::-webkit-details-marker { display: none; }
.result-assessment-title strong,.result-assessment-title small,.average-chip small,.average-chip strong { display: block; }
.result-assessment-title small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.average-chip { min-width: 100px; padding: 8px 11px; border-radius: 11px; background: #fff7d9; text-align: right; }
.average-chip small { color: #86631b; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.average-chip strong { margin-top: 2px; color: #5f4410; }
.details-arrow { color: var(--purple); font-size: 20px; transition: transform .18s ease; }
.result-assessment-card[open] .details-arrow { transform: rotate(180deg); }
.saved-student-list { padding: 5px 18px 14px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.saved-student-row { padding: 11px 0; display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 12px; border-bottom: 1px solid #f0e9df; }
.saved-student-row:last-child { border-bottom: 0; }
.saved-student-row > span:nth-child(2) strong,.saved-student-row > span:nth-child(2) small,.saved-score strong,.saved-score small { display: block; }
.saved-student-row > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.saved-score { min-width: 68px; text-align: right; }
.saved-score strong { color: var(--purple-dark); }
.saved-score small { color: var(--muted); font-size: 10px; }
.assessment-result-actions { padding: 0 18px 15px; display: flex; justify-content: flex-end; }
.report-library-card { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.report-library-card header { min-width: 0; display: flex; align-items: center; gap: 13px; }
.report-library-card header strong,.report-library-card header small { display: block; }
.report-library-card header small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.report-library-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.saved-result-detail { margin-top: 22px; }
.saved-result-heading { padding: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 20px; color: white; background: linear-gradient(125deg,#34243e,#7b2aa8); }
.saved-result-heading h3 { margin: 2px 0 5px; font-size: 28px; }
.saved-result-heading p:not(.step-label) { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; text-transform: capitalize; }
.saved-result-heading .step-label { color: var(--pencil-light); }
.saved-result-total { min-width: 115px; padding: 15px; border-radius: 16px; background: rgba(255,255,255,.12); text-align: center; }
.saved-result-total strong,.saved-result-total span { display: block; }
.saved-result-total strong { color: var(--pencil); font: 800 29px "Manrope"; }
.saved-result-total span { color: rgba(255,255,255,.72); font-size: 11px; }
.saved-question-breakdown { display: grid; gap: 10px; margin-top: 16px; }
.saved-question-breakdown article { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.saved-question-breakdown header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.saved-question-breakdown header > span { min-width: 56px; padding: 6px 9px; border-radius: 9px; color: var(--purple-dark); background: var(--mint); font-weight: 900; text-align: center; }
.saved-question-breakdown article > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.saved-question-breakdown blockquote { margin: 12px 0 0; padding: 11px 13px; border-left: 3px solid var(--pencil); background: #fffaf0; color: #5f5548; font-size: 12px; line-height: 1.5; }
.saved-question-breakdown blockquote strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.saved-review-state { display: inline-block; margin-top: 10px; padding: 5px 8px; border-radius: 999px; color: #68511b; background: #fff1c5; font-weight: 800; text-transform: capitalize; }
.saved-result-actions { margin-top: 16px; padding-top: 16px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.hub-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.hub-loading span { width: 23px; height: 23px; border: 3px solid #dfd1e6; border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
.assessment-row { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: border-color .18s ease,box-shadow .18s ease; }
.assessment-row:hover { border-color: #cda9dd; box-shadow: 0 8px 20px rgba(79,43,93,.07); }
.assessment-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--purple-dark); background: var(--mint); font: 800 14px "Manrope"; }
.assessment-row strong { display: block; }
.assessment-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.status-pill { align-self: center; padding: 7px 10px; border-radius: 999px; background: #f1e9f4; color: var(--purple-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.empty-state { padding: 26px; border: 1px dashed #cbd8da; border-radius: 14px; color: var(--muted); text-align: center; }
.assessment-form { margin-top: 24px; padding-top: 26px; border-top: 1px solid var(--line); }
.title-field { display: block; max-width: 620px; }
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.file-slot { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfc; transition: border .2s, background .2s; }
.file-slot.selected { border-color: #70baaf; background: #f2fbf8; }
.file-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; font-family: "Manrope"; font-weight: 800; }
.paper-icon { background: #e6f0f8; color: #386a92; }
.scheme-icon { background: var(--mint); color: var(--teal-dark); }
.file-slot h3 { margin-bottom: 6px; font-size: 17px; }
.file-slot > p:not(.step-label) { color: var(--muted); margin: 0; font-size: 13px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.form-footer > p { color: var(--muted); font-size: 12px; }
.form-footer > div { display: flex; gap: 8px; }
.shield { color: var(--teal); margin-right: 4px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; padding: 14px 18px; border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow); z-index: 50; }
.toast.error { background: #8b2d39; }

.review-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.review-heading h2 { margin-bottom: 7px; }
.review-heading p { color: var(--muted); margin: 0; }
.review-heading img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(20,33,61,.13)); animation: barney-float 4s ease-in-out infinite; }
.check-empty { margin-top: 24px; padding: 30px; border-radius: 18px; text-align: center; background: linear-gradient(135deg,#f2fbf8,#f8fbfd); border: 1px dashed #9fcfc7; }
.check-empty h3 { margin-bottom: 7px; }
.check-empty p { max-width: 620px; margin: 0 auto 18px; color: var(--muted); }
.check-progress { margin-top: 24px; padding: 28px; border-radius: 18px; background: #f7faf9; text-align: center; }
.check-progress p { color: var(--muted); font-size: 12px; }
.progress-bar { height: 9px; margin-bottom: 18px; overflow: hidden; border-radius: 999px; background: #dfe9e7; }
.progress-bar span { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),#5dceb5); transition: width .35s ease; }
.check-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 24px 0; }
.summary-tile { padding: 17px; border-radius: 15px; background: #f7faf9; border: 1px solid var(--line); }
.summary-tile span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.summary-tile strong { display: block; margin-top: 4px; font: 800 24px "Manrope"; }
.total-review { padding: 18px; margin-bottom: 14px; border: 1px solid #edc66d; border-radius: 15px; background: #fff9e8; }
.total-review label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.total-review input, .confirm-row input, .accept-row input { width: 18px; min-height: 18px; flex: 0 0 18px; }
.question-review-list { display: grid; gap: 13px; }
.question-review { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcfc; }
.question-review.needs-review { border-color: #e4bd61; background: #fffbef; }
.question-topline { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.question-review textarea { width: 100%; min-height: 92px; padding: 12px 14px; resize: vertical; border: 1px solid #cfdadd; border-radius: 10px; background: white; font: inherit; }
.question-review textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(27,135,124,.1); }
.source-marks { display: flex; gap: 9px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.source-marks span { padding: 5px 8px; border-radius: 7px; background: #edf2f5; }
.issue-copy { margin: 12px 0; padding: 10px 12px; border-radius: 10px; color: #75531a; background: #fff3ce; font-size: 13px; }
.confirm-row, .accept-row { display: flex; gap: 9px; align-items: center; margin-top: 12px; color: var(--ink); font-size: 13px; }
.review-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.review-actions > div { display: flex; gap: 9px; }
.marking-page { width: min(1120px,calc(100% - 40px)); margin: 28px auto 80px; }
.marking-hero { padding: 40px 46px; border-radius: 28px; color: white; background: linear-gradient(120deg,#32253a,#842eaa); display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.marking-hero h1 { margin-bottom: 10px; font-size: clamp(30px,5vw,48px); }
.marking-hero p:not(.eyebrow) { max-width: 670px; color: rgba(255,255,255,.78); }
.marking-hero img { width: 150px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.18)); }
.marking-rail { margin: 18px 0; padding: 15px 19px; display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,248,.9); box-shadow: 0 8px 25px rgba(68,45,28,.05); }
.marking-rail > div { display: flex; align-items: center; gap: 10px; color: #a49a8c; }
.marking-rail > div > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #ede6db; font-size: 12px; font-weight: 800; }
.marking-rail p,.marking-rail strong,.marking-rail small { display: block; margin: 0; }
.marking-rail strong { font-size: 12px; }
.marking-rail small { margin-top: 2px; font-size: 10px; }
.marking-rail > i { height: 2px; display: block; background: var(--line); }
.marking-rail > div.active,.marking-rail > div.complete { color: var(--ink); }
.marking-rail > div.active > span { color: white; background: var(--purple); box-shadow: 0 0 0 5px rgba(123,42,168,.09); }
.marking-rail > div.complete > span { color: #47350b; background: var(--pencil); }
.marking-page > .setup-card { margin-top: 0; }
.upload-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; text-align: left; }
.upload-heading h2 { margin-bottom: 7px; }
.upload-heading p { color: var(--muted); margin: 0; }
.batch-upload-actions { min-width: 290px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.batch-upload-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.batch-upload-actions input { width: 112px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.batch-upload-actions #choose-student-files { grid-column: 1 / -1; }
.privacy-strip { display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 15px 17px; border-radius: 14px; color: var(--teal-dark); background: var(--mint); text-align: left; }
.privacy-strip > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--teal); }
.privacy-strip p { margin: 0; font-size: 13px; }
.intake-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 22px 0 14px; }
.workspace-tabs { display: flex; gap: 7px; margin: 22px 0 6px; padding: 5px; border-radius: 13px; background: #edf2f4; }
.workspace-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.workspace-tab span { min-width: 21px; padding: 2px 6px; border-radius: 999px; background: rgba(31,58,76,.08); font-size: 10px; }
.workspace-tab.active { color: var(--teal-dark); background: white; box-shadow: 0 2px 8px rgba(28,52,68,.09); }
.submission-list { display: grid; gap: 11px; margin-top: 18px; }
.submission-row { display: grid; grid-template-columns: 52px minmax(180px,1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfc; text-align: left; }
.student-code { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--navy); background: #e9f1f6; font-weight: 800; }
.submission-row strong { display: block; }
.submission-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.submission-row .response-note { margin-top: 6px; color: #725918; font-weight: 700; }
.row-primary-action { justify-self: end; }
.compact-action { padding: 8px 11px; font-size: 11px; }
.submission-status { padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.submission-status.ready { color: #176c54; background: #def5e9; }
.submission-status.blank_review { color: #7b5b17; background: #fff2c9; }
.submission-status.format_review { color: #815218; background: #ffead0; }
.submission-status.safeguarding_hold { color: #8b2d39; background: #fde4e7; }
.submission-status.excluded { color: #53626c; background: #e9eef1; }
.submission-status.result-ready { color: #315d78; background: #e7f1f7; }
.submission-status.result-finalised { color: #176c54; background: #def5e9; }
.safeguarding-note { grid-column: 2 / -1; padding: 11px 13px; border-radius: 10px; color: #7b2631 !important; background: #fff0f2; }
.teacher-note { grid-column: 2 / -1; padding: 10px 12px; border-radius: 10px; color: #36505d !important; background: #eef4f6; }
.intake-review { grid-column: 2 / -1; display: grid; gap: 10px; padding: 13px; border: 1px solid #ead9a6; border-radius: 12px; background: #fffaf0; }
.intake-review p { margin: 0 !important; color: #645530 !important; font-size: 13px !important; }
.intake-review-note { display: grid; gap: 4px; color: #4d442d; font-size: 12px; }
.intake-review-note strong { color: var(--navy); font-size: 12px; }
.intake-review-note small { color: #776b4d; font-size: 11px; }
.intake-review textarea { width: 100%; min-height: 64px; padding: 10px 12px; resize: vertical; border: 1px solid #d5c69d; border-radius: 9px; background: white; font: inherit; }
.intake-review textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,135,124,.1); }
.submission-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.submission-actions .button { padding: 9px 12px; font-size: 12px; }
.marking-gate { margin-top: 20px; padding: 15px 17px; border-radius: 13px; color: #75531a; background: #fff3ce; text-align: left; }
.marking-gate.ready { color: #176c54; background: #def5e9; }
.marking-gate strong { display: block; margin-bottom: 3px; }
.class-completion-panel { margin-top: 24px; padding: 24px; overflow: hidden; border: 1px solid #cbdde0; border-radius: 20px; background: linear-gradient(145deg,#f7fbfa 0%,#eef7f4 100%); text-align: left; }
.completion-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.completion-heading h2 { margin: 2px 0 7px; color: var(--navy); }
.completion-heading p { max-width: 730px; margin: 0; color: var(--muted); }
.completion-heading img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(23,50,77,.12)); }
.completion-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.completion-summary > div { padding: 13px 14px; border: 1px solid rgba(190,211,213,.9); border-radius: 12px; background: rgba(255,255,255,.84); }
.completion-summary span, .completion-summary strong { display: block; }
.completion-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.completion-summary strong { margin-top: 3px; color: var(--navy); font-size: 22px; }
.class-audit-panel { margin-top: 16px; padding: 17px; border: 1px solid #c9d9e5; border-radius: 15px; background: rgba(255,255,255,.9); }
.audit-heading { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; }
.audit-heading h3 { margin: 2px 0 4px; color: var(--navy); font-size: 17px; }
.audit-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.audit-symbol { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-weight: 900; }
.audit-candidate-list { display: grid; gap: 11px; margin-top: 15px; }
.audit-candidate { padding: 15px; border: 1px solid #e3bd71; border-radius: 13px; background: #fffaf0; }
.audit-candidate > header { display: flex; justify-content: space-between; gap: 16px; }
.audit-candidate > header strong,.audit-candidate > header small { display: block; }
.audit-candidate > header strong { color: var(--navy); }
.audit-candidate > header small { margin-top: 3px; color: #6f603b; }
.audit-candidate > header > span { flex: 0 0 auto; color: #75531a; font-size: 18px; font-weight: 900; }
.audit-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.audit-comparison > div { padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.8); }
.audit-comparison small,.audit-comparison strong { display: block; }
.audit-comparison small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.audit-comparison strong { margin-top: 3px; color: var(--navy); }
.audit-comparison p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.audit-evidence { margin: 10px 0 0; padding: 9px 11px; border-radius: 9px; color: #3f5662; background: #eef4f6; font-size: 11px; }
.audit-reason { display: grid; gap: 5px; margin-top: 11px; color: var(--ink); font-size: 11px; font-weight: 800; }
.audit-reason textarea { min-height: 58px; padding: 9px 10px; resize: vertical; border: 1px solid #d8c99f; border-radius: 9px; background: white; font: inherit; font-weight: 400; }
.audit-decision-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.audit-decision-row label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.audit-decision-row input { width: 62px; padding: 8px; border: 1px solid #d8c99f; border-radius: 8px; font: inherit; }
.completion-options { margin-top: 14px; padding: 12px 14px; border: 1px solid #d4e2e3; border-radius: 12px; background: rgba(255,255,255,.65); }
.completion-options summary { color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.completion-options > p { margin: 8px 0 10px; color: var(--muted); font-size: 12px; }
.completion-option-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.completion-option-grid label { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 9px; background: white; color: var(--ink); font-size: 11px; font-weight: 700; }
.completion-option-grid input { width: 16px; height: 16px; accent-color: var(--teal); }
.completion-progress { display: flex; align-items: center; gap: 12px; margin-top: 15px; padding: 14px 16px; border-radius: 12px; color: #315d78; background: #e7f1f7; }
.completion-progress p { margin: 2px 0 0; font-size: 12px; }
.completion-spinner { width: 23px; height: 23px; flex: 0 0 auto; border: 3px solid rgba(49,93,120,.22); border-top-color: #315d78; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.completion-result { display: grid; gap: 14px; margin-top: 15px; padding: 16px 17px; border-radius: 13px; }
.completion-result.complete { color: #176c54; background: #def5e9; }
.completion-result.needs-attention { color: #75531a; background: #fff3ce; }
.completion-result.failed { color: #7b2631; background: #fff0f2; }
.completion-result p { margin: 3px 0 0; font-size: 12px; }
.completion-result-links, .completion-actions > div { display: flex; flex-wrap: wrap; gap: 9px; }
.completion-blockers { display: grid; gap: 7px; }
.completion-blockers > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.65); }
.completion-blockers span, .completion-blockers small { display: block; }
.completion-blockers small { margin-top: 2px; color: inherit; opacity: .86; }
.completion-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 17px; padding-top: 16px; border-top: 1px solid #ccdedf; }
.completion-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.paper-selector { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--ink); font-size: 12px; font-weight: 700; }
.paper-selector input { width: 17px; height: 17px; accent-color: var(--teal); }
.marking-results { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.results-heading h2 { margin: 2px 0 6px; }
.results-heading p { margin: 0; color: var(--muted); }
.result-status { padding: 8px 11px; border-radius: 999px; color: #75531a; background: #fff0bf; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.result-status.finalised { color: #176c54; background: #def5e9; }
.summary-status { font-size: 18px !important; }
.result-callout { margin: 16px 0 20px; padding: 15px 17px; border-radius: 13px; text-align: left; }
.result-callout strong { display: block; margin-bottom: 3px; }
.result-callout p { margin: 0; font-size: 13px; }
.result-callout.clear { color: #176c54; background: #e8f8f0; }
.result-callout.needs-review { color: #75531a; background: #fff3ce; }
.marking-error { margin-top: 20px; padding: 17px 18px; border: 1px solid #e6a9b1; border-radius: 16px; background: #fff4f5; color: #6d2430; }
.marking-error strong { display: block; margin-bottom: 5px; }
.marking-error p { margin: 3px 0 0; }
.question-results { display: grid; gap: 10px; margin-top: 18px; }
.question-result { display: grid; grid-template-columns: minmax(150px,.55fr) 82px 1.6fr; gap: 14px; align-items: start; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; }
.question-result.review { border-color: #e7bb64; background: #fffaf0; }
.question-result p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.question-result .mark-score { color: var(--teal); font-size: 20px; font-weight: 800; }
.review-badge { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 999px; color: #75531a; background: #fff0bf; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.review-badge.reviewed { color: #176c54; background: #def5e9; }
.review-reason { padding: 8px 10px; border-radius: 9px; color: #75531a !important; background: #fff3ce; }
.teacher-decision { margin-top: 10px !important; padding: 9px 11px; border-radius: 9px; color: #176c54 !important; background: #e8f8f0; }
.mark-review-editor { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; }
.mark-review-editor summary { color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.mark-review-form { display: grid; gap: 10px; margin-top: 12px; padding: 13px; border-radius: 11px; background: #f4f8f7; }
.mark-review-form label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.mark-review-form label:first-child { grid-template-columns: auto 82px 1fr; align-items: center; }
.mark-review-form select, .mark-review-form textarea { padding: 9px 10px; border: 1px solid #cfdadd; border-radius: 9px; background: white; font: inherit; }
.mark-review-form textarea { min-height: 70px; resize: vertical; }
.mark-review-form select:focus, .mark-review-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,135,124,.1); }
.mark-review-form .button { justify-self: start; }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.result-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.student-feedback-panel { margin-top: 24px; padding: 22px; border: 1px solid #cddce2; border-radius: 18px; background: linear-gradient(145deg,#f7fafb,#f1f7f5); text-align: left; }
.feedback-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.feedback-panel-heading h3 { margin: 2px 0 6px; font-size: 21px; color: var(--navy); }
.feedback-panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.feedback-panel-heading img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 8px 9px rgba(23,50,77,.13)); }
.feedback-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 17px; }
.feedback-options label { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.feedback-options input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); }
.feedback-options strong, .feedback-options small { display: block; }
.feedback-options strong { color: var(--ink); font-size: 13px; }
.feedback-options small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.feedback-detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }
.feedback-detail-fields label { color: var(--ink); font-size: 12px; font-weight: 800; }
.feedback-detail-fields input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #cdd8dc; border-radius: 9px; background: white; font: inherit; font-weight: 400; }
.feedback-detail-fields input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,135,124,.1); }
.feedback-draft-editor { margin-top: 15px; padding: 14px 16px; border: 1px solid #cdd8dc; border-radius: 13px; background: rgba(255,255,255,.78); }
.feedback-draft-editor > summary { color: var(--teal-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.feedback-draft-editor > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.feedback-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.feedback-edit-grid label, .feedback-question-editor label { display: grid; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.feedback-edit-grid small { color: var(--muted); font-weight: 500; }
.feedback-edit-wide { grid-column: 1 / -1; }
.feedback-edit-grid textarea, .feedback-question-editor textarea { width: 100%; min-height: 76px; padding: 10px 11px; resize: vertical; border: 1px solid #cdd8dc; border-radius: 9px; background: white; color: var(--ink); font: inherit; font-weight: 400; }
.feedback-edit-grid textarea:focus, .feedback-question-editor textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,135,124,.1); }
.feedback-question-edit-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 17px; }
.feedback-question-edit-heading strong { color: var(--navy); font-size: 13px; }
.feedback-question-edit-heading span { color: var(--muted); font-size: 11px; }
.feedback-question-editors { display: grid; gap: 9px; margin-top: 9px; }
.feedback-question-editor { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.feedback-question-editor header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.feedback-question-editor header strong { color: var(--navy); font-size: 12px; line-height: 1.35; }
.feedback-question-editor header span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: var(--teal-dark); background: #e4f4f0; font-size: 10px; font-weight: 800; }
.feedback-report-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.feedback-report-actions p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.feedback-report-actions > div:last-child { display: flex; gap: 9px; }
.class-feedback-panel { background: linear-gradient(145deg,#f8f8ff,#f3f6fc); }
.class-priority-notes { display: grid; gap: 6px; margin-top: 16px; color: var(--ink); font-size: 12px; font-weight: 800; }
.class-priority-notes textarea { width: 100%; min-height: 76px; padding: 11px 12px; resize: vertical; border: 1px solid #cdd8dc; border-radius: 10px; background: white; font: inherit; font-weight: 400; }
.class-priority-notes textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,135,124,.1); }
.feedback-report-actions .button { white-space: nowrap; }
.upload-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .topbar { padding-inline: 20px; }
  .primary-app-nav button { padding-inline: 10px; }
  .workspace-identity,.public-preview-link { display: none; }
  .dashboard-welcome { padding-right: 350px; }
  .dashboard-barney { right: -4px; }
}

@media (max-width: 820px) {
  .barney-assistant { right: 12px; bottom: 12px; }
  .barney-launcher { min-width: 68px; width: 68px; height: 68px; }
  .barney-launcher img { width: 62px; height: 62px; }
  .barney-launcher-label { display: none; }
  .barney-chat { margin-bottom: 9px; max-height: calc(100vh - 100px); }
  .barney-messages { max-height: 235px; }
  .barney-at-work::after { right: 0; bottom: 4%; transform: scale(.85) rotate(5deg); }
  .barney-at-work::before { display: none; }
  .public-nav { width: min(100% - 30px,1180px); min-height: 70px; }
  .public-nav nav { display: none; }
  .public-brand { font-size: 14px; }
  .public-brand img { width: 39px; height: 39px; }
  .public-nav-cta { min-height: 37px; padding-inline: 13px; }
  .public-section { width: min(100% - 30px,1180px); }
  .public-hero { min-height: 0; padding: 58px 0 75px; grid-template-columns: 1fr; gap: 50px; }
  .public-hero-copy h1 { font-size: clamp(53px,17vw,78px); }
  .public-lede { font-size: 17px; }
  .public-actions { align-items: flex-start; flex-direction: column; }
  .public-hero-visual { min-height: 430px; }
  .barney-hero-wrap { width: 310px; }
  .barney-glow { width: 285px; height: 285px; }
  .barney-speech { top: 30px; left: -25px; }
  .result-preview-top { top: 15px; right: -5px; }
  .result-preview-bottom { left: -5px; bottom: 25px; }
  .public-outcomes { grid-template-columns: repeat(2,1fr); padding-inline: 20px; }
  .public-outcomes div,.public-outcomes div:first-child { padding: 14px; border-left: 1px solid rgba(255,255,255,.14); }
  .story-section,.outputs-section,.pricing-section { padding: 85px 0; }
  .story-steps,.output-grid,.pricing-panel { grid-template-columns: 1fr; }
  .story-steps article { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); }
  .story-steps article:first-child { border-top: 0; }
  .difference-section { padding: 54px 25px; grid-template-columns: 1fr; gap: 35px; border-radius: 28px; }
  .barney-guide { min-height: 330px; order: 2; }
  .barney-guide::before { width: 270px; height: 270px; }
  .barney-guide img { width: 265px; }
  .output-grid article { min-height: 300px; }
  .pricing-scope { grid-template-columns: 1fr; }
  .pricing-scope button { min-height: 52px; }
  .price-card-heading { min-height: 0; }
  .pricing-footnote { grid-template-columns: 1fr; gap: 10px; }
  .trust-section { padding: 55px 25px; grid-template-columns: 1fr; gap: 35px; border-radius: 28px; }
  .pilot-section { margin-top: 80px; padding: 50px 28px 260px; grid-template-columns: 1fr; border-radius: 28px; }
  .waitlist-section { padding: 42px 22px 210px; }
  .waitlist-form { grid-template-columns: 1fr; padding: 20px; }
  .waitlist-form > * { grid-column: 1; }
  .waitlist-admin-summary { grid-template-columns: 1fr 1fr; }
  .pilot-price { width: 135px; height: 135px; }
  .pilot-section > img { width: 245px; right: -8px; bottom: -80px; }
  .public-footer { padding: 28px 20px; grid-template-columns: 1fr; justify-items: center; }
  .public-footer > a:last-child { justify-self: center; }
  .topbar { min-height: 0; height: auto; padding: 9px 15px 10px; flex-wrap: wrap; row-gap: 8px; }
  .mini-brand { font-size: 13px; }
  .mini-brand img { width: 38px; height: 38px; }
  .primary-app-nav { width: 100%; min-width: 0; order: 3; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .primary-app-nav button { min-height: 44px; flex: 0 0 auto; justify-content: center; gap: 4px; padding-inline: 10px; font-size: 12px; }
  .primary-app-nav button span { width: 17px; height: 17px; flex: 0 0 17px; font-size: 10px; }
  .account-cluster { margin-left: auto; }
  .account-cluster .button { min-height: 44px; }
  .account-cluster .avatar { display: none; }
  .account-copy { display: none; }
  .workspace-identity { max-width: 145px; }
  .public-preview-link { display: none; }
  .workspace-access-notice { margin: 35px auto; padding: 32px 24px; grid-template-columns: 1fr; gap: 15px; text-align: center; }
  .workspace-access-notice img { width: 135px; margin: 0 auto; }
  .school-context-bar { align-items: stretch; flex-direction: column; }
  .school-context-bar > div { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; }
  .school-context-bar label { min-width: 0; }
  .school-context-bar select { width: 100%; }
  .school-context-bar .button { width: 100%; }
  .school-account-panel > header { min-height: 0; padding: 30px 28px; text-align: center; }
  .school-account-panel > header img { display: none; }
  .school-account-layout { grid-template-columns: 1fr; }
  .school-account-layout aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .school-account-detail { padding: 27px 23px; }
  .school-form-grid { grid-template-columns: 1fr; }
  .school-form-grid .wide { grid-column: auto; }
  .school-activity-teacher summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .school-activity-heading { align-items: flex-start; flex-direction: column; }
  .school-activity-counts { text-align: left; }
  .school-usage-summary { grid-template-columns: 1fr 1fr; }
  .school-usage-run { grid-template-columns: 1fr; gap: 5px; }
  .school-usage-run > span:last-child { text-align: left; }
  .dashboard-welcome { min-height: 640px; padding: 38px 27px 285px; align-items: flex-start; border-radius: 27px; }
  .dashboard-welcome::before { width: 300px; height: 300px; right: 50%; bottom: -112px; transform: translateX(50%); }
  .dashboard-welcome h1 { font-size: clamp(38px,11vw,51px); }
  .dashboard-actions { align-items: stretch; flex-direction: column; }
  .dashboard-actions .button { width: 100%; }
  .dashboard-stats { justify-content: space-between; }
  .dashboard-stats > span { min-width: 0; padding-right: 12px; margin-right: 12px; }
  .dashboard-barney { width: 300px; height: 300px; right: 50%; bottom: -49px; transform: translateX(50%); }
  .dashboard-barney img { width: 270px; }
  .dashboard-barney > span { top: 4px; left: -12px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-classes-card,.dashboard-next-card { padding: 24px; border-radius: 21px; }
  .dashboard-classes-card > header { align-items: flex-start; flex-direction: column; }
  .hero-panel { padding: 32px; }
  .barney-stage { display: none; }
  .journey { grid-template-columns: 1fr; gap: 10px; }
  .journey-line { display: none; }
  .choice-grid, .file-grid, .check-summary, .intake-summary { grid-template-columns: 1fr; }
  .class-hub-tabs { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); }
  .class-hub-tabs button { padding-inline: 8px; justify-content: center; }
  .result-assessment-card > summary { grid-template-columns: 38px 1fr 20px; }
  .average-chip { grid-column: 2; min-width: 0; text-align: left; }
  .details-arrow { grid-column: 3; grid-row: 1; }
  .saved-student-row { grid-template-columns: 40px 1fr auto; }
  .saved-student-row .button { grid-column: 2 / -1; justify-self: start; }
  .report-library-card { align-items: stretch; flex-direction: column; }
  .report-library-actions { justify-content: flex-start; }
  .saved-result-heading { align-items: flex-start; flex-direction: column; }
  .saved-result-total { width: 100%; }
  .saved-result-actions { align-items: stretch; flex-direction: column; }
  .marking-rail { grid-template-columns: repeat(4,1fr); gap: 5px; padding: 12px 8px; }
  .marking-rail > i { display: none; }
  .marking-rail > div { justify-content: center; }
  .marking-rail > div > p { display: none; }
  .inline-form { grid-template-columns: 1fr; }
  .form-footer, .section-heading { align-items: stretch; flex-direction: column; }
  .review-actions, .marking-hero, .upload-heading, .results-heading, .result-actions, .feedback-panel-heading, .feedback-report-actions, .completion-heading, .completion-actions { align-items: stretch; flex-direction: column; }
  .audit-heading { grid-template-columns: 38px 1fr; }
  .audit-heading .button { grid-column: 2; justify-self: start; }
  .audit-comparison { grid-template-columns: 1fr; }
  .batch-upload-actions { min-width: 0; grid-template-columns: 1fr; }
  .batch-upload-actions #choose-student-files { grid-column: auto; }
  .workspace-tabs { overflow-x: auto; }
  .feedback-options, .feedback-detail-fields, .feedback-edit-grid { grid-template-columns: 1fr; }
  .feedback-edit-wide { grid-column: auto; }
  .completion-summary, .completion-option-grid { grid-template-columns: repeat(2,1fr); }
  .feedback-report-actions > div:last-child { flex-wrap: wrap; }
  .submission-row { grid-template-columns: 46px 1fr; }
  .question-result { grid-template-columns: 1fr; }
  .submission-status { grid-column: 2; justify-self: start; }
  .row-primary-action { grid-column: 2; justify-self: start; }
  .question-topline { grid-template-columns: 1fr; }
  .assessment-row { grid-template-columns: 42px 1fr; }
  .assessment-row .status-pill { grid-column: 2; justify-self: start; }
  .assessment-row .button { grid-column: 1 / -1; }
  .form-footer > div { justify-content: flex-end; }
}

/* Marking Moose visual system and shared help experience */
.public-nav {
  min-height: 68px;
  padding: 8px 12px 8px 16px;
  position: sticky;
  top: 10px;
  border: 1px solid rgba(111,50,127,.12);
  border-radius: 19px;
  background: rgba(255,253,248,.88);
  box-shadow: 0 12px 34px rgba(71,43,26,.08);
  backdrop-filter: blur(18px);
}
.public-nav nav { gap: 22px; }
.public-nav nav a { padding: 8px 0; position: relative; }
.public-nav nav a::after { content: ""; height: 2px; position: absolute; right: 50%; bottom: 2px; left: 50%; border-radius: 2px; background: var(--pencil); transition: left .18s ease,right .18s ease; }
.public-nav nav a:hover::after,.public-nav nav a:focus-visible::after { right: 0; left: 0; }
.public-brand img,.mini-brand img { background: linear-gradient(145deg,#fff1ba,#f2b827); border-radius: 14px; }
.public-brand img { object-fit: contain; object-position: center; }
.public-site .button,.app-shell .button { border-radius: 12px; }
.public-site .button:focus-visible,.app-shell button:focus-visible,.faq-item summary:focus-visible { outline: 3px solid rgba(111,50,127,.23); outline-offset: 3px; }
.story-section,.pricing-section { position: relative; }
.section-mascot { position: absolute; z-index: 2; object-fit: contain; pointer-events: none; filter: drop-shadow(0 16px 18px rgba(73,42,22,.16)); }
.section-mascot-story { width: 128px; top: 48px; right: 18px; transform: rotate(4deg); }
.section-mascot-pricing { width: 150px; top: 52px; right: 6px; transform: rotate(-3deg); }
.story-steps,.output-grid,.pricing-panel { position: relative; z-index: 3; }
.story-steps,.output-grid { box-shadow: 0 18px 55px rgba(71,43,26,.08); }
.story-steps article,.output-grid article,.price-card { transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.story-steps article:hover,.output-grid article:hover,.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(71,43,26,.10); }
.section-intro { position: relative; z-index: 3; }

.faq-section { padding: 100px 0; display: grid; grid-template-columns: .78fr 1.22fr; gap: 54px; align-items: start; position: relative; }
.faq-copy { position: sticky; top: 110px; }
.faq-copy h2 { margin: 9px 0 17px; font-size: clamp(35px,4.8vw,57px); line-height: 1.04; letter-spacing: -.045em; }
.faq-copy > p:not(.eyebrow) { max-width: 430px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-copy .button { margin-top: 14px; }
.faq-panel { min-height: 520px; padding: 18px 18px 170px; position: relative; overflow: hidden; border: 1px solid #e0d4c6; border-radius: 30px; background: linear-gradient(145deg,#fffdf8 0%,#fff7dc 100%); box-shadow: var(--shadow); }
.faq-list { display: grid; gap: 9px; position: relative; z-index: 2; }
.faq-item { overflow: hidden; border: 1px solid #e5dacd; border-radius: 15px; background: rgba(255,255,255,.92); }
.faq-item[open] { border-color: #d6bddf; box-shadow: 0 10px 24px rgba(71,43,26,.06); }
.faq-item summary { min-height: 58px; padding: 15px 16px; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 15px; cursor: pointer; list-style: none; color: var(--ink); font: 800 14px "Manrope",sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--purple-dark); background: var(--pencil-light); font-style: normal; font-size: 17px; transition: transform .18s ease; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item > div { padding: 0 16px 16px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.faq-barney { width: 225px; position: absolute; right: -22px; bottom: -66px; z-index: 1; object-fit: contain; filter: drop-shadow(-10px 16px 16px rgba(74,45,20,.18)); transform-origin: 55% 80%; animation: inspector-peek 4s ease-in-out infinite; }
.faq-unavailable { padding: 18px; color: var(--muted); }

.topbar { border-bottom-color: rgba(111,50,127,.11); box-shadow: 0 8px 28px rgba(71,43,26,.045); }
.mini-brand { min-width: 176px; }
.mini-brand img { width: 46px; height: 46px; padding: 2px; }
.primary-app-nav { border-color: #e3d7c8; background: #f8f2e8; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.primary-app-nav button.active { box-shadow: 0 7px 18px rgba(71,43,26,.09); }
.app-shell { background: radial-gradient(circle at 7% 14%,rgba(242,184,39,.12),transparent 22%),radial-gradient(circle at 92% 28%,rgba(111,50,127,.08),transparent 24%),linear-gradient(180deg,#fbf7ef,#f7f0e5); }
.dashboard-welcome { border: 1px solid rgba(255,255,255,.08); box-shadow: 0 25px 65px rgba(46,28,51,.19); }
.dashboard-welcome::after { content: ""; width: 210px; height: 210px; position: absolute; top: -126px; left: 36%; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025); }
.dashboard-classes-card,.dashboard-next-card { box-shadow: 0 16px 44px rgba(71,43,26,.075); }
.dashboard-next-card { padding-bottom: 112px; }
.dashboard-card-mascot { width: 145px; position: absolute; right: -20px; bottom: -51px; z-index: 2; object-fit: contain; filter: drop-shadow(-8px 13px 14px rgba(74,45,20,.18)); transform: rotate(-4deg); }
.dashboard-class-choice { border-color: rgba(231,220,207,.7); background: #fffaf1; }

.teacher-help { display: grid; gap: 22px; }
.teacher-help-hero { min-height: 315px; padding: 44px 340px 42px 46px; position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 30px; color: white; background: linear-gradient(122deg,#29232c,#43264f 58%,#713380); box-shadow: var(--shadow); }
.teacher-help-hero::before { content: ""; width: 300px; height: 300px; position: absolute; right: 24px; bottom: -130px; border-radius: 50%; background: var(--pencil); box-shadow: 0 0 0 32px rgba(242,184,39,.12); }
.teacher-help-hero > div { position: relative; z-index: 2; }
.teacher-help-hero .eyebrow { color: var(--pencil-light); }
.teacher-help-hero h1 { margin: 7px 0 12px; font-size: clamp(36px,5vw,56px); line-height: 1.04; letter-spacing: -.045em; }
.teacher-help-hero p:not(.eyebrow) { max-width: 590px; color: rgba(255,255,255,.74); line-height: 1.6; }
.teacher-help-hero .button { margin-top: 10px; color: #3d2d08; background: var(--pencil); }
.teacher-help-hero > img { width: 280px; position: absolute; right: 18px; bottom: -58px; z-index: 2; object-fit: contain; filter: drop-shadow(0 24px 20px rgba(0,0,0,.28)); animation: public-barney-float 4.6s ease-in-out infinite; }
.teacher-help-layout { display: grid; grid-template-columns: 1fr 270px; gap: 20px; align-items: start; }
.teacher-help-layout > .faq-list { padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 14px 38px rgba(68,45,28,.065); }
.teacher-help-layout > aside { min-height: 300px; padding: 185px 24px 24px; position: relative; overflow: hidden; border: 1px solid #ead59b; border-radius: 24px; background: linear-gradient(160deg,#fffdf7,#fff0b7); }
.teacher-help-layout > aside img { width: 205px; position: absolute; top: -25px; right: 50%; transform: translateX(50%); }
.teacher-help-layout > aside strong { display: block; font: 800 18px "Manrope",sans-serif; }
.teacher-help-layout > aside p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.teacher-help-layout > aside a { color: var(--purple-dark); font-weight: 800; overflow-wrap: anywhere; }

.barney-launcher { border-color: #fff4cf; box-shadow: 0 17px 42px rgba(50,28,61,.30),0 0 0 7px rgba(242,184,39,.10); }
.barney-chat { border-color: #d6bfdf; }
.barney-chat-note { padding: 0 12px; }

/* Guided navigation and responsive polish */
.skip-link { padding: 10px 15px; position: fixed; top: 8px; left: 8px; z-index: 3000; border-radius: 10px; color: white; background: var(--purple-dark); font-weight: 800; text-decoration: none; transform: translateY(-140%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.anchor-target { position: absolute; scroll-margin-top: 100px; }
.public-site section[id] { scroll-margin-top: 105px; }
.public-scroll-track { height: 3px; position: absolute; right: 17px; bottom: 0; left: 17px; overflow: hidden; border-radius: 99px; background: rgba(111,50,127,.07); }
.public-scroll-track i { width: 100%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--pencil),var(--purple)); transform: scaleX(0); transform-origin: left center; transition: transform .08s linear; }
.public-nav nav a.active { color: var(--purple-dark); }
.public-nav nav a.active::after { right: 0; left: 0; }
.public-nav-toggle { width: 42px; height: 42px; padding: 0; display: none; place-items: center; border: 1px solid #dfd2c2; border-radius: 12px; color: var(--ink); background: #fffaf1; cursor: pointer; }
.public-nav-toggle span { width: 18px; height: 2px; position: absolute; border-radius: 2px; background: currentColor; transition: transform .18s ease,opacity .18s ease; }
.public-nav-toggle span:first-child { transform: translateY(-6px); }
.public-nav-toggle span:last-child { transform: translateY(6px); }
.public-nav.is-open .public-nav-toggle span:first-child { transform: rotate(45deg); }
.public-nav.is-open .public-nav-toggle span:nth-child(2) { opacity: 0; }
.public-nav.is-open .public-nav-toggle span:last-child { transform: rotate(-45deg); }
.primary-app-nav button.active { position: relative; }
.primary-app-nav button.active::after { content: ""; height: 3px; position: absolute; right: 14px; bottom: -5px; left: 14px; border-radius: 3px 3px 0 0; background: var(--pencil); }
.barney-launcher img,.barney-chat-avatar img { transition: opacity .12s ease,transform .18s ease; }
.barney-launcher img.is-changing-pose,.barney-chat-avatar img.is-changing-pose { opacity: 0; transform: translateY(6px) scale(.96); }
.barney-assistant[data-guide-pose="inspecting"] .barney-launcher { background: #f5ca45; }
.barney-assistant[data-guide-pose="feedback"] .barney-launcher { background: #7a388b; }
.barney-assistant[data-guide-pose="marking"] .barney-launcher { background: var(--pencil); }
.dashboard-classes-card,.dashboard-next-card,.teacher-help-layout > .faq-list { border-color: rgba(111,50,127,.10); }
.dashboard-class-choice:focus-visible { outline: 3px solid rgba(111,50,127,.20); outline-offset: 2px; }
.app-loading-screen { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%,rgba(242,184,39,.16),transparent 24%),#fffaf0; opacity: 1; transition: opacity .24s ease,visibility .24s ease; }
.app-loading-screen.is-complete { opacity: 0; visibility: hidden; }
.app-loading-card { width: min(370px,calc(100% - 36px)); padding: 26px 28px 28px; display: grid; justify-items: center; border: 1px solid rgba(111,50,127,.12); border-radius: 27px; background: rgba(255,253,248,.94); box-shadow: 0 25px 70px rgba(71,43,26,.13); text-align: center; }
.app-loading-card > strong { margin-top: 4px; font: 800 17px "Manrope",sans-serif; }
.app-loading-card > span:not(.app-loading-mascot) { margin-top: 5px; color: var(--muted); font-size: 12px; }
.app-loading-mascot { width: 126px; height: 116px; position: relative; display: grid; place-items: center; }
.app-loading-mascot i { width: 92px; height: 92px; position: absolute; border-radius: 50%; background: var(--pencil); box-shadow: 0 0 0 14px rgba(242,184,39,.12); animation: orbit-pulse 2.4s ease-in-out infinite; }
.app-loading-mascot img { width: 112px; max-height: 125px; position: relative; z-index: 2; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(71,43,26,.18)); animation: public-barney-float 3s ease-in-out infinite; }
.app-loading-line { width: 100%; height: 5px; margin-top: 20px; overflow: hidden; border-radius: 99px; background: #eee3d5; }
.app-loading-line i { width: 42%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--pencil),var(--purple)); animation: loading-travel 1.25s ease-in-out infinite; }
.connection-banner { min-height: 43px; padding: 8px 18px; position: fixed; top: 10px; left: 50%; z-index: 4500; display: flex; align-items: center; gap: 10px; border: 1px solid #e2c67b; border-radius: 13px; color: #4d3a0f; background: #fff3c7; box-shadow: 0 12px 30px rgba(71,43,26,.15); transform: translateX(-50%); }
.connection-banner span { padding: 4px 7px; border-radius: 7px; color: white; background: #8a5c12; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.connection-banner p { margin: 0; font-size: 12px; font-weight: 700; }
.is-offline .button-primary { filter: saturate(.7); }
.dashboard-empty { min-height: 210px; padding: 25px; display: grid; grid-template-columns: 90px minmax(0,1fr) auto; place-items: center stretch; gap: 20px; border: 1px dashed #d9c6df; border-radius: 19px; background: linear-gradient(135deg,#fffaf1,#f8eff9); text-align: left; }
.dashboard-empty img { width: 90px; max-height: 100px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(71,43,26,.14)); }
.dashboard-empty p { margin: 0; }
.dashboard-empty .button { white-space: nowrap; }
@keyframes loading-travel { 0% { transform: translateX(-110%); } 55%,100% { transform: translateX(245%); } }
.app-confirm-dialog { width: min(500px,calc(100% - 32px)); padding: 0; overflow: hidden; border: 1px solid #dbcbe2; border-radius: 26px; color: var(--ink); background: var(--paper); box-shadow: 0 32px 90px rgba(42,25,47,.32); animation: confirm-arrive .2s ease both; }
.app-confirm-dialog::backdrop { background: rgba(38,28,40,.52); backdrop-filter: blur(5px); }
.app-confirm-visual { height: 132px; position: relative; display: grid; place-items: end center; overflow: hidden; background: linear-gradient(135deg,#35283c,#6f327f); }
.app-confirm-visual i { width: 210px; height: 210px; position: absolute; bottom: -150px; border-radius: 50%; background: var(--pencil); box-shadow: 0 0 0 23px rgba(242,184,39,.12); }
.app-confirm-visual img { width: 132px; max-height: 145px; position: relative; bottom: -24px; z-index: 2; object-fit: contain; filter: drop-shadow(0 13px 13px rgba(0,0,0,.26)); }
.app-confirm-copy { padding: 27px 30px 6px; text-align: center; }
.app-confirm-copy .step-label { margin: 0 0 7px; }
.app-confirm-copy h2 { margin: 0; font-size: 27px; line-height: 1.1; }
.app-confirm-copy > p:last-child { margin: 12px auto 0; max-width: 400px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.app-confirm-actions { padding: 20px 30px 28px; display: flex; justify-content: center; gap: 10px; }
.app-confirm-actions .button { min-width: 135px; }
.app-confirm-dialog[data-tone="danger"] .app-confirm-visual { background: linear-gradient(135deg,#3e2d32,#7a3d4b); }
.app-confirm-dialog[data-tone="danger"] [data-confirm-continue] { background: #8f3f50; box-shadow: 0 8px 18px rgba(143,63,80,.20); }
@keyframes confirm-arrive { from { opacity: 0; transform: translateY(13px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .section-mascot { display: none; }
  .public-nav { gap: 12px; }
  .public-nav-toggle { display: grid; flex: 0 0 42px; position: relative; order: 2; }
  .public-nav nav { width: min(420px,calc(100vw - 30px)); padding: 10px; position: absolute; top: calc(100% + 9px); right: 0; display: grid; gap: 3px; border: 1px solid #dfd2c2; border-radius: 18px; background: rgba(255,253,248,.98); box-shadow: 0 22px 50px rgba(55,32,20,.16); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: opacity .18s ease,visibility .18s ease,transform .18s ease; }
  .public-nav.is-open nav { opacity: 1; visibility: visible; transform: none; }
  .public-nav nav a { padding: 12px 13px; border-radius: 11px; font-size: 13px; }
  .public-nav nav a:hover,.public-nav nav a:focus-visible,.public-nav nav a.active { background: #f7efe3; }
  .public-nav nav a::after { top: 13px; right: auto; bottom: 13px; left: 3px; width: 3px; height: auto; opacity: 0; }
  .public-nav nav a.active::after { right: auto; left: 3px; opacity: 1; }
  .public-nav-cta { margin-left: auto; order: 1; }
  .primary-app-nav button { padding-inline: 9px; }
  .teacher-help-layout { grid-template-columns: 1fr 230px; }
}

@media (max-width: 820px) {
  .public-nav { top: 6px; border-radius: 16px; }
  .faq-section { padding: 78px 0; grid-template-columns: 1fr; gap: 28px; }
  .faq-copy { position: static; }
  .faq-panel { min-height: 0; padding-bottom: 150px; border-radius: 24px; }
  .faq-barney { width: 190px; }
  .dashboard-next-card { padding-bottom: 102px; }
  .teacher-help-hero { min-height: 530px; padding: 34px 25px 255px; align-items: flex-start; text-align: center; }
  .teacher-help-hero > img { width: 245px; right: 50%; bottom: -46px; transform: translateX(50%); }
  .teacher-help-layout { grid-template-columns: 1fr; }
  .teacher-help-layout > aside { display: none; }
  .dashboard-empty { grid-template-columns: 70px minmax(0,1fr); }
  .dashboard-empty img { width: 70px; }
  .dashboard-empty .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .public-nav { padding-left: 10px; }
  .public-nav-cta { display: none; }
  .public-nav nav { right: -1px; }
  .public-brand span small { display: none; }
  .public-brand { font-size: 16px; }
  .public-outcomes { grid-template-columns: 1fr; }
  .public-outcomes div { min-height: 84px; }
  .barney-chat { width: min(360px,calc(100vw - 24px)); }
  .connection-banner { width: calc(100% - 24px); top: 6px; align-items: flex-start; }
  .app-confirm-actions { padding-inline: 20px; flex-direction: column-reverse; }
  .app-confirm-actions .button { width: 100%; }
}

/* Landing illustration only: one paper moves from evidence to useful feedback. */
.public-hero .moose-workstation { width: min(420px, 90%); aspect-ratio: .82; animation: none; cursor: default; }
.moose-workstation .barney-scene-frames { inset: -3% 0 12%; }
.moose-workstation .barney-scene-frame { transform-origin: 50% 85%; transition: opacity .45s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.moose-workstation .barney-scene-frame.is-active { transform: rotate(-1deg); }
.moose-workstation[data-scene="marking"] .barney-scene-frame.is-active { transform: rotate(1deg) translateY(3px); }
.moose-workstation .barney-speech { top: 3%; left: -8%; width: 180px; animation: none; border: 0; box-shadow: 0 8px 20px rgba(71,43,26,.12); }
.moose-paper { position: absolute; z-index: 4; bottom: 13%; right: 0; width: 64%; height: 35%; padding: 18px; border-radius: 6px 6px 14px 6px; background: var(--paper); box-shadow: 0 16px 25px rgba(71,43,26,.18); transform: rotate(-5deg); }
.moose-paper-heading { display: block; font-size: 12px; font-weight: 700; color: var(--navy); }
.moose-paper-lines { display: grid; gap: 12px; margin-top: 19px; }
.moose-paper-lines i { height: 4px; width: 85%; background: var(--line); border-radius: 2px; }
.moose-paper-lines i:last-child { width: 62%; }
.moose-lens { position: absolute; top: 35%; left: 25%; width: 58px; height: 58px; border: 6px solid var(--purple); border-radius: 50%; background: rgba(242,184,39,.2); box-shadow: 0 5px 8px rgba(71,43,26,.15); }
.moose-lens::after { content: ""; position: absolute; width: 9px; height: 31px; top: 40px; left: -13px; background: var(--purple); border-radius: 4px; transform: rotate(40deg); }
.moose-written-check { position: absolute; width: 62px; height: 38px; right: 23px; bottom: 22px; overflow: visible; }
.moose-written-check path { fill: none; stroke: var(--purple); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 110; }
.moose-pen { position: absolute; right: 25%; bottom: 22%; width: 8px; height: 62px; background: var(--yellow); border: 1px solid var(--moose-dark); border-radius: 3px; transform: rotate(35deg); transform-origin: bottom; }
.moose-pen::after { content: ""; position: absolute; top: 100%; left: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 9px solid var(--ink); }
.moose-feedback-lines { position: absolute; inset: 53px 18px auto; display: grid; gap: 12px; color: var(--navy); font-size: 13px; font-weight: 600; }
.moose-feedback-lines span { white-space: nowrap; clip-path: inset(0); }
.moose-keyboard { position: absolute; bottom: 12px; left: 18px; right: 18px; height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 12px, var(--paper) 12px 15px); border-bottom: 4px solid var(--line); }
.moose-workstation:not([data-scene="inspecting"]) .moose-lens,
.moose-workstation:not([data-scene="marking"]) .moose-pen,
.moose-workstation:not([data-scene="marking"]) .moose-written-check,
.moose-workstation:not([data-scene="feedback"]) .moose-feedback-lines,
.moose-workstation:not([data-scene="feedback"]) .moose-keyboard,
.moose-workstation[data-scene="feedback"] .moose-paper-lines { display: none; }
.moose-workstation[data-scene="inspecting"] .moose-lens { animation: moose-inspect 6s ease-in-out infinite; }
.moose-workstation[data-scene="marking"] .moose-pen { animation: moose-write 6s ease-in-out infinite; }
.moose-workstation[data-scene="marking"] .moose-written-check path { animation: moose-ink 6s ease-in-out infinite; }
.moose-workstation[data-scene="feedback"] .moose-feedback-lines span { animation: moose-type 6s steps(18,end) infinite; }
.moose-workstation[data-scene="feedback"] .moose-feedback-lines span + span { animation-name: moose-type-second; }
.moose-scene-controls { position: absolute; top: 92%; left: -5%; width: 110%; text-align: center; z-index: 7; }
.moose-scene-note { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.moose-scene-steps { display: flex; justify-content: center; gap: 4px; }
.moose-scene-steps button { min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--navy); font-size: 12px; font-weight: 700; cursor: pointer; }
.moose-scene-steps button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: white; }
.moose-scene-steps button:hover { border-color: var(--purple); }
.moose-scene-steps button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.moose-scene-steps button:disabled { cursor: default; opacity: .7; }
.moose-workstation[data-running="false"] *, .moose-workstation[data-running="false"] *::after { animation-play-state: paused !important; }
.moose-workstation[data-static="true"] * { animation: none !important; }
.public-hero-visual:has(.moose-workstation) .result-preview { z-index: 6; }
.public-hero-visual:has(.moose-workstation) .result-preview-bottom { bottom: -70px; left: 50%; transform: translateX(-50%); }
.public-hero:has(.moose-workstation) { padding-bottom: 115px; }
.public-hero-visual:has(.moose-workstation) .hero-doodle { display: none; }
@keyframes moose-inspect { 0%,12% { transform: translate(-20px,-8px); } 40% { transform: translate(65px,0); } 70% { transform: translate(12px,27px); } 90%,100% { transform: translate(-20px,-8px); } }
@keyframes moose-write { 0%,12% { transform: translate(-24px,-12px) rotate(35deg); } 32% { transform: translate(-10px,7px) rotate(29deg); } 58% { transform: translate(24px,-18px) rotate(35deg); } 72%,100% { transform: translate(36px,-30px) rotate(45deg); } }
@keyframes moose-ink { 0%,12% { stroke-dashoffset: 110; } 58%,100% { stroke-dashoffset: 0; } }
@keyframes moose-type { 0%,8% { clip-path: inset(0 100% 0 0); } 45%,100% { clip-path: inset(0); } }
@keyframes moose-type-second { 0%,45% { clip-path: inset(0 100% 0 0); } 85%,100% { clip-path: inset(0); } }
@media (max-width: 820px) {
  .public-hero .moose-workstation { width: min(360px, 92%); }
  .public-hero-visual:has(.moose-workstation) { min-height: 500px; }
  .moose-workstation .barney-speech { left: 0; top: 8%; width: 148px; }
  .public-hero-visual:has(.moose-workstation) .result-preview-bottom { left: 50%; bottom: -50px; min-width: 220px; }
  .moose-paper { padding: 14px; }
  .moose-scene-steps button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Closed-beta workspace refinement: clear navigation, private operator telemetry. */
.topbar { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 24px; padding-block: 12px; }
.topbar .mini-brand { min-width: 0; grid-column: 1; grid-row: 1; }
.topbar .account-cluster { min-width: 0; grid-column: 2; grid-row: 1; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.workspace-identity { display: none; } /* The school selector already carries this context. */
.account-copy { min-width: 0; max-width: 230px; }
.account-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-privacy-link { color: var(--purple-dark); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.primary-app-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; flex-wrap: wrap; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; gap: 4px; }
.primary-app-nav button { min-height: 44px; padding-inline: 14px; }
.primary-app-nav button.active::after { bottom: 0; }
.primary-app-nav button:focus-visible,.app-privacy-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.school-account-panel { border-radius: 16px; box-shadow: none; scroll-margin-top: 200px; }
.school-account-panel > header { min-height: 150px; padding: 28px 220px 28px 36px; background: var(--purple-dark); }
.school-account-panel > header h1 { margin-top: 0; font-size: clamp(28px,3vw,36px); }
.school-account-panel > header p:last-child { color: #fff; }
.school-account-panel > header img { width: 155px; right: 36px; bottom: -42px; }
.school-account-layout { grid-template-columns: minmax(0,1fr); }
.school-account-layout aside { min-width: 0; padding: 16px 36px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--cream); }
.school-account-layout aside > strong { display: none; }
#account-school-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.account-school-choice { width: auto; max-width: 100%; box-shadow: none; }
.account-school-choice strong { white-space: normal; overflow-wrap: anywhere; }
.school-account-detail { min-width: 0; padding: 28px 36px; }
.school-account-detail h2 { font-size: 24px; overflow-wrap: anywhere; }
.school-detail-status { margin-block: 18px; background: var(--cream); }
.school-detail-status > span { display: none; }
.school-admin-links { gap: 8px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.school-admin-links a { padding: 8px 0; border-radius: 0; background: transparent; text-underline-offset: 4px; }
.school-team-row,.school-activity-teacher { padding-inline: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.school-activity-teacher summary { padding-inline: 0; }
.owner-usage-section { padding: 36px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.owner-usage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.owner-usage-heading h1 { margin: 0 0 8px; font-size: clamp(28px,3vw,36px); }
.owner-usage-heading p,.owner-usage-explainer { max-width: 72ch; color: var(--ink-soft); line-height: 1.6; }
.owner-usage-heading .button { flex-shrink: 0; }
.owner-usage-section h2 { margin-bottom: 12px; font-size: 22px; overflow-wrap: anywhere; }
.owner-usage-totals { display: flex; flex-wrap: wrap; gap: 24px 36px; padding-block: 24px; margin: 24px 0 14px; border-block: 1px solid var(--line); }
.owner-usage-totals dt { color: var(--ink-soft); font-size: 13px; }
.owner-usage-totals dd { margin: 6px 0 0; color: var(--ink); font: 800 26px/1.2 "Manrope",sans-serif; font-variant-numeric: tabular-nums; }
.owner-token-detail { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.owner-budget { margin-block: 28px; padding-block: 20px; border-block: 1px solid var(--line); }
.owner-budget h3 { margin-top: 0; }
.owner-budget p { color: var(--ink-soft); line-height: 1.6; }
.owner-usage-table { max-width: 100%; overflow-x: auto; scrollbar-color: var(--purple) var(--cream); }
.owner-usage-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.owner-usage-table th,.owner-usage-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.owner-usage-table tbody th { min-width: 180px; }
.owner-usage-table small { display: block; margin-top: 5px; color: var(--ink-soft); font-weight: 400; overflow-wrap: anywhere; }
.owner-usage-empty { padding-block: 16px; color: var(--ink-soft); }
.owner-usage-section ::selection { color: white; background: var(--purple-dark); }
@media (max-width: 820px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .account-copy,.account-cluster .public-preview-link,.account-cluster .avatar { display: none; }
  .account-cluster { gap: 10px; }
  .primary-app-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-color: var(--purple) var(--cream); }
  .primary-app-nav button { flex: 0 0 auto; }
  .school-account-panel > header { min-height: 0; padding: 30px 28px; }
  .school-account-panel > header img { display: none; }
  .school-account-layout aside,.school-account-detail,.owner-usage-section { padding: 24px; }
  .school-context-bar label { min-width: 0; }
  .school-context-bar select { max-width: 100%; width: 100%; }
  .owner-usage-heading { flex-direction: column; gap: 16px; }
}
@media (max-width: 560px) {
  .topbar .mini-brand { font-size: 13px; gap: 5px; }
  .app-privacy-link { font-size: 12px; }
  .account-cluster .button { padding-inline: 8px; font-size: 12px; }
  .school-context-bar { align-items: stretch; flex-direction: column; gap: 10px; }
  .school-context-bar > div { flex-wrap: wrap; }
  .school-context-bar label { flex: 1 1 180px; }
  .school-account-panel,.school-context-bar { width: calc(100% - 24px); }
  .school-account-layout aside,.school-account-detail,.owner-usage-section { padding: 20px; }
  .owner-usage-totals { gap: 20px; }
  .owner-usage-totals > div { flex: 1 1 135px; }
}
