/* ============================================================================
   style: sadu-rich — skin.css  (Baloot «جلسة», the APPROVED b3-calm look, Mo 10-21 21:40 «yes good»)
   Subtraction rules (Mo «chaotic» → «better»): cream surfaces on a plain warm floor, ink text, ONE accent per role —
   gold #E2B04A only on the primary action (3-px gold lip), red #961E16 only on score/hero plaques; mono icons;
   ONE pattern max = a thin Sadu band on the top bar. Cards = cream with a 1.5-px line ring and a 3-px bottom lip
   (b3-game home), Baloo Bhaijaan 2 for Arabic, Nunito for digits. Logical properties only.
   ========================================================================== */
[data-style="sadu-rich"] body { background: var(--bg); color: var(--text); }
[data-style="sadu-rich"] .k-screen { background: var(--bg); }
[data-style="sadu-rich"] .k-page { gap: var(--s5); }
[data-style="sadu-rich"] .k-section { gap: var(--s3); }
[data-style="sadu-rich"] :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[data-style="sadu-rich"] :is(.k-title, .k-display, .k-topbar__title, .k-section__title, .k-sheet__title, .k-card__title, .k-empty__title, .k-h) { font-family: var(--font-arabic); font-weight: 800; letter-spacing: 0; }
[data-style="sadu-rich"] :is(.k-num, .k-stat__value, .k-score, .k-row__value, .k-podium__block) { font-family: var(--font-latin); font-weight: 800; font-variant-numeric: tabular-nums; }
[data-style="sadu-rich"] .k-display { font-size: 36px; line-height: 42px; }

/* ---- top bar: cream, one quiet line under it; the ONLY pattern = a 6-px Sadu band at the very top */
[data-style="sadu-rich"] .k-topbar { background: var(--surface); padding-inline: var(--s3); border-block-end: 1px solid var(--border); box-shadow: 0 4px 12px rgba(42, 29, 22, 0.06); padding-block-start: calc(var(--safe-top) + 6px); }
[data-style="sadu-rich"] .k-topbar::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 6px; background: url("assets/sadu-light.png") center top / auto 24px repeat-x; pointer-events: none; }
[data-style="sadu-rich"] .k-topbar.is-scrolled { box-shadow: 0 4px 12px rgba(42, 29, 22, 0.08); }
[data-style="sadu-rich"] .k-topbar__title { font-size: 24px; line-height: 30px; color: var(--text); padding-inline: var(--s2); }
[data-style="sadu-rich"] .k-topbar__sub { font-size: 13px; color: var(--text-2); }
[data-style="sadu-rich"] .k-topbar .k-btn--icon { color: var(--text); background: var(--surface-2); box-shadow: none; border-radius: var(--r-md); }
[data-style="sadu-rich"] .k-topbar .k-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

/* ---- tabs: ink text, a red 3-px ink under the active tab (red = «this one», like the score) */
[data-style="sadu-rich"] .k-tabs { border-block-end: 1px solid var(--border); padding-inline: var(--s2); gap: var(--s2); }
[data-style="sadu-rich"] .k-tab { font-size: 17px; font-weight: 700; color: var(--text-2); min-block-size: 48px; }
[data-style="sadu-rich"] .k-tab::after { block-size: 3px; border-radius: 3px 3px 0 0; background: var(--red); inset-inline: var(--s2); }
[data-style="sadu-rich"] :is(.k-tab[aria-selected="true"], .k-tab.is-active) { color: var(--text); font-weight: 800; }

/* ---- tab bar: cream tray (like the table's bottom tray), mono icons, the active item in red */
[data-style="sadu-rich"] .k-tabbar { background: var(--surface); border-block-start: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(42, 29, 22, 0.06); }
[data-style="sadu-rich"] .k-tabbar__item { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--text-2); min-block-size: var(--tabbar-h); }
[data-style="sadu-rich"] :is(.k-tabbar__item[aria-current], .k-tabbar__item.is-active) { color: var(--red); }
[data-style="sadu-rich"] :is(.k-tabbar__item[aria-current], .k-tabbar__item.is-active) .k-icon { fill: currentColor; fill-opacity: 0.14; }

/* ---- buttons: gold primary with a 3-px lip (the table's «سوا»), cream secondaries, no gloss */
[data-style="sadu-rich"] .k-btn { --btn-h: 48px; --btn-px: var(--s5); --btn-fs: 17px; border-radius: var(--r-md); font-family: var(--font-arabic); font-weight: 800; letter-spacing: 0; background: var(--accent); color: var(--accent-fg); box-shadow: 0 3px 0 var(--accent-lip); }
[data-style="sadu-rich"] .k-btn:active { box-shadow: 0 1px 0 var(--accent-lip); }
[data-style="sadu-rich"] .k-btn--sm { --btn-h: 40px; --btn-px: var(--s3); --btn-fs: 15px; }
[data-style="sadu-rich"] .k-btn--lg { --btn-h: 56px; --btn-fs: 20px; border-radius: var(--r-lg); }
[data-style="sadu-rich"] .k-btn--secondary { background: var(--surface-2); color: var(--text); box-shadow: 0 3px 0 var(--border); }
[data-style="sadu-rich"] .k-btn--secondary:active { background: var(--surface-3); box-shadow: 0 1px 0 var(--border); }
[data-style="sadu-rich"] .k-btn--soft { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
[data-style="sadu-rich"] .k-btn--ghost { background: transparent; box-shadow: none; color: var(--text); }
[data-style="sadu-rich"] .k-btn--ghost:active { background: var(--surface-2); }
[data-style="sadu-rich"] .k-btn--danger { background: var(--surface-2); color: var(--red); box-shadow: 0 3px 0 var(--border); }
[data-style="sadu-rich"] .k-btn--danger:not(.k-btn--soft) { background: var(--red); color: var(--surface); box-shadow: 0 3px 0 var(--red-d); }
[data-style="sadu-rich"] .k-btn--danger.k-btn--soft { background: var(--danger-soft); color: var(--red); box-shadow: inset 0 0 0 1.5px rgba(166, 47, 37, 0.3); }
[data-style="sadu-rich"] .k-btn--icon { border-radius: var(--r-md); background: var(--surface-2); color: var(--text); box-shadow: none; }
[data-style="sadu-rich"] .k-btn[disabled], [data-style="sadu-rich"] .k-btn[aria-disabled="true"] { opacity: 0.5; }

/* ---- chips: cream pill, selected = ink */
[data-style="sadu-rich"] :is(.k-chip, :is(.k-card, .k-sheet, .k-stat) .k-chip) { background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--border); font-size: 15px; font-weight: 700; min-block-size: 40px; padding-inline: var(--s4); border-radius: var(--r-full); }
[data-style="sadu-rich"] :is(.k-chip[aria-pressed="true"], .k-chip.is-active) { background: var(--text); color: var(--surface); box-shadow: none; }
[data-style="sadu-rich"] :is(.k-chip--accent[aria-pressed="true"], .k-chip--accent.is-active) { background: var(--accent); color: var(--accent-fg); }
[data-style="sadu-rich"] .k-chip--outlined { background: transparent; }

/* ---- segmented */
[data-style="sadu-rich"] .k-seg { border-radius: var(--r-md); background: var(--surface-2); padding: 4px; min-block-size: 48px; box-shadow: none; }
[data-style="sadu-rich"] .k-seg__pill { inset-block: 4px; inline-size: calc((100% - 8px) / var(--n)); inset-inline-start: calc(4px + var(--i) * (100% - 8px) / var(--n)); border-radius: calc(var(--r-md) - 4px); background: var(--surface); box-shadow: 0 2px 0 var(--border); }
[data-style="sadu-rich"] .k-seg__item { font-size: 15px; font-weight: 700; min-block-size: 40px; }

/* ---- cards: cream, 1.5-px line ring, 3-px bottom lip; the hero (.k-noise) = the red plaque (like the score box) */
[data-style="sadu-rich"] .k-card { background: var(--surface); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--card-ring), var(--sh-1); }
[data-style="sadu-rich"] .k-card--raised { background: var(--surface); }
[data-style="sadu-rich"] .k-card--outlined { background: transparent; box-shadow: var(--card-ring); }
[data-style="sadu-rich"] .k-card--accent { background: var(--accent); color: var(--accent-fg); box-shadow: 0 3px 0 var(--accent-lip); }
[data-style="sadu-rich"] .k-card--flush { padding: 0; }
[data-style="sadu-rich"] .k-card.k-noise {
  --text: #FDF5E9; --text-2: #F8DAD0; --text-3: #F1CDC1; --bg: #961E16; --surface: #961E16; --surface-2: #801711; --surface-3: #6E120D; --surface-4: #A32920;
  --border: rgba(255, 250, 242, 0.25); --border-strong: rgba(255, 250, 242, 0.4); --card-ring: none;
  --success: #CFF0B8; --danger: #FFD0C8; --accent-text: #FFD98A; --accent-soft: rgba(255, 250, 242, 0.14); --accent-soft-2: rgba(255, 250, 242, 0.22);
  background: var(--red); color: #FDF5E9; box-shadow: 0 3px 0 var(--red-d), 0 6px 14px rgba(122, 31, 24, 0.18);
}
[data-style="sadu-rich"] .k-card.k-noise .k-btn:not(.k-btn--secondary):not(.k-btn--ghost):not(.k-btn--soft) { --accent-fg: #3A2608; background: #E2B04A; color: #3A2608; box-shadow: 0 3px 0 #6E4E10; }
[data-style="sadu-rich"] .k-card.k-noise :is(.k-btn--secondary, .k-btn--soft) { background: rgba(255, 250, 242, 0.14); color: #FDF5E9; box-shadow: none; }
[data-style="sadu-rich"] .k-noise::after { display: none; }
[data-style="sadu-rich"] .k-card__title { font-size: 20px; line-height: 26px; }
[data-style="sadu-rich"] .k-card--interactive:active { transform: translateY(2px); box-shadow: var(--card-ring), 0 1px 0 var(--border); }

/* ---- rows */
[data-style="sadu-rich"] .k-row { padding-inline: var(--s4); }
[data-style="sadu-rich"] .k-row__title { font-size: 17px; line-height: 24px; font-weight: 700; }
[data-style="sadu-rich"] .k-row__sub { font-size: 13px; line-height: 18px; color: var(--text-2); }
[data-style="sadu-rich"] .k-row__value { font-size: 17px; }
[data-style="sadu-rich"] .k-row__value--strong { font-size: 20px; color: var(--text); }
[data-style="sadu-rich"] :is(.k-list > .k-row + .k-row, .k-list > .k-fixture + .k-fixture, .k-list > .k-row + .k-row--swipe, .k-list > .k-row--swipe + .k-row, .k-list > .k-row--swipe + .k-row--swipe)::before { background: var(--border); }
[data-style="sadu-rich"] .k-row__lead--box { border-radius: var(--r-md); background: var(--surface-2); box-shadow: none; color: var(--text); }
[data-style="sadu-rich"] .k-row__lead--accent { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
[data-style="sadu-rich"] .k-row--tap:active { background: var(--surface-2); }
[data-style="sadu-rich"] :is(.k-row.is-selected, .k-row--tap[aria-selected="true"]) { background: var(--accent-soft); }
[data-style="sadu-rich"] :is(.k-row--swipe, .k-row--swipe > .k-row) { background: var(--surface); }

/* ---- section */
[data-style="sadu-rich"] .k-section__head { align-items: baseline; }
[data-style="sadu-rich"] .k-section__title { font-size: 20px; line-height: 26px; color: var(--text); }
[data-style="sadu-rich"] .k-section__title--sm { font-size: 17px; line-height: 24px; }
[data-style="sadu-rich"] .k-section__action { color: var(--accent-text); font-size: 15px; font-weight: 800; }
[data-style="sadu-rich"] .k-section__sub { color: var(--text-2); font-size: 13px; }

/* ---- stat: cream box (like the table's rating box), ink number */
[data-style="sadu-rich"] .k-stat { background: var(--surface); border-radius: var(--r-lg); padding: var(--s3) var(--s4); box-shadow: var(--card-ring), var(--sh-1); gap: 2px; }
[data-style="sadu-rich"] .k-stat__label { font-size: 13px; line-height: 18px; color: var(--text-2); font-weight: 700; }
[data-style="sadu-rich"] .k-stat__value { font-size: 30px; line-height: 36px; color: var(--text); }
[data-style="sadu-rich"] .k-stat__value--lg { font-size: 52px; line-height: 56px; }
[data-style="sadu-rich"] .k-stat__unit { font-family: var(--font-arabic); font-size: 15px; color: var(--text-2); font-weight: 700; }
[data-style="sadu-rich"] .k-delta { font-weight: 800; font-size: 13px; }
[data-style="sadu-rich"] .k-score { font-size: 30px; }

/* ---- badges */
[data-style="sadu-rich"] .k-badge { background: var(--surface-2); color: var(--text-2); box-shadow: none; font-size: 13px; font-weight: 800; block-size: 24px; padding-inline: 8px; border-radius: var(--r-full); }
[data-style="sadu-rich"] .k-badge--accent { background: var(--accent-soft-2); color: var(--accent-text); }
[data-style="sadu-rich"] .k-badge--success { background: var(--success-soft); color: var(--success); }
[data-style="sadu-rich"] .k-badge--danger { background: var(--danger-soft); color: var(--red); }
[data-style="sadu-rich"] .k-badge--warning { background: var(--warning-soft); color: var(--warning); }
[data-style="sadu-rich"] .k-badge--info { background: var(--info-soft); color: var(--info); }
[data-style="sadu-rich"] .k-badge--solid { background: var(--accent); color: var(--accent-fg); }
[data-style="sadu-rich"] :is(.k-badge--live, .k-badge--count) { background: var(--red); color: #FDF5E9; }
[data-style="sadu-rich"] .k-badge--count { block-size: 20px; min-inline-size: 20px; }
[data-style="sadu-rich"] .k-badge-dot { background: var(--red); box-shadow: 0 0 0 2px var(--surface); }

/* ---- inputs */
[data-style="sadu-rich"] :is(.k-input, :is(.k-card, .k-sheet, .k-stat) .k-input) { background: var(--surface-4); border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--border); min-block-size: 48px; }
[data-style="sadu-rich"] .k-input:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
[data-style="sadu-rich"] .k-input.is-invalid { box-shadow: inset 0 0 0 2px var(--red); }
[data-style="sadu-rich"] .k-input > .k-icon { color: var(--text-2); }
[data-style="sadu-rich"] .k-input > select { background-color: var(--surface-4); }
[data-style="sadu-rich"] .k-search { border-radius: var(--r-full); }
[data-style="sadu-rich"] .k-label { font-weight: 800; color: var(--text-2); font-size: 15px; }
[data-style="sadu-rich"] .k-switch { background: var(--surface-3); box-shadow: none; }
[data-style="sadu-rich"] .k-switch::after { background: #FCF9F2; }
[data-style="sadu-rich"] .k-switch[aria-checked="true"] { background: var(--accent); }

/* ---- sheet / toast / popover / banner */
[data-style="sadu-rich"] .k-sheet { background: var(--surface); border-start-start-radius: var(--r-xl); border-start-end-radius: var(--r-xl); box-shadow: var(--sh-3); padding-inline: var(--gutter); }
[data-style="sadu-rich"] .k-sheet__grip { inline-size: 44px; block-size: 4px; background: var(--border-strong); }
[data-style="sadu-rich"] .k-sheet__title { font-size: 20px; line-height: 26px; }
[data-style="sadu-rich"] .k-toast { border-radius: var(--r-md); background: var(--text); color: var(--surface); box-shadow: var(--sh-2); font-weight: 700; }
[data-style="sadu-rich"] .k-toast--inverse { background: var(--surface); color: var(--text); }
[data-style="sadu-rich"] .k-toast__action { font-weight: 800; color: var(--accent); }
[data-style="sadu-rich"] .k-popover { border-radius: var(--r-md); background: var(--surface); box-shadow: var(--card-ring), var(--sh-2); }
[data-style="sadu-rich"] .k-popover__item { font-weight: 700; }
[data-style="sadu-rich"] .k-tooltip { background: var(--text); color: var(--surface); }
[data-style="sadu-rich"] .k-banner { border-radius: var(--r-md); background: var(--surface-2); box-shadow: none; color: var(--text); }
[data-style="sadu-rich"] .k-banner--accent { background: var(--accent-soft); }
[data-style="sadu-rich"] .k-banner--danger { background: var(--danger-soft); color: var(--red); }

/* ---- table / podium */
[data-style="sadu-rich"] .k-table-wrap { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-ring); }
[data-style="sadu-rich"] .k-table th { background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 800; }
[data-style="sadu-rich"] .k-table tr + tr td { border-block-start: 1px solid var(--border); }
[data-style="sadu-rich"] .k-table tr.is-highlight td { background: var(--accent-soft); }
[data-style="sadu-rich"] .k-podium__block { border-start-start-radius: var(--r-md); border-start-end-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: 24px; box-shadow: none; }
[data-style="sadu-rich"] .k-podium__place--1 .k-podium__block { background: var(--accent); color: var(--accent-fg); box-shadow: 0 3px 0 var(--accent-lip); }
[data-style="sadu-rich"] .k-podium__name { font-weight: 800; font-size: 13px; }

/* ---- progress / avatar / empty */
[data-style="sadu-rich"] .k-progress { block-size: 10px; background: var(--surface-3); box-shadow: none; border-radius: var(--r-full); }
[data-style="sadu-rich"] .k-progress__bar { background: var(--accent); border-radius: var(--r-full); }
[data-style="sadu-rich"] .k-avatar { background: var(--surface-2); color: var(--red); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); font-family: var(--font-arabic); font-weight: 800; }
[data-style="sadu-rich"] .k-avatar.flat { box-shadow: none; }
[data-style="sadu-rich"] .k-avatar--square { border-radius: var(--r-md); }
[data-style="sadu-rich"] .k-avatar--accent { background: var(--surface-2); color: var(--red); }
[data-style="sadu-rich"] .k-empty__icon { border-radius: var(--r-full); background: var(--surface-2); box-shadow: none; color: var(--text-2); inline-size: 64px; block-size: 64px; }
[data-style="sadu-rich"] .k-empty__title { font-size: 20px; line-height: 26px; }
[data-style="sadu-rich"] .k-skeleton { background: var(--surface-2); }
[data-style="sadu-rich"] .k-hairline { background: var(--border); }
[data-style="sadu-rich"] :is(.k-divider-label::before, .k-divider-label::after) { background: var(--border); }
[data-style="sadu-rich"] .k-fab { border-radius: var(--r-full); box-shadow: 0 3px 0 var(--accent-lip), var(--sh-2); }
[data-style="sadu-rich"] .k-caption { color: var(--text-2); }
[data-style="sadu-rich"] .k-icon { stroke-width: 2; }

@media (hover: hover) and (pointer: fine) {
  [data-style="sadu-rich"] .k-btn--secondary:hover { background: var(--surface-3); filter: none; }
  [data-style="sadu-rich"] .k-chip:hover { color: var(--text); }
  [data-style="sadu-rich"] .k-row--tap:hover { background: var(--surface-2); }
}

/* ---- avatar initials on this style's type scale */
[data-style="sadu-rich"] .k-avatar { --av-fs: 17px; }
[data-style="sadu-rich"] .k-avatar--sm { --av-fs: 13px; }
[data-style="sadu-rich"] .k-avatar--xs { --av-fs: 11px; }
[data-style="sadu-rich"] .k-avatar--lg { --av-fs: 20px; }
[data-style="sadu-rich"] .k-avatar--xl { --av-fs: 30px; }

/* ---- faded labels must FILL their box (kit.css .k-fade note): a content-sized stat label / centred name faded its own first letters */
[data-style="sadu-rich"] :is(.k-stat__label, .k-stat .k-fade, .k-h.k-fade) { align-self: stretch; display: block; }
[data-style="sadu-rich"] :is(.k-spread, .home-pill__value, .k-row__body) > :is(.k-row__title, .k-fade, .k-stat__label) { flex: 1 1 auto; min-inline-size: 0; }
