/* app-look.css — APP LOOK step 1 (lane 1, 2026-11-07): the shared app primitives (app-look.js), from the approved
   artboards in approved-mockups\app-look\ (390×844).

   EVERY app-look rule below is keyed on html.app-look — the one switch point set by app-look.js (below 768px in a
   browser; the installed app below 1024px). Without that class (a desktop or tablet browser) nothing here applies, so
   the site is exactly as it was. The only rules that are not keyed on it are the sheet/dialog ones (.ax-sheet-root …):
   they only exist when a page opens one (the confirm, APP-LOOK.md B3, is the same component at every size; above the
   switch point it is a centred dialog).

   Colours: brand colours are var(--brand-*) (brand-tokens.css); the few tints the mockups use that are not brand
   colours are named once here (--ax-*), the same way other page sheets name theirs. */
:root {
  --ax-white: #FFFFFF;
  --ax-badge: #B4523A;            /* tab / bell badge, the raised Deploy action */
  --ax-teal-wash: #DDF0EC;
  --ax-amber-wash: #F7E9CF;
  --ax-amber-ink: #8A5A1E;
  --ax-line: rgba(var(--brand-navy-rgb), .1);
  --ax-soft: rgba(var(--brand-navy-rgb), .07);
  --ax-scrim: rgba(var(--brand-plum-deepest-rgb), .45);
  --ax-card-lift: 0 0 0 1px rgba(var(--brand-plum-deepest-rgb), .055), 0 6px 16px -10px rgba(var(--brand-plum-deepest-rgb), .18);
  --ax-head-h: 52px;
  --ax-tab-h: 58px;
  --ax-safe-t: env(safe-area-inset-top, 0px);
  --ax-safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---- the shell: the desktop rail, its drawer toggle and the desktop header give way to the app frame ---------------- */
html.app-look #admin-sidebar-mount, html.app-look #sidebar-mount,
html.app-look #admin-sidebar-toggle-btn, html.app-look #sidebar-toggle-btn,
html.app-look #admin-sidebar-backdrop, html.app-look #sidebar-backdrop,
html.app-look header.ah-top, html.app-look header.ps-top { display: none !important; }
html.app-look [data-app-hide] { display: none !important; }      /* a desktop-only part a page marks itself */
html.app-look .flex.h-screen.overflow-hidden { padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
html.app-look .flex.h-screen.overflow-hidden main {
  padding-top: calc(var(--ax-head-h) + var(--ax-safe-t));
  padding-bottom: calc(var(--ax-tab-h) + var(--ax-safe-b) + 16px);
  scroll-padding-top: calc(var(--ax-head-h) + var(--ax-safe-t) + 16px);
  scroll-padding-bottom: calc(var(--ax-tab-h) + var(--ax-safe-b) + 16px);
}

/* header: account bubble · ring logo · bell (three slots); slim centred title once the large title has scrolled away */
html.app-look .ax-head {
  position: fixed; z-index: 60; left: 0; right: 0; top: 0; box-sizing: border-box;
  height: calc(var(--ax-head-h) + var(--ax-safe-t)); padding: var(--ax-safe-t) 8px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: transparent; border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
html.app-look[data-app-side="client"] .ax-head, html.app-look[data-app-side="manager"] .ax-head { background: var(--brand-cream); }
html.app-look .ax-head.is-slim { background: rgba(var(--brand-cream-rgb), .96); border-bottom-color: rgba(var(--brand-navy-rgb), .12); }
html.app-look .ax-head-l { justify-self: start; display: flex; align-items: center; }
html.app-look .ax-head-r { justify-self: end; display: flex; align-items: center; }
html.app-look .ax-acct, html.app-look .ax-bell {
  width: 44px; height: 44px; border: 0; background: transparent; padding: 0; position: relative;
  display: flex; align-items: center; justify-content: center; color: var(--brand-navy); cursor: pointer;
}
html.app-look .ax-acct-b {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-navy); color: var(--brand-cream);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
html.app-look[data-app-side="client"] .ax-acct-b { background: var(--brand-terracotta-wash); color: var(--brand-plum-deepest); }
html.app-look .ax-back {
  height: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  color: var(--brand-terracotta-deep); font-size: 16px; font-weight: 600; text-decoration: none;
}
html.app-look .ax-back[hidden], html.app-look .ax-acct[hidden] { display: none; }
html.app-look .ax-logo { display: flex; align-items: center; gap: 8px; color: var(--brand-plum-deepest); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; min-height: 44px; }
html.app-look .ax-logo .ax-ring-a { stroke: var(--brand-terracotta); }
html.app-look .ax-logo .ax-ring-b { stroke: var(--brand-plum-deepest); }
html.app-look .ax-slim-t { display: none; font-size: 16px; font-weight: 600; }
html.app-look .ax-head.is-slim .ax-logo svg, html.app-look .ax-head.is-slim .ax-logo-t { display: none; }
html.app-look .ax-head.is-slim .ax-slim-t { display: inline; }
html.app-look .ax-badge {
  position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  background: var(--ax-badge); color: var(--ax-white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand-cream);
}
html.app-look .ax-dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--ax-badge); border: 2px solid var(--brand-cream); }
html.app-look .ax-badge[hidden], html.app-look .ax-dot[hidden] { display: none; }

/* the large page title (+ sub-line, + the live clock line), inside <main> so it scrolls away */
.ax-ltitle { display: none; }
html.app-look .ax-ltitle { display: block; padding: 8px 20px 4px; }
html.app-look .ax-lt { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--brand-plum-deepest); }
html.app-look .ax-lsub, html.app-look .ax-lclock { margin-top: 6px; font-size: 13.5px; color: var(--brand-muted); }
html.app-look .ax-lsub:empty, html.app-look .ax-lclock:empty { display: none; }
html.app-look body:has(.ax-back:not([hidden])) main .ax-lt { font-size: 30px; }

/* the bottom tab bar (5 slots, an optional raised centre action); cream on the client side, dark plum for the manager */
html.app-look .ax-tabs {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; box-sizing: border-box;
  height: calc(var(--ax-tab-h) + var(--ax-safe-b)); padding: 6px 8px var(--ax-safe-b);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start;
}
html.app-look .ax-tabs-client { background: rgba(var(--brand-cream-rgb), .96); border-top: 1px solid rgba(var(--brand-navy-rgb), .12); }
html.app-look .ax-tabs-manager { background: var(--brand-plum-deepest); }
html.app-look .ax-tab {
  height: 52px; min-width: 44px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; padding: 0; text-decoration: none; font: inherit; font-size: 11px; font-weight: 500; cursor: pointer;
}
html.app-look .ax-tabs-client .ax-tab { color: var(--brand-muted); }
html.app-look .ax-tabs-client .ax-tab.is-on { color: var(--brand-plum-deepest); font-weight: 700; }
html.app-look .ax-tabs-manager .ax-tab { color: rgba(var(--brand-cream-rgb), .7); }
html.app-look .ax-tabs-manager .ax-tab.is-on { color: var(--brand-cream); font-weight: 700; }
html.app-look .ax-tab > svg.im { width: 24px; height: 24px; }
html.app-look .ax-tab .ax-badge { top: 2px; right: auto; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; }
html.app-look .ax-tabs-manager .ax-tab .ax-badge, html.app-look .ax-tabs-manager .ax-tab .ax-dot { border-color: var(--brand-plum-deepest); }
html.app-look .ax-tab .ax-dot { top: 6px; right: auto; left: calc(50% + 8px); }
html.app-look .ax-tab.is-raised { justify-content: flex-end; color: var(--brand-terracotta-deep); font-weight: 700; }
html.app-look .ax-raise {
  position: absolute; top: -22px; left: 50%; margin-left: -27px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--ax-badge); color: var(--ax-white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(var(--brand-terracotta-deep-rgb), .8), 0 0 0 5px var(--brand-cream);
}
html.app-look .ax-raise > svg.im { width: 24px; height: 24px; --im-accent: var(--ax-white); }

/* toasts sit above the tab bar (screen 25); the offline bar under the header, full width with 20px gutters */
html.app-look .im-msgs { left: 12px; right: 12px; width: auto; bottom: calc(var(--ax-tab-h) + var(--ax-safe-b) + 12px) !important; }
html.app-look .im-net.is-on { position: fixed; z-index: 59; left: 12px; right: 12px; top: calc(var(--ax-head-h) + var(--ax-safe-t) + 2px); margin: 0; }

/* the shared error card (supabase-data.js renderAsyncBundle) in the app look: white card, terracotta tile, dark Try Again */
html.app-look main div.rounded-xl.border-red-200.bg-red-50 {
  background: var(--ax-white); border: 0; border-radius: 22px; box-shadow: var(--ax-card-lift); padding: 16px;
}
html.app-look main div.rounded-xl.border-red-200.bg-red-50 > p:first-child { color: var(--brand-plum-deepest); font-size: 15.5px; font-weight: 600; }
html.app-look main div.rounded-xl.border-red-200.bg-red-50 > p:nth-child(2) { color: var(--brand-muted); font-size: 13.5px; }
html.app-look main div.rounded-xl.border-red-200.bg-red-50 > [data-retry] {
  width: 100%; height: 44px; justify-content: center; border-radius: 999px; background: var(--brand-plum-deepest); color: var(--brand-cream); font-size: 15.5px; font-weight: 600;
}
/* skeletons: the soft shimmer of screen 25 */
html.app-look main .animate-pulse .bg-slate-200, html.app-look main .animate-pulse.bg-slate-200 { background: rgba(var(--brand-navy-rgb), .1); border-radius: 8px; }

/* a page's sticky action bar: pinned above the tab bar, with the home indicator's safe area */
html.app-look .ax-sticky {
  position: fixed; z-index: 58; left: 0; right: 0; bottom: calc(var(--ax-tab-h) + var(--ax-safe-b));
  padding: 10px 20px; background: rgba(var(--brand-cream-rgb), .96); border-top: 1px solid rgba(var(--brand-navy-rgb), .12);
  display: flex; gap: 10px;
}
html.app-look body:has(.ax-sticky) .flex.h-screen.overflow-hidden main { padding-bottom: calc(var(--ax-tab-h) + var(--ax-safe-b) + 92px); }

/* ---- sheets / dialogs (app-look.js sheet(); not keyed on the switch: a dialog above it) ----------------------------- */
.ax-sheet-root { position: fixed; inset: 0; z-index: 1100; }
.ax-scrim { position: absolute; inset: 0; background: var(--ax-scrim); opacity: 0; transition: opacity .2s; }
.ax-sheet-root.is-in .ax-scrim { opacity: 1; }
.ax-sheet {
  position: absolute; box-sizing: border-box; background: var(--ax-white); color: var(--brand-plum-deepest);
  font-family: inherit; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; outline: none;
  box-shadow: 0 -20px 40px -24px rgba(var(--brand-plum-deepest-rgb), .5); overscroll-behavior: contain;
}
.ax-sheet-root.is-sheet .ax-sheet {
  left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 48px - var(--ax-safe-t)); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(16px + var(--ax-safe-b)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.ax-sheet-root.is-sheet .ax-sheet.is-full { top: calc(48px + var(--ax-safe-t)); }
.ax-sheet-root.is-sheet.is-in .ax-sheet { transform: none; }
.ax-sheet-root.is-dialog { display: flex; align-items: center; justify-content: center; padding: 24px; }
.ax-sheet-root.is-dialog .ax-sheet {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 48px); border-radius: 24px; padding: 20px 22px 22px;
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
}
.ax-sheet-root.is-dialog.is-in .ax-sheet { opacity: 1; transform: none; }
.ax-sheet-root.is-leaving .ax-scrim { opacity: 0; }
.ax-sheet-root.is-leaving.is-sheet .ax-sheet { transform: translateY(100%); }
.ax-sheet-root.is-leaving.is-dialog .ax-sheet { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ax-sheet, .ax-scrim { transition-duration: .12s !important; } .ax-sheet-root.is-sheet .ax-sheet { transform: none; opacity: 0; } .ax-sheet-root.is-sheet.is-in .ax-sheet { opacity: 1; } }
.ax-grab { display: flex; justify-content: center; padding: 4px 0 10px; }
.ax-grab::before { content: ""; width: 40px; height: 5px; border-radius: 999px; background: rgba(var(--brand-navy-rgb), .22); }
.ax-sheet-head { display: flex; align-items: center; gap: 8px; touch-action: none; }
.ax-sheet-title { margin: 0; flex: 1; min-width: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ax-circle {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--ax-soft); color: var(--brand-navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.ax-circle:focus-visible, .ax-btn:focus-visible, .ax-row:focus-visible, .ax-rowc:focus-visible, .ax-tab:focus-visible, .ax-chip:focus-visible { outline: 2.5px solid var(--brand-navy); outline-offset: 2px; }
.ax-sheet-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; margin: 0 -20px; padding: 0 20px; }
.ax-sheet-foot { flex: none; padding-top: 16px; }
.ax-note { margin: 12px 0 0; font-size: 13.5px; color: var(--brand-muted); line-height: 1.5; }
.ax-err { margin: 12px 0 0; font-size: 13.5px; color: var(--brand-terracotta-deep); font-weight: 600; }

/* key/value rows (detail sheet, confirm summary) */
.ax-kv { margin-top: 8px; }
.ax-kv.is-boxed { margin-top: 10px; padding: 4px 14px; border-radius: 18px; background: var(--brand-cream); }
.ax-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--ax-line); font-size: 14.5px; }
.ax-kv-row:last-child { border-bottom: 0; }
.ax-kv-k { color: var(--brand-muted); }
.ax-kv-v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* pill buttons (buttons_ledger_v1): soft / dark / terracotta; a pair is Cancel 1fr + action 1.6fr */
.ax-btn {
  height: 50px; min-height: 44px; border-radius: 999px; border: 0; padding: 0 18px; font: inherit; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; width: 100%;
}
.ax-btn-soft { background: var(--ax-soft); color: var(--brand-plum-deepest); }
.ax-btn-dark { background: var(--brand-plum-deepest); color: var(--brand-cream); }
.ax-btn-terra { background: var(--ax-badge); color: var(--ax-white); }
.ax-btn[disabled] { cursor: default; opacity: .72; }
.ax-btn.is-busy { opacity: .85; }
.ax-btnpair { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.ax-btnstack { display: grid; gap: 10px; }

/* list rows (action menu, sort sheet, More) */
.ax-list { margin-top: 8px; }
.ax-row {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0; border: 0; border-bottom: 1px solid var(--ax-line);
  background: transparent; color: var(--brand-plum-deepest); font: inherit; text-align: left; cursor: pointer;
}
.ax-row:last-of-type { border-bottom: 0; }
.ax-row-tile { width: 40px; height: 40px; border-radius: 13px; flex: none; }
.ax-row-tx { flex: 1; min-width: 0; }
.ax-row-tx b { display: block; font-size: 15.5px; font-weight: 500; }
.ax-row-tx span { display: block; font-size: 12.5px; color: var(--brand-muted); margin-top: 2px; }
.ax-row-v { flex: none; font-size: 13.5px; font-weight: 600; color: var(--brand-muted); }
.ax-row.is-danger b { color: var(--brand-terracotta-deep); }
.ax-sort-row.is-on .ax-row-tx b { font-weight: 700; }
.ax-sort-dir { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand-terracotta-deep); }

/* More: section headings, a live dot */
.ax-list-h { margin: 18px 0 2px; font-size: 13px; font-weight: 600; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .06em; }
.ax-list-h:first-child { margin-top: 6px; }
.ax-live { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-teal); }
a.ax-row { text-decoration: none; }
a.ax-row > svg { flex: none; color: var(--brand-muted); }
.ax-row.is-on { background: rgba(var(--brand-navy-rgb), .04); }
html.app-look .ax-lchip { display: inline-flex; vertical-align: middle; margin-left: 10px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ax-soft); color: var(--brand-muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
html.app-look .ax-lchip.is-live { background: rgba(var(--brand-teal-rgb), .14); color: var(--brand-teal-deep); }

/* the sort chip (shown only in the app look; the table's own head is hidden there) */
.ax-chip { display: none; }
html.app-look .ax-chip {
  /* small-button-exempt: drawn 36px (screen 31); its ::after gives a 44px tap area */
  flex: none; height: 36px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand-plum-deepest); color: var(--brand-cream); font: inherit; font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
html.app-look .ax-chip::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }   /* 44px tap area */
html.app-look .ax-chip[hidden] { display: none; }
.ax-menu-btn { display: none; }
html.app-look .ax-menu-btn { display: inline-flex; }

/* table → rows (L1 title + amount, L2 sub-line, L3 extra facts) */
.ax-rows { display: none; }
html.app-look .ax-rows { display: block; background: var(--ax-white); border-radius: 22px; box-shadow: var(--ax-card-lift); padding: 2px 16px; }
html.app-look .ax-rows:empty { display: none; }
html.app-look table.ax-rows-src { display: none; }
html.app-look .ax-rowc {
  width: 100%; display: block; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ax-line); background: transparent;
  color: var(--brand-plum-deepest); font: inherit; text-align: left; cursor: pointer; min-height: 60px;
}
html.app-look .ax-rowc:last-child { border-bottom: 0; }
html.app-look .ax-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html.app-look .ax-l1 b { font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
html.app-look .ax-amt { flex: none; font-size: 15px; font-weight: 600; }
html.app-look .ax-l2 { display: block; margin-top: 2px; font-size: 12.5px; color: var(--brand-muted); }
html.app-look .ax-l3 { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--brand-plum-deepest); }
html.app-look .ax-l3i i { font-style: normal; color: var(--brand-muted); }
html.app-look .ax-rows-note { padding: 14px 0; font-size: 14px; color: var(--brand-muted); }

/* the empty state (screen 25) */
.ax-empty { text-align: center; padding: 20px; background: var(--ax-white); border-radius: 22px; box-shadow: var(--ax-card-lift); }
.ax-empty-tile { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto; }
.ax-empty b { display: block; margin-top: 12px; font-size: 17px; font-weight: 600; }
.ax-empty p { margin: 6px 0 14px; font-size: 14px; color: var(--brand-muted); line-height: 1.5; }
.ax-empty .ax-btn { height: 44px; }

/* the frame parts exist only in the app look */
.ax-head, .ax-tabs { display: none; }
html.app-look .ax-head { display: grid; }
html.app-look .ax-tabs { display: grid; }

/* the manager account sheet, the bell sheet (B1) */
.ax-tool { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--brand-cream); font-size: 13.5px; line-height: 1.45; color: var(--brand-navy); }
.ax-tool svg.im { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ax-me { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ax-me .ax-acct-b { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-navy); color: var(--brand-cream); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-me b { display: block; font-size: 15.5px; }
.ax-me b + span { display: block; font-size: 13px; color: var(--brand-muted); overflow-wrap: anywhere; }
.ax-row.is-static { cursor: default; }
.ax-pill { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.ax-pill.is-teal { background: var(--ax-teal-wash); color: var(--brand-teal-deep); }
.ax-pill.is-amber { background: var(--ax-amber-wash); color: var(--ax-amber-ink); }
.ax-bell-sheet .ax-perm { margin-top: 14px; }
.ax-switchrow { margin-top: 6px; border-bottom: 0; }
.ax-switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(var(--brand-navy-rgb), .22); position: relative; cursor: pointer; margin: 0; transition: background-color .15s; }
.ax-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ax-white); box-shadow: 0 1px 3px rgba(var(--brand-plum-deepest-rgb), .3); transition: transform .15s; }
.ax-switch:checked { background: var(--brand-teal-deep); }
.ax-switch:checked::after { transform: translateX(20px); }
.ax-switch:focus-visible { outline: 2.5px solid var(--brand-navy); outline-offset: 2px; }
.ax-btnpair.is-even { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.ax-btnpair.is-even .ax-btn { height: 44px; text-decoration: none; font-size: 14.5px; }

/* the sort bar app-look.js puts before a table head built with the shared sort buttons */
.ax-sortbar { display: none; }
html.app-look .ax-sortbar { display: flex; justify-content: flex-start; padding: 8px 0 10px; }

/* the content editors' action rows (Help article, Blog post) become the sticky action bar on phones, so Save draft and
   Publish stay in reach while the long form scrolls */
html.app-look .hl-acts, html.app-look .bl-acts {
  position: fixed; z-index: 58; left: 0; right: 0; bottom: calc(var(--ax-tab-h) + var(--ax-safe-b)); margin: 0;
  padding: 10px 16px; background: rgba(var(--brand-cream-rgb), .96); border-top: 1px solid rgba(var(--brand-navy-rgb), .12);
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
}
html.app-look .hl-acts > *, html.app-look .bl-acts > * { flex: 1 0 auto; }
html.app-look body:has(.hl-acts, .bl-acts) .flex.h-screen.overflow-hidden main { padding-bottom: calc(var(--ax-tab-h) + var(--ax-safe-b) + 96px); }

/* Columns phones can't reach (APP-LOOK.md): short facts come back as small lines under the row; held-back reasons are
   written out (there is no hover on a phone). Desktop is unchanged: the .tx-why / .st-why lines exist only here. */
.tx-why, .st-why { display: none; }
html.app-look .tx-why, html.app-look .st-why { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--brand-muted); }
html.app-look .cl-tr > :nth-child(3), html.app-look .cl-tr > :nth-child(5), html.app-look .cl-tr > :nth-child(6) {
  display: block; grid-column: 2 / 4; justify-self: start; text-align: left; font-size: 12.5px; color: var(--brand-muted);
}
html.app-look .cl-tr > .cl-una::before { content: "Unallocated "; }
html.app-look .cl-tr > :nth-child(6)::before { content: "Pending requests "; }
html.app-look body.sm-page .st-row > .st-pm { display: block; grid-column: 2 / 4; font-size: 12.5px; color: var(--brand-muted); }
html.app-look body.sm-page .st-row > .st-pm::before { content: "Portfolio manager "; }
html.app-look body.tx-page .tx-row > .tx-rul, html.app-look body.tx-page .tx-row > .tx-num.tx-inc, html.app-look body.tx-page .tx-row > .tx-num.tx-fee {
  display: block; grid-column: 1 / -1; font-size: 12.5px; color: var(--brand-muted);
}
html.app-look body.tx-page .tx-row > .tx-rul::before { content: "Prepared under "; }
html.app-look body.tx-page .tx-row > .tx-inc::before { content: "Income "; }
html.app-look body.tx-page .tx-row > .tx-fee::before { content: "Fees "; }
html.app-look .doc-tr > .doc-sub > .doc-dir { display: inline-flex; grid-column: 1; font-size: 12px; color: var(--brand-muted); }
html.app-look .bl-tr > *:nth-child(3), html.app-look .bl-tr > *:nth-child(5), html.app-look .bl-tr > *:nth-child(6), html.app-look .bl-tr > *:nth-child(7) {
  display: block; grid-column: 2 / 4; font-size: 12.5px; color: var(--brand-muted);
}
html.app-look #inbox-notify-btn, html.app-look #inbox-me { display: none !important; }

/* The chat widget follows the app-look switch point (Q2-AL-3): on the app's pages it sits above the tab bar; the field is
   16px so iOS does not zoom the page when it takes focus. */
html.app-look #chat-widget-input { font-size: 16px; }
html.app-look[data-app-side="client"] #chat-widget-root { right: 16px; bottom: calc(var(--ax-tab-h) + var(--ax-safe-b) + 12px); }

/* the soft icon tile used by app-look.js rows and empty states (its own, so a page without im-tile.css still has it) */
.ax-row-tile, .ax-empty-tile { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-terracotta-wash); color: var(--brand-plum-deepest); }
.ax-row-tile svg.im { width: 20px; height: 20px; }
.ax-empty-tile svg.im { width: 24px; height: 24px; }

/* ---- APP LOOK FIX (APP-LOOK-FIX.md, 7 Nov): F1–F6 in the installed app. Everything here is under html.app-look. --------- */
:root { --ax-gut: 20px; --ax-rise: 22px; }   /* one gutter for title, date line, subtitle, cards and rows (the mockups' 20px) */
/* F2: one left/right edge. Page rules set main's padding with an id or a page class ("#cl-main { padding: 30px 36px … }"),
   which out-specified the frame and put the large title (frame padding + main padding) ~66px in while cards sat at ~33px.
   The frame owns main's padding now; the page wrappers carry no side padding of their own. */
html.app-look .flex.h-screen.overflow-hidden main:not(.ibx-main) {
  padding-left: var(--ax-gut) !important; padding-right: var(--ax-gut) !important;
  padding-top: calc(var(--ax-head-h) + var(--ax-safe-t) + 4px) !important;
  /* F3: the last element clears the bar: bar height + the raised button's rise + safe area + 24px */
  padding-bottom: calc(var(--ax-tab-h) + var(--ax-rise) + var(--ax-safe-b) + 24px) !important;
}
html.app-look body:has(.ax-sticky) .flex.h-screen.overflow-hidden main:not(.ibx-main),
html.app-look body:has(.hl-acts, .bl-acts) .flex.h-screen.overflow-hidden main:not(.ibx-main) {
  padding-bottom: calc(var(--ax-tab-h) + var(--ax-rise) + var(--ax-safe-b) + 100px) !important;
}
html.app-look main > [class*="-wrap"], html.app-look main > .mx-auto, html.app-look main > .max-w-4xl {
  padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; max-width: none !important;
}
html.app-look .ax-ltitle { padding: 8px 0 12px; }
html.app-look .ax-head { padding-left: calc(var(--ax-gut) - 4px); padding-right: calc(var(--ax-gut) - 4px); }   /* bubble and bell on the gutter */
/* F1: the page's own top heading, when it repeats the frame's title, is hidden; a greeting stays, as the subtitle line */
html.app-look main .ax-dup { display: none !important; }
html.app-look main .ax-greet { font-size: 16px !important; font-weight: 600 !important; line-height: 1.35; margin: 0; color: var(--brand-plum-deepest); }
html.app-look main .ax-greet + p, html.app-look main .ax-greet ~ p.mw-editorial { margin-top: 2px; }
/* F3: the bar is solid (never see-through) with its hairline; the chat button floats above it, never over it */
html.app-look .ax-tabs-client { background: var(--brand-cream); border-top: 1px solid rgba(var(--brand-navy-rgb), .12); }
html.app-look .ax-tabs-manager { background: var(--brand-plum-deepest); border-top: 1px solid rgba(var(--brand-cream-rgb), .12); }
html.app-look #chat-widget-root { bottom: calc(var(--ax-tab-h) + var(--ax-rise) + var(--ax-safe-b) + 12px) !important; }
/* F4: Bricolage on every piece of text in the app. The Dashboard's summary line is the site's editorial line
   (.mw-editorial = Newsreader, a serif); in the app it takes the frame's face like every other subtitle. */
html.app-look .mw-editorial, html.app-look .ax-head, html.app-look .ax-tabs, html.app-look main {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* F5: the account bubble's letter (or person icon) */
html.app-look .ax-acct-b { font-size: 15px; }
html.app-look .ax-acct-b > svg.im { width: 20px; height: 20px; }
/* F6: a sheet's backdrop covers the whole screen, the top safe area (status bar strip) included */
.ax-sheet-root { top: calc(-1 * env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
html.app-look .ax-sheet-root .ax-scrim { top: calc(-1 * env(safe-area-inset-top, 0px)); }

/* NEXT BLOCK (installed app, manager More and every list sheet): one row height, no divider into a group heading or past
   the last row, one rhythm for group headings. (".ax-row:last-of-type" matched by tag, so the last row of each More group
   kept its line straight into the next heading.) */
.ax-row { min-height: 56px; }
.ax-row:last-child, .ax-row:has(+ .ax-list-h) { border-bottom: 0; }
.ax-list-h { margin: 24px 0 6px; line-height: 1.2; }
.ax-list-h:first-child { margin-top: 4px; }
