/* 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; }

/* ---------- Lesson Coach (making a lesson step by step) ---------- */
.progress.lc-progress { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.lc-text { min-height: 84px; }
.lc-help { display: flex; flex-direction: column; gap: 8px; }
.lc-ghost { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lc-examples { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lc-examples ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.lc-coach { border-radius: 18px; background: #E4EBF3; padding: 12px; display: flex; flex-direction: column; gap: 10px; color: #1E3A5F; }
.lc-coach-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.lc-coach-head .muted { color: #4A5B70; }
.lc-coach-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lc-coach-actions button { border: 0; background: #FFFFFF; color: #1E3A5F; border-radius: 12px; min-height: 54px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.lc-coach-actions button small { font-weight: 500; font-size: 11px; color: #4A5B70; }
.lc-coach-actions button:disabled { opacity: .45; cursor: default; }
.lc-out { background: #FFFFFF; color: var(--ink); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.lc-out-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1E3A5F; }
.lc-option { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.lc-small { border: 0; border-radius: 10px; height: 36px; padding: 0 12px; font: inherit; font-weight: 700; font-size: 13px; background: #1E3A5F; color: #FFFFFF; cursor: pointer; }
.lc-small.alt { background: transparent; color: #1E3A5F; border: 1.5px solid #C9D6E6; }
.lc-notes { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.lc-nudge { border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); padding: 10px 12px; font-size: 14px; font-weight: 600; }
.lc-nudge a { color: inherit; }
.lc-part { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lc-sum { margin: 0; font-size: 14px; font-weight: 700; }
.lc-sum.ok { color: var(--ok-ink); } .lc-sum.off { color: var(--warn-ink); }
.lc-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--warn-soft); color: var(--warn-ink); }
.lc-dot.ok { background: var(--ok-soft); color: var(--ok-ink); }
.lc-cues { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lc-cue { border-radius: 14px; background: #221D19; color: #F5F3F0; padding: 12px; min-height: 100px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lc-cue .tiny { opacity: .75; }

/* ---------- UX restructure (Claude Design, Nov 2026): Home ---------- */
.ux-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.ux-head .bell-link, .ux-head .chat-link { background: #FFFFFF; }
.ux-next { background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.ux-next:hover { color: #FFFFFF; }
.ux-pill { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.ux-pill.hot { background: var(--accent); color: #FFFFFF; }
.ux-pill.dim { background: #2F4A40; color: #9FE0C9; font-weight: 700; }
.ux-next-title { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ux-next-meta { font-size: 15px; color: #E6DFD7; }
.ux-next-cta { height: 50px; border-radius: 14px; background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.ux-toggle { height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: #FFFFFF; font-weight: 700; font-size: 14px; color: var(--ink); flex: none; }
.ux-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ux-day { height: 66px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.ux-day:hover { color: var(--ink); border-color: var(--line-2); }
.ux-day.today { border: 1.5px solid var(--accent); color: var(--accent-ink); }
.ux-day-wd { font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-day-n { font-size: 19px; font-weight: 800; }
.ux-day-dot { width: 6px; height: 6px; border-radius: 3px; }
.ux-day-dot.on { background: var(--accent); }
.ux-lesson { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.ux-lesson:hover { color: var(--ink); border-color: var(--line-2); }
.ux-date { width: 58px; height: 66px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; font-size: 11.5px; font-weight: 800; }
.ux-date strong { font-size: 23px; line-height: 1.05; }
.ux-date.teach { background: var(--accent-soft); color: var(--accent-ink); }
.ux-date.go { background: #DDF2EA; color: #0D5340; }
.ux-date.open { background: #E4EEFB; color: #1D4F8F; }
.ux-lesson-title { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ux-chip { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.ux-chip.teach { background: var(--accent-soft); color: var(--accent-ink); }
.ux-chip.go { background: #DDF2EA; color: #0D5340; }
.ux-chip.open { background: #F0ECE7; color: var(--ink-2); }
.ux-ask { padding: 16px; border-radius: 20px; }
.ux-ask-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.ux-wish { border: 1.5px dashed #E0B9A3; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; }
.ux-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
:lang(ar) .ux-eyebrow { letter-spacing: 0; }
.dk-side .ux-next-title { font-size: 22px; }
[dir="rtl"] .mini-btn .i { transform: scaleX(-1); }

/* ---------- UX restructure: Club ---------- */
.ux-club-switch { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border: 0; background: none; padding: 4px 0; text-align: start; color: var(--ink); }
.ux-club-switch > span { max-width: 100%; }
.ux-link { padding: 10px 0; white-space: nowrap; }
.ux-rows { padding: 6px 14px; border-radius: 18px; }
.ux-row { display: flex; align-items: center; gap: 12px; min-height: 64px; text-decoration: none; color: var(--ink); }
.ux-row:hover { color: var(--ink); }
.ux-row + .ux-row { border-top: 1px solid #F0EBE5; }
.ux-row .i:last-child { color: #8A8178; }
[dir="rtl"] .ux-row .i:last-child, [dir="rtl"] .ux-lesson-more .i { transform: scaleX(-1); }
.ux-faces { display: flex; flex: none; }
.ux-faces > * { border: 2px solid #FFFFFF; border-radius: 50%; }
.ux-faces > * + * { margin-inline-start: -10px; }
.ux-row-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.ux-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pad-x-16 { padding-inline: 16px; }
.ux-draft { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 4px; padding: 6px 14px; border-radius: 16px; background: #EFEAE4; text-decoration: none; color: var(--ink); }
.ux-draft:hover { color: var(--ink); }
.ux-draft .i:last-child { color: #8A8178; }
[dir="rtl"] .ux-draft .i:last-child { transform: scaleX(-1); }
.create-choice.big { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.create-choice.big:hover { background: var(--accent-hover); color: #FFFFFF; }
.create-choice.big .muted { color: #FFE3D3; }
.create-choice.big .cs-icon { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }

/* ---------- UX restructure: Lesson page ---------- */
.ux-you-pill { background: var(--accent); color: #FFFFFF; font-weight: 700; }
.ux-you-pill.go { background: #FFFFFF; color: #0D5340; }
.ux-teacher-bar { flex-direction: column; align-items: stretch; gap: 6px; }
.grow-2 { flex: 2 1 0; }
.lesson-hero .hero-text { max-width: none; }
.lesson-hero .hero-text { padding-top: 16px; }
.screen.has-sticky:has(.ux-teacher-bar) { padding-bottom: 150px; }
.ol-min { white-space: nowrap; min-width: 56px; width: auto !important; }

/* ---------- UX restructure: You ---------- */
.ux-me { padding: 16px; border-radius: 24px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.gap-14 { gap: 14px; }
.ux-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ux-stat { background: var(--bg); border-radius: 14px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.ux-stat strong { font-size: 22px; font-weight: 800; }
.ux-stat span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ux-plan { border-radius: 20px; padding: 14px; background: var(--accent-soft); text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.ux-plan:hover { color: var(--ink); }
.ux-plan svg { flex: none; }
.ux-plan .small { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
button.ux-row { width: 100%; border: 0; background: none; padding: 0; font: inherit; text-align: start; cursor: pointer; }
.ux-link-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ux-link-icon.blue { background: #E4EEFB; color: #1D4F8F; }
.ux-link-icon.pink { background: #F7D5E0; color: #962553; }
.ux-link-icon.yellow { background: var(--warn-soft); color: var(--warn-ink); }
.ux-link-icon.orange { background: var(--accent-soft); color: var(--accent-ink); }
.ux-link-icon.grey { background: #ECE6DF; color: var(--ink-2); }
.ux-pro-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; }

/* ---------- UX restructure: Discover ---------- */
.ux-dark { background: var(--ink); color: #FFFFFF; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; }
.ux-dark-sub { font-size: 15px; color: #E6DFD7; line-height: 1.5; }
.ux-dark-btn { height: 48px; border-radius: 14px; border: 0; background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.ux-people { display: flex; gap: 10px; overflow-x: auto; margin-inline-end: -16px; padding-inline-end: 16px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.ux-person { flex: none; width: 148px; scroll-snap-align: start; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ux-person > a { color: var(--ink); text-decoration: none; width: 100%; min-width: 0; align-items: center; }
.ux-person .btn { width: 100%; justify-content: center; }
.ux-me .plan-badge { align-self: flex-start; }

/* ---------- UX restructure: Lesson Coach ---------- */
.flow-main > .lc-text { background: #FFFFFF; border: 1.5px solid #D9D1C8; border-radius: 18px; padding: 16px; font-size: 17px; line-height: 1.5; min-height: 120px; }
.lc-coach { border-radius: 20px; padding: 14px; }
.lc-coach-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lc-coach-actions button { min-height: 60px; align-items: flex-start; text-align: start; padding: 10px 12px; font-size: 15px; font-weight: 800; border-radius: 14px; }
.lc-coach-actions button small { font-size: 13px; }
.lc-pro-link { font-size: 13.5px; font-weight: 700; color: #1E3A5F; }
.lc-pro-link:hover { color: #1E3A5F; }

/* ---------- UX restructure: Settings ---------- */
.h-24 { font-size: 24px; }
button.settings-row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; text-align: start; cursor: pointer; }
.settings-list > .settings-row:first-child { border-top: 0; }
.lang-row:hover { background: none; }
.small-tabs { width: 168px; flex: none; padding: 3px; border-radius: 12px; }
.small-tabs button { height: 36px; font-size: 14px; border-radius: 10px; }
.settings-row.danger-text, .settings-row.danger-text:hover { color: var(--danger); }
.ux-level { width: 100%; min-height: 60px; border-radius: 16px; padding: 10px 14px; border: 1.5px solid #D9D1C8; background: #FFFFFF; color: var(--ink); font: inherit; text-align: start; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ux-level.on { border-color: var(--accent); background: #FDF6F2; }
.ux-radio { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #B9AFA4; flex: none; display: flex; align-items: center; justify-content: center; }
.ux-level.on .ux-radio { border-color: var(--accent); }
.ux-level.on .ux-radio::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); }

/* ---------- UX restructure: Manage club / Members ---------- */
.eyebrow.accent { color: var(--accent-ink); }
.ux-head h1 + .small { display: block; }
.ux-soft-pill { height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px; flex: none; }
.ux-rows .ux-row > .avatar, .ux-rows .ux-row > img { flex: none; }
.ux-rows li.ux-row, .ux-rows li > .ux-row { min-height: 68px; }
.ux-rows li + li { border-top: 1px solid #F0EBE5; }
.ux-rows li + li > .ux-row { border-top: 0; }
.ux-row .ux-pill { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; flex: none; }
.ux-more { background: var(--bg); flex: none; }
.ux-needs { padding: 14px; border: 1.5px solid #E7B9A0; }
.ux-card-row { padding: 12px 14px; border-radius: 18px; min-height: 0; }
.ux-link-box { height: 48px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); padding: 0 12px; display: flex; align-items: center; font-size: 15px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0; }
.ux-set-row { width: 100%; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: start; min-height: 56px; padding: 0; }
.ux-set-val { max-width: 45%; text-align: end; }
.ux-q { margin: 6px 0 0; }
.ux-choice { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #FFFFFF; font: inherit; color: var(--ink); text-align: start; }
.ux-choice .small { color: var(--ink-2); line-height: 1.4; }
.ux-choice.on { border: 2px solid var(--accent); background: #FDF6F2; }
.ux-pro-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.ux-manage .tabs.three button { height: 44px; }

/* ---------- UX restructure: Notifications ---------- */
.ux-notifs .notif { background: #FAF8F6; }
.ux-notifs .notif.unread { background: #FFFFFF; border-color: var(--line); box-shadow: 0 1px 2px rgba(34, 29, 25, 0.06); }
.ux-notifs .eyebrow { margin-top: 6px; font-size: 13px; font-weight: 800; }
.ux-notifs .needs .eyebrow { color: var(--accent-ink); }

/* ---------- UX restructure: Chat ---------- */
.ux-chat-face { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.ux-chat-face.lesson { background: #DDF2EA; color: #0D5340; }
.ux-chat-head .ux-chat-face { width: 40px; height: 40px; border-radius: 12px; }
.ux-chat-head { position: sticky; top: 0; z-index: 5; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 10px 12px; }
.ux-chat-head .icon-btn { background: var(--bg); }
.inbox-row { min-height: 76px; }
.ux-compose { background: #FFFFFF; }
.ux-compose .chat-input { border-radius: 23px; padding-inline: 16px; }
.ux-compose .chat-send { width: 46px; height: 46px; border-radius: 23px; align-self: flex-end; }
.chat-msg:not(.mine) .chat-bubble { border: 1px solid var(--line); box-shadow: none; border-end-start-radius: 6px; }
.chat-msg.mine .chat-bubble { border-end-end-radius: 6px; }
.ux-manage .text-link { height: auto; min-height: 44px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-align: start; }
.ux-notifs > .text-link { height: 36px; margin-bottom: -10px; }

/* ---------- UX restructure: wide screens — side rail instead of a top bar ---------- */
@media (min-width: 900px) {
  .dk-header { position: fixed; inset-block: 0; inset-inline-start: 0; width: 248px; z-index: 20; background: #FAF8F6; border-bottom: 0; border-inline-end: 1px solid var(--line); overflow-y: auto; }
  .dk-inner { height: 100%; max-width: none; margin: 0; padding: 24px 16px 18px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
  .dk-inner > .brand-link { padding: 0 8px 18px; }
  .dk-nav { flex-direction: column; gap: 4px; }
  .dk-nav a { height: 48px; padding: 0 14px; border-radius: 14px; gap: 12px; font-size: 16px; color: var(--ink); }
  .dk-nav a.on { font-weight: 800; }
  .dk-create { margin-top: 12px; }
  .dk-create > summary { width: 100%; height: 50px; border-radius: 16px; justify-content: center; }
  .dk-create .menu-list { inset-inline: 0; min-width: 0; }
  .dk-search { flex: none; max-width: none; margin-top: 10px; background: #FFFFFF; border: 1px solid var(--line); }
  .dk-right { margin: auto 0 0; padding-top: 16px; justify-content: flex-start; gap: 10px; }
  .dk-right .bell-link { background: #FFFFFF; border: 1px solid var(--line); }
  .dk-me { margin-inline-start: auto; }
  .dk-me .menu-list { top: auto; bottom: calc(100% + 8px); inset-inline-start: auto; inset-inline-end: 0; }
  .dk-header + .dk-page { margin-inline-start: 248px; padding: 28px 40px 48px; }
  .dk-header + .dk-page .screen { margin-inline: 0; }
  .dk-header + .dk-page.wide .screen { max-width: 1160px; }
}

/* ---------- UX restructure: Present mode (dark, easy on the eyes beside a camera) ---------- */
body:has(.ux-present) { background: #16241F; }
.ux-present { background: #16241F; color: #FFFFFF; max-width: none; }
.ux-present > * { width: 100%; max-width: 640px; margin-inline: auto; }
.ux-present .present-top .icon-btn { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.ux-present-part { color: #9FE0C9; }
.ux-present .present-steps span { background: rgba(255, 255, 255, 0.18); }
.ux-present .present-steps span.done { background: #5FB596; opacity: 1; }
.ux-present .present-steps span.on { background: #9FE0C9; }
.ux-present .present-name { color: #9FE0C9; }
.ux-present .present-desc { color: #E2EEE9; }
.ux-present .present-notes { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.ux-present .present-notes .tiny { color: #BFD8CE; }
.ux-present .present-notes p { font-size: 19px; }
.ux-present .present-clock { color: #FFFFFF; }
.ux-present .present-clock.over, .ux-present .present-over { color: #FF9C8A; }
.ux-present .present-bar { background: rgba(255, 255, 255, 0.14); }
.ux-present .present-bar span { background: #9FE0C9; }
.ux-present .muted { color: #BFD8CE; }
.ux-present .round-btn { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border: 0; }
.ux-present .round-btn:last-child { background: #FFFFFF; color: #16241F; }
.ux-present .round-btn:disabled { opacity: 0.4; }
.ux-present .present-play { border-radius: 20px; height: 64px; flex: 1; max-width: 260px; }
.ux-present .chip-btn { background: transparent; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.3); }
.ux-present .present-done { color: #9FE0C9; }

/* ---------- UX restructure: video room ---------- */
body:has(.ux-wait) { background: #1B1714; }
.ux-wait { min-height: 100vh; min-height: 100dvh; max-width: 640px; margin: 0 auto; background: #1B1714; color: #FFFFFF; display: flex; flex-direction: column; gap: 16px; padding: calc(12px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
.ux-wait-head { display: flex; align-items: center; gap: 10px; }
.ux-wait-head .icon-btn { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; flex: none; }
.ux-wait-head .small { color: #CFC8C0; }
.ux-wait-stage { flex: 1; min-height: 240px; border-radius: 28px; background: #3A332D; display: flex; align-items: center; justify-content: center; }
.ux-wait-face { animation: ux-breathe 2.4s ease-in-out infinite; border-radius: 50%; }
@keyframes ux-breathe { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .ux-wait-face { animation: none; } }
.ux-wait-card { background: rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.ux-wait-card p { margin: 0; color: #CFC8C0; font-size: 15px; line-height: 1.5; }
.call-screen { background: #1B1714; }
.call-bar { background: #1B1714; min-height: 60px; gap: 8px; }
.call-bar .icon-btn { width: 44px; height: 44px; }
.call-btn { height: 40px; }
.cue-panel { background: #FFFFFF !important; color: var(--ink) !important; border-radius: 22px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.cue-panel .cue-head { color: #0D5340; }
.cue-panel .cue-desc { color: var(--ink); font-size: 17px; }
.cue-panel .cue-note { background: var(--bg); color: var(--ink-2); }
.cue-panel .call-btn { background: var(--seg); color: var(--ink); }
.cue-panel .cue-nav .call-btn:last-child { background: var(--accent); color: #FFFFFF; }

/* ---------- UX restructure: Plans and Studio ---------- */
.ux-soon { border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.ux-soon p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ux-soon strong { color: var(--ink); }
.ux-soon-tag { padding: 4px 10px; border-radius: 999px; background: #FBEFD0; color: #744F00; font-size: 12.5px; font-weight: 800; white-space: nowrap; flex: none; }
.ux-plans-top { padding-bottom: 6px; }
.plans-screen .plan-card { border-radius: 22px; }
.plans-screen .plan-card.pro { border: 2px solid var(--accent); }
.plans-screen .plan-card.inst .btn-primary { background: #1E3A5F; border-color: #1E3A5F; }
.ux-pick { background: var(--accent-soft); color: var(--accent-ink); }
.plans-screen .plan-card .btn { height: 52px; border-radius: 16px; }

/* ---------- UX restructure: first-time guide and Home hints ---------- */
.gd-screen { min-height: 100vh; min-height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
body:has(.gd-screen.warm) { background: #FDF6F2; }
body:has(.gd-screen.navy) { background: #F3F6FA; }
.gd-top { display: flex; align-items: center; height: 44px; }
.gd-dots { flex: 1; display: flex; gap: 6px; }
.gd-dots span { height: 8px; width: 8px; border-radius: 4px; background: var(--line-2); transition: width 0.2s; }
.gd-dots span.on { width: 28px; background: var(--accent); }
.gd-stage { flex: 1; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.gd-art { width: min(300px, 100%); min-height: 290px; display: flex; flex-direction: column; gap: 12px; }
.gd-card { background: #FFFFFF; border-radius: 28px; box-shadow: 0 10px 30px rgba(34, 29, 25, 0.12); padding: 20px; }
.gd-club { width: 48px; height: 48px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.gd-faces { display: flex; padding-inline-start: 8px; }
.gd-face { width: 44px; height: 44px; border-radius: 22px; border: 3px solid #FFFFFF; margin-inline-start: -8px; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gd-face.f0 { background: #ECE6FA; color: #5232A3; } .gd-face.f1 { background: #E4EEFB; color: #1D4F8F; }
.gd-face.f2 { background: #F7D5E0; color: #962553; } .gd-face.f3 { background: #DDF2EA; color: #0D5340; }
.gd-face.more { background: #F0ECE7; color: #4A433D; }
.gd-bubble { border-radius: 14px; background: var(--bg); padding: 10px 12px; font-size: 14px; align-self: flex-start; }
.gd-bubble.me { align-self: flex-end; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.gd-dark { background: #221D19; color: #FFFFFF; border-radius: 28px; padding: 22px; justify-content: flex-end; }
.gd-dark-title { font-size: 28px; line-height: 1.1; margin: 0; }
.gd-dark-sub { margin: 0; font-size: 14.5px; color: #E6DFD7; }
.gd-dark-btn { height: 50px; border-radius: 14px; background: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gd-wishes { justify-content: center; }
.gd-wish { background: #FFFFFF; border-radius: 20px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(34, 29, 25, 0.08); display: flex; align-items: center; gap: 10px; }
.gd-wish span { padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 13px; white-space: nowrap; }
.gd-wish.w0 { transform: rotate(-2deg); } .gd-wish.w1 { transform: rotate(1.5deg); } .gd-wish.w2 { transform: rotate(-1deg); }
.gd-coach { background: #E9EFF6; border-radius: 28px; padding: 20px; gap: 10px; }
.gd-coach-k { color: #1E3A5F; font-size: 15px; }
.gd-coach-box { background: #FFFFFF; border-radius: 16px; padding: 12px; font-size: 15px; }
.gd-coach-box.quote { font-style: italic; color: var(--ink-2); }
.gd-coach-btn { height: 44px; border-radius: 12px; background: #FFFFFF; color: #1E3A5F; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.gd-eleven { display: flex; gap: 4px; margin-top: auto; }
.gd-eleven span { flex: 1; height: 6px; border-radius: 3px; background: #C9D4E2; }
.gd-eleven span.on { background: #1E3A5F; }
.gd-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.navy .gd-kicker { color: #1E3A5F; }
.gd-text { padding: 8px 4px 20px; }
.gd-text h1, .gd-text p { margin: 0; }
.gd-foot { display: flex; gap: 10px; }
.gd-foot .btn { height: 54px; border-radius: 16px; }
.navy .gd-foot .btn-primary { background: #1E3A5F; border-color: #1E3A5F; }
.gd-hint { position: fixed; z-index: 40; inset-inline: 16px; bottom: calc(110px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; background: #FFFFFF; border-radius: 20px; padding: 16px; box-shadow: 0 14px 40px rgba(34, 29, 25, 0.25); display: flex; flex-direction: column; gap: 6px; }
.gd-hint p { margin: 0; }
.gd-spot { position: relative; z-index: 31; border-radius: 18px; box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px var(--accent); }
.bottom-nav .gd-spot.nav-fab { border-radius: 50%; }

/* ---------- Sign-off round: shared pieces from the design ---------- */
[dir="rtl"] { --display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif; --body: 'IBM Plex Sans Arabic', 'Figtree', system-ui, sans-serif; }
[dir="rtl"] .display, [dir="rtl"] .ux-next-title { letter-spacing: 0; }
.ux-soft-btn, .ux-line-btn { flex: 1; min-height: 46px; padding: 0 12px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; display: flex; align-items: center; justify-content: center; text-align: center; border: 0; font-family: inherit; cursor: pointer; }
.ux-soft-btn { background: var(--accent-soft); color: var(--accent-ink); }
.ux-soft-btn:hover { color: var(--accent-ink); filter: brightness(0.98); }
.ux-line-btn { background: #FFFFFF; border: 1.5px solid #D9D1C8; color: var(--ink); }
.ux-line-btn:hover { color: var(--ink); border-color: var(--line-2); }
.ux-wish { gap: 8px; }
.ux-wish-btns { margin-top: 4px; }
.ux-ask .ux-ask-icon { background: #FBEFD0; color: #744F00; }
.ux-toggle { display: inline-flex; align-items: center; gap: 6px; }
.ux-day.on { background: var(--accent); border: 0; color: #FFFFFF; }
.ux-day.on .ux-day-dot.on { background: #FFFFFF; }
/* tab bar as designed: five equal tabs, the (+) raised with a white ring and a "Create" label */
.bottom-nav { align-items: flex-start; height: auto; padding: 6px 6px calc(26px + env(safe-area-inset-bottom)); }
.bottom-nav .nav-item { flex: 1 1 0; min-width: 0; min-height: 56px; height: auto; justify-content: flex-start; gap: 3px; padding-top: 6px; font-size: 12px; font-weight: 600; color: #6E655D; border-radius: 0; }
.bottom-nav .nav-item.on { color: var(--accent-ink); font-weight: 700; }
.bottom-nav .nav-create { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.bottom-nav .nav-create .nav-fab { width: 56px; height: 56px; margin: -22px 0 0; border-radius: 28px; border: 0; box-shadow: 0 6px 16px rgba(204, 74, 20, 0.35); }
.bottom-nav .gd-spot.nav-create { border-radius: 18px; }
.ux-toggle { color: var(--accent-ink); }

/* ---------- Sign-off round: Club and wishes ---------- */
.h-21 { font-size: 21px; }
.ux-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ux-sec-link { font-weight: 700; font-size: 14.5px; padding: 10px 0; white-space: nowrap; color: var(--accent-ink); text-decoration: none; }
.ux-club-actions { margin-top: 12px; }
.ux-club-actions .btn { height: 50px; border-radius: 16px; font-size: 16px; }
.ux-club-actions .btn-secondary { border: 1.5px solid #D9D1C8; background: #FFFFFF; padding: 0 16px; font-size: 15.5px; }
.ux-club-lesson { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.ux-club-lesson:hover { color: var(--ink); border-color: var(--line-2); }
.ux-club-lesson .ux-date { width: 54px; height: 60px; border-radius: 14px; }
.ux-club-lesson .ux-date strong { font-size: 21px; }
.ux-club-lesson .ux-lesson-title { font-size: 15.5px; }
.ux-club-meta { font-size: 13.5px; color: var(--muted); }
.ux-wish-card { list-style: none; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ux-wish-card.compact { border-radius: 18px; padding: 14px; gap: 10px; }
.ux-wish-title { display: block; font-size: 17px; line-height: 1.3; }
.ux-wish-card.compact .ux-wish-title { font-size: 16px; }
.ux-wish-by { display: flex; align-items: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.ux-wish-card.compact .ux-wish-by { font-size: 13.5px; margin-top: 3px; display: block; }
.ux-round-more { width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.ux-wish-mine { margin: 0; font-size: 14px; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.ux-metoo { flex: 1; min-height: 46px; padding: 6px 10px; border-radius: 14px; border: 0; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.ux-metoo.on { background: var(--accent); color: #FFFFFF; }
.ux-wish-card .ux-line-btn { min-height: 46px; }
.ux-wish-card.compact .ux-metoo, .ux-wish-card.compact .ux-line-btn { min-height: 44px; border-radius: 12px; font-size: 14.5px; }
.ux-wish-card.compact .ux-metoo.on { background: var(--accent-soft); color: var(--accent-ink); }
.ux-empty-wish { background: #FFFFFF; border: 1.5px dashed #E0B9A3; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ux-empty-wish p { margin: 0; color: var(--ink-2); }

/* ---------- Sign-off round: Discover ---------- */
.search-box { height: 50px; border-radius: 16px; background: #FFFFFF; border: 1px solid #E0D8CF; }
.disc-topics .topic-chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #D9D1C8; background: #FFFFFF; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.disc-topics .topic-chip.on { border: 0; background: var(--ink); color: #FFFFFF; font-weight: 700; }
.plain-btn { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.ux-join { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.ux-join:hover { color: var(--ink); border-color: var(--line-2); }
.ux-len { font-size: 13px; color: var(--muted); font-weight: 600; }
.ux-join-title { font-size: 16.5px; line-height: 1.3; }
.ux-join-meta { font-size: 14px; color: var(--muted); }
.join-grid { display: flex; flex-direction: column; gap: 10px; }
.ux-people { gap: 10px; }
.ux-person { flex: none; width: 140px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; gap: 6px; text-align: center; }
.ux-person .tiny { font-size: 12.5px; min-height: 32px; }
.ux-person .btn, .ux-person button { width: 100%; height: 40px; border-radius: 12px; font-size: 14px; }
.ux-person button .i { display: none; }
.ux-space { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.ux-space:hover { color: var(--ink); border-color: var(--line-2); }
.ux-space-img { width: 76px; height: 76px; border-radius: 14px; background: #C7D1C4 center / cover no-repeat; flex: none; display: flex; align-items: center; justify-content: center; color: #2F4A40; }
.ux-space-name { font-size: 15.5px; }
.ux-space-deal { font-size: 13px; font-weight: 700; color: #0D5340; }
.ux-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- Sign-off round: Notifications ---------- */
.ux-notifs .notif { border-radius: 18px; padding: 14px; gap: 12px; flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
.ux-notifs .notif-main { flex: 1 1 100%; align-items: flex-start; }
.ux-notifs .notif-text { font-size: 15px; line-height: 1.45; }
.ux-notifs .notif-action { padding-inline-start: 54px; margin-top: -4px; }
.ux-notifs .needs .notif, .needs .notif { border-color: var(--line); }
.nf-icon { width: 42px; height: 42px; border-radius: 21px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.nf-icon.gold { background: #FBEFD0; color: #744F00; }
.nf-btn { height: 40px; padding: 0 16px; border-radius: 12px; background: #FFFFFF; border: 1.5px solid #D9D1C8; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; }
.nf-btn:hover { color: var(--ink); }
.nf-btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.nf-btn.soft { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.nf-markall { height: 44px; padding: 0 10px; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--accent-ink); flex: none; cursor: pointer; }
.nf-settings { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.ux-notifs .eyebrow { color: var(--muted); margin: 12px 4px 2px; }
/* Chats: white search like the design */
.chat-head + main .search-field .input, .lesson-main .search-field .input { background: #FFFFFF; border: 1px solid #E0D8CF; height: 48px; border-radius: 14px; }

/* ---------- Sign-off round: switch club sheet ---------- */
.sheet:has(.cs-list) { background: #FFFFFF; border-radius: 26px 26px 0 0; padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
.cs-list { display: flex; flex-direction: column; gap: 6px; }
.cs-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 8px 12px; border-radius: 16px; text-decoration: none; color: var(--ink); background: transparent; border: 0; width: 100%; text-align: start; font: inherit; cursor: pointer; }
.cs-row:hover { color: var(--ink); background: var(--bg); }
.cs-row.on { background: #FAF3EE; }
.cs-row .i { color: var(--accent-ink); flex: none; }
.cs-mark { width: 48px; height: 48px; border-radius: 14px; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.cs-name { display: block; font-size: 16px; }
.cs-sub { display: block; font-size: 13.5px; color: var(--muted); }
.cs-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.cs-link { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 4px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; }
.cs-link:hover { color: var(--ink); }

/* ---------- Sign-off round: Teach me… list ---------- */
.ux-wl-tabs { padding-top: 10px; padding-bottom: 4px; }
.ux-wl-tabs .tabs button { height: 42px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ux-wl-tabs .tabs button.on { font-weight: 700; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.ux-wishlist .lesson-main { padding-top: 12px; padding-bottom: 110px; }
.ux-foot { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 10; background: #FFFFFF; border-top: 1px solid var(--line); padding: 12px 16px calc(34px + env(safe-area-inset-bottom)); }
.ux-foot-btn { width: 100%; height: 52px; border-radius: 16px; border: 0; background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.dk-page .ux-foot { position: static; transform: none; max-width: none; background: transparent; border: 0; padding: 12px 0; }

/* ---------- Sign-off round: starting out (welcome, sign up, interests, join a club) ---------- */
.sf-screen { min-height: 100vh; min-height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) 16px calc(34px + env(safe-area-inset-bottom)); }
.sf-head { display: flex; align-items: center; gap: 8px; }
.sf-head .icon-btn { background: #FFFFFF; flex: none; }
.sf-bar { flex: 1; display: flex; gap: 6px; padding: 0 8px; }
.sf-bar span { flex: 1; height: 5px; border-radius: 3px; background: #E6DFD7; }
.sf-bar span.on { background: var(--accent); }
.sf-spacer { width: 44px; flex: none; }
.sf-skip { height: 44px; padding: 0 10px; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--accent-ink); cursor: pointer; }
.sf-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 22px 4px 0; }
.sf-title { font-size: 32px; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
[dir="rtl"] .sf-title { letter-spacing: 0; }
.sf-sub { font-size: 16px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.5; }
.sf-form { display: flex; flex-direction: column; gap: 18px; }
.sf-form .input { height: 52px; border: 1.5px solid #D9D1C8; border-radius: 14px; background: #FFFFFF; font-size: 16px; }
.sf-form .field { font-size: 14.5px; font-weight: 700; gap: 8px; }
.sf-form .hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.sf-agree { display: flex; gap: 12px; align-items: flex-start; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 15px; line-height: 1.45; font-weight: 400; }
.sf-agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.sf-cta { width: 100%; min-height: 54px; border-radius: 16px; border: 0; background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; margin-top: auto; }
.sf-cta:hover { color: #FFFFFF; background: var(--accent-hover, #B8410F); }
.sf-line { width: 100%; min-height: 54px; border-radius: 16px; border: 1.5px solid #D9D1C8; background: #FFFFFF; color: var(--ink); font: inherit; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sf-terms { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.sf-terms a { color: var(--accent-ink); }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip { height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D9D1C8; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sf-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.sf-h2 { margin: 8px 0 0; }
.sf-people .ux-row { min-height: 68px; }
.sf-people .ux-row .small { display: block; }
.sf-people button { flex: none; height: 40px; border-radius: 12px; font-size: 14px; }
.sf-people button .i { display: none; }
.sf-welcome { min-height: 100vh; min-height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 20px calc(34px + env(safe-area-inset-bottom)); }
.fw-top { display: flex; justify-content: flex-end; }
.fw-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.fw-art { align-self: center; max-width: 100%; height: auto; }
.fw-text { display: flex; flex-direction: column; gap: 12px; }
.fw-title { font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
[dir="rtl"] .fw-title { letter-spacing: 0; line-height: 1.25; }
.fw-sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.fw-tag { font-size: 15px; font-weight: 700; color: var(--accent-ink); margin: 0; }
.fw-foot { display: flex; flex-direction: column; gap: 10px; }
.fw-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.jc-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: var(--ink); }
.jc-input { height: 50px; border: 1.5px solid #D9D1C8; border-radius: 14px; min-width: 0; }
.jc-join { height: 50px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; flex: none; }
.jc-start { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; font: inherit; cursor: pointer; }
.jc-start > .i { color: #8A8178; }
.jc-plus { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; }
.jc-start .small { display: block; margin-top: 2px; }
.jc-h2 { font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 6px 0 0; }
.jc-club { display: flex; align-items: center; gap: 12px; padding: 14px; }
.jc-club .small { display: block; }
.jc-ask { height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; }
.jc-ask.done { background: #F0ECE7; color: var(--ink-2); }
.block { display: block; }
.sf-body > .sf-line:last-child { margin-top: auto; }

/* ---------- Sign-off round: a space (view only) ---------- */
.sp-hero { position: relative; height: 240px; background: #C7D1C4 center / cover no-repeat; display: flex; align-items: flex-end; padding: 12px 16px; }
.sp-hero-btn { position: absolute; top: calc(12px + env(safe-area-inset-top)); background: #FFFFFF; }
.sp-back { inset-inline-start: 16px; }
.sp-share { inset-inline-end: 16px; }
.sp-count { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.88); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.sp-main { padding-top: 18px; padding-bottom: 150px; gap: 16px; }
.sp-verified { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #DDF2EA; color: #0D5340; font-size: 12.5px; font-weight: 700; }
.sp-kind { padding: 4px 10px; border-radius: 999px; background: #F0ECE7; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.sp-title { font-size: 30px; letter-spacing: -0.015em; margin: 0; }
.sp-meta { font-size: 15px; color: var(--ink-2); margin: 0; }
.sp-deal { background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; color: #7E2C0A; }
.sp-room { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.sp-room strong { font-size: 15.5px; }
.sp-room-sub { font-size: 13.5px; color: var(--muted); }
.sp-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.sp-map { display: block; border-radius: 12px; }
.sp-where { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.sp-foot { display: flex; flex-direction: column; gap: 6px; }
.sp-foot .ux-foot-btn { text-decoration: none; }
.sp-foot-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.dk-page .sp-screen .sp-hero { border-radius: 24px; }

/* ---------- Sign-off round: wide Club and the rail's club list ---------- */
.wc-screen { display: flex; flex-direction: column; gap: 24px; }
.wc-head { background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 24px; display: flex; align-items: center; gap: 20px; }
.wc-mark { width: 80px; height: 80px; border-radius: 24px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--display); font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.wc-name { border: 0; background: transparent; padding: 0; text-align: start; font: inherit; color: var(--ink); display: flex; flex-direction: column; cursor: pointer; }
.wc-h1 { font-size: 34px; letter-spacing: -0.02em; }
[dir="rtl"] .wc-h1 { letter-spacing: 0; }
.wc-sub { font-size: 15.5px; color: var(--ink-2); margin-top: 4px; }
.wc-invite { height: 50px; padding: 0 22px; border-radius: 16px; border: 0; background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; flex: none; }
.wc-manage { height: 50px; padding: 0 18px; border-radius: 16px; background: #FFFFFF; border: 1.5px solid #D9D1C8; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex: none; }
.wc-manage:hover { color: var(--ink); }
.wc-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.wc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wc-lesson { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.wc-lesson:hover { color: var(--ink); border-color: var(--line-2); }
.wc-band { height: 96px; display: block; }
.wc-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wc-title { font-size: 16.5px; line-height: 1.3; }
.wc-meta { font-size: 14px; color: var(--muted); }
.wc-side { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.wc-side .ux-sec-link { padding: 0; }
.wc-person { min-height: 52px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wc-person:hover { color: var(--ink); }
.wc-person strong { font-size: 14.5px; }
.wc-person .wc-meta { font-size: 13px; }
.wc-last { background: var(--bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.wc-last-who { font-size: 13px; font-weight: 700; color: var(--muted); }
.wc-last-body { font-size: 14.5px; overflow-wrap: anywhere; }
.wc-open { height: 44px; border-radius: 14px; background: #F0ECE7; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.wc-open:hover { color: var(--ink); }
.dk-clubs { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.dk-clubs-h { padding: 0 8px 4px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dk-club { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 12px; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); text-align: start; cursor: pointer; min-width: 0; }
.dk-club.on { background: #FFFFFF; box-shadow: 0 1px 2px rgba(34, 29, 25, 0.06); }
.dk-club:hover { background: #FFFFFF; }
.dk-club-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 1100px) { .wc-grid { grid-template-columns: 1fr; } }

/* ---------- Sign-off round: wide Home ---------- */
.wh-screen { display: flex; flex-direction: column; gap: 24px; }
.wh-head { display: flex; align-items: flex-end; gap: 12px; }
.wh-date { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.wh-h1 { font-size: 38px; letter-spacing: -0.02em; margin: 0; }
[dir="rtl"] .wh-h1 { letter-spacing: 0; }
.wh-pill { position: relative; height: 44px; padding: 0 16px; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex: none; }
.wh-pill:hover { color: var(--ink); }
.wh-count { position: static; min-width: 20px; height: 20px; border: 0; }
.wh-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.wh-screen .ux-next { border-radius: 28px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 10px; align-items: center; }
.wh-screen .ux-next > :not(.ux-next-cta) { grid-column: 1; }
.wh-screen .ux-next-cta { grid-column: 2; grid-row: 1 / span 3; padding: 0 24px; height: 52px; margin: 0; }
.wh-screen .ux-next-title { font-size: 32px; line-height: 1.1; }
.wh-week-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wh-week-head .chip-row { flex-wrap: nowrap; overflow-x: auto; }
.wh-days .ux-days { gap: 8px; }
.wh-days .ux-day { height: 72px; border-radius: 18px; }
.wh-days .ux-day-wd { font-size: 13px; }
.wh-days .ux-day-n { font-size: 22px; }
.wh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wh-tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.wh-tile:hover { color: var(--ink); border-color: var(--line-2); }
.wh-when { font-size: 13px; font-weight: 800; }
.wh-when.teach { color: var(--accent-ink); }
.wh-when.go { color: #0D5340; }
.wh-when.open { color: #1D4F8F; }
.wh-title { font-size: 17px; line-height: 1.3; }
.wh-meta { font-size: 14px; color: var(--muted); }
.wh-side { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.wh-chat { min-height: 56px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.wh-chat:hover { color: var(--ink); }
.wh-chat strong { font-size: 14.5px; }
.wh-chat .wh-meta { font-size: 13.5px; }
.wh-chat-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.wh-chat-mark.lesson { background: #DDF2EA; color: #0D5340; }
.wh-screen .ux-ask { border-radius: 20px; padding: 18px; }
@media (max-width: 1100px) { .wh-grid { grid-template-columns: 1fr; } }

/* ---------- Sign-off fixes, round 2 ---------- */
[dir="rtl"] .ux-head h1, [dir="rtl"] .ux-head .display { line-height: 1.4; padding-bottom: 2px; }
/* Arabic headings need more room between lines than Latin ones (sign-off: the suggestion title overlapped). */
[dir="rtl"] .display { line-height: 1.4; }
[dir="rtl"] .ux-head h1 + .small, [dir="rtl"] .ux-head .stack-0 > .small { margin-top: 4px; }
.nf-markall:disabled { color: var(--muted); opacity: 0.6; cursor: default; }
.nf-empty { margin: 0; padding: 14px; border-radius: 18px; background: #FAF8F6; border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
/* sign-up selects: the arrow sits inside the field, like the design */
.sf-form select.input { appearance: none; -webkit-appearance: none; padding-inline: 14px 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236E655D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
[dir="rtl"] .sf-form select.input { background-position: left 14px center; }
.ux-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--seg); flex: none; }
.ux-seg button { height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.ux-seg button.on { background: #FFFFFF; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(34, 29, 25, 0.08); }
.sheet-head.no-close { justify-content: flex-start; }
.dr-row .i:first-child { color: var(--accent-ink); flex: none; }

/* ---------- Ratings and prices (spaces) ---------- */
.sp-rating { font-weight: 700; color: var(--ink); white-space: nowrap; }
.sp-price { font-size: 14px; font-weight: 700; color: #0D5340; text-align: end; flex: none; max-width: 45%; }
.room-edit { flex-wrap: wrap; }
.room-price { flex: 1 1 100%; display: flex; gap: 8px; }
.room-price select { flex: 1; min-width: 0; }
.price-input { width: 110px; flex: none; }
.rt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rt-stars { display: flex; gap: 2px; direction: ltr; }
.rt-star { width: 40px; height: 44px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: #D9D1C8; cursor: pointer; padding: 0; }
.rt-star.on { color: #E5A00D; }
.rt-note { font-size: 13.5px; color: var(--muted); }

/* ---------- Chat photos and the + button ---------- */
.chat-attach { width: 46px; height: 46px; border-radius: 23px; border: 0; background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; align-self: flex-end; cursor: pointer; }
.chat-photo-link { display: block; margin: 2px 0 4px; }
.chat-photo { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 12px; object-fit: cover; }
.chat-photo-pick img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }

/* ---------- Posts grid: tall tiles, Reels-style ---------- */
.vt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-inline: -4px; }
.vt { min-width: 0; }
.vt-link { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #2A2420; color: #FFFFFF; text-decoration: none; }
.vt-link:hover { color: #FFFFFF; }
.vt-pic { position: absolute; inset: 0; display: block; }
.vt-pic img, .vt-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.vt-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.55); }
.vt-badge { position: absolute; z-index: 2; top: 6px; inset-inline-end: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-size: 11px; font-weight: 700; direction: ltr; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; }
.vt-hand { position: absolute; z-index: 2; top: 6px; inset-inline-start: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-size: 11px; font-weight: 700; }
.vt-foot { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 22px 7px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); display: flex; flex-direction: column; gap: 3px; }
.vt-title { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vt-who { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: 0.92; min-width: 0; white-space: nowrap; overflow: hidden; }
.vt-who .avatar { flex: none; }
@media (min-width: 560px) { .vt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-inline: 0; } .vt-title { font-size: 13px; } }
.dk-page .vt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
