/* InstaFit — shared styles
   Palette: iron base, chalk text, medal gold for actions only. */

:root {
  --iron: #17161a;
  --iron-2: #1f1e23;
  --graphite: #2a2930;
  --line: #3a3842;
  --chalk: #edeae3;
  --chalk-dim: #a9a49a;
  --medal: #c9a24a;
  --medal-ink: #17161a;
  --plate: #c2463b;
  --ok: #6fa774;

  --font-display: "Big Shoulders Display", "Lalezar", Impact, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[lang="ar"] {
  --font-display: "Lalezar", "Big Shoulders Display", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--iron);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--medal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--medal); color: var(--medal-ink);
  padding: 8px 14px; border-radius: var(--r-sm); z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  margin: 0;
}
html[lang="ar"] .display { font-weight: 400; line-height: 1.15; letter-spacing: 0; }

h2.display { font-size: clamp(40px, 6.5vw, 76px); }
h3 { font-size: 21px; line-height: 1.3; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--chalk-dim); max-width: 60ch; }
.muted { color: var(--chalk-dim); }
.small { font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--medal); color: var(--medal-ink); }
.btn-gold:hover { background: #d8b35c; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--chalk-dim); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

.lang-toggle {
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600;
}
.lang-toggle:hover { border-color: var(--chalk-dim); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--iron) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--graphite);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 900;
  font-size: 26px; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--medal); }
.brand { display: inline-flex; align-items: center; direction: ltr; }
.brand-mark { width: 1.3em; height: 1.3em; flex: none; margin-right: 10px; }
.site-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.site-nav a { text-decoration: none; color: var(--chalk-dim); font-size: 15px; }
.site-nav a:hover { color: var(--chalk); }
.head-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .head-actions { margin-inline-start: auto; }
  .head-actions .btn-ghost { display: none; }
}
@media (max-width: 480px) {
  .site-head .wrap { gap: 10px; }
  .brand { font-size: 21px; }
  .head-actions { gap: 6px; }
  .head-actions .btn, .head-actions .lang-toggle { min-height: 38px; padding: 0 12px; font-size: 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(.35) contrast(1.05); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; filter: grayscale(.35) contrast(1.05); }
.hero-media video.on { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--iron) 6%, transparent 60%),
    linear-gradient(to right, rgba(23,22,26,.85), rgba(23,22,26,.15));
}
html[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(to top, var(--iron) 6%, transparent 60%),
    linear-gradient(to left, rgba(23,22,26,.85), rgba(23,22,26,.15));
}
.hero-inner { position: relative; padding-block: 120px 64px; }
.hero h1 {
  font-size: clamp(64px, 13vw, 168px);
  max-width: 9ch;
}
html[lang="ar"] .hero h1 { font-size: clamp(52px, 10vw, 120px); max-width: 11ch; }
.hero .lead { color: var(--chalk); margin: 24px 0 32px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--chalk-dim); }

.proof { border-block: 1px solid var(--graphite); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof div { padding: 26px 0; }
.proof div + div { border-inline-start: 1px solid var(--graphite); padding-inline-start: 24px; }
.proof strong { display: block; direction: ltr; unicode-bidi: isolate; font-family: "Big Shoulders Display", sans-serif; font-size: 44px; line-height: 1; font-weight: 800; }
.proof span { color: var(--chalk-dim); font-size: 15px; }
@media (max-width: 700px) {
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .proof div:nth-child(n+3) { border-top: 1px solid var(--graphite); }
}

/* ---------- sections ---------- */
section.block { padding-block: clamp(72px, 10vw, 128px); }
.block-head { display: grid; gap: 18px; margin-bottom: 48px; }

/* problems list */
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.problems li { list-style: none; padding: 22px 0; border-top: 1px solid var(--graphite); }
.problems ul { margin: 0; padding: 0; }
.problems h3 { color: var(--chalk); }
.problems p { margin: 0; color: var(--chalk-dim); }
.problems figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; align-self: start; position: sticky; top: 96px; }
.problems figure img { aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
@media (max-width: 860px) {
  .problems { grid-template-columns: 1fr; }
  .problems figure { position: static; order: -1; margin-bottom: 24px; }
  .problems figure img { aspect-ratio: 16/10; }
}

/* the loop — the one memorable piece */
.loop-section { background: var(--iron-2); }
.loop { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.loop-ring { position: relative; aspect-ratio: 1; }
.loop-ring svg { width: 100%; height: 100%; overflow: visible; }
.loop-ring .track { fill: none; stroke: var(--graphite); stroke-width: 2; }
.loop-ring .arc { fill: none; stroke: var(--medal); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.loop-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--iron);
  display: grid; place-items: center; cursor: pointer;
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 26px;
  transition: border-color .2s, background .2s, color .2s;
}
.loop-node:hover { border-color: var(--chalk-dim); }
.loop-node[aria-pressed="true"] { background: var(--medal); color: var(--medal-ink); border-color: var(--medal); }
.loop-center {
  position: absolute; inset: 24%; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 10px;
}
.loop-center .display { font-size: clamp(30px, 4vw, 46px); }
.loop-detail h3 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1; margin-bottom: 14px; }
html[lang="ar"] .loop-detail h3 { font-weight: 400; line-height: 1.2; }
.loop-detail p { font-size: 19px; color: var(--chalk-dim); max-width: 44ch; min-height: 4.8em; }
.loop-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.loop-vs div { border: 1px solid var(--graphite); border-radius: var(--r-md); padding: 18px 20px; }
.loop-vs .ours { border-color: color-mix(in srgb, var(--medal) 55%, transparent); }
.loop-vs h4 { margin: 0 0 10px; font-size: 15px; color: var(--chalk-dim); font-weight: 600; }
.loop-vs .ours h4 { color: var(--medal); }
.loop-vs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.loop-vs .theirs li { color: var(--chalk-dim); text-decoration: line-through; text-decoration-color: var(--plate); }
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; }
  .loop-ring { max-width: 380px; margin-inline: auto; width: 100%; }
  .loop-node { width: 54px; height: 54px; font-size: 21px; }
}
@media (max-width: 480px) { .loop-vs { grid-template-columns: 1fr; } }

/* results */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.result { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--iron-2); }
.result .pair { display: grid; grid-template-columns: 1fr 1fr; }
.result img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.result p { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--chalk-dim); }
@media (max-width: 980px) { .results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .results { grid-template-columns: 1fr; } }

/* coach story */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.story figure img { aspect-ratio: 4/5; object-fit: cover; }
.story blockquote { margin: 0; }
.story blockquote p { font-size: 19px; color: var(--chalk-dim); max-width: 58ch; }
.story blockquote p:first-child { color: var(--chalk); }
.story cite { font-style: normal; color: var(--medal); font-weight: 600; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* plans */
.term-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.term-switch button { border: 0; background: transparent; border-radius: 999px; padding: 8px 18px; cursor: pointer; color: var(--chalk-dim); font-weight: 600; }
.term-switch button[aria-pressed="true"] { background: var(--chalk); color: var(--iron); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--graphite); border-radius: var(--r-lg);
  padding: 26px 22px; background: var(--iron);
}
.plan.featured { border-color: var(--medal); background: linear-gradient(var(--iron-2), var(--iron)); }
.plan .tag { position: absolute; top: -12px; inset-inline-start: 22px; font-size: 13px; font-weight: 600; color: var(--medal-ink); background: var(--medal); border-radius: 999px; padding: 2px 10px; }
.plan h3 { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1; }
html[lang="ar"] .plan h3 { font-weight: 400; line-height: 1.3; }
.plan .pitch { color: var(--chalk-dim); font-size: 15px; min-height: 3.2em; margin: 6px 0 18px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan .price strong { font-family: "Big Shoulders Display", sans-serif; font-size: 52px; font-weight: 800; line-height: 1; }
.plan .term { font-size: 14px; color: var(--chalk-dim); margin-bottom: 20px; }
.plan .term span { display: block; }
.plan dl { margin: 0 0 20px; display: grid; gap: 10px; font-size: 15px; }
.plan dt { color: var(--chalk-dim); font-size: 13px; }
.plan dd { margin: 0; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.plan ul li { padding-inline-start: 22px; position: relative; }
.plan ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 10px; height: 2px; background: var(--medal); }
.plan .btn { margin-top: auto; }
.plan.unavailable { opacity: .45; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.policy { margin-top: 24px; display: grid; gap: 4px; font-size: 14px; color: var(--chalk-dim); }

/* services */
.services { display: grid; gap: 0; border-top: 1px solid var(--graphite); }
.service { border-bottom: 1px solid var(--graphite); }
.service summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 24px 0;
}
.service summary::-webkit-details-marker { display: none; }
.service summary h3 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin: 0; }
html[lang="ar"] .service summary h3 { font-weight: 400; }
.service summary .from { color: var(--chalk-dim); font-size: 15px; white-space: nowrap; }
.service .body { padding: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.service table { width: 100%; border-collapse: collapse; font-size: 15px; }
.service th, .service td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--graphite); }
.service th { color: var(--chalk-dim); font-weight: 500; }
.service td.num { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .service .body { grid-template-columns: 1fr; } }

/* faq */
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.faq-filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--chalk-dim); font-size: 15px; }
.faq-filters button[aria-pressed="true"] { border-color: var(--chalk); color: var(--chalk); }
.faq details { border-bottom: 1px solid var(--graphite); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--medal); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--chalk-dim); max-width: 70ch; }

/* closer + footer */
.closer { text-align: center; padding-block: clamp(80px, 12vw, 150px); }
.closer h2 { max-width: 14ch; margin-inline: auto; margin-bottom: 32px; }
.closer .hero-cta { justify-content: center; }
.site-foot { border-top: 1px solid var(--graphite); padding-block: 48px; font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--chalk-dim); font-weight: 600; }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: var(--chalk-dim); }
.site-foot a:hover { color: var(--chalk); }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #0b2a17;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5); }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,22,26,.9), rgba(23,22,26,.2)); }
.auth-side blockquote { position: absolute; bottom: 48px; inset-inline: 48px; z-index: 1; margin: 0; }
.auth-side blockquote p { font-size: 22px; line-height: 1.45; margin: 0 0 10px; max-width: 30ch; }
.auth-side cite { color: var(--medal); font-style: normal; font-weight: 600; }
.auth-main { display: flex; flex-direction: column; padding: 24px var(--gutter); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-box { width: min(420px, 100%); margin: auto; padding-block: 40px; }
.auth-box h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 8px; }
.auth-box > p { color: var(--chalk-dim); margin: 0 0 28px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 50px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--iron-2); border: 1px solid var(--line);
}
.field textarea { padding: 12px 16px; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--medal); }
.field .hint { font-size: 13px; color: var(--chalk-dim); }
.field input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px; }
.alt { text-align: center; margin-top: 26px; color: var(--chalk-dim); font-size: 15px; }
.alt a { color: var(--chalk); font-weight: 600; }

.notice { border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; font-size: 15px; border: 1px solid; }
.notice[hidden] { display: none; }
.notice.error { border-color: color-mix(in srgb, var(--plate) 60%, transparent); background: color-mix(in srgb, var(--plate) 14%, transparent); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.notice.info { border-color: var(--line); background: var(--iron-2); }

/* ---------- app shells ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  border-inline-end: 1px solid var(--graphite); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { font-size: 22px; padding-inline: 8px; }
.side nav { display: grid; gap: 2px; }
.side nav p { font-size: 13px; color: var(--chalk-dim); margin: 14px 8px 4px; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--chalk-dim); font-size: 15px;
}
.side nav a:hover { background: var(--iron-2); color: var(--chalk); }
.side nav a[aria-current="page"] { background: var(--graphite); color: var(--chalk); }
.side nav a .count { margin-inline-start: auto; font-size: 12px; background: var(--medal); color: var(--medal-ink); border-radius: 999px; padding: 0 8px; font-weight: 700; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--graphite); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--graphite); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; overflow: hidden; direction: ltr; }
.me div { min-width: 0; flex: 1; }
.me strong, .me span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me strong { font-size: 14px; }
.me span { font-size: 13px; color: var(--chalk-dim); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--chalk-dim); }
.icon-btn svg, .side nav svg, .tabbar svg { width: 20px; height: 20px; }

.main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.topbar .display { font-size: clamp(36px, 5vw, 56px); }
.topbar .spacer { flex: 1; }
.mobile-only { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 272px; z-index: 60; background: var(--iron); transform: translateX(-100%); transition: transform .2s; }
  html[dir="rtl"] .side { transform: translateX(100%); }
  .side.open { transform: none !important; }
  .mobile-only { display: grid; }
}
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
.scrim[hidden] { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stat { border: 1px solid var(--graphite); border-radius: var(--r-md); padding: 18px; }
.stat span { font-size: 14px; color: var(--chalk-dim); }
.stat strong { display: block; font-family: "Big Shoulders Display", sans-serif; font-size: 42px; line-height: 1.1; font-weight: 800; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

.panel { border: 1px solid var(--graphite); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; background: var(--iron); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 19px; margin: 0; }

.empty { text-align: center; padding: 48px 20px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--chalk-dim); max-width: 46ch; margin: 0 auto 20px; }

.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: start; color: var(--chalk-dim); font-weight: 500; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--graphite); white-space: nowrap; }
table.list td { padding: 12px; border-bottom: 1px solid var(--graphite); white-space: nowrap; }
table.list td .who { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--chalk-dim); }
.pill.gold { border-color: var(--medal); color: var(--medal); }

.search { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--iron-2); width: min(320px, 100%); }

.roadmap { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.roadmap li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.roadmap .step { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.roadmap .done .step { background: var(--medal); color: var(--medal-ink); border-color: var(--medal); }
.roadmap p { margin: 2px 0 0; font-size: 14px; color: var(--chalk-dim); }

/* client app: phone-first */
.client { max-width: 560px; margin: 0 auto; min-height: 100vh; padding: 20px 16px 96px; }
.client-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.client-top .spacer { flex: 1; }
.client h1.display { font-size: clamp(44px, 12vw, 64px); margin-bottom: 6px; }
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
  background: color-mix(in srgb, var(--iron) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--graphite);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; font-size: 12px; text-decoration: none; color: var(--chalk-dim); }
.tabbar a[aria-current="page"] { color: var(--medal); }

.view[hidden] { display: none; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--chalk-dim); }

/* ---------- phase 2: checkout + intake ---------- */
.step-h { font-size: 15px; letter-spacing: .04em; margin: 22px 0 12px; color: var(--gold, #c9a24a); font-weight: 700; }
.step-h:first-child { margin-top: 0; }
.plan-picks { display: grid; gap: 10px; }
.plan-pick { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(237,234,227,.18); border-radius: 12px; cursor: pointer; }
.plan-pick.on { border-color: #c9a24a; background: rgba(201,162,74,.08); }
.plan-pick input { accent-color: #c9a24a; width: 18px; height: 18px; }
.plan-pick strong { display: block; }
.plan-pick small { display: block; opacity: .65; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.plan-pick em { font-style: normal; font-weight: 700; white-space: nowrap; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.seg button { padding: 12px; border-radius: 10px; border: 1px solid rgba(237,234,227,.18); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: #c9a24a; background: rgba(201,162,74,.12); }
.pay-box { padding: 16px; border-radius: 12px; background: rgba(237,234,227,.05); display: grid; gap: 12px; }
.pay-box p { margin: 0; }
.pay-to { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pay-to code { font-size: 20px; font-weight: 700; letter-spacing: .02em; word-break: break-all; }
.pay-detail { display: grid; gap: 6px; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 0; }
.dl dt { opacity: .6; font-size: 14px; }
.dl dd { margin: 0; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dt { margin-top: 8px; } }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.tabs-inline { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs-inline button { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(237,234,227,.18); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tabs-inline button[aria-pressed="true"] { border-color: #c9a24a; background: rgba(201,162,74,.12); }
.pill.ok { background: rgba(80,190,120,.18); color: #7ee0a3; }
.pill.bad { background: rgba(220,90,80,.18); color: #f19a92; }

/* ---------- client app: today / progress / check-in / kitchen / chat ---------- */
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--line); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--plate); font-weight: 700; margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.today-head { display: flex; gap: 18px; align-items: center; }
.today-head h1.display { font-size: clamp(30px, 8vw, 42px) !important; line-height: 1.05; margin: 0; }
.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--graphite); stroke-width: 9; }
.ring-arc { fill: none; stroke: var(--medal); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c strong { font-size: 26px; line-height: 1; }
.ring-c span { font-size: 10px; letter-spacing: .12em; color: var(--chalk-dim); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.macros > div { border: 1px solid var(--graphite); border-radius: var(--r-md); padding: 10px 12px; }
.macros span { font-size: 12px; color: var(--chalk-dim); }
.macros strong { display: block; font-size: 22px; line-height: 1.2; }
.macros strong small { font-size: 12px; color: var(--chalk-dim); font-weight: 500; }
.bar { height: 6px; border-radius: 99px; background: var(--graphite); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--medal); transition: width .4s; }
.bar.p i { background: #e0b84a; } .bar.c i { background: #5ea0e0; } .bar.f i { background: #e07a4a; } .bar.g i { background: var(--ok); }
.tl-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--graphite); }
.tl-item:first-of-type { border-top: 0; }
.tl-item > div, .tl-item > details { flex: 1; min-width: 0; }
.tl-item small { display: block; color: var(--chalk-dim); font-size: 13px; line-height: 1.4; }
.tl-item.done strong { text-decoration: line-through; opacity: .55; }
.tl-item summary { list-style: none; cursor: pointer; }
.tl-item summary::-webkit-details-marker { display: none; }
.tick { flex: none; position: relative; width: 28px; height: 28px; }
.tick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tick span { display: block; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); transition: .15s; }
.tick input:checked + span { background: var(--ok); border-color: var(--ok); }
.tick input:checked + span::after { content: ""; display: block; width: 7px; height: 13px; border: solid var(--iron); border-width: 0 3px 3px 0; transform: translate(8px, 2px) rotate(45deg); }
.tick input:focus-visible + span { outline: 2px solid var(--medal); outline-offset: 2px; }
table.items { width: 100%; margin-top: 8px; font-size: 14px; border-collapse: collapse; }
table.items td { padding: 4px 0; color: var(--chalk-dim); } table.items td:last-child { text-align: end; color: var(--chalk); font-weight: 600; }
.panel.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper strong { font-size: 22px; min-width: 70px; text-align: center; }
.stepper strong small { font-size: 12px; color: var(--chalk-dim); font-weight: 500; }
.stepper.sm strong { font-size: 16px; min-width: 24px; }
.icon-btn { font-size: 20px; line-height: 1; }
.inline { display: flex; gap: 8px; }
.inline input { width: 100%; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--iron-2); padding: 0 12px; }
.panel.note { border-color: var(--medal); }
.panel.note p:last-child { margin: 0; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats3 strong { display: block; font-size: 30px; line-height: 1.1; }
.stats3 span { font-size: 12px; color: var(--chalk-dim); }
.goalbar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--chalk-dim); }
.goalbar .bar { flex: 1; margin: 0; height: 8px; }
.chart { width: 100%; height: auto; display: block; }
.ch-line { fill: none; stroke: var(--medal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--iron); stroke: var(--medal); stroke-width: 2; }
.ch-lab { fill: var(--chalk-dim); font-size: 9px; }
.chart-empty { padding: 28px 0; text-align: center; color: var(--chalk-dim); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { margin: 0; } .pair img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-md); }
.pair figcaption { font-size: 12px; color: var(--chalk-dim); text-align: center; margin-top: 4px; }
.adh { display: grid; grid-template-columns: 90px 1fr 44px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.adh .bar { margin: 0; } .adh strong { text-align: end; }
.miles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.miles li { border: 1px solid var(--graphite); border-radius: var(--r-md); padding: 10px 14px; }
.miles li.dim { opacity: .55; } .miles small { display: block; color: var(--chalk-dim); }
.range { display: flex; align-items: center; gap: 14px; }
.range input { flex: 1; accent-color: var(--medal); }
.range output { min-width: 48px; text-align: end; font-weight: 700; }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--chalk-dim); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-pick { position: relative; aspect-ratio: 3/4; border: 1.5px dashed var(--line); border-radius: var(--r-md); display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--chalk-dim); cursor: pointer; overflow: hidden; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick.has { border-style: solid; border-color: var(--ok); }
.reply { border-inline-start: 3px solid var(--medal); padding-inline-start: 12px; }
.reply p:last-child { margin: 0; }
.kgrid { display: grid; gap: 12px; margin: 16px 0; }
.kcard { border: 1px solid var(--graphite); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 10px; }
.kcard h3 { margin: 0; font-size: 18px; } .kcard p { margin: 0; }
.kmacro { color: var(--medal); font-weight: 600; font-size: 14px; }
.kfoot { display: flex; align-items: center; justify-content: space-between; }
.cartbar { position: fixed; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; max-width: 536px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; background: var(--graphite); border: 1px solid var(--medal); border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.row-between.total { border-top: 1px solid var(--graphite); margin-top: 8px; padding-top: 10px; font-size: 18px; }
.row-between { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 420px; border: 1px solid var(--graphite); border-radius: var(--r-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--graphite); }
.chat-head small { display: block; color: var(--chalk-dim); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.45; }
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.bubble.me { align-self: flex-end; background: var(--medal); color: var(--medal-ink); border-end-end-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--graphite); border-end-start-radius: 4px; }
.daysep { align-self: center; font-size: 12px; color: var(--chalk-dim); margin: 6px 0; }
.center { text-align: center; margin: auto; }
.quick { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.chip { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--chalk-dim); cursor: pointer; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; max-height: 120px; border-radius: 14px; border: 1px solid var(--line); background: var(--iron-2); padding: 10px 14px; }
.toast { position: fixed; inset-inline: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--graphite); border: 1px solid var(--ok); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s; z-index: 80; text-align: center; }
.toast.error { border-color: var(--plate); } .toast.on { opacity: 1; transform: none; }
.loading.small { min-height: 200px; }
@media (max-width: 420px) { .macros strong { font-size: 18px; } .panel.two { grid-template-columns: 1fr; } }

/* ---------- coach: plan editor, inbox ---------- */
.pe-card { border: 1px solid var(--graphite); border-radius: var(--r-md); padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.pe-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pe-row .pe:first-child { flex: 1; min-width: 120px; }
.pe-item { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pe-item .pe:first-child { flex: 1 1 140px; }
.pe { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--iron-2); padding: 0 10px; min-width: 0; }
textarea.pe { height: auto; padding: 10px; width: 100%; }
.pe.w56 { width: 56px; } .pe.w80 { width: 80px; } .pe.w120 { width: 120px; }
.pe:focus { outline: none; border-color: var(--medal); }
.pe-targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.pe-targets label span { display: block; font-size: 12px; color: var(--chalk-dim); }
.pe-targets .pe { width: 100%; }
.pe-days { display: flex; gap: 6px; flex-wrap: wrap; }
.pe-day input { position: absolute; opacity: 0; }
.pe-day span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--chalk-dim); }
.pe-day input:checked + span { border-color: var(--medal); color: var(--medal); background: rgba(201,162,74,.1); }
.pe-day { position: relative; }
.pair3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.pair3 img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-md); }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--graphite); text-decoration: none; }
.thread:first-child { border-top: 0; }
.thread > div { flex: 1; min-width: 0; } .thread small { display: block; color: var(--chalk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { height: calc(100vh - 220px); }

/* free text typed by people (coach notes, food names, chat) keeps its own direction */
.bubble p, .tl-item strong, .tl-item small, .kcard p, .kcard h3, .panel.note p, .reply p, table.items td:first-child, .pe { unicode-bidi: plaintext; text-align: start; }
.chart { direction: ltr; }
.grid2 > *, .grid3 > * { min-width: 0; }
.grid2 input, .photo-pick { width: 100%; }
.field input, .field select, .field textarea { max-width: 100%; }

.cur-switch { max-width: 220px; margin: 0 auto 28px; }

.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.seg3 button { padding: 12px 6px; border-radius: 10px; border: 1px solid rgba(237,234,227,.18); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.seg3 button[aria-pressed="true"] { border-color: #c9a24a; background: rgba(201,162,74,.12); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed #c9a24a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.code-box small { display: block; opacity: .7; } .code-box strong { font-size: 22px; letter-spacing: 2px; color: #c9a24a; }

/* ---------- client app v2: richer cards, store, section heads ---------- */
.store-hero { position: relative; border: 1px solid var(--graphite); border-radius: var(--r-lg); padding: 22px; margin: 4px 0 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(201,162,74,.22), rgba(23,22,26,0) 60%), var(--iron); display: grid; gap: 8px; }
.store-hero h2.display { font-size: clamp(34px, 9vw, 48px); margin: 0; text-transform: uppercase; }
html[lang="ar"] .store-hero h2.display { text-transform: none; }
.store-hero p { margin: 0; color: var(--chalk-dim); }
.pgrid { display: grid; gap: 14px; margin: 14px 0 20px; grid-template-columns: 1fr 1fr; }
.pgrid.food { grid-template-columns: 1fr; }
@media (min-width: 720px) { .pgrid.food { grid-template-columns: 1fr 1fr; } .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { border: 1px solid var(--graphite); border-radius: var(--r-lg); background: var(--iron); overflow: hidden; display: flex; flex-direction: column; }
.pimg { position: relative; display: block; aspect-ratio: 16 / 10; background: #222127; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .pimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 40%, rgba(10,10,12,.82)); pointer-events: none; }
.shop .pimg { aspect-ratio: 4 / 5; }
.shop .pimg::after { display: none; }
.shop.contain .pimg { background: #f1eee8; }
.shop.contain .pimg img { object-fit: contain; padding: 10px; }
.ptitle { position: absolute; inset-inline: 16px; bottom: 12px; z-index: 1; display: grid; gap: 2px; }
.ptitle h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.ptitle small { color: var(--chalk-dim); }
.badge { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; background: rgba(240,106,58,.18); color: #ff8a5c; border: 1px solid rgba(240,106,58,.5); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.mbar { display: flex; height: 4px; }
.mbar i { display: block; height: 100%; } .mbar .p { background: #e7bd4f; } .mbar .c { background: #5aa5e6; } .mbar .f { background: #f06a3a; }
.pdesc { margin: 0; padding: 12px 16px 0; color: var(--chalk-dim); font-size: 14px; }
.pfoot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 16px; margin-top: auto; }
.pfoot .price { flex: 1; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 19px; } .price s { color: var(--chalk-dim); font-size: 13px; opacity: .7; }
.pbody { padding: 12px 14px 14px; display: grid; gap: 6px; }
.pbody h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.sicon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(201,162,74,.12); color: #e7bd4f; flex: none; }
.sicon svg { width: 20px; height: 20px; }

/* Today: section heads with an icon tile, meal thumbnails, richer macros */
.shead { display: flex; align-items: center; gap: 12px; }
.shead .sicon { width: 38px; height: 38px; background: var(--graphite); color: var(--chalk); border: 1px solid var(--line); }
.shead h2 { font-size: 20px !important; letter-spacing: .02em; text-transform: uppercase; }
html[lang="ar"] .shead h2 { text-transform: none; }
.tl-item .thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; background: linear-gradient(135deg, #6b5420, #2a2418); display: grid; place-items: center; color: rgba(255,255,255,.75); border: 1px solid var(--line); }
.tl-item .thumb svg { width: 24px; height: 24px; }
.tl-item .thumb.b { background: linear-gradient(135deg, #1f3a57, #17202b); }
.tl-item .thumb.r { background: linear-gradient(135deg, #5a2a22, #261815); }
.tl-item.done strong { text-decoration: line-through; opacity: .6; }
.stack-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; margin: 6px 0 14px; background: var(--graphite); }
.stack-bar i { display: block; height: 100%; } .stack-bar .p { background: #e7bd4f; } .stack-bar .c { background: #5aa5e6; } .stack-bar .f { background: #f06a3a; }
.macros > div:nth-child(1) strong { color: #e7bd4f; } .macros > div:nth-child(2) strong { color: #5aa5e6; } .macros > div:nth-child(3) strong { color: #f06a3a; }
.who { display: grid; line-height: 1.2; } .who b { font-size: 16px; } .who small { color: var(--chalk-dim); font-size: 12px; }
.who small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fb27f; margin-inline-end: 6px; }
.wbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.wbar i { height: 22px; border-radius: 6px; background: var(--graphite); } .wbar i.on { background: #5a86ad; }
.today-head h1.display { text-transform: uppercase; } html[lang="ar"] .today-head h1.display { text-transform: none; }
.today-head .eyebrow { color: #f06a3a; }
.tl-item { align-items: center; }
.stack-bar { direction: ltr; }
.tick input:checked + span::after { transform: translate(7px, 1px) rotate(45deg); }
.tl-item > .sicon { flex: none; }

.vrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.vlink{font-size:.78rem;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--gold,#D7FF3F);color:#12151A;text-decoration:none}
.wu summary{cursor:pointer;font-weight:700;padding:6px 0}

/* structured program (Salwan) */
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:6px 0 10px}
.wday{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 2px;border-radius:12px;border:1px solid var(--line,rgba(255,255,255,.12));background:transparent;color:inherit;font:inherit;cursor:default;min-width:0;position:relative}
button.wday{cursor:pointer}
.wday small{font-size:.66rem;opacity:.7;white-space:nowrap}
.wday b{font-size:.74rem;line-height:1.1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media (max-width:420px){.week{gap:4px}.wday{padding:8px 1px}.wday b{font-size:.66rem}}
.wday span{font-size:.66rem;opacity:.6}
.wday em{font-style:normal;font-size:.66rem;font-weight:800;padding:1px 6px;border-radius:999px;background:rgba(255,255,255,.08)}
.wday.rest b{opacity:.6}
.wday.on{background:var(--gold,#D7FF3F);color:#12151A;border-color:transparent}
.wday.on em{background:rgba(0,0,0,.12)}
.pgrid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:560px){.pgrid4{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pstat{border:1px solid var(--line,rgba(255,255,255,.12));border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.pstat span{font-size:.75rem;opacity:.7}.pstat strong{font-size:1.15rem}.pstat small{font-size:.7rem;opacity:.7}
.pgoal{margin:10px 0 0;font-weight:700}
.sched{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sched li{display:flex;gap:12px;align-items:baseline;padding:6px 10px;border-radius:10px;border-inline-start:3px solid rgba(255,255,255,.2)}
.sched li.k-train{border-color:var(--gold,#D7FF3F);background:rgba(215,255,63,.06)}
.sched li.k-meal{border-color:#8a8f99}
.sched time{font-weight:800;min-width:46px}
.rules{display:grid;gap:10px;margin-top:8px}.rules>div{display:flex;gap:12px}.rules b{color:var(--gold,#D7FF3F)}.rules strong{display:block}.rules small{opacity:.8}
.gloss{display:grid;grid-template-columns:minmax(110px,32%) 1fr;gap:6px 14px;margin:0}
.gloss dt{font-weight:800}.gloss dd{margin:0;opacity:.85}
@media (max-width:560px){.gloss{grid-template-columns:1fr}.gloss dd{margin-bottom:6px}}
.inline-h{display:inline;font-size:1.1rem}
.enote{color:var(--gold,#D7FF3F)}
.mnote{margin:6px 0 0}
.tl-item.meal details table.items td:nth-child(2){white-space:nowrap}
