/* Cinnabar — shared design tokens and components */
@font-face { font-family: "Mercury Sans"; src: url("../fonts/mercurysans.otf") format("opentype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #060505;
  --bg2: #0e0b0a;
  --panel: rgba(22, 16, 14, .78);
  --panel-solid: #15100e;
  --raise: #1d1613;
  --line: rgba(255, 236, 228, .08);
  --line2: rgba(255, 236, 228, .14);
  --text: #f4ece8;
  --muted: #a09390;
  --faint: #6c615e;
  --red: #e2361f;
  --red-deep: #8e1407;
  --orange: #ff7a1a;
  --amber: #f4a83a;
  --doc: #e2361f;
  --sheet: #ff7a1a;
  --slides: #f4a83a;
  --folder: #b9aaa5;
  --radius: 10px;
  --display: "Mercury Sans", system-ui, sans-serif;
  --sans: "Mercury Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(226, 54, 31, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 236, 228, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 236, 228, .22); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

/* background: the Cinnabar wave photo */
.cb-wave { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000 url("../assets/bg.jpg") center / cover no-repeat; }
.cb-wave::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(0,0,0,.45)); }

/* logo */
.cb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.cb-logo img.word { height: 30px; width: auto; display: block; }
.cb-logo .app { font: 400 14px var(--display); color: var(--muted); letter-spacing: .02em; padding-top: 4px; }
img.mark { width: 100%; height: 100%; object-fit: contain; display: block; }

/* controls */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,236,228,.04); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: rgba(255,236,228,.09); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--red), #f05a1f); border-color: transparent; color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(255,236,228,.07); }
.btn.danger { color: #ff8b78; }
.icon-btn { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 7px; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: rgba(255,236,228,.08); }
.icon-btn.on { background: rgba(226,54,31,.2); color: #ffb3a6; }
.icon-btn svg, .btn svg { width: 17px; height: 17px; }
.field { width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(0,0,0,.35); outline: none; }
.field:focus { border-color: rgba(226,54,31,.7); box-shadow: 0 0 0 3px rgba(226,54,31,.18); }
select.field { -webkit-appearance: none; appearance: none; padding-right: 28px; background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a09390' stroke-width='1.4'/%3E%3C/svg%3E") right 11px center / 10px no-repeat; }
select.field[size] { background-image: none; padding: 4px; }
label.lbl { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; }
.muted { color: var(--muted); }
.sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line2); flex: none; }

/* cards, menus, dialogs */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.menu { position: fixed; z-index: 1000; min-width: 190px; padding: 5px; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: rgba(255,236,228,.08); outline: none; }
.menu button .k { margin-left: auto; color: var(--faint); font-size: 12px; }
.menu button svg { width: 16px; height: 16px; flex: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
.scrim { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.55); display: grid; place-items: center; animation: cbfade .15s; }
.dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.dialog h2 { margin: 0 0 6px; font: 600 17px var(--display); letter-spacing: .01em; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@keyframes cbfade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2000; padding: 10px 16px; border-radius: 9px; background: #241b18; border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: cbfade .15s; }

/* editor chrome shared by Docs / Sheets / Slides */
.cb-top { position: relative; z-index: 5; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; background: rgba(8,6,6,.92); border-bottom: 1px solid var(--line); }
.cb-top .crystal { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.cb-top .crystal:hover { background: rgba(255,236,228,.06); }
.cb-top .crystal img { width: 28px; height: 28px; }
.cb-title { display: flex; flex-direction: column; min-width: 0; }
.cb-title input { width: 340px; max-width: 40vw; height: 26px; padding: 0 6px; margin-left: -6px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 16px; outline: none; }
.cb-title input:hover { border-color: var(--line2); }
.cb-title input:focus { border-color: rgba(226,54,31,.7); background: rgba(0,0,0,.4); }
.cb-title .sub { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.cb-title .sub button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
.cb-title .sub button:hover { color: var(--text); }
.cb-top .grow { flex: 1; }
.avatars { display: flex; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; border: 2px solid #0b0807; margin-left: -6px; flex: none; text-transform: uppercase; }
.toolbar { position: relative; z-index: 4; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-height: 42px; padding: 4px 10px; background: rgba(14,10,9,.95); border-bottom: 1px solid var(--line); }
.toolbar select { -webkit-appearance: none; appearance: none; height: 30px; border: 1px solid transparent; border-radius: 6px; padding: 0 20px 0 8px; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a09390' stroke-width='1.4'/%3E%3C/svg%3E") right 6px center / 9px no-repeat; text-overflow: ellipsis; }
.toolbar select:hover { background: rgba(255,236,228,.07); }
.toolbar select option { background: #1b1412; }
.toolbar .color { position: relative; }
.toolbar .color input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.toolbar .color .bar { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; border-radius: 2px; }

/* file-kind glyphs */
.kind { width: 22px; height: 22px; flex: none; }

/* sign in */
.auth { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.auth .card { position: relative; z-index: 1; width: min(400px, 100%); padding: 30px 28px; }
.auth .cb-logo { margin-bottom: 18px; }
.auth .cb-logo img.word { height: 40px; }
.auth h1 { font: 400 15px var(--display); margin: 0 0 4px; }
.auth .err { color: #ff8b78; font-size: 13px; min-height: 18px; margin-top: 10px; }
.auth .ok { color: #9fd4a8; }
.auth .row { display: flex; gap: 8px; margin-top: 18px; }
.auth .row .btn { flex: 1; height: 38px; }
.auth .links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.auth .links button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.auth .links button:hover { color: var(--text); }
.auth .links a { color: #ff7a52; text-decoration: none; } .auth .links a:hover { text-decoration: underline; }
.auth .err.ok a { color: inherit; font-weight: 600; }
@media print { .cb-wave, .cb-top, .toolbar { display: none !important; } body { background: #fff; } }
.cb-logo .beta { margin-left: 6px; padding: 2px 7px; border-radius: 999px; font: 600 10px/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: #ffb39c; background: rgba(226,54,31,.16); border: 1px solid rgba(255,122,82,.35); align-self: center; }
.dialog { animation: cbPop .18s cubic-bezier(.2,.8,.2,1); } .menu { animation: cbPop .12s ease-out; transform-origin: top left; }
@keyframes cbPop { from { opacity: 0; transform: scale(.96); } }
.toast { animation: cbToastIn .25s cubic-bezier(.2,.8,.2,1); } @keyframes cbToastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) { .dialog, .menu, .toast { animation: none !important; } }
.auth .edu-toggle { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); cursor: pointer; transition: border-color .15s, background .15s; }
.auth .edu-toggle:has(input:checked) { border-color: rgba(255,122,26,.6); background: rgba(226,54,31,.1); }
.auth .edu-toggle input { margin-top: 3px; accent-color: var(--red); }
.auth .edu-toggle span { display: flex; flex-direction: column; gap: 2px; }
.auth .edu-toggle small { color: var(--muted); font-size: 12px; }

/* ── Liquid Glass ────────────────────────────────────────────────────────────
   Glass is only for what floats over content: the sidebar, bars, tabs, dialogs, menus, toasts, buttons.
   Content (posts, tables, documents) stays a plain fill, and glass never sits on glass.
   --mx/--my follow the pointer (lib/cinnabar.js) so the rim light moves. */
:root {
  --glass: rgba(34, 24, 21, .42); --glass-thick: rgba(26, 18, 16, .58); --glass-hi: rgba(255, 244, 238, .22);
  --glass-blur: blur(26px) saturate(185%) brightness(1.05); --glass-blur-thin: blur(14px) saturate(170%);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25);
  --spring: cubic-bezier(.2, .9, .25, 1.15);
}
.hub-side, .hub-bar, .cb-top, .dialog, .menu, .toast, .tabs, .auth .card, .grade-bar, .seg, .test-guard > .post {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 40%), var(--glass) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid transparent !important;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .25) !important;
}
.dialog, .menu, .auth .card, .hub-side { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 45%), var(--glass-thick) !important; }
/* the rim: a 1 px light edge, brightest where the pointer is */
.hub-side::before, .hub-bar::before, .cb-top::before, .dialog::before, .menu::before, .toast::before, .tabs::before, .auth .card::before, .grade-bar::before, .seg::before, .test-guard > .post::before, .btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: radial-gradient(160px 120px at var(--mx, 20%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 70%),
              linear-gradient(135deg, var(--glass-hi), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .02) 60%, rgba(255, 210, 190, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn { position: relative; isolation: isolate; -webkit-backdrop-filter: var(--glass-blur-thin); backdrop-filter: var(--glass-blur-thin);
  background: rgba(255, 240, 232, .07); transition: transform .25s var(--spring), background .2s, box-shadow .2s; }
.btn:hover { background: rgba(255, 240, 232, .13); transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(180deg, rgba(255, 120, 90, .95), rgba(226, 54, 31, .92)); box-shadow: 0 8px 24px rgba(226, 54, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover { box-shadow: 0 12px 30px rgba(226, 54, 31, .5), inset 0 1px 0 rgba(255, 255, 255, .4); }
.dialog { border-radius: 26px !important; animation: glassIn .42s var(--spring) both; }
.menu { border-radius: 18px !important; animation: glassIn .28s var(--spring) both; }
.toast { border-radius: 999px !important; animation: glassIn .38s var(--spring) both; }
@keyframes glassIn { from { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hub-side { margin: 10px; border-radius: 24px; height: calc(100vh - 20px); }
.hub-side a { transition: background .2s, transform .25s var(--spring); border-radius: 14px; }
.hub-side a:hover { transform: translateX(2px); }
.hub-side a.on { background: rgba(255, 240, 232, .14) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.tabs { display: inline-flex !important; gap: 2px; padding: 4px !important; border-radius: 999px; margin: 6px 0 14px; }
.tabs button { border-radius: 999px !important; transition: background .25s, color .2s; }
.tabs button.on { background: rgba(255, 240, 232, .18) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
/* content stays plain, with a gentle lift */
.post, .side-card, .tile { transition: transform .3s var(--spring), box-shadow .3s; }
.tile:hover, .post.click:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
/* segmented control (Forms test mode) */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; transition: background .25s; }
.seg button.on { background: rgba(255, 240, 232, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
/* Forms answer key */
.key-mark { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); cursor: pointer; font: 600 12px var(--ui, inherit); white-space: nowrap; transition: all .2s; }
.key-mark svg { width: 15px; height: 15px; }
.key-mark:hover { color: var(--text); border-color: rgba(159, 224, 178, .5); }
.key-mark.on { background: rgba(47, 143, 85, .28); color: #b6f0c8; border-color: rgba(159, 224, 178, .6); }
/* test mode: the cover shown after leaving the test */
.test-guard { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.test-guard[hidden] { display: none; }
/* gradebook */
.grade-bar { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 18px; margin-bottom: 12px; }
.cell-in { width: 100%; min-width: 64px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: inherit; font: inherit; padding: 4px 6px; text-align: center; }
.cell-in:hover { border-color: var(--line2); }
.cell-in:focus { outline: none; border-color: var(--orange); background: rgba(255, 122, 26, .08); }
.cell-in.missing::placeholder { color: #ff8b78; }
.cell-in.saved { border-color: #2f8f55; background: rgba(47, 143, 85, .18); transition: background .3s; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* account type, chosen first at sign-up */
.auth .acct-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.auth .acct { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--line2); background: rgba(255, 240, 232, .04); color: var(--text); cursor: pointer; font: inherit; text-align: center; transition: border-color .15s, background .15s, transform .25s var(--spring); }
.auth .acct:hover { transform: translateY(-2px); border-color: rgba(255, 236, 228, .4); }
.auth .acct svg { width: 28px; height: 28px; color: var(--muted); }
.auth .acct b { font-size: 14px; } .auth .acct small { color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.auth .acct.on { border-color: #ff7a52; background: rgba(226, 54, 31, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); } .auth .acct.on svg { color: #ffb39c; }

/* Floating things stay floating: the glass rule above sets position: relative, which put menus and toasts
   at the end of the page (the bottom of the screen) and made the page taller, so it stretched on Chromebooks. */
.menu, .toast { position: fixed !important; }
.scrim > .dialog { position: relative; }
.toast { left: 50%; bottom: 26px; transform: translateX(-50%); animation: glassToast .38s var(--spring) both; }
@keyframes glassToast { from { opacity: 0; transform: translate(-50%, 12px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: translate(-50%, 0); filter: none; } }
.menu { min-width: 220px; padding: 7px; border-radius: 20px !important; transform-origin: var(--ox, top left);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 50%), rgba(30, 21, 19, .55) !important;
  -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.08); backdrop-filter: blur(30px) saturate(190%) brightness(1.08); }
.menu button { padding: 9px 12px; border-radius: 13px; transition: background .18s, transform .2s var(--spring); }
.menu button:hover, .menu button:focus-visible { background: rgba(255, 240, 232, .14); transform: translateX(2px); }
.menu hr { border-top-color: rgba(255, 255, 255, .1); margin: 6px 4px; }

/* one glass frame: sidebar and top bar are the same surface; page content sits in an inset panel */
body:has(> .hub) { display: flow-root; height: 100vh; }
.hub { margin: 10px; height: calc(100vh - 20px) !important; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 45%), var(--glass-thick);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 236, 228, .12), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hub-side, .hub-bar { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important; }
.hub-side::before, .hub-bar::before { content: none !important; }
.hub-side { margin: 0 !important; border-radius: 0 !important; height: 100% !important; }
.hub-main { display: flex; flex-direction: column; overflow: hidden !important; padding: 0 10px 10px 0 !important; }
.hub-bar { position: static !important; flex: none; margin: 0 !important; padding: 0 6px 0 4px !important; height: 58px; }
.hub-bar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-bar .field[type=search] { min-width: 0; flex: 0 1 240px; border-radius: 16px; }
.hub-bar > div:not(.grow) { min-width: 0; }
.hub-main > .anim, .hub-main > .play-frame { flex: 1; min-height: 0; overflow: auto; border-radius: 20px; padding: 18px 22px 40px;
  background: rgba(8, 6, 6, .62); box-shadow: inset 0 0 0 1px rgba(255, 236, 228, .07), inset 0 10px 30px rgba(0, 0, 0, .35); scroll-behavior: smooth; }
.hub-main > .play-frame { padding: 0; border: 0; width: 100%; }
@media (max-width: 860px) { .hub { margin: 0; border-radius: 0; height: 100vh !important; } .hub-main { padding: 0 6px 6px !important; } }
.hub-side > *, .hub-school > * { flex-shrink: 0; }
.hub-side { scrollbar-width: none; }
.hub-side::-webkit-scrollbar { display: none; }
.hub-side:has(.hub-school a.sub) ~ .hub-main .cbanner ~ .tabs { display: none; }
.hub-main > .anim { scrollbar-width: thin; scrollbar-color: rgba(255, 236, 228, .18) transparent; }
.dialog:has(.cb-settings) { width: min(560px, 94vw); }
.cb-settings { display: flex; flex-direction: column; gap: 18px; width: 100%; box-sizing: border-box; max-height: 64vh; overflow: auto; padding-right: 4px; }
.cb-settings section { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 236, 228, .08); }
.cb-settings section:last-child { border-bottom: 0; }
.cb-settings h3 { margin: 0; font: 600 15px var(--display); }
.cb-settings .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cb-settings .row .field { flex: 1; min-width: 0; }
.cb-settings p { margin: 0; }
.avatar.cb-set-pic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 600 24px var(--display); color: #fff; background-color: rgba(226, 54, 31, .35); background-size: cover; background-position: center; border: 2px solid rgba(255, 236, 228, .3); }
.cb-pic-row { display: flex; gap: 14px; align-items: center; margin: 10px 0 4px; }
.cb-pic-row .btn { margin-top: 6px; height: 32px; }

.tour { position: fixed; inset: 0; z-index: 10000; }
.tour-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .62), 0 0 0 2px #ff8f73; transition: all .3s var(--spring, ease); pointer-events: none; }
.tour-card { position: fixed; width: 320px; padding: 16px 18px; border-radius: 16px; background: #1a1311; border: 1px solid rgba(255, 150, 120, .25); box-shadow: 0 18px 48px rgba(0, 0, 0, .5); transition: left .3s, top .3s; }
.tour-card b { display: block; font-size: 17px; margin: 4px 0 6px; }
.tour-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.tour-card .row { display: flex; gap: 8px; align-items: center; } .tour-card .grow { flex: 1; }

/* Fit levels set by cbFit when a sidebar would otherwise scroll. */
.fit-1 { gap: 0 !important; padding-top: 10px !important; padding-bottom: 10px !important; }
.fit-1 .brand { padding-bottom: 6px !important; } .fit-1 .brand img.word { height: 24px !important; }
.fit-1 > a:not(.sub), .fit-1 .hub-school > a:not(.sub), .fit-1 nav button, .fit-1 .apps a { height: 28px !important; }
.fit-1 .new { height: 34px !important; margin-bottom: 4px !important; }
.fit-1 .cap { margin-top: 6px !important; padding-bottom: 2px !important; }
.fit-1 .hub-tiles a { height: 44px !important; font-size: 10.5px; }
.fit-1 .apps { padding-top: 6px !important; }
.fit-2 .hub-tiles { grid-template-columns: repeat(4, 1fr) !important; } .fit-2 .hub-tiles a { height: 32px !important; font-size: 0 !important; } .fit-2 .hub-tiles a span { display: none; }
.fit-3 a.sub { display: none !important; } .fit-3 .brand { display: none; } .fit-3 > a:not(.sub), .fit-3 nav button, .fit-3 .hub-school > a:not(.sub) { height: 24px !important; font-size: 13px; }
body.locked .fq-deck, body.locked .fq-deck * { -webkit-user-select: none; user-select: none; }
body.locked .fq-deck input, body.locked .fq-deck textarea { -webkit-user-select: text; user-select: text; }
body:has(.test-guard:not([hidden])) .fq-deck { filter: blur(14px); }
.cb-notice { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2147483000; display: flex; align-items: center; gap: 12px; max-width: min(760px, calc(100vw - 24px));
  padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(28, 12, 9, .92); border: 1px solid rgba(255, 140, 110, .35); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: 13px; line-height: 1.35; color: var(--text); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cb-notice .btn { flex-shrink: 0; height: 32px; } .cb-notice-x { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.cb-notice-x:hover { background: rgba(255, 236, 228, .08); color: var(--text); }
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); } }
