/* =========================================================================
   Strategic Solutions, Inc. — Foundations
   Colors, type, spacing, radii, shadow, motion
   ========================================================================= */

/* ---------- Webfonts (Google Fonts) -----------------------------------------
   Display: Source Serif 4  — institutional serif (a-la policy briefs, nonprofit reports)
   Body:    Source Sans 3   — humanist sans, pairs natively
   Mono:    JetBrains Mono  — data, code, callouts
   --------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,300..900&family=Source+Sans+3:wght@300..900&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  /* ===== BRAND COLORS ===================================================== */

  /* Primary — Navy (drawn directly from the SSI logo)                       */
  --navy-50:  #EEF2F7;
  --navy-100: #D6DFEC;
  --navy-200: #A8B8CF;
  --navy-300: #7991B1;
  --navy-400: #4D6A92;
  --navy-500: #2A4E7C;  /* hover / active */
  --navy-600: #1B3A6B;  /* PRIMARY — logo blue */
  --navy-700: #142B51;
  --navy-800: #0E1F3B;
  --navy-900: #081427;

  /* Accent — Steel blue (mid-tone civic blue — a confident sibling to navy)  */
  /* The brand is intentionally monochromatic: navy + steel + cream.          */
  /* Steel-500 anchors CTAs, eyebrows, edge rules, and emphasis spans.       */
  --steel-50:  #EDF3F9;
  --steel-100: #CFE0EE;
  --steel-200: #9EC0DD;
  --steel-300: #6BA0CB;
  --steel-400: #4385B8;
  --steel-500: #2A6FAE;  /* ACCENT — civic blue */
  --steel-600: #1F578C;
  --steel-700: #174369;
  --steel-800: #0F3149;
  --steel-900: #082136;

  /* Support — Sage (single tone, used only for success state / positive)    */
  /* No longer the accent — just a quiet positive signal where needed.       */
  --sage-100: #DDE7D2;
  --sage-500: #556D42;
  --sage-600: #445A36;

  /* Support — Earth-clay (rare warm note for art direction; not for UI)     */
  /* Use sparingly — for photography accents, art-directed elements, NEVER   */
  /* as a CTA or interactive surface (the brand is intentionally cool now).  */
  --clay-400:  #B07A55;
  --clay-500:  #8F6043;

  /* Support — Gold (legacy; retained for grants data accents only)          */
  --gold-50:  #FBF4E1;
  --gold-100: #F5E5B6;
  --gold-200: #EBCF7D;
  --gold-300: #DAB148;
  --gold-400: #C49628;
  --gold-500: #A77C1A;

  /* Neutrals — warm cream → ink (NOT pure white or pure black)              */
  --cream-50:  #FBF8F2;  /* page bg, light surface */
  --cream-100: #F4EFE6;  /* SURFACE — primary cream */
  --cream-200: #EAE2D2;  /* divider, muted surface */
  --cream-300: #D8CDB7;
  --stone-400: #A89E8C;
  --stone-500: #7A7263;
  --stone-600: #54503F;  /* body text on cream */
  --ink-700:   #2C2A24;  /* primary text */
  --ink-800:   #1A1916;
  --ink-900:   #0E0D0B;

  /* Pure scaffolding — sparingly */
  --paper:    #FFFFFF;
  --shadow-ink: rgba(14, 31, 59, 0.12);   /* navy-tinted shadow */

  /* ===== SEMANTIC COLOR TOKENS =========================================== */

  --color-bg:           var(--cream-50);
  --color-surface:      var(--paper);
  --color-surface-2:    var(--cream-100);
  --color-surface-3:    var(--cream-200);
  --color-surface-ink:  var(--navy-600);   /* dark surfaces (footer / hero) */
  --color-surface-ink-2:var(--navy-800);

  --color-fg-1:         var(--ink-700);    /* primary text */
  --color-fg-2:         var(--stone-600);  /* body / secondary */
  --color-fg-3:         var(--stone-500);  /* tertiary / meta */
  --color-fg-on-ink:    var(--cream-50);   /* text on navy */
  --color-fg-on-ink-2:  var(--cream-200);

  --color-border:       var(--cream-200);
  --color-border-strong:var(--cream-300);
  --color-divider:      rgba(44, 42, 36, 0.10);

  --color-primary:      var(--navy-600);
  --color-primary-hover:var(--navy-700);
  --color-primary-fg:   var(--cream-50);

  --color-accent:       var(--steel-500);
  --color-accent-hover: var(--steel-600);
  --color-accent-fg:    var(--cream-50);

  --color-link:         var(--navy-600);
  --color-link-hover:   var(--steel-500);

  --color-success:      var(--sage-600);
  --color-warning:      var(--gold-400);
  --color-danger:       #9A3322;  /* deep brick red — for error states only, NOT the brand accent */

  /* ===== TYPE SYSTEM ===================================================== */

  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale — modular, 1.250 (major third) anchored at 17px body         */
  --fs-display-1: clamp(3.2rem, 5.2vw + 1rem, 5.5rem);   /* hero */
  --fs-display-2: clamp(2.6rem, 3.6vw + 1rem, 4.0rem);   /* section opener */
  --fs-h1:        clamp(2.2rem, 2.4vw + 1rem, 3.0rem);
  --fs-h2:        clamp(1.7rem, 1.4vw + 1rem, 2.2rem);
  --fs-h3:        clamp(1.35rem, 0.6vw + 1rem, 1.6rem);
  --fs-h4:        1.15rem;
  --fs-lead:      1.25rem;   /* intro paragraphs */
  --fs-body:      1.0625rem; /* 17px — body */
  --fs-small:     0.9375rem; /* 15px */
  --fs-meta:      0.8125rem; /* 13px — labels / eyebrows */
  --fs-data:      clamp(2.4rem, 2.5vw + 1rem, 3.6rem);   /* big-number callouts */

  /* Weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* Line-heights & tracking */
  --lh-tight:   1.08;
  --lh-snug:    1.22;
  --lh-normal:  1.55;
  --lh-loose:   1.7;

  --tracking-eyebrow: 0.14em;   /* uppercase labels */
  --tracking-tight:   -0.018em; /* display */
  --tracking-snug:    -0.005em;
  --tracking-normal:   0;

  /* ===== SPACING — 4pt baseline ========================================== */
  --s-0:   0;
  --s-1:   0.25rem;   /* 4  */
  --s-2:   0.5rem;    /* 8  */
  --s-3:   0.75rem;   /* 12 */
  --s-4:   1rem;      /* 16 */
  --s-5:   1.5rem;    /* 24 */
  --s-6:   2rem;      /* 32 */
  --s-7:   2.5rem;    /* 40 */
  --s-8:   3rem;      /* 48 */
  --s-9:   4rem;      /* 64 */
  --s-10:  5rem;      /* 80 */
  --s-11:  6rem;      /* 96 */
  --s-12:  8rem;      /* 128 — section gutters */

  /* ===== RADII =========================================================== */
  --r-0:   0;
  --r-xs:  2px;
  --r-sm:  4px;
  --r-md:  6px;     /* default — buttons, inputs */
  --r-lg:  10px;    /* cards */
  --r-xl:  16px;    /* large cards / image frames */
  --r-pill: 999px;

  /* ===== ELEVATION ======================================================= */
  --shadow-xs: 0 1px 2px rgba(14, 31, 59, 0.06);
  --shadow-sm: 0 2px 6px -1px rgba(14, 31, 59, 0.08), 0 1px 2px rgba(14, 31, 59, 0.05);
  --shadow-md: 0 8px 22px -8px rgba(14, 31, 59, 0.16), 0 2px 6px -2px rgba(14, 31, 59, 0.08);
  --shadow-lg: 0 22px 50px -18px rgba(14, 31, 59, 0.24), 0 6px 14px -6px rgba(14, 31, 59, 0.10);
  --shadow-inset: inset 0 0 0 1px rgba(14, 31, 59, 0.08);

  /* ===== MOTION ========================================================== */
  --ease-out:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emph:    cubic-bezier(0.34, 1.42, 0.64, 1);

  --dur-fast:    150ms;
  --dur-base:    220ms;
  --dur-slow:    420ms;

  /* ===== LAYOUT ========================================================== */
  --container-narrow: 760px;
  --container-base:   1100px;
  --container-wide:   1280px;

  --hairline: 1px solid var(--color-border);
}

/* ============================================================================
   SEMANTIC ELEMENT DEFAULTS
   Apply by importing this file. Element-level resets so unstyled HTML
   from inside the design system already looks branded.
   ============================================================================ */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Account for sticky header height when jumping to anchored sections */
:target,
section[id] {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-fg-1);
  margin: 0 0 var(--s-4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-snug); }

.display-1 { font-family: var(--font-display); font-size: var(--fs-display-1); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.display-2 { font-family: var(--font-display); font-size: var(--fs-display-2); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }

p { margin: 0 0 var(--s-4); color: var(--color-fg-2); text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-loose); color: var(--color-fg-1); }
small, .small { font-size: var(--fs-small); color: var(--color-fg-2); }
.meta, .eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
}
.data-figure {
  font-family: var(--font-display);
  font-size: var(--fs-data);
  font-weight: var(--fw-regular);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
  line-height: 1;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-link-hover); }

hr {
  border: 0;
  height: 1px;
  background: var(--color-divider);
  margin: var(--s-8) 0;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: var(--steel-100);
  color: var(--ink-800);
}


/* =========================================================================
   Our Day — app styles. Built on the SSI design tokens (colors_and_type.css).
   Warm, calm, family-of-the-house flavor: cream paper, navy authority,
   sage "go", gold warmth, institutional serif numerals. Phone-framed PWA.
   ========================================================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% -10%, var(--cream-100), var(--cream-50) 55%);
  min-height: 100vh;
  color: var(--color-fg-1);
  -webkit-tap-highlight-color: transparent;
}
#root { min-height: 100vh; }

/* ---- Scene: phone centered on a warm backdrop --------------------------- */
.rb-scene { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px 48px; }
.rb-phone {
  --accent: var(--steel-500);
  width: 392px; max-width: 100%; height: 812px; max-height: calc(100vh - 56px);
  background: var(--navy-900); border-radius: 44px; padding: 12px;
  box-shadow: 0 2px 0 1px rgba(255,255,255,0.04) inset, var(--shadow-lg), 0 40px 80px -30px rgba(8,20,39,0.55);
  position: relative;
}
.rb-screen {
  position: relative; width: 100%; height: 100%; background: var(--cream-50);
  border-radius: 33px; overflow: hidden; display: flex; flex-direction: column;
}

/* device status bar */
.rb-statusbar {
  height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-family: var(--font-body); font-weight: var(--fw-bold); font-size: 14px;
  color: var(--ink-800); background: var(--cream-50);
}
.rb-statusbar .rb-sb-icons { display: flex; align-items: center; gap: 6px; color: var(--ink-700); }

/* ---- App header --------------------------------------------------------- */
.rb-appbar {
  flex: 0 0 auto; background: var(--navy-600); color: var(--cream-50);
  padding: 12px 18px 14px; border-top: 3px solid var(--gold-400);
}
.rb-appbar-row { display: flex; align-items: center; justify-content: space-between; }
.rb-appbar-brand { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 18px; letter-spacing: -0.01em; color: var(--cream-50); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rb-appbar-brand .rb-brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-400); color: var(--navy-800); display: grid; place-items: center; flex: 0 0 26px; }
.rb-appbar-brand i { font-style: normal; }
.rb-langbtn {
  display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.10); color: var(--cream-50);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-pill); padding: 6px 12px;
  font: inherit; font-weight: var(--fw-semibold); font-size: 13px; cursor: pointer;
}
.rb-langbtn:active { transform: scale(0.97); }
.rb-userchip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: var(--cream-50); border-radius: var(--r-pill); padding: 5px 8px 5px 5px; font: inherit; font-weight: var(--fw-bold); font-size: 12px; cursor: pointer; }
.rb-userchip .rb-uc-av { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-400); color: var(--navy-800); display: grid; place-items: center; font-size: 10px; font-weight: var(--fw-bold); }

/* connectivity */
.rb-connbanner {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px; background: var(--gold-50); color: var(--gold-500);
  border-bottom: 1px solid var(--gold-200); padding: 9px 16px; font-size: 12.5px; font-weight: var(--fw-semibold);
}
.rb-synccount { margin-left: auto; background: var(--gold-400); color: var(--navy-800); min-width: 20px; height: 20px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: var(--fw-bold); padding: 0 6px; }

/* ---- Scroll body -------------------------------------------------------- */
.rb-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 18px 22px; }
.rb-body::-webkit-scrollbar { width: 0; }

/* ---- Floating clock bar (docked above tabs, persistent) ----------------- */
.rb-clockbar { flex: 0 0 auto; padding: 10px 14px 12px; background: var(--cream-50); border-top: 1px solid var(--color-border); }
.rb-clockbtn {
  width: 100%; border: 0; cursor: pointer; font: inherit; color: var(--cream-50);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: radial-gradient(140% 140% at 50% 0%, var(--steel-400), var(--steel-600) 85%);
  border-radius: var(--r-lg); padding: 14px; box-shadow: 0 12px 26px -12px rgba(31,87,140,0.5);
  transition: transform var(--dur-fast) var(--ease-out);
}
.rb-clockbtn:active { transform: scale(0.985); }
.rb-clockbtn-main { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-semibold); }
.rb-clockbtn-sub { font-family: var(--font-body); font-size: 12.5px; font-weight: var(--fw-semibold); opacity: 0.85; }
.rb-clockstrip {
  width: 100%; display: flex; align-items: center; gap: 12px; border: 0; cursor: pointer; font: inherit; text-align: left;
  background: linear-gradient(150deg, #6f8a59, var(--sage-600)); color: var(--cream-50);
  border-radius: var(--r-lg); padding: 11px 14px; box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out);
}
.rb-clockstrip:active { transform: scale(0.99); }
.rb-clockstrip[data-paused="true"] { background: linear-gradient(150deg, #8a7d52, var(--gold-500)); }
.rb-cs-timer { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 27px; font-weight: var(--fw-semibold); line-height: 1; flex: 0 0 auto; }
.rb-cs-mid { flex: 1; min-width: 0; }
.rb-cs-state { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; font-weight: var(--fw-bold); opacity: 0.9; }
.rb-cs-act { font-weight: var(--fw-bold); font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-cs-chev { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; }
.rb-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(255,255,255,0.5); animation: rb-pulse 2s infinite; flex: 0 0 8px; }
@keyframes rb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---- Bottom tab bar ----------------------------------------------------- */
.rb-tabbar { flex: 0 0 auto; display: flex; background: var(--paper); border-top: 1px solid var(--color-border); padding: 7px 4px 10px; }
.rb-tab { flex: 1; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; color: var(--stone-500); font: inherit; font-size: 10px; font-weight: var(--fw-semibold); letter-spacing: 0.01em; border-radius: var(--r-md); }
.rb-tab[data-active="true"] { color: var(--navy-600); }
.rb-tab[data-active="true"] .rb-tab-ico { background: var(--navy-50); }
.rb-tab-ico { width: 40px; height: 28px; border-radius: var(--r-pill); display: grid; place-items: center; transition: background var(--dur-fast) var(--ease-out); }

/* ---- Generic bits ------------------------------------------------------- */
.rb-eyebrow { font-family: var(--font-body); font-size: 11.5px; font-weight: var(--fw-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--steel-600); margin: 0 0 4px; display: flex; align-items: center; gap: 7px; }
.rb-eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--steel-500); border-radius: 2px; }
.rb-eyebrow--center { justify-content: center; }
.rb-eyebrow--center::before { display: none; }
.rb-h { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--ink-800); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.rb-sub { color: var(--stone-600); font-size: 14px; margin: 4px 0 0; line-height: 1.45; }
.rb-card { background: var(--paper); border: 1px solid var(--color-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px; }
.rb-card + .rb-card { margin-top: 12px; }
.rb-meta { font-size: 12.5px; color: var(--stone-500); margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rb-divider { height: 1px; background: var(--color-divider); margin: 16px 0; border: 0; }
.rb-iconbtn { border: 0; background: var(--cream-100); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--stone-600); flex: 0 0 32px; }
.rb-linkbtn { background: none; border: 0; color: var(--color-accent); font: inherit; font-weight: var(--fw-bold); font-size: 12.5px; cursor: pointer; white-space: nowrap; padding: 4px; }

/* ---- Buttons ------------------------------------------------------------ */
.rb-btn { width: 100%; border: none; cursor: pointer; font: inherit; font-weight: var(--fw-bold); font-size: 16px; padding: 16px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 9px; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.rb-btn:active { transform: scale(0.985); }
.rb-btn--primary { background: var(--navy-600); color: var(--cream-50); }
.rb-btn--primary:active { background: var(--navy-700); }
.rb-btn--accent { background: var(--steel-500); color: var(--cream-50); }
.rb-btn--ghost { background: transparent; color: var(--navy-600); border: 1.5px solid var(--navy-300); }
.rb-btn--danger { background: var(--color-danger); color: var(--cream-50); }
.rb-btn--xl { padding: 18px; font-size: 17px; }
.rb-btn--sm { padding: 10px 14px; font-size: 14px; width: auto; }

/* ---- Stat strip / summary banner --------------------------------------- */
.rb-stats { display: flex; gap: 10px; width: 100%; }
.rb-stat { flex: 1; background: var(--paper); border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-xs); }
.rb-stat-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: var(--fw-semibold); color: var(--navy-600); line-height: 1; }
.rb-stat-lbl { font-size: 11.5px; color: var(--stone-500); margin-top: 4px; font-weight: var(--fw-semibold); }
.rb-summary { background: var(--navy-600); color: var(--cream-50); border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; border-top: 3px solid var(--gold-400); }
.rb-summary-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 40px; font-weight: var(--fw-semibold); line-height: 1; letter-spacing: -0.01em; }
.rb-summary-lbl { font-size: 12.5px; color: var(--steel-200); font-weight: var(--fw-semibold); margin-top: 6px; letter-spacing: 0.04em; }
.rb-summary-row { display: flex; justify-content: space-between; align-items: flex-end; }

/* ---- Avatars / pills ---------------------------------------------------- */
.rb-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--navy-600); color: var(--cream-50); display: grid; place-items: center; font-weight: var(--fw-bold); font-family: var(--font-display); font-size: 15px; }
.rb-avatar--sm { width: 26px; height: 26px; flex: 0 0 26px; font-size: 11px; }
.rb-avatar--xs { width: 22px; height: 22px; flex: 0 0 22px; font-size: 9.5px; }
.rb-statuspill { font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 9px; border-radius: var(--r-pill); }
.rb-statuspill[data-s="pending"] { background: var(--gold-50); color: var(--gold-500); }
.rb-statuspill[data-s="approved"] { background: var(--sage-100); color: var(--sage-600); }
.rb-statuspill[data-s="rejected"] { background: #F6E9E5; color: var(--color-danger); }

/* ---- Week strip (Today) ------------------------------------------------- */
.rb-weekstrip { display: flex; gap: 5px; margin-bottom: 16px; }
.rb-day { flex: 1; border: 1px solid var(--color-border); background: var(--paper); border-radius: var(--r-md); padding: 8px 2px 7px; text-align: center; cursor: pointer; position: relative; transition: transform var(--dur-fast); }
.rb-day:active { transform: scale(0.97); }
.rb-day-dow { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone-500); }
.rb-day-date { font-family: var(--font-display); font-size: 16px; font-weight: var(--fw-semibold); color: var(--ink-800); line-height: 1.1; margin-top: 2px; }
.rb-day-dot { width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0; background: var(--sage-600); }
.rb-day-dot[data-school="true"] { background: var(--gold-400); }
.rb-day-dot[data-empty="true"] { background: var(--cream-300); }
.rb-day[data-today="true"] { background: var(--navy-600); border-color: var(--navy-600); }
.rb-day[data-today="true"] .rb-day-dow { color: var(--steel-200); }
.rb-day[data-today="true"] .rb-day-date { color: var(--cream-50); }

/* ---- Day schedule ------------------------------------------------------- */
.rb-planhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.rb-sched { display: flex; flex-direction: column; }
.rb-slot { display: flex; gap: 12px; align-items: stretch; }
.rb-slot-time { flex: 0 0 56px; font-family: var(--font-mono); font-size: 11.5px; color: var(--stone-500); padding-top: 13px; text-align: right; font-weight: 500; }
.rb-slot-rail { flex: 0 0 12px; display: flex; justify-content: center; position: relative; }
.rb-slot-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cream-200); }
.rb-slot:first-child .rb-slot-rail::before { top: 14px; }
.rb-slot:last-child .rb-slot-rail::before { bottom: calc(100% - 14px); }
.rb-slot-node { width: 12px; height: 12px; border-radius: 50%; background: var(--navy-500); border: 2px solid var(--cream-50); box-shadow: 0 0 0 1px var(--color-border); margin-top: 9px; z-index: 1; }
.rb-slot-body { flex: 1; min-width: 0; padding: 6px 0 14px; }
.rb-slot-act { display: flex; align-items: center; gap: 11px; background: var(--paper); border: 1px solid var(--color-border); border-left: 3px solid var(--navy-400); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--shadow-xs); }
.rb-slot-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--r-sm); display: grid; place-items: center; }
.rb-slot-name { font-weight: var(--fw-bold); color: var(--ink-800); font-size: 14px; line-height: 1.15; }
.rb-slot-anchor { display: flex; align-items: center; gap: 9px; background: var(--cream-100); border: 1px dashed var(--cream-300); border-radius: var(--r-md); padding: 9px 12px; color: var(--stone-600); font-weight: var(--fw-semibold); font-size: 13.5px; }
.rb-slot--school .rb-slot-act { border-left-color: var(--gold-400); background: var(--gold-50); }
.rb-nowchip { display: inline-flex; align-items: center; gap: 6px; background: var(--sage-600); color: var(--cream-50); font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); }

/* care/school banner row */
.rb-blockbar { display: flex; gap: 8px; margin-bottom: 14px; }
.rb-blockpill { flex: 1; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-md); padding: 11px 13px; border: 1px solid var(--color-border); }
.rb-blockpill[data-kind="care"] { background: var(--sage-100); border-color: #CDD9BF; }
.rb-blockpill[data-kind="school"] { background: var(--gold-50); border-color: var(--gold-200); }
.rb-blockpill-lbl { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone-600); display: flex; align-items: center; gap: 5px; }
.rb-blockpill-time { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 15px; color: var(--ink-800); }

/* ---- Tag chips / filters ------------------------------------------------ */
.rb-toolbar { position: sticky; top: -18px; z-index: 5; background: var(--cream-50); padding-top: 2px; margin: 0 -2px 4px; }
.rb-search { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1.5px solid var(--color-border-strong); border-radius: var(--r-md); padding: 10px 13px; margin-bottom: 11px; }
.rb-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 15px; width: 100%; color: var(--ink-800); }
.rb-search svg { color: var(--stone-400); flex: 0 0 auto; }
.rb-chips-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rb-chips-row::-webkit-scrollbar { height: 0; }
.rb-chips-wrap { display: flex; gap: 7px; flex-wrap: wrap; }
.rb-tagchip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--color-border); background: var(--paper); color: var(--stone-600); border-radius: var(--r-pill); padding: 6px 12px; font: inherit; font-weight: var(--fw-semibold); font-size: 12.5px; white-space: nowrap; cursor: pointer; transition: transform var(--dur-fast); }
.rb-tagchip:active { transform: scale(0.96); }
.rb-tagchip .rb-tag-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.rb-tagchip[data-on="true"] { color: var(--cream-50); border-color: transparent; }
.rb-tagchip[data-on="true"] .rb-tag-dot { background: rgba(255,255,255,0.85) !important; }

/* ---- Activity cards ----------------------------------------------------- */
.rb-actlist { display: flex; flex-direction: column; gap: 10px; }
.rb-actgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rb-actcard { background: var(--paper); border: 1px solid var(--color-border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); padding: 13px; }
.rb-actcard-top { display: flex; align-items: flex-start; gap: 11px; }
.rb-acticon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r-md); display: grid; place-items: center; }
.rb-actname { font-weight: var(--fw-bold); color: var(--ink-800); font-size: 14.5px; line-height: 1.18; }
.rb-acttags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.rb-minitag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: var(--fw-bold); padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: 0.01em; }
.rb-actmeta { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; color: var(--stone-500); font-weight: var(--fw-semibold); }
.rb-actmeta .rb-dur { font-family: var(--font-mono); color: var(--navy-600); }
.rb-freqtag { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone-500); background: var(--cream-100); padding: 2px 8px; border-radius: var(--r-pill); }
.rb-startbtn { margin-top: 11px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid var(--steel-300); background: var(--steel-50); color: var(--steel-600); border-radius: var(--r-md); padding: 9px; font: inherit; font-weight: var(--fw-bold); font-size: 13px; cursor: pointer; transition: transform var(--dur-fast); }
.rb-startbtn:active { transform: scale(0.97); }
.rb-startbtn[data-current="true"] { background: var(--sage-600); border-color: var(--sage-600); color: var(--cream-50); }
.rb-actgrid .rb-actcard-top { flex-direction: column; gap: 8px; }
.rb-actgrid .rb-startbtn { padding: 8px; }

/* ---- Generate sheet ----------------------------------------------------- */
.rb-genbanner { display: flex; align-items: center; gap: 12px; background: linear-gradient(150deg, var(--steel-500), var(--steel-700)); color: var(--cream-50); border-radius: var(--r-lg); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-md); margin-bottom: 16px; border: 0; width: 100%; font: inherit; text-align: left; }
.rb-genbanner:active { transform: scale(0.99); }
.rb-genbanner .rb-gb-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--r-md); background: rgba(255,255,255,0.16); display: grid; place-items: center; }
.rb-genbanner .rb-gb-title { font-family: var(--font-display); font-size: 17px; font-weight: var(--fw-semibold); }
.rb-genbanner .rb-gb-sub { font-size: 12.5px; opacity: 0.88; margin-top: 1px; }
.rb-genopt { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.rb-genopt-row { display: flex; gap: 8px; }
.rb-segbtn-lg { flex: 1; border: 1.5px solid var(--color-border); background: var(--paper); color: var(--stone-600); border-radius: var(--r-md); padding: 11px 8px; font: inherit; font-weight: var(--fw-bold); font-size: 13px; cursor: pointer; }
.rb-segbtn-lg[data-on="true"] { border-color: var(--navy-600); background: var(--navy-50); color: var(--navy-600); }
.rb-genfill { font-size: 12.5px; color: var(--stone-500); font-weight: var(--fw-semibold); text-align: center; margin: 4px 0 14px; }
.rb-genfill b { color: var(--navy-600); font-family: var(--font-mono); }

/* ---- Chores ------------------------------------------------------------- */
.rb-progress { height: 9px; border-radius: var(--r-pill); background: var(--cream-200); overflow: hidden; margin-top: 10px; }
.rb-progress-fill { height: 100%; background: linear-gradient(90deg, var(--sage-500), var(--sage-600)); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out); }
.rb-chorerow { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--color-border); border-radius: var(--r-md); box-shadow: var(--shadow-xs); padding: 11px 13px; }
.rb-chorerow + .rb-chorerow { margin-top: 8px; }
.rb-check { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid var(--cream-300); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: transparent; transition: all var(--dur-fast); }
.rb-check[data-done="true"] { background: var(--sage-600); border-color: var(--sage-600); color: var(--cream-50); }
.rb-chore-mid { flex: 1; min-width: 0; }
.rb-chore-name { font-weight: var(--fw-bold); color: var(--ink-800); font-size: 14px; line-height: 1.2; }
.rb-chorerow[data-done="true"] .rb-chore-name { color: var(--stone-400); text-decoration: line-through; }
.rb-chore-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; flex-wrap: wrap; }
.rb-cadpill { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill); }
.rb-zonechip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: var(--fw-semibold); color: var(--stone-500); }
.rb-chore-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.rb-claimbtn { border: 1.5px solid var(--steel-300); background: var(--steel-50); color: var(--steel-600); border-radius: var(--r-pill); padding: 5px 11px; font: inherit; font-weight: var(--fw-bold); font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.rb-claimbtn:active { transform: scale(0.96); }
.rb-assignee { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: var(--fw-semibold); color: var(--stone-600); }

/* by-person columns */
.rb-personcol { margin-bottom: 16px; }
.rb-personcol-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rb-personcol-head .rb-pc-name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 17px; color: var(--ink-800); flex: 1; }
.rb-personcol-head .rb-pc-count { font-size: 11.5px; color: var(--stone-500); font-weight: var(--fw-semibold); font-family: var(--font-mono); }

/* group label */
.rb-grouplabel { display: flex; align-items: center; gap: 9px; margin: 18px 0 10px; }
.rb-grouplabel-txt { font-family: var(--font-body); font-size: 11.5px; font-weight: var(--fw-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--stone-500); }
.rb-grouplabel-line { flex: 1; height: 1px; background: var(--color-divider); }

/* segmented control (group toggles) */
.rb-seg { display: flex; background: var(--cream-100); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.rb-seg-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 10px; border-radius: var(--r-sm); font: inherit; font-weight: var(--fw-bold); font-size: 12.5px; color: var(--stone-500); cursor: pointer; }
.rb-seg-btn[data-on="true"] { background: var(--paper); color: var(--navy-600); box-shadow: var(--shadow-xs); }

/* ---- Receipts / pay ----------------------------------------------------- */
.rb-receipt { display: flex; gap: 13px; align-items: center; }
.rb-receipt-thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: var(--r-md); background: var(--cream-100); border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--stone-400); overflow: hidden; }
.rb-receipt-amt { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: var(--fw-semibold); color: var(--ink-800); margin-left: auto; }
.rb-verdict { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: var(--fw-bold); padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: 0.01em; }
.rb-itemlist { display: flex; flex-direction: column; gap: 7px; background: var(--cream-50); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 12px 13px; }
.rb-itemrow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--stone-600); }
.rb-payrow { display: flex; align-items: center; gap: 12px; padding: 11px 8px; }
.rb-notecard { display: flex; gap: 10px; background: var(--sage-100); border: 1px solid #CDD9BF; border-radius: var(--r-md); padding: 12px 14px; }

/* ---- Owner: approvals / interpret -------------------------------------- */
.rb-badge { background: var(--gold-400); color: var(--navy-800); font-size: 11px; font-weight: var(--fw-bold); padding: 3px 10px; border-radius: var(--r-pill); }
.rb-approve { display: flex; gap: 11px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--color-divider); }
.rb-approve-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--r-md); display: grid; place-items: center; }
.rb-mini { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--color-border-strong); background: var(--paper); color: var(--stone-600); font: inherit; font-weight: var(--fw-bold); font-size: 12.5px; padding: 7px 13px; border-radius: var(--r-md); cursor: pointer; }
.rb-mini:active { transform: scale(0.97); }
.rb-mini--ok { background: var(--sage-600); color: var(--cream-50); border-color: var(--sage-600); }
.rb-interpret { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--steel-600); }
.rb-suggest { margin-top: 10px; background: var(--steel-50); border: 1px solid var(--steel-100); border-radius: var(--r-md); padding: 10px 12px; }
.rb-suggest-label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 7px; }
.rb-suggest-change { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-800); }
.rb-suggest-tag { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-50); background: var(--steel-600); padding: 2px 8px; border-radius: var(--r-sm); }
.rb-suggest-timelabel { display: block; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel-600); margin: 9px 0 5px; }
.rb-timeedit { width: 130px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink-800); background: var(--paper); border: 1.5px solid var(--steel-200); border-radius: var(--r-sm); padding: 7px 10px; }
.rb-timeedit:focus { outline: 2px solid var(--steel-500); outline-offset: 1px; border-color: var(--steel-500); }
.rb-splitbar { display: flex; height: 28px; border-radius: var(--r-sm); overflow: hidden; margin-top: 4px; }
.rb-splitseg { display: grid; place-items: center; color: var(--cream-50); font-size: 11px; font-weight: var(--fw-bold); min-width: 24px; }

/* ---- Inputs / sheets ---------------------------------------------------- */
.rb-field { margin-bottom: 14px; }
.rb-label { display: block; font-size: 12.5px; font-weight: var(--fw-bold); color: var(--stone-600); margin-bottom: 6px; letter-spacing: 0.02em; }
.rb-input, .rb-select { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--color-border-strong); border-radius: var(--r-md); background: var(--paper); color: var(--ink-800); }
.rb-input:focus, .rb-select:focus { outline: 2px solid var(--navy-500); outline-offset: 1px; border-color: var(--navy-500); }
.rb-amount-input { display: flex; align-items: center; border: 1.5px solid var(--color-border-strong); border-radius: var(--r-md); background: var(--paper); padding-left: 14px; }
.rb-amount-input span { font-family: var(--font-display); font-size: 22px; color: var(--stone-500); }
.rb-amount-input input { border: none; outline: none; background: none; font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-semibold); width: 100%; padding: 10px 14px 10px 6px; color: var(--ink-800); }

.rb-sheet-scrim { position: absolute; inset: 0; z-index: 40; background: rgba(8,20,39,0.45); display: flex; align-items: flex-end; animation: rb-fade var(--dur-base) var(--ease-out); }
@keyframes rb-fade { from { opacity: 0; } to { opacity: 1; } }
.rb-sheet { width: 100%; background: var(--cream-50); border-radius: 22px 22px 0 0; padding: 8px 18px 24px; animation: rb-rise var(--dur-base) var(--ease-out); max-height: 88%; overflow-y: auto; }
.rb-sheet::-webkit-scrollbar { width: 0; }
@keyframes rb-rise { from { transform: translateY(40px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.rb-grabber { width: 40px; height: 4px; border-radius: 2px; background: var(--cream-300); margin: 6px auto 14px; }
.rb-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rb-choice { width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1.5px solid var(--color-border); border-radius: var(--r-lg); padding: 15px; cursor: pointer; font: inherit; margin-bottom: 10px; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.rb-choice:active { transform: scale(0.99); }
.rb-choice-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--r-md); display: grid; place-items: center; }
.rb-choice-title { font-weight: var(--fw-bold); color: var(--ink-800); font-size: 15px; }
.rb-choice-sub { font-size: 13px; color: var(--stone-600); margin-top: 2px; }

/* spinner */
.rb-spin { width: 50px; height: 50px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.28); border-top-color: var(--cream-50); animation: rb-rot 0.9s linear infinite; }
.rb-spin--sm { width: 24px; height: 24px; border-width: 3px; }
.rb-spin--navy { border-color: var(--steel-100); border-top-color: var(--steel-600); }
@keyframes rb-rot { to { transform: rotate(360deg); } }

/* toast */
.rb-toast { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); background: var(--ink-800); color: var(--cream-50); z-index: 60; padding: 11px 18px; border-radius: var(--r-pill); font-weight: var(--fw-semibold); font-size: 14px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); animation: rb-toast-in var(--dur-base) var(--ease-emph); max-width: 80%; }
@keyframes rb-toast-in { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* empty state */
.rb-empty { text-align: center; padding: 30px 20px; color: var(--stone-500); }
.rb-empty-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--cream-100); color: var(--stone-400); display: grid; place-items: center; margin: 0 auto 12px; }

/* ---- Language gate ------------------------------------------------------ */
.rb-gate { height: 100%; display: flex; flex-direction: column; background: var(--navy-600); color: var(--cream-50); }
.rb-gate-top { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px 28px; text-align: center; }
.rb-logo-lg { width: 66px; height: 66px; border-radius: var(--r-lg); background: var(--gold-400); color: var(--navy-800); display: grid; place-items: center; margin-bottom: 22px; }
.rb-gate h1 { font-family: var(--font-display); color: var(--cream-50); font-size: 27px; line-height: 1.16; text-wrap: balance; margin: 0 0 10px; max-width: 16ch; }
.rb-gate-brand { font-weight: var(--fw-black); letter-spacing: 0.08em; font-size: 13px; text-transform: uppercase; color: var(--gold-300); margin-bottom: 26px; }
.rb-gate p { color: var(--steel-200); margin: 0; line-height: 1.45; }
.rb-gate-langs { padding: 0 24px 34px; display: flex; flex-direction: column; gap: 12px; }
.rb-langopt { display: flex; align-items: center; gap: 14px; cursor: pointer; font: inherit; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.16); color: var(--cream-50); border-radius: var(--r-lg); padding: 18px 20px; transition: background var(--dur-fast), border-color var(--dur-fast); }
.rb-langopt[data-sel="true"] { background: var(--gold-400); color: var(--navy-800); border-color: var(--gold-400); }
.rb-langopt-name { font-weight: var(--fw-bold); font-size: 18px; }
.rb-langopt-check { margin-left: auto; opacity: 0; }
.rb-langopt[data-sel="true"] .rb-langopt-check { opacity: 1; }

/* ---- Account sheet + PIN ------------------------------------------------ */
.rb-acct-head { display: flex; align-items: center; gap: 13px; padding: 4px 2px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--color-divider); }
.rb-acct-row { display: flex; align-items: center; gap: 13px; width: 100%; background: var(--paper); border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 14px; cursor: pointer; font: inherit; font-size: 15px; font-weight: var(--fw-semibold); color: var(--ink-800); margin-top: 10px; box-shadow: var(--shadow-xs); }
.rb-acct-row:active { transform: scale(0.99); }
.rb-acct-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r-md); background: var(--navy-50); color: var(--navy-600); display: grid; place-items: center; }
.rb-acct-val { color: var(--stone-500); font-weight: var(--fw-semibold); font-size: 14px; margin-left: auto; }
.rb-acct-row--owner { border-color: var(--gold-200); background: var(--gold-50); }

.rb-pinoverlay { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--navy-600); border-radius: 33px; overflow: hidden; }
.rb-pin { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--navy-600); color: var(--cream-50); padding: 16px 22px 26px; }
.rb-pin-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--steel-200); font: inherit; font-weight: var(--fw-semibold); font-size: 14px; cursor: pointer; }
.rb-pin-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rb-owner-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--gold-400); color: var(--navy-800); display: grid; place-items: center; }
.rb-pin-dots { display: flex; gap: 16px; margin: 22px 0 12px; }
.rb-pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--steel-300); }
.rb-pin-dot[data-on="true"] { background: var(--gold-400); border-color: var(--gold-400); }
.rb-pin-msg { font-size: 13px; color: var(--steel-200); font-weight: var(--fw-semibold); min-height: 18px; }
.rb-shake { animation: rb-shake 0.4s; }
@keyframes rb-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.rb-pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 260px; margin: 0 auto; width: 100%; }
.rb-pin-key { height: 60px; border-radius: var(--r-md); border: 0; background: rgba(255,255,255,0.10); color: var(--cream-50); font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-semibold); cursor: pointer; display: grid; place-items: center; }
.rb-pin-key:active { background: rgba(255,255,255,0.22); }
.rb-pin-key--del { background: none; }

/* ---- Install walkthrough ------------------------------------------------ */
.rb-bl { line-height: 1.25; }
.rb-bl > span { display: block; }
.rb-bl-es { color: var(--steel-200); font-weight: var(--fw-regular); font-size: 0.84em; }
.rb-install, .rb-safari, .rb-home { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rb-install { background: var(--navy-600); color: var(--cream-50); }
.rb-install-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 30px 10px; gap: 14px; }
.rb-install-title { font-family: var(--font-display); color: var(--cream-50); font-size: 32px; margin: 6px 0 0; }
.rb-install-hero .rb-bl { font-size: 17px; font-weight: var(--fw-semibold); }
.rb-install-blurb { color: var(--steel-200); font-size: 14px; line-height: 1.5; margin: 0; max-width: 30ch; }
.rb-install-foot { padding: 0 24px 30px; display: flex; flex-direction: column; gap: 12px; }
.rb-skip { background: none; border: 0; color: var(--steel-200); font: inherit; font-weight: var(--fw-semibold); font-size: 14px; cursor: pointer; padding: 6px; }
.rb-safari { background: #ECECEE; }
.rb-safari-url { background: var(--paper); margin: 8px 12px; padding: 9px 14px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--stone-600); box-shadow: var(--shadow-xs); }
.rb-safari-url b { color: var(--ink-800); font-weight: var(--fw-bold); }
.rb-safari-page { flex: 1; background: var(--cream-50); margin: 0 12px; border-radius: var(--r-md); padding: 20px; position: relative; overflow: hidden; }
.rb-safari--dim .rb-safari-page { filter: brightness(0.7); }
.rb-safari-bar { display: flex; align-items: center; justify-content: space-around; padding: 12px 18px 16px; color: var(--navy-600); }
.rb-share-hot { border: 0; background: var(--steel-50); color: var(--steel-600); width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; animation: rb-bob 1.4s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(42,111,174,0.25); }
@keyframes rb-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.rb-coach { background: var(--ink-800); color: var(--cream-50); padding: 9px 13px; border-radius: var(--r-md); font-size: 13px; font-weight: var(--fw-semibold); position: absolute; bottom: 16px; left: 20px; right: 20px; text-align: center; }
.rb-coach-arrow { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid var(--ink-800); }
.rb-coach--up { position: static; margin: 14px 4px 0; }
.rb-coach-arrow--up { top: -7px; bottom: auto; border-top: 0; border-bottom: 8px solid var(--ink-800); }
.rb-iossheet { background: #F2F2F4; border-radius: 16px 16px 0 0; padding: 8px 14px 22px; box-shadow: var(--shadow-lg); }
.rb-ios-appicons { display: flex; gap: 16px; padding: 8px 6px 14px; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 10px; }
.rb-ios-appicon { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(160deg, #d7d7db, #c6c6cc); }
.rb-iosrow { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 0; border-radius: var(--r-md); padding: 15px 16px; font: inherit; font-size: 16px; font-weight: var(--fw-semibold); color: var(--ink-800); margin-bottom: 8px; width: 100%; }
.rb-iosrow--hi { cursor: pointer; box-shadow: 0 0 0 2px var(--steel-400); color: var(--steel-700); }
.rb-iosrow--hi svg { color: var(--steel-600); }
.rb-iosdialog-wrap { display: flex; flex-direction: column; }
.rb-iosdialog { background: #F2F2F4; border-radius: 14px; margin: 0 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.rb-iosdialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 15px; }
.rb-iosdialog-bar b { font-size: 16px; color: var(--ink-800); }
.rb-add-hot { border: 0; background: none; color: var(--steel-600); font: inherit; font-weight: var(--fw-bold); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); box-shadow: 0 0 0 2px var(--steel-400); animation: rb-bob 1.4s ease-in-out infinite; }
.rb-iosdialog-body { display: flex; align-items: center; gap: 13px; padding: 16px; }
.rb-home { background: linear-gradient(165deg, #2A4E7C, #142B51 70%, #0E1F3B); padding: 26px 22px 16px; }
.rb-home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
.rb-home-ph { aspect-ratio: 1; border-radius: 15px; background: rgba(255,255,255,0.14); }
.rb-home-app { grid-column: span 1; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 26px; }
.rb-home-app-icon { position: relative; display: grid; place-items: center; }
.rb-home-pulse { position: absolute; inset: -6px; border-radius: 18px; box-shadow: 0 0 0 0 rgba(196,150,40,0.6); animation: rb-ring 1.6s ease-out infinite; }
@keyframes rb-ring { 0% { box-shadow: 0 0 0 0 rgba(196,150,40,0.55); } 70% { box-shadow: 0 0 0 14px rgba(196,150,40,0); } 100% { box-shadow: 0 0 0 0 rgba(196,150,40,0); } }
.rb-home-app-label { color: #fff; font-size: 12px; font-weight: var(--fw-semibold); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.rb-home-hint { margin-top: auto; text-align: center; color: var(--cream-50); background: rgba(255,255,255,0.12); border-radius: var(--r-md); padding: 11px; font-size: 13px; font-weight: var(--fw-semibold); }
.rb-home-dock { display: flex; justify-content: space-around; gap: 16px; margin-top: 16px; background: rgba(255,255,255,0.12); border-radius: 22px; padding: 12px 16px; }
.rb-home-ph--dock { width: 52px; aspect-ratio: 1; border-radius: 13px; }


/* ===== production: real-device layout (no decorative bezel) ===== */
@media (max-width: 520px), (display-mode: standalone) {
  .rb-scene { padding: 0; min-height: 100dvh; display: block; }
  .rb-phone {
    width: 100%; max-width: none; height: 100dvh; max-height: none;
    border-radius: 0; padding: 0; background: transparent; box-shadow: none;
  }
  .rb-screen { border-radius: 0; height: 100dvh; }
  .rb-statusbar { padding-top: env(safe-area-inset-top); height: calc(34px + env(safe-area-inset-top)); flex-basis: calc(34px + env(safe-area-inset-top)); }
  .rb-tabbar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* hide the fake clock/wifi status row when running as an installed app —
   the device's own status bar sits there */
@media (display-mode: standalone) {
  .rb-statusbar span:first-child, .rb-statusbar .rb-sb-icons { visibility: hidden; }
}
