:root {
  --ink: #0b1110;
  --paper: #f4f6ef;
  --lime: #d9f56b;
  --mint: #b8e8d0;
  --green: #3ddc84;
  --coral: #ff8f70;
  --mist: #a6b1aa;
  --violet: #b9a7ff;
  --yellow: #ffd166;
  --line: rgba(244, 246, 239, 0.1);
  --soft-line: rgba(11, 17, 16, 0.1);
  --display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }html { scroll-behavior: smooth; }body { margin: 0; min-width: 320px; background: var(--ink); color: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }a { color: inherit; text-decoration: none; }button, input { font: inherit; }button { cursor: pointer; }button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(217, 245, 107, .85); outline-offset: 3px; }::selection { color: var(--ink); background: var(--lime); }.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }.eyebrow { margin: 0; color: var(--mist); font-size: .68rem; font-weight: 700; letter-spacing: .22em; line-height: 1.3; text-transform: uppercase; }.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(11, 17, 16, .9); backdrop-filter: blur(16px); }.nav-wrap { display: flex; height: 72px; align-items: center; justify-content: space-between; }.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: -.04em; }.brand-mark { position: relative; display: grid; width: 36px; height: 36px; overflow: hidden; place-items: center; border-radius: 12px; background: var(--lime); color: var(--ink); font-size: 19px; font-weight: 800; transition: transform .2s ease; }.brand:hover .brand-mark { transform: rotate(7deg); }.brand-mark::after { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); content: ""; opacity: .8; }.main-nav { display: flex; align-items: center; color: var(--mist); font-size: .86rem; }.nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }@media (max-width: 680px) { .nav-group { flex-direction: column; align-items: stretch; }  .nav-login, .nav-action { width: 100%; } }.nav-link { color: var(--mist); font-size: .8rem; font-weight: 600; white-space: nowrap; transition: color .2s ease; }.nav-link:hover { color: var(--paper); }.nav-admin-arrow { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--mist); font-size: 1rem; font-weight: 900; line-height: 1; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }.nav-admin-arrow:hover { border-color: rgba(217, 245, 107, .45); background: rgba(217, 245, 107, .1); color: var(--lime); }.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }.button-primary:hover, .button-dark:hover { transform: translateY(-2px); }.nav-login { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease; }.nav-login:hover { background: #e6ff8a; transform: translateY(-2px); }.nav-action { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--paper); font-size: .74rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }.nav-action:hover { border-color: rgba(217, 245, 107, .38); background: rgba(217, 245, 107, .1); color: var(--lime); }.menu-toggle { display: none; width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); }.menu-toggle span { display: block; width: 20px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }.noise { position: relative; }.noise::after { position: absolute; z-index: 0; inset: 0; pointer-events: none; content: ""; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }.noise > * { position: relative; z-index: 1; }.grid-lines { position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: 620px; opacity: .7; background-image: linear-gradient(rgba(244, 246, 239, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 246, 239, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 82%); }.orb { position: absolute; border-radius: 50%; pointer-events: none; }.orb-one { top: 80px; right: -140px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(217, 245, 107, .14), transparent 68%); }.orb-two { bottom: -50px; left: -180px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255, 143, 112, .11), transparent 70%); }.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.pill-lime { border-color: rgba(217, 245, 107, .25); background: rgba(217, 245, 107, .1); color: var(--lime); }h1, h2, h3, p { margin-top: 0; }h1, h2, h3 { font-family: var(--display); }h1 { margin: 28px 0 0; font-size: clamp(3.25rem, 7vw, 5.8rem); font-weight: 600; letter-spacing: -.075em; line-height: .94; }h1 em { color: var(--lime); font-style: normal; }.hero-description { max-width: 475px; margin: 27px 0 0; color: var(--mist); font-size: 1.08rem; line-height: 1.8; }.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 32px; }.button { min-height: 46px; padding: 13px 20px; }.button-primary { background: var(--lime); color: var(--ink); }.button-primary:hover { background: #e6ff8a; }.button-secondary { border: 1px solid var(--line); color: var(--paper); }.button-secondary:hover { border-color: rgba(244, 246, 239, .35); background: rgba(255, 255, 255, .06); }.button-dark { background: var(--ink); color: var(--paper); }.button-dark:hover { background: #18231f; }.button-forest { border: 1px solid #2c6b4f; background: #1e4636; color: var(--mint); }.button-forest:hover { border-color: #3d8a66; background: #27573f; color: var(--paper); }.trust-row { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 28px; color: var(--mist); font-size: .69rem; }.trust-row b { display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .61rem; }.icon-lime { background: var(--lime); }.icon-mint { background: var(--mint); }.icon-coral { background: var(--coral); }.icon-violet { background: var(--violet); }.icon-yellow { background: var(--yellow); }.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: rgba(244, 246, 239, .62); }.marquee-track { display: flex; width: max-content; align-items: center; gap: 31px; padding: 16px 0; animation: marquee 30s linear infinite; font-size: .68rem; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }.marquee-track i { color: var(--lime); font-size: .9rem; font-style: normal; }.section-intro { max-width: 680px; }.section-intro h2, .cta-card h2 { margin: 17px 0 0; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.065em; line-height: .98; }.section-intro > p:last-child { margin: 18px 0 0; color: var(--mist); line-height: 1.75; }.search-box { position: relative; display: block; width: min(100%, 280px); flex: 0 0 auto; }.search-box > span { position: absolute; top: 50%; left: 15px; color: var(--mist); font-size: 1.25rem; line-height: 1; transform: translateY(-52%); }.search-box input { width: 100%; padding: 14px 16px 14px 43px; border: 1px solid var(--line); border-radius: 16px; outline: none; background: rgba(255, 255, 255, .06); color: var(--paper); font-size: .78rem; transition: border-color .2s ease, box-shadow .2s ease; }.search-box input::placeholder { color: rgba(166, 177, 170, .7); }.search-box input:focus { border-color: rgba(217, 245, 107, .55); box-shadow: 0 0 0 4px rgba(217, 245, 107, .1); }.filter-row { display: flex; gap: 8px; margin-top: 42px; overflow-x: auto; padding-bottom: 3px; }.filter-button { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mist); font-size: .7rem; font-weight: 700; transition: all .2s ease; }.filter-button:hover { border-color: rgba(244, 246, 239, .28); color: var(--paper); }.filter-button.active { border-color: var(--lime); background: var(--lime); color: var(--ink); }.category-row { display: flex; align-items: center; gap: 8px; margin-top: 13px; overflow-x: auto; padding-bottom: 3px; }.category-label { flex: 0 0 auto; margin-right: 3px; color: var(--mist); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }.category-row .filter-button { padding: 8px 12px; font-size: .65rem; }.card-top { display: flex; align-items: flex-start; justify-content: space-between; }.card-mark { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 16px; color: var(--ink); font-family: var(--display); font-size: 1.12rem; font-weight: 800; }.tag { padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--mist); font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.tag-free { background: rgba(217, 245, 107, .13); color: var(--lime); }
/* ============================================================================
   Premium
   A paid item is marked on the card, in the details modal, and in the unlock
   dialog. Gold rather than lime: lime already means "free and open" everywhere
   else in this app, and reusing it would make a paid item look like the free
   ones next to it.
   ============================================================================ */
.tag-premium { background: rgba(244, 201, 96, .16); color: #f4c960; }
/* "Premium Activated" is longer than the price badge it sits beside, so it is set
   a step smaller and pinned to one line - otherwise it wraps on a narrow card and
   pushes the title down. The check carries the state, the word is the label, and
   the whole thing still fits beside the 50px letter tile at phone width. */
.tag-owned { display: inline-flex; align-items: center; gap: 4px; background: rgba(184, 232, 208, .16); color: var(--mint); font-size: .48rem; letter-spacing: .07em; white-space: nowrap; }
.tag-check { display: inline-grid; width: 11px; height: 11px; flex: 0 0 11px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: .46rem; font-weight: 800; line-height: 1; }
.user-product-card.is-premium { border-color: rgba(244, 201, 96, .26); }
.user-product-card.is-premium .card-action { color: #f4c960; }
.user-product-card.is-premium:hover { border-color: rgba(244, 201, 96, .45); }
.premium-lock { display: flex; align-items: flex-start; gap: 11px; margin-top: 23px; padding: 15px; border: 1px solid rgba(244, 201, 96, .22); border-radius: 16px; background: rgba(244, 201, 96, .06); }
.premium-lock-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: rgba(244, 201, 96, .18); color: #f4c960; font-size: .54rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.premium-lock-copy { margin: 0; color: var(--mist); font-size: .72rem; line-height: 1.6; }

/* The unlock dialog. Deliberately the same shape as the donation screen - the
   QR plate, the numbered steps, the two-button row - so a student who has just
   scanned a donation QR is not reading a different screen the second time. */
/* NOTE the selector: .modal-card.premium-card, not .premium-card.
   .modal-card is declared LATER in this file than this block, and the two have
   the same specificity, so a plain .premium-card { max-height: none } loses. That
   is why the scrollbar kept coming back - the override was written and then
   silently beaten. Qualifying both selectors makes the intent order-independent. */
.modal-card.premium-card {
  width: min(100%, 790px);
  max-height: none;
  overflow: visible;
}
/* The header is scaled down for the same reason. At the shared 2.2rem it was the
   single tallest thing on the screen after the QR, and this screen has real work
   to do below it. */
.premium-card .eyebrow { font-size: .58rem; }
/* Qualified for the same reason as .modal-card.premium-card above: .modal-card h2
   is declared later at equal specificity and was winning with its 2.2rem. */
.modal-card.premium-card h2 { margin-top: 9px; font-size: 1.55rem; }
.premium-card .modal-intro { margin-top: 7px; font-size: .72rem; }
.premium-summary { margin-top: 13px; padding: 12px 16px; }
/* The QR is the biggest single block and the least information-dense, so it takes
   the reduction. 164px still scans easily - a QR needs far less than that - and
   the narrower column actually gives the steps MORE room. */
.premium-card .pay-layout-qr { grid-template-columns: 164px minmax(0, 1fr); gap: 22px; margin-top: 13px; }
.premium-card .pay-layout-qr .qr-frame { width: 164px; height: 164px; }
.premium-reference-block { margin-top: 13px; padding: 12px 16px; gap: 6px; }
.premium-card .pay-actions { margin-top: 14px; }
.premium-card .secure-note { margin-top: 11px; }
/* No "What to do" heading above the numbered list - the numbers already say it,
   and the heading plus its margin was 32px of a screen that had to fit. */
.premium-card .pay-scan-steps { gap: 9px; margin-top: 0; }
/* On a short window - a 1366x768 laptop is the common case - take a second bite
   out of the QR rather than let the dialog scroll. */
@media (max-height: 800px) {
  .premium-card .pay-layout-qr { grid-template-columns: 146px minmax(0, 1fr); gap: 20px; }
  .premium-card .pay-layout-qr .qr-frame { width: 146px; height: 146px; }
  .premium-card h2 { font-size: 1.4rem; }
  .premium-card .modal-intro { display: none; }
}
/* On a narrow window the QR stacks above the steps, which is TALLER than the
   two-column layout. Shrink it hard so the stack still fits. */
@media (max-width: 680px) {
  .premium-card .pay-layout-qr { grid-template-columns: 1fr; justify-items: center; }
  .premium-card .pay-layout-qr .qr-frame { width: min(150px, 44vw); height: min(150px, 44vw); }
  .premium-card .pay-scan-steps { gap: 7px; }
  .premium-card .pay-scan-steps li { white-space: normal; text-align: left; }
  .premium-card .pay-details { width: 100%; }
  .premium-card h2 { font-size: 1.35rem; }
  .premium-card .secure-note { margin-top: 9px; }
}
/* The numbered steps need room to read as sentences. At the old 620px the QR
   and its gap ate 262px, leaving the text about 268px - roughly 45 characters,
   so a line like "Email the screenshot to delacruzzjer@gmail.com." either wrapped
   mid-address or forced a break. Widening the card gives that column ~460px.

   The size is deliberately small. These are instructions, not headlines: .68rem
   keeps a full sentence on one line in that column, where .7rem sat close enough
   to the edge that the longest step could still wrap. */
.premium-card .pay-scan-steps { gap: 11px; }
.premium-card .pay-scan-steps li { font-size: .68rem; line-height: 1.5; }
.premium-card .pay-scan-title { font-size: 1rem; }
/* One line per step, enforced. Without this a sentence wraps as soon as it is a
   character or two too long for the column, which is what makes a numbered list
   look broken. Scoped to the width where the two-column layout applies: below
   that the steps stack under the QR and wrapping is genuinely unavoidable, so
   letting it wrap is better than clipping. */
@media (min-width: 681px) {
  .premium-card .pay-scan-steps li { white-space: nowrap; }
}
.premium-step { text-align: left; }
/* What you pay, and what it buys, boxed together.
   It used to be a bare ₱150 on its own line above the QR, which read as a
   floating number rather than the price of the thing being scanned. As a strip it
   anchors the screen, and putting the term on the right answers "for how long?"
   without another sentence. */
.premium-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 21px; padding: 16px 19px; border: 1px solid rgba(217, 245, 107, .22); border-radius: 18px; background: rgba(217, 245, 107, .06); }
.premium-summary-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.premium-amount { color: var(--lime); font-family: var(--display); font-size: 1.95rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.premium-summary-note { color: var(--mist); font-size: .64rem; font-weight: 700; }
.premium-summary-term { flex: 0 0 auto; text-align: right; }
.premium-summary-term small { display: block; color: var(--mist); font-size: .55rem; font-weight: 800; letter-spacing: .14em; }
.premium-summary-term strong { display: block; margin-top: 3px; color: var(--paper); font-family: var(--display); font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.premium-card .pay-layout-qr { margin-top: 22px; }

/* The GCash reference gets its own block, full width, instead of sitting at the
   bottom of a tall column under four steps. It is required to continue, so it
   should not be the easiest thing on the screen to miss. */
.premium-reference-block { display: grid; gap: 8px; margin-top: 21px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.premium-reference-label { display: flex; align-items: center; gap: 9px; color: var(--paper); font-size: .74rem; font-weight: 700; }
.premium-required { padding: 3px 8px; border-radius: 999px; background: rgba(255, 143, 112, .16); color: var(--coral); font-size: .52rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.premium-reference-block input { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(255, 255, 255, .06); color: var(--paper); font-size: .88rem; font-weight: 700; letter-spacing: .04em; }
.premium-reference-block input::placeholder { color: var(--mist); font-weight: 500; letter-spacing: 0; }
.premium-reference-block input:focus { border-color: rgba(217, 245, 107, .55); }
.premium-reference-block .field-hint { margin-top: 1px; }
.field-hint { color: var(--mist); font-size: .6rem; font-weight: 500; line-height: 1.6; }
.field-hint b { color: var(--paper); }
/* The send-your-receipt step: the address is the single most important thing on
   the screen, so it is given its own block at display size rather than being
   buried in a sentence the way the mailto link used to hide it. */
.send-to { display: grid; gap: 7px; margin-top: 16px; padding: 15px 17px; border: 1px solid rgba(217, 245, 107, .24); border-radius: 16px; background: rgba(217, 245, 107, .06); }
.send-to-label { color: var(--mist); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.send-to-address { overflow-wrap: anywhere; color: var(--lime); font-family: var(--display); font-size: 1.18rem; letter-spacing: -.02em; }
.send-to-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.send-to-actions .button { flex: 1 1 190px; }
.send-steps { gap: 9px; margin: 15px 0 0; }
.send-steps li { white-space: normal; text-align: left; }
.send-steps b { color: var(--paper); font-weight: 700; }
.premium-waiting-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 13px; align-items: start; margin-top: 23px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .03); }
.premium-waiting-box p { margin: 0; color: var(--mist); font-size: .71rem; line-height: 1.55; }
.premium-waiting-box b { color: var(--paper); }
.premium-step-num { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: rgba(217, 245, 107, .14); color: var(--lime); font-size: .6rem; font-weight: 800; }

/* Admin: the claims you work from. The reference is the field you would look up
   in GCash, so it gets the emphasis, not the date or the amount. */
.premium-filters { margin-top: 18px; }
.premium-queue { margin-top: 18px; }
.premium-group-label { margin: 0 0 9px; color: var(--mist); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.premium-group-label:not(:first-child) { margin-top: 22px; }
.premium-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.premium-row + .premium-row { margin-top: 8px; }
.premium-row.is-settled { opacity: .62; }
.premium-row-main { min-width: 0; }
.premium-row-main strong { display: block; overflow: hidden; color: var(--paper); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.premium-row-main small { display: block; margin-top: 5px; color: var(--mist); font-size: .63rem; }
.premium-ref { color: #f4c960; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .04em; }
.premium-row-actions { display: flex; align-items: center; gap: 7px; }
.premium-status { padding: 4px 9px; border-radius: 999px; font-size: .53rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.premium-status.approved { background: rgba(184, 232, 208, .16); color: var(--mint); }
.premium-status.rejected { background: rgba(255, 143, 112, .14); color: var(--coral); }
.row-action.verify { width: auto; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(184, 232, 208, .32); background: rgba(184, 232, 208, .12); color: var(--mint); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.row-action.verify:hover { background: var(--mint); color: var(--ink); }
.admin-product-row small.is-premium { color: #f4c960; }
/* The premium price is one number for the whole category, so the peso box is
   gone from the editor. These two fields only ever explain that. */
.access-field .field-hint { margin-top: 2px; }
.filter-button.filter-premium { color: #f4c960; }
.filter-button.filter-premium.active { border-color: rgba(244, 201, 96, .5); background: rgba(244, 201, 96, .14); color: #f4c960; }

/* Admin monitoring: the roster on the left is the thing you work in, the
   receipts on the right are only prompts to go and check a GCash app. */
.admin-panel-wide { grid-column: 1 / -1; }
.premium-monitor-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-top: 20px; align-items: start; }
.premium-block { min-width: 0; }
.premium-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.premium-block-head h3 { margin: 0; color: var(--paper); font-size: .95rem; letter-spacing: -.02em; }
.premium-search { flex: 0 1 190px; width: auto; }
.premium-search input { width: 100%; padding: 8px 11px; font-size: .68rem; }
/* ============================================================================
   Premium monitoring: the roster on the left, the receipts on the right.

   Each list scrolls inside its own box. Two independent scroll areas rather than
   one shared one, because the two columns are read at different times and a
   single scroller would drag the roster out of view every time an admin worked
   through a receipt. Each box carries its own scrollbar, which is always drawn -
   a scroller with no visible thumb reads as a panel that has ended, not as one
   with more below.
   ============================================================================ */
.premium-list { display: grid; gap: 8px; margin-top: 13px; }
/* The scroller is the wrapper, not the list. The list is a plain grid so nothing
   inside it can interfere with the scroll box, and the wrapper owns the height
   and the overflow. */
.premium-scroll { position: relative; }
/* scrollbar-gutter: stable reserves the thumb's track whether or not the list is
   overflowing, so the rows do not shift sideways the moment a third student signs
   up. padding-right is only the breathing room beside that reserved track. */
.premium-scroll-roster .premium-list,
.premium-scroll-queue .premium-list { max-height: min(420px, 44vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-gutter: stable; }
/* The thumb is drawn at rest, not on hover. The accent differs per column so the
   two boxes are told apart at a glance: mint for the roster, lime for the
   receipts, matching the switch and the "Verified & on" button.
   scrollbar-color belongs on the scrolling element itself, not on the wrapper. */
.premium-scroll-roster .premium-list { scrollbar-color: rgba(184, 232, 208, .5) rgba(255, 255, 255, .06); }
.premium-scroll-queue .premium-list { scrollbar-color: rgba(217, 245, 107, .5) rgba(255, 255, 255, .06); }
.premium-scroll-roster .premium-list::-webkit-scrollbar,
.premium-scroll-queue .premium-list::-webkit-scrollbar { width: 10px; }
.premium-scroll-roster .premium-list::-webkit-scrollbar-track,
.premium-scroll-queue .premium-list::-webkit-scrollbar-track { border-radius: 999px; background: rgba(255, 255, 255, .06); }
.premium-scroll-roster .premium-list::-webkit-scrollbar-thumb,
.premium-scroll-queue .premium-list::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background-clip: content-box; background-color: rgba(255, 255, 255, .22); }
.premium-scroll-roster .premium-list::-webkit-scrollbar-thumb { background-color: rgba(184, 232, 208, .5); }
.premium-scroll-queue .premium-list::-webkit-scrollbar-thumb { background-color: rgba(217, 245, 107, .5); }
.premium-scroll-roster .premium-list:hover::-webkit-scrollbar-thumb { background-color: rgba(184, 232, 208, .75); }
.premium-scroll-queue .premium-list:hover::-webkit-scrollbar-thumb { background-color: rgba(217, 245, 107, .75); }
/* Keyboard users reach the scroll area with Tab, so the ring is not optional -
   same rule as the other admin scrollers. */
.premium-list:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 14px; }
/* The "scroll for more" line. Only rendered when the list actually overflows, so
   it is a fact rather than a permanent decoration. */
/* .scroll-hint, defined once with the monitoring panels below. Kept here as a
   note rather than a second rule: the premium hints and the monitoring hints are
   the same element and must not diverge. */

/* Status filter chips over the roster. Small, because they are a view control and
   not the content; the count is what makes them worth having. */
.premium-filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.premium-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mist); font-family: inherit; font-size: .62rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.premium-chip:hover { border-color: rgba(244, 246, 239, .3); color: var(--paper); }
.premium-chip.active { border-color: rgba(217, 245, 107, .5); background: rgba(217, 245, 107, .13); color: var(--lime); }
.premium-chip:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.filter-count { color: var(--paper); font-family: var(--display); font-size: .72rem; font-weight: 800; }
.premium-chip.active .filter-count { color: var(--lime); }
/* The count on a feedback filter button. inline-flex is needed for the gap to
   mean anything - .filter-button is a plain inline-block, so without this the
   number sits flush against the label and reads as a typo. The spacing itself is
   inherited from the rule at the top of the file; this only changes the box. */
.monitor-grid .feedback-filter-row .filter-button { display: inline-flex; align-items: center; gap: 6px; }
.monitor-grid .feedback-filter-row .filter-button.active .filter-count { color: var(--lime); }

.premium-row.is-on { border-color: rgba(184, 232, 208, .26); background: rgba(184, 232, 208, .05); }
/* Ending soon, and a receipt nobody has looked at in a day. Amber, not coral:
   these are prompts to act, not errors, and coral is already the colour of
   "reject" in this panel. */
.premium-row.is-ending { border-color: rgba(255, 209, 102, .32); }
.premium-row.is-stale { border-color: rgba(255, 209, 102, .3); background: rgba(255, 209, 102, .05); }
.premium-row.is-busy { opacity: .55; pointer-events: none; }
.premium-status.expired { background: rgba(255, 255, 255, .07); color: var(--mist); }
.premium-status.none { background: rgba(255, 255, 255, .07); color: var(--mist); }
.premium-status.ending { background: rgba(255, 209, 102, .16); color: var(--yellow); }

/* The roster and receipt rows gained a third column, so the avatar, the text and
   the control each get their own track instead of the control floating in the
   middle of a two-column grid. */
.premium-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.premium-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--ink); font-family: var(--display); font-size: .72rem; font-weight: 800; }
.premium-row-main small + small { margin-top: 4px; }
.premium-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.premium-row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: rgba(166, 177, 170, .8); font-size: .59rem; }
/* Not .premium-amount: that name is already the student's big unlock price, and
   reusing it here would inherit a 2rem display figure into a queue row. */
.premium-claim-amount { color: var(--paper); font-weight: 700; }
.premium-idle, .premium-uses { white-space: nowrap; }
/* The live dot, reused from the monitoring panel so the same student is the same
   colour in both places. */
.premium-live { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-weight: 700; }
.premium-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(184, 232, 208, .14); animation: presencePulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .premium-live-dot { animation: none; } }
.premium-row-tail { display: grid; justify-items: end; gap: 7px; }
.premium-row-tail .premium-switch { justify-self: end; }
/* How much of the paid term is left, as a bar. A date is precise and unreadable
   at a glance; this says "nearly finished" without arithmetic. */
.premium-meter { display: block; width: 78px; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.premium-meter span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.premium-row.is-ending .premium-meter span { background: var(--yellow); }

/* Group headings inside the queue: a label and a count on one line, so the
   settled tail can be skipped by eye. */
.premium-group-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.premium-group-count { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--paper); font-family: var(--display); font-size: .62rem; letter-spacing: 0; }
/* A three-column row cannot hold the switch and a readable email on a phone. The
   avatar moves onto its own line above the text and the control spans underneath,
   which keeps the switch a full-width target instead of a cramped one. */
@media (max-width: 680px) {
  .premium-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 11px; }
  .premium-row-tail { grid-column: 1 / -1; grid-auto-flow: column; align-items: center; justify-content: space-between; justify-items: start; }
  .premium-row-tail .premium-switch { justify-self: start; }
  .premium-meter { width: 100%; }
  .premium-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .premium-filter-row { overflow-x: auto; padding-bottom: 3px; }
}

/* The switch. A real checkbox underneath, restyled - so it still works with a
   keyboard, reports its own state to assistive tech, and needs no JavaScript
   to be operable. The track and the dot are the only decoration. */
.premium-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.premium-switch input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.premium-switch-track { position: relative; width: 42px; height: 23px; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background .18s ease; }
.premium-switch-track::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--mist); content: ""; transition: transform .18s ease, background .18s ease; }
.premium-switch input:checked + .premium-switch-track { background: rgba(184, 232, 208, .28); }
.premium-switch input:checked + .premium-switch-track::after { background: var(--mint); transform: translateX(19px); }
.premium-switch input:focus-visible + .premium-switch-track { outline: 2px solid var(--mint); outline-offset: 2px; }
.premium-switch-label { min-width: 18px; color: var(--mist); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.premium-switch input:checked ~ .premium-switch-label { color: var(--mint); }.card-action { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--lime); font-size: .68rem; font-weight: 800; white-space: nowrap; }


.button-small { min-height: 38px; padding: 9px 15px; font-size: .7rem; }
/* Google sign-in. White on purpose: it is the only control on the screen that
   imitates a third party, so it has to look like Google's own button. */
.button-google { border: 1px solid rgba(11, 17, 16, .16); background: #fff; color: #1f1f1f; }
.button-google:hover:not(:disabled) { border-color: rgba(11, 17, 16, .3); background: #f7f7f7; }
.button-google:disabled { opacity: .65; cursor: progress; }
.google-mark { width: 18px; height: 18px; flex: 0 0 auto; }
/* The empty state. Dimmed and unquoted, because it is a statement about the
   section rather than a comment from anybody - a real quotation marks in the
   layout would read as a quote. */
.review-card-empty { opacity: .78; }
.review-card-empty blockquote { color: var(--mist); font-family: inherit; font-size: 1rem; }
.review-card-empty .review-stars { opacity: .35; }
/* The Firebase status line in the login dialog. `data-tone` is set by
   setConfigNote() so a broken setup is visible without opening the console. */
/* The spent state. Deliberately quiet: the tag only appears once the day's
   allowance is gone, and it reports a fact rather than selling an upgrade. */

/* The monitoring row: activity on the left, incoming feedback on the right. They
   are the same kind of thing - both are things happening right now - so they sit
   side by side under one grid rather than as two separate full-width panels. */
/* The admin's sections are a single grid that decides its own columns, so the
   Catalog section gets two side by side and a section holding one panel gets one
   full-width row with no empty cell beside it. That replaces a fixed two-column
   grid plus a `nth-child(3)` patch to force the odd panel out, which broke every
   time a panel was added or moved. */
.admin-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; align-items: start; margin-top: 22px; }
.admin-section > .admin-panel-wide { grid-column: 1 / -1; }
/* ============================================================================
   The monitoring row: Student activity on the left, Student feedback on the
   right. They are the same kind of panel doing the same kind of job, so they
   are sized to each other rather than independently.

   Before this they were two independently-tall cards in an auto-fit grid, so
   they came out visibly unequal: activity rows are a single compact line, a
   feedback row is an avatar plus a comment plus buttons, so the feedback card
   ran a hundred pixels taller and the pair read as a mistake rather than a pair.

   Three things hold them together:

     - Both cards are the same height, and stretch to fill the row.
     - Both scroll inside their own box, with the SAME cap. A shorter cap in one
       column is what actually makes two side-by-side lists look misaligned.
     - Both card headers are the same height, because the two titles sit next to
       a control of different sizes: a pill and a button above, a text count
       above. Without this the list tops do not line up either.

   The grid is capped at 1080px and centred. Left to fill a 1180px container the
   two cards become wide enough that a one-line activity row has a huge empty
   right half, and the pair stops reading as a unit.

   The columns are NOT equal, and that is the point. A feedback row carries an
   avatar, a name, a rating, a product, a status and a whole comment; an activity
   row is one short line. Splitting the row 50/50 starves the side that has
   something to read, so the queue gets the wider column and the log the narrower
   one. Still one shape, still one height - just sized to the content.
   ============================================================================ */
.monitor-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: stretch; max-width: 1080px; margin-right: auto; margin-left: auto; gap: 16px; }
.monitor-grid > .admin-panel { display: flex; flex-direction: column; min-width: 0; }
/* The headers are held to one height so the two scroll areas start on the same
   line. min-height rather than height: the note under the feedback heading wraps
   on a narrow screen and a fixed height would clip it. */
.monitor-grid > .admin-panel > .panel-heading { min-height: 58px; align-items: center; }
/* Both scrollers fill whatever height the taller card needs, so the two cards
   stay the same height either way. The caps differ because the rows differ: an
   activity row is one line, a feedback row is a paragraph, so a shared cap would
   show a dozen log lines beside three comments and the feedback queue would look
   emptier than it is. */
.monitor-grid .activity-scroll,
.monitor-grid .feedback-review-list { flex: 1 1 auto; margin-top: 0; }
.monitor-grid .activity-scroll { max-height: min(430px, 46vh); }
.monitor-grid .feedback-review-list { max-height: min(620px, 68vh); }
/* ============================================================================
   The feedback row at default size.

   It was built for a full-width panel and then inherited the halved column. The
   text ended up at .78rem inside a 16px row with a 14px gap: three or four
   comments on screen, each one shrunk until the comment - the only reason the
   panel exists - was the smallest thing in it.

   So the sizes below are the app's ordinary body sizes, not a new scale. The
   comment is set at the same size the student's own form uses, because the admin
   is reading exactly that text and should not have to adjust to it. Only the
   chrome stays small: the meta line is supporting detail, not content.
   ============================================================================ */
.monitor-grid .feedback-review-row { gap: 13px; padding: 15px 16px; }
.monitor-grid .feedback-review-row .review-avatar { width: 40px; height: 40px; font-size: .85rem; }
.monitor-grid .feedback-review-main strong { font-size: .84rem; }
.monitor-grid .feedback-review-meta { gap: 8px; font-size: .68rem; }
/* overflow-wrap: anywhere so the row grows with the comment rather than clamping
   it - a three-line comment and a one-line comment both read, and a long unbroken
   string cannot blow out the column. */
.monitor-grid .feedback-review-main blockquote { margin-top: 9px; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
/* The filter row. It inherits a 42px top margin from the generic .filter-row,
   which is sized for the landing page and is far too much air inside a panel
   whose whole job is to show a list. */
.monitor-grid .feedback-filter-row { margin-top: 14px; }
/* The hint belongs to the card, not to the list, so it sits at the bottom edge
   of whichever card is shorter rather than floating mid-panel. */
.scroll-hint { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--mist); font-size: .59rem; letter-spacing: .04em; }
.scroll-hint[hidden] { display: none; }
/* Only the activity card pins its hint to the bottom. The feedback card is the
   taller one - its list has a larger cap - so an auto margin there would add a
   gap between the list and the hint for no reason. */
.moderation-panel > .scroll-hint { margin-top: 13px; }
/* The feedback note sits above its filter row and pushes that card's list down.
   Taking the row out of flow and letting the list absorb the difference is what
   keeps the two cards level. */
.moderation-panel { display: flex; flex-direction: column; margin-top: 0; }
.moderation-panel > .feedback-review-list { margin-top: 14px; }
/* The activity card is the shorter one, so its hint is pushed to the bottom edge
   instead of sitting directly under a short list with dead space below it. */
.activity-panel > .scroll-hint { margin-top: auto; }
@media (max-width: 900px) {
  .monitor-grid { grid-template-columns: minmax(0, 1fr); max-width: none; }
}
/* The student's three spaces. Each part of the dashboard gets its own room
   instead of one long scroll, so the library, the tutorial and the feedback form
   are never competing for attention on the same screen. */
.space-tabs { display: flex; gap: 5px; margin: 0 0 26px; padding-bottom: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.space-tab { position: relative; flex: 0 0 auto; padding: 13px 17px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--mist); font-size: .78rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.space-tab:hover { color: var(--paper); }
.space-tab.active { border-bottom-color: var(--lime); color: var(--paper); }
.space-tab:focus-visible { outline: 3px solid rgba(217, 245, 107, .85); outline-offset: -3px; }
.space[hidden] { display: none; }
.space:focus-visible { outline: none; }
/* The Admin tab sits at the end of the same row and is styled as a distinct
   "staff" destination rather than another student section, so an admin can tell
   at a glance they are one click from their own tools. It is removed from the
   markup for a student, not merely dimmed. */
.space-tab-admin { margin-left: 6px; padding-right: 17px; padding-left: 17px; border-left: 1px solid var(--line); color: var(--violet); }
.space-tab-admin:hover { color: #d3c7ff; }
.space-tab-admin.active { border-bottom-color: var(--violet); color: #d3c7ff; }
.space-tab-admin[hidden] { display: none; }
.space-admin { padding-top: 4px; }
.space-head { margin: 0 0 22px; }
.space-head h2 { margin: 8px 0 0; color: var(--paper); font-size: 2.1rem; letter-spacing: -.06em; }
.space-sub { max-width: 620px; margin: 12px 0 0; color: var(--mist); font-size: .82rem; line-height: 1.7; }
.space-empty { display: grid; gap: 8px; padding: 46px 22px; border: 1px dashed var(--line); border-radius: 22px; color: var(--mist); text-align: center; }
.space-empty[hidden] { display: none; }
.space-empty strong { color: var(--paper); font-family: var(--display); font-size: 1.15rem; }
.space-empty span { max-width: 460px; margin: 0 auto; font-size: .76rem; line-height: 1.65; }
/* The tutorial now has its own page, so the folded card is gone: the player is
   the content. The frame is centred so it does not stretch the full width of a
   wide screen into something unreadable. */
.tutorial { max-width: 880px; margin: 0; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, rgba(217, 245, 107, .07), rgba(255, 255, 255, .03) 55%); }
.tutorial-body { padding: 18px; }
/* The thumbnail is what makes the panel look like something to click rather than
   another row of text. It is a plain CDN image, loaded lazily, and only once a
   video actually exists. */
/* Cover, not contain: the stock YouTube frame has black bars, and a letterboxed
   thumbnail looks broken next to the rest of the cards. */
/* A drawn chevron, because the default disclosure triangle cannot be styled and
   looked out of place next to the rest of the cards. */
.tutorial-body { padding: 4px 20px 22px; }
/* 16:9 so the player never letterboxes or crops. */
.tutorial-frame { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #0b1110; aspect-ratio: 16 / 9; }
.tutorial-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tutorial-note { margin: 14px 0 0; color: var(--mist); font-size: .66rem; line-height: 1.6; }
@media (max-width: 560px) { .tutorial-body { padding: 12px; } .space-tab { padding: 12px 14px; font-size: .74rem; } }
/* The admin's link field. */
.tutorial-form { display: grid; gap: 14px; margin-top: 18px; }
.tutorial-form label { display: grid; gap: 8px; color: var(--mist); font-size: .66rem; font-weight: 700; }
.tutorial-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(255, 255, 255, .06); color: var(--paper); font-size: .75rem; }
.tutorial-form input:focus { border-color: rgba(217, 245, 107, .55); box-shadow: 0 0 0 3px rgba(217, 245, 107, .1); }
.tutorial-form .form-actions { margin-top: 0; }
.moderation-note { margin: 15px 0 0; line-height: 1.6; }
/* The activity log grows without bound, so it scrolls rather than truncating. The
   scrollbar is drawn (a visible one is a better cue than a hidden bar over a
   long list) and matches the lime accent used elsewhere. */
.activity-total { display: inline-flex; align-items: baseline; gap: 5px; flex: 0 0 auto; padding: 6px 11px; border: 1px solid rgba(217, 245, 107, .25); border-radius: 999px; background: rgba(217, 245, 107, .1); color: var(--mist); font-size: .62rem; font-weight: 700; white-space: nowrap; }
.activity-total b { color: var(--lime); font-family: var(--display); font-size: .95rem; font-weight: 800; letter-spacing: -.04em; }
/* The download counter and "Clear log" sit side by side as one group, so the
   destructive action reads as part of the panel's toolbar instead of floating on
   its own. Coral, not lime: every lime control in this panel adds something, and
   this one takes something away. */
.activity-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.clear-log-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid rgba(255, 140, 120, .34); border-radius: 999px; background: rgba(255, 140, 120, .09); color: #ff9c85; font-family: inherit; font-size: .62rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease; }
.clear-log-button span { font-size: .7rem; line-height: 1; }
.clear-log-button:hover:not(:disabled) { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.clear-log-button:active:not(:disabled) { transform: translateY(1px); }
.clear-log-button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.clear-log-button:disabled { border-color: var(--line); background: transparent; color: var(--mist); opacity: .45; cursor: not-allowed; }
/* ============================================================================
   Thin scrollbars for the admin lists.
   One rule, applied everywhere, instead of five near-copies that drifted apart.

   The scrollbar is VISIBLE and thin on purpose. Three of these lists were
   either unstyled (a fat default bar) or `scrollbar-width: none` (no bar at
   all), which for a list an admin has to work through is the difference between
   "there is more below" and "is that all of them?".

   The heights are viewport-capped with min() so a long list scrolls inside its
   panel instead of pushing the next panel off the bottom of a laptop screen.
   ============================================================================ */
.thin-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(217, 245, 107, .45) transparent; padding-right: 6px; }
.thin-scroll::-webkit-scrollbar { width: 7px; }
.thin-scroll::-webkit-scrollbar-track { border-radius: 999px; background: rgba(255, 255, 255, .05); }
.thin-scroll::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(217, 245, 107, .45); background-clip: content-box; }
.thin-scroll:hover::-webkit-scrollbar-thumb { background: rgba(217, 245, 107, .7); background-clip: content-box; }
/* Keyboard users reach the scroll area with Tab, so the ring is not optional. */
.thin-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 10px; }

.activity-scroll { max-height: min(420px, 46vh); margin-top: 20px; }
/* ============================================================================
   Live presence.
   The online count sits where the activity total does, in the same pill, because
   it answers the same kind of question: how much is happening right now.

   The dot is the only part that changes state. Green with a slow pulse for
   someone whose heartbeat is fresh, plain grey once it is not - grey rather than
   hidden, so a departure is visible instead of the row silently vanishing.
   The pulse is suppressed under prefers-reduced-motion: a constant size change
   is a WCAG 2.2.2 failure and it carries no information the colour does not.
   ============================================================================ */
.presence-total { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 5px; padding: 6px 11px; border: 1px solid rgba(184, 232, 208, .25); border-radius: 999px; background: rgba(184, 232, 208, .1); color: var(--mist); font-size: .62rem; font-weight: 700; white-space: nowrap; }
.presence-total b { color: var(--mint); font-family: var(--display); font-size: .95rem; font-weight: 800; letter-spacing: -.04em; }
.presence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 9px; max-height: min(320px, 34vh); margin-top: 18px; overflow-y: auto; }
.presence-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .03); opacity: .58; }
.presence-chip.is-online { border-color: rgba(184, 232, 208, .26); background: rgba(184, 232, 208, .05); opacity: 1; }
.presence-chip-main { min-width: 0; }
.presence-chip-main strong, .presence-chip-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-chip-main strong { color: var(--paper); font-size: .72rem; }
.presence-chip-main small { margin-top: 3px; color: var(--mist); font-size: .59rem; }
.presence-where { color: var(--mist); font-size: .59rem; text-align: right; white-space: nowrap; }
/* Spans the whole grid rather than sitting in one cell, so the truncation note
   reads as a footnote to the list and not as another student. */
.presence-more { grid-column: 1 / -1; padding: 6px 2px; font-size: .62rem; }
.presence-chip.is-online .presence-where { color: var(--mint); }
.presence-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); opacity: .55; }
.presence-chip.is-online .presence-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(184, 232, 208, .14); opacity: 1; animation: presencePulse 2.4s ease-in-out infinite; }
@keyframes presencePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .presence-chip.is-online .presence-dot { animation: none; } }
/* A download is the one event worth spotting at a glance. */
.activity-row.is-download { background: rgba(217, 245, 107, .045); }
.activity-row.is-download strong { color: var(--lime); }
.feedback-filter-row { margin-top: 16px; }

.feedback-review-row { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .18); }
/* A waiting row is tinted so the queue reads as a queue even before you read it. */
.feedback-review-row:not(.is-verified) { border-color: rgba(217, 245, 107, .26); background: rgba(217, 245, 107, .05); }
.feedback-review-row.is-verified { opacity: .74; }
.feedback-review-main { min-width: 0; flex: 1; }
.feedback-review-main strong { color: var(--paper); font-size: .74rem; }
.feedback-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 4px; color: var(--mist); font-size: .61rem; }
.feedback-review-main blockquote { margin: 9px 0 0; color: var(--paper); font-size: .71rem; line-height: 1.6; }
.feedback-review-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.feedback-status { padding: 3px 7px; border-radius: 999px; font-size: .52rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feedback-status.pending { background: rgba(217, 245, 107, .16); color: var(--lime); }
.feedback-status.verified { background: rgba(255, 255, 255, .09); color: var(--mist); }
.verify-action { padding: 7px 12px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .63rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.verify-action:hover { background: #e6ff8a; transform: translateY(-1px); }
@media (max-width: 720px) { .feedback-fields { grid-template-columns: 1fr; align-items: stretch; } .star-field { min-width: 0; } .feedback-panel { padding: 22px; } .feedback-review-row { flex-wrap: wrap; } .feedback-review-actions { width: 100%; justify-content: flex-end; } }

.config-note[data-tone="error"] { color: var(--coral); }
.config-note[data-tone="warn"] { color: var(--yellow); }
.config-note[data-tone="ok"] { color: var(--mint); }
/* The explicit way out of a locked dialog. The login modal is data-locked, so
   Escape and a backdrop click both do nothing on purpose: a student who opened
   the admin door by mistake needs a deliberate, visible exit rather than a
   gesture they have to guess. Quieter than the primary action, never hidden. */


/* The activation screen. Calm and plain: the student did nothing wrong, they
   just have to open an email, so nothing here should read as an error. */
/* The activation screen. Every surface is set explicitly to one of the dark
   tokens rather than left to inherit, so no part of it can fall back to the
   browser's white default - not the hero, not the step dots, not the note. */
.activation-card { width: min(100%, 480px); text-align: left; background: #151f1b; }
/* Proportion. Everything inside the card is on the same rhythm - one spacing
   step, one type scale - and the blocks stack in the order they are read, so
   the card reads as a single column rather than a pile of parts. */
.activation-hero { display: flex; align-items: center; gap: 15px; margin: -4px 0 0; }
.activation-hero > div { min-width: 0; }
.activation-hero h2 { margin: 6px 0 0; font-size: 2rem; }
.activation-card .modal-intro { margin-top: 18px; line-height: 1.65; }
.activation-mark { position: relative; display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(217, 245, 107, .3); border-radius: 18px; background: linear-gradient(145deg, rgba(217, 245, 107, .22), rgba(217, 245, 107, .06)); color: var(--lime); font-size: 1.45rem; box-shadow: 0 10px 28px rgba(217, 245, 107, .1); }
.activation-hero h2 { margin: 6px 0 0; }
.activation-hero .eyebrow { color: var(--lime); }
/* The address gets its own surface: it is the one thing the student needs to
   check against their inbox, so it must look like a value, not a sentence. */
.activation-email { display: inline-block; max-width: 100%; margin-top: 4px; padding: 5px 12px; overflow-wrap: anywhere; border: 1px solid rgba(217, 245, 107, .26); border-radius: 999px; background: rgba(217, 245, 107, .08); color: var(--lime); font-size: .74rem; font-weight: 700; line-height: 1.5; text-align: center; }
/* Three steps, so "waiting" has a visible shape. */
.activation-steps { display: grid; gap: 0; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.activation-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--mist); font-size: .72rem; font-weight: 700; }
.activation-steps li + li::before { position: absolute; top: -9px; left: 6px; width: 2px; height: 18px; background: rgba(244, 246, 239, .12); content: ""; }
.activation-dot { position: relative; z-index: 1; width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid rgba(166, 177, 170, .5); border-radius: 50%; background: #151f1b; }
.activation-steps li.is-done { color: var(--paper); }
.activation-steps li.is-done .activation-dot { border-color: var(--lime); background: var(--lime); box-shadow: inset 0 0 0 2px #151f1b; }
.activation-steps li.is-current { color: var(--lime); }
.activation-steps li.is-current .activation-dot { border-color: var(--lime); background: #151f1b; }
/* Only a step that is genuinely being worked on is allowed to spin. */
.activation-steps li.is-current[data-working] .activation-dot { border-top-color: transparent; background: transparent; border-color: transparent; border-top-color: var(--lime); animation: activation-spin .8s linear infinite; }
@keyframes activation-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .activation-steps li.is-current[data-working] .activation-dot { animation: none; border-color: var(--lime); background: #151f1b; } }
/* Persistent reminders, not a transient toast: the three reasons a student says
   "I never got the email" are all things they can fix themselves, and all three
   are worth reading before they hit resend. */
.activation-checklist { display: grid; gap: 9px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .03); list-style: none; }
.activation-checklist li { position: relative; margin: 0; padding-left: 21px; color: var(--mist); font-size: .68rem; line-height: 1.6; }
.activation-checklist li::before { position: absolute; top: 1px; left: 0; color: var(--lime); content: "\2713"; font-size: .74rem; font-weight: 800; }
.activation-checklist strong { color: var(--paper); font-weight: 700; }
.activation-status { min-height: 1.2em; margin: 16px 0 0; color: var(--lime); font-size: .68rem; font-weight: 700; line-height: 1.5; }
/* Three states the student has to be able to tell apart at a glance: work in
   progress, confirmed, and a problem they can act on. */
.activation-status.is-working { color: var(--mist); }
.activation-status.is-done { color: var(--lime); }
.activation-status.is-problem { color: var(--coral); }
.activation-status:empty { display: none; }
/* Buttons stay disabled while a request is in flight, and say so. */
.activation-card[data-busy] .button { opacity: .55; pointer-events: none; }
.activation-card .button:disabled { opacity: .5; cursor: not-allowed; }
/* Standing advice: what to do next, including the spam folder, which is where
   most activation mail actually goes. */
/* The activation button group. One primary action on its own row, then the two
   secondary actions split the width evenly beneath it, so the row always fills
   the card instead of leaving a ragged gap on one side. */
/* Every button on the activation screen: dark at rest, light green when the
   pointer is on it. The resting state is deliberately dark - a bright block on
   an already dark card read as a white highlight and shouted over the thing it
   was asking for. The hover is the reward, so it is allowed to be light. */
.activation-card .button { border-radius: 14px; font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.activation-card .button:hover:not(:disabled) { transform: translateY(-1px); }
/* Primary: the action that gets you in. */
.activation-check { border: 1px solid #4fa87c; background: #2a6b4d; color: #d6f6e5; }
.activation-check:hover:not(:disabled) { border-color: var(--lime); background: var(--lime); color: var(--ink); }
/* Secondary resend: same family, quieter at rest. */
.activation-resend { border: 1px solid #2c6b4f; background: #1e4636; color: var(--mint); }
.activation-resend:hover:not(:disabled) { border-color: var(--lime); background: var(--lime); color: var(--ink); }
/* Sign out stays dark red at rest, and goes warm coral on hover - never green,
   because it is the one control that leaves rather than advances. */
.activation-signout { border: 1px solid rgba(255, 143, 112, .3); background: #3a1a14; color: #ffb59f; }
.activation-signout:hover:not(:disabled) { border-color: var(--coral); background: #5a2a20; color: var(--coral); }
.activation-actions-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.activation-actions-secondary .button { min-width: 0; padding-right: 12px; padding-left: 12px; font-size: .72rem; white-space: nowrap; }
/* After a failed attempt the resend drops to a pale outline. A saturated green
   button next to a red error message reads as "press this", and pressing it
   again while throttled only makes the limit worse - so the hover goes quiet
   too, matching the state. */
.activation-resend.is-problem { border-color: var(--line); background: rgba(255, 255, 255, .05); color: var(--mist); }
.activation-resend.is-problem:hover:not(:disabled) { border-color: rgba(244, 246, 239, .34); background: rgba(255, 255, 255, .1); color: var(--paper); }
/* While the resend is cooling down the button becomes the timer. Monospace so
   the digits do not shuffle sideways as they change, which on a narrow phone
   can push the label outside its half of the row. */
.activation-resend.is-counting { border-color: var(--line); background: rgba(255, 255, 255, .05); color: var(--mist); font-variant-numeric: tabular-nums; }
.activation-note { margin: 14px 0 0; padding: 13px 15px; border: 1px solid rgba(217, 245, 107, .22); border-radius: 15px; background: rgba(217, 245, 107, .06); color: var(--mist); font-size: .68rem; line-height: 1.6; }
.activation-note[hidden] { display: none; }
.form-hint-row { display: flex; justify-content: flex-end; margin: -4px 0 0; }
.form-hint-row .text-button { font-size: .66rem; }
/* The reset panel appears only after "Forgot your password?" is used, and it
   stays up because the three reasons a reset mail goes missing are the same
   three as the activation mail, and all three are the reader's to fix. */
.reset-panel { margin: 12px 0 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .03); }
.reset-panel[hidden] { display: none; }
.reset-status { margin: 0; color: var(--mist); font-size: .68rem; font-weight: 700; line-height: 1.6; }
.reset-status.is-working { color: var(--mist); }
.reset-status.is-sent { color: var(--lime); }
.reset-status.is-problem { color: var(--coral); }
.reset-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.reset-list li { position: relative; margin: 0; padding-left: 21px; color: var(--mist); font-size: .68rem; line-height: 1.6; }
.reset-list li::before { position: absolute; top: 1px; left: 0; color: var(--lime); content: "\2713"; font-size: .74rem; font-weight: 800; }
.reset-list strong { color: var(--paper); font-weight: 700; }
.auth-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.auth-mode-tab { padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--mist); font-size: .68rem; font-weight: 700; }
.auth-mode-tab.active { background: var(--lime); color: var(--ink); }
/* Visually hidden but available to a screen reader, for icon-only labels. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.card-action:hover { color: var(--paper); }


.empty-state { display: grid; gap: 8px; padding: 64px 20px; color: var(--mist); text-align: center; }.empty-state strong { color: var(--paper); font-family: var(--display); font-size: 1.5rem; }.empty-state span { font-size: .8rem; }.centered-intro { margin: 0 auto; text-align: center; }.centered-intro > p:last-child { max-width: 510px; margin-right: auto; margin-left: auto; }.step { padding-top: 18px; border-top: 1px solid rgba(244, 246, 239, .17); }.step > span { color: var(--lime); font-family: var(--display); font-size: .8rem; font-weight: 700; }.step h3 { margin: 35px 0 0; font-size: 1.35rem; letter-spacing: -.05em; }.step p { max-width: 280px; margin: 11px 0 0; color: var(--mist); font-size: .78rem; line-height: 1.7; }.cta-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 35px; overflow: hidden; padding: 55px 65px; border: 1px solid rgba(217, 245, 107, .22); border-radius: 30px; background: var(--lime); color: var(--ink); }.cta-card .eyebrow { color: rgba(11, 17, 16, .52); }.cta-card h2 { max-width: 620px; margin-top: 17px; }.cta-card p:not(.eyebrow) { max-width: 500px; margin: 17px 0 0; color: rgba(11, 17, 16, .65); line-height: 1.65; }.cta-card .button { position: relative; z-index: 2; flex: 0 0 auto; }.cta-ring { position: absolute; border: 38px solid rgba(11, 17, 16, .09); border-radius: 50%; pointer-events: none; }.ring-one { right: -100px; bottom: -170px; width: 330px; height: 330px; }.ring-two { top: -100px; right: 230px; width: 190px; height: 190px; border-width: 25px; }.site-footer { border-top: 1px solid var(--line); background: var(--ink); }.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding: 56px 0; }.footer-top p { max-width: 310px; margin: 20px 0 0; color: var(--mist); font-size: .8rem; line-height: 1.7; }.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 45px; color: var(--mist); font-size: .8rem; }.footer-links a:hover { color: var(--paper); }.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: rgba(166, 177, 170, .7); font-size: .68rem; }.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; max-width: min(420px, calc(100% - 40px)); align-items: flex-start; gap: 11px; padding: 15px 16px; border: 1px solid rgba(217, 245, 107, .25); border-radius: 17px; background: #18231f; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); color: var(--paper); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .25s ease, transform .25s ease; }.toast.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }.toast > span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .75rem; font-weight: 800; }.toast p { margin: 2px 0 0; font-size: .76rem; line-height: 1.5; }.toast button { margin-left: auto; border: 0; background: transparent; color: var(--mist); font-size: 1.1rem; line-height: 1; }.toast button:hover { color: var(--paper); }.fade-up { animation: fadeUp .7s ease-out both; }@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }@media (max-width: 900px) { .cta-card { align-items: flex-start; flex-direction: column; } }@media (max-width: 680px) { .container { width: min(100% - 32px, 560px); } .nav-wrap { height: 66px; } .menu-toggle { display: block; } .main-nav { position: absolute; top: 66px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(11, 17, 16, .98); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); } .main-nav.open { display: flex; } .nav-group .nav-link { padding: 12px; border-radius: 11px; } .nav-group .nav-link:hover { background: rgba(255, 255, 255, .06); color: var(--paper); } .nav-group .nav-admin-arrow { margin-top: 6px; } h1 { font-size: clamp(3rem, 16vw, 4.6rem); } .hero-description { font-size: .95rem; } .hero-actions { align-items: stretch; flex-direction: column; } .hero-actions .button { width: 100%; } .trust-row { flex-direction: column; gap: 9px; } .search-box { width: 100%; } .step h3 { margin-top: 24px; } .cta-card { padding: 35px 25px; border-radius: 24px; } .cta-card h2 { font-size: 2.65rem; } .footer-top { align-items: flex-start; flex-direction: column; padding: 42px 0; } .footer-links { grid-template-columns: repeat(2, auto); gap: 13px 35px; } .footer-bottom { flex-direction: column; gap: 8px; } }@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee-track, .fade-up { animation: none; } }
[hidden] { display: none !important; }.footer-links button { border: 0; background: transparent; color: var(--mist); font-size: .86rem; text-align: left; transition: color .2s ease; }.footer-links button:hover { color: var(--paper); }.workspace { min-height: calc(100vh - 72px); padding: 54px 0 90px; background: #101815; }.workspace-shell { max-width: 1180px; }.workspace-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }.workspace-top h1 { margin: 14px 0 0; font-size: clamp(2.5rem, 5vw, 4.5rem); }.workspace-top p:last-child { max-width: 580px; margin: 14px 0 0; color: var(--mist); font-size: .85rem; line-height: 1.7; }.workspace-actions { display: flex; align-items: center; gap: 12px; }.role-badge { display: inline-flex; padding: 8px 10px; border: 1px solid rgba(217, 245, 107, .25); border-radius: 999px; background: rgba(217, 245, 107, .1); color: var(--lime); font-size: .6rem; font-weight: 800; letter-spacing: .14em; }.role-dashboard { padding-top: 34px; }/* The STUDENTS ACTIVE card carries a 150px roster, so it is far taller than the
   three plain counters beside it. Stretching the row and letting each counter
   centre its own number fills the height instead of leaving a gap underneath. */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 11px; }
.metric-grid > .metric-card { display: flex; flex-direction: column; }
.metric-grid > .metric-card { justify-content: center; }
.metric-grid > .metric-card strong { margin-top: 10px; }/* The library gains a fourth card only when a premium item exists, so this is
   auto-fit rather than a fixed count: three cards stay three across, and the
   premium one appears without a column collapse or a stretched empty cell. */
#space-library .metric-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255, 255, 255, .045); }/* The list still scrolls, it just does not draw a scrollbar. The container keeps
   tabindex="0", so it is still reachable and scrollable by keyboard. */
/* Height matches the QR preview in the donation settings form
   (.pay-qr-preview, 172px), so the two panels in the admin dashboard read as the
   same size. It keeps the card's full width rather than becoming a 172px square,
   because a name plus "3 downloads - 2h ago" does not survive 172px of width
   without truncating into nonsense. */
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255, 255, 255, .045); }.metric-card small { color: var(--mist); font-size: .58rem; font-weight: 800; letter-spacing: .16em; }.metric-card strong { display: block; margin-top: 16px; color: var(--paper); font-family: var(--display); font-size: 2.45rem; letter-spacing: -.08em; }.metric-card span { display: block; margin-top: 3px; color: var(--mist); font-size: .68rem; }#modal-product-price { color: var(--lime) !important; font-family: var(--display); font-size: 1.45rem !important; letter-spacing: -.06em; }.library-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-top: 62px; }.library-toolbar h2, .admin-panel h2 { margin: 12px 0 0; color: var(--paper); font-size: 2.1rem; letter-spacing: -.06em; }/* The shelf scrolls inside its own box instead of pushing the search box, the
   category filters and the rest of the page down. A fixed shelf means the search
   field stays put while results change, which is the whole point of filtering.
   The bar is drawn rather than hidden: it is the only cue that more products
   exist below the fold, and it matches the lime scrollbar used on the admin
   activity list. Generous height, so it only engages on a long catalog. */
.user-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; max-height: 620px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(217, 245, 107, .45) transparent; }
.user-product-grid::-webkit-scrollbar { width: 8px; }
.user-product-grid::-webkit-scrollbar-track { border-radius: 999px; background: rgba(255, 255, 255, .05); }
.user-product-grid::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(217, 245, 107, .45); background-clip: content-box; }
.user-product-grid:hover::-webkit-scrollbar-thumb { background: rgba(217, 245, 107, .7); background-clip: content-box; }.user-product-card { display: flex; min-height: 265px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: rgba(255, 255, 255, .045); transition: transform .2s ease, border-color .2s ease; }.user-product-card:hover { transform: translateY(-4px); border-color: rgba(217, 245, 107, .28); }.user-product-card .card-top { align-items: flex-start; }.user-product-card h3 { margin: 18px 0 0; color: var(--paper); font-size: 1.35rem; letter-spacing: -.05em; }.user-product-card p { min-height: 47px; margin: 8px 0 0; color: var(--mist); font-size: .75rem; line-height: 1.6; }.user-product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }.user-product-bottom small { color: var(--mist); font-size: .61rem; line-height: 1.6; }
/* ============================================================================
   The admin section bar.
   A second navigation row, one level below the Admin tab. It is visually
   distinct from .space-tabs on purpose: that one moves between worlds (Library,
   Admin) and this one moves between jobs inside the admin's world, and an admin
   who cannot tell them apart will click the wrong one.
   ============================================================================ */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 7px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 255, 255, .035); }
.admin-nav-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--mist); font-size: .74rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.admin-nav-tab:hover { background: rgba(255, 255, 255, .05); color: var(--paper); }
.admin-nav-tab.active { border-color: rgba(217, 245, 107, .3); background: rgba(217, 245, 107, .11); color: var(--paper); }
.admin-nav-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.admin-nav-name { white-space: nowrap; }
/* The count. Muted when it is just a total, mint when it is money or people
   waiting on a decision - the difference between "26 products" and "2 receipts
   to check" is the whole reason this bar is worth having. */
.admin-nav-count { min-width: 21px; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--mist); font-family: var(--display); font-size: .62rem; font-weight: 800; line-height: 1.5; text-align: center; }
.admin-nav-count.is-alert { background: rgba(184, 232, 208, .18); color: var(--mint); }
.admin-nav-tab.active .admin-nav-count { background: rgba(217, 245, 107, .2); color: var(--lime); }
.admin-nav-tab.active .admin-nav-count.is-alert { background: var(--mint); color: var(--ink); }.admin-panel { padding: 25px; border: 1px solid var(--line); border-radius: 23px; background: rgba(255, 255, 255, .045); }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.small-muted { color: var(--mist); font-size: .65rem; }.text-button { border: 0; background: transparent; color: var(--lime); font-size: .7rem; font-weight: 700; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }.form-grid label, .login-card form label { display: grid; gap: 7px; color: var(--mist); font-size: .66rem; font-weight: 700; }.form-grid input, .form-grid textarea, .form-grid select, .login-card input { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(255, 255, 255, .06); color: var(--paper); font-size: .75rem; }.form-grid input, .form-grid select, .login-card input { padding: 11px 12px; }.form-grid textarea { resize: vertical; padding: 11px 12px; }.form-grid input::placeholder, .form-grid textarea::placeholder, .login-card input::placeholder { color: rgba(166, 177, 170, .6); }.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus, .login-card input:focus { border-color: rgba(217, 245, 107, .55); box-shadow: 0 0 0 3px rgba(217, 245, 107, .1); }.form-grid select option { background: #18231f; }.full-field { grid-column: 1 / -1; }.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin-top: 20px; }.form-actions .button { min-height: 40px; padding: 10px 15px; font-size: .7rem; }.admin-product-list { display: grid; gap: 8px; max-height: min(520px, 52vh); margin-top: 22px; }
/* Two rules used to fight over this list: one gave it a capped height and hid
   the scrollbar entirely, the other reset the gap. One rule now owns it, and the
   scrollbar is visible - an admin working a moderation queue needs to know the
   list continues. */
.feedback-review-list { display: grid; gap: 11px; max-height: min(460px, 46vh); margin-top: 17px; }.admin-product-row { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; }.admin-product-row .card-mark { width: 35px; height: 35px; border-radius: 11px; font-size: .78rem; }.admin-product-row > div { min-width: 0; flex: 1; }.admin-product-row strong, .admin-product-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-product-row strong { color: var(--paper); font-size: .72rem; }.admin-product-row small { margin-top: 3px; color: var(--mist); font-size: .59rem; }.row-actions { display: flex; gap: 4px; }.row-action { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--mist); font-size: .72rem; }.row-action:hover { border-color: rgba(217, 245, 107, .35); color: var(--lime); }.row-action.delete:hover { border-color: rgba(255, 143, 112, .35); color: var(--coral); }.activity-panel { margin-top: 0; }.activity-list { display: grid; gap: 0; }.activity-row { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 15px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); color: var(--mist); font-size: .68rem; }.activity-row:last-child { border-bottom: 1px solid var(--line); }.activity-row strong { color: var(--paper); font-size: .72rem; }.activity-row time { color: var(--mist); font-size: .6rem; text-align: right; }.empty-list { padding: 30px 0; color: var(--mist); font-size: .75rem; text-align: center; }.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; overflow-y: auto; padding: 22px; place-items: center; background: rgba(3, 8, 7, .78); backdrop-filter: blur(10px); }body.modal-open { overflow: hidden; }.modal-card { position: relative; width: min(100%, 500px); max-height: calc(100vh - 44px); overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: #151f1b; box-shadow: 0 25px 80px rgba(0, 0, 0, .42); }.modal-close { position: absolute; top: 13px; right: 15px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--mist); font-size: 1.1rem; }.modal-close:hover { color: var(--paper); }.modal-card h2 { margin: 15px 0 0; color: var(--paper); font-size: 2.2rem; letter-spacing: -.06em; }.modal-intro { margin: 11px 0 0; color: var(--mist); font-size: .78rem; line-height: 1.65; }.settings-card { width: min(100%, 460px); text-align: left; background: #151f1b; }
.settings-hero { display: flex; align-items: center; gap: 15px; margin: -4px 0 0; }
.settings-hero > div { min-width: 0; }
.settings-hero .eyebrow { color: var(--lime); }
.settings-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(217, 245, 107, .26); border-radius: 14px; background: rgba(217, 245, 107, .08); color: var(--lime); font-size: 1.15rem; }
.settings-card .modal-intro { margin-top: 16px; line-height: 1.65; }
.settings-card .button { border-radius: 14px; font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.settings-card .button:hover:not(:disabled) { transform: translateY(-1px); }
/* Account dropdown. One button in the nav opens a two-item menu, so the header
   stays short and the two things a signed-in member can do live together. The
   panel is a real menu: role=menu/menuitem in the markup, arrow keys handled in
   script, Escape closes it, and a click outside closes it. */
.account-menu { position: relative; }
.account-trigger { display: inline-flex; align-items: center; gap: 9px; }
.account-trigger-icon { font-size: .9rem; line-height: 1; }
.account-caret { color: var(--mist); font-size: .6rem; transition: transform .2s ease; }
.account-trigger[aria-expanded="true"] .account-caret { transform: rotate(180deg); }
.account-menu-panel { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; display: grid; gap: 3px; min-width: 216px; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: #17211d; box-shadow: 0 20px 50px rgba(0, 0, 0, .42); }
.account-menu-panel[hidden] { display: none; }
.account-item { display: grid; gap: 3px; padding: 11px 13px; border: 0; border-radius: 12px; background: transparent; color: var(--paper); font-size: .78rem; font-weight: 700; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease; }
.account-item span { color: var(--mist); font-size: .64rem; font-weight: 400; }
.account-item:hover, .account-item:focus-visible { background: rgba(255, 255, 255, .07); }
/* Sign out is the only dark red thing in the menu, and it keeps the same family
   as the activation dialog's sign out so leaving looks the same everywhere. */
.account-item.is-danger { color: #ffb59f; }
.account-item.is-danger span { color: rgba(255, 181, 159, .72); }
.account-item.is-danger:hover, .account-item.is-danger:focus-visible { background: #3a1a14; color: var(--coral); }
/* Cancel is deliberately the quietest control in the dialog: no fill, no
   border, so the eye lands on Update password first and on Log out second. */
.settings-cancel { display: block; width: 100%; margin-top: 14px; padding: 11px; border: 0; background: transparent; color: var(--mist); font-size: .72rem; font-weight: 700; cursor: pointer; transition: color .18s ease; }
.settings-cancel:hover { color: var(--paper); }
.settings-cancel:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }.login-card form { display: grid; gap: 13px; }.login-card form .button { margin-top: 5px; }.password-field { position: relative; display: block; }.password-field input { padding-right: 65px !important; }.password-toggle { position: absolute; top: 50%; right: 9px; padding: 4px 5px; border: 0; border-radius: 7px; background: transparent; color: var(--lime); font-size: .61rem; font-weight: 800; transform: translateY(-50%); }.password-toggle:hover { background: rgba(217, 245, 107, .1); color: var(--paper); }.form-error { min-height: 0; margin: 0; color: var(--coral); font-size: .67rem; }.config-note { margin: 17px 0 0; color: var(--mist); font-size: .61rem; line-height: 1.55; text-align: center; }.config-note code { color: var(--lime); }.product-modal-card { width: min(100%, 570px); }.modal-product-head { display: flex; align-items: center; gap: 13px; }.modal-product-head .card-mark { width: 52px; height: 52px; }.modal-product-head h2 { margin-top: 7px; }.modal-description { margin: 23px 0 0; color: var(--mist); font-size: .84rem; line-height: 1.75; }.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 23px; }.modal-info-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035); }.modal-info-grid small, .modal-info-grid strong { display: block; }.modal-info-grid small { color: var(--mist); font-size: .55rem; font-weight: 800; letter-spacing: .13em; }.modal-info-grid strong { margin-top: 6px; color: var(--paper); font-size: .75rem; }.full-button { width: 100%; margin-top: 20px; }.secure-note { margin: 15px 0 0; color: var(--mist); font-size: .61rem; line-height: 1.55; text-align: center; }.donation-card { width: min(100%, 610px); }.donation-step { text-align: left; }.pay-amount-note { margin: 12px 0 0; color: var(--lime); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }.pay-actions .button { flex: 1 1 190px; }.pay-layout { display: grid; grid-template-columns: 190px 1fr; gap: 25px; align-items: center; margin-top: 25px; }.qr-frame { position: relative; display: grid; width: 190px; height: 190px; place-items: center; padding: 14px; border: 1px solid rgba(217, 245, 107, .22); border-radius: 20px; background: linear-gradient(150deg, rgba(217, 245, 107, .1), rgba(255, 255, 255, .03)); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.qr-plate { display: grid; width: 100%; height: 100%; place-items: center; padding: 8px; border-radius: 12px; background: #f4f6ef; }
.qr-scan-label { position: absolute; top: -9px; left: 50%; padding: 3px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .52rem; font-weight: 800; letter-spacing: .16em; transform: translateX(-50%); }.qr-frame img, .qr-frame canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
/* The student only has one job on this screen: scan the code. So the QR leads and
   the words beside it are short instructions, not payment details to read. The QR
   is bigger than the base 190px because it is the only thing on the screen worth
   looking at. */
.pay-layout-qr { grid-template-columns: 232px minmax(0, 1fr); gap: 30px; align-items: center; }
.pay-layout-qr .qr-frame { width: 232px; height: 232px; }.pay-details { min-width: 0; }.pay-badge { display: inline-flex; padding: 6px 8px; border-radius: 999px; background: rgba(217, 245, 107, .13); color: var(--lime); font-size: .56rem; font-weight: 800; letter-spacing: .14em; }.pay-scan-title { margin: 14px 0 0; color: var(--paper); font-family: var(--display); font-size: 1.28rem; font-weight: 800; letter-spacing: -.01em; }.pay-scan-copy { margin: 7px 0 0; color: var(--mist); font-size: .72rem; line-height: 1.65; }.pay-scan-copy b { color: var(--paper); font-weight: 700; }.pay-scan-steps { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }.pay-scan-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--mist); font-size: .7rem; line-height: 1.5; }.pay-scan-steps b { color: var(--paper); font-weight: 700; }.premium-mail-hint { overflow-wrap: anywhere; color: var(--lime); font-weight: 700; }.pay-step-num { display: grid; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; place-items: center; border-radius: 50%; background: rgba(217, 245, 107, .13); color: var(--lime); font-size: .6rem; font-weight: 800; }.donation-card .secure-note { margin-top: 25px; }.download-now { position: relative; display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; padding: 20px 26px; overflow: hidden; border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--lime), var(--mint)); color: var(--ink); font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; cursor: pointer; box-shadow: 0 12px 30px rgba(184, 232, 99, .22); animation: downloadPulse 2.4s ease-in-out infinite; transition: transform .2s ease, box-shadow .2s ease; }
.download-now:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(184, 232, 99, .34); }
.download-now:active { transform: translateY(0) scale(.985); }
.download-now:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.download-now-icon { position: relative; z-index: 1; font-size: 1.3rem; line-height: 1; }
.download-now-label { position: relative; z-index: 1; }
/* The sweep is its own layer, so translating it can never shift the label. */
.download-now::after { position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); content: ""; transform: skewX(-18deg); animation: downloadShine 3.2s ease-in-out infinite; }
.download-now.is-unavailable { background: #1d2723; color: var(--mist); box-shadow: none; animation: none; }
.download-now.is-unavailable::after { display: none; }
.download-now:disabled { cursor: not-allowed; }
@keyframes downloadPulse { 0%, 100% { box-shadow: 0 12px 30px rgba(184, 232, 99, .2); } 50% { box-shadow: 0 14px 44px rgba(184, 232, 99, .5); } }
@keyframes downloadShine { 0%, 62% { left: -60%; } 92%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .download-now, .download-now::after { animation: none; } .download-now:hover { transform: none; } }.pay-qr-preview { width: 172px; height: 172px; padding: 10px; border: 1px solid rgba(217, 245, 107, .22); border-radius: 16px; background: #f4f6ef; object-fit: contain; }
/* Admin: the QR on the left is a preview of what the student scans, so it gets a
   quiet frame and a caption rather than the student's lime "SCAN" treatment. */
.pay-layout-admin { grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.pay-qr-box { display: grid; justify-items: center; gap: 8px; }
.pay-qr-caption { color: var(--mist); font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#donation-form .form-grid { margin-top: 0; }.form-actions .small-muted code { color: var(--lime); }















/* The student's feedback panel. One card, generous padding, and the rating as the
   single visual anchor, so it reads as one deliberate block rather than a form
   that happens to be sitting on the page. */
.feedback-panel { position: relative; overflow: hidden; margin-top: 34px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(160deg, rgba(217, 245, 107, .06), rgba(255, 255, 255, .028) 46%); }
.feedback-panel::before { position: absolute; top: -70px; right: -70px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 245, 107, .11), transparent 70%); content: ""; pointer-events: none; }
.feedback-panel > * { position: relative; }
.feedback-panel .panel-heading h2 { margin-top: 8px; }
.feedback-fields { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-top: 22px; }
.feedback-fields > label, .feedback-panel form > label { display: grid; gap: 8px; color: var(--mist); font-size: .64rem; font-weight: 700; letter-spacing: .04em; }
.feedback-panel input, .feedback-panel select, .feedback-panel textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none; background: rgba(255, 255, 255, .05); color: var(--paper); font-size: .78rem; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.feedback-panel select, .feedback-panel input { padding: 12px 14px; }
.feedback-panel textarea { resize: vertical; min-height: 96px; padding: 13px 14px; line-height: 1.6; }
.feedback-panel select:focus, .feedback-panel input:focus, .feedback-panel textarea:focus { border-color: rgba(217, 245, 107, .6); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(217, 245, 107, .1); }
.feedback-panel select option { background: #18231f; }
/* The rating sits on its own plinth so the eye lands there first. */
.star-field { min-width: 216px; margin: 0; padding: 13px 16px 11px; border: 1px solid var(--line); border-radius: 15px; background: rgba(0, 0, 0, .2); }
.star-field legend { padding: 0 6px; color: var(--mist); font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.star-picker { margin-top: 4px; }
.star-labels { display: flex; gap: 6px; }.feedback-panel h2 { margin-top: 9px; }.feedback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }.feedback-panel label, .feedback-panel textarea, .feedback-panel select { display: block; }.feedback-panel textarea { margin-top: 7px; }.feedback-panel input::placeholder, .feedback-panel textarea::placeholder, .feedback-panel select::placeholder { color: rgba(166, 177, 170, .6); }.star-field legend { padding: 0; color: var(--mist); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }.star-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.star-labels label { color: #2f3d37; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: color .15s ease, transform .15s ease; }.star-labels label:hover { color: #46574f; transform: scale(1.12); }.star-picker[data-value="1"] label:nth-child(-n+1),
.star-picker[data-value="2"] label:nth-child(-n+2),
.star-picker[data-value="3"] label:nth-child(-n+3),
.star-picker[data-value="4"] label:nth-child(-n+4),
.star-picker[data-value="5"] label:nth-child(-n+5) { color: var(--mint); }.star-picker[data-value="1"] label:nth-child(-n+1):hover,
.star-picker[data-value="2"] label:nth-child(-n+2):hover,
.star-picker[data-value="3"] label:nth-child(-n+3):hover,
.star-picker[data-value="4"] label:nth-child(-n+4):hover,
.star-picker[data-value="5"] label:nth-child(-n+5):hover { color: #d6f6e5; }.star-picker[data-value="0"] .star-labels label { color: #2f3d37; }.star-caption { margin: 8px 0 0; color: var(--mist); font-size: .66rem; }.feedback-panel .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }.feedback-done { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 18px; border: 1px solid rgba(217, 245, 107, .22); border-radius: 18px; background: rgba(217, 245, 107, .07); }.feedback-done strong { display: block; color: var(--paper); font-size: .82rem; }.feedback-done small { display: block; margin-top: 4px; color: var(--mist); font-size: .68rem; }.feedback-save-note.is-device { color: var(--yellow); }
.feedback-filter-row { margin-top: 15px; }.moderation-panel { margin-top: 0; }.moderation-note { margin: 14px 0 0; }.feedback-review-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .03); }.feedback-review-row.is-verified { border-color: rgba(184, 232, 208, .28); background: rgba(184, 232, 208, .06); }.feedback-review-row .review-avatar { width: 38px; height: 38px; }.feedback-review-main { min-width: 0; }.feedback-review-main strong { color: var(--paper); font-size: .8rem; }.feedback-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 5px; color: var(--mist); font-size: .64rem; }.feedback-review-meta .review-stars { font-size: .68rem; }.feedback-status { padding: 3px 8px; border-radius: 999px; font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.feedback-status.pending { background: rgba(217, 245, 107, .13); color: var(--lime); }.feedback-status.verified { background: rgba(184, 232, 208, .14); color: var(--mint); }.feedback-review-row blockquote { margin: 11px 0 0; color: var(--paper); font-size: .78rem; line-height: 1.65; }.feedback-review-actions { display: flex; gap: 7px; align-items: center; }.feedback-review-actions .row-action { width: 32px; height: 32px; }.feedback-review-actions .verify-action { width: auto; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(217, 245, 107, .3); background: rgba(217, 245, 107, .1); color: var(--lime); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }.feedback-review-actions .verify-action:hover { background: rgba(217, 245, 107, .18); }
.star-dim { color: rgba(244, 246, 239, .2); }.review-card blockquote { overflow-wrap: anywhere; }.review-verified-tag { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(184, 232, 208, .14); color: var(--mint); font-size: .5rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }.review-card blockquote + footer { margin-top: 11px; color: var(--mist); font-size: .62rem; }
.footer-links button { padding: 0; }@media (max-width: 900px) {   .metric-grid, .space-admin .metric-grid { grid-template-columns: repeat(2, 1fr); } .user-product-grid { grid-template-columns: repeat(2, 1fr); }  }@media (max-width: 680px) { .workspace { padding-top: 35px; } .workspace-top { align-items: flex-start; flex-direction: column; } .workspace-actions { width: 100%; justify-content: space-between; } .workspace-top h1 { font-size: 2.7rem; }  .metric-grid, .user-product-grid, .feedback-fields { grid-template-columns: 1fr; } .feedback-panel { padding: 19px; } .feedback-review-row { grid-template-columns: auto 1fr; } .feedback-review-actions { grid-column: 1 / -1; } .library-toolbar { align-items: stretch; flex-direction: column; margin-top: 43px; } .library-toolbar .search-box { width: 100%; } .admin-panel { padding: 18px; } .form-grid { grid-template-columns: 1fr; } .full-field { grid-column: auto; } .activity-row { grid-template-columns: 1fr auto; gap: 8px; } .activity-row > span:nth-child(2) { grid-column: 1; grid-row: 2; } .activity-row time { grid-column: 2; grid-row: 1 / span 2; } .modal-card { padding: 24px 20px; } .pay-layout { grid-template-columns: 1fr; justify-items: center; } .pay-layout-qr .qr-frame { width: min(232px, 70vw); height: min(232px, 70vw); } .pay-details { width: 100%; } .pay-badge { justify-content: center; } .pay-scan-title { text-align: center; } .pay-scan-copy { text-align: center; } .pay-scan-steps li { align-items: center; } .pay-qr-box { justify-content: center; } .pay-layout-admin .form-grid { width: 100%; } .premium-monitor-grid { grid-template-columns: 1fr; } .premium-search { flex: 1 1 auto; } .admin-section { grid-template-columns: 1fr; } .admin-nav { gap: 6px; padding: 6px; } .admin-nav-tab { flex: 1 1 auto; justify-content: center; padding: 11px 12px; } }.landing-hero { overflow: hidden; padding: 86px 0 108px; }.landing-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 76px; }.landing-copy { max-width: 575px; }.landing-copy .hero-description { max-width: 490px; }.student-preview { position: relative; width: min(100%, 570px); margin-left: auto; }.preview-window { overflow: hidden; padding: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 30px; background: #151e1a; box-shadow: 0 32px 90px rgba(0, 0, 0, .34); }
/* The app-icon collage that replaced the "Your learning shelf" header. It is a
   dark image on a dark card, so it is given a gradient that fades into the
   window colour at the bottom: without that seam the photo reads as a rectangle
   pasted onto the page rather than part of it. The black band along the top of
   the crop is doing the same job at the other edge. */
.preview-banner { position: relative; height: 152px; margin: 0; overflow: hidden; background: #0d1411; }
.preview-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.preview-banner::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 20, 17, .55) 0%, rgba(13, 20, 17, 0) 26%, rgba(21, 30, 26, 0) 42%, #151e1a 100%); content: ""; pointer-events: none; }
.preview-body { padding: 20px; }.preview-list small, .preview-note small { display: block; color: var(--mist); font-size: .59rem; letter-spacing: .1em; text-transform: uppercase; }.preview-search { display: flex; align-items: center; gap: 9px; margin-top: 19px; padding: 12px 13px; border: 1px solid var(--soft-line); border-radius: 12px; background: rgba(255, 255, 255, .8); color: #778078; font-size: .73rem; }.preview-search > span { color: var(--ink); font-size: 1.2rem; line-height: 1; }.preview-tabs { display: flex; gap: 7px; margin: 17px 0 12px; }.preview-tabs b, .preview-tabs span { padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--mist); font-size: .6rem; font-weight: 700; }.preview-tabs b { background: var(--ink); color: var(--paper); }.preview-list { display: grid; gap: 8px; }.preview-list > div { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(11, 17, 16, .07); border-radius: 15px; background: rgba(255, 255, 255, .76); color: var(--ink); }.preview-app { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--ink); font-family: var(--display); font-size: .9rem; font-weight: 800; }.preview-app.app-lime { background: var(--lime); }.preview-app.app-mint { background: var(--mint); }.preview-app.app-coral { background: var(--coral); }.preview-app.app-violet { background: var(--violet); }.preview-list p { min-width: 0; flex: 1; margin: 0; }.preview-list strong { display: block; font-size: .72rem; }.preview-list small { margin-top: 3px; color: #778078; font-size: .57rem; letter-spacing: 0; text-transform: none; }.preview-list > div > b { color: #667168; font-size: .56rem; letter-spacing: .08em; }.preview-note { position: absolute; z-index: 2; border: 1px solid rgba(255, 255, 255, .14); border-radius: 17px; background: rgba(24, 35, 31, .96); box-shadow: 0 17px 40px rgba(0, 0, 0, .3); }.preview-note:not(.preview-note-bottom) { top: -30px; right: -24px; padding: 14px 16px; animation: float-slow 6s ease-in-out infinite; }.preview-note strong { display: block; margin-top: 5px; color: var(--paper); font-family: var(--display); font-size: 1.15rem; letter-spacing: -.05em; }.preview-note span { display: block; margin-top: 3px; color: var(--mist); font-size: .61rem; }.preview-note-bottom { bottom: -24px; left: -22px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; animation: float-slow 6s ease-in-out 1.2s infinite; }.preview-note-bottom p { margin: 0; }.preview-note-bottom strong, .preview-note-bottom small { display: block; }.preview-note-bottom strong { color: var(--paper); font-size: .73rem; }.preview-note-bottom small { margin-top: 3px; color: var(--mist); font-size: .58rem; letter-spacing: 0; text-transform: none; }.check-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .8rem; font-weight: 800; }.mission-section { padding: 98px 0 106px; }.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 65px; }.mission-grid article { padding-top: 17px; border-top: 1px solid rgba(244, 246, 239, .17); }.mission-grid article > span { color: var(--lime); font-family: var(--display); font-size: .8rem; font-weight: 700; }.mission-grid h3 { margin: 34px 0 0; font-size: 1.35rem; letter-spacing: -.05em; }.mission-grid p { margin: 11px 0 0; color: var(--mist); font-size: .78rem; line-height: 1.7; }.landing-how { padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 65px; }.landing-steps > div { padding-top: 17px; border-top: 1px solid rgba(244, 246, 239, .17); }.landing-steps b { color: var(--lime); font-family: var(--display); font-size: .8rem; }.landing-steps h3 { margin: 34px 0 0; font-size: 1.35rem; letter-spacing: -.05em; }.landing-steps p { margin: 11px 0 0; color: var(--mist); font-size: .78rem; line-height: 1.7; }.feedback-section { padding: 100px 0; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .025); }.feedback-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }.feedback-top h2 { margin: 15px 0 0; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.065em; line-height: .98; }.feedback-top p:last-child { max-width: 520px; margin: 17px 0 0; color: var(--mist); font-size: .88rem; line-height: 1.7; }.online-pill { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; min-width: 218px; padding: 15px 18px; border: 1px solid rgba(61, 220, 132, .26); border-radius: 20px; background: linear-gradient(158deg, rgba(61, 220, 132, .13), rgba(61, 220, 132, .035) 64%); box-shadow: inset 0 1px 0 rgba(61, 220, 132, .14); }.online-pill strong { color: var(--green); font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.06em; line-height: .88; text-shadow: 0 0 14px rgba(61, 220, 132, .3); }.online-pill > span:not(.online-dot) { color: var(--paper); font-size: .7rem; line-height: 1.35; }.online-pill small { margin: 0; color: var(--mist); font-size: .575rem; line-height: 1.5; }.online-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(61, 220, 132, .14); animation: onlinePulse 1.7s ease-in-out infinite; }.online-body { display: grid; gap: 6px; min-width: 0; }.online-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }.online-label { color: var(--paper); font-size: .7rem; line-height: 1.35; }.online-pill[data-count-state="empty"] .online-count { color: var(--yellow); text-shadow: 0 0 14px rgba(255, 209, 102, .22); }.online-pill[data-count-state="loading"] .online-count { color: var(--mist); text-shadow: none; }.review-slider { min-height: 245px; margin-top: 48px; overflow: hidden; }.review-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.review-card { display: flex; min-height: 220px; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .045); animation: reviewIn .45s ease-out both; }.review-card:nth-child(2) { animation-delay: .07s; }.review-card:nth-child(3) { animation-delay: .14s; }.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.review-person { display: flex; align-items: center; gap: 10px; min-width: 0; }.review-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 14px; color: var(--ink); font-family: var(--display); font-size: .85rem; font-weight: 800; }.review-person strong, .review-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.review-person strong { color: var(--paper); font-size: .73rem; }.review-person small { margin-top: 3px; color: var(--mist); font-size: .59rem; }.review-stars { color: var(--yellow); font-size: .75rem; letter-spacing: .08em; }.review-card blockquote { margin: 22px 0 0; color: var(--paper); font-family: var(--display); font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.35; }.review-card footer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 18px; color: var(--mist); font-size: .61rem; }.review-card footer::before { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); content: ""; }.review-controls { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 24px; }.review-controls > button { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.15rem; transition: border-color .2s ease, color .2s ease; }.review-controls > button:hover { border-color: var(--lime); color: var(--lime); }.review-dots { display: flex; gap: 6px; }.review-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(244, 246, 239, .25); }.review-dot.active { width: 22px; border-radius: 999px; background: var(--lime); }@keyframes onlinePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }@keyframes reviewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }.landing-cta { padding: 0 0 96px; }@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; gap: 65px; } .landing-copy { max-width: 650px; } .student-preview { margin: 0 auto; } }@media (max-width: 680px) { .landing-hero { padding: 62px 0 80px; } .landing-copy h1 { font-size: clamp(3rem, 16vw, 4.6rem); } .landing-copy .hero-description { font-size: .95rem; } .landing-copy .hero-actions { align-items: stretch; flex-direction: column; } .landing-copy .hero-actions .button { width: 100%; } .landing-copy .trust-row { flex-direction: column; gap: 9px; } .student-preview { width: calc(100% - 12px); } .preview-window { border-radius: 23px; } .preview-body { padding: 13px; } .preview-banner { height: 128px; } .preview-note:not(.preview-note-bottom) { top: -21px; right: -10px; } .preview-note-bottom { bottom: -18px; left: -10px; } .mission-section, .landing-how { padding: 72px 0; } .mission-grid, .landing-steps { grid-template-columns: 1fr; margin-top: 45px; } .landing-cta { padding-bottom: 72px; } }@media (max-width: 900px) { .review-track { grid-template-columns: repeat(2, 1fr); } }@media (max-width: 680px) { .feedback-section { padding: 72px 0; } .feedback-top { align-items: flex-start; flex-direction: column; } .online-pill { width: 100%; } .review-slider { min-height: 235px; margin-top: 32px; } .review-track { grid-template-columns: 1fr; } .review-card { min-height: 205px; } }

.settings-forgot { margin: 0; }
.settings-forgot-note { margin: 6px 0 13px; color: var(--mist); font-size: .68rem; line-height: 1.6; }
.settings-forgot-note b { color: var(--lime); font-weight: 700; overflow-wrap: anywhere; }