/* Home tabs (W08, prototype data-s="home"). Logical properties only (RTL + LTR share one sheet). Text never below 20px
   (every size is rem-based: 1rem = 20px x --text-scale). Tap targets >= 48px. C25: the screen shell is layout.css. */
.view { display: flex; flex-direction: column; gap: var(--space-4); }
.card p { margin-block: 0; }
.view h1 { margin: 0; font-size: var(--fs-3xl); }
.view h2, .view h3 { margin: 0; }
.appbar strong { font-size: var(--fs-lg); font-weight: 700; }

/* status slots kept from the fork */
.strip {
  inline-size: 100%; border: 0; border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  background: var(--destructive); color: #fff; font-weight: 700; font-size: var(--fs-lg); text-align: start; cursor: pointer;
}
.expiry-banner { display: flex; flex-direction: column; gap: var(--space-3); background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius-xl); padding: var(--space-4); }
.expiry-banner h2, .expiry-banner p { margin: 0; }

/* today */
.hi { display: flex; flex-direction: column; gap: var(--space-1); }
.greeting { margin: 0; color: var(--ink2); }
.wk-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-block-end: var(--space-3); }
.wk-h small { font-size: var(--fs-sm); color: var(--teal); font-weight: 600; }
/* C25: the seven days share the card width (each at most 2.75rem, round), the day letters keep their 20px */
.week-days { display: flex; justify-content: space-between; gap: var(--space-1); list-style: none; margin: 0; padding: 0; min-inline-size: 0; }
.week-day { display: flex; align-items: center; justify-content: center; flex: 0 1 2.75rem; min-inline-size: 0; aspect-ratio: 1; border-radius: 50%;
  background: var(--muted); color: var(--muted-foreground); font-weight: 700; font-size: var(--fs-sm); }
.week-day[data-state="played"] { background: var(--teal); color: #fff; }
.week-day[data-today="true"] { box-shadow: 0 0 0 2px var(--teal); }
.week-day[data-state="today"] { color: var(--teal); background: transparent; }
.rowbtn { inline-size: 100%; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; align-items: center; min-block-size: var(--target-min); }
.rowbtn > div { flex: 1; }
.chev { font-size: var(--fs-2xl); color: var(--ink2); }
[dir="ltr"] .chev { transform: scaleX(-1); }

/* games */
.sect { margin: var(--space-2) 0 0; font-size: var(--fs-base); font-weight: 700; color: var(--ink2); }
.btn.rec { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); background: var(--teal-t); text-align: start; padding: var(--space-4); }
.rk2 { font-size: var(--fs-sm); font-weight: 700; color: var(--teal); }
.row2 { display: flex; align-items: center; gap: var(--space-3); }
.gt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-inline-size: 0; text-align: start; }
.gt strong { font-size: var(--fs-base); color: var(--ink); }
.gt small { font-size: var(--fs-sm); color: var(--ink2); font-weight: 400; }
.play { flex: none; inline-size: 48px; block-size: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: var(--fs-base); }
.glist { padding-block: var(--space-1); }
.btn.grow2 { display: flex; justify-content: space-between; gap: var(--space-3); background: none; box-shadow: none; padding-inline: 0; border-radius: 0; min-block-size: var(--target-min); }
.btn.grow2 + .btn.grow2 { border-block-start: 1px solid var(--line); }

/* progress */
.seg { display: inline-flex; gap: var(--space-1); padding: var(--space-1); background: var(--high); border-radius: 99px; }
.btn.seg-b { inline-size: auto; flex: 1; min-block-size: var(--target-min); padding-inline: var(--space-4); border-radius: 99px; background: transparent; font-size: var(--fs-sm); white-space: nowrap; }
.btn.seg-b[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: var(--shadow-card); }
.rows { display: flex; flex-direction: column; padding-block: var(--space-1); }
.prog i { display: block; block-size: 100%; background: var(--teal); border-radius: inherit; }

/* plan */
.phase-card { display: flex; flex-direction: column; gap: var(--space-3); }
.pc-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.pc-h strong { font-size: var(--fs-lg); color: var(--navy); }
.prog { block-size: 8px; border-radius: 4px; background: var(--high); overflow: hidden; }
.phase-card small { font-size: var(--fs-sm); color: var(--ink2); line-height: 1.5; }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: var(--target-min);
  padding-block: var(--space-2); background: none; border: 0; font: inherit; color: inherit; text-align: start; text-decoration: none; inline-size: 100%; }
button.row, a.row { cursor: pointer; }
.row + .row { border-block-start: 1px solid var(--line); }
.row-label { display: flex; flex-direction: column; gap: 2px; flex: 1; min-inline-size: 0; }
.row-small { font-size: var(--fs-sm); color: var(--ink2); }
.row-value { font-weight: 600; color: var(--ink2); text-align: end; }
button.row .row-value, a.row .row-value { color: var(--teal); }
.row.danger .row-label, .row.danger .row-value { color: var(--bad); }
.row.moment { justify-content: flex-start; }
.mark { flex: none; inline-size: 1.6rem; text-align: center; font-weight: 700; color: var(--ink2); }
.row.moment[data-on="true"] .mark { color: var(--teal); }
.textsize { display: flex; flex-direction: column; gap: var(--space-3); }
.textsize .seg { align-self: stretch; }
.delete .lead { color: var(--ink); }
.btn-danger { background: var(--bad); box-shadow: none; }

/* tab bar */
.tabbar {
  flex: none; display: flex; justify-content: space-around; gap: 0;
  padding: var(--space-2) var(--space-1) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-block-start: 1px solid var(--border);
}
.tab {
  /* C25: each tab is at least as wide as its label (flex-basis auto), the spare width is shared, so labels never touch */
  flex: 1 1 auto; border: 0; background: transparent; color: var(--muted-foreground); font-size: var(--fs-sm); font-weight: 700;
  border-radius: var(--radius-lg); padding-inline: 2px; cursor: pointer; white-space: nowrap; min-block-size: var(--target-min);
}
.tab-on { color: var(--teal); background: transparent; } /* W18b: prototype .tabbar button.on (the pill is on the icon) */

/* icons (W02 icons.js inline SVG inside an .icon-slot span) */
.icon-slot { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-slot.chev, .icon-slot.row-value { color: var(--ink2); }
.icon-slot.play2 { color: var(--teal); min-inline-size: 48px; min-block-size: 48px; }
.icon-slot.week-mark .icon { color: #fff; }
.icon-slot.mark { color: var(--ink2); }
.row.moment[data-on="true"] .icon-slot.mark { color: var(--teal); }
[dir="ltr"] .icon-slot.chev, [dir="ltr"] a.row .icon-slot.row-value, [dir="ltr"] button.row .icon-slot.row-value { transform: scaleX(-1); }

/* W18b: the prototype's home chrome (prototype .appbar .logo, .tabbar icons) */
.appbar .logo .icon { inline-size: 1.3rem; block-size: 1.3rem; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab .tab-ic { border-radius: 99px; padding: 2px 16px; }
.tab-on .tab-ic { background: var(--teal-t); }
/* the slots size to their icon (screens/exercise.css's global .icon-slot is a 1.2em grid box, which the tab pill's
   16px padding would squeeze to a zero-width icon) */
.tab .tab-ic, .appbar .logo .icon-slot { display: inline-flex; inline-size: auto; block-size: auto; }
.tab .tab-ic .icon { inline-size: 1.3rem; block-size: 1.3rem; }
/* prototype .wk-h: "השבוע" navy, "תרגלתם היום" quiet ink2 */
.wk-h strong { color: var(--navy); }
.wk-h small { color: var(--ink2); font-weight: 400; }
/* W43: the quiet reminders status at the end of the today tab */
.push-status { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: var(--space-3) auto 0; padding: var(--space-2) var(--space-3); background: none; border: 0; color: var(--ink2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.push-status .ps-ic { display: inline-flex; color: var(--ink2); }
.push-status.on .ps-ic { color: var(--teal); }
/* W47: the one gentle bar at the top of the today tab (a new version / add to the home screen) */
.home-bar { display: flex; align-items: center; gap: var(--space-2); background: var(--teal-t); border-radius: 14px; padding: var(--space-2) var(--space-3); }
.home-bar-go { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); background: none; border: 0; padding: var(--space-2) 0; color: var(--navy); font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.home-bar-a { color: var(--teal); }
.home-bar-x { flex: none; display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink2); cursor: pointer; }

/* W50: the Plan tab reminders row, one of the live channels (label above, the choice full width, labels may wrap) */
.remind-ch { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.remind-ch .row-label { text-align: start; }
.remind-days .btn.seg-b { padding-inline: 0; }
.remind-ch .seg { display: flex; }
.remind-ch .btn.seg-b { flex: 1 1 0; min-inline-size: 0; padding-inline: var(--space-2); white-space: normal; line-height: 1.2; }
