/* StudySquad design system: light, calm, one accent. */

:root {
  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #f8f8fb;
  --line: #ececf1;
  --line-2: #dedfe7;
  --ink: #1d2033;
  --ink-2: #5b6075;
  --ink-3: #9498ab;

  --accent: #6457f0;
  --accent-2: #5144db;
  --accent-soft: #efedff;

  --ava: #ff8b4d; --ava-ink: #c4541a; --ava-tint: #fff3ec;
  --milo: #7c8cff; --milo-ink: #4352d6; --milo-tint: #f0f2ff;
  --quinn: #2dc891; --quinn-ink: #13865d; --quinn-tint: #e9f8f2;

  --success: #13865d; --success-tint: #e6f7ef;
  --danger: #d6453b; --danger-tint: #fdeeec;
  --warn-ink: #8a4b0f; --warn-tint: #fff6e8;

  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(29, 32, 51, 0.05);
  --shadow: 0 1px 3px rgba(29, 32, 51, 0.04), 0 10px 30px rgba(29, 32, 51, 0.06);
  --shadow-lg: 0 20px 60px rgba(29, 32, 51, 0.16);
  --font-display: 'Fredoka', 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(100, 87, 240, 0.35); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.tiny { font-size: 13px; color: var(--ink-3); }

/* ---------- Controls ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font-weight: 800; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--accent-2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover:not([disabled]) { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: #f3cdc9; }
.btn-danger:hover:not([disabled]) { background: var(--danger-tint); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink-3); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-tint); color: var(--danger); }

.input, .textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font-size: 16px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(100, 87, 240, 0.12); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.form-error { color: var(--danger); font-weight: 700; font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 5px 12px; font-size: 13px; font-weight: 700; transition: border-color 0.15s, color 0.15s, background 0.15s; }
button.chip:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; background: var(--accent-soft); color: var(--accent); }

/* ---------- Avatars ---------- */

.mate { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--s) * 0.48); line-height: 1; }
.mate-ava { background: var(--ava); }
.mate-milo { background: var(--milo); }
.mate-quinn { background: var(--quinn); }
.avatar { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: #626786; color: #fff; font-weight: 800; font-size: calc(var(--s) * 0.42); position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 32%; height: 32%; min-width: 9px; min-height: 9px; border-radius: 50%; background: #2dc891; border: 2px solid var(--surface); }
.stack { display: inline-flex; }
.stack > * { margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.stack > *:first-child { margin-left: 0; }
.gavatar { --s: 28px; width: var(--s); height: var(--s); border-radius: 9px; flex: none; display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--s) * 0.46); color: #fff; }
.g0 { background: #ff8b4d; } .g1 { background: #7c8cff; } .g2 { background: #2dc891; }
.g3 { background: #f06ba8; } .g4 { background: #f2b33d; } .g5 { background: #3db6f2; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { display: inline-flex; }
.brand-mark i { width: 14px; height: 14px; border-radius: 50%; margin-right: -4px; box-shadow: 0 0 0 2px var(--ring, var(--surface)); }
.brand-mark i:nth-child(1) { background: var(--milo); }
.brand-mark i:nth-child(2) { background: var(--ava); }
.brand-mark i:nth-child(3) { background: var(--quinn); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-left: 4px; }

/* ---------- App shell ---------- */

.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100dvh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 40; }
.sb-head { padding: 18px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.sb-head .icon-btn { display: none; }
.sb-new { margin: 2px 14px 8px; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.sb-label { display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 6px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.sb-label button { border: 0; background: none; color: var(--ink-3); padding: 2px; border-radius: 6px; display: inline-grid; }
.sb-label button:hover { color: var(--accent); background: var(--accent-soft); }
.sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.sb-item:hover { background: var(--surface-2); color: var(--ink); }
.sb-item.active { background: var(--accent-soft); color: var(--accent); }
.sb-item .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.sb-item .meta { font-size: 12px; color: var(--ink-3); }
.sb-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; margin: 0 6px; }
.sb-item.active .dot { background: var(--accent); }
.sb-empty { padding: 2px 10px 6px; font-size: 13px; color: var(--ink-3); }
.sb-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.usage-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.usage-top b { color: var(--ink); }
.meter { height: 5px; background: var(--line); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s; }
.meter.hot i { background: var(--ava); }
.sb-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-user .who { flex: 1; min-width: 0; line-height: 1.3; }
.sb-user .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .who span { font-size: 12px; color: var(--ink-3); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: none; }
.banner { background: var(--warn-tint); color: var(--warn-ink); font-size: 14px; font-weight: 700; padding: 9px 24px; }
#view { flex: 1; min-height: 0; overflow-y: auto; }
.scrim { display: none; }

.page { max-width: 960px; margin: 0 auto; padding: 44px 40px 80px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 3vw, 36px); }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.section-title { margin: 40px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title h2 { font-size: 19px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.loading { padding: 48px; text-align: center; color: var(--ink-3); }

/* ---------- Start box ---------- */

.start-card { padding: 22px; box-shadow: var(--shadow); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; margin-bottom: 14px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 6px 12px; font-weight: 700; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg select { border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--accent); padding: 6px 8px; max-width: 220px; outline: none; }
.topic-row { display: flex; gap: 8px; }
.topic-row input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); outline: none; font-size: 17px; padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.topic-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(100, 87, 240, 0.12); }
.start-extras { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.start-extras .sep { flex: 1; }
.notes-toggle { border: 0; background: none; padding: 4px 0; font-weight: 800; font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.notes-box { margin-top: 12px; }
.start-card .form-error { margin-top: 10px; }

/* ---------- Lists ---------- */

.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.list { overflow: hidden; }
.list a, .list .row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--ink); min-width: 0; }
.list > * + * { border-top: 1px solid var(--line); }
.list a:hover { background: var(--surface-2); }
.list .t { flex: 1; min-width: 0; }
.list .t b { display: block; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .t span { font-size: 13px; color: var(--ink-3); }
.list .when { font-size: 13px; color: var(--ink-3); flex: none; }
.list .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); flex: none; }
.empty { padding: 24px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty-card { padding: 32px; text-align: center; color: var(--ink-2); display: grid; justify-items: center; gap: 10px; }
.weak .row { padding: 11px 16px; }
.weak .concept { font-weight: 800; font-size: 14px; text-transform: capitalize; }
.weak-bar { height: 4px; border-radius: 99px; background: var(--danger-tint); margin-top: 6px; overflow: hidden; }
.weak-bar i { display: block; height: 100%; background: var(--quinn); }

/* ---------- Group page ---------- */

.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.group-head .gavatar { --s: 52px; border-radius: 16px; }
.group-head h1 { font-size: 28px; overflow-wrap: anywhere; }
.group-head p { color: var(--ink-3); font-weight: 700; font-size: 14px; }
.group-head .grow { flex: 1; min-width: 0; }
.invite-box { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; flex-wrap: wrap; }
.invite-box .label { font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.invite-box input { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--ink-2); outline: none; }
.members { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.member { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.member .icon-btn { width: 22px; height: 22px; border-radius: 6px; margin-left: -2px; }
.member .icon-btn svg { width: 13px; height: 13px; }
.footer-actions { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Room ---------- */

.room { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; }
.room-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-title { flex: 1; min-width: 0; }
.room-title h1 { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-title .crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); flex-wrap: wrap; }
.room-title .crumbs a { color: var(--ink-2); }
.room-title .crumbs a:hover { color: var(--accent); }
.live { display: inline-flex; align-items: center; gap: 5px; color: var(--success); }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2dc891; }
.room-people .avatar { --s: 28px; }

.room-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.room-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.feed { overflow-y: auto; min-height: 0; }
.feed-inner { max-width: 760px; margin: 0 auto; padding: 24px 20px 8px; display: flex; flex-direction: column; gap: 16px; }
.feed-start { text-align: center; padding: 12px 0 8px; }
.feed-start .stack .mate { --s: 30px; box-shadow: 0 0 0 2px var(--bg); }
.feed-start p { color: var(--ink-3); font-size: 13px; margin-top: 8px; }

.msg { display: flex; gap: 10px; align-items: flex-start; animation: rise 0.2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg > .mate, .msg > .avatar { --s: 32px; margin-top: 21px; }
.msg-body { min-width: 0; max-width: min(600px, 100%); }
.msg-head { display: flex; align-items: baseline; gap: 6px; margin: 0 0 3px 2px; font-size: 13px; }
.msg-head b { font-weight: 800; }
.msg-head .role, .msg-head time { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.bubble { background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 10px 14px; overflow-wrap: anywhere; font-size: 15px; box-shadow: var(--shadow-sm); }
.bubble p + p, .bubble p + ul, .bubble ul + p, .bubble p + ol, .bubble ol + p { margin-top: 8px; }
.bubble ul, .bubble ol { margin: 0; padding-left: 20px; }
.bubble code { background: rgba(29, 32, 51, 0.06); border-radius: 5px; padding: 1px 5px; font-size: 0.92em; }
.msg.ava .bubble { background: var(--ava-tint); box-shadow: none; } .msg.ava .msg-head b { color: var(--ava-ink); }
.msg.milo .bubble { background: var(--milo-tint); box-shadow: none; } .msg.milo .msg-head b { color: var(--milo-ink); }
.msg.quinn .bubble { background: var(--quinn-tint); box-shadow: none; } .msg.quinn .msg-head b { color: var(--quinn-ink); }
.msg.me { flex-direction: row-reverse; }
.msg.me .msg-body { display: flex; flex-direction: column; align-items: flex-end; }
.msg.me .msg-head { display: none; }
.msg.me > .avatar { display: none; }
.msg.me .bubble { background: var(--accent); color: #fff; border-radius: 16px 4px 16px 16px; box-shadow: none; }
.msg.me .bubble code { background: rgba(255, 255, 255, 0.2); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 2px; }
.source { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; padding: 3px 9px 3px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.source:hover { border-color: var(--accent); color: var(--accent); }
.source img { width: 15px; height: 15px; border-radius: 4px; }
.source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.source img + span { padding-left: 0; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }
.msg.ava .typing { color: var(--ava-ink); } .msg.milo .typing { color: var(--milo-ink); } .msg.quinn .typing { color: var(--quinn-ink); }
.searching { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.searching svg { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.notice { align-self: center; background: var(--warn-tint); color: var(--warn-ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; text-align: center; max-width: 100%; }

.research-card { align-self: center; width: 100%; max-width: 440px; padding: 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.research-card .stack .mate { --s: 34px; animation: bob 1.4s infinite ease-in-out; }
.research-card .stack .mate:nth-child(2) { animation-delay: 0.2s; }
.research-card .stack .mate:nth-child(3) { animation-delay: 0.4s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.research-card h3 { font-size: 17px; margin-top: 6px; }
.research-card p { color: var(--ink-3); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.quiz { width: min(560px, 100%); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.quiz-body { padding: 16px; }
.quiz-label { font-size: 12px; font-weight: 800; color: var(--quinn-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.quiz-q { font-weight: 800; font-size: 17px; line-height: 1.35; margin: 4px 0 12px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 9px 12px; font-size: 15px; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.quiz-opt:hover:not([disabled]) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt .letter { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--ink-2); }
.quiz-opt[disabled] { cursor: default; }
.quiz-opt.correct { border-color: var(--quinn); background: var(--success-tint); }
.quiz-opt.correct .letter { background: var(--quinn); color: #fff; }
.quiz-opt.wrong { border-color: var(--danger); background: var(--danger-tint); }
.quiz-opt.wrong .letter { background: var(--danger); color: #fff; }
.quiz-opt.dim { opacity: 0.5; }
.quiz-reveal { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.quiz-reveal b { margin-right: 4px; }
.quiz-reveal.ok b { color: var(--success); } .quiz-reveal.no b { color: var(--danger); }
.quiz-foot { border-top: 1px solid var(--line); padding: 8px 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.quiz-foot .avatar { --s: 20px; font-size: 9px; }

.composer { padding: 8px 20px 16px; }
.composer-box { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); padding: 8px 8px 8px 14px; transition: border-color 0.15s; }
.composer-box:focus-within { border-color: var(--accent); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 16px; line-height: 1.5; padding: 6px 0; max-height: 180px; min-height: 30px; }
.composer-row { display: flex; align-items: center; gap: 6px; }
.composer-row .chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.composer-row .chip { border-color: var(--line); }
.composer-row .chip .mate { --s: 16px; font-size: 9px; }
.send-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: background 0.15s, opacity 0.15s; }
.send-btn:hover:not([disabled]) { background: var(--accent-2); }
.send-btn[disabled] { opacity: 0.3; cursor: not-allowed; }

.panel { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; padding: 20px; display: grid; align-content: start; gap: 22px; }
.panel-close { display: none; }
.panel h3 { font-family: var(--font-body); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.brief { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.brief h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin: 14px 0 4px; display: block; }
.brief > :first-child { margin-top: 0; }
.brief ul { padding-left: 18px; margin: 0; }
.brief li + li { margin-top: 3px; }
.brief p + p { margin-top: 8px; }
.brief.clamp { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 800; font-size: 13px; margin-top: 6px; }
.source-list { display: grid; gap: 2px; margin-top: 10px; }
.source-list a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; color: var(--ink-2); font-size: 13px; font-weight: 700; min-width: 0; }
.source-list a:hover { background: var(--surface-2); color: var(--accent); }
.source-list img { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.source-list span { display: grid; min-width: 0; }
.source-list span > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-list small { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.board { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.board li:first-child { background: #fff8e6; }
.board .rank { width: 18px; text-align: center; color: var(--ink-3); font-weight: 800; }
.board .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pts { font-weight: 800; color: var(--accent); }

/* ---------- Modal & toast ---------- */

.modal-wrap { position: fixed; inset: 0; background: rgba(29, 32, 51, 0.35); display: grid; place-items: center; padding: 16px; z-index: 100; animation: fade 0.15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(420px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 14px; animation: rise 0.2s ease-out; }
.modal h2 { font-size: 20px; }
.modal p { color: var(--ink-2); font-size: 15px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 120; max-width: calc(100% - 32px); text-align: center; }

/* ---------- Landing ---------- */

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp { background: #fbfbfd; }
.lp-nav .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav nav { display: flex; align-items: center; gap: 26px; }
.lp-nav nav > a { color: var(--ink-2); font-weight: 700; font-size: 15px; }
.lp-nav nav > a:hover { color: var(--ink); }
.gsi-slot { min-height: 40px; display: flex; align-items: center; }

.hero { padding: 0 0 96px; background:
  radial-gradient(700px 380px at 8% 0%, #ece9ff 0%, transparent 70%),
  radial-gradient(640px 380px at 95% 15%, #ffeee4 0%, transparent 70%),
  radial-gradient(600px 380px at 55% 105%, #e4f7ef 0%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 40px; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.025em; line-height: 1.03; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #e0679a 60%, var(--ava)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-cta .note { color: var(--ink-3); font-size: 14px; font-weight: 700; }
.invite-banner { margin-top: 22px; display: inline-flex; background: var(--success-tint); color: var(--success); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px; }

.preview { position: relative; }
.window { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.window-bar { border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.window-bar .t { flex: 1; min-width: 0; line-height: 1.3; }
.window-bar .t b { display: block; font-size: 15px; }
.window-bar .t span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.window-bar .avatar { --s: 24px; font-size: 10px; }
.window-feed { padding: 16px; display: grid; gap: 12px; background: var(--bg); }
.window-feed .msg > .mate, .window-feed .msg > .avatar { --s: 28px; margin-top: 19px; }
.window-feed .bubble { font-size: 13.5px; padding: 8px 12px; }
.window-feed .msg-head { font-size: 12px; }
.float { position: absolute; animation: floaty 5s infinite ease-in-out; box-shadow: 0 10px 24px rgba(29, 32, 51, 0.18); }
.float.mate { --s: 52px; }
.float-a { top: -20px; left: -18px; }
.float-b { top: 40%; right: -20px; animation-delay: 1.4s; }
.float-c { bottom: -18px; left: 30%; animation-delay: 2.6s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.lp-section { padding: 96px 0; }
.lp-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lp-head h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.02em; }
.lp-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 26px; }
.feature-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.feature-card .ic svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 21px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); }
.ic-violet { background: var(--accent-soft); color: var(--accent); }
.ic-orange { background: var(--ava-tint); color: var(--ava-ink); }
.ic-green { background: var(--quinn-tint); color: var(--quinn-ink); }

.squad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.squad-card { padding: 26px; }
.squad-card .mate { --s: 52px; margin-bottom: 14px; }
.squad-card h3 { font-size: 22px; }
.squad-card .role { font-size: 13px; font-weight: 800; margin: 2px 0 10px; }
.squad-card p { color: var(--ink-2); }
.squad-card.ava .role { color: var(--ava-ink); } .squad-card.milo .role { color: var(--milo-ink); } .squad-card.quinn .role { color: var(--quinn-ink); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: 22px; }
.plan .price { font-family: var(--font-display); font-size: 42px; font-weight: 600; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink-3); margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--quinn-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2313865d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan .foot { margin-top: auto; }
.plan .foot .btn { width: 100%; }
.plan .badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: var(--surface-2); color: var(--ink-3); }
.plan.featured .badge { background: var(--accent); color: #fff; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); margin-top: 8px; }
.cta-card { background: linear-gradient(120deg, var(--accent), #8b5cf6 55%, #e0679a); color: #fff; border-radius: var(--r-xl); padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-card h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-card p { opacity: 0.85; margin-top: 8px; }
.lp-foot { padding: 40px 0 48px; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.lp-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-foot a { color: var(--ink-2); }

.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-page h1 { font-size: 52px; }
.center-page p { color: var(--ink-2); margin: 12px 0 24px; }
.prose { max-width: 720px; padding: 56px 24px 80px; margin: 0 auto; }
.prose h1 { font-size: 42px; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .room-body { grid-template-columns: minmax(0, 1fr); }
  .panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 60; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform 0.25s ease; }
  .panel.open { transform: none; }
  .panel-close { display: inline-grid; justify-self: end; margin: -8px -8px 0 0; }
}
@media (min-width: 1181px) { .panel-toggle { display: none !important; } }

@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sb-head .icon-btn { display: inline-grid; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(29, 32, 51, 0.3); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .topbar .brand { flex: 1; }
  .topbar .brand-name { font-size: 18px; }
  .page { padding: 24px 16px 64px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .room-top { padding: 8px 12px; }
  .room-people { display: none; }
  .feed-inner { padding: 18px 12px 8px; }
  .composer { padding: 6px 10px 10px; }
  .hero { padding: 0 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 16px; }
  .features, .squad-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .lp-section { padding: 72px 0; }
  .cta-card { padding: 34px 26px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .lp-nav nav > a { display: none; }
  .topic-row { flex-direction: column; }
  .msg.me { padding-left: 28px; }
  .float { display: none; }
}

@media (max-width: 420px) {
  .composer-row .chip .txt { display: none; }
  .composer-row .chip { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Dark theme ---------- */

:root[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #171a23;
  --surface-2: #1d212c;
  --line: #262b38;
  --line-2: #343a4b;
  --ink: #e8e9f1;
  --ink-2: #a9adc1;
  --ink-3: #7d8299;
  --accent: #8a80ff;
  --accent-2: #9b93ff;
  --accent-soft: #24224a;
  --ava-ink: #ffab7a; --ava-tint: #2a1e18;
  --milo-ink: #aab5ff; --milo-tint: #1c2040;
  --quinn-ink: #62e0b2; --quinn-tint: #132a21;
  --success: #4fd3a3; --success-tint: #12291f;
  --danger: #ff7b72; --danger-tint: #301818;
  --warn-ink: #f2c27e; --warn-tint: #2c2314;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
:root[data-theme="dark"] .btn-primary { color: #0f1117; }
:root[data-theme="dark"] .msg.me .bubble { color: #0f1117; }
:root[data-theme="dark"] .board li:first-child { background: #2c2614; }
:root[data-theme="dark"] .avatar.online::after { border-color: var(--surface); }

/* ---------- Settings ---------- */

.settings { max-width: 760px; }
.set-section { padding: 22px 24px; margin-top: 16px; }
.set-section > h2 { font-size: 18px; margin-bottom: 4px; }
.set-section > p.lead { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row .info { min-width: 0; }
.set-row .info b { display: block; font-size: 15px; }
.set-row .info span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.set-row .control { flex: none; display: flex; align-items: center; gap: 8px; }
.select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239498ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 34px 8px 12px; font-size: 14px; font-weight: 700; color: var(--ink); outline: none; min-width: 170px; }
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(100, 87, 240, 0.12); }
.seg.small { margin: 0; }
.seg.small button { padding: 5px 11px; font-size: 13px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background 0.15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(100, 87, 240, 0.35); outline-offset: 2px; }
.profile-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-row .avatar { --s: 52px; font-size: 20px; }
.profile-row b { display: block; font-size: 16px; }
.profile-row span { color: var(--ink-3); font-size: 14px; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { max-width: 320px; }
.quota-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.quota-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.quota-bar.hot i { background: var(--ava); }
.danger-row b { color: var(--danger); }
.fb-list { display: grid; gap: 10px; margin-top: 8px; }
.fb-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.fb-item .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.fb-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.sb-legal { display: flex; gap: 10px; font-size: 12px; font-weight: 700; padding: 0 2px; }
.sb-legal a { color: var(--ink-3); }
.sb-legal a:hover { color: var(--ink); }
.source .fav { width: 16px; height: 16px; border-radius: 5px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 10px; font-weight: 800; flex: none; }
.source-list .fav { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 800; flex: none; }

@media (max-width: 640px) {
  .set-row { flex-direction: column; align-items: flex-start; }
  .set-row .control { width: 100%; }
  .select { width: 100%; }
  .inline-form { flex-direction: column; }
  .inline-form .input { max-width: none; }
}

/* ---------- Legal / document pages ---------- */

.doc-page { background: var(--surface); }
.doc-top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.doc-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.doc-top .doc-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.doc-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.doc-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.doc-nav a:hover { background: var(--surface-2); color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.doc-page .prose { max-width: 720px; padding: 0; margin: 0; }
.doc-page .prose h1 { font-size: 40px; margin-bottom: 6px; }
.doc-updated { color: var(--ink-3); font-size: 14px; font-weight: 700; margin-bottom: 28px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose ul ul { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }
.prose strong { color: var(--ink); }
.doc-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.doc-foot a { color: var(--ink-2); }
@media (max-width: 760px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-page .prose h1 { font-size: 32px; }
}

/* ---------- Replies ---------- */

.msg-actions { display: flex; gap: 4px; margin: 3px 0 0; opacity: 0; transition: opacity 0.15s; }
.msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; }
@media (hover: none) { .msg-actions { opacity: 1; } }
.msg-action { border: 0; background: none; color: var(--ink-3); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 8px; }
.msg-action:hover, .msg-action:focus-visible { background: var(--surface-2); color: var(--ink); }
.msg-action svg { width: 14px; height: 14px; }
.reply-quote { display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--line-2); border-radius: 8px; padding: 4px 10px 4px 8px; margin: 0 0 5px; }
.reply-quote svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); }
.reply-quote b { flex: none; color: var(--ink); }
.reply-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reply-quote.ava, .reply-bar.ava { border-left-color: var(--ava); }
.reply-quote.milo, .reply-bar.milo { border-left-color: var(--milo); }
.reply-quote.quinn, .reply-bar.quinn { border-left-color: var(--quinn); }
.reply-bar { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--line-2); border-radius: 10px; padding: 4px 4px 4px 10px; margin: 2px 0 6px; }
.reply-bar svg { flex: none; }
.reply-bar .who { flex: none; }
.reply-bar .who b { color: var(--ink); }
.reply-bar .snip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.reply-bar .icon-btn { width: 28px; height: 28px; flex: none; }
.msg.me .msg-actions { justify-content: flex-end; }
/* Keep long single-line content (like reply quotes) from widening the room. */
.room { grid-template-columns: minmax(0, 1fr); }
.room-main { grid-template-columns: minmax(0, 1fr); }
.feed, .composer, .composer-box { min-width: 0; }

/* ---------- Language practice ---------- */

.practice-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: grid; gap: 10px; }
.practice-head { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.practice-head .switch { margin-top: 1px; }
.practice-head b { display: block; font-size: 14px; }
.practice-head small { display: block; font-size: 13px; color: var(--ink-3); }
.practice-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.practice-controls .select { min-width: 180px; }
.practice-controls .select:disabled { opacity: 0.5; }
.practice-pill { background: var(--quinn-tint); color: var(--quinn-ink); }
@media (max-width: 640px) { .practice-controls .select { width: 100%; } }
