
  /* Every piece of app chrome starts hidden and is switched on ONLY under html.in-app.
     The markup ships on every page (it has to: a page cached for browsers is the same
     page the app receives), so anything missed here would render as stray content on
     the website itself. */
  .brx-tabbar, .brx-appbar, .brx-drawer, .brx-scrim, .brx-sheet, .brx-fab, .brx-imp { display: none; }

  html.in-app {
    /* How far the system bars intrude. env() is the browser's own answer; --brx-inset-*
       is what the native shell measures and injects (Android 15+ forces edge-to-edge and
       older WebViews report nothing, so the larger of the two is the honest number). */
    --brx-safe-top: max(env(safe-area-inset-top, 0px), var(--brx-inset-top, 0px));
    --brx-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--brx-inset-bottom, 0px));

    --brx-bar: 56px;
    --brx-tabs: 58px;
    --brx-brand: #339966;
    --brx-brand-dark: #2b8257;
    --brx-surface: rgb(var(--white-rgb, 255 255 255));
    --brx-ground: rgb(var(--slate-100-rgb, 241 245 249));
    --brx-ink: #0f172a;
    --brx-ink-soft: #64748b;
    --brx-line: rgb(var(--slate-200-rgb, 226 232 240));
  }
  @media (prefers-color-scheme: dark) {
    html.in-app {
      --brx-surface: #0f172a;
      --brx-ground: #0b1220;
      --brx-ink: rgb(var(--slate-200-rgb, 226 232 240));
      --brx-ink-soft: #94a3b8;
      --brx-line: #1e293b;
    }
  }

  /* ---- Strip the website ------------------------------------------------------- */
  html.in-app body > header,
  html.in-app body > footer { display: none !important; }
  html.in-app .js-app-hide,
  html.in-app [data-app-hide] { display: none !important; }

  /* Sticky page furniture was pinned below the web header. Re-pin under the app bar. */
  html.in-app .sticky.top-16,
  html.in-app .sticky.top-14 { top: calc(var(--brx-bar) + var(--brx-safe-top)) !important; }
  html.in-app .filter-panel {
    top: calc(var(--brx-bar) + var(--brx-safe-top) + 4px) !important;
    height: calc(100dvh - var(--brx-bar) - var(--brx-safe-top) - 4px) !important;
  }

  html.in-app body {
    background: var(--brx-ground);
    overscroll-behavior-y: contain;
    -webkit-touch-callout: none;
    padding-top: calc(var(--brx-bar) + var(--brx-safe-top));
  }
  html.in-app body > main {
    padding-bottom: calc(var(--brx-tabs) + 12px + var(--brx-safe-bottom)) !important;
  }
  /* Chrome is not text: only content stays selectable. */
  html.in-app body *:not(input):not(textarea):not([contenteditable]):not(.selectable) {
    -webkit-user-select: none; user-select: none;
  }

  /* ---- Top app bar -------------------------------------------------------------- */
  html.in-app .brx-imp { display: flex; align-items: center; }
  html.in-app .brx-imp button { color: #fff; }
  html.in-app .brx-imp button:hover { background: rgba(255,255,255,.18); }
  /* The popover hangs out of the bar, so the bar must not clip it. */
  html.in-app .brx-appbar { overflow: visible; }
  /* ...and it must sit under nothing: the bar itself is fixed and stacked. */
  html.in-app .brx-imp .absolute { z-index: 80; }

  html.in-app .brx-appbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 61;
    display: flex; align-items: center;
    height: calc(var(--brx-bar) + var(--brx-safe-top));
    padding: var(--brx-safe-top) 6px 0;
    background: var(--brx-brand); color: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.18);
  }
  .brx-iconbtn {
    flex: 0 0 auto; width: 44px; height: 44px; border: 0; padding: 0; background: none;
    color: inherit; display: flex; align-items: center; justify-content: center;
    border-radius: 999px; cursor: pointer; position: relative;
    -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s;
  }
  .brx-iconbtn:active { background: rgba(255,255,255,.18); transform: scale(.94); }
  .brx-iconbtn svg { width: 24px; height: 24px; }
  .brx-appbar-title {
    flex: 1 1 auto; min-width: 0; padding: 0 6px;
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* Back replaces the drawer control once there is somewhere to go back to. */
  .brx-appbar .brx-back { display: none; }
  html.in-app .brx-appbar[data-back="1"] .brx-back { display: flex; }
  html.in-app .brx-appbar[data-back="1"] .brx-menu { display: none; }

  /* Count bubble, shared by the bar and the tabs. NOT `.brx-dot`: that is the home and landing
     pages' green "live" dot, and this rule (loaded on every page) pulled it out of the heading
     and painted it red over the last letters (tester #205). */
  .brx-pip {
    position: absolute; top: 6px; right: 6px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: #e11d48; color: #fff; font: 700 10px/17px system-ui, sans-serif;
    text-align: center; box-shadow: 0 0 0 2px var(--brx-brand);
  }
  .brx-tab .brx-pip { top: 4px; right: calc(50% - 20px); box-shadow: 0 0 0 2px var(--brx-surface); }
  .brx-pip[hidden] { display: none; }

  /* ---- Navigation progress ------------------------------------------------------
     A full page load between screens is what makes a WebView feel like a browser. The
     bar starts on tap and dies with the page, so a slow screen shows motion. */
  .brx-progress {
    position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
    background: rgb(var(--white-rgb, 255 255 255) / .9); pointer-events: none;
  }
  html.in-app .brx-progress.is-going { width: 90%; transition: width 6s cubic-bezier(.05,.7,.1,1); }

  /* ---- Bottom tabs -------------------------------------------------------------- */
  html.in-app .brx-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: stretch;
    background: var(--brx-surface); border-top: 1px solid var(--brx-line);
    padding-bottom: var(--brx-safe-bottom);
  }
  .brx-tab {
    flex: 1 1 0; min-width: 0; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 7px 2px 6px; min-height: var(--brx-tabs);
    color: var(--brx-ink-soft); font-size: 10.5px; font-weight: 600;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: color .15s, transform .1s;
  }
  .brx-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brx-tab:active { transform: scale(.93); }
  .brx-tab svg { width: 23px; height: 23px; }
  .brx-tab.is-active { color: var(--brx-brand); }
  /* The active tab is marked above the icon as well as by colour, so it reads at a
     glance and does not rely on a green that dark mode mutes. */
  .brx-tab.is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brx-brand);
  }
  @media (prefers-color-scheme: dark) { .brx-tab.is-active { color: #34d399; } .brx-tab.is-active::before { background: #34d399; } }

  /* ---- Drawer ------------------------------------------------------------------- */
  html.in-app .brx-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 79; background: rgba(2,6,23,.45);
    opacity: 0; visibility: hidden; transition: opacity .2s;
  }
  html.in-app .brx-scrim.is-open { opacity: 1; visibility: visible; }
  html.in-app .brx-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 80;
    width: min(86vw, 340px);
    display: flex; flex-direction: column;
    background: var(--brx-surface); color: var(--brx-ink);
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.2,.8,.2,1);
    box-shadow: 2px 0 24px rgba(2,6,23,.28);
  }
  html.in-app .brx-drawer.is-open { transform: translateX(0); }

  .brx-drawer-head {
    flex: 0 0 auto; background: var(--brx-brand); color: #fff;
    padding: calc(var(--brx-safe-top) + 20px) 20px 18px;
  }
  .brx-avatar {
    width: 54px; height: 54px; border-radius: 999px; object-fit: cover;
    background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    font: 700 20px system-ui, sans-serif; color: #fff;
  }
  .brx-who { margin-top: 12px; font-size: 16px; font-weight: 700; }
  .brx-who-sub { font-size: 12.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brx-role {
    display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 999px;
    background: rgba(255,255,255,.2); font-size: 11px; font-weight: 600; letter-spacing: .02em;
  }

  .brx-drawer-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .brx-group {
    padding: 16px 20px 6px; font: 700 11px system-ui, sans-serif;
    text-transform: uppercase; letter-spacing: .07em; color: var(--brx-ink-soft);
  }
  .brx-link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px; color: var(--brx-ink); text-decoration: none; font-size: 15px;
    -webkit-tap-highlight-color: transparent;
  }
  .brx-link:active { background: var(--brx-ground); }
  .brx-link.is-active { color: var(--brx-brand); font-weight: 600; background: var(--brx-ground); }
  .brx-link .brx-count {
    min-width: 20px; padding: 0 6px; border-radius: 999px; background: #e11d48; color: #fff;
    font: 700 11px/20px system-ui, sans-serif; text-align: center;
  }
  .brx-signout {
    width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--brx-line);
    background: transparent; color: var(--brx-ink-soft); font: 600 15px system-ui, sans-serif;
  }
  .brx-signout:active { background: var(--brx-ground); }

  /* ---- Account sheet -------------------------------------------------------------
     Behind the avatar, where people already look for it. The drawer is for work, this
     is for the account: profile, settings, wallet, notification preferences, sign out. */
  html.in-app .brx-sheet {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--brx-surface); color: var(--brx-ink);
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(12px + var(--brx-safe-bottom));
    transform: translateY(101%); transition: transform .24s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -6px 28px rgba(2,6,23,.28);
    max-height: 82dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  html.in-app .brx-sheet.is-open { transform: translateY(0); }
  .brx-sheet-grip {
    width: 38px; height: 4px; border-radius: 999px; background: var(--brx-line);
    margin: 10px auto 4px;
  }
  .brx-sheet-id {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px 16px;
    border-bottom: 1px solid var(--brx-line);
  }
  .brx-sheet-id .brx-avatar {
    width: 46px; height: 46px; border: 0; background: var(--brx-brand); flex: 0 0 auto; font-size: 18px;
  }
  .brx-sheet-name { font-size: 15.5px; font-weight: 700; }
  .brx-sheet-mail { font-size: 12.5px; color: var(--brx-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brx-sheet-link {
    display: flex; align-items: center; gap: 14px; padding: 14px 20px;
    color: var(--brx-ink); text-decoration: none; font-size: 15px;
  }
  .brx-sheet-link:active { background: var(--brx-ground); }
  .brx-sheet-link svg { width: 21px; height: 21px; color: var(--brx-ink-soft); flex: 0 0 auto; }
  .brx-sheet-out { padding: 8px 20px 4px; border-top: 1px solid var(--brx-line); margin-top: 6px; }

  /* ---- Page-level navigation the app chrome replaces ------------------------------
     Breadcrumbs are the back button, and the workspace bar is the drawer. Leaving them
     on the page is what makes an app look like a website: two navigations, one of them
     scrolling away with the content. In-page tabs and the settings sub-nav STAY — they
     have no app-chrome equivalent, and hiding them would strand people. */
  html.in-app nav[aria-label="Breadcrumb"] { display: none !important; }

  /* ---- Floating primary action --------------------------------------------------- */
  html.in-app .brx-fab {
    position: fixed; right: 16px; z-index: 59;
    bottom: calc(var(--brx-tabs) + 16px + var(--brx-safe-bottom));
    display: inline-flex; align-items: center; gap: 8px;
    height: 50px; padding: 0 20px; border-radius: 999px;
    background: var(--brx-brand); color: #fff; text-decoration: none;
    font: 600 15px system-ui, sans-serif;
    box-shadow: 0 6px 18px rgba(51,153,102,.42);
    -webkit-tap-highlight-color: transparent; transition: transform .1s;
  }
  .brx-fab:active { transform: scale(.95); background: var(--brx-brand-dark); }
  .brx-fab svg { width: 20px; height: 20px; }

  /* Cross-document page transitions were opted into here with `@view-transition`. REMOVED
     2026-08-16: an at-rule cannot be scoped by a selector, so it applied to the website too,
     not just the app, and every interrupted navigation logged "AbortError: Transition was
     skipped" in the console. Harmless but noisy, and the app is not worth spamming the
     browser's console for. Reinstate only if it can be limited to the app. */

  /* A job page's fixed apply bar would otherwise sit on top of the tab bar. Lift it clear. */
  html.in-app .brx-applybar { bottom: calc(var(--brx-tabs) + var(--brx-safe-bottom)); }

  /* The support-chat launcher pins itself to the bottom-right with an inline style, which
     in the app is where the tab bar is and, on pages that have one, where the FAB already
     sits. Lift it above both (hence !important: an inline style outranks a class rule).
     The FAB is 50px tall, so 50 + 12 of clearance puts the chat bubble directly above it
     instead of on top of it. */
  html.in-app #support-chat-widget {
    bottom: calc(var(--brx-tabs) + var(--brx-safe-bottom) + 16px + var(--brx-applybar-h, 0px) + var(--brx-fab-clear, 0px)) !important;
  }
  html.in-app body:has(.brx-fab) { --brx-fab-clear: 62px; }

  /* The employer app has no anonymous experience: its only signed-out screen is the
     login form, so the public bar would invite people into the wrong product. */
  html.app-employer .brx-tabbar[data-tabs="public"],
  html.app-employer .brx-appbar[data-tabs="public"] { display: none !important; }
