/* ===== PodsCool — modern redesign (brand palette kept) ===== */
:root {
  /* ===== BRAND: only these two colors (+ neutrals) ===== */
  --green: #a3c893;        /* brand green — fills, buttons, accents, "Pods" */
  --green-tint: #eef4ea;   /* light green surface */
  --green-ink: #5f8149;    /* readable green text (shade of brand green) */

  --purple: #b3a2e8;       /* brand purple — accents, "Cool" */
  --purple-tint: #f1edfb;  /* light purple surface */
  --purple-ink: #6a54b5;   /* readable purple text (shade of brand purple) */
  --purple-light: #cabff2; /* purple on dark backgrounds */

  /* legacy aliases → mapped onto the two brand colors */
  --sage: var(--green);
  --sage-soft: var(--green-tint);
  --green-deep: var(--green-ink);
  --emerald: var(--green-ink);
  --blue: var(--purple-ink);
  --blue-soft: var(--purple-tint);
  --purple-soft: var(--purple-tint);

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e7ece8;
  --line-2: #eef2ef;

  --bg: #ffffff;
  --cream: #f7f9f5;
  --dark: #14151a;         /* strong near-black (dark sections) */
  --black: #14151a;        /* strong anchor — buttons, CTA */
  --amber: #f4b740;        /* warm friendly accent — ratings */
  --slate-tile: #8a93a6;   /* neutral tile hue */

  --price: #1a1a2e;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-btn: 12px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 12px 32px rgba(15,23,42,.09);
  --shadow-lg: 0 30px 70px rgba(15,23,42,.16);
  --shadow-green: 0 14px 30px rgba(163,200,147,.5);

  --head: 'Poppins', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700;
  color: var(--green-ink); font-family: var(--sans);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 13px 22px; border-radius: var(--radius-btn);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--green { background: var(--black); color: #fff; box-shadow: 0 12px 28px rgba(20,21,26,.24); }
.btn--green:hover { background: #2a2b33; box-shadow: 0 16px 34px rgba(20,21,26,.32); }
.btn--dark { background: var(--purple-ink); color: #fff; box-shadow: 0 12px 28px rgba(106,84,181,.28); }
.btn--dark:hover { background: #5a4699; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-ink); }
.btn--soft { background: var(--purple-tint); color: var(--purple-ink); }
.btn--soft:hover { background: #e8e0f7; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--pill { border-radius: 999px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-2); box-shadow: 0 4px 20px rgba(15,23,42,.04); }
.nav { display: flex; align-items: center; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 21px; }
.brand__badge, .brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.brand__word { color: var(--purple); letter-spacing: -0.02em; }
.brand__word span { color: var(--green); }
.nav__links { display: flex; gap: 32px; margin: 0 auto; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--green); border-radius: 2px; transition: width .22s ease; }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__actions .login { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav__actions .login:hover { color: var(--ink); }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__toggle span + span { margin-top: 5px; }

.mobile-menu { display: none; flex-direction: column; padding: 10px 32px 22px; background: #fff; border-bottom: 1px solid var(--line-2); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 4px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.mobile-menu__actions { display: flex; gap: 10px; margin-top: 16px; }
.mobile-menu__actions .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 90px; text-align: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #f7faf5 0%, #ffffff 78%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .38; }
.blob--1 { width: 480px; height: 480px; background: radial-gradient(circle, #bfe0ac, transparent 68%); top: -200px; left: -160px; animation: float1 16s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: radial-gradient(circle, #cfc4f2, transparent 68%); top: -170px; right: -150px; animation: float2 18s ease-in-out infinite; }
.blob--3 { display: none; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,.05) 1px, transparent 0);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 75%); }
@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(30px,40px) scale(1.08);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-40px,30px) scale(1.05);} }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.8);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero__badge svg { color: var(--green); }
.hero__badge b { color: var(--ink); font-weight: 700; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 74px); line-height: 1.03; max-width: 940px; margin: 0 auto; letter-spacing: -0.035em; }
.hl { position: relative; color: var(--green-deep); white-space: nowrap; }
.hl svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .34em; color: var(--sage); }
.hero__sub { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 620px; margin: 26px auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 14px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { color: var(--green); }

/* floating marketplace preview */
.hero__preview { position: relative; margin: 66px auto 0; max-width: 1000px; }
.hero__preview-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1600px; }
.hero__preview .ppod { transform: rotateX(12deg); transform-origin: center bottom; box-shadow: var(--shadow-lg); }
.hero__preview .ppod:nth-child(2) { transform: rotateX(12deg) translateY(-22px); }
.hero__preview::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: -30px; height: 90px; background: radial-gradient(ellipse at center, rgba(15,23,42,.14), transparent 70%); filter: blur(10px); z-index: -1; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; background: linear-gradient(transparent, #fff); }

/* ---------- Marquee ---------- */
.marquee { background: var(--cream); border-block: 1px solid var(--line-2); padding: 20px 0; overflow: hidden; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink-2); white-space: nowrap; }
.marquee__track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats { padding: 84px 0; background: var(--dark); position: relative; overflow: hidden; }
.stats::before { content:""; position:absolute; width:600px; height:600px; border-radius:50%; background: radial-gradient(circle, rgba(163,200,147,.22), transparent 70%); top:-260px; right:-120px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); color: #bfe0ac; letter-spacing: -.03em; }
.stat span { color: #9fb0a6; font-size: 14.5px; margin-top: 4px; display: block; }

/* ---------- Section shell ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--cream); }
.section__head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin-top: 16px; }
.section__lead { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* ---------- Marketplace ---------- */
.market__bar {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 16px; align-items: end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-md); margin-bottom: 44px;
}
.market__bar label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.market__bar input, .market__bar select {
  width: 100%; font: 400 15px var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 12px 14px; background: #fff;
}
.market__bar input:focus, .market__bar select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(163,200,147,.3); }
.market__reset { align-self: end; height: 45px; }

.pods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pods-status { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 20px; font-size: 15px; }
.pods-empty-all { grid-column: 1 / -1; text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pods-empty-all__emoji { font-size: 40px; display: block; margin-bottom: 12px; }
.pods-empty-all h3 { font-family: var(--head); font-size: 22px; margin-bottom: 8px; }
.pods-empty-all p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }
.pod {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.pod:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pod__img { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; }
.pod__img::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 60%); }
.pod__img .ic { font-size: 50px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); z-index: 1; }
.pod__img--art { background: linear-gradient(160deg, #e3daf6, #b3a2e8); }
.pod__img--sci { background: linear-gradient(160deg, #dcecd0, #a3c893); }
.pod__img--gen { background: linear-gradient(160deg, #dfe3ec, #9aa3b5); }
.pod__type { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-xs); }
.pod__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pod__title { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--ink); }
.pod__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; min-height: 26px; }
.pod__tags .tg { background: var(--sage-soft); color: var(--green-deep); font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.pod__tags .tg--empty { width: 76px; height: 22px; background: var(--line); border-radius: 999px; }
.pod__desc { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.pod__teacher { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pod__avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.pod__avatar--dark { background: var(--ink); }
.pod__avatar--green { background: linear-gradient(135deg, var(--sage), var(--green)); }
.pod__tname { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pod__stars { font-size: 12.5px; color: var(--amber); margin-left: auto; }
.pod__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.pod__spots { color: var(--green-deep); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pod__spots::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(79,154,99,.18); }
.pod__enrolled { color: var(--muted-2); font-size: 12.5px; margin-top: 3px; }
.pod__price { text-align: right; }
.pod__price b { display: block; font-family: var(--head); font-size: 24px; font-weight: 700; color: var(--price); }
.pod__price span { font-size: 12px; color: var(--muted-2); }
.pod__cta { margin-top: 18px; }
.market__more { text-align: center; margin-top: 44px; }

/* ---------- How it works (Education Reimagined) ---------- */
.edu__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.edu__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow-sm); overflow: hidden; }
.edu__card::before { content:""; position:absolute; inset:0 0 auto 0; height: 5px; }
.edu__card--t::before { background: linear-gradient(90deg, #cabff2, var(--purple)); }
.edu__card--p::before { background: linear-gradient(90deg, var(--green-tint), var(--green)); }
.edu__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.edu__ico--t { background: var(--purple-tint); color: var(--purple-ink); }
.edu__ico--p { background: var(--green-tint); color: var(--green-ink); }
.edu__card h3 { font-weight: 700; font-size: 26px; }
.edu__lede { font-weight: 600; color: var(--purple-ink); font-size: 16px; margin: 6px 0 14px; }
.edu__card--p .edu__lede { color: var(--green-ink); }
.edu__intro { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.edu__steps { display: grid; gap: 22px; margin-bottom: 30px; }
.edu__step { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.edu__num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.edu__card--t .edu__num { background: var(--purple-tint); color: var(--purple-ink); }
.edu__card--p .edu__num { background: var(--green-tint); color: var(--green-ink); }
.edu__step h4 { font-family: var(--sans); font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 5px; }
.edu__step p { color: var(--muted); font-size: 14.5px; }

/* assurances feature row */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.assure__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 30px 28px; box-shadow: var(--shadow-xs); }
.assure__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sage-soft); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 16px; }
.assure__item h4 { font-family: var(--head); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.assure__item p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 96px 0; background: var(--black); overflow: hidden; }
.cta-band::before { content:""; position:absolute; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(163,200,147,.18), transparent 70%); top:-220px; left:-140px; }
.cta-band::after { content:""; position:absolute; width:460px; height:460px; border-radius:50%; background: radial-gradient(circle, rgba(179,162,232,.16), transparent 70%); bottom:-220px; right:-120px; }
.cta { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.cta__copy h2 { color: #fff; font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); }
.cta__copy p { color: rgba(255,255,255,.75); font-size: 18px; margin-top: 16px; }
.cta__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.cta__points li { position: relative; padding-left: 30px; color: #e6e8ec; font-size: 15px; font-weight: 500; }
.cta__points li::before { content:""; position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314151a'%3E%3Cpath d='m9 16.2-3.5-3.5-1.4 1.4L9 19l11-11-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat; }

.waitlist-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.waitlist-form h3 { font-weight: 700; font-size: 21px; margin-bottom: 4px; }
.waitlist-form .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field .opt { color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 12px 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(163,200,147,.3); }
.field textarea { resize: vertical; }
.field input.invalid, .field select.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.14); }
.form-status { font-size: 14px; font-weight: 600; margin-top: 12px; min-height: 1px; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: #d1373b; }
.form-legal { font-size: 12px; color: var(--muted-2); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9c6bf; padding: 66px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .brand { font-size: 22px; }
.footer__brand .brand__badge { color: #fff; }
.footer__brand .brand__word { color: var(--purple-light); }
.footer__brand .brand__word span { color: #8fca82; }
.footer__brand p { color: #8ea298; font-size: 14.5px; margin: 16px 0 20px; max-width: 300px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cdd9d2; transition: .18s; }
.footer__social a:hover { background: var(--green); color: #fff; }
.footer__col h4 { color: #fff; font-family: var(--head); font-size: 14px; font-weight: 600; margin-bottom: 15px; }
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; color: #9fb0a6; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13.5px; color: #7d9088; }
.footer__bottom a { color: #9fb0a6; }

/* ---------- Active nav ---------- */
.nav__links a.active { color: var(--ink); font-weight: 600; }
.nav__links a.active::after { width: 100%; }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; text-align: center; padding: 72px 0 8px; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f7faf5, #ffffff 90%); }
.page-hero__bg .blob { opacity: .4; }
.page-hero h1 { font-weight: 800; font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.03em; max-width: 820px; margin: 14px auto 0; }
.page-hero .section__lead { margin: 16px auto 0; max-width: 600px; }

/* ---------- Home: section header row with side link ---------- */
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head-row h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); margin-top: 8px; }
.sec-head-row .section__lead { margin-top: 8px; max-width: 520px; }
.sec-head-row__link { color: var(--green-deep); font-weight: 600; font-size: 15px; white-space: nowrap; }
.sec-head-row__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home: how-it-works teaser (reuses edu card shell) ---------- */
.edu__card--teaser { text-align: left; }
.edu__card--teaser .btn { margin-top: 6px; }

/* ---------- Header account chip ---------- */
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px 5px 6px; cursor: pointer; font: 600 14px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.acct__btn:hover { border-color: var(--green); box-shadow: var(--shadow-xs); }
.acct__img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--green-tint); border: 1px solid var(--line-2); }
.acct__img--fallback { display: grid; place-items: center; font: 700 12px var(--sans); color: var(--green-ink); }
.acct__img--lg { width: 42px; height: 42px; }
.acct__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__chev { color: var(--muted-2); display: inline-flex; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 10px); width: 258px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 70; }
.acct__head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.acct__info { min-width: 0; }
.acct__info strong { display: block; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__info small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__item { display: flex; align-items: center; width: 100%; text-align: left; gap: 8px; padding: 10px; border: 0; background: none; border-radius: 9px; font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; }
.acct__item:hover { background: var(--cream); color: var(--ink); }
.acct__signout { color: #c0453d; }
.acct__signout:hover { background: #fbeceb; color: #c0453d; }

/* mobile account row */
.mobile-menu__actions { flex-wrap: wrap; }
.mm-acct { display: flex; align-items: center; gap: 11px; flex: 1 0 100%; padding: 8px 2px 14px; color: var(--ink); }
.mm-acct .acct__img { width: 38px; height: 38px; }
.mm-acct__text { min-width: 0; }
.mm-acct__text strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-acct__text small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Auth note ---------- */
.auth-note { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 16px; }

/* ---------- Enroll modal ---------- */
.enroll-pod { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: var(--cream); }
.enroll-pod__title { font-family: var(--head); font-weight: 700; font-size: 16px; }
.enroll-pod__meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.enroll-pod__meta strong { color: var(--ink); }
.enroll-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 40px 0 20px; }
.legal__meta { color: var(--muted); font-size: 14px; margin: -6px 0 30px; }
.legal h2 { font-family: var(--head); font-weight: 700; font-size: 21px; margin: 34px 0 12px; letter-spacing: -.01em; }
.legal h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink); margin: 20px 0 6px; }
.legal p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.75; font-size: 15.5px; }
.legal ul { margin: 0 0 16px 20px; display: grid; gap: 11px; }
.legal li { color: var(--ink-2); line-height: 1.7; font-size: 15.5px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal__blank { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--cream); margin-top: 20px; }
.legal__blank .emoji { font-size: 34px; display: block; margin-bottom: 14px; }

/* ---------- Terms agreement + modal ---------- */
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.agree { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; text-align: left; }
.agree input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green-ink); flex: 0 0 auto; cursor: pointer; }
.agree__txt { font-size: 13px; color: var(--muted); line-height: 1.55; }
.tlink { background: none; border: 0; padding: 0; font: inherit; color: var(--purple-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tlink:hover { color: var(--ink); }

.tmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.tmodal[hidden] { display: none; }
.tmodal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.tmodal__box { position: relative; width: 100%; max-width: 540px; max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.tmodal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
.tmodal__head h2 { font-family: var(--head); font-weight: 700; font-size: 20px; }
.tmodal__x { background: none; border: 0; font-size: 17px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.tmodal__x:hover { background: var(--cream); color: var(--ink); }
.tmodal__tabs { display: flex; padding: 0 22px; border-bottom: 1px solid var(--line-2); }
.tmodal__tab { background: none; border: 0; padding: 10px 0; margin-right: 18px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tmodal__tab.is-active { color: var(--ink); border-bottom-color: var(--green); }
.tmodal__body { padding: 18px 22px; overflow-y: auto; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.tmodal__body h3 { font-family: var(--head); font-size: 16px; margin-bottom: 10px; }
.tmodal__body ul { margin: 0 0 0 18px; display: grid; gap: 9px; }
.tmodal__body p { margin-bottom: 10px; color: var(--muted); }
.tmodal__foot { padding: 16px 22px 20px; border-top: 1px solid var(--line-2); }
.tmodal__foot .agree { margin: 0 0 14px; }
.tmodal__foot .agree__txt { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blob, .marquee__track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .hero__preview-inner { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .hero__preview .ppod, .hero__preview .ppod:nth-child(2) { transform: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .market__bar { grid-template-columns: 1fr 1fr; }
  .market__reset { grid-column: 1 / -1; }
  .pods { grid-template-columns: 1fr 1fr; }
  .edu__cols { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; gap: 36px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 74px 0; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .market__bar, .pods { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---- Pod detail page (/pod) ------------------------------------------------ */
.pod-back { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--muted); }
.pod-back:hover { color: var(--ink); }

.pod-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.pod-detail__art { aspect-ratio: 16 / 7; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 24px; position: relative; overflow: hidden; }
.pod-detail__art::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 60%); }
.pod-detail__art .ic { font-size: 68px; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.pod-detail__title { font-family: var(--head); font-size: 34px; font-weight: 700; }
.pod-detail__teacher { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; color: var(--muted); font-size: 15px; }
.pod-detail__teacher strong { color: var(--ink); }
.pod-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pod-detail__tags .tg { background: var(--sage-soft); color: var(--green-deep); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.pod-detail__h { font-family: var(--head); font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.pod-detail__summary { color: var(--ink-2); font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.pod-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.pod-facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.pod-facts dt { font-size: 12.5px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.pod-facts dd { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-top: 4px; }

.pod-side { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 24px; }
.pod-side__price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.pod-side__price b { font-family: var(--head); font-size: 32px; color: var(--price); }
.pod-side__price span { font-size: 13px; color: var(--muted-2); }
.pod-side__spots { font-weight: 700; color: var(--green-deep); font-size: 15px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 3px; }
.pod-side__spots small { font-weight: 500; color: var(--muted-2); font-size: 12.5px; }
.pod-side__spots.is-full { color: var(--muted); }
.pod-side__note { color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }
.pod-side__login { margin-top: 10px; }
.pod-side__lock { background: var(--green-tint); border-radius: var(--radius-sm); padding: 16px; }
.pod-side__lock strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.pod-side__lock p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Sign-in gate + empty/not-found states */
.pod-gate, .pod-msg { max-width: 560px; margin: 30px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 48px 32px; }
.pod-gate__emoji, .pod-msg__emoji { font-size: 44px; display: block; margin-bottom: 14px; }
.pod-gate h1, .pod-msg h1 { font-family: var(--head); font-size: 26px; margin-bottom: 10px; }
.pod-gate p, .pod-msg p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; line-height: 1.55; }
.pod-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pod-gate__note { font-size: 13px; color: var(--muted-2); margin-top: 22px; }

@media (max-width: 860px) {
  .pod-detail { grid-template-columns: 1fr; }
  .pod-side { position: static; }
}
@media (max-width: 620px) {
  .pod-facts { grid-template-columns: 1fr; }
  .pod-detail__title { font-size: 27px; }
}

/* ===================================================================
   Teacher pod page (/pod-class) — Google-Classroom-style portal.
   Teacher-facing → PURPLE accents (per brand rule).
   =================================================================== */
.btn--purple { background: var(--purple-ink); color: #fff; box-shadow: 0 12px 28px rgba(106,84,181,.28); }
.btn--purple:hover { background: #5a4699; }

.podc-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  background: linear-gradient(180deg, var(--purple-tint), #fff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 10px 0 18px;
}
.podc-hero__title { font-family: "Poppins", sans-serif; font-size: 30px; line-height: 1.15; color: var(--ink); margin: 0 0 6px; }
.podc-hero__meta { color: var(--muted); margin: 0 0 12px; }
.podc-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.podc-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); }
.podc-chip b { color: var(--purple-ink); letter-spacing: .04em; }
.podc-chip--link { color: var(--purple-ink); text-decoration: none; font-weight: 600; }
.podc-chip--link:hover { background: var(--purple-tint); }

.podc-hero__create { position: relative; flex-shrink: 0; }
.podc-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 20px 44px rgba(20,21,26,.16); padding: 6px; }

/* Read-only pod view (enrolled students / parents) — hide teacher-only actions. */
.podc--readonly #podc-create,
.podc--readonly .podc-createmenu,
.podc--readonly [data-create],
.podc--readonly .podc-gb-actions { display: none !important; }

/* "Connect your Google Classroom" nudge for a student who opened a pod without it on. */
.podc-joinbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: #fff7e6; border: 1px solid #f2d69a; color: #6b4e12; font-size: 14px; }
.podc-joinbar button { margin-left: auto; background: #1a73e8; color: #fff; border: 0;
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.podc-joinbar button:disabled { opacity: .6; cursor: default; }
.podc-menu__item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--ink); cursor: pointer; text-decoration: none; }
.podc-menu__item span { font-size: 17px; width: 20px; text-align: center; }
.podc-menu__item:hover { background: var(--purple-tint); }
.podc-menu__item--out { color: var(--muted); }
.podc-menu__sep { height: 1px; background: var(--line); margin: 6px 8px; }

.podc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.podc-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 18px;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.podc-tab:hover { color: var(--ink); }
.podc-tab.is-active { color: var(--purple-ink); border-bottom-color: var(--purple-ink); }

.podc-body { min-height: 200px; }
.podc-note { color: var(--muted); font-size: 14px; background: var(--purple-tint); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 0 0 16px; }

/* Stream posts */
.podc-post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 14px; }
.podc-post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.podc-post__head small { display: block; color: var(--muted); font-size: 12px; }
.podc-post__avatar, .podc-person__avatar { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--purple-tint); color: var(--purple-ink);
  font-weight: 700; font-size: 14px; flex-shrink: 0; }
.podc-post__open { margin-left: auto; text-decoration: none; color: var(--muted); font-size: 18px; }
.podc-post__text { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.podc-post__att { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Classwork */
.podc-topic { margin-bottom: 26px; }
.podc-topic__h { font-family: "Poppins", sans-serif; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin: 0 0 6px; }
.podc-work { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line-2);
  background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.podc-work:hover { background: var(--cream); border-radius: 10px; }
.podc-work__ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--purple-tint); font-size: 18px; flex-shrink: 0; }
.podc-work__body { flex: 1; display: flex; flex-direction: column; }
.podc-work__body small { color: var(--muted); font-size: 13px; }
.podc-work__go { color: var(--muted); }

/* People */
.podc-people { margin-bottom: 24px; }
.podc-person { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); }
.podc-person__avatar--t { background: var(--purple-ink); color: #fff; }
.podc-person small { display: block; color: var(--muted); font-size: 13px; }

/* Empty states */
.podc-empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.podc-empty__emoji { font-size: 40px; display: block; margin-bottom: 10px; }
.podc-empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.podc-empty p { margin: 0; }

/* Create modal */
.podc-modal { position: fixed; inset: 0; z-index: 90; background: rgba(20,21,26,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.podc-modal__card { background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(20,21,26,.3); }
.podc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 6px; }
.podc-modal__head h2 { font-family: "Poppins", sans-serif; font-size: 20px; margin: 0; }
.podc-modal__x { background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; }
.podc-modal__form { padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.podc-f { display: flex; flex-direction: column; gap: 6px; }
.podc-f span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.podc-f input, .podc-f textarea, .podc-f select { border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.podc-f input:focus, .podc-f textarea:focus, .podc-f select:focus { outline: none; border-color: var(--purple); }
.podc-f textarea { resize: vertical; }
.podc-modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Toast */
.podc-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 120;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.podc-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.podc-toast.is-err { background: #c0392b; }

@media (max-width: 620px) {
  .podc-hero { flex-direction: column; }
  .podc-hero__create { align-self: stretch; }
  .podc-hero__create .btn { width: 100%; }
  .podc-menu { width: 100%; }
  .podc-hero__title { font-size: 24px; }
}

/* ---- Create composer (Classroom-style two-column modal) ---- */
.podc-modal__card--wide { max-width: 920px; }
.podc-cform { display: grid; grid-template-columns: 1fr 300px; gap: 0; padding: 0; }
.podc-cform__main { padding: 18px 24px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.podc-cform__side { border-left: 1px solid var(--line); background: var(--cream); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.podc-cf input, .podc-cf textarea, .podc-cf select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.podc-cf input:focus, .podc-cf textarea:focus, .podc-cf select:focus,
.podc-side-f input:focus, .podc-side-f select:focus { outline: none; border-color: var(--purple); }
.podc-cf textarea { resize: vertical; }
.podc-f__lbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }

.podc-attach { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.podc-attach__row { display: flex; flex-wrap: wrap; gap: 10px; }
.podc-att-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; width: 66px; padding: 10px 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.podc-att-btn span { font-size: 20px; }
.podc-att-btn:hover:not(.is-soon) { border-color: var(--purple); color: var(--purple-ink); }
.podc-att-btn.is-soon { opacity: .45; cursor: not-allowed; }
.podc-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.podc-att { display: inline-flex; align-items: center; gap: 6px; background: var(--purple-tint); color: var(--purple-ink);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.podc-att button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 12px; }

.podc-choice { display: flex; gap: 8px; margin-bottom: 8px; }
.podc-choice input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 9px 12px; font: inherit; }
.podc-choice button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.podc-addlink { background: none; border: 0; color: var(--purple-ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 0; text-align: left; }

.podc-side-f { display: flex; flex-direction: column; gap: 7px; }
.podc-side-f > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.podc-side-f input, .podc-side-f select { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
.podc-side-static { font-weight: 600; color: var(--ink); font-size: 14px; }
.podc-side-note { font-size: 12px; color: var(--muted); margin: 0; }
.podc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.podc-check input { width: auto; }
.podc-hint { font-size: 13px; color: var(--muted); margin: 4px 0; }

.podc-rubric-wrap { border-top: 1px solid var(--line); padding-top: 14px; }
.podc-crit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.podc-crit__row { display: flex; gap: 8px; margin-bottom: 8px; }
.podc-crit__t { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 9px 12px; font: inherit; font-weight: 600; }
.podc-crit__x { background: none; border: 0; color: var(--muted); cursor: pointer; }
.podc-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.podc-level { display: inline-flex; gap: 4px; }
.podc-level input:first-child { width: 110px; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 7px 10px; font: inherit; font-size: 13px; }
.podc-level input:last-child { width: 56px; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 7px 8px; font: inherit; font-size: 13px; }

.podc-reuse-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; font: inherit; cursor: pointer; }
.podc-reuse-row:hover { border-color: var(--purple); background: var(--purple-tint); }
.podc-reuse-row span { font-size: 20px; }
.podc-reuse-row strong { flex: 1; color: var(--ink); }
.podc-reuse-row small { color: var(--muted); text-transform: capitalize; }

.podc-att--drive { background: var(--green-tint); color: var(--green-ink); }
.podc-att--drive a { color: inherit; font-weight: 600; }
.podc-att__mode { border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; font: inherit; font-size: 12px; background: #fff; color: var(--ink-2); }
.podc-att-btn { position: relative; }
.podc-createmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 16px 34px rgba(20,21,26,.16); padding: 6px; display: flex; flex-direction: column; min-width: 150px; }
.podc-createmenu button { background: none; border: 0; text-align: left; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.podc-createmenu button:hover { background: var(--purple-tint); }

/* On-page attachment embeds (YouTube / Drive / Forms viewers + link cards) */
.podc-embeds { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.podc-embed { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--line); background: #000; }
.podc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.podc-linkcard { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 600; max-width: 640px; }
.podc-linkcard:hover { border-color: var(--purple); color: var(--purple-ink); }
.podc-linkcard span { font-size: 17px; }

/* Meet button in the hero */
.podc-chip--meet { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--green-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 600; }
.podc-chip--meet:hover { background: #4d6a3a; }
.podc-chip--meet span { font-size: 15px; }

/* On-page detail view */
.podc-detail-body { padding: 20px 24px 26px; }
.podc-detail-meta { color: var(--purple-ink); font-weight: 600; font-size: 13px; text-transform: capitalize; margin: 0 0 10px; }
.podc-detail-desc { color: var(--ink-2); white-space: pre-wrap; margin: 0 0 6px; }
.podc-grade-row { cursor: pointer; }
.podc-grade-row:hover { background: var(--cream); }

.podc-chip--ghost { background: #fff; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.podc-chip--ghost:hover { border-color: var(--purple); color: var(--purple-ink); }

/* On-page gradebook (inside an assignment detail) */
.podc-gradebook { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.podc-gb__h { font-family: "Poppins", sans-serif; font-size: 15px; margin: 0 0 12px; }
.podc-gb { display: flex; flex-direction: column; gap: 8px; }
.podc-gb__row { display: grid; grid-template-columns: 1fr auto 120px auto auto; align-items: center; gap: 12px;
  padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; }
.podc-gb__name { font-weight: 600; color: var(--ink); }
.podc-gb__late { color: #c0392b; font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.podc-gb__state { color: var(--muted); font-size: 13px; }
.podc-gb__grade { display: inline-flex; align-items: center; gap: 4px; }
.podc-gb__grade input { width: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; }
.podc-gb__grade small { color: var(--muted); }
.podc-gb__ret { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 620px) {
  .podc-gb__row { grid-template-columns: 1fr auto; row-gap: 8px; }
}

@media (max-width: 720px) {
  .podc-cform { grid-template-columns: 1fr; }
  .podc-cform__side { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- Dashboard Schedule: List ↔ Calendar ---- */
.vsched-toggle { display: inline-flex; gap: 4px; background: var(--purple-tint); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.vsched-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--purple-ink); cursor: pointer; }
.vsched-toggle button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

.vcal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.vcal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.vcal__title { font-family: var(--head); font-size: 19px; font-weight: 700; }
.vcal__nav { display: flex; align-items: center; gap: 6px; }
.vcal__nav button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 16px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.vcal__nav button:hover { border-color: var(--purple); color: var(--purple-ink); }
.vcal__today { font-size: 13px !important; font-weight: 600; }
.vcal__dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--cream); border-bottom: 1px solid var(--line); }
.vcal__dow span { padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.vcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.vcal__cell { min-height: 96px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.vcal__cell:nth-child(7n) { border-right: 0; }
.vcal__cell--pad { background: var(--cream); }
.vcal__date { font-size: 13px; font-weight: 600; color: var(--muted); }
.vcal__cell.has-ev .vcal__date { color: var(--ink); }
.vcal__cell.is-today { background: var(--purple-tint); }
.vcal__cell.is-today .vcal__date { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--purple-ink); color: #fff; border-radius: 50%; }
.vcal__ev { font-size: 11.5px; line-height: 1.25; background: var(--green-tint); color: var(--green-ink); border-radius: 6px; padding: 3px 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcal__ev b { font-weight: 700; }
.vcal__more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.vcal__note { padding: 12px 20px; margin: 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .vcal__cell { min-height: 68px; padding: 4px; }
  .vcal__ev { font-size: 10px; }
  .vcal__dow span { font-size: 10px; padding: 8px 2px; }
}

/* ---- Parent → My Students (clean cards + inline edit) ---- */
.stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.stu-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.stu-card.is-editing { border-color: var(--green); }
.stu__top { display: flex; align-items: flex-start; gap: 12px; }
.stu__ava { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.stu__idcol { flex: 1; min-width: 0; }
.stu__name { display: block; font-size: 17px; color: var(--ink); }
.stu__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stu__email { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu__badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: var(--purple-tint); color: var(--purple-ink); border-radius: 6px; padding: 1px 7px; }
.stu__badge--acct { background: var(--green-tint); color: var(--green-ink); }
.stu__edit { flex-shrink: 0; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.stu__edit:hover { border-color: var(--green); color: var(--green-ink); }
.stu__pods { display: flex; flex-wrap: wrap; gap: 6px; }
.stu__pod { font-size: 12.5px; background: var(--green-tint); color: var(--green-ink); border-radius: 999px; padding: 4px 11px; }
.stu__pod em { font-style: normal; opacity: .7; }
.stu__none { font-size: 13px; color: var(--muted); margin: 0; }
.stu__foot { border-top: 1px solid var(--line-2); padding-top: 10px; }

.stu-edit { display: flex; flex-direction: column; gap: 12px; }
.stu-edit__f { display: flex; flex-direction: column; gap: 5px; }
.stu-edit__f span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stu-edit__f input, .stu-edit__f select { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 10px 12px; font: inherit; font-size: 15px; }
.stu-edit__f input:focus, .stu-edit__f select:focus { outline: none; border-color: var(--green); }
.stu-edit__foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---- Clickable schedule sessions (list + calendar) ---- */
.vsched__item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: none;
  font: inherit; cursor: pointer; padding: 12px 10px; border-radius: 12px; }
.vsched__item:hover { background: var(--cream); }
.vsched__meet { margin-left: auto; font-size: 16px; }
.vcal__ev { border: 0; font: inherit; width: 100%; text-align: left; cursor: pointer; display: block; }
.vcal__ev:hover { filter: brightness(0.96); }
.sess-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.sess-actions .podc-hint { margin: 0; }

/* ---- Roster → student profile ---- */
.ros-row { cursor: pointer; }
.ros-row:hover { background: var(--cream); }
.ros-view { color: var(--purple-ink); font-weight: 600; font-size: 13px; white-space: nowrap; }

.sp-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px 8px; }
.sp-ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sp-ava--i { display: inline-flex; align-items: center; justify-content: center; background: var(--green-tint); color: var(--green-ink); font-weight: 700; font-size: 19px; }
.sp-name { font-family: var(--head); font-size: 20px; }
.sp-email { color: var(--muted); font-size: 13px; }
.sp-pods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sp-last { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.sp-last b { color: var(--ink); font-size: 15px; }

.sp-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 12px 24px 20px; }
.sp-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; }
.sp-tile b { display: block; font-family: var(--head); font-size: 24px; color: var(--ink); line-height: 1; }
.sp-tile span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sp-tile--good { background: var(--green-tint); border-color: transparent; }
.sp-tile--good b { color: var(--green-ink); }
.sp-tile--warn { background: #fdeaea; border-color: transparent; }
.sp-tile--warn b { color: #c0392b; }

.sp-list { display: flex; flex-direction: column; gap: 6px; padding: 0 24px 24px; }
.sp-row { display: grid; grid-template-columns: 1fr auto 80px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.sp-row__t strong { display: block; font-size: 14px; }
.sp-row__t small { color: var(--muted); font-size: 12px; }
.sp-row__s { font-size: 12.5px; color: var(--purple-ink); font-weight: 600; }
.sp-row__g { text-align: right; font-weight: 700; color: var(--ink); }
.podc-detail-body .podc-gb__h { padding: 0 24px; }
@media (max-width: 720px) {
  .sp-tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Reviews (shared: pod detail + dashboard) ===== */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.star { color: #d7dbe0; font-size: 15px; line-height: 1; }
.star--on { color: var(--amber); }
.stars__label { margin-left: 7px; font-size: 13px; color: var(--muted); }
.stars__label b { color: var(--ink); font-weight: 700; }

/* Review submit modal (student) */
.rv-note { background: #fdf3dd; border: 1px solid #f0dca8; color: #7a5a10; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.rv-note strong { color: #5f460b; }
.rv-pod { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.rv-stars { display: flex; gap: 6px; justify-content: center; margin: 6px 0 18px; }
.rv-star { background: none; border: 0; cursor: pointer; font-size: 40px; line-height: 1; color: #d7dbe0; transition: color .12s, transform .12s; padding: 0; }
.rv-star:hover { transform: scale(1.1); }
.rv-star.is-on { color: var(--amber); }

/* Low-rating heads-up shown to the student when they pick < 3 stars */
.rv-lownote { background: #eef6f0; border: 1px solid #cfe6d6; color: #2f6b45; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; line-height: 1.5; margin: -6px 0 16px; }

/* Parent approval modal — held low reviews awaiting a decision */
.pr-approve-list { display: grid; gap: 14px; }
.pr-approve { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.pr-approve--done { opacity: .7; }
.pr-approve__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pr-approve__who { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pr-approve__pod { font-size: 12.5px; color: var(--muted); }
.pr-approve__comment { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.pr-approve__comment--none { color: var(--muted); font-style: italic; }
.pr-approve__actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.pr-approve__result { font-size: 13px; font-weight: 700; color: var(--green-deep); }
.pr-approve__status:empty { display: none; }
.pr-approve__status { margin: 8px 0 0; }

/* Public reviews on the pod detail page */
.pod-reviews { margin-top: 4px; }
.pod-reviews__head { margin-bottom: 14px; }
.pod-reviews__head .stars .star { font-size: 20px; }
.pod-reviews__empty { color: var(--muted); font-size: 14px; }
.pod-reviews__list { display: grid; gap: 12px; }
.pr-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.pr-item__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pr-item__who { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pr-item__comment { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* =================== Messaging (text-only, parent-governed) =================== */
.msg-legal { background: #fff7e6; border: 1px solid #f4d58a; color: #7a5b12; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 12.5px; line-height: 1.5; margin: 0 0 16px; }
.msg-app { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 460px; }
.msg-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-y: auto; max-height: 560px; padding: 6px; }
.msg-thread { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none;
  padding: 10px 10px; border-radius: 10px; cursor: pointer; font: inherit; }
.msg-thread:hover { background: var(--cream); }
.msg-thread__ava { width: 38px; height: 38px; border-radius: 50%; background: var(--purple-tint); color: var(--purple-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.msg-thread__body { flex: 1; min-width: 0; }
.msg-thread__body strong { display: block; font-size: 14px; }
.msg-thread__body small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-flag { font-size: 14px; }

.msg-convo { border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; max-height: 560px; }
.msg-empty { margin: auto; color: var(--muted); padding: 40px; }
.msg-convo__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.msg-convo__head small { display: block; color: var(--muted); font-size: 12px; }
.msg-convo__actions { display: flex; gap: 14px; }
.msg-stream { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { max-width: 78%; align-self: flex-start; background: var(--cream); border-radius: 14px; padding: 9px 13px; }
.msg-bubble.is-mine { align-self: flex-end; background: var(--green-tint); }
.msg-bubble__who { display: block; font-size: 11px; color: var(--muted); text-transform: capitalize; margin-bottom: 2px; }
.msg-bubble__text { display: block; color: var(--ink); white-space: pre-wrap; }
.msg-bubble__at { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }
.msg-compose { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.msg-compose input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; }
.msg-compose input:focus { outline: none; border-color: var(--green); }

.pms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pms-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.pms-card__top { margin-bottom: 10px; }
.pms-card__top strong { font-size: 16px; }
.pms-card__top small { color: var(--muted); margin-left: 6px; }
.pms-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 0; cursor: pointer; }
.pms-toggle input:disabled { opacity: .4; }
.pms-status { display: block; font-size: 12px; color: var(--green-ink); min-height: 16px; margin-top: 4px; }

/* =================== Admin audit =================== */
.audit-h { font-family: var(--head); font-size: 28px; margin: 6px 0 12px; }
.audit-sub { font-family: var(--head); font-size: 17px; margin: 0 0 12px; }
.audit-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.audit-form { display: flex; gap: 8px; margin-bottom: 14px; }
.audit-form input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 10px 12px; font: inherit; }
.audit-report { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.audit-report small { display: block; color: var(--muted); font-size: 12px; }
.audit-report__ids { font-size: 12px; color: var(--muted); white-space: nowrap; }
.audit-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.audit-card h3 { font-family: var(--head); }
.audit-card h3 small { color: var(--muted); font-weight: 500; text-transform: capitalize; }
.audit-meta { color: var(--muted); font-size: 12px; margin: 6px 0 14px; word-break: break-all; }
.audit-logins, .audit-grades, .audit-msgs { border-top: 1px solid var(--line-2); padding: 12px 0; font-size: 13px; }
.audit-grades ul { margin: 6px 0 0 18px; }
.audit-thread { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.audit-thread em { color: var(--purple-ink); font-style: normal; font-weight: 600; }
.audit-line { font-size: 13px; padding: 3px 0; }
.audit-line span { display: inline-block; min-width: 60px; color: var(--muted); text-transform: capitalize; font-size: 11px; }
.audit-line small { color: var(--muted-2); }
.audit-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.vpill--err { background: #fdeaea; color: #c0392b; }

@media (max-width: 820px) {
  .msg-app { grid-template-columns: 1fr; }
  .audit-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   Credentials, verification, payments, profile-views + card
   alignment  (branch: work/credentials-ui)
   ============================================================ */

/* Small button variant (Settings + admin) */
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; box-shadow: none; }

/* Verified badge — shown in Settings header (reusable elsewhere) */
.vbadge { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 var(--sans); padding: 5px 10px; border-radius: 999px; }
.vbadge--on { background: var(--green-tint); color: var(--green-ink); }
.vbadge--on svg { color: var(--green-ink); }

/* Verification / payments status rows */
.vverify { display: grid; gap: 12px; margin-bottom: 4px; }
.vverify__row { display: flex; align-items: flex-start; gap: 12px; }
.vverify__ico { font-size: 17px; line-height: 1.5; flex: 0 0 auto; }
.vverify__row strong { display: block; font-size: 14.5px; color: var(--ink); }
.vverify__row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.vsub { font-family: var(--head); font-size: 15px; margin: 18px 0 6px; color: var(--ink); }

/* Credential submission form + list */
.vcred-form { display: grid; gap: 12px; margin-top: 8px; }
.vcred-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vcred-list { margin-top: 10px; display: grid; gap: 10px; }
.vcred-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.vcred-item__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcred-item__main strong { font-size: 14px; color: var(--ink); }
.vcred-item__main small { color: var(--muted); font-size: 12.5px; }
.vcred-item__link { font-size: 12.5px; font-weight: 600; color: var(--purple-ink); }
.vcred-item__note { color: #b4232a !important; }

/* Who viewed your profile */
.vviews { display: grid; gap: 10px; }
.vview { display: flex; align-items: center; gap: 12px; }
.vview strong { display: block; font-size: 14px; color: var(--ink); }
.vview small { display: block; color: var(--muted); font-size: 12.5px; text-transform: capitalize; }

/* Dashboard sidebar legal footer — always visible, bottom corner */
.side__legal { display: flex; align-items: center; gap: 8px; padding: 12px 6px 2px; font-size: 12px; color: var(--muted-2); }
.side__legal a { color: var(--muted); font-weight: 600; }
.side__legal a:hover { color: var(--ink); }

/* Admin — credential review page */
.admin-creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.admin-cred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.admin-cred__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-cred__head strong { display: block; font-size: 15px; color: var(--ink); }
.admin-cred__head small { display: block; color: var(--muted); font-size: 12.5px; }
.admin-cred__label { color: var(--ink-2); font-size: 14px; margin: 0; }
.admin-cred__link { font-size: 13px; font-weight: 700; color: var(--purple-ink); }
.admin-cred__note { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.admin-cred__note input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 14px var(--sans); }
.admin-cred__status { font-size: 13px; font-weight: 700; margin: 0; }
.admin-cred__status:empty { display: none; }
.admin-cred__status.ok { color: var(--green-ink); }
.admin-cred__status.err { color: #b4232a; }
.admin-cred__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: auto; }
.pods-status.err { color: #b4232a; }

/* Featured / marketplace pods — equal-size, bottom-aligned cards (#6) */
.pods .pod__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pods .pod__teacher { margin-top: auto; }

@media (max-width: 640px) {
  .vcred-form__row { grid-template-columns: 1fr; }
  .admin-creds { grid-template-columns: 1fr; }
}

/* ============================================================
   Pod banner photos (Google Drive-hosted) + editor upload control
   ============================================================ */
.pod__img--photo { padding: 0; background: var(--line-2); }
.pod__img-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.pe-banner { display: grid; gap: 10px; }
.pe-banner__preview { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); aspect-ratio: 16 / 6; display: grid; place-items: center; }
.pe-banner__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-banner__preview.is-empty { aspect-ratio: auto; padding: 16px; }
.pe-banner__placeholder { color: var(--muted); font-size: 13px; text-align: center; }
.pe-banner__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pe-banner__status { font-size: 13px; font-weight: 600; color: var(--muted); }
.pe-banner__status.ok { color: var(--green-ink); }
.pe-banner__status.err { color: #b4232a; }

/* ============================================================
   Admin portal (portal.podscool.com)
   ============================================================ */
/* The `hidden` attribute must win over component display rules (e.g. .btn). */
[hidden] { display: none !important; }

/* Centered, minimal login shell */
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.portal-box { width: 100%; max-width: 380px; }
.portal-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-bottom: 32px; }
.portal-logo .brand__word { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.portal-logo .brand__word span { color: var(--purple-ink); }

.portal-auth__err:empty { display: none; }
.portal-auth__err { color: #b4232a; font-size: 13px; font-weight: 600; margin-top: 14px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-btn); font: 600 15px var(--sans); padding: 13px 24px; cursor: pointer; box-shadow: var(--shadow-xs); }
.btn-google:hover { border-color: var(--muted-2); box-shadow: var(--shadow-sm); }
.btn-google svg { width: 20px; height: 20px; }

/* Official login copy */
.portal-title { font-family: var(--head); font-size: 22px; margin: 4px 0 6px; color: var(--ink); }
.portal-sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.portal-sub strong { color: var(--ink); }
.portal-legal { color: var(--muted-2); font-size: 11.5px; margin-top: 18px; }

/* ============================================================
   Admin console (signed-in)
   ============================================================ */
.ac-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.ac-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ac-brand .brand__word { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.ac-brand .brand__word span { color: var(--purple-ink); }
.ac-badge-tag { margin-left: 4px; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--purple-ink); background: var(--purple-tint); padding: 3px 8px; border-radius: 999px; }
.ac-top__right { display: flex; align-items: center; gap: 12px; }
.ac-who { color: var(--muted); font-size: 13px; }

.ac-nav { display: flex; gap: 4px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ac-tab { border: none; background: none; padding: 14px 14px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.ac-tab:hover { color: var(--ink); }
.ac-tab.is-active { color: var(--purple-ink); border-bottom-color: var(--purple-ink); }

.ac-main { flex: 1; padding: 28px 24px 60px; max-width: 1120px; width: 100%; margin: 0 auto; }
.ac-loading, .ac-error, .ac-empty, .ac-muted { color: var(--muted); font-size: 14px; padding: 12px 0; }
.ac-error { color: #b4232a; }
.ac-done { color: var(--green-ink); font-weight: 600; padding: 24px; background: var(--green-tint); border-radius: var(--radius-sm); }
.ac-muted { padding: 4px 0; }
.ac-sub { font-family: var(--head); font-size: 15px; margin: 20px 0 8px; color: var(--ink); }
.ac-count { color: var(--muted-2); font-size: 12.5px; margin-top: 10px; }
.ac-deeplink a { color: var(--purple-ink); font-weight: 600; }

.ac-section { margin-bottom: 32px; }
.ac-section__head { margin-bottom: 14px; }
.ac-section__head h2 { font-family: var(--head); font-size: 20px; color: var(--ink); }
.ac-section__head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.ac-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ac-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); padding: 18px; }
.ac-kpi__val { font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.ac-kpi__label { color: var(--ink-2); font-size: 13px; font-weight: 600; margin-top: 4px; }
.ac-kpi__sub { color: var(--muted-2); font-size: 12px; margin-top: 2px; }

.ac-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ac-action { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); padding: 18px; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ac-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ac-action.is-hot { border-color: var(--amber); }
.ac-action__ico { font-size: 22px; }
.ac-action__count { font-family: var(--head); font-weight: 700; font-size: 24px; color: var(--ink); }
.ac-action__label { color: var(--muted); font-size: 13px; }

.ac-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); }
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th { text-align: left; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.ac-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.ac-table tr:last-child td { border-bottom: none; }
.ac-table td small { color: var(--muted-2); }
.ac-row { cursor: pointer; }
.ac-row:hover td { background: var(--purple-tint); }
.ac-empty { color: var(--muted-2); text-align: center; padding: 26px; }

.ac-user { display: inline-flex; align-items: center; gap: 10px; }
.ac-user strong { display: block; color: var(--ink); font-size: 14px; }
.ac-user small { color: var(--muted); font-size: 12.5px; }
.ac-ava { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; font-weight: 700; font-size: 12px; }
.ac-ava--lg { width: 52px; height: 52px; font-size: 17px; }

.ac-pill { display: inline-flex; align-items: center; font: 600 12px var(--sans); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ac-pill--soft { background: var(--line); color: var(--ink-2); }
.ac-pill--ok { background: var(--green-tint); color: var(--green-ink); }
.ac-pill--warn { background: #fdecec; color: #b4232a; }
.ac-pill--purple { background: var(--purple-tint); color: var(--purple-ink); }
.ac-pill--green { background: var(--green-tint); color: var(--green-ink); }

.ac-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-filter { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ac-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 13px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.ac-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ac-search { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 9px 14px; font: 400 14px var(--sans); min-width: 240px; }

.ac-line { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.ac-line a { color: var(--purple-ink); font-weight: 600; }

/* User-detail modal */
.ac-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.ac-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.ac-modal__box { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto; padding: 28px; }
.ac-modal__x { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.ac-udetail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ac-udetail__head h3 { font-family: var(--head); font-size: 20px; color: var(--ink); }
.ac-udetail__head small { color: var(--muted); font-size: 13px; }
.ac-udetail__pills { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-udetail__meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* Credential review cards */
.ac-creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ac-cred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ac-cred__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ac-cred__head strong { display: block; color: var(--ink); }
.ac-cred__head small { display: block; color: var(--muted); font-size: 12.5px; }
.ac-cred__label { color: var(--ink-2); font-size: 14px; margin: 0; }
.ac-cred__link { font-size: 13px; font-weight: 700; color: var(--purple-ink); }
.ac-cred__note { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ac-cred__note input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 14px var(--sans); }
.ac-cred__status:empty { display: none; }
.ac-cred__status { font-size: 13px; font-weight: 700; margin: 0; }
.ac-cred__status.ok { color: var(--green-ink); }
.ac-cred__status.err { color: #b4232a; }
.ac-cred__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: auto; }

.ac-report-act { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.ac-report-act em { color: var(--muted); font-style: normal; font-weight: 600; }
.ac-report-err { color: #b4232a; font-size: 12px; margin-left: 8px; }

@media (max-width: 860px) {
  .ac-kpis { grid-template-columns: repeat(2, 1fr); }
  .ac-actions { grid-template-columns: 1fr; }
  .ac-creds { grid-template-columns: 1fr; }
}

/* Messaging banners (accept / closed / info) + parent ended state */
.msg-banner { background: var(--purple-tint); color: var(--purple-ink); border-radius: 10px; padding: 10px 14px; margin: 0 14px 10px; font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-banner--accept { background: var(--green-tint); color: var(--green-ink); }
.msg-banner--closed { background: #fdeaea; color: #c0392b; }
.pms-ended { color: #c0392b; font-size: 13px; margin: 4px 0; }

/* Sidebar Google Classroom status chip (teachers) — sits above the user name */
.side__cr-wrap { margin: 0 0 10px; }
.side__cr { display: flex; align-items: stretch; gap: 4px; width: 100%; }
.side__cr-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; cursor: pointer;
  background: var(--cream, #f7f9f5); border: 1px solid var(--line, #e7ece8); border-radius: 12px; padding: 9px 11px; font: inherit; }
.side__cr-main:hover { border-color: var(--green, #a3c893); background: #fff; }
.side__cr-x { flex-shrink: 0; width: 32px; border: 1px solid var(--line, #e7ece8); border-radius: 10px; background: var(--cream, #f7f9f5);
  color: var(--muted, #64748b); cursor: pointer; font-size: 13px; line-height: 1; }
.side__cr-x:hover { border-color: #c0392b; color: #c0392b; background: #fff; }
.side__cr-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; position: relative; }
.side__cr-dot--on { background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.18); }
.side__cr-dot--warn { background: #f4b740; box-shadow: 0 0 0 3px rgba(244,183,64,.2); }
.side__cr-dot--off { background: #c2c8cf; }
.side__cr-dot--on::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(52,199,89,.4); animation: crpulse 2s ease-out infinite; }
@keyframes crpulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.side__cr-body { flex: 1; min-width: 0; line-height: 1.2; }
.side__cr-body strong { display: block; font-size: 12.5px; color: var(--ink, #0f172a); }
.side__cr-body small { display: block; font-size: 11px; color: var(--muted, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__cr-act { flex-shrink: 0; font-size: 15px; color: var(--muted, #64748b); }
.side__cr-act.is-spin { animation: crspin .8s linear infinite; display: inline-block; }
@keyframes crspin { to { transform: rotate(360deg); } }

/* Pod hero as a cover banner when the pod has an image */
.podc-hero--cover { background-size: cover; background-position: center; border: 0; min-height: 190px; align-items: flex-end; }
.podc-hero--cover .podc-hero__title { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.podc-hero--cover .podc-hero__meta { color: rgba(255,255,255,.9); }

/* Student Assignments list */
.asg-list { display: flex; flex-direction: column; gap: 8px; }
.asg-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; cursor: pointer; }
.asg-row:hover { border-color: var(--purple); background: var(--cream); }
.asg-go { color: var(--muted); font-size: 18px; }
.asg-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--purple-tint); font-size: 18px; flex-shrink: 0; }
.asg-body { flex: 1; min-width: 0; }
.asg-body strong { display: block; font-size: 15px; }
.asg-body small { display: block; color: var(--muted); font-size: 12.5px; }
.asg-due { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.asg-due.is-over { color: #c0392b; }
.asg-pts { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Full-size detail modal (student assignment view) — fills most of the page */
.podc-modal__card--full { width: 97vw; max-width: 1400px; max-height: 94vh; overflow-y: auto; }
.podc-modal__card--full .podc-detail-body { padding: 24px 40px 40px; }
.podc-modal__card--full .podc-embeds { max-width: 100%; }
.podc-modal__card--full .podc-embed { max-width: 100%; width: 100%; }
.podc-modal__card--full .podc-detail-desc { font-size: 16px; line-height: 1.65; }
.podc-modal__card--full .podc-detail-meta { font-size: 14px; }

/* Assignment engagement (teacher gradebook) */
.podc-eng { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.podc-eng__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.podc-eng__name { font-weight: 600; color: var(--ink); }
.podc-eng__live { font-size: 12px; font-weight: 700; color: #34c759; }
.podc-eng__meta { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Student's Classroom chip main area is status-only (not clickable) */
.side__cr-main--static { cursor: default; }
.side__cr-main--static:hover { border-color: var(--line, #e7ece8); background: var(--cream, #f7f9f5); }

/* Locked disconnect (student still enrolled) */
.side__cr-x:disabled { cursor: not-allowed; opacity: .6; }
.side__cr-x:disabled:hover { border-color: var(--line, #e7ece8); color: var(--muted, #64748b); background: var(--cream, #f7f9f5); }

/* Pod editor: profile-photo nudge (shown while creating a pod, if no uploaded photo) */
.pe-photo-nudge { display: flex; align-items: center; gap: 14px; background: var(--green-tint, #eef4ea); border: 1px solid var(--green, #a3c893);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.pe-photo-nudge__txt { flex: 1; min-width: 0; }
.pe-photo-nudge__txt strong { display: block; font-size: 14px; color: var(--ink, #0f172a); }
.pe-photo-nudge__txt small { display: block; font-size: 12.5px; color: var(--green-ink, #5f8149); line-height: 1.4; }
.pe-photo-nudge .btn { flex-shrink: 0; }

/* Student's own grade (not the class gradebook) */
.podc-mygrade { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; }
.podc-mygrade__score { font-family: var(--head); font-size: 30px; font-weight: 700; color: var(--green-ink); }
.podc-mygrade__state { font-size: 13px; color: var(--muted); text-transform: capitalize; }

/* Branded "cancel enrollment" refund modal */
.cxl { z-index: 100; }
.cxl-card { background: #fff; border-radius: var(--radius); width: 100%; max-width: 440px; box-shadow: 0 30px 70px rgba(20,21,26,.32); overflow: hidden; }
.cxl-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cxl-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.cxl-brand { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--purple); }
.cxl-brand span { color: var(--green); }
.cxl-x { background: none; border: 0; font-size: 17px; color: var(--muted); cursor: pointer; }
.cxl-body { padding: 22px 24px 24px; }
.cxl-loading { color: var(--muted); text-align: center; padding: 20px; }
.cxl-h { font-family: var(--head); font-size: 20px; margin: 0 0 6px; }
.cxl-starts { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #3730a3; background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 999px; padding: 5px 12px; margin: 0 0 12px; }
.cxl-starts__ic { font-size: 14px; }
.cxl-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.cxl-refund { background: var(--green-tint); border-radius: var(--radius-sm); padding: 18px; text-align: center; margin: 8px 0 14px; }
.cxl-refund__label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-ink); }
.cxl-refund__amt { display: block; font-family: var(--head); font-size: 40px; font-weight: 800; color: var(--green-ink); line-height: 1.1; margin-top: 4px; }
.cxl-refund__paid { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cxl-policy { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 6px; }
.cxl-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.cxl-err { color: #c0392b; font-size: 13px; margin: 10px 0 0; }
.cxl-actions { display: flex; gap: 10px; margin-top: 18px; }
.cxl-actions .btn { flex: 1; }

/* ===== Admin console round-out: report resolution + user disable + analytics ===== */
.ac-report-act { min-width: 250px; }
.ac-note { width: 100%; padding: 8px 10px; border: 1px solid var(--line, #e2e6ec); border-radius: 8px; font: inherit; font-size: 13px; margin-bottom: 8px; background: #fff; }
.ac-note:focus { outline: none; border-color: var(--purple, #6d28d9); }
.ac-report-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ac-contact { text-decoration: none; }
.ac-report-msg { margin: 6px 0 0; font-size: 12px; color: var(--muted, #6a7480); min-height: 1em; }
.ac-report-msg.err { color: #c0392b; }
.ac-report-msg.ok { color: #2f6b45; }

.ac-udetail__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.ac-modbtn { border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .12s; }
.ac-modbtn:disabled { opacity: .6; cursor: default; }
.ac-modbtn--disable { background: #fdeaea; color: #b42318; }
.ac-modbtn--disable:hover { background: #f9d5d5; }
.ac-modbtn--enable { background: #e7f6ec; color: #1f7a41; }
.ac-modbtn--enable:hover { background: #d3efdd; }
.ac-udetail__actmsg { font-size: 12.5px; color: var(--muted, #6a7480); }
.ac-udetail__actmsg.ok { color: #2f6b45; font-weight: 600; }
.ac-udetail__actmsg.err { color: #c0392b; font-weight: 600; }

/* ===== Production Updates — staff changelog timeline ===== */
.pu-timeline { position: relative; }
.pu-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.pu-rail { position: relative; display: flex; justify-content: center; }
.pu-rail::before { content: ""; position: absolute; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.pu-item:last-child .pu-rail::before { display: none; }
.pu-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--green-tint); margin-top: 5px; z-index: 1; }
.pu-body { padding: 0 0 26px; min-width: 0; }
.pu-head { display: flex; align-items: center; gap: 10px; }
.pu-date { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pu-title { font-size: 17px; font-weight: 750; color: var(--ink); margin: 6px 0 0; letter-spacing: -.01em; }
.pu-lead { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 8px 0 0; max-width: 74ch; }
.pu-list { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.62; }
.pu-list li { margin: 5px 0; }
.pu-block { margin-top: 14px; padding: 12px 16px; background: var(--cream); border: 1px solid var(--line-2); border-radius: 12px; }
.pu-block h4 { margin: 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-ink); }
.pu-block .pu-list { margin-top: 6px; }

/* ===== top-right utility links (Production Updates + System Status) ===== */
.ac-top__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ac-top__acct { display: flex; align-items: center; gap: 12px; }
.ac-top__links { display: flex; gap: 6px; }
.ac-toplink { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.ac-toplink:hover { color: var(--ink); border-color: var(--muted-2); }
.ac-toplink.is-active { background: var(--purple-tint); border-color: var(--purple-light); color: var(--purple-ink); }
@media (max-width: 560px) { .ac-top__links { flex-wrap: wrap; justify-content: flex-end; } }

/* ===== System Status view ===== */
.st-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 16px; }
.st-banner strong { display: block; font-size: 17px; }
.st-banner span { font-size: 13px; color: var(--muted); }
.st-bicon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; flex: 0 0 auto; }
.st-checked { margin-left: auto; font-size: 12px !important; font-variant-numeric: tabular-nums; }
.st-banner--ok { background: #e7f4ec; } .st-banner--ok .st-bicon { background: #2f9e5f; }
.st-banner--warn { background: #f7edd8; } .st-banner--warn .st-bicon { background: #c8881c; }
.st-banner--danger { background: #fae8e6; } .st-banner--danger .st-bicon { background: #d1453b; }
.st-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.st-lat { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.st-stat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; }
.st-operational { color: #2f9e5f; } .st-operational .st-dot { background: #2f9e5f; }
.st-degraded { color: #c8881c; } .st-degraded .st-dot { background: #c8881c; }
.st-down { color: #d1453b; } .st-down .st-dot { background: #d1453b; }
.st-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.st-note a { color: var(--purple-ink); }

/* ===== Danger Zone — full data reset ("detonate") ===== */
.dz { max-width: 660px; margin: 6px auto; text-align: center; padding: 16px; }
.dz__hazard { font-size: 72px; line-height: 1; animation: dz-pulse 1.4s ease-in-out infinite; }
.dz__title { font-family: var(--head, inherit); font-size: 30px; font-weight: 800; color: #d1140a; margin: 8px 0 12px; letter-spacing: -.01em; }
.dz__lead { color: var(--muted, #64748b); font-size: 15px; line-height: 1.6; max-width: 540px; margin: 0 auto 26px; }
.dz__lead strong { color: #d1140a; }
.dz__panel { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 24px; border: 2px dashed #f0b4ad; border-radius: 18px;
  background: repeating-linear-gradient(45deg, #fff8f7, #fff8f7 14px, #fdeeec 14px, #fdeeec 28px); }
.dz__arm { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; color: #7a2820; }
.dz__arm code { background: #2a0b08; color: #ffd7cf; padding: 2px 8px; border-radius: 6px; font-size: 13px; letter-spacing: .05em; }
.dz__arm input { padding: 12px 14px; border: 1.5px solid #e6a89f; border-radius: 10px; font-size: 15px; text-align: center; letter-spacing: .08em; font-weight: 700; background: #fff; min-width: 240px; }
.dz__arm input:focus { outline: none; border-color: #d1140a; box-shadow: 0 0 0 3px rgba(209,20,10,.18); }
/* The button — big, red, nuclear. Disabled = dead metal; armed = glowing + throbbing. */
.dz__btn { position: relative; width: 186px; height: 186px; border-radius: 50%; border: 0; cursor: not-allowed; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #6b6f78, #3a3d44); box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 -8px 20px rgba(0,0,0,.4), inset 0 6px 14px rgba(255,255,255,.12); transition: transform .12s ease; }
.dz__btn-core { position: relative; z-index: 2; color: #cfd2d8; font-weight: 900; font-size: 22px; letter-spacing: .12em; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.dz__btn.is-armed { cursor: pointer; background: radial-gradient(circle at 50% 38%, #ff5c4a, #b3160a);
  box-shadow: 0 16px 42px rgba(209,20,10,.5), inset 0 -10px 24px rgba(90,0,0,.6), inset 0 8px 16px rgba(255,180,170,.4); animation: dz-throb 1s ease-in-out infinite; }
.dz__btn.is-armed .dz__btn-core { color: #fff; text-shadow: 0 2px 6px rgba(90,0,0,.7); }
.dz__btn.is-armed:hover { transform: scale(1.04); }
.dz__btn.is-armed:active { transform: scale(.95); }
.dz__btn-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(209,20,10,.55); opacity: 0; pointer-events: none; }
.dz__btn.is-armed .dz__btn-ring { animation: dz-ring 1.6s ease-out infinite; }
.dz__btn.is-armed .dz__btn-ring--2 { animation-delay: .8s; }
.dz__hint { font-size: 13px; font-weight: 700; color: #94a3b8; }
.dz__hint.is-armed { color: #d1140a; }
/* Detonation run */
.dz--live .dz__hazard { animation: dz-throb .5s ease-in-out infinite; color: #d1140a; }
.dz-boom { font-size: 60px; animation: dz-explode .6s ease-out; }
.dz-run__title { font-size: 22px; font-weight: 800; color: #d1140a; margin: 6px 0 16px; }
.dz-progress { height: 12px; border-radius: 999px; background: #fdeeec; overflow: hidden; margin: 0 auto 18px; max-width: 460px; }
.dz-progress__bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ff7a2a, #d1140a); transition: width .3s ease; box-shadow: 0 0 12px rgba(209,20,10,.55); }
.dz-log { display: flex; flex-direction: column; gap: 6px; max-width: 460px; margin: 0 auto; text-align: left; }
.dz-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line, #eee); font-size: 13.5px; animation: dz-slidein .25s ease; }
.dz-item__name { font-weight: 700; }
.dz-item__stat { color: var(--muted, #64748b); font-variant-numeric: tabular-nums; }
.dz-item--done { background: #2a0b08; border-color: #2a0b08; color: #ffd7cf; }
.dz-item--done .dz-item__stat { color: #ff8a7a; font-weight: 700; }
.dz-item--fail { background: #fff7ed; border-color: #f5c99a; }
/* Done */
.dz-done { max-width: 560px; margin: 6px auto; text-align: center; }
.dz-done__boom { font-size: 72px; animation: dz-explode .7s ease-out; }
.dz-done h2 { font-size: 26px; font-weight: 800; margin: 6px 0 8px; }
.dz-done__count { color: var(--muted, #64748b); font-size: 14px; margin-bottom: 24px; }
.dz-done__next { text-align: left; background: #f4faf5; border: 1px solid #cfe8d3; border-radius: 14px; padding: 20px 22px; }
.dz-done__next h3 { font-size: 15px; margin-bottom: 12px; }
.dz-done__next ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--ink-2, #333); }
.dz-done__next a { color: var(--purple-ink, #6a54b5); font-weight: 700; }
.dz-shake { animation: dz-shake .4s linear infinite; }
@keyframes dz-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .78; } }
@keyframes dz-throb { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes dz-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes dz-explode { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.25) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes dz-slidein { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes dz-shake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -3px); } }
@media (prefers-reduced-motion: reduce) { .dz__hazard, .dz__btn.is-armed, .dz__btn-ring, .dz-shake, .dz-boom, .dz-done__boom, .dz--live .dz__hazard { animation: none !important; } }
