/* Teach Club — styles recreated from the Claude Design canvas "Peer Teaching Club". */

:root {
  --bg: #F5F3F0;
  --card: #FFFFFF;
  --line: #ECE6DF;
  --line-2: #E0D8CF;
  --field: #FAF8F6;
  --track: #E6DFD7;
  --seg: #EBE6E0;
  --ink: #221D19;
  --ink-2: #4A433D;
  --muted: #6E655D;
  --faint: #B3ABA3;
  --accent: #CC4A14;
  --accent-hover: #B5400F;
  --accent-ink: #A33A0E;
  --accent-ink-hover: #7E2C08;
  --accent-soft: #FCE9DD;
  --today: #E9A27A;
  --ok: #1F9A78;
  --ok-ink: #11684F;
  --ok-soft: #E8F5EF;
  --ok-line: #B5E4D4;
  --ok-text: #2F4A40;
  --warn-soft: #FBEFD0;
  --warn-ink: #744F00;
  --warn-text: #4A3300;
  --danger: #B42318;
  --display: 'Bricolage Grotesque', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'Figtree', 'IBM Plex Sans Arabic', 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(--body); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-ink-hover); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.i { flex: none; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.h-34 { font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.h-32 { font-size: 32px; line-height: 1.08; letter-spacing: -0.02em; }
.h-30 { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.h-28 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.h-23 { font-size: 23px; line-height: 1.15; }
.h-22 { font-size: 22px; }
.h-20 { font-size: 20px; }
.h-19 { font-size: 19px; }
.h-17 { font-size: 17px; font-weight: 700; }
.h-16 { font-size: 16px; font-weight: 700; }
.lede { font-size: 16px; line-height: 1.45; color: var(--muted); }
.small { font-size: 14px; line-height: 1.4; }
.tiny { font-size: 12px; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.normal { font-weight: 500; }
.accent { color: var(--accent-ink); }
.center { text-align: center; }
.narrow { max-width: 300px; }
.pre-line { white-space: pre-line; }
.body-2 { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.body-3 { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.eyebrow { padding: 0 4px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.opt, .count { font-weight: 500; font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- layout helpers ---------- */
.screen { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen.with-nav { padding-bottom: 108px; }
.pad-auth { padding: 40px 24px 32px; gap: 28px; }
.pad-signup { padding: 24px 24px 32px; gap: 22px; }
.pad-16 { padding: 16px; }
.pad-18 { padding: 18px; }
.pad-18-16 { padding: 18px 16px; }
.pad-x-4 { padding-left: 4px; padding-right: 4px; }
.pad-x-8 { padding-left: 8px; padding-right: 8px; }
.pad-y-6 { padding-top: 6px; padding-bottom: 6px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.mx-16 { margin-left: 16px; margin-right: 16px; }
.pt-4 { padding-top: 4px; }
.pt-12 { padding-top: 12px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-auto { margin-top: auto; }
.mb-12 { margin-bottom: 12px; }
.stack-0, .stack-2, .stack-3, .stack-4, .stack-6, .stack-8, .stack-10, .stack-12, .stack-14, .stack-16, .stack-18 { display: flex; flex-direction: column; }
.stack-0 { gap: 0; } .stack-2 { gap: 2px; } .stack-3 { gap: 3px; } .stack-4 { gap: 4px; } .stack-6 { gap: 6px; }
.stack-8 { gap: 8px; } .stack-10 { gap: 10px; } .stack-12 { gap: 12px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-18 { gap: 18px; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-26 { gap: 26px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-between.baseline { align-items: baseline; }
.row-center { display: flex; align-items: center; justify-content: center; }
.wrap { display: flex; flex-wrap: wrap; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.grow { flex: 1; min-width: 0; }
.min0 { min-width: 0; }
.self-start { align-self: flex-start; }
.grid-2, .grid-3, .grid-6, .grid-7 { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.plain { list-style: none; margin: 0; padding: 0; }
.spacer-44 { width: 44px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 18px; font-weight: 700; text-decoration: none; padding: 0 20px; height: 54px; font-size: 16px; white-space: nowrap; }
.btn-lg { height: 58px; font-size: 17px; }
.btn-xl { height: 60px; font-size: 18px; }
.btn-md { height: 50px; border-radius: 14px; font-size: 16px; }
.btn-sm { height: 46px; border-radius: 14px; font-size: 15px; padding: 0 18px; }
.btn.compact { padding: 0 16px; font-size: 15px; font-weight: 600; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-secondary:hover { color: var(--ink); background: var(--field); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { color: var(--accent-ink-hover); background: #F9DCCB; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; height: 48px; }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: #FFFFFF; border: 1.5px solid #F1C9C3; color: var(--danger); font-size: 15px; }
.btn-outline-ok { background: #FFFFFF; border: 1.5px solid var(--ok-line); color: var(--ok-ink); }
.btn:disabled { opacity: 0.6; }
.shadow { box-shadow: 0 6px 16px rgba(204, 74, 20, 0.25); }

.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: none; background: #FFFFFF; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.icon-btn:hover { color: var(--ink); background: var(--field); }
.round-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: none; background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.round-btn:hover { background: var(--seg); }
.pill-round { height: 44px; padding: 0 16px; border-radius: 22px; border: none; background: var(--bg); font-weight: 600; font-size: 15px; }
.mini-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.mini-btn:disabled { opacity: 0.35; }
.mini-pill { height: 40px; padding: 0 12px; border: none; border-radius: 12px; background: var(--bg); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.text-btn { border: none; background: none; padding: 4px 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.text-link { height: 44px; padding: 0 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 16px; color: var(--ink-2); text-decoration: none; border: none; background: none; }
.text-link.accent { color: var(--accent-ink); }
.pill-btn { height: 44px; padding: 0 16px; border-radius: 22px; background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pill-btn:hover { color: var(--ink); background: var(--field); }
.edit-link { font-size: 14px; font-weight: 700; padding: 10px 4px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; font-size: 15px; }
.field-head.big { font-size: 17px; }
.input { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #FFFFFF; padding: 0 16px; font-size: 16px; font-weight: 400; color: var(--ink); }
textarea.input { height: auto; padding: 14px 16px; line-height: 1.4; resize: none; }
.input.soft { background: var(--field); height: 52px; padding: 0 14px; }
textarea.input.soft { height: auto; padding: 12px 14px; }
.input-title { font-size: 17px; font-weight: 600; }
.input::placeholder { color: #8F867E; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-error { padding: 12px 14px; border-radius: 14px; background: #FDECEA; color: #8C1D13; font-size: 14px; font-weight: 600; }
.pw-wrap { position: relative; }
.pw-input { padding-inline-end: 70px; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 5px; height: 44px; padding: 0 12px; border: none; background: transparent; color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.icon-input { position: relative; }
.icon-input > .i { position: absolute; inset-inline-start: 14px; top: 16px; color: var(--muted); }
.icon-input .input { padding-inline-start: 44px; font-size: 15px; }

/* ---------- brand & avatars ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-size: 20px; }
.logo-mark { border-radius: 12px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; object-fit: cover; line-height: 1; }
.avatar.ring { border: 5px solid #FFFFFF; }
.avatar-dashed { border: 2px dashed var(--today); }
.me-link { border-radius: 50%; text-decoration: none; display: inline-flex; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.going-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--ok-ink); font-weight: 700; font-size: 13px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-link { height: 32px; padding: 0 12px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- auth ---------- */
.auth-top { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 24px; }
.trio { position: relative; width: 132px; height: 84px; }
.trio-side { position: absolute; top: 8px; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg); }
.side-a { inset-inline-start: 0; }
.side-b { inset-inline-end: 0; }
.trio-mid { position: absolute; left: 28px; top: 0; z-index: 1; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg); }
.join-card { margin-top: auto; padding: 18px; border-radius: 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.photo-card { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 24px; }
.photo-wrap { position: relative; width: 104px; height: 104px; flex: none; }
.photo-wrap.big { width: 128px; height: 128px; }
.cam-btn { position: absolute; inset-inline-end: -2px; bottom: -2px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #FFFFFF; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 0; }
.cam-btn.badge { inset-inline-end: 0; bottom: 0; }
.welcome-avatar { position: relative; width: 120px; height: 120px; }
.welcome-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; font-size: 15px; line-height: 1.4; }
.welcome-item strong { font-size: 16px; }
.soft-square { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.soft-square.plain-bg { background: var(--bg); }

/* ---------- home (phone) ---------- */
.home-head { padding: 18px 20px 4px; display: flex; align-items: center; justify-content: space-between; }
.home-hero { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 18px; }
.home-hero .btn { width: 100%; }
.home-hero p { margin-top: -8px; }
.cal-m { margin: 20px 16px 0; border-radius: 24px; padding: 14px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.wd-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-cell { height: 50px; border-radius: 14px; border: 2px solid transparent; background: transparent; color: var(--ink); font-weight: 500; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.cal-cell:hover:not(:disabled):not(.sel) { background: var(--bg); }
.cal-cell.today { border-color: var(--accent); font-weight: 700; }
.cal-cell.sel { background: var(--accent); color: #FFFFFF; font-weight: 700; }
.cal-cell.out { color: var(--faint); cursor: default; }
.dots { display: flex; gap: 3px; height: 6px; }
.dots .dot { width: 6px; height: 6px; }
/* one plain dot per lesson (the format shows on the lesson itself, not the calendar) */
.dot.day-dot { background: var(--accent); }
.cal-cell.sel .dot.day-dot { background: #FFFFFF; }
.chip-line.neutral { background: var(--accent-soft); color: var(--accent-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 6px 0; font-size: 12px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.day-list { padding: 22px 16px 0; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 12px; }
.lesson-card { display: flex; gap: 14px; padding: 16px; border-radius: 20px; text-decoration: none; color: var(--ink); }
a.lesson-card:hover { color: var(--ink); border-color: var(--line-2); }
.lc-when { width: 62px; flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.lc-time { font-weight: 700; font-size: 16px; }
.lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lc-title { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.lc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.empty-day { padding: 24px 20px; background: #FFFFFF; border-radius: 20px; border: 1.5px dashed var(--line-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; }
.empty-day strong { font-size: 18px; }
.empty-note { padding: 16px; border-radius: 18px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 15px; text-align: center; }

.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 10; width: 100%; max-width: 480px; height: calc(84px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; padding: 0 12px calc(8px + env(safe-area-inset-bottom)); }
.nav-item { min-width: 76px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; border-radius: 14px; }
.nav-item:hover { color: var(--ink); }
.nav-item.on { color: var(--accent-ink); font-weight: 700; }
.nav-fab { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-top: -18px; box-shadow: 0 6px 14px rgba(204, 74, 20, 0.3); }
.nav-fab:hover { color: #FFFFFF; background: var(--accent-hover); }

/* ---------- home (desktop) ---------- */
.dk { min-height: 100vh; }
.dk-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.dk-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.dk-nav { display: flex; gap: 6px; }
.dk-nav a { height: 44px; padding: 0 16px; border-radius: 12px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; text-decoration: none; }
.dk-nav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.dk-right { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.dk-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dk-cal { flex: 999 1 600px; min-width: 0; border-radius: 28px; padding: 20px; }
.dk-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 16px; }
.dk-cal-head p { font-size: 15px; }
.dk-wd { font-size: 13px; text-align: start; gap: 6px; padding: 0 8px 8px; }
.dk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dk-cell { min-height: 108px; min-width: 0; border-radius: 16px; border: 2px solid #F0EBE5; background: #FFFFFF; color: var(--ink); padding: 8px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: start; }
.dk-cell:hover:not(:disabled):not(.sel) { border-color: var(--line-2); }
.dk-cell.today { border-color: var(--today); }
.dk-cell.sel { background: var(--accent-soft); border-color: var(--accent); }
.dk-cell.out { background: var(--field); color: var(--faint); cursor: default; }
.dk-n { font-weight: 500; font-size: 15px; }
.dk-cell.today .dk-n, .dk-cell.sel .dk-n { font-weight: 700; }
.chip-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 7px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dk-aside .day-head { padding: 4px 4px 0; }
.dk-lesson { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; text-decoration: none; color: var(--ink); }
.dk-lesson:hover { color: var(--ink); border-color: var(--line-2); }
.dk-title { font-size: 19px; line-height: 1.2; }
.promo { padding: 20px; border-radius: 20px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.promo strong { font-size: 18px; color: var(--ink); }

/* ---------- create flow ---------- */
.flow-head { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.flow-bar { display: flex; align-items: center; justify-content: space-between; }
.step-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 0 4px; }
.progress span { height: 6px; border-radius: 3px; background: var(--track); }
.progress span.on { background: var(--accent); }
.flow-title { padding: 6px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.flow-title .pill-link { margin-bottom: 4px; }
.flow-main { padding: 20px 16px 0; display: flex; flex-direction: column; gap: 16px; }
.flow-foot { margin-top: auto; padding: 24px 16px 16px; display: flex; gap: 10px; position: sticky; bottom: 0; background: linear-gradient(to bottom, rgba(245, 243, 240, 0), var(--bg) 24px); }
.flow-foot.col { flex-direction: column; }
.flow-foot .btn.grow { flex: 1; }
.back-btn { width: 100px; padding: 0; }
.week-nav { display: flex; align-items: center; gap: 8px; }
.day-btn { height: 70px; border-radius: 16px; border: none; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.day-btn .wd { font-size: 12px; font-weight: 600; opacity: 0.85; }
.day-btn .n { font-size: 18px; font-weight: 700; }
.day-btn.on { background: var(--accent); color: #FFFFFF; }
.note-line { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.choice { height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 15px; padding: 0; }
.choice.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.choice.solid { font-size: 16px; }
.choice.solid.on { background: var(--accent); color: #FFFFFF; }
.custom-time { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.custom-time .input { width: 150px; height: 46px; }
.custom-time.on .input { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.len-big { font-size: 26px; color: var(--accent-ink); }
.tip-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg); display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.tip-box .i { color: var(--accent-ink); }
.tip-box strong { color: var(--ink); }
.openers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opener { height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed var(--line-2); background: #FFFFFF; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.opener:hover { border-color: var(--accent); color: var(--accent-ink); }
.format-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; border: 2px solid var(--line); background: #FFFFFF; text-align: start; color: var(--ink); width: 100%; }
.format-card:hover:not(.on) { border-color: var(--line-2); }
.format-card.on { border-color: var(--accent); }
.fc-art { width: 84px; height: 84px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.fc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fc-name { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; }
.fc-name > span { display: inline-flex; }
.fc-radio { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: #FFFFFF; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.format-card.on .fc-radio { border-color: var(--accent); background: var(--accent); }
.prompt-head { display: flex; gap: 12px; align-items: flex-start; }
.prompt-head label { font-size: 16px; line-height: 1.3; }
.num-badge { width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.plan-total { font-size: 34px; letter-spacing: -0.02em; }
.plan-total .muted { font-size: 18px; }
.seg-bar { display: flex; gap: 3px; height: 18px; border-radius: 9px; overflow: hidden; }
.seg-bar.thin { height: 12px; border-radius: 6px; }
.seg-labels { display: flex; gap: 3px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.seg-labels span { min-width: 0; overflow: hidden; white-space: nowrap; }
.status { margin-top: 14px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.status.ok { background: var(--ok-soft); color: var(--ok-ink); }
.status.over { background: var(--accent-soft); color: var(--accent-ink); }
.seg-row { border-radius: 20px; padding: 14px 12px 14px 16px; display: flex; align-items: center; gap: 12px; }
.seg-row strong { font-size: 16px; }
.seg-swatch { width: 12px; height: 40px; flex: none; border-radius: 6px; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.step-btn { width: 40px; height: 44px; border-radius: 12px; border: none; background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.step-btn:disabled { opacity: 0.35; }
.step-val { width: 44px; text-align: center; font-weight: 700; font-size: 16px; }
.fact { padding: 10px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.fact strong { font-size: 15px; }
.fact:hover { color: var(--ink); background: var(--seg); }
.outline { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.outline li, .plan-list li { display: flex; gap: 12px; }
.ol-min { width: 48px; flex: none; font-weight: 700; font-size: 15px; }
.plan-list { display: flex; flex-direction: column; gap: 14px; }
.plan-list strong { font-size: 15px; }
.vis-btn { padding: 12px; min-height: 76px; border-radius: 16px; border: 2px solid var(--line); background: #FFFFFF; text-align: start; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.vis-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.note[hidden] { display: none; }
.note.warn { background: var(--warn-soft); color: var(--warn-text); }
.note.warn .i { color: var(--warn-ink); margin-top: 1px; }
.note.ok { background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; align-items: center; padding: 10px 14px; }

/* ---------- lesson ---------- */
.lesson-hero { padding: 16px 16px 28px; border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.hero-art { position: absolute; inset-inline-end: -40px; top: 36px; opacity: 0.32; pointer-events: none; }
.hero-art svg { width: 210px; height: 210px; }
.hero-bar { position: relative; display: flex; align-items: center; justify-content: space-between; }
.hero-text { position: relative; padding: 36px 4px 0; display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.hero-text .pill { align-self: flex-start; height: 30px; padding: 0 12px; font-weight: 700; }
.hero-text h1 { overflow-wrap: anywhere; }
.hero-pitch { font-size: 16px; line-height: 1.45; }
.lesson-main { padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.info-tile { padding: 14px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; min-width: 0; color: var(--ink); text-decoration: none; }
.info-tile > .i { color: var(--accent-ink); }
.info-tile strong { font-size: 15px; }
.info-tile.dashed { border: 1.5px dashed var(--line-2); }
.info-tile.dashed > .i { color: var(--muted); }
.info-tile.dashed strong { font-size: 14px; line-height: 1.25; }
a.info-tile.dashed:hover { border-color: var(--accent); color: var(--ink); }
.info-tile.accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.info-tile.accent > .i { color: #FFFFFF; }
.info-tile.accent:hover { background: var(--accent-hover); color: #FFFFFF; }
.host-card { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.before-card { padding: 18px; border-radius: 22px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 12px; }
.before-card h2 .i { color: var(--accent-ink); }
.steps { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.steps li { display: flex; gap: 10px; overflow-wrap: anywhere; }
.num { width: 22px; height: 22px; flex: none; border-radius: 7px; background: #FFFFFF; color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.faces { display: flex; align-items: center; padding-inline-end: 10px; }
.face { margin-inline-end: -10px; border: 3px solid #FFFFFF; box-sizing: content-box; }
.face.more { background: var(--bg); color: var(--ink-2); font-size: 12px; }
.going-count { font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: end; }
.going-yes { height: 58px; border-radius: 18px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.surprise-box { padding: 22px 16px; border-radius: 18px; background: var(--warn-soft); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.surprise-box strong { font-size: 17px; }
.after-card { padding: 18px; border-radius: 22px; background: #FFFFFF; border: 1.5px dashed var(--line-2); display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.after-card:hover { color: var(--ink); border-color: var(--accent); }
.after-card .soft-square { color: var(--accent-ink); }
.round-btn.small { font-size: inherit; }
.host-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.host-tools .btn { font-size: 15px; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.status-pill .dot { background: var(--accent); }
.status-pill.ok { background: #DDF2EA; color: var(--ok-ink); }
.status-pill.ok .dot { background: var(--ok); }
.react-chip { height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.react-chip.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.sent-box { background: var(--ok-soft); border-radius: 22px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sent-check { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.body-ok { font-size: 15px; line-height: 1.45; color: var(--ok-text); }
.lock-box { padding: 18px; display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lock-box .i { color: var(--muted); }
.note-card { padding: 16px; border-radius: 20px; display: flex; gap: 12px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-chips span { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }

/* ---------- profile ---------- */
.profile-top { padding: 16px 16px 0; display: flex; justify-content: flex-start; }
.profile-top.end { justify-content: flex-end; }
.profile-head { padding: 4px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.profile-head .tiny { font-size: 13px; }
.bio { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 320px; }
.stats { margin: 20px 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 14px 8px; border-radius: 18px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 26px; color: var(--accent-ink); }
.stat .small { font-size: 13px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--seg); }
.tabs button { height: 44px; border-radius: 12px; border: none; background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; }
.tabs button.on { background: #FFFFFF; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--ink); }
.lesson-row:hover { color: var(--ink); border-color: var(--line-2); }
.lr-title { font-size: 16px; line-height: 1.25; }
.date-chip { width: 52px; height: 56px; flex: none; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.date-chip .mon { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.date-chip .day { font-size: 21px; }
.friend-note { padding: 16px; border-radius: 20px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 10px; }
.friend-note blockquote { font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-line; }
.friend-note figcaption { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); flex-wrap: wrap; }
.friend-note figcaption a { color: var(--ink-2); }

.install-card { padding: 16px; border-radius: 20px; display: flex; gap: 14px; align-items: center; }
.install-card img { border-radius: 14px; flex: none; }
.install-card .i { display: inline; vertical-align: -3px; }

.edit-head { padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.photo-edit { border-radius: 24px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photo-edit .tiny { font-size: 13px; }

/* ---------- toast & loading ---------- */
#toast { position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); z-index: 50; max-width: min(440px, calc(100% - 32px)); padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(34, 29, 25, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
#toast:empty { display: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--track); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- language switch ---------- */
.top-tools { display: flex; justify-content: flex-end; margin-bottom: -12px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink-2); font-weight: 600; font-size: 14px; flex: none; }
.lang-toggle:hover { color: var(--ink); border-color: var(--faint); }
.lang-toggle[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--body); }

/* ---------- welcome walkthrough ---------- */
.intro { padding: 16px 0 24px; }
.intro-top { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 44px; }
.intro-top .text-btn { font-size: 15px; padding: 10px 4px; }
.slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 16px 24px 8px; display: flex; flex-direction: column; gap: 22px; }
.slide-art { height: min(300px, 38vh); min-height: 220px; border-radius: 28px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slide-text { display: flex; flex-direction: column; gap: 10px; }
.slide-text .lede { font-size: 17px; }
.joke-line { font-weight: 700; color: var(--accent-ink); font-size: 16px; }
.intro-foot { padding: 8px 24px 0; display: flex; flex-direction: column; gap: 18px; }
.intro-foot .btn { width: 100%; }
.intro-dots { display: flex; justify-content: center; gap: 4px; }
.intro-dot { width: 28px; height: 28px; border: none; background: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.intro-dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--track); transition: width 0.2s, background 0.2s; }
.intro-dot.on::before { width: 22px; background: var(--accent); }
.art-stack { position: relative; display: inline-flex; }
.art-stack .logo-mark { border-radius: 34px; }
.art-formats { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; }
.art-tile { height: 84px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; text-align: center; }
.art-tile svg { width: 44px; height: 44px; }
.art-card { width: min(260px, 80%); background: #FFFFFF; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(34, 29, 25, 0.08); }
.art-card > .row-between > .i { color: var(--ok); }
.art-big { font-size: 30px; }
.art-big .muted { font-size: 16px; }
.seg-swatch.mini { width: 8px; height: 16px; border-radius: 4px; }
.art-btn { width: 100%; pointer-events: none; }
.art-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }

/* ---------- shared bits for the newer screens ---------- */
.gap-22 { gap: 22px; }
.page-head { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.chip-btn:hover { color: var(--ink); border-color: var(--faint); }
.chip-btn.danger { color: var(--danger); border-color: #F1C9C3; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill-soft { background: var(--accent-soft); color: var(--accent-ink); align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.opener.roulette { border-style: solid; border-color: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.icon-btn.small { width: 36px; height: 36px; background: var(--bg); }
.danger-link { color: var(--danger); }
.wrapped-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--ink); }
.wrapped-link:hover { color: var(--ink); border-color: var(--line-2); }
.wrapped-link .soft-square { background: var(--warn-soft); color: var(--warn-ink); }
.profile-top { justify-content: space-between; align-items: center; gap: 8px; }
.profile-top.end { justify-content: flex-end; }
.note:not(.warn):not(.ok) { background: var(--bg); color: var(--ink-2); }

/* clubs */
.club-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; max-width: 100%; }
.club-chip:hover { color: var(--ink); }
.club-head { padding: 18px 16px 0; display: flex; align-items: center; gap: 12px; }
.club-badge { width: 84px; height: 84px; border-radius: 26px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; }
.club-badge.small { width: 52px; height: 52px; border-radius: 16px; }
.invite-box { padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1.5px dashed var(--line-2); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; color: var(--ink-2); }
.member-row { padding: 12px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.member-main { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.member-main:hover { color: var(--ink); }
.member-tools { display: flex; gap: 8px; flex-wrap: wrap; padding-inline-start: 56px; }
.club-row { padding: 12px 14px; border-radius: 16px; display: flex; align-items: center; gap: 10px; }

/* wishes */
.wish-card { padding: 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 12px; }
.wish-top { display: flex; gap: 12px; align-items: flex-start; }
.wish-title { font-size: 17px; line-height: 1.3; }
.vote-btn { flex: none; min-width: 56px; height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 14px; }
.vote-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.vote-btn:disabled { opacity: 0.6; }
.wish-taught { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--ok-soft); color: var(--ok-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.wish-taught:hover { color: var(--ok-ink); }

/* lesson extras */
.cal-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 4px; }
.question { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: none; padding-bottom: 0; }
.answer { margin-inline-start: 42px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 2px; }
.reply-row { padding-inline-start: 42px; }
.reply-row .input { height: 44px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-cell { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(34, 29, 25, 0.7); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.parent-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); }

/* presenter */
.present { min-height: 100vh; min-height: 100dvh; max-width: 640px; margin: 0 auto; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.present-top { display: flex; align-items: center; justify-content: space-between; }
.present-steps { display: flex; gap: 4px; height: 8px; }
.present-steps span { border-radius: 4px; background: rgba(255, 255, 255, 0.7); }
.present-steps span.done { background: var(--c); opacity: 0.45; }
.present-steps span.on { background: var(--c); }
.present-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.present-name { font-size: clamp(30px, 8vw, 48px); line-height: 1.15; }
.present-desc { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 520px; }
.present-clock { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 24vw, 140px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); direction: ltr; }
.present-clock.over { color: var(--danger); }
.present-over { font-weight: 700; color: var(--danger); }
.present-bar { width: min(420px, 100%); height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.7); overflow: hidden; }
.present-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }
.present-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.round-btn.big { width: 60px; height: 60px; background: #FFFFFF; }
.round-btn.big:disabled { opacity: 0.4; }
.present-play { min-width: 170px; }
.present-done { flex: 1; justify-content: center; color: var(--ok-ink); }

/* forms: radio cards and switches */
.plain-fieldset { border: none; margin: 0; padding: 0; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #FFFFFF; font-weight: 600; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.toggle-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--track); position: relative; flex: none; cursor: pointer; transition: background 0.2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: inset-inline-start 0.2s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { inset-inline-start: 24px; }

.note-card.mine { border-color: var(--ok-line); background: var(--ok-soft); }
.badges-strip { padding: 12px 14px; border-radius: 18px; }
.badges-strip summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.badges-strip summary::-webkit-details-marker { display: none; }
.badge-mini-row { display: flex; flex: none; }
.badge-mini { width: 30px; height: 30px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); border: 2px solid #FFFFFF; display: inline-flex; align-items: center; justify-content: center; margin-inline-end: -8px; }
.badge-mini-row .badge-mini:last-child { margin-inline-end: 0; }
.badge-mini.off { background: var(--seg); color: var(--faint); }
.badge-toggle { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink); flex: none; }
.badges-strip[open] .badge-toggle .i { transform: rotate(90deg); }
[dir="rtl"] .badges-strip[open] .badge-toggle .i { transform: scaleX(-1) rotate(90deg); }

/* badges & Wrapped */
.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badge { padding: 12px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; opacity: 0.45; filter: grayscale(1); }
.badge.on { opacity: 1; filter: none; }
.badge-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.wrap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wrap-card { padding: 16px 12px; border-radius: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.wrap-big { font-size: 34px; line-height: 1; }
.wrap-line { padding: 14px 16px; border-radius: 18px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.wrap-line > .i { color: var(--accent-ink); }
.wrap-line a { color: var(--ink); }

/* home: feed switch, For you, banners */
.seg-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--seg); }
.seg-switch button { height: 38px; border-radius: 10px; border: none; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.seg-switch button.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 3px rgba(34, 29, 25, 0.08); }
.dk-cal .seg-switch { margin-bottom: 14px; max-width: 420px; }
.for-you { margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.screen .for-you { padding: 0 16px; }
.fy-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; }
.dk-aside .fy-row { flex-direction: column; overflow: visible; }
.fy-card { flex: 0 0 220px; scroll-snap-align: start; padding: 0 0 12px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.dk-aside .fy-card { flex: none; }
.fy-card:hover { color: var(--ink); border-color: var(--line-2); }
.fy-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.fy-title { padding: 0 12px; font-size: 15px; line-height: 1.3; }
.fy-card .who { padding: 0 12px; }
.fy-why { margin: 0 12px; padding: 4px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; align-self: flex-start; }
.no-club { margin: 16px 16px 0; }
.dk-aside .no-club { margin: 0; }
.install-banner { margin: 16px 16px 0; padding: 10px 10px 10px 12px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.install-banner img { border-radius: 10px; flex: none; }
.where-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* create flow: topics, notes, materials, check rows */
.topic-chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.topic-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.topic-chip.static { height: 28px; display: inline-flex; align-items: center; }
.center-wrap { justify-content: center; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.rules-details summary, .seg-notes summary, .archived-list summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); list-style: none; }
.rules-details summary::-webkit-details-marker, .seg-notes summary::-webkit-details-marker, .archived-list summary::-webkit-details-marker { display: none; }
.rules-details[open] summary { margin-bottom: 10px; }
.rules-list li, .install-steps li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.rules-list .num, .install-steps .num { background: var(--accent-soft); }
.install-steps .i { display: inline; vertical-align: -3px; }
.app-icon { border-radius: 22px; box-shadow: 0 8px 24px rgba(204, 74, 20, 0.25); }
.ts-box { min-height: 0; }
.ts-box:not(:empty) { min-height: 65px; }
.seg-row { flex-wrap: wrap; }
.seg-notes { flex-basis: 100%; }
.seg-notes[open] summary { margin-bottom: 8px; }
.material-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); color: var(--ink); text-decoration: none; }
.material-row.link:hover { color: var(--ink); background: var(--seg); }
.material-row > .i { color: var(--accent-ink); }
.ellipsis { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fact.wide { grid-column: 1 / -1; margin-top: 8px; }
.fact.wide strong { display: flex; align-items: center; gap: 6px; }

/* lesson page extras */
.info-tile.span-2 { grid-column: 1 / -1; }
a.info-tile.span-2 .chip-btn { margin-inline-start: auto; flex: none; }
.hero-tag { background: rgba(255, 255, 255, 0.75); color: var(--ink-2); }
.going-yes.wait { background: var(--warn-soft); color: var(--warn-ink); font-size: 15px; }
.disclaimer { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.present-notes { width: min(560px, 100%); padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); text-align: start; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; max-height: 30vh; overflow-y: auto; }
.present-notes .tiny { display: flex; align-items: center; gap: 6px; color: var(--muted); }

/* profiles & follows */
.follow-counts { font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.count-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.tabs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabs.four button { font-size: 13px; padding: 0 4px; }
.archived-list summary { font-size: 19px; color: var(--ink); }

/* five-item bottom menu */
.bottom-nav { justify-content: space-between; padding-inline: 6px; }
.bottom-nav .nav-item { min-width: 0; flex: 1; font-size: 11px; }
.bottom-nav .nav-fab { flex: none; margin-inline: 4px; }

/* ---------- quick follow, bell, toast with Undo ---------- */
.qf-wrap { position: relative; display: inline-flex; flex: none; }
.qf { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #FFFFFF; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.qf::after { content: ''; position: absolute; inset: -10px; } /* a bigger tap area than it looks */
.qf:hover { background: var(--accent-hover); }
.qf.qf-s { width: 17px; height: 17px; inset-inline-end: -5px; bottom: -5px; border-width: 1.5px; }
.qf.done { background: var(--ok); cursor: default; }
.faces .qf-wrap { margin-inline-end: -10px; }
.faces .qf-wrap .face { margin-inline-end: 0; }
.bell-link { position: relative; }
.bell-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #FFFFFF; border: 2px solid #FFFFFF; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.bell-count[hidden] { display: none; }
.page-head .bell-link, .home-head .bell-link { background: #FFFFFF; }
.dk-right .bell-link { background: var(--bg); }
#toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 10px; }
.toast-action { margin-inline-start: auto; border: none; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font: inherit; font-weight: 800; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.toast-action:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Explore & videos ---------- */
.tabs a { height: 44px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs a.on { background: #FFFFFF; }
.tabs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs.three button { font-size: 14px; padding: 0 4px; line-height: 1.15; }
.page-head .row-between { width: 100%; }
.page-head .tabs { width: 100%; }
.pt-0 { padding-top: 0; }
.h-26 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.self-center { align-self: center; }
.gap-4 { gap: 4px; }
.link-btn { border: none; background: none; padding: 0; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.v-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v-card { padding: 0; overflow: hidden; border-radius: 20px; display: flex; flex-direction: column; }
.v-link { display: block; text-decoration: none; }
.v-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft), var(--seg)); overflow: hidden; }
.v-thumb.big { border-radius: 18px; }
.v-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-thumb.tall img { object-fit: contain; background: #1D1915; }
.v-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent-ink); opacity: 0.45; }
.v-thumb img + .v-fallback { display: none; }
.v-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(34, 29, 25, 0.72); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.v-play .i { margin-left: 3px; } /* the triangle looks centred; it points right in every language */
.v-site { position: absolute; inset-inline-start: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(34, 29, 25, 0.72); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.v-info { display: flex; gap: 10px; padding: 12px 14px 14px; align-items: flex-start; }
.v-face { display: inline-flex; }
.v-title { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-title:hover { color: var(--accent-ink); }
.v-stats { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.v-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.v-stats .accent { color: var(--accent-ink); }
.v-lesson { color: var(--ok-ink); }
.v-player { display: block; border-radius: 18px; overflow: hidden; background: #1D1915; text-decoration: none; }
.v-start { display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer; }
.v-start .v-thumb.big, .v-player > .v-thumb.big { border-radius: 0; }
.v-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.v-player iframe.tall { aspect-ratio: 9 / 16; max-height: 78vh; }
.v-preview .v-player { margin-bottom: 6px; }
.people-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.person-card { flex: 0 0 132px; scroll-snap-align: start; padding: 14px 10px 12px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.person-card a { text-decoration: none; color: var(--ink); }
.person-name { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.person-card .btn { width: 100%; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment.is-hidden { opacity: 0.6; }
.comment-body { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { min-height: 44px; resize: vertical; }
.accent-bg { background: var(--accent); color: #FFFFFF; }
.accent-bg:hover { background: var(--accent-hover); color: #FFFFFF; }
.quote { padding: 8px 12px; border-inline-start: 3px solid var(--line-2); background: var(--bg); border-radius: 8px; }
.fy-video .fy-thumb { position: relative; display: block; height: 92px; background: linear-gradient(135deg, var(--accent-soft), var(--seg)); overflow: hidden; }
.fy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fy-vlabel { position: absolute; inset-inline-start: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: rgba(34, 29, 25, 0.72); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.small-loading { min-height: 120px; }

/* ---------- notifications ---------- */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.notif:hover { color: var(--ink); border-color: var(--line-2); }
.notif.unread { background: var(--accent-soft); border-color: transparent; }
.notif-face { position: relative; flex: none; display: inline-flex; }
.notif-face.soft-square { width: 44px; height: 44px; }
.notif-kind { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #FFFFFF; border: 2px solid #FFFFFF; display: flex; align-items: center; justify-content: center; }
.notif-text { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* ======================================================================
   UX redesign: five tabs, sheets, Home "this week", Discover, Club, You,
   Settings, lesson before/after, 4-step create. Same look, new structure.
   ====================================================================== */

/* small helpers */
.accent-ink { color: var(--accent-ink); }
.warn-ink { color: var(--warn-ink); }
.ok-ink { color: var(--ok-ink); }
.mt-16 { margin-top: 16px; }
.align-start { align-items: flex-start; }
.pad-x-20 { padding-inline: 20px; }
.danger-text { color: var(--danger); }
.danger-text:hover { color: var(--danger); }
.lesson-main .stats { margin: 0; }

/* tab headers (title + bell) and the bell's dot */
.tab-head { padding: 18px 20px 0; display: flex; align-items: center; gap: 12px; }
.tab-head .bell-link, .home-head .bell-link, .club-head .bell-link, .profile-top .bell-link { background: #FFFFFF; }
.bell-dot { position: absolute; top: 9px; inset-inline-end: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #FFFFFF; }
.bell-dot[hidden] { display: none; }
.nav-fab { border: none; cursor: pointer; }

/* filter and topic chips */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-row.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chip-row.scroll::-webkit-scrollbar { display: none; }
.chip-row.scroll .topic-chip { flex: none; }
.filter-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.filter-chip.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.topic-chip.big { height: 42px; padding: 0 16px; font-size: 15px; }

/* bottom sheets */
.sheet-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; border: none; background: rgba(34, 29, 25, 0.38); cursor: default; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(34, 29, 25, 0.2); animation: sheet-up 0.22s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 14px; position: relative; }
.sheet-grip { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); }
.create-choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: start; font: inherit; cursor: pointer; }
.create-choice:hover { color: var(--ink); border-color: var(--line-2); }
.create-choice.big { padding: 18px 14px; border-color: var(--accent); }
.create-choice.big .cs-icon { background: var(--accent); color: #FFFFFF; width: 48px; height: 48px; }
.create-choice.off { opacity: 0.5; cursor: not-allowed; }
.cs-icon { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.wanted-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); }
.menu-sheet { display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border-radius: 18px; padding: 6px; border: 1px solid var(--line); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: none; border-radius: 12px; background: transparent; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.menu-item:hover { background: var(--bg); color: var(--ink); }
.menu-item.danger { color: var(--danger); }
.install-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.install-mini img { border-radius: 9px; }

/* desktop dropdowns (Create ▾, avatar ▾) and the top-bar search */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 30; min-width: 220px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(34, 29, 25, 0.16); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu-list.end { inset-inline-start: auto; inset-inline-end: 0; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: none; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; text-align: start; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--bg); color: var(--ink); }
.dk-search { flex: 1 1 220px; max-width: 360px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--muted); }
.dk-search .input { border: none; background: transparent; height: 42px; padding: 0; min-width: 0; flex: 1; }
.brand-link { text-decoration: none; color: inherit; }

/* Home: next lesson, week strip, agenda, wanted, first week */
.next-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: var(--ink); border-inline-start: 6px solid var(--accent-line, var(--accent)); }
.next-card:hover { color: var(--ink); }
.ask-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--accent-soft); border-color: transparent; }
.ask-card:hover { color: var(--ink); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ws-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ws-day:hover { color: var(--ink); border-color: var(--line-2); }
.ws-day.today { border: 2px solid var(--accent); }
.ws-wd { font-size: 11px; font-weight: 700; color: var(--muted); }
.ws-n { font-size: 16px; font-weight: 700; }
.ws-day .dots { min-height: 6px; }
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-day { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 80px; }
.agenda-day.empty { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--ink-2); }
.ag-day { font-size: 14px; font-weight: 800; color: var(--ink-2); padding: 0 4px; }
.agenda-row, .coming-row { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.coming-row { text-decoration: none; color: var(--ink); }
.coming-row:hover { color: var(--ink); border-color: var(--line-2); }
.agenda-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.agenda-link:hover { color: var(--ink); }
.ag-time { display: flex; flex-direction: column; min-width: 62px; font-weight: 700; font-size: 14px; }
.ag-bar { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.ag-title { font-size: 16px; line-height: 1.3; }
.wanted-card { padding: 16px 18px; border-radius: 22px; background: #FFFFFF; }
.month-card { padding: 14px 12px; border-radius: 22px; }
.month-card.compact .cal-cell { height: 40px; font-size: 13px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check-item.done { color: var(--muted); }
.check-item.done .grow { text-decoration: line-through; }
.check-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.check-item.done .check-dot { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; }
.person-row a { color: var(--ink); text-decoration: none; }

/* Discover */
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 50px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); color: var(--muted); }
.search-box .input { border: none; background: transparent; height: 46px; padding: 0; flex: 1; min-width: 0; font-size: 16px; }
.join-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.join-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--ink); height: 100%; }
.join-card:hover { color: var(--ink); border-color: var(--line-2); }
.jc-title { font-size: 17px; line-height: 1.3; }
.wish-prompt { padding: 16px 18px; border-radius: 20px; background: var(--accent-soft); border-color: transparent; }
.v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v-grid .v-info { padding: 10px; gap: 8px; }
.v-grid .v-face .avatar { width: 28px !important; height: 28px !important; font-size: 11px !important; }
.v-grid .v-title { font-size: 14px; }
.v-grid .v-play { width: 42px; height: 42px; }
.rail-opt { display: block; width: 100%; text-align: start; padding: 8px 12px; border-radius: 10px; border: none; background: none; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.rail-opt.on { background: var(--accent-soft); color: var(--accent-ink); }

/* Club */
.club-switch { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0; color: var(--ink); cursor: pointer; text-align: start; }
.faces.big { flex-wrap: wrap; row-gap: 8px; }
.faces.big a { display: inline-flex; }

/* You */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stats.four .stat { padding: 12px 4px; border: 1px solid var(--line); background: #FFFFFF; font: inherit; color: inherit; cursor: default; }
.stats.four button.stat { cursor: pointer; }
.stats.four button.stat:hover { border-color: var(--line-2); }
.stats.four .stat strong { font-size: 22px; }
.lesson-row a { text-decoration: none; color: var(--ink); }

/* Settings */
.settings-groups { gap: 20px; }
.settings-list { padding: 4px 0; display: flex; flex-direction: column; }
.settings-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.settings-list > :first-child { border-top: none; }
.settings-row:hover { color: var(--ink); background: var(--field); }
.danger-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; color: var(--danger); text-decoration: none; border-color: #F3C9C5; }
.danger-card:hover { color: var(--danger); }

/* Notifications: actions inside the row */
.notif { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
.notif-main { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.notif-main:hover { color: var(--ink); }
.notif-action { padding-inline-start: 56px; }
.notif .unread-dot { position: absolute; top: 18px; inset-inline-end: 14px; }
.notif.unread .notif-main { padding-inline-end: 18px; }
.needs .notif { border-color: var(--accent); }

/* Lesson: facts, teacher, going, sticky bar, after mode */
.facts-card { padding: 16px 18px; border-radius: 20px; }
.teacher-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; }
.teacher-row a { color: var(--ink); text-decoration: none; }
.going-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 4px; }
.sticky-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 15; width: 100%; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(34, 29, 25, 0.06); }
.sticky-bar .btn-lg { height: 52px; }
.sticky-bar .going-yes { height: 52px; }
.screen.has-sticky { padding-bottom: 96px; }
.decision-card { position: sticky; top: 96px; }
.decision-card .sticky-bar { position: static; transform: none; width: auto; max-width: none; padding: 0; border: none; box-shadow: none; background: none; flex-wrap: wrap; }
.count-pill.soft { background: var(--accent-soft); color: var(--accent-ink); }
.lesson-hero.after { min-height: 0; }
.old-details > summary { cursor: pointer; list-style: none; }
.old-details > summary::-webkit-details-marker { display: none; }
.old-details[open] > summary .i { transform: rotate(180deg); }

/* Create: compact formats, plan timing, extras as rows */
.progress.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.progress.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.format-chips { display: flex; flex-direction: column; gap: 8px; }
.format-chip { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 2px solid var(--line); background: #FFFFFF; color: var(--ink); text-align: start; font: inherit; cursor: pointer; }
.format-chip.on { border-width: 2px; }
.fc-mini { width: 52px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fc-mini svg { width: 100%; height: 100%; }
.extra-row { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.extra-row:first-of-type { border-top: none; padding-top: 0; }

/* ---------- live now, drafts, repeat, public clubs ---------- */
.live-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 999px; background: #FDE3E0; color: var(--danger); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; animation: live-pulse 1.4s ease-in-out infinite; }
.live-dot.light { background: #FFFFFF; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.going-yes.live { background: #FDE3E0; color: var(--danger); }
.club-tag { font-weight: 700; color: var(--ink-2); }
.club-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.club-desc { margin: 4px 0 0; }
.flow-foot.wrap { flex-wrap: wrap; }
.flow-foot .draft-btn { flex-basis: 100%; justify-content: center; }
.choice.small { min-width: 44px; height: 40px; padding: 0 10px; }
label.vis-btn { cursor: pointer; }
label.vis-btn:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
label.vis-btn:not(:has(input:checked)).on { border-color: var(--line-2); background: #FFFFFF; }

/* ---------- desktop frame for every logged-in page (see render() in core.js) ---------- */
@media (min-width: 900px) {
  .dk-header { position: sticky; top: 0; z-index: 20; }
  .dk-page { padding: 16px 24px 48px; }
  .dk-page .screen { max-width: 760px; min-height: 0; }
  .dk-page.wide .screen { max-width: 1120px; }
  .dk-page .screen.with-nav { padding-bottom: 24px; }
  .dk-page .bottom-nav { display: none; }
  .dk-page .page-head .bell-link { display: none; } /* the top bar has the bell */
  .dk-page .page-head { padding-inline: 4px; }
  .dk-page .lesson-main { padding-inline: 0; }
  .dk-page .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-page .people-row { flex-wrap: wrap; overflow: visible; }
  .dk-page.wide .tabs, .dk-page.wide .seg-switch { max-width: 440px; }
  .dk-page.wide select.input { max-width: 300px; }
  /* two columns: main content and a side rail (they swap sides in Arabic on their own) */
  .dk-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .dk-two.profile-dk { grid-template-columns: 320px minmax(0, 1fr); }
  .dk-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
  .dk-two > .lesson-main, .dk-discover > .lesson-main { padding-top: 8px; }
  .dk-discover { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
  .dk-rail { position: sticky; top: 92px; padding: 18px 8px; }
  .dk-page .join-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-page .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet-layer { align-items: center; }
  .sheet-layer .sheet { border-radius: 24px; }
  .dk-page .tabs.four { max-width: 520px; }
  .lesson-dk .lesson-cols { padding: 0 16px; }
  .lesson-main.narrow-dk { max-width: 720px; margin: 0 auto; width: 100%; }
  .dk-page .screen.has-sticky { padding-bottom: 24px; }
  .dk-page .club-head { padding-inline: 4px; }
  .dk-page .pad-x-20 { padding-inline: 4px; }
  .dk-header .dk-inner { flex-wrap: nowrap; }
  .dk-right .menu > summary.btn { display: inline-flex; }
  .dk-page .badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #toast { bottom: 32px; }
}

/* ---------- Arabic / right-to-left ---------- */
[dir="rtl"] .mirror { transform: scaleX(-1); }
[lang="ar"] body { line-height: 1.55; }
[lang="ar"] .display, [lang="ar"] .h-34, [lang="ar"] .h-32, [lang="ar"] .h-30, [lang="ar"] .h-28, [lang="ar"] .plan-total, [lang="ar"] .eyebrow { letter-spacing: 0; }
[lang="ar"] .h-34 { line-height: 1.25; }
[lang="ar"] .h-32, [lang="ar"] .h-30, [lang="ar"] .h-28 { line-height: 1.3; }
[lang="ar"] .wd-row, [lang="ar"] .day-btn .wd { font-size: 11px; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }

@media (max-width: 360px) {
  .day-btn { height: 62px; }
  .day-btn .n { font-size: 16px; }
  .step-btn { width: 34px; }
  .step-val { width: 36px; }
  .h-34 { font-size: 30px; }
}

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

/* ---------- Plans (Pro and Institute), payment, AI coach, owner's vouchers ---------- */

/* Placeholder Pro / Institute badge until the final badge design arrives. */
.plan-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 4px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
[dir="rtl"] .plan-badge { padding: 0 4px 0 9px; }
.plan-badge svg { flex: none; }
.plan-badge.pro { background: #FCE9DD; color: #A33A0E; }
.plan-badge.institute { background: #E4EBF3; color: #1E3A5F; }
.plan-badge.sm { height: 20px; padding: 0 7px 0 3px; font-size: 11px; gap: 4px; }
[dir="rtl"] .plan-badge.sm { padding: 0 3px 0 7px; }

.period-tabs .save-pill { font-size: 11px; font-weight: 800; color: var(--ok-ink); background: var(--ok-soft); border-radius: 999px; padding: 2px 6px; margin-inline-start: 4px; }
.plan-grid { display: grid; gap: 12px; }
.plan-card { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid transparent; }
.plan-card.pro { border-color: var(--accent-soft); }
.plan-card.picked { border-color: var(--accent); }
.plan-card.inst.picked { border-color: #3A7BD5; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .display { font-size: 28px; font-weight: 800; }
.plan-items li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; padding: 3px 0; }
.plan-items .i { color: var(--ok); flex: none; margin-top: 2px; }
.plan-checkout { border-top: 1px solid var(--line); padding-top: 12px; }
.plan-summary { background: var(--field); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.club-choice { height: auto; min-height: 48px; padding: 8px 12px; display: flex; flex-direction: column; align-items: flex-start; text-align: start; gap: 2px; }
.club-choice:disabled { opacity: 0.55; }
.soft-square.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pay-screen .mysr-form { margin-top: 4px; }

.coach-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.coach-card .btn { flex: none; }
.coach-sq { background: #FFFFFF; }
.cue-card { border-inline-start: 4px solid var(--line-2); padding: 6px 0 6px 12px; padding-inline: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.coach-tips li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.coach-tips .i { color: var(--accent); flex: none; margin-top: 3px; }
.thumbs { display: inline-flex; gap: 4px; }
.thumb { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #FFFFFF; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.thumb.on[data-v="up"] { background: var(--ok-soft); color: var(--ok-ink); border-color: var(--ok); }
.thumb.on[data-v="down"] { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn-ink); }
.stars { display: flex; gap: 6px; }
.star { width: 44px; height: 44px; border: none; background: transparent; color: var(--faint); padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.star.on { color: #D99A12; }
.star.on svg { fill: currentColor; }
.ok-text { color: var(--ok-ink); font-weight: 600; }
.coach-foot { position: sticky; bottom: 0; }
.voucher-code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 16px; letter-spacing: 0.04em; }
.owner-stats .display { font-size: 24px; }

@media (min-width: 900px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* ---------- Owner dashboard and Studio ---------- */

.tabs a { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.tabs a.on { background: #FFFFFF; box-shadow: 0 1px 2px rgba(34, 29, 25, 0.08); }
.tabs.four a { font-size: 13px; padding: 0 4px; }
.tabs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pad-12 { padding: 12px; }
.ink { color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-tile { min-width: 0; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.dash-charts { display: grid; gap: 12px; }
.locked-preview { opacity: 0.5; filter: blur(1px); }

/* Weekly bars: one series, thin bars, rounded data ends, 2px gaps; the current week is solid. */
.week-bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid var(--line); }
.bar-slot { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.bar-slot .bar { width: min(70%, 28px); border-radius: 4px 4px 0 0; background: var(--today); }
.bar-slot .bar.now { background: var(--accent); }
.bar-slot:hover .bar, .bar-slot:focus-visible .bar { background: var(--accent-hover); }
.bar-slot:hover::after, .bar-slot:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; pointer-events: none; z-index: 2;
}
.mini-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.mini-table th, .mini-table td { text-align: start; padding: 4px 6px; border-bottom: 1px solid var(--line); }

.studio-lesson { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.studio-lesson > a { text-decoration: none; color: inherit; }
.studio-counts { display: flex; gap: 10px; color: var(--muted); flex: none; }
.studio-counts span { display: inline-flex; align-items: center; gap: 3px; }
.income-card { border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; }
.note.announce { background: var(--accent-soft); color: var(--accent-ink); align-items: center; font-weight: 600; }

@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- Club chat and audience targeting ---------- */

.nav-item { position: relative; }
.nav-dot { position: absolute; top: 8px; inset-inline-end: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.chat-head { display: flex; align-items: center; gap: 10px; flex-direction: row; }
.chat-main { padding-bottom: 8px; }
.chat-list { display: flex; flex-direction: column; gap: 2px; }
.chat-day { align-self: center; margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.chat-day span { background: var(--seg); padding: 3px 10px; border-radius: 999px; }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.chat-msg.grouped { margin-top: 2px; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-face { width: 30px; flex: none; }
.chat-bubble { max-width: min(78%, 520px); background: var(--card); border-radius: 16px; padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(34, 29, 25, 0.06); }
.chat-msg.mine .chat-bubble { background: var(--accent-soft); }
.chat-name { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.chat-body { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.chat-removed { font-size: 14px; font-style: italic; color: var(--muted); }
.chat-quote { font-size: 12px; color: var(--muted); border-inline-start: 3px solid var(--line-2); padding-inline-start: 8px; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-meta { align-self: flex-end; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.chat-more { border: none; background: transparent; color: var(--muted); padding: 2px; display: inline-flex; border-radius: 6px; }
.chat-more:hover { color: var(--ink); background: var(--seg); }
.chat-compose { position: sticky; bottom: 0; z-index: 5; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; }
.with-nav .chat-compose { bottom: calc(84px + env(safe-area-inset-bottom)); }
.screen.chat-screen.with-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.screen.chat-screen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.chat-screen .chat-main { flex: 1 0 auto; width: 100%; }
.chat-screen .chat-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.chat-input { resize: none; min-height: 44px; max-height: 140px; }
.chat-send { width: 48px; padding: 0; flex: none; }
.chat-replying { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 6px 10px; }
.chat-sheet-quote { padding: 0 4px 12px; overflow-wrap: anywhere; }
.create-choice.danger strong { color: var(--danger); }
.audience-tag { gap: 4px; }
.audience-ages select { width: auto; min-width: 90px; }
.locked-card { opacity: 0.85; }
.gender-card { border: 1.5px dashed var(--line-2); }
@media (min-width: 900px) {
  .with-nav .chat-compose { bottom: 0; }
}

/* ---------- In-app video room ---------- */
.call-screen { position: fixed; inset: 0; display: flex; flex-direction: column; background: #111; z-index: 20; }
.call-bar { display: flex; align-items: center; gap: 6px; padding: calc(6px + env(safe-area-inset-top)) 10px 6px; background: #1C1B1A; color: #FFFFFF; min-height: 52px; }
.call-bar .icon-btn { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; flex: none; }
.call-title { font-size: 15px; }
.call-rec { display: contents; }
.call-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.call-btn:hover { background: rgba(255, 255, 255, 0.2); }
.call-btn.danger { background: var(--danger); }
.call-btn.rec-on { background: rgba(229, 72, 77, 0.22); color: #FFD9D6; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #FF6B63; flex: none; }
.rec-dot.on { background: #FF6B63; animation: live-pulse 1.4s ease-in-out infinite; }
@media (max-width: 599px) {
  .call-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .call-btn { padding: 0; width: 36px; }
  .call-btn.danger { width: auto; padding: 0 12px; }
  .call-btn.danger .lbl { position: static; width: auto; height: auto; clip: auto; }
}
.call-note { padding: 8px 16px; margin: 0; background: #2A2826; color: #FFE7C2; border: none; border-radius: 0; }
.call-screen rtk-meeting { flex: 1 1 auto; min-height: 0; display: block; height: 100%; }
.soft-square.pulse { animation: live-pulse 1.8s ease-in-out infinite; }
.cue-panel { position: absolute; inset-inline: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; max-height: 48vh; overflow: auto;
  background: rgba(28, 27, 26, 0.94); color: #FFFFFF; border-radius: 18px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
@media (min-width: 900px) { .cue-panel { inset-inline: auto 16px; width: 380px; top: 70px; bottom: auto; max-height: calc(100vh - 170px); } }
.cue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #D8D2CB; }
.cue-name { font-size: 20px; font-weight: 800; margin: 0; }
.cue-desc { margin: 0; font-size: 15px; line-height: 1.45; color: #EDE8E2; }
.cue-note { margin: 0; font-size: 14px; background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px 10px; color: #FFE7C2; }
.cue-nav { display: flex; justify-content: space-between; gap: 8px; }
.cue-nav .call-btn { width: auto !important; padding: 0 14px !important; }
.call-btn[disabled] { opacity: 0.4; }
.chip-btn.rec-on { color: var(--danger); border-color: #F1C9C3; }

/* ---------- Messages (inbox) ---------- */
.search-field { position: relative; display: block; }
.search-field > svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-inline-start: 42px; width: 100%; }
.tabs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs button { position: relative; }
.tab-dot { position: absolute; top: 10px; inset-inline-end: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.inbox-list { display: flex; flex-direction: column; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.inbox-row:hover { background: var(--card); }
.inbox-row.unread strong { font-weight: 800; }
.inbox-row.unread .small.muted { color: var(--ink-2); font-weight: 600; }
.inbox-face { width: 48px; height: 48px; border-radius: 16px; }
.inbox-row .row-between { min-width: 0; }
.nowrap { white-space: nowrap; flex: none; }
.plain-link { color: inherit; text-decoration: none; }
.chat-link .bell-count, .club-head .bell-count { top: -2px; inset-inline-end: -4px; }
.rec-video { width: 100%; max-height: 420px; border-radius: 14px; background: #000; }
.rec-points { margin: 0; padding-inline-start: 18px; }

/* ---------- Teach Club Space ---------- */
.tabs.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabs.five a, .tabs.five button { font-size: 12.5px; padding: 0 2px; }
.space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.space-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--ink); text-decoration: none; height: 100%; }
.space-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent-soft); }
.space-cover.empty { display: flex; align-items: center; justify-content: center; color: var(--accent-ink); aspect-ratio: 16 / 5; }
.pad-14 { padding: 12px 14px 14px; }
.deal-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 700; }
.deal-card { background: var(--accent-soft); color: var(--accent-ink); align-items: flex-start; }
.space-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.space-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.space-photos img.first { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 18px; }
.room-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.room-row:last-child { border-bottom: none; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table th { text-align: start; font-weight: 600; padding: 4px 0; }
.hours-table td { text-align: end; padding: 4px 0; }
.room-edit { display: flex; gap: 8px; align-items: center; }
.cap-input { width: 84px; flex: none; }
.hours-edit { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 44px; }
.time-input { width: 140px; }
.small-choice { height: 42px; font-size: 13px; }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.pill.ok { background: #E3F4E8; color: #1E6B3A; }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.soft { background: var(--seg); color: var(--ink-2); }
.space-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px dashed var(--accent); color: var(--ink); text-decoration: none; background: var(--card); }
.space-chosen { padding: 12px; border-radius: 16px; background: var(--accent-soft); }
.space-status { padding: 10px 12px; border-radius: 14px; background: var(--seg); font-size: 14px; display: flex; gap: 8px; }
.space-status.ok { background: #E3F4E8; }
.space-status.warn { background: var(--warn-soft); }
.booking-card .quote { background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 0; }
.qr-box { width: min(260px, 70vw); aspect-ratio: 1; background: #FFFFFF; border-radius: 12px; padding: 8px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.poster { text-align: center; }
.w-100 { width: 100%; }
.text-link.danger { color: var(--danger); }
@media print {
  body.printing-poster * { visibility: hidden !important; }
  body.printing-poster #poster, body.printing-poster #poster * { visibility: visible !important; }
  body.printing-poster #poster { position: fixed; inset: 0; box-shadow: none; justify-content: center; }
  body.printing-poster .qr-box { width: 70vw; }
}

/* ---------- Closed for updates ---------- */
.maintenance { text-align: center; gap: 16px; }
.maintenance img { border-radius: 18px; }
.maint-box { padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-2); }
.maint-box.on { border-color: var(--danger); background: #FDF0EE; }

/* ---------- We've moved (old address only) ---------- */
.moved-banner { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; background: #221D19; color: #FFFFFF; border-radius: 18px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; box-shadow: 0 12px 30px rgba(34, 29, 25, 0.25); }
.moved-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.45; }
.moved-text span { color: #E6DFD7; }
.moved-actions { display: flex; gap: 6px; }
.moved-banner .btn-ghost { color: #FFFFFF; }
