/* ===================================================================
   RISE HOUSE — BUILD 46 · CONCEPT MATCH
   The revised concept-deck mockups are the visual source of truth.
   This file intentionally overrides the earlier presentation layers;
   data hooks and interaction IDs stay in index.html.
   =================================================================== */

/* -------------------------------------------------------------------
   BUILD 77 — A WHITE GROUND.

   The page was #F6F1E7, a warm beige, and cards sat on it as #FFFDF8 -
   a difference of about two percent lightness that did almost no work.
   The ground is now white and the cards are white with it, so the
   separation is carried by the hairline and the soft shadow, which is
   what was really doing the job already.

   --line moves from #E8DECE to #E6E1D8. The old line was tuned to a
   beige page; on white it reads as a faint tan smudge rather than an
   edge. This one is the same weight against a white ground.

   DARK MODE IS UNTOUCHED. Its tokens live on :root:not([data-theme=
   "light"]) and :root[data-theme="dark"], both of which outrank a
   plain :root, so nothing here reaches them. Checked, not assumed.
   ------------------------------------------------------------------- */
:root{
  --bg:#FFFFFF;
  --surface:#FFFFFF;
  --ink:#17202A;
  --muted:#66707A;
  --faint:#9A948A;
  --line:#E6E1D8;
  --line2:#D9CBB6;
  --brand:#B98A24;
  --brand-ink:#9A711C;
  --gold-soft:#F5EBD5;
  --display:"DM Serif Display",Georgia,serif;
  --body:Geist,system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow-soft:0 8px 30px rgba(44,37,27,.055);
  --shadow-modal:0 -20px 55px rgba(20,18,14,.16);
}

html,body{background:var(--bg);color:var(--ink)}
body{background:var(--bg);font-family:var(--body)}
.wrap{max-width:480px;padding:0 16px calc(98px + env(safe-area-inset-bottom));}
#mark{display:none!important}
.masthead{display:none!important}
.screen{padding-top:0}
.screen.on{animation:concept-in .22s ease both}
@keyframes concept-in{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}

h1,h2,h3,.concept-card-title,.concept-section-title,.me-copy b,.resource-row b,.journey-stage-copy b{font-family:var(--display);font-weight:400;letter-spacing:-.025em}
.concept-rule{display:block;width:44px;height:2px;background:var(--brand);margin-top:14px;border-radius:99px}
.concept-profile{
  appearance:none;border:0;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:#F4E8CE;color:var(--ink);padding:0;cursor:pointer;flex:0 0 46px;
}
.concept-profile svg{width:25px;height:25px}

/* -------------------------------------------------------------------
   HOME — match the mockup: editorial greeting, photographic lower hero,
   Today calendar card, then My Chores.
   ------------------------------------------------------------------- */
#t-home{margin:0 -16px;padding:0 16px 22px}
.home-concept-hero{
  margin:0 -16px!important;min-height:355px!important;padding:0!important;border-radius:0!important;
  position:relative!important;overflow:hidden!important;background:url("assets/mountains-home.jpg") center center/cover no-repeat!important;color:var(--ink)!important;
  box-shadow:none!important;display:block!important;
}
.home-concept-hero::before{display:none!important}
.home-concept-hero::after{display:none!important}
.home-greeting-copy{display:none!important}
.home-greeting-lead{font-size:24px;line-height:1.12;letter-spacing:-.025em;color:var(--ink)}
.home-concept-hero h1{
  margin:0!important;font-family:var(--display)!important;font-size:66px!important;line-height:.91!important;
  font-weight:400!important;letter-spacing:-.045em!important;color:var(--ink)!important;text-shadow:none!important;
}
.home-motto{margin-top:15px;font-size:16px;line-height:1.38;text-transform:uppercase;letter-spacing:.27em;font-weight:500;color:#222A32}
.home-concept-hero .concept-profile{position:absolute;z-index:4;right:24px;top:24px;background:rgba(255,248,236,.92)}
.home-concept-hero .chipline{display:none!important}

.home-concept-stack{position:relative;z-index:5;margin:-28px 0 0;display:flex;flex-direction:column;gap:14px}
.concept-calendar,.concept-chores{
  background:rgba(255,253,248,.965)!important;border:1px solid var(--line)!important;border-radius:22px!important;
  box-shadow:var(--shadow-soft)!important;padding:21px 18px!important;margin:0!important;
}
.concept-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:15px}
.concept-card-title{font-size:30px;line-height:1;color:var(--ink)}
.concept-card-date,.concept-card-meta{font-size:14px;color:#73716C;white-space:nowrap}
.concept-calendar .days{
  display:flex!important;gap:0!important;overflow-x:auto;scrollbar-width:none;border:1px solid #EDE4D6;border-radius:18px;padding:11px 5px 8px;
  scroll-snap-type:x proximity;background:rgba(255,255,255,.22)
}
.concept-calendar .days::-webkit-scrollbar{display:none}
.concept-calendar .day{
  min-width:20%!important;flex:0 0 20%!important;padding:5px 1px 8px!important;border-radius:0!important;scroll-snap-align:start;
  position:relative;background:transparent!important;box-shadow:none!important;color:var(--ink)!important;
}
.concept-calendar .day:not(:first-child)::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:1px;background:#E9E0D2}
.concept-calendar .day .d{font-size:10px;letter-spacing:.16em;color:#676C72;font-weight:600}
.concept-calendar .day .n{font-family:var(--body)!important;font-size:20px!important;font-weight:700!important;line-height:1.4;color:#111821}
.concept-calendar .day[aria-current="date"] .n{
  width:48px;height:48px;margin:-4px auto -4px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:white!important;
}
.concept-calendar .day[aria-current="date"] .d{color:#6A604D!important}
.concept-calendar .day[aria-current="date"]{color:var(--ink)!important}
.concept-calendar .day.sel{box-shadow:none!important}
.concept-calendar .dots{height:8px;margin-top:5px}
.concept-calendar .dots i{width:7px;height:7px;background:#DEC99E!important}
.concept-calendar .day[aria-current="date"] .dots i{background:var(--brand)!important}
/* -------------------------------------------------------------------
   BUILD 95 — THE DAY'S EVENTS, ON THE CARD
   Build 46 hid this list to keep the calendar card clean, which left
   the week strip as the ONLY way in: a resident had to tap a day to
   find out whether anything was on it. Tapping still opens the full
   sheet - that is the better view and it stays. This is the glance.
   It follows the selected day, so the two never disagree.
   ------------------------------------------------------------------- */
.concept-agenda{
  display:block!important;margin-top:14px;padding-top:0;
  border-top:1px solid var(--line)}
.concept-agenda .agenda-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  padding:13px 8px 9px}
/*  MEASURED, NOT PICKED. var(--brand) #B98A24 on this card's #FFFDF8
    is 3.07:1 and var(--faint) is 2.96:1 - both below AA for text this
    size, in BOTH themes, because this card stays light either way.
    #8F6710 is 5.02:1 and #737168 is 4.81:1, which puts them with the
    card's own date line (4.8:1) rather than ahead of it. */
.concept-agenda .agenda-head b{
  font-family:var(--body);font-size:13px;font-weight:700;letter-spacing:.03em;
  text-transform:uppercase;color:#8F6710}
.concept-agenda .agenda-head small{font-size:11px;color:#737168;font-weight:500}
/*  A GRID, NOT A CENTRED FLEX ROW. The centred style belongs to the
    old card; here the times must line up down a column or the list
    reads as a paragraph. 62px holds "09:00" with room to spare. */
.concept-agenda .row{
  display:grid!important;grid-template-columns:62px minmax(0,1fr) auto;
  gap:10px;align-items:start;justify-content:stretch!important;
  text-align:left!important;flex-wrap:nowrap!important;
  padding:11px 8px;border-bottom:1px solid var(--line);font-size:15px}
.concept-agenda .row:last-child{border-bottom:0;padding-bottom:4px}
.concept-agenda .row .t{
  font-size:12.5px;font-weight:700;color:#8F6710;padding-top:3px;
  font-variant-numeric:tabular-nums}
.concept-agenda .row .g{
  font-size:15px;font-weight:500;color:var(--ink);min-width:0;flex-grow:1!important}
.concept-agenda .row .g small{font-weight:500}
/*  BUILD 96. THE MEETING LINK.
    A 44px tap target, because this is the one thing on the card a
    resident is meant to hit with a thumb while walking. #3F6B52 on
    #FFFDF8 is 6.01:1 and reads as a link rather than as more gold
    text beside the gold time. */
.concept-agenda .agenda-link{
  display:inline-flex;align-items:center;min-height:38px;margin-top:2px;
  font-family:var(--body);font-size:13.5px;font-weight:600;
  color:#3F6B52;text-decoration:underline;text-underline-offset:3px;
  -webkit-text-decoration-color:rgba(63,107,82,.45);text-decoration-color:rgba(63,107,82,.45)}
.concept-agenda .agenda-link:active{opacity:.6}

/*  "Nothing scheduled today." and anything else that is not a row. */
.concept-agenda>div:not(.row):not(.agenda-head){
  padding:4px 8px 12px;text-align:left!important}

.concept-chores{padding-bottom:5px!important}
.concept-chores .concept-card-head{margin-bottom:3px;padding:0 8px 12px;border-bottom:1px solid var(--line)}
.home-chore-list{border-top:0!important}
.home-chore-row{min-height:68px!important;padding:11px 7px!important;border-bottom:1px solid var(--line)!important}
.home-chore-row:last-child{border-bottom:0!important}
.home-chore-mark{width:29px!important;height:29px!important;flex:0 0 29px!important;border:1.6px solid #727A80!important;background:transparent!important;color:white!important}
.home-chore-row.done .home-chore-mark{background:var(--brand)!important;border-color:var(--brand)!important}
.home-chore-copy b{font-size:16px!important;font-weight:400!important;color:var(--ink)}
.home-chore-copy small{font-size:11px!important;color:var(--faint)}
.home-chore-arrow{font-size:25px!important;color:var(--brand)!important;font-weight:300}
.home-below-fold{margin-top:20px}
.home-below-fold #nextUp,.home-below-fold #todayList{margin-top:12px}

/* -------------------------------------------------------------------
   ME — photo first, then a white/ivory content surface just like the mockup.
   ------------------------------------------------------------------- */
#t-me{margin:0 -16px;padding:0 16px 24px}
.me-concept-photo{height:320px;margin:0 -16px;background:url("assets/wood-deck-me.jpg") center center/cover no-repeat}
.me-concept-shell{
  position:relative;z-index:2;margin:-18px 0 0;background:var(--bg);border-radius:25px 25px 0 0;
  padding:27px 2px 0;
}
.me-concept-heading{padding:0 18px 20px}
.me-concept-heading h1{margin:0;font-size:52px;line-height:.95;color:var(--ink)}
.me-concept-heading p{margin:12px 0 0;font-size:13px;text-transform:uppercase;letter-spacing:.30em;color:#1D2630;font-weight:600}
.me-primary{gap:10px!important;padding:0 8px}
.me-row{
  min-height:91px!important;border:1px solid var(--line)!important;background:rgba(255,253,248,.88)!important;
  border-radius:20px!important;padding:13px 15px!important;gap:15px!important;box-shadow:none!important;
}
.me-row .me-icon{
  width:48px!important;height:48px!important;flex:0 0 48px!important;border-radius:50%!important;background:#F5EBD7!important;
  color:#9B6D15!important;font-size:24px!important;font-family:var(--body)!important;font-weight:500!important;
}
.me-row.fee-row .me-icon{background:var(--brand)!important;color:white!important;font-size:31px!important}
.me-copy{gap:4px!important}
.me-copy b{font-size:24px!important;line-height:1.03!important;color:#111821}
.me-copy small{font-size:13px!important;line-height:1.3!important;color:#5E6670!important}
.me-value{display:none!important}
.me-arrow{font-size:30px!important;font-weight:300!important;color:var(--brand)!important}
.me-more-head{margin:18px 15px 11px!important}
.concept-section-title{font-size:28px;color:var(--ink)}
.concept-section-kicker{font-size:10px;letter-spacing:.24em;text-transform:uppercase;font-weight:700;color:var(--brand-ink)}
#wkBtn.me-row{margin:0 8px;width:calc(100% - 16px)}
.me-below-fold{margin-top:16px}
#t-me .me-support-grid{padding:0 8px!important}

/* -------------------------------------------------------------------
   JOURNEY — cream editorial masthead, image, floating day/progress card,
   then the four/five-stage line.
   ------------------------------------------------------------------- */
#t-journey{margin:0 -16px;padding:0 16px 24px}
.journey-concept-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:77px 28px 26px;margin:0 -16px;background:var(--bg)}
.journey-concept-head h1{margin:0;font-size:58px;line-height:.92;color:#111821}
.journey-concept-head p{margin:17px 0 0;font-size:13px;line-height:1.45;letter-spacing:.29em;text-transform:uppercase;color:#1B2733;font-weight:500}
.journey-concept-head .concept-profile{margin-top:4px}
.journey-concept-photo{height:300px;margin:0 -16px;background:url("assets/mountains-journey.jpg") center/cover no-repeat}
.journey-progress-card{
  position:relative;z-index:3;margin:-38px 7px 14px;padding:20px 20px 17px;border-radius:22px;background:rgba(255,253,248,.97);
  border:1px solid var(--line);box-shadow:var(--shadow-soft)
}
.journey-progress-copy{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.journey-progress-copy strong{font-family:var(--display);font-size:36px;line-height:1;font-weight:400;color:#111821}
.journey-progress-copy span{font-size:14px;color:#343A42}
.journey-progress-track{height:11px;border-radius:99px;background:#EFE5D1;margin-top:15px;overflow:hidden}
.journey-progress-track i{display:block;height:100%;width:0;background:var(--brand);border-radius:99px;transition:width .35s ease}
#journeyBox{padding:0 7px!important}
.journey-timeline-card{border:1px solid var(--line);border-radius:22px;background:rgba(255,253,248,.94);padding:8px 19px 8px 20px}
.journey-stage{display:flex;align-items:center;gap:16px;min-height:83px;position:relative}
.journey-stage:not(:last-child)::after{content:"";position:absolute;left:21px;top:58px;bottom:-25px;width:2px;background:#DDD2BE}
.journey-stage.done:not(:last-child)::after,.journey-stage.now:not(:last-child)::after{background:#BC8B26}
.journey-stage-dot{
  width:44px;height:44px;flex:0 0 44px;border:2px solid #D4C9B6;border-radius:50%;display:grid;place-items:center;
  background:var(--surface);font-size:15px;color:#827C72;position:relative;z-index:2
}
.journey-stage.done .journey-stage-dot{background:var(--brand);border-color:var(--brand);color:white;font-size:20px}
.journey-stage.now .journey-stage-dot{border:4px solid var(--brand);box-shadow:inset 0 0 0 6px var(--surface);background:var(--brand);font-size:0}
.journey-stage-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;border-bottom:1px solid var(--line);padding:18px 0}
.journey-stage:last-child .journey-stage-copy{border-bottom:0}
.journey-stage-copy b{font-size:22px;line-height:1.02;color:#141B22}
.journey-stage-copy small{font-size:12.5px;line-height:1.35;color:#6B7177}
.journey-stage.ahead .journey-stage-copy{opacity:.72}
.journey-stage-arrow{font-size:30px;color:var(--brand);font-weight:300}
.journey-stage.ahead .journey-stage-arrow{color:#C7BAA5}
.journey-quote-card{display:flex;align-items:center;gap:20px;margin-top:16px;padding:22px 20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,253,248,.94)}
.journey-quote-mark{font-family:Georgia,serif;font-size:64px;line-height:.7;color:#E9CF91;border-right:1px solid var(--line);padding-right:17px}
.journey-quote-card p{font-family:var(--display);font-size:20px;line-height:1.15;margin:0;color:#182029}
.journey-more{margin:18px 1px 0;border-top:1px solid var(--line);padding-top:12px}
.journey-more summary{cursor:pointer;color:var(--brand-ink);font-weight:600;font-size:12px}
.journey-more .note{margin-top:12px}
.journey-more .note p{margin:5px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}

/* -------------------------------------------------------------------
   ASK — scenic sliver at the top and one tall modal surface.
   ------------------------------------------------------------------- */
#t-ask{margin:0 -16px;padding:0 16px 22px;background:var(--bg);min-height:calc(100dvh - 86px)}
.ask-scenic{height:235px;margin:0 -16px;background:url("assets/mountains-journey.jpg") center/cover no-repeat;position:relative}
.ask-scenic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,13,.05),rgba(10,12,13,.18))}
.ask-concept-sheet{
  position:relative;z-index:2;margin:-34px 0 0;min-height:70dvh;padding:10px 24px 28px;border-radius:28px 28px 0 0;
  background:rgba(255,253,248,.985);box-shadow:var(--shadow-modal)
}
.ask-grab{width:54px;height:5px;border-radius:99px;background:#D5D3CF;margin:0 auto 29px}
.ask-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.ask-title-row h1{font-size:48px;line-height:.98;margin:0;color:#17202A}
#askBox{margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important}
#askBox .card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#askBox .card>.eyebrow{font-size:12px!important;letter-spacing:.25em!important;color:var(--brand-ink)!important;margin-bottom:15px!important}
#askBox .card>.sub{font-size:16px!important;line-height:1.46!important;color:#26303B!important;margin-bottom:19px!important}
#askBox select,#askBox input:not([type="checkbox"]),#askBox textarea{
  border:1px solid #DCCFBB!important;border-radius:16px!important;background:#FFFDF9!important;color:#17202A!important;
  font-family:var(--body)!important;font-size:16px!important;padding:0 18px!important;min-height:60px!important;box-shadow:none!important;
}
#askBox textarea{min-height:136px!important;padding-top:18px!important;line-height:1.45!important}
#askBox input[type="checkbox"]{width:26px!important;height:26px!important;accent-color:var(--brand);flex:0 0 26px}
#askBox label{font-size:14px!important;line-height:1.35!important;color:#24303C!important;margin-top:14px!important}
#askBox .btn:not(.ghost){width:100%!important;min-height:59px!important;border-radius:18px!important;margin-top:18px!important;background:#202123!important;color:#fff!important;font-size:17px!important;font-weight:500!important}
.ask-other-label{margin-top:28px;padding-top:20px;border-top:1px solid var(--line);font-size:9px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:var(--faint)}
.ask-other-modes{margin:10px 0 0!important;display:flex!important;gap:7px!important;flex-wrap:wrap!important}
.ask-other-modes .btn{min-height:38px!important;padding:0 11px!important;font-size:10px!important;border-radius:999px!important;width:auto!important;margin:0!important}

/* -------------------------------------------------------------------
   RESOURCES — five clean rows, no dashboard clutter.
   ------------------------------------------------------------------- */
#t-resources{margin:0 -16px;padding:0 16px 25px}
.concept-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:78px 28px 34px!important;margin:0 -16px!important;background:var(--bg)!important}
.concept-page-head h1{font-family:var(--display);font-size:58px!important;line-height:.92;margin:0;color:#111821}
.concept-page-head p{margin:18px 0 0;font-size:13px!important;line-height:1.45;letter-spacing:.31em!important;text-transform:uppercase;color:#1C2732!important;font-weight:500!important}
.concept-page-head .concept-profile{margin-top:2px}
.concept-resource-list{gap:13px!important;margin-top:0!important;padding:0 6px!important}
.concept-resource-list .resource-row{
  min-height:102px!important;border:1px solid var(--line)!important;border-radius:21px!important;background:rgba(255,253,248,.92)!important;
  padding:14px 17px!important;gap:16px!important;box-shadow:none!important
}
.concept-resource-list .resource-icon{width:54px!important;height:54px!important;flex:0 0 54px!important;border-radius:50%!important;background:#F5EBD7!important;color:#18212A!important;font-size:27px!important}
.concept-resource-list .resource-row>span:nth-child(2){gap:5px!important}
.concept-resource-list .resource-row b{font-size:25px!important;line-height:1!important;color:#111821}
.concept-resource-list .resource-row small{font-size:13px!important;line-height:1.25!important;color:#68707A!important}
.concept-resource-list .resource-row i{font-size:31px!important;color:var(--brand)!important;font-weight:300!important}
.resource-account{margin-top:32px!important}
.resource-lockup{opacity:.82}
.resource-sheet-list{display:flex;flex-direction:column;gap:10px}
.resource-sheet-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.resource-sheet-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.resource-sheet-copy b{font-family:var(--display);font-size:18px;font-weight:400}
.resource-sheet-copy small{font-size:11px;line-height:1.35;color:var(--muted)}
.resource-sheet-arrow{color:var(--brand);font-size:20px}

/* -------------------------------------------------------------------
   GETTING STARTED — dedicated immersive page with translucent card.
   ------------------------------------------------------------------- */
body.at-start{background:#131615!important}
#t-start.start-experience{
  margin:0 -16px!important;min-height:100dvh!important;padding:0 22px 34px!important;
  background:url("assets/mountains-start.jpg") center center/cover no-repeat!important;
  display:none;position:relative;color:#111!important
}
#t-start.start-experience.on{display:flex!important;flex-direction:column!important;align-items:stretch!important}
#t-start.start-experience::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,10,14,.03),rgba(5,10,14,.08));pointer-events:none}
.start-back{position:relative;z-index:2;margin:76px 0 0 8px!important;width:48px!important;height:48px!important;border-radius:50%!important;background:rgba(255,255,255,.18)!important;color:#fff!important;backdrop-filter:blur(12px);font-size:38px!important;font-weight:200!important}
.start-intro{
  position:relative;z-index:2;margin:auto 0 0!important;padding:29px 28px 26px!important;border-radius:25px!important;
  background:rgba(255,255,255,.78)!important;backdrop-filter:blur(18px)!important;border:1px solid rgba(255,255,255,.55)!important;
  color:#111821!important;box-shadow:0 18px 50px rgba(0,0,0,.14)!important
}
.start-intro .eyebrow{font-size:12px!important;letter-spacing:.28em!important;color:#26303A!important}
.start-intro h1{font-family:var(--display)!important;font-size:54px!important;line-height:.94!important;letter-spacing:-.035em!important;margin:14px 0 20px!important;color:#15202A!important}
.start-intro p{font-size:17px!important;line-height:1.45!important;color:#202B36!important}
.start-cta{appearance:none;width:100%;min-height:70px;border:0;border-radius:22px;background:#202123;color:#fff;margin-top:24px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;font:600 18px var(--body);cursor:pointer}
.start-cta span:last-child{font-size:32px;font-weight:300}
#t-start #startBox{position:relative;z-index:2;margin-top:18px;padding-bottom:20px;scroll-margin-top:20px}
#t-start #startBox .meter,#t-start #startBox .step,#t-start #startBox .card,#t-start #startBox .empty{background:rgba(255,255,255,.82)!important;border-color:rgba(255,255,255,.55)!important;backdrop-filter:blur(18px)!important}

/* -------------------------------------------------------------------
   BOTTOM NAV — app-chrome version of the concept deck navigation.
   The real device supplies the black frame and home indicator.
   ------------------------------------------------------------------- */
#tabbar{
  position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%);bottom:0!important;width:min(100%,480px)!important;
  padding:7px 12px calc(8px + env(safe-area-inset-bottom))!important;background:rgba(255,253,248,.97)!important;
  backdrop-filter:blur(18px)!important;border-top:1px solid var(--line)!important;z-index:30!important
}
#tabbar .in{max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:3px!important}
#tabbar button{min-height:62px!important;border-radius:17px!important;padding:6px 2px!important;gap:4px!important;color:#4E5964!important;font-size:10px!important;font-weight:500!important;background:transparent!important}
#tabbar button svg{width:23px!important;height:23px!important;stroke-width:1.75!important}
#tabbar button[aria-current="page"]{color:var(--brand-ink)!important;background:transparent!important}
#tabbar button[aria-current="page"] svg{stroke:var(--brand)!important;color:var(--brand)!important}
#tabbar button[data-tab="me"]{order:3!important}
#tabbar button[data-tab="me"][aria-current="page"]{background:linear-gradient(145deg,#D2A53A,#B78218)!important;color:white!important}
#tabbar button[data-tab="me"][aria-current="page"] svg{stroke:white!important;color:white!important}
#tabbar button span{line-height:1}

/* -------------------------------------------------------------------
   SHEETS / POPUPS — all substantive sheets are at least 70% tall.
   ------------------------------------------------------------------- */
#sheet .panel{min-height:70dvh!important;max-height:92dvh!important;border-radius:29px 29px 0 0!important;background:var(--surface)!important;padding:10px 24px calc(30px + env(safe-area-inset-bottom))!important;box-shadow:var(--shadow-modal)!important}
#sheet .grab{width:54px!important;height:5px!important;margin:0 auto 24px!important;background:#D5D3CF!important}
#sheet h2{font-family:var(--display)!important;font-size:40px!important;line-height:1!important;text-align:left!important;color:var(--ink)!important}

/* Keep dark mode functional, but the concept deck's light mode is the
   reference appearance. */
:root[data-theme="dark"] .concept-profile,
:root[data-theme="dark"] .concept-calendar,
:root[data-theme="dark"] .concept-chores,
:root[data-theme="dark"] .me-row,
:root[data-theme="dark"] .journey-progress-card,
:root[data-theme="dark"] .journey-timeline-card,
:root[data-theme="dark"] .journey-quote-card,
:root[data-theme="dark"] .concept-resource-list .resource-row{background:#211F1B!important;color:#F3EFE8!important}

@media (max-width:380px){
  .home-greeting-copy{padding-left:25px;padding-right:25px}
  .home-concept-hero h1{font-size:57px!important}
  .home-concept-hero .concept-profile{right:24px}
  .me-concept-heading h1,.journey-concept-head h1,.concept-page-head h1{font-size:49px!important}
  .journey-concept-head,.concept-page-head{padding-left:22px!important;padding-right:22px!important}
  .ask-concept-sheet{padding-left:19px;padding-right:19px}
  .ask-title-row h1{font-size:41px}
  .start-intro{padding:24px 22px!important}
  .start-intro h1{font-size:47px!important}
}
.ask-close{appearance:none;border:0;background:transparent;color:#17202A;font:300 43px/1 var(--body);padding:0 2px;cursor:pointer;transform:translateY(-2px)}


/* Build 47 refinements */
.home-fee-card{width:100%;margin-top:12px}
.home-fee-card .me-copy b{font-size:22px!important}
.home-fee-card .me-copy small{font-size:12px!important}
.me-support-first{margin-top:0!important}
.me-fee-bottom{margin:6px 8px 0;width:calc(100% - 16px)}
.journey-concept-head{display:none!important}
.journey-concept-photo{height:332px!important;margin:0 -16px;background:url("assets/mountains-journey.jpg") center/cover no-repeat;position:relative}
.journey-concept-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,8,8,.04),rgba(8,8,8,.02))}


/* Build 48 tweaks */
.director-preview-btn{width:100%;min-height:54px;border-radius:16px;margin:0 0 16px;background:#202123!important;color:#fff!important;border:0!important;font:600 15px var(--body);cursor:pointer}
.director-preview-btn:hover{opacity:.96}
#tabbar button[data-tab="journey"]{order:2!important}
#tabbar button[data-tab="me"]{order:3!important}
#tabbar button[data-tab="ask"]{order:4!important}
#tabbar button[data-tab="resources"]{order:5!important}


/* Build 49 — full resident-interface preview for directors */
body.director.director-resident-preview #tabbar button[data-tab="ask"],
body.director.director-resident-preview #tabbar button[data-tab="me"],
body.director.director-resident-preview #tabbar button[data-tab="journey"]{display:flex!important}
body.director.director-resident-preview #tabbar button[data-tab="resources"]{display:flex!important}
body.director.director-resident-preview .wrap{padding-top:50px}
.director-preview-bar{
  position:fixed;z-index:60;top:0;left:50%;transform:translateX(-50%);width:min(100%,480px);
  min-height:50px;padding:7px 12px;background:#17231f;color:#fff;display:flex;align-items:center;justify-content:space-between;
  gap:12px;border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 5px 18px rgba(0,0,0,.14)
}
.director-preview-copy{display:flex;min-width:0;flex-direction:column;gap:1px;font-size:11px;line-height:1.15}
.director-preview-copy b{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#D6B45C}
.director-preview-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}
.director-preview-exit{appearance:none;border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;border-radius:999px;padding:8px 12px;font:600 11px var(--body);cursor:pointer}
.preview-readonly-note{margin:0 0 14px;padding:10px 12px;border-radius:12px;background:#F4E8CE;color:#6E5317;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
body.director.director-resident-preview #out{display:none!important}

/*  BUILD 51 — the preview bar says why, when it cannot mirror. */
.director-preview-why{
  margin-top:3px; font-size:11.5px; line-height:1.45; opacity:.85; max-width:46ch;
}


/* -------------------------------------------------------------------
   BUILD 53 — scenic image branding only.
   Add a subtle white Rise House enso to photographic page images.
   No data, structure, or content logic changes.
   ------------------------------------------------------------------- */
.home-concept-hero,.me-concept-photo,.journey-concept-photo,.ask-scenic,#t-start.start-experience{position:relative!important;overflow:hidden!important}
.home-concept-hero::before,.me-concept-photo::before,.journey-concept-photo::before,.ask-scenic::before,#t-start.start-experience::before{
  content:"";position:absolute;left:18px;top:18px;width:58px;height:58px;
  background:url("assets/enso-white.png") center/contain no-repeat;
  opacity:.96;z-index:3;pointer-events:none;filter:drop-shadow(0 2px 10px rgba(0,0,0,.18));
}
.home-concept-hero::before{left:18px;top:20px;width:56px;height:56px}
.me-concept-photo::before{left:22px;top:22px;width:64px;height:64px}
.journey-concept-photo::before{left:20px;top:18px;width:60px;height:60px}
.ask-scenic::before{left:20px;top:18px;width:56px;height:56px;z-index:2}
#t-start.start-experience::before{left:24px;top:24px;width:60px;height:60px;z-index:2}
@media (min-width: 740px){
  .home-concept-hero::before,.me-concept-photo::before,.journey-concept-photo::before,.ask-scenic::before,#t-start.start-experience::before{width:72px;height:72px}
}


/* BUILD 54 — make scenic ensō overlays explicitly visible. */
.home-concept-hero::before,.me-concept-photo::before,.journey-concept-photo::before,.ask-scenic::before,#t-start.start-experience::before{
  display:block!important;
}
.home-concept-hero::before,.me-concept-photo::before,.journey-concept-photo::before,.ask-scenic::before{
  opacity:1!important;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.42)) drop-shadow(0 0 10px rgba(0,0,0,.18))!important;
}
#t-start.start-experience::before{
  display:block!important;opacity:1!important;left:auto!important;right:24px!important;top:24px!important;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.42))!important;
}


/* ===================================================================
   BUILD 55 — Senior Resident Training
   Native training experience using the same Rise House visual system.
   =================================================================== */
.senior-training-entry{appearance:none;width:100%;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,#fffdf8,#f7efdf);display:flex;align-items:center;gap:14px;padding:15px;margin:18px 0 14px;text-align:left;color:var(--ink);box-shadow:var(--shadow-soft);cursor:pointer}
.senior-training-entry-mark{width:48px;height:48px;flex:0 0 48px;border-radius:50%;display:grid;place-items:center;background:#202123;color:#fff;font-size:29px;font-family:Georgia,serif}
.senior-training-entry-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.senior-training-entry-copy small{font-size:9px;letter-spacing:.19em;color:var(--brand-ink);font-weight:700}.senior-training-entry-copy b{font-family:var(--display);font-size:22px;font-weight:400}.senior-training-entry-copy span{font-size:12px;color:var(--muted)}.senior-training-entry-arrow{font-size:28px;color:var(--brand)}
.senior-training{padding-bottom:10px}.senior-training-hero,.senior-training-lesson-hero{height:190px;margin:0 -24px 0;position:relative;background:center/cover no-repeat url("assets/mountains-home.jpg");overflow:hidden}.senior-training-hero::after,.senior-training-lesson-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,12,.03),rgba(10,12,12,.22))}.senior-training-enso{position:absolute;left:22px;top:20px;width:58px;height:58px;background:url("assets/enso-white.png") center/contain no-repeat;z-index:2;filter:drop-shadow(0 2px 10px rgba(0,0,0,.18))}
.senior-training-intro{margin:-20px 0 0;position:relative;z-index:3;border-radius:24px 24px 0 0;background:var(--surface);padding:27px 6px 15px}.senior-training-intro h2,.senior-training-module-head h2{font-family:var(--display);font-size:40px;line-height:.96;font-weight:400;margin:8px 0 10px}.senior-training-intro p,.senior-training-module-head p{font-size:13px;line-height:1.55;color:var(--muted);margin:0}.senior-training-modules{display:flex;flex-direction:column;gap:9px;margin-top:10px}.senior-training-module{appearance:none;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:13px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);cursor:pointer}.senior-training-module-num{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--gold-soft);color:var(--brand-ink);font-family:var(--display);font-size:20px}.senior-training-module-copy{display:flex;min-width:0;flex:1;flex-direction:column}.senior-training-module-copy small{font-size:8.5px;letter-spacing:.18em;color:var(--brand-ink);font-weight:700}.senior-training-module-copy b{font-family:var(--display);font-size:20px;font-weight:400;line-height:1.05;margin-top:2px}.senior-training-module-copy span{font-size:11px;color:var(--muted);margin-top:3px}.senior-training-module-meta{font-size:10px;color:var(--brand-ink);white-space:nowrap}
.senior-training-back{appearance:none;border:0;background:transparent;color:var(--ink);font:600 12px var(--body);padding:0 0 10px;cursor:pointer}.senior-training-module-head{position:relative;padding:20px 2px 10px}.senior-training-module-head .senior-training-time{position:absolute;right:0;top:22px;border:1px solid var(--line);border-radius:999px;padding:7px 11px;font-size:11px;color:var(--muted);background:var(--surface)}.senior-training-progress{display:flex;gap:6px;margin:5px 0 14px}.senior-training-progress i{height:4px;flex:1;background:var(--line);border-radius:99px}.senior-training-progress i.done,.senior-training-progress i.now{background:var(--brand)}
.senior-training-lesson-card{border:1px solid var(--line);border-radius:19px;background:var(--surface);padding:18px}.senior-training-lesson-meta{display:flex;justify-content:space-between;gap:12px;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.senior-training-lesson-card h3{font-family:var(--display);font-size:28px;line-height:1;font-weight:400;margin:12px 0}.senior-training-path{font-family:var(--mono);font-size:11px;color:var(--muted);background:var(--sunk);border-radius:8px;padding:7px 9px;margin:0 0 12px}.senior-training-lesson-card p{font-size:13.5px;line-height:1.62;margin:0 0 10px;color:var(--ink)}.senior-training-note{background:var(--gold-soft);border-radius:12px;padding:13px;font-size:12.5px;line-height:1.55;margin-top:10px}.senior-training-call{background:#202123;color:#fff;border-radius:12px;padding:14px;font-size:12.5px;line-height:1.55;margin-top:10px}.senior-training-actions{display:flex;gap:9px;margin-top:12px}.senior-training-actions .btn{flex:1;min-height:48px}.senior-training-jump{display:flex;flex-direction:column;margin-top:16px;border-top:1px solid var(--line)}.senior-training-jump button{appearance:none;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--muted);display:flex;align-items:center;gap:10px;padding:11px 2px;text-align:left;cursor:pointer}.senior-training-jump button span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--sunk);font-size:10px;font-weight:700}.senior-training-jump button b{font-weight:500;font-size:12.5px}.senior-training-jump button.on{color:var(--ink)}.senior-training-jump button.on span{background:#202123;color:#fff}


/* Build 58 — Senior Resident Toolbox shortcut on Home */
.home-senior-toolbox{
  appearance:none;width:100%!important;box-sizing:border-box;align-self:stretch;
  margin:16px 0 4px;min-height:108px;padding:18px 18px;border:1px solid var(--line);
  border-radius:24px;background:#fff;display:flex!important;align-items:center;gap:16px;
  text-align:left;color:var(--ink);box-shadow:var(--shadow-soft);cursor:pointer;
}
.home-senior-toolbox.hide{display:none!important}
.home-senior-toolbox-icon{width:56px;height:56px;flex:0 0 56px;border-radius:50%;display:grid;place-items:center;background:#F7EEDC;color:var(--brand-ink);font-size:26px}
.home-senior-toolbox-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.home-senior-toolbox-copy b{font-family:var(--display);font-size:21px;line-height:1.04;font-weight:400;color:#111821}
.home-senior-toolbox-copy small{font-size:13px;line-height:1.35;color:#66707A}
.home-senior-toolbox-arrow{margin-left:auto;font-size:33px;line-height:1;color:var(--brand);font-weight:300}


/* -------------------------------------------------------------------
   BUILD 77 — "YOUR CODE", CENTRED.

   .eyebrow is left-aligned on purpose everywhere else: build45 set it
   that way and .sechead aligns to flex-start with it, so centring the
   class would move every section heading in the app. This moves the
   one on the sign-in screen, which sits above a centred input and a
   centred button and was the only thing on that screen hanging left.
   ------------------------------------------------------------------- */
.signin-mid .eyebrow{text-align:center}


/* -------------------------------------------------------------------
   BUILD 78 — spacing where words were pushing at their container.

   Two faults, one symptom.

   The Senior Resident training block below arrived in build 46 with
   its newlines written as two literal characters rather than as line
   breaks. CSS reads a backslash followed by a letter as that letter,
   so every rule that began a line was parsed as a type selector named
   n — n.senior-training-entry — and matched no element that exists.
   The rules that happened to follow a closing brace on the same line
   survived, which is why the eyebrow, the title and the caption kept
   their fonts and colours while the column that was to stack them
   quietly did nothing. The three ran together on one line. Fixed by
   restoring the line breaks; nothing in the block itself changed.

   The getting started card is the second. The shared .card is only a
   shell: background, border, radius, no padding, with each use adding
   its own. The director preview card was built without one, so its
   label sat on its heading and both sat on the card edge.
   ------------------------------------------------------------------- */
#t-start #startBox > * + *{margin-top:14px}
#t-start #startBox .card{padding:20px 22px}
#t-start #startBox .card .eyebrow{margin-bottom:10px}
#t-start #startBox .card .big{line-height:1.06;font-size:28px}
#t-start #startBox .card .sub{margin-top:10px;font-size:12.5px;line-height:1.5}
#t-start #startBox .empty{padding:18px 20px}

/* The senior entry row: a little more room around the words, and the
   caption allowed to wrap on two lines without touching the arrow. */
.senior-training-entry{padding:17px 16px;gap:15px}
.senior-training-entry-copy{gap:4px}
.senior-training-entry-copy span{line-height:1.45}
.senior-training-entry-arrow{flex:0 0 auto;align-self:center}


/* ===================================================================
   DARK MODE FOR THIS STYLESHEET            Build 85
   -------------------------------------------------------------------
   Every text colour in this file is a literal blue-grey written against
   a light mock: #111821 for headings, #5E6670 and friends beneath them.
   Those are near-black navies. They read well on cream and vanish on
   the dark ground - "My Journey", "Forms", "House Fee" and "Getting
   Started" all measured about 1.09:1, which is not low contrast, it is
   invisible. That is the blue font on black.

   The earlier dark patch in this file set a colour on eight CONTAINERS.
   A container's colour never reaches a child that sets its own, which
   is every rule below, so the headings stayed navy.

   ONLY THE TEXT WHOSE SURFACE ACTUALLY GOES DARK IS REMAPPED. Measured,
   not assumed: the Ask sheet, the Start intro panel, the resource icon
   chips and the tab bar all keep a cream surface in dark mode, so their
   navy text is correct there and is deliberately left alone. A first
   pass that recoloured them turned readable dark text into unreadable
   light text at 1.17:1. If a rule is added here, check its background
   in dark first.

   Both dark states are covered - the media query (Appearance = Auto on
   a dark phone, which sets NO attribute) and the explicit choice. Miss
   either and half the residents still cannot read it. !important
   throughout, because the rules being overridden use it.
   =================================================================== */
@media (prefers-color-scheme: dark){
:root:not([data-theme="light"]) .home-motto,
:root:not([data-theme="light"]) .concept-calendar .day .n,
:root:not([data-theme="light"]) .me-concept-heading p,
:root:not([data-theme="light"]) .me-copy b,
:root:not([data-theme="light"]) .journey-concept-head h1,
:root:not([data-theme="light"]) .journey-concept-head p,
:root:not([data-theme="light"]) .journey-progress-copy strong,
:root:not([data-theme="light"]) .journey-progress-copy span,
:root:not([data-theme="light"]) .journey-stage-copy b,
:root:not([data-theme="light"]) .journey-quote-card p,
:root:not([data-theme="light"]) .concept-page-head h1,
:root:not([data-theme="light"]) .concept-page-head p,
:root:not([data-theme="light"]) .concept-resource-list .resource-row b,
:root:not([data-theme="light"]) .home-senior-toolbox-copy b{color:#F0EBE3!important}
:root:not([data-theme="light"]) .concept-calendar .day .d,
:root:not([data-theme="light"]) .me-copy small,
:root:not([data-theme="light"]) .journey-stage-copy small,
:root:not([data-theme="light"]) .concept-resource-list .resource-row small,
:root:not([data-theme="light"]) .home-senior-toolbox-copy small{color:#B3ABA0!important}
}
:root[data-theme="dark"] .home-motto,
:root[data-theme="dark"] .concept-calendar .day .n,
:root[data-theme="dark"] .me-concept-heading p,
:root[data-theme="dark"] .me-copy b,
:root[data-theme="dark"] .journey-concept-head h1,
:root[data-theme="dark"] .journey-concept-head p,
:root[data-theme="dark"] .journey-progress-copy strong,
:root[data-theme="dark"] .journey-progress-copy span,
:root[data-theme="dark"] .journey-stage-copy b,
:root[data-theme="dark"] .journey-quote-card p,
:root[data-theme="dark"] .concept-page-head h1,
:root[data-theme="dark"] .concept-page-head p,
:root[data-theme="dark"] .concept-resource-list .resource-row b,
:root[data-theme="dark"] .home-senior-toolbox-copy b{color:#F0EBE3!important}
:root[data-theme="dark"] .concept-calendar .day .d,
:root[data-theme="dark"] .me-copy small,
:root[data-theme="dark"] .journey-stage-copy small,
:root[data-theme="dark"] .concept-resource-list .resource-row small,
:root[data-theme="dark"] .home-senior-toolbox-copy small{color:#B3ABA0!important}

/*  The senior toolbox tile is cream in light; in dark it takes the card
    surface, so its mark and arrow move with it rather than staying gold
    on gold (they measured 1.44:1 and 2.03:1). */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .home-senior-toolbox{background:#211F1B!important}
  :root:not([data-theme="light"]) .home-senior-toolbox-icon{background:#3A3228!important;color:#E8A97F!important}
  :root:not([data-theme="light"]) .home-senior-toolbox-arrow{color:#E8A97F!important}
}
:root[data-theme="dark"] .home-senior-toolbox{background:#211F1B!important}
:root[data-theme="dark"] .home-senior-toolbox-icon{background:#3A3228!important;color:#E8A97F!important}
:root[data-theme="dark"] .home-senior-toolbox-arrow{color:#E8A97F!important}

/*  Sign out, on the Me screen. Same row shape as the rows above it,
    with a quieter mark so it does not read as the main action. */
.me-row-signout .me-icon-out{background:#EFE7DB;color:#6B5A3C}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .me-row-signout .me-icon-out{background:#332D24;color:#E8A97F}
}
:root[data-theme="dark"] .me-row-signout .me-icon-out{background:#332D24;color:#E8A97F}

/* ===================================================================
   ROWS THAT LINE UP                        Build 85
   -------------------------------------------------------------------
   Measured on the Me screen at 430px, the left edges ran 18 / 26 / 33
   / 34 - four different insets on one column of cards. That is what
   reads as "not centred": nothing is off-centre, the edges are ragged.

   .me-primary already insets its rows by 8px. #wkBtn and .me-fee-bottom
   each added another 8px of their own margin on top of it, so two rows
   sat 8px narrower than their neighbours, and the "My support" kicker
   sat at 33 over rows at 26. One inset, set in one place.
   =================================================================== */
/*  One edge for the whole screen: the heading and the support grid
    sit at the shell's own 18px, so the row column drops its extra
    8px and joins them instead of running 8px narrower. */
.me-primary{padding-left:0!important;padding-right:0!important}
#wkBtn.me-row{margin:0!important;width:100%!important}
.me-fee-bottom{margin:6px 0 0!important;width:100%!important}
.me-more-head{margin-left:0!important;margin-right:0!important}

/*  THE HOUSE FEE ROW WAS WEARING TWO LAYOUTS. Its class list is
    "me-row fee-row tile", and .tile is a centred COLUMN with a 132px
    floor - so the row came out 219px tall with its "$" mark 71px above
    the centre line while every other row was 91px and centred. The tile
    class has to stay (it is what binds the click that opens the fee
    sheet), so the row layout is restated here and wins instead. */
.me-row.tile{
  flex-direction:row!important;align-items:center!important;text-align:left!important;
  min-height:91px!important;border-width:1px!important;box-shadow:none!important;
}

/* ===================================================================
   TWO MARKS THAT WERE UNREADABLE ON THEIR OWN CHIP
   -------------------------------------------------------------------
   #cinBtn carries inline background:var(--lime-soft);color:var(--forest).
   In dark those resolve to #33241C on #3A332A - 1.08:1, two surface
   colours with no ink between them. --forest is a SURFACE in dark, not
   a text colour; --chip-ink exists in this app for exactly this case.
   Inline styles only lose to !important, hence the shouting.
   =================================================================== */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) #cinBtn{color:#E8A97F!important;background:#2A211A!important}
}
:root[data-theme="dark"] #cinBtn{color:#E8A97F!important;background:#2A211A!important}
/*  White on the brand gold measured 2.03:1. The dark ink the rest of
    the app uses on gold reads at 9:1 and keeps the mark emphatic. */
.me-row.fee-row .me-icon{color:#23201A!important}

/* ===================================================================
   THE NOTIFICATION ASK HAD NO STYLESHEET AT ALL     Build 85
   -------------------------------------------------------------------
   #notifAsk carries class="install". Searched the whole app: there is
   not one .install rule in index.html, build45.css or build46.css.
   Zero. So the prompt rendered as a bare div at the very end of the
   body - full-bleed unstyled text, below the content, sitting under the
   fixed tab bar where it could be read but never tapped. It has
   probably been like this since build 74.

   It is now what it was always meant to be: a sheet docked above the
   tab bar, inside the same 480px column, clear of the home indicator.
   z-index 40 puts it over the bar (which is 30) rather than under it.
   =================================================================== */
/*  SHOWN ONLY WHEN .on IS SET. Build 85 gave this sheet a position and
    a background but never hid it by default, so it sat on screen on
    every page and both buttons appeared to do nothing - they call
    classList.remove('on'), and there was no rule for 'on' to win.
    This is the whole reason the prompt would not go away. */
.install{display:none}
.install.on{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(84px + env(safe-area-inset-bottom,0px));
  width:min(100% - 24px,456px);z-index:40;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;
  padding:16px 18px;box-shadow:0 18px 50px rgba(25,22,18,.22);
  display:flex;flex-direction:column;gap:12px;
}
.install.on .g{font-size:14px;line-height:1.4;color:var(--ink)}
.install.on .g b{font-family:var(--display);font-weight:400;font-size:19px;display:block;margin-bottom:4px}
.install.on .row{display:flex;gap:9px}
.install.on .row .btn{flex:1;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.install[hidden],.install.hide{display:none!important}

/* ===================================================================
   A TAB BAR THAT CENTRES WHATEVER IS LEFT IN IT
   -------------------------------------------------------------------
   The bar was grid-template-columns:repeat(5,1fr) - five fixed tracks.
   A director has Journey, Me and Ask set to display:none, so the two
   that remain sat in tracks 1 and 2 of 5 and the bar read as bunched
   into the left-hand half. Auto-flow columns means hidden buttons take
   no track, so two tabs centre as two and five centre as five.
   =================================================================== */
#tabbar .in{
  grid-template-columns:none!important;
  grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;
  justify-content:center!important;
}

/* ===================================================================
   SIGN OUT YOU CAN ACTUALLY SEE
   -------------------------------------------------------------------
   It was an 11px underlined link in --faint at the foot of Resources.
   That is a footnote, not a control, and it is the only one a director
   has - their Me tab is hidden, so the row added to that screen never
   reaches them. Same row shape as everything else on the screen.
   =================================================================== */
.resource-account{align-items:stretch!important}
.resource-signout{
  appearance:none!important;width:100%!important;min-height:52px!important;
  border:1px solid var(--line)!important;border-radius:16px!important;
  background:rgba(255,253,248,.88)!important;color:var(--ink)!important;
  text-decoration:none!important;font-family:var(--body)!important;
  font-size:15px!important;font-weight:600!important;padding:14px!important;
  margin-top:4px!important;cursor:pointer!important;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .resource-signout{background:#211F1B!important;color:#F0EBE3!important;border-color:#38352E!important}
}
:root[data-theme="dark"] .resource-signout{background:#211F1B!important;color:#F0EBE3!important;border-color:#38352E!important}

/* ===================================================================
   THE NAME CAME BACK                       Build 87
   -------------------------------------------------------------------
   build46.css turned the photo hero on and set
   .home-greeting-copy{display:none!important} - which is the block that
   holds "Good morning," and #greet, the resident's first name. The two
   rules immediately after it still style .home-greeting-lead and
   .home-concept-hero h1, so the greeting was meant to be seen; hiding
   the parent took the name down with it and nothing else ever showed
   who was signed in.

   It is back, over the photo rather than above it, because the hero
   owns the full 355px and the Today card already laps 28px over its
   foot. A gradient scrim goes under the words so the contrast does not
   depend on which part of a mountain happens to be behind them, and
   the text sits clear of the Today card's overlap.
   =================================================================== */
.home-concept-hero::after{
  display:block!important;content:""!important;position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;height:100%!important;
  background:linear-gradient(180deg,rgba(12,10,8,0) 0%,rgba(12,10,8,.10) 26%,rgba(12,10,8,.55) 48%,rgba(12,10,8,.86) 60%,rgba(12,10,8,.93) 78%,rgba(12,10,8,.95) 100%)!important;
  z-index:2!important;pointer-events:none!important;
}
/*  BUILD 87's PLATE AND ITS TYPE OVERRIDES ARE GONE. That block sized
    the hero h1 at 54px (46px on a small screen) on its way to solving
    a contrast problem with a panel. The panel went; the shrunken type
    stayed behind and nobody had asked for it. The original 66px/57px
    further up this file is the size again. */

/* ===================================================================
   THE PHOTOGRAPHS GO EDGE TO EDGE          Build 87
   -------------------------------------------------------------------
   Every photo hero pulled itself out with margin:0 -16px. The gutter
   it is escaping is .wrap{padding:0 22px}, so -16px left about 6px of
   paper down each side of every picture and none of them ever reached
   the glass. Hard-coding -22px instead would only hold until somebody
   changes the gutter again.

   This breaks out of ALL of it arithmetically: the element is centred
   on its container, then pushed back out to half the viewport each
   way, so it fills the screen whatever the ancestors are padded by.
   Capped at 480px to match the tab bar on a wide window, and the
   boxes still clip their own corners, so nothing can push the page
   sideways - verified: no horizontal overflow at 320, 390 or 430px.
   =================================================================== */
.home-concept-hero,
.me-concept-photo,
.journey-concept-photo,
.ask-scenic{
  width:min(100vw,480px)!important;max-width:100vw!important;
  margin-left:calc(50% - min(50vw,240px))!important;
  margin-right:calc(50% - min(50vw,240px))!important;
  border-radius:0!important;
}

/* ===================================================================
   THE CHORE BOARD'S WEEK CONTROL AND GROUPS   Build 88
   =================================================================== */
.home-chore-week{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;
  margin:0 0 12px;border:1px solid var(--line);border-radius:14px;
  background:rgba(255,253,248,.55)}
.home-chore-week b{text-align:center;font-family:var(--body);font-size:12.5px;font-weight:600;color:var(--ink)}
.home-chore-week-btn{appearance:none;border:0;background:none;font-size:22px;line-height:1;
  padding:8px 0;color:var(--brand-ink);cursor:pointer;min-height:40px}
.home-chore-group{font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;
  color:var(--brand-ink);margin:12px 2px 7px}
.home-chore-group:first-of-type{margin-top:2px}
.home-chore-foot{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);
  font-size:12px;color:var(--muted)}
.home-chore-row[disabled]{opacity:1;cursor:default}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .home-chore-week{background:rgba(255,255,255,.06);border-color:#38352E}
  :root:not([data-theme="light"]) .home-chore-week b{color:#F0EBE3}
}
:root[data-theme="dark"] .home-chore-week{background:rgba(255,255,255,.06);border-color:#38352E}
:root[data-theme="dark"] .home-chore-week b{color:#F0EBE3}

/* ===================================================================
   ONE HEADER ON EVERY PAGE                 Build 89
   -------------------------------------------------------------------
   Same row, same offset, every screen: the greeting on the left and
   the profile mark on the right. No panel behind the name - over a
   photograph it is white with a shadow, which is what has to stand in
   for the panel the user asked me to take away; on a screen with no
   photograph it is the page's own ink.

   Sitting at a fixed offset from the top of the SCREEN, not of a hero,
   is what makes it land in the same place whether the page opens with
   a 355px photograph or a plain heading.
   =================================================================== */
.screen{position:relative}
.rh-top{
  position:absolute;top:18px;right:20px;z-index:6;
  display:flex;align-items:flex-start;gap:14px;
}

/*  THE GREETING, LOW ON THE PICTURE. It used to sit 50px off the foot
    of the home hero; this is 112px, which is the "a little higher"
    that was asked for, and it is measured from the BOTTOM of whichever
    photograph the page has - so it lands in the same place whether
    that picture is 355px tall or 235px. On a screen with no
    photograph it falls back to the top of the page in the page's own
    ink. No panel behind it either way. */
.rh-greet{min-width:0;display:flex;flex-direction:column;gap:4px}
/*  WITH NO PICTURE it sits IN THE FLOW and pushes the page down,
    rather than floating over whatever the first heading happens to be.
    The right padding clears the profile mark, which is absolute. */
.rh-greet.in-flow{position:static;padding:2px 64px 0 0;margin:0 0 16px}
.rh-greet.in-flow .rh-top-lead{font-size:18px}
.rh-greet.in-flow .rh-top-name{font-size:42px}
.rh-greet.on-photo{
  position:absolute;left:22px;right:22px;bottom:74px;z-index:4;
}
/*  THE ORIGINAL DIMENSIONS, restored. This greeting used to be the
    hero's own .home-greeting-lead (24px) and h1 (66px, 57px under
    380px). Moving it into the shared header, I re-typed it at 11px
    and 30px and added nowrap + an ellipsis - which is why the whole
    page started reading smaller and a long name got cut. Same sizes
    as before, and it WRAPS: "Good evening," over a name is two lines
    by design, not an overflow to hide. */
.rh-top-lead{font-family:var(--body);font-size:24px;line-height:1.12;
  letter-spacing:-.025em;font-weight:500;color:var(--ink);text-transform:none}
.rh-top-name{font-family:var(--display);font-weight:400;font-size:66px;line-height:.91;
  letter-spacing:-.045em;color:var(--ink);display:block;max-width:100%;
  overflow-wrap:break-word}
@media (max-width:380px){
  .rh-top-lead{font-size:21px}
  .rh-top-name{font-size:57px}
}
.rh-top-profile{appearance:none;flex:0 0 44px;width:44px;height:44px;border-radius:50%;
  border:1px solid var(--line);background:rgba(255,248,236,.92);color:var(--ink);
  display:grid;place-items:center;cursor:pointer}
.rh-top-profile svg{width:21px;height:21px}
/*  Over a photograph. No background behind the words - a shadow does
    the work, so the picture still reads through. */
.rh-greet.on-photo .rh-top-lead{color:#F6EAD6;
  text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 16px rgba(0,0,0,.7),0 0 38px rgba(0,0,0,.5)}
.rh-greet.on-photo .rh-top-name{color:#FFFCF6;
  text-shadow:0 1px 4px rgba(0,0,0,.8),0 3px 20px rgba(0,0,0,.68),0 0 48px rgba(0,0,0,.5)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .rh-top-lead{color:#B3ABA0}
  :root:not([data-theme="light"]) .rh-top-name{color:#F0EBE3}
  :root:not([data-theme="light"]) .rh-top-profile{background:#211F1B;border-color:#38352E;color:#F0EBE3}
}
:root[data-theme="dark"] .rh-top-lead{color:#B3ABA0}
:root[data-theme="dark"] .rh-top-name{color:#F0EBE3}
:root[data-theme="dark"] .rh-top-profile{background:#211F1B;border-color:#38352E;color:#F0EBE3}
/*  The hero's own greeting block and the three per-screen profile
    marks step aside: one of each, built in one place. */
.home-greeting-copy,
.concept-profile{display:none!important}
/*  The hero no longer carries the words, so its scrim comes off too. */
.home-concept-hero::after{display:none!important}

/*  SIGN OUT AT THE FOOT OF HOME, as footer matter rather than an
    action. A full-width button down here competes with the things
    somebody actually came to Home to do; this is a quiet centred link
    under a hairline, found by scrolling to the end and not before.
    Still a 44px target, because small to read is not small to tap. */
.home-signout-wrap{display:flex;justify-content:center;
  margin-top:26px;padding:16px 0 4px;border-top:1px solid var(--line)}
.home-signout{appearance:none;border:0;background:none;cursor:pointer;
  font-family:var(--body);font-size:12px;font-weight:500;letter-spacing:.04em;
  color:var(--muted);text-decoration:underline;text-underline-offset:3px;
  padding:12px 18px;min-height:44px}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .home-signout{color:#B3ABA0}
}
:root[data-theme="dark"] .home-signout{color:#B3ABA0}

/*  THE ENSO STAYS WHERE IT ALWAYS WAS - top left of each photograph.
    Build 89 moved it into the header because the greeting had been
    pulled up into its corner; the greeting has gone back down the
    picture, so the corner is the enso's again. */

/* ===================================================================
   THE INSTRUCTION SHEET AND THE UNDO        Build 94
   -------------------------------------------------------------------
   A step with no form to open shows its instruction as a sheet the
   resident closes, and closing it is what ticks the step. Same scrim
   depth as the notification prompt (40) so the two cannot fight.
   =================================================================== */
.step-sheet-scrim{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;
  justify-content:center;background:rgba(14,12,9,.5);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);padding:16px}
.step-sheet{width:100%;max-width:460px;background:var(--surface);
  border:1px solid var(--line);border-radius:22px;
  padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px));
  box-shadow:0 22px 60px rgba(20,18,14,.3);max-height:84vh;overflow-y:auto}
.step-sheet-eyebrow{font-size:10px;letter-spacing:.2em;text-transform:uppercase;
  font-weight:700;color:var(--brand-ink);margin-bottom:8px}
.step-sheet h2{font-family:var(--display);font-weight:400;font-size:27px;line-height:1.1;
  margin:0 0 10px;color:var(--ink)}
.step-sheet p{margin:0 0 12px;font-size:14.5px;line-height:1.55;color:var(--muted)}
.step-sheet-do{background:var(--bg);border:1px solid var(--line);border-radius:14px;
  padding:14px 15px;font-size:14.5px;line-height:1.55;color:var(--ink);margin-bottom:16px}
.step-sheet-btn{appearance:none;width:100%;min-height:50px;border:0;border-radius:16px;
  background:var(--ink);color:var(--on-ink);font-family:var(--body);font-size:15px;
  font-weight:600;cursor:pointer}
.step-undo{appearance:none;border:0;background:none;cursor:pointer;margin-top:8px;padding:8px 0;
  font-family:var(--body);font-size:12px;color:var(--muted);text-decoration:underline;
  text-underline-offset:3px;min-height:40px;text-align:left}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .step-sheet{background:#211F1B;border-color:#38352E}
  :root:not([data-theme="light"]) .step-sheet h2{color:#F0EBE3}
  :root:not([data-theme="light"]) .step-sheet-do{background:#171714;border-color:#38352E;color:#F0EBE3}
}
:root[data-theme="dark"] .step-sheet{background:#211F1B;border-color:#38352E}
:root[data-theme="dark"] .step-sheet h2{color:#F0EBE3}
:root[data-theme="dark"] .step-sheet-do{background:#171714;border-color:#38352E;color:#F0EBE3}


/* -------------------------------------------------------------------
   BUILD 98 - THE IOP CARD on the Programme screen.
   Colours measured against this card's own surface, not picked:
   #8F6710 is 5.02:1 and #737168 is 4.81:1 on #FFFDF8, the same pairing
   build 95 settled on for the calendar list. var(--brand) and
   var(--faint) are 3.07 and 2.96 and are not used for text here.
   ------------------------------------------------------------------- */
.iop-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;
  padding:18px 16px 16px;margin:4px 0 18px;box-shadow:var(--shadow-soft)}
.iop-eyebrow{font-family:var(--body);font-size:11.5px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:#8F6710;margin-bottom:10px}
.iop-count{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.iop-count b{font-family:var(--display,var(--body));font-size:34px;font-weight:700;
  line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.iop-count span{font-size:15px;color:#737168;font-weight:500}
.iop-bar{height:7px;border-radius:99px;background:#EFE8DA;overflow:hidden;margin:12px 0 14px}
.iop-bar i{display:block;height:100%;border-radius:99px;background:#8F6710}
.iop-when b{display:block;font-family:var(--body);font-size:16px;font-weight:650;color:var(--ink)}
.iop-when small{display:block;font-size:13px;color:#737168;margin-top:2px}
.iop-facts{display:flex;gap:10px;margin-top:14px;padding-top:13px;
  border-top:1px solid var(--line);flex-wrap:wrap}
.iop-fact{flex:1 1 72px;min-width:0}
.iop-fact b{display:block;font-size:19px;font-weight:700;color:var(--ink);
  font-variant-numeric:tabular-nums;line-height:1.2}
.iop-fact small{display:block;font-size:11.5px;color:#737168;margin-top:1px}
/*  Needs-you, not alarm: the resident has done nothing wrong yet and
    this is an invitation to speak, not a warning. */
.iop-attn{margin-top:14px;padding:12px 13px;border-radius:14px;
  background:#FAF2DF;border:1px solid #E6D3A6}
.iop-attn b{display:block;font-family:var(--body);font-size:14.5px;
  font-weight:650;color:#6F4F0A}
.iop-attn small{display:block;font-size:12.5px;color:#7E5A0C;margin-top:3px}
.iop-attn p{margin:5px 0 0;font-size:13.5px;line-height:1.45;color:#5F5444}
.iop-over{margin-top:12px;padding:12px 13px;border-radius:14px;
  background:#FBEAE8;border:1px solid #E8BDB8}
.iop-over b{display:block;font-family:var(--body);font-size:14.5px;
  font-weight:650;color:#8E2018}
.iop-over p{margin:4px 0 0;font-size:13.5px;line-height:1.45;color:#5F5444}

/*  A ONE-ON-ONE ON THE FIRST SCREEN  (build 123)
    Not a photograph and not a tile: a one-on-one is a person, and
    the two things worth seeing from the door are who and when. */
.ooo-home{display:flex;align-items:center;gap:13px;width:100%;text-align:left;
  background:var(--surface,#fff);border:1px solid var(--line,#E7E4DD);border-radius:16px;
  padding:13px 14px;margin:0 0 12px;cursor:pointer;font:inherit;color:inherit}
.ooo-home:focus-visible{outline:2px solid var(--forest,#13362E);outline-offset:2px}
.ooo-home-av{flex:0 0 42px;height:42px;border-radius:50%;
  background:var(--lime-soft,#E4F4E9);color:var(--forest,#13362E);
  display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:700}
.ooo-home-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ooo-home-copy small{font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--forest,#13362E);font-weight:700}
.ooo-home-copy b{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ooo-home-copy em{font-style:normal;font-size:13px;color:var(--muted,#5E6661);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ooo-home > i{font-style:normal;color:var(--muted,#5E6661);font-size:20px;flex:0 0 auto}
.ooo-home-ask .ooo-home-av{font-size:22px;font-weight:400}

/*  The byline names the organization that built the app, so the
    name is the link. Underlined rather than coloured: it sits in a
    line of small grey type and a coloured word there reads as an
    error before it reads as a link. */
.by-link{color:inherit;text-decoration:underline;text-underline-offset:2px}

/*  COMING UP IN THE HOUSE  (build 130)
    ------------------------------------------------------------------
    Arrivals and departures on the senior's screen. THE COLOUR NEVER
    CARRIES THE MEANING ALONE — build 125 paid for that rule on this
    same screen: the dot is the glance, the sentence is what still
    works in bright sun, on a cheap phone, or for somebody who cannot
    tell the two apart. Every line here reads correctly in grey.

    And neither state is --bad. A resident moving out is not an error;
    an error colour on a housemate's departure is the app editorialising
    about somebody's life. Sage for arriving, amber for leaving, and
    the words do the work. */
.rh-moves{padding:13px 15px}
.rh-move{display:flex;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.rh-move:first-of-type{border-top:0;padding-top:3px}
.rh-move-dot{width:7px;height:7px;border-radius:50%;margin-top:7px;flex:none;
  background:var(--ok-dot)}
.rh-move.out .rh-move-dot{background:var(--warn-dot)}
.rh-move-copy{display:block;min-width:0}
.rh-move-copy b{display:block;font-size:14px;line-height:1.35}
.rh-move-copy small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}

/*  The same fact beside a name on the evening sheet, and on the
    calendar. A chip, not a colour wash: it sits inside a line of
    names and has to be legible without changing how the name reads. */
.rh-flag{display:inline-block;font-size:10px;letter-spacing:.08em;
  text-transform:uppercase;font-weight:700;border-radius:999px;
  padding:2px 7px;margin-left:7px;white-space:nowrap;vertical-align:1px;
  background:var(--ok-bg);color:var(--ok);border:1px solid var(--ok-dot)}
.rh-flag.out{background:var(--warn-bg);color:var(--warn);border-color:var(--warn-dot)}
/*  A BED WITH NOBODY IN IT YET. Dashed, because the row is a
    placeholder for a person rather than a person — the same language
    the bed board uses for an open bed. */
.rh-move-row{border:1px dashed var(--line2);border-radius:12px;
  padding:11px 12px;margin:6px 0;color:var(--muted)}

/*  A SESSION THAT WAS CALLED OFF  (build 131)
    ------------------------------------------------------------------
    THE WORD, THE LINE AND THE GREY — never any one alone. Build 125
    paid for that rule on this screen. A strikethrough is invisible to
    a screen reader and hard to see in bright sun; grey on its own
    reads as "already happened". The badge is what survives all three.

    NOT --bad. A group that was called off is not an error and not the
    resident's fault, and an error colour on a line about somebody's
    week is the app editorialising. Amber: something changed, read it. */
.day-agenda-event.is-canceled{opacity:.72;border-style:dashed}
.day-agenda-event.is-canceled .day-agenda-time{text-decoration:line-through;color:var(--muted)}
.dag-off{display:inline-block;margin-left:7px;font-size:10px;letter-spacing:.09em;
  text-transform:uppercase;font-weight:700;border-radius:999px;padding:2px 7px;
  vertical-align:1px;white-space:nowrap;
  background:var(--warn-bg);color:var(--warn);border:1px solid var(--warn-dot)}
.dag-off-why{margin-top:3px;font-size:12px;line-height:1.45;color:var(--warn);font-weight:500}

/* ===================================================================
   MY SPACE — THE ROWS WERE TOUCHING          Build 137
   -------------------------------------------------------------------
   .me-primary is a flex column with a gap, which separates the rows
   that are its OWN children. But the first three rows — My Care Team,
   My Program and the Release of Information — are painted INTO
   #roiBox, a plain block div. A flex gap does not reach a grandchild,
   so those three stacked flush against each other while the two below
   them sat apart: one column, two different spacings, and no rule
   anywhere saying so.

   #roiBox gets the same gap, and the gap itself goes up, so the five
   rows read as five cards rather than one striped block.

   The support grid and the row column were also flush: the My house
   tile ended and the first row began. They are two different kinds of
   thing and need a breath between them.
   =================================================================== */
#roiBox{display:flex;flex-direction:column;gap:14px}
.me-primary{gap:14px!important;margin-top:22px}
.me-fee-bottom{margin:0!important;width:100%!important}

/*  The tiles themselves, same breathing room as the rows below them. */
#t-me .me-support-grid{gap:14px!important}

/*  THE HOUSE FEE TILE  (build 137). Its figure is money, so it is set
    in the same tabular figures as every other amount in the app — a
    balance that shifts its own digits between renders reads as an
    animation nobody asked for. */
#feeTileBig{font-variant-numeric:tabular-nums}

/* ===================================================================
   WHEN I'M OUT — the check-in row's mark              Build 138
   -------------------------------------------------------------------
   .me-row .me-icon is a 48px circle in cream and gold, which is the
   house fee's colour and the getting-started colour. The check-in is
   neither, so it gets the sage end of the palette — and the mark is
   drawn, not typed, because every glyph close to "a calendar with a
   tick" renders as something else on somebody's phone.

   The circle is display:grid;place-items:center already, so the svg
   needs only a size. It takes its stroke from the circle's colour,
   so one rule paints both themes.
   =================================================================== */
#checkinRow .me-icon{background:#E4EDE6!important;color:#2E5B44!important}
#checkinRow .me-icon svg{width:25px;height:25px;display:block}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) #checkinRow .me-icon{background:#1E2A23!important;color:#8FC6A5!important}
}
:root[data-theme="dark"] #checkinRow .me-icon{background:#1E2A23!important;color:#8FC6A5!important}

/*  A DIRECTOR MUST NOT BE HANDED THE CHECK-IN DOOR       Build 138
    -------------------------------------------------------------
    The live director path hides #residentHome entirely, so the row
    goes with it — but that only happens once rh_whoami has answered,
    and it is deliberately not awaited. In the beat before it lands, a
    director is looking at the resident home with a writer on it, and
    rhcal_submit files the week of WHOEVER IS CALLING. One missed tap
    would put a director's fortnight on a resident board under the
    director's own name.

    body.director is set the moment whoami returns, and the preview
    path adds .hide directly. This rule is the third latch.          */
body.director #checkinRow{display:none!important}

/* ===================================================================
   WHO THE APP THINKS YOU ARE, when it cannot tell       Build 139
   -------------------------------------------------------------------
   Above both home screens, so it is the first thing read and not a
   thing found. Clay rather than red: this is "we cannot place you",
   which is a thing to act on, not an emergency.
   =================================================================== */
.who-note{
  /*  The right gutter is not decoration. The profile button is
      absolutely positioned near the top of the screen and does not move
      when this note pushes the hero down, so without the gutter it
      lands on top of the first line and the heading reads "not matched
      to anybo—". Reserving the space is cheaper than reparenting a
      button four screens depend on. */
  margin:12px 16px 4px;padding:14px 72px 14px 16px;border-radius:16px;
  background:#FBF1E6;border:1px solid #E3C9A6;color:#3A2A14;
  display:flex;flex-direction:column;gap:7px;text-align:left}
.who-note b{font-size:15.5px;line-height:1.25;font-weight:600}
.who-note span{font-size:12.5px;line-height:1.45;color:#5C4524}
.who-note-out{
  align-self:flex-start;margin-top:3px;padding:9px 16px;border-radius:999px;
  border:1px solid #3A2A14;background:transparent;color:#3A2A14;
  font-size:12.5px;font-weight:600;font-family:inherit}
.who-note-out:active{background:#3A2A14;color:#FBF1E6}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .who-note{background:#2A2117;border-color:#54401F;color:#F0DFC6}
  :root:not([data-theme="light"]) .who-note span{color:#CDB392}
  :root:not([data-theme="light"]) .who-note-out{border-color:#F0DFC6;color:#F0DFC6}
  :root:not([data-theme="light"]) .who-note-out:active{background:#F0DFC6;color:#2A2117}
}
:root[data-theme="dark"] .who-note{background:#2A2117;border-color:#54401F;color:#F0DFC6}
:root[data-theme="dark"] .who-note span{color:#CDB392}
:root[data-theme="dark"] .who-note-out{border-color:#F0DFC6;color:#F0DFC6}
:root[data-theme="dark"] .who-note-out:active{background:#F0DFC6;color:#2A2117}

/* ===================================================================
   THE ROSTER FOLDS UP                                   Build 141
   -------------------------------------------------------------------
   The head is a real button with the whole row as its hit target —
   a caret alone is a 20px target on a 400px screen. The caret turns
   rather than swapping character, so nothing reflows on a tap.
   =================================================================== */
.rsec{margin:14px 0 0}
.rsec-head{
  width:100%;display:flex;align-items:center;gap:10px;
  padding:12px 14px;border-radius:14px;
  background:rgba(255,253,248,.88);border:1px solid var(--line);
  font-family:inherit;text-align:left;cursor:pointer}
.rsec-head .eyebrow{flex:1;min-width:0}
.rsec-count{
  font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--muted);
  white-space:nowrap}
.rsec-caret{
  font-size:20px;line-height:1;color:var(--brand);
  transition:transform .18s ease;transform:rotate(0deg)}
.rsec.open .rsec-caret{transform:rotate(90deg)}
.rsec-body{display:flex;flex-direction:column;gap:8px;padding-top:8px}
.rsec-body.hide{display:none}
@media (prefers-reduced-motion: reduce){ .rsec-caret{transition:none} }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .rsec-head{background:#2B2620;border-color:#413A31}
}
:root[data-theme="dark"] .rsec-head{background:#2B2620;border-color:#413A31}

/* ===================================================================
   THE TILES WEAR THE ROWS' MARKS                         Build 141
   -------------------------------------------------------------------
   The circular marks on the rows were the one piece of this app that
   read instantly, and the tiles above them had nothing — six boxes
   distinguished only by a 9px eyebrow. The same circle, two sizes
   down, at the top of each tile.

   Drawn, not typed, with one exception: the fee keeps its "$", which
   is the mark residents already associate with that row and is
   clearer than any glyph of a banknote.
   =================================================================== */
.tile-icon{
  width:34px;height:34px;flex:0 0 34px;border-radius:50%;
  display:grid;place-items:center;margin-bottom:10px;
  background:#F5EBD7;color:#9B6D15;
  font-family:var(--body);font-weight:600;font-size:18px;line-height:1}
.tile-icon svg{width:19px;height:19px;display:block}
.tile-icon-fee{background:var(--brand);color:#23201A;font-size:19px}
/*  DESCENDANT, NOT CHILD. The grid sits inside .me-below-fold, so the
    `#t-me > .cards` selectors further up this file have never matched
    these tiles at all — which is why they are centred columns rather
    than the left-aligned blocks those rules describe. Not changing that
    here: centred suits the marks. Only the height is claimed. */
#t-me .me-support-grid .tile{min-height:140px}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .tile-icon{background:#352C1E;color:#E0B770}
  :root:not([data-theme="light"]) .tile-icon-fee{background:var(--brand);color:#23201A}
}
:root[data-theme="dark"] .tile-icon{background:#352C1E;color:#E0B770}
:root[data-theme="dark"] .tile-icon-fee{background:var(--brand);color:#23201A}

/* ===================================================================
   THE RESTRUCTURE                                       Build 142
   -------------------------------------------------------------------
   Today moved to Me, above the tiles. The stack keeps its own class so
   the calendar card's rules still find it, plus a top margin it did not
   need under a hero.
   =================================================================== */
.me-today-stack{margin:4px 0 18px;padding:0 8px}
.me-today-stack .card.week{margin:0}

/*  The rules row's mark: a page with lines, in the same cream circle as
    the rest. Not a gavel, not a book — this is a document, and the
    documents shelf is what it opens. */
#houseRulesRow .me-icon-rules{background:#EDE6DA!important;color:#5A4A33!important}
#houseRulesRow .me-icon-rules svg{width:24px;height:24px;display:block}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) #houseRulesRow .me-icon-rules{background:#2E2A24!important;color:#D7C9B4!important}
}
:root[data-theme="dark"] #houseRulesRow .me-icon-rules{background:#2E2A24!important;color:#D7C9B4!important}

/*  WHY THESE HOURS EXIST. Set as reading matter, not as a notice: a
    paragraph measure, generous leading, and no box around it. A tinted
    panel would make it an announcement, and an announcement is the one
    thing a sceptical reader skips. */
.prog-why{padding:2px 2px 4px;margin:14px 0 18px}
.prog-why .eyebrow{margin-bottom:9px;display:block}
.prog-why p{margin:0 0 11px;font-size:14px;line-height:1.56;color:var(--ink);max-width:62ch}
.prog-why p:last-child{margin-bottom:0}

/*  The quote on Me sits at the foot, above sign-out, with air. */
#quoteBoxMe{margin:18px 8px 6px}

/* ===================================================================
   WHY THIS EXISTS — the dot and the panel            Build 143
   -------------------------------------------------------------------
   .tile-wrap exists because a tile IS a button and the dot cannot live
   inside one. The wrapper is the positioned element; the tile fills it;
   the dot sits on top as a sibling, so a tap on the dot is a tap on the
   dot and nothing else.
   =================================================================== */
.tile-wrap{position:relative;display:flex}
.tile-wrap > .tile{flex:1;width:100%}
.why-dot{
  position:absolute;top:9px;right:9px;width:25px;height:25px;border-radius:50%;
  display:grid;place-items:center;padding:0;
  border:1px solid var(--line);background:rgba(255,253,248,.9);
  color:var(--muted);font-family:var(--body);font-size:13px;font-weight:700;
  font-style:italic;line-height:1;cursor:pointer}
.why-dot.on{background:var(--ink);border-color:var(--ink);color:#FFFDF8}

.why-panel{
  margin:12px 8px 2px;padding:16px 17px;border-radius:18px;
  background:rgba(255,253,248,.96);border:1px solid var(--line);
  display:flex;flex-direction:column;gap:9px;text-align:left}
.why-panel.hide{display:none}
.why-title{font-family:var(--display);font-weight:400;font-size:20px;line-height:1.15;color:var(--ink)}
.why-panel p{margin:0;font-size:13.5px;line-height:1.55;color:#4A5059;max-width:62ch}
.why-close{
  align-self:flex-start;margin-top:4px;padding:8px 16px;border-radius:999px;
  border:1px solid var(--line);background:transparent;color:var(--ink);
  font-family:inherit;font-size:12.5px;font-weight:600}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .why-dot{background:#2B2620;border-color:#413A31}
  :root:not([data-theme="light"]) .why-panel{background:#2B2620;border-color:#413A31}
  :root:not([data-theme="light"]) .why-panel p{color:#BFC5CC}
  :root:not([data-theme="light"]) .why-close{border-color:#413A31;color:#E8EDE9}
}
:root[data-theme="dark"] .why-dot{background:#2B2620;border-color:#413A31}
:root[data-theme="dark"] .why-panel{background:#2B2620;border-color:#413A31}
:root[data-theme="dark"] .why-panel p{color:#BFC5CC}
:root[data-theme="dark"] .why-close{border-color:#413A31;color:#E8EDE9}

/*  BUILD 144. The wrapper, generalised. A dot can now sit beside any
    element that is itself a button — a tile, a toolbox row, a resource
    row — and .why-wrap is the same trick as .tile-wrap: the wrapper is
    positioned, the child fills it, the dot is a sibling.           */
.why-wrap{position:relative;display:flex}
.why-wrap > :first-child{flex:1;width:100%}
.why-wrap > .why-dot, .tile-wrap > .why-dot{z-index:2}

/*  On a row rather than a tile the dot sits centred on the right, clear
    of the chevron the row already carries. */
.why-wrap > .why-dot{top:50%;right:38px;transform:translateY(-50%)}

/*  In a card head it is part of the line, not floating over it. */
.why-dot-inline{position:static;margin-left:8px;transform:none}

.resource-actions .why-wrap{margin:0}

/*  AN ORPHAN DOT IS WORSE THAN NO DOT.                    Build 144
    ----------------------------------------------------------------
    .why-wrap > .why-dot is absolutely positioned, so when its host row
    carries .hide the wrapper collapses to zero height and the dot keeps
    rendering — an ⓘ floating on its own, explaining a row that is not
    there. The recovery check-in row is hidden for anybody without one,
    which is most people, so this was not a corner case.

    The dot always follows its host, so the adjacent-sibling selector is
    exact: hidden host, hidden dot. */
.why-wrap > .hide + .why-dot{display:none}

/*  BUILD 145. The dots were 25px, which is under every thumb guideline
    going and read as a speck beside a 34px tile mark. 30px, with the
    glyph up a point — still quiet, now reachable. */
.why-dot{width:30px;height:30px;font-size:15px}
.why-wrap > .why-dot{right:40px}

/*  BUILD 146. The House screen's own title. It borrows the Me heading's
    type so the two screens read as siblings, with less air above it —
    there is a hero directly overhead here, where Me has a photograph. */
.house-heading{padding:18px 18px 14px}
.house-heading h1{font-size:44px}

/* ===================================================================
   THE HERO FILLS THE SCREEN                             Build 147
   -------------------------------------------------------------------
   Two things were wrong with a fixed 355px band.

   WIDTH. It escaped its parent with margin:0 -16px, which only works
   while the parent's padding is exactly 16px. On a wider screen — a
   tablet, a phone in landscape, the desktop app — the padding grows and
   white rails appear down both sides of the photograph. Escaping by
   50vw instead is exact at every width, whatever the padding becomes.

   HEIGHT. 355px is a third of a tall phone and most of a short one, so
   the same photograph read as a banner on one device and a wallpaper on
   another. Scaling with the viewport keeps the proportion steady, with
   a floor so it never collapses and a ceiling so it never swallows a
   desktop window whole.

   svh, not vh: on iOS vh is the height WITHOUT the browser chrome, so a
   100vh hero is taller than the visible screen and the card beneath it
   starts below the fold.
   =================================================================== */
/*  BUILD 149. WIDTH ONLY — the height band is left alone.
    The first version also scaled the height with the viewport, which
    was not asked for and is a different thing: a hero that grows taller
    pushes the Today card below the fold on a short phone. The 355px
    band stays exactly as it was; only the rails down the sides go.

    `width:auto` with negative margins rather than `width:100vw`: 100vw
    counts the scrollbar on a desktop window, so the element overhangs
    by its width and the page scrolls sideways. Letting the block fill
    its own line reaches the same edges without that. */
.home-concept-hero{
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
}
/*  The photograph on My Daily is the same kind of object and was inset
    the same way. Height untouched here too. */
.me-concept-photo{
  margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}

/* ===================================================================
   THE GETTING STARTED BUTTONS WERE BLACK ON BLACK      Build 147
   -------------------------------------------------------------------
   .step .lk is a dark pill with light ink:

       background: var(--forest);   /* #20211F light · #292824 dark */
       color:      var(--on-forest) /* #FFFFFF light · #F5EDE4 dark  */

   and build45.css then inks the whole Getting Started screen to #111,
   because that screen sits on a pale photograph and its body copy
   needed to be dark:

       #t-start #startBox .lk{color:#111;text-decoration:underline}

   That rule won on COLOUR and said nothing about BACKGROUND, so the
   pill kept its near-black fill and took near-black text: #111 on
   #20211F is 1.06:1, which is not low contrast, it is invisible. The
   underline was the only reason anybody could see a control was there.

   This is the same mistake as the CRM's white-on-white day tile and the
   same one the standing note is about: DO NOT RE-COLOUR A STYLED
   COMPONENT FROM OUTSIDE IT. If a sweep has to ink a screen, it must
   exempt the components that carry their own pair.

   The pair is restored explicitly rather than by reverting to the token,
   so a future sweep over this screen cannot take it again.
   =================================================================== */
#t-start #startBox .lk{
  color:#FFFFFF!important;
  text-decoration:none!important;
  background:#20211F!important}
#t-start #startBox .lk span{color:inherit!important}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) #t-start #startBox .lk{
    color:#F5EDE4!important;background:#292824!important}
}
:root[data-theme="dark"] #t-start #startBox .lk{
  color:#F5EDE4!important;background:#292824!important}

/* ===================================================================
   INTAKE, FOLDED                                        Build 148
   -------------------------------------------------------------------
   The group head is a real button carrying the whole row, with the
   caret turning rather than swapping glyph so nothing reflows on a tap.
   The children keep .step exactly as it is — this changes where they
   are drawn, not what they look like.
   =================================================================== */
.step-group{padding:0!important;overflow:hidden}
.step-group-head{
  width:100%;display:flex;align-items:flex-start;gap:13px;
  padding:15px 16px;background:transparent;border:0;
  font-family:inherit;text-align:left;cursor:pointer}
.step-group-head .g{flex:1;min-width:0}
.step-group-caret{
  font-size:22px;line-height:1;color:var(--brand);align-self:center;
  transition:transform .18s ease}
.step-group.open .step-group-caret{transform:rotate(90deg)}
.step-group-body{display:flex;flex-direction:column;gap:10px;padding:0 10px 12px}
.step-group-body.hide{display:none}
.step-group-body .step{margin:0}
@media (prefers-reduced-motion: reduce){ .step-group-caret{transition:none} }

/*  THE GETTING STARTED BACKDROP IS SOFT BECAUSE IT IS BEING ENLARGED.
    mountains-start is 1600x1250 — the largest photograph here — and a
    tall phone at 3x asks for roughly 1200x2700 device pixels, so cover
    scales it about 2.2x and the softness is the upscale, not the file.
    Anchoring it to the top keeps the sharpest part of the frame over
    the type instead of centring the stretch; the real fix is a bigger
    original, which no CSS can substitute for. */
#t-start.start-experience{background-position:center top!important}

/*  BUILD 150. Getting Started's mark on the House screen. Sage-grey
    rather than the cream-and-gold the other rows carry, so three rows
    in a column are told apart by colour as well as by word. */
#startMeBtn .me-icon-start2{background:#E6E9E4!important;color:#3F4A3C!important}
#startMeBtn .me-icon-start2 svg{width:24px;height:24px;display:block}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) #startMeBtn .me-icon-start2{background:#232821!important;color:#A8C0A0!important}
}
:root[data-theme="dark"] #startMeBtn .me-icon-start2{background:#232821!important;color:#A8C0A0!important}

/* ===================================================================
   THE RELEASE NOTE                                      Build 151
   -------------------------------------------------------------------
   Reuses .step-sheet so it is the same object as the instruction
   sheets, with a list and a second, quieter button — the form is a
   place to go, "Not now" is a way back, and there is deliberately no
   "Got it", because opening a consent form is not consenting.
   =================================================================== */
.consent-note-list{margin:4px 0 2px;padding:0 0 0 18px;display:flex;flex-direction:column;gap:13px}
.consent-note-list li{font-size:13.5px;line-height:1.5;color:#4A5059}
.consent-note-list b{display:block;font-size:14.5px;line-height:1.35;color:var(--ink);margin-bottom:3px}
.consent-note-names{display:flex;flex-direction:column;gap:5px;margin:7px 0 6px}
.consent-note-names i{
  font-style:normal;font-weight:600;font-size:14px;letter-spacing:.01em;
  background:#F3ECDC;border:1px solid #E0D2B4;color:#3C3222;
  border-radius:9px;padding:7px 11px;align-self:flex-start}
.step-sheet-back{
  display:block;width:100%;margin-top:9px;padding:12px;border-radius:999px;
  border:1px solid var(--line);background:transparent;color:var(--ink);
  font-family:inherit;font-size:13.5px;font-weight:600}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .consent-note-list li{color:#BFC5CC}
  :root:not([data-theme="light"]) .consent-note-names i{background:#2E2820;border-color:#4A4130;color:#EBDCC2}
  :root:not([data-theme="light"]) .step-sheet-back{border-color:#413A31;color:#E8EDE9}
}
:root[data-theme="dark"] .consent-note-list li{color:#BFC5CC}
:root[data-theme="dark"] .consent-note-names i{background:#2E2820;border-color:#4A4130;color:#EBDCC2}
:root[data-theme="dark"] .step-sheet-back{border-color:#413A31;color:#E8EDE9}

/* ===================================================================
   THE PORTAL ROWS                                       Build 152
   -------------------------------------------------------------------
   Same row as everything else on House. The arrow is ↗ rather than ›
   because these leave the app, and a chevron promising another screen
   when the next thing is a browser tab is a small lie told often.
   =================================================================== */
.house-links{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.house-links.hide{display:none}
.app-link-row{text-decoration:none}
.app-link-row .me-arrow{font-size:21px!important}
#residentHome .me-icon-portal{background:#E7E3EE!important;color:#473C5C!important}
#residentHome .me-icon-portal svg{width:24px;height:24px;display:block}
.consent-note-portal{
  margin:2px 0 0;font-size:13px;line-height:1.5;color:#4A5059}
.consent-note-portal a{color:var(--brand);font-weight:600}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) #residentHome .me-icon-portal{background:#272231!important;color:#C5B8DC!important}
  :root:not([data-theme="light"]) .consent-note-portal{color:#BFC5CC}
}
:root[data-theme="dark"] #residentHome .me-icon-portal{background:#272231!important;color:#C5B8DC!important}
:root[data-theme="dark"] .consent-note-portal{color:#BFC5CC}

/* ===================================================================
   YOUR OWN PROVIDERS                                    Build 153
   -------------------------------------------------------------------
   Three cards that are shut until asked. The status line carries the
   whole answer in the shut state — a name, "Not set yet", or the fact
   that it could not be read — because that is the only thing most
   people open this for.
   =================================================================== */
.prov-wrap{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.prov-title{font-family:var(--display);font-size:21px;line-height:1.15;color:var(--ink)}
.prov-note{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}

.prov-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.prov-head{
  width:100%;display:flex;align-items:center;gap:12px;padding:14px 15px;
  background:transparent;border:0;font-family:inherit;text-align:left;cursor:pointer}
.prov-head-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.prov-head-copy b{font-size:16px;line-height:1.15;color:var(--ink)}
.prov-status{font-size:12.5px;line-height:1.35}
.prov-status.none{color:var(--muted)}
.prov-status.set{color:#2F6B4A;font-weight:600}
/*  A staff entry is not wrong and not settled, so it is neither green
    nor grey: it is the colour of something waiting to be confirmed. */
.prov-status.staff{color:#8A6314;font-weight:600}
.prov-status.warn{color:#9A4B12}
.prov-caret{font-size:21px;line-height:1;color:var(--brand);transition:transform .18s ease}
.prov-card.open .prov-caret{transform:rotate(90deg)}

.prov-body{padding:2px 15px 15px;display:flex;flex-direction:column;gap:11px}
.prov-sechead{font-size:10px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:var(--brand-ink)}
.prov-ref{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:4px}
.prov-ref b{font-size:14.5px;color:var(--ink)}
.prov-ref small{font-size:12px;color:var(--muted)}
.prov-signup{margin-top:4px;font-size:12.5px;line-height:1.5;color:#4A5059;display:flex;flex-direction:column;gap:2px}
.prov-signup-label{font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--muted)}
.prov-acts{display:flex;align-items:center;gap:12px;margin-top:6px;flex-wrap:wrap}
.prov-act{font-size:12.5px;font-weight:600;color:var(--brand);text-decoration:none}
.prov-phone{font-size:12.5px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}

.prov-own{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:8px}
.prov-field{display:flex;flex-direction:column;gap:5px}
.prov-label{font-size:11.5px;font-weight:600;color:var(--muted)}
.prov-said{margin-top:8px;font-size:12.5px;font-weight:600;color:#2F6B4A}
.prov-said.bad{color:#9A2E0E}
@media (prefers-reduced-motion: reduce){ .prov-caret{transition:none} }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .prov-card{background:#2B2620;border-color:#413A31}
  :root:not([data-theme="light"]) .prov-signup{color:#BFC5CC}
  :root:not([data-theme="light"]) .prov-status.set{color:#8FC6A5}
  :root:not([data-theme="light"]) .prov-status.staff{color:#E0B770}
  :root:not([data-theme="light"]) .prov-said{color:#8FC6A5}
}
:root[data-theme="dark"] .prov-card{background:#2B2620;border-color:#413A31}
:root[data-theme="dark"] .prov-signup{color:#BFC5CC}
:root[data-theme="dark"] .prov-status.set{color:#8FC6A5}
:root[data-theme="dark"] .prov-status.staff{color:#E0B770}
:root[data-theme="dark"] .prov-said{color:#8FC6A5}

/* ===================================================================
   THE LADDER, SPACED AND FOLDED                        Build 155
   -------------------------------------------------------------------
   Asked for: more room between the rungs, a little contrast off the
   ground, and each card a touch wider with its own margin.

   The cards were 8px apart with the page's own surface colour, so five
   of them read as one block with rules through it. White on the cream
   ground lifts them without introducing a new colour, and the header is
   now a real button — the whole row, not a caret.
   =================================================================== */
.rungs{gap:11px!important;margin-top:13px!important;padding:0 2px}
.rung{
  padding:0!important;border-radius:18px!important;overflow:hidden;
  background:#FFFFFF!important;border-color:#EDE7DA!important}
/*  `color: inherit` IS NOT OPTIONAL HERE. A <button> does not inherit
    colour — it takes the UA's own near-black — so the moment this header
    became a button, the name and the amount on the current rung went
    #000 on the forest fill: 1.2:1, measured, invisible. The .here rules
    colour .rsub and .rsay and always have; they never had to name the
    header because it used to be a <div>.

    Same family as the Getting Started pills earlier in this build: a
    control that carries its own colours must not be re-coloured, and a
    control that inherits them must be told to. */
.rung .rtop{
  width:100%;padding:15px 17px;background:transparent;border:0;
  font-family:inherit;color:inherit;text-align:left;cursor:pointer;
  display:flex!important;align-items:center!important;gap:11px}
.rung.here .rtop,.rung.here .rn,.rung.here .rp{color:var(--on-forest)!important}
.rung .rcaret{
  font-size:20px;line-height:1;color:var(--brand);flex:0 0 auto;
  transition:transform .18s ease}
.rung.open .rcaret{transform:rotate(90deg)}
.rung .rp{margin-left:auto}
.rung .rbody{display:none;padding:0 17px 16px}
.rung.open .rbody{display:block}

/*  THE RUNG SOMEBODY IS ON keeps its forest fill, and its caret and
    figures have to be legible against it — the existing .here rules
    colour the text, and the caret was not among them. */
.rung.here .rcaret{color:var(--on-forest);opacity:.8}
.rung.here{border-color:var(--forest)!important;background:var(--forest)!important}

/*  Why the groups don't move — a press, like the programme message. */
.rung-why{margin-top:14px;border:1px solid #E7E2D6;border-radius:16px;background:#FFFFFF;overflow:hidden}
.rung-why-head{
  width:100%;padding:14px 16px;background:transparent;border:0;font-family:inherit;
  text-align:left;cursor:pointer;display:flex;align-items:center;gap:10px;
  font-size:13.5px;font-weight:600;color:var(--ink)}
.rung-why-head span:first-child{flex:1;min-width:0}
.rung-why-caret{font-size:20px;line-height:1;color:var(--brand);transition:transform .18s ease}
.rung-why.open .rung-why-caret{transform:rotate(90deg)}
.rung-why-body{display:none;padding:0 16px 15px}
.rung-why.open .rung-why-body{display:block}
.rung-why-body p{margin:0 0 9px;font-size:12.5px;line-height:1.55;color:#4A5059}
.rung-why-body p:last-child{margin-bottom:0}
@media (prefers-reduced-motion: reduce){
  .rung .rcaret,.rung-why-caret{transition:none}
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .rung{background:#2B2620!important;border-color:#413A31!important}
  :root:not([data-theme="light"]) .rung-why{background:#2B2620;border-color:#413A31}
  :root:not([data-theme="light"]) .rung-why-body p{color:#BFC5CC}
}
:root[data-theme="dark"] .rung{background:#2B2620!important;border-color:#413A31!important}
:root[data-theme="dark"] .rung-why{background:#2B2620;border-color:#413A31}
:root[data-theme="dark"] .rung-why-body p{color:#BFC5CC}

/* ===================================================================
   THE LADDER — TYPE CONTRAST AND AIR                   Build 156
   -------------------------------------------------------------------
   Asked for: the titles a size up, the words a size down, and room
   above and below. The headers and the body were 15/12.5 — close
   enough that the card read as one block of text with a bigger number
   in it. 17/11.5 is a real step, and the amount goes with the name
   because the two are read as one line.

   Appended rather than edited into the 155 block above, which is how
   this file has worked since 45: each pass states what it changes and
   why, and the cascade settles it.

   Scrolling is free. Condensing a five-card list to save a screen that
   nobody was short of is a cost with no buyer.
   =================================================================== */
.rungs{gap:14px!important;margin-top:16px!important}

.rung .rtop{padding:18px 18px!important}
.rung .rn{font-size:17px!important;line-height:1.2!important}
.rung .rp{font-size:19px!important}
.rung .rbody{padding:0 18px 20px!important}
.rung .rsub{margin-top:8px!important;font-size:11.5px!important;line-height:1.5!important}
.rung .rsay{margin-top:11px!important;font-size:11.5px!important;line-height:1.6!important}
.rung .rhere{margin-top:13px!important}

.rung-why{margin-top:20px!important}
.rung-why-head{padding:17px 18px!important;font-size:15px!important;line-height:1.25!important}
.rung-why-body{padding:0 18px 19px!important}
.rung-why-body p{font-size:11.5px!important;line-height:1.65!important;margin-bottom:12px!important}
.rung-why-body p:last-child{margin-bottom:0!important}

/* ===================================================================
   BUILD 161 — the house fee acknowledgement
   -------------------------------------------------------------------
   Reuses the consent-note sheet wholesale; only the closing paragraph
   is new, and it is set apart because it is the one line on the sheet
   that is an offer rather than a condition.
   =================================================================== */
.consent-note-foot{
  margin-top:16px!important;padding-top:14px!important;
  border-top:1px solid var(--line)!important;
  font-size:12.5px!important;line-height:1.6!important;color:var(--muted)!important}
