/* ─────────────────────────────────────────────────────────────────────────
   THE PHONE, LESS CROWDED (UX audit 3, phone crowding 1 to 3; founder "add them" 2026-10-21).
   Phone width only (480px and under); the desktop and the tablet are untouched. Nothing is
   removed: what leaves the first screen is moved or folded, and opens where it stands.
   No lines, dark only.
   ───────────────────────────────────────────────────────────────────────── */

/* HER WORD 2026-12-03, every width: the top bar keeps "Check a decision" and the avatar. The bell,
   the float window and recalibrate are items in More (js/19b), on the desktop rail's More too. */
#content-wrap > header #ui-more-btn,
#content-wrap > header #float-btn,
#content-wrap > header #notif-bell,
#content-wrap > header #calibrate-btn{ display:none !important; }
#ui-more .ui-more__item.ui-more__item--phone{ display:flex; }
/* an unread note is one ice dot on the avatar at every width (css/shell.css, 2026-12-04) */

@media (max-width:480px){

  /* 3 · THE HEADER: the room's name, Check and the avatar. The bell and recalibrate stand in the
     avatar's menu (js/19b); More is the avatar now; Back steps aside on the tab rooms. */
  #content-wrap > header #ui-more-btn,
  #content-wrap > header #notif-bell,
  #content-wrap > header #calibrate-btn{ display:none !important; }
  #content-wrap > header #ui-back[data-tabroom]{ display:none !important; }
  #ui-more .ui-more__item.ui-more__item--phone{ display:flex; }
  #content-wrap > header #page-title{ white-space:nowrap; overflow:hidden; text-overflow:clip; min-width:0; flex:1 1 auto; }

  /* 2 · TODAY: one 16px gutter. The room had 28px of page, 4px of column and 24px inside each
     square; the page is 16px now and the squares keep their own inset only. */
  #view-brief{ padding-left:16px !important; padding-right:16px !important; }
  #view-brief .td.td--home{ padding-left:0 !important; padding-right:0 !important; }
  #view-brief .td--home .td-meaning .td-attn-wrap:not(#_),
  #view-brief .td--home .td-meaning #td-now.td-sec-card:not(#_),
  #view-brief .td--home .td-meaning .td-actions:not(#_),
  #view-brief .td--home .td-meaning .td-step-slot:not([hidden]):not(#_),
  #view-brief .td--home .td-rooms:not(#_){ padding-left:16px !important; padding-right:16px !important; }
  /* Your Areté: each row is its name and its arrow; the line under it waits in the room itself */
  #view-brief .td--home .td-room .td-room__v{ display:none !important; }
  #view-brief .td--home .td-room{ padding-left:0 !important; padding-right:0 !important; min-height:48px; align-items:center; }
  #view-brief .td--home .td-rooms__h{ margin-left:0 !important; }
  #view-brief .td--home .td-fw{ padding-left:0; padding-right:0; }

  /* 1 · CHECK A DECISION (js/22b): the decision, the four facts, how sure, the verdict, the blind
     spot by its name, Log it. The rest under one fold, "More on this call". A hard call's steps
     (js/83, data-steps) already show one step at a time, so the folds stand aside for them. */
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-goal,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-est,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-diff,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-want-wrap,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-case,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-check,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-sum,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-cube,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-model,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #int-habit,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #dc-whatif,
  #intercept-panel[data-ph]:not([data-more="1"]) .int-card:not([data-steps]) #live-sent-intercept-input{ display:none !important; }
  /* the blind spot, folded to its name: the rest of the card (its parts, its source, This applies)
     opens on "Read it". font-size 0 also folds the plain line that is a bare sentence; its
     max-width is in ch, which font-size 0 would make 0, so the fold sets it in the page's units */
  #intercept-panel[data-ph] .int-card:not([data-steps]) #int-bs:not([data-open]){ font-size:0 !important; max-width:min(100%, 36rem) !important; text-align:center; }
  #intercept-panel[data-ph] .int-card:not([data-steps]) #int-bs:not([data-open]) > :not(.int-bs__n){ display:none !important; }
  #intercept-panel[data-ph] .int-card:not([data-steps]) #int-bs:not([data-open]) > .int-bs__n{ font-size:var(--fs-16); margin-bottom:0; display:block; }
  #intercept-panel .int-card[data-steps] .int-ph-fold{ display:none !important; }
  #intercept-panel .int-ph-fold{ appearance:none; background:none; border:0; cursor:pointer; display:inline-flex; align-items:center;
    min-height:44px; padding:0 2px; margin:2px 0 0; color:var(--ice, #7fd3ff); font:400 var(--fs-14)/1.4 var(--f-body); }
  #intercept-panel .int-ph-fold:focus-visible{ outline:2px solid var(--focus, #7fd3ff); outline-offset:2px; }
  #intercept-panel #int-ph-more{ display:flex; margin:10px auto 4px; }
}
/* the folds exist on the phone only */
@media (min-width:481px){ #intercept-panel .int-ph-fold{ display:none !important; } }

/* ─────────────────────────────────────────────────────────────────────────
   THE PHONE FIT, 26 OCT (founder 2026-10-20: "visually too crowded" on her phone; the testers
   wait for it). Measured at 360x800 and 412x915 before a line was written: nothing scrolled
   sideways and every control already met 44px, so the crowding was inset on inset. Each fix
   below gives the words their width back. Phone width only (480px and under); desktop and
   tablet untouched. Nothing removed, no lines, dark only.
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width:480px){

  /* 1 · THE SIGN-UP QUESTIONS. The room behind showed through the 90% scrim, so every picture
     sat on top of a page of faint text. On the phone the questions stand on the plain ground,
     and the card gives its pictures 6px more each side. */
  #gate:not(.hidden){ background:var(--bg) !important; }
  #gate #ob-anchor, #gate #ob-diag, #gate #ob-bio, #gate #ob-arbit, #gate #ob-first{ padding:26px 16px 22px !important; }

  /* 2 · YOUR PROFILE (the full read). Every list was pushed in 20px for a bullet the page never
     draws, inside a card already 20px in: the read ran in a 286px column on a 360px phone.
     The numbered steps keep their number, in a narrower column. */
  .drv .drv-ul:not(.drv-checks){ padding-left:0; }
  .drv .drv-checks li{ padding-left:40px; }

  /* 3 · YOU. The cards keep their glass with 20px inside, and "Before you commit" no longer sits
     in a box inside the card (her rule, no boxes in boxes): it stands on the card's own glass. */
  #view-signature .yo-words:not(#_), #view-signature .yo-bs-card:not(#_){ padding-left:20px; padding-right:20px; }
  #view-signature .yo-check{ background:none; padding:0; border-radius:0; margin-top:16px; }

  /* 4 · DECIDE. The answers stood at the left of their column, so a long question ran into its
     answer ("yes or no? Saying yes"). The answers now end at the right edge, one under the other. */
  #view-simulator:not([data-ran]) .dc-facts:not(#_):not(#__) .dc-pill.sel{ justify-self:end; text-align:right; }
}
