/* The glass bottom bar (mockup nav.css): a round logo and a pill of four tabs, golden-hour glass with a rim of the
   network's colour. Phones only (under 1024 px); computers keep the top bar. --net is the network's colour. */
:root {
  --glass: rgba(255, 255, 255, .62); --glass-hi: rgba(255, 255, 255, .9); --glass-line: rgba(28, 24, 40, .08);
  --glass-shadow: 0 10px 30px rgba(28, 24, 40, .16), 0 2px 6px rgba(28, 24, 40, .06);
  --glow-b: rgba(18, 150, 140, .16); --rim-b: rgba(255, 255, 255, .7); --rim-c: rgba(18, 150, 140, .55);
  --logo-bg: #1C1828; --nav-ic: #5D576E; --cap-bg: #1C1828; --cap-fg: #F6F4FA; --ab-scrim: rgba(28, 24, 40, .58); --ab-thread: #F6F4FA;
  --ab-h: 64px; --ab-gap: 16px;
}
[data-bs-theme="dark"] {
  --glass: rgba(30, 26, 41, .58); --glass-hi: rgba(255, 255, 255, .16); --glass-line: rgba(255, 255, 255, .08);
  --glass-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  --glow-b: rgba(18, 150, 140, .2); --rim-b: rgba(255, 255, 255, .14); --rim-c: rgba(63, 208, 193, .45);
  --logo-bg: rgba(30, 26, 41, .62); --nav-ic: #A8A2B8; --cap-bg: #F1EEF7; --cap-fg: #1C1828; --ab-scrim: rgba(8, 6, 14, .7); --ab-thread: #F1EEF7;
}
.glass {
  background: radial-gradient(110px 80px at 0% 100%, color-mix(in srgb, var(--net, #FFB01F) 26%, transparent), transparent 70%),
    radial-gradient(150px 90px at 100% 0%, var(--glow-b), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.glass-rim { position: relative; }
.glass-rim::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--net, #FFB01F) 85%, transparent), var(--rim-b) 38%, var(--rim-b) 62%, var(--rim-c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

.ab { position: fixed; z-index: 1030; left: var(--ab-gap); right: var(--ab-gap); bottom: calc(14px + env(safe-area-inset-bottom));
  height: var(--ab-h); display: flex; align-items: center; gap: 10px; view-transition-name: appbar; }
.ab-logo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  list-style: none; cursor: pointer; color: #fff; z-index: 4; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(40px 40px at 30% 25%, rgba(255, 255, 255, .14), transparent 70%), var(--logo-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); transition: transform var(--dur-fast) var(--ease-standard); }
.ab-logo::-webkit-details-marker { display: none; }
.ab-logo:active { transform: scale(.92); }
.ab-logo:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.ab-mark { width: 32px; height: 32px; transition: transform 260ms cubic-bezier(.3, 1.35, .5, 1), opacity 120ms linear; }
.ab-x { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: rotate(-45deg) scale(.7);
  transition: transform 260ms cubic-bezier(.3, 1.35, .5, 1), opacity 120ms linear; }
.ab-x .icon { width: 26px; height: 26px; color: #F6F4FA; }
.ab-modes[open] .ab-mark { opacity: 0; transform: scale(.7); }
.ab-modes[open] .ab-x { opacity: 1; transform: none; }
.ab-scrim { display: none; position: fixed; inset: 0; z-index: 1; background: var(--ab-scrim);
  -webkit-backdrop-filter: blur(36px) saturate(140%); backdrop-filter: blur(36px) saturate(140%); animation: ab-fade 200ms linear; }
.ab:has(.ab-modes[open]) .ab-pill { opacity: 0; transform: translateX(10px); pointer-events: none; }
.ab-pill { transition: opacity var(--dur-base, 220ms) var(--ease-standard), transform var(--dur-base, 220ms) var(--ease-standard); }
.ab-modes[open] .ab-scrim { display: block; }

.ab-pill { flex: 1; min-width: 0; height: var(--ab-h); padding: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px; border-radius: 999px; position: relative; }
.ab-pill { background: radial-gradient(110px 80px at 0% 100%, color-mix(in srgb, var(--net, #FFB01F) 26%, transparent), transparent 70%),
    radial-gradient(150px 90px at 100% 0%, var(--glow-b), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.ab-pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--net, #FFB01F) 85%, transparent), var(--rim-b) 38%, var(--rim-b) 62%, var(--rim-c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ab-ind { position: absolute; left: 6px; top: 6px; height: calc(var(--ab-h) - 12px); width: calc((100% - 18px) / 4); border-radius: 999px;
  background: var(--net, #FFB01F); box-shadow: 0 4px 14px rgba(28, 24, 40, .18), inset 0 -2px 0 rgba(28, 24, 40, .12);
  transform: translateX(calc(var(--t, 0) * (100% + 2px))); transition: transform 200ms cubic-bezier(.16, 1, .3, 1); z-index: 0; }
.ab-pill[style*="--t:-1"] .ab-ind { opacity: 0; }
.ab-tab { position: relative; z-index: 1; min-width: 0; border-radius: 999px; color: var(--nav-ic); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; -webkit-tap-highlight-color: transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; line-height: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden;
  transition: color var(--dur-fast) var(--ease-standard); }
.ab-tab span { max-width: 100%; overflow: hidden; text-overflow: clip; }
@media (max-width: 400px) { .ab { --ab-gap: 10px; gap: 8px; } .ab-pill { padding: 5px; } }
.ab-tab .icon { width: 22px; height: 22px; transition: transform 160ms var(--ease-standard); }
.ab-tab:hover { color: var(--text); }
.ab-tab:active .icon { transform: scale(.88); }
.ab-tab[aria-current="page"] { color: #1C1828; }
.ab-tab.is-on .icon, .ab-tab[aria-current="page"] .icon { animation: ab-pop 300ms cubic-bezier(.3, 1.4, .5, 1); }
.ab-tab:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.ab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--cmu-ink, #1C1828); color: #fff; font: 800 .6875rem/18px var(--font-body); font-style: normal; text-align: center; }
[data-bs-theme="dark"] .ab-badge { background: #F1EEF7; color: #1C1828; }
.ab.is-going .ab-tab[aria-current="page"]:not(.is-on) { color: var(--nav-ic); }
.ab.is-going .ab-tab.is-on { color: #1C1828; }
.ab.is-going .ab-ind { animation: ab-squish 200ms cubic-bezier(.16, 1, .3, 1); }

/* Switch mode (mockup MOD-1, nav.css): beads on a thread. Each mode is a 56 px bead with its label in a pill beside
   it, placed up a gentle curve from the logo (My people at the bottom, Install the app at the top). The thread draws
   itself in 300 ms, the beads pop in one by one as it passes them, and a dot runs along it to the mode you are in. */
.ab-fan { position: fixed; left: var(--ab-gap); bottom: calc(14px + var(--ab-h) + 12px + env(safe-area-inset-bottom)); width: calc(100% - 2 * var(--ab-gap));
  height: 0; z-index: 3; }
.ab-mode { --x: 0px; --y: 0px; position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; color: var(--text);
  text-decoration: none; transform-origin: 28px 28px; transform: translate(var(--x), calc(var(--y) * -1)); -webkit-tap-highlight-color: transparent; }
.ab-mode.m1 { --x: 9px; --y: 72px; } .ab-mode.m2 { --x: 36px; --y: 144px; } .ab-mode.m3 { --x: 81px; --y: 216px; } .ab-mode.m4 { --x: 120px; --y: 288px; }
.ab-mi { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  color: var(--text); box-shadow: 0 6px 18px rgba(28, 24, 40, .18); animation: ab-bead 260ms cubic-bezier(.3, 1.35, .5, 1) var(--d, 0ms) both; }
.ab-mi .icon { width: 22px; height: 22px; }
.ab-mi::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--net, #FFB01F); opacity: 0; transform: scale(.5); }
.ab-mode.is-here .ab-mi::after { animation: ab-ring 260ms cubic-bezier(.3, 1.35, .5, 1) 300ms both; }
.ab-ml { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 18px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 6px 18px rgba(28, 24, 40, .14); animation: ab-lab var(--dur-base, 220ms) var(--ease-standard) calc(var(--d, 0ms) + 90ms) both; }
.ab-mtx { display: block; max-width: 205px; min-width: 0; }
/* narrow phones: the label wraps instead of running off the screen */
.ab-ml { max-width: calc(100vw - 2 * var(--ab-gap) - 66px - var(--x)); }
.ab-ml b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 22px; letter-spacing: -.01em; }
.ab-ml small { display: block; font-size: 13px; line-height: 18px; color: var(--text-muted); white-space: normal; }
.ab-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.ab-tick .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.ab-mode.is-cur .ab-mi { background: var(--text); color: var(--bg); }
.ab-mode.is-soon .ab-mi { background: var(--tint, #EDE8F7); color: var(--text-muted); box-shadow: none; }
.ab-mode.is-soon .ab-ml { background: var(--tint, #EDE8F7); box-shadow: none; }
.ab-mode.is-install .ab-mi { background: var(--net, #FFB01F); color: #1C1828;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--net, #FFB01F) 28%, transparent), 0 6px 18px rgba(28, 24, 40, .18); }
.ab-mode.is-install .ab-ml { background: color-mix(in srgb, var(--net, #FFB01F) 34%, var(--surface)); box-shadow: none;
  border: 1.5px dashed color-mix(in srgb, var(--net, #FFB01F) 50%, transparent); }
html.is-app .ab-mode.is-install { display: none; }
.ab-mode:active .ab-ml { background: var(--tint, #EDE8F7); }
.ab-mode:focus-visible { outline: none; }
.ab-mode:focus-visible .ab-ml { outline: 3px solid var(--text); outline-offset: 2px; }
.ab-mode.is-shake .ab-ml { animation: ab-nudge 320ms var(--ease-standard); }

/* the thread and the running dot (same box as the fan: the logo's centre is at 28, 388) */
.ab-thread { position: fixed; z-index: 2; left: var(--ab-gap); bottom: calc(14px + env(safe-area-inset-bottom) + var(--ab-h) / 2 - 32px); width: 260px; height: 420px;
  pointer-events: none; display: none; }
.ab-modes[open] .ab-thread { display: block; }
.ab-thread svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-thread path { fill: none; stroke: var(--ab-thread); stroke-opacity: .85; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100 100;
  animation: ab-draw 300ms linear both; }
.ab-you { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--net, #FFB01F);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--net, #FFB01F) 30%, transparent); offset-rotate: 0deg; offset-anchor: center;
  animation: ab-run 300ms linear both; }
@keyframes ab-pop { 0% { transform: none } 35% { transform: translateY(-3px) scale(1.12) } 100% { transform: none } }
@keyframes ab-squish { 0% { scale: 1 1 } 40% { scale: 1.08 .92 } 100% { scale: 1 1 } }
@keyframes ab-pop-in { from { opacity: 0; transform: scale(.2) } to { opacity: 1; transform: none } }
@keyframes ab-bead { from { opacity: 0; transform: scale(0) } to { opacity: 1; transform: none } }
@keyframes ab-lab { from { opacity: 0; transform: translateX(-10px) } to { opacity: 1; transform: none } }
@keyframes ab-ring { from { opacity: 0; transform: scale(.5) } to { opacity: 1; transform: none } }
@keyframes ab-draw { from { stroke-dashoffset: 100 } to { stroke-dashoffset: 0 } }
@keyframes ab-run { from { offset-distance: 0%; opacity: 0 } 10% { opacity: 1 } to { offset-distance: 23.5%; opacity: 1 } }
@keyframes ab-nudge { 0%, 100% { translate: 0 } 25% { translate: 6px } 50% { translate: -4px } 75% { translate: 2px } }
@keyframes ab-slide { from { opacity: 0; transform: translateX(-10px) } to { opacity: 1; transform: none } }
@keyframes ab-fade { from { opacity: 0 } to { opacity: 1 } }

/* a thin line in the network's colour while the next page loads; the bar never leaves */
.ab-load { position: fixed; z-index: 1090; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--net, #FFB01F); pointer-events: none; opacity: 0; }
.ab-load.on { opacity: 1; animation: ab-load 1.2s cubic-bezier(.2, .7, .3, 1) forwards, ab-crawl 12s cubic-bezier(.1, .5, .2, 1) 1.2s forwards; }
.ab-load::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: ab-shine 1.1s linear infinite; }
@keyframes ab-load { from { transform: scaleX(0) } to { transform: scaleX(.7) } }
@keyframes ab-crawl { from { transform: scaleX(.7) } to { transform: scaleX(.96) } }
@keyframes ab-shine { from { background-position: -40% 0 } to { background-position: 140% 0 } }
/* a slow page: the tab you tapped keeps breathing, so the bar never looks stuck */
.ab.is-going .ab-tab.is-on .icon { animation: ab-pop 300ms cubic-bezier(.3, 1.4, .5, 1), ab-breathe 1s ease-in-out 600ms infinite; }
.ab.is-slow .ab-ind { animation: ab-glow 1.2s ease-in-out infinite; }
@keyframes ab-breathe { 0%, 100% { transform: none } 50% { transform: scale(.9) } }
@keyframes ab-glow { 0%, 100% { filter: none } 50% { filter: brightness(1.08) saturate(1.15) } }

/* the page under the bar: room for it, and the content fades while the bar stays put between pages */
body.has-ab { --tabbar-h: calc(var(--ab-h) + 28px); }
body.has-ab .app-main { padding-bottom: calc(var(--ab-h) + 48px + env(safe-area-inset-bottom)); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
::view-transition-group(appbar) { animation: none; }

@media (min-width: 1024px) { .ab, .ab-load { display: none; } body.has-ab .app-main { padding-bottom: var(--space-6); } }
@media (prefers-reduced-motion: reduce) {
  .ab-ind { transition: none; } .ab-mi, .ab-ml, .ab-tab .icon, .ab.is-going .ab-ind { animation: ab-fade 150ms linear both !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .ab-thread path, .ab-you, .ab-mi::after { animation: none !important; } .ab-you { offset-distance: 23.5%; }
}

/* computers: Switch mode is a button in the top bar (mockup .dmode); the logo goes Home */
.mode-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; list-style: none; }
.mode-btn::-webkit-details-marker { display: none; }
.mode-btn .icon:first-child { width: 20px; height: 20px; color: var(--net, #FFB01F); }
.tools .mode-menu { position: relative; }
.tools .mode-menu .net-panel { left: auto; right: 0; }
.mode-menu[open] .mode-btn > .icon:last-child { transform: rotate(180deg); }

/* the site-wide accent (--net, set once in base.html) also marks where you are and what you picked, on every page */
::selection { background: color-mix(in srgb, var(--net, #FFB01F) 45%, transparent); }
.topbar .topnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--net, #FFB01F); }
:root { accent-color: var(--net, #FFB01F); }

/* Buttons across the site (founder 1 Dec): Bootstrap's .btn:hover paints --bs-btn-hover-bg, which our own buttons
   never set, so they turned see-through on hover. Each keeps its colour now; hover darkens a touch and lifts 1 px,
   press sinks back. */
.btn.mp-btn, .btn.pub-btn, .btn.pub-cta, .btn.pub-dock-btn, .btn.pub-btn-ink, .btn.mp-btn-quiet, .btn.mp-btn-danger, .btn.fx-quiet, .btn.si-btn {
  --bs-btn-hover-bg: var(--btn-bg); --bs-btn-active-bg: var(--btn-bg); --bs-btn-hover-color: var(--btn-fg); --bs-btn-active-color: var(--btn-fg);
  --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent;
  transition: filter 140ms var(--ease-standard), transform 140ms var(--ease-standard), box-shadow 140ms var(--ease-standard); }
.btn.mp-btn, .btn.pub-btn { --btn-bg: var(--net); --btn-fg: #1C1828; }
.btn.pub-cta, .btn.pub-dock-btn, .btn.pub-btn-ink { --btn-bg: #1C1828; --btn-fg: #fff; }
.btn.mp-btn-quiet, .btn.fx-quiet, .btn.si-btn { --btn-bg: var(--surface); --btn-fg: var(--text); }
.btn.mp-btn-danger { --btn-bg: transparent; --btn-fg: var(--error); }
@media (hover: hover) {
  .btn.mp-btn:hover, .btn.pub-btn:hover, .btn.pub-cta:hover, .btn.pub-dock-btn:hover, .btn.pub-btn-ink:hover, .mp-dock-add:hover {
    background: var(--btn-bg, var(--net)); color: var(--btn-fg, #1C1828); filter: brightness(.94); opacity: 1; transform: translateY(-1px);
    box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14), 0 6px 16px rgba(28, 24, 40, .16); }
  .btn.mp-btn-quiet:hover, .btn.fx-quiet:hover, .btn.si-btn:hover { background: var(--tint); color: var(--text); }
}
.btn.mp-btn:active, .btn.pub-btn:active, .btn.pub-cta:active, .btn.pub-dock-btn:active, .btn.pub-btn-ink:active {
  background: var(--btn-bg); color: var(--btn-fg); transform: translateY(0) scale(.98); filter: brightness(.9); box-shadow: inset 0 -1px 0 rgba(28, 24, 40, .14); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--net, #FFB01F) 40%, transparent); }

/* the logo exactly as the brand draws it (mockup .logo-btn .mk): light open ring, marigold dot, 32 px */
.ab-logo .ab-mark { width: 32px; height: 32px; }
.ab-tab .icon .ab-dot { fill: currentColor; }

/* ══ Glass, second pass (founder 1 Dec: "more impressive, not heavy"). Pure CSS, no images or scripts:
   1. a soft fade of the page colour rises behind the bar, so text never sits sharp under it (mockup .fade);
   2. thicker frosting (blur 28, saturate 180) with a little more body in dark mode;
   3. a sheen: light catches the top edge and fades down; the rim glows in the network's colour at one end;
   4. the logo button is frosted ink with its own top highlight. ══ */
:root { --glass: rgba(255, 255, 255, .7); --glass-hi: rgba(255, 255, 255, .95); }
[data-bs-theme="dark"] { --glass: rgba(34, 29, 48, .74); --glass-hi: rgba(255, 255, 255, .14); --rim-b: rgba(255, 255, 255, .16); }
body.has-ab::after { content: ""; position: fixed; z-index: 1019; left: 0; right: 0; bottom: 0; pointer-events: none;
  height: calc(var(--ab-h) + 56px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 38%, color-mix(in srgb, var(--bg) 0%, transparent)); }
@media (min-width: 1024px) { body.has-ab::after { display: none; } }
.ab-pill, .mp-dock, .fx-bar, .pub-dock, .is-selecting .mp-selbar {
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
.ab-pill { background:
    linear-gradient(180deg, color-mix(in srgb, #fff 14%, transparent), transparent 55%),
    radial-gradient(120px 80px at 0% 100%, color-mix(in srgb, var(--net, #FFB01F) 30%, transparent), transparent 70%),
    radial-gradient(150px 90px at 100% 0%, var(--glow-b), transparent 70%), var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(28, 24, 40, .06), 0 12px 32px rgba(28, 24, 40, .22), 0 2px 6px rgba(28, 24, 40, .08); }
[data-bs-theme="dark"] .ab-pill { box-shadow: inset 0 1px 0 var(--glass-hi), 0 14px 36px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35); }
.ab-pill::before { background: linear-gradient(100deg, color-mix(in srgb, var(--net, #FFB01F) 90%, transparent),
    var(--rim-b) 30%, var(--rim-b) 70%, color-mix(in srgb, var(--rim-c) 80%, transparent)); }
.ab-logo { background:
    radial-gradient(36px 30px at 32% 18%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(180deg, #2A2438, #1C1828);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 32px rgba(28, 24, 40, .28); }
[data-bs-theme="dark"] .ab-logo { background:
    radial-gradient(36px 30px at 32% 18%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(52, 45, 70, .9), rgba(30, 26, 41, .9));
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
/* the tab you are on: a soft inner light and a gentle drop, like a pressed key */
.ab-ind { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(28, 24, 40, .14), 0 6px 16px color-mix(in srgb, var(--net, #FFB01F) 35%, transparent); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, .96); } [data-bs-theme="dark"] { --glass: rgba(34, 29, 48, .97); }
}

/* Switch mode: nothing behind it can be read (founder 1 Dec) */
.ab-scrim { -webkit-backdrop-filter: blur(64px) saturate(130%) brightness(.9); backdrop-filter: blur(64px) saturate(130%) brightness(.9);
  background: color-mix(in srgb, var(--bg) 62%, transparent); }
[data-bs-theme="dark"] .ab-scrim { background: rgba(8, 6, 14, .78); }

/* the install bead goes once the app is installed (installed now, or opened as the app); the thread then stops at the
   bead before it. html.is-installed comes from base.html (remembered on this device) and install.js. */
.ab-path-short { display: none; }
html.is-app .ab-mode.is-install, html.is-installed .ab-mode.is-install { display: none; }
html.is-app .ab-path-full, html.is-installed .ab-path-full { display: none; }
html.is-app .ab-path-short, html.is-installed .ab-path-short { display: inline; }
/* visitors: the first bead is a plain action, not "the mode you are in" */
.ab-modes .ab-mode.m0.is-cur:not(.is-here) .ab-mi { background: var(--surface); color: var(--text); }

/* ══ Switch mode, mosaic (founder 2 Dec: "premium, hides everything, brings the options into focus").
   Three layers over a heavy blur: a soft pool of the network's colour behind the fan (where the eye should go), a
   checker of glass tiles (every other tile a touch lighter), and fine seams between them, like frosted glass mosaic.
   It spreads out from the logo when the fan opens. Pure CSS, no images. ══ */
@property --ab-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.ab-scrim {
  --tile: 18px;
  background:
    radial-gradient(420px 520px at 18% 78%, color-mix(in srgb, var(--net, #FFB01F) 26%, transparent), transparent 70%),
    repeating-conic-gradient(rgba(255, 255, 255, .055) 0 25%, transparent 0 50%) 0 0 / calc(var(--tile) * 2) calc(var(--tile) * 2),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    rgba(20, 17, 30, .62);
  -webkit-backdrop-filter: blur(48px) saturate(150%) brightness(.85); backdrop-filter: blur(48px) saturate(150%) brightness(.85);
  -webkit-mask-image: radial-gradient(circle at calc(var(--ab-gap, 16px) + 28px) calc(100% - 46px - env(safe-area-inset-bottom)), #000 var(--ab-r), transparent calc(var(--ab-r) + 60px));
  mask-image: radial-gradient(circle at calc(var(--ab-gap, 16px) + 28px) calc(100% - 46px - env(safe-area-inset-bottom)), #000 var(--ab-r), transparent calc(var(--ab-r) + 60px));
  --ab-r: 160vmax;
}
[data-bs-theme="light"] .ab-scrim, :root:not([data-bs-theme="dark"]) .ab-scrim {
  background:
    radial-gradient(420px 520px at 18% 78%, color-mix(in srgb, var(--net, #FFB01F) 30%, transparent), transparent 70%),
    repeating-conic-gradient(rgba(255, 255, 255, .22) 0 25%, transparent 0 50%) 0 0 / calc(var(--tile) * 2) calc(var(--tile) * 2),
    linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    rgba(236, 232, 246, .66);
  -webkit-backdrop-filter: blur(48px) saturate(140%); backdrop-filter: blur(48px) saturate(140%);
}
.ab-modes[open] .ab-scrim { animation: ab-mosaic 520ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ab-mosaic { from { --ab-r: 0px; opacity: .6; } to { --ab-r: 160vmax; opacity: 1; } }
/* the beads and labels sit a touch brighter on the mosaic */
.ab-modes[open] .ab-ml { box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (prefers-reduced-motion: reduce) { .ab-modes[open] .ab-scrim { animation: ab-fade 150ms linear both; } }
[data-bs-theme="dark"] .ab-scrim {
  background:
    radial-gradient(420px 520px at 18% 78%, color-mix(in srgb, var(--net, #FFB01F) 26%, transparent), transparent 70%),
    repeating-conic-gradient(rgba(255, 255, 255, .055) 0 25%, transparent 0 50%) 0 0 / calc(var(--tile) * 2) calc(var(--tile) * 2),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    rgba(12, 10, 20, .7);
}

/* Why the page stayed readable: an element with a view-transition-name is a "backdrop root", so the blur inside the
   bar could only see the bar. While Switch mode is open the bar drops its name, and the frost reaches the whole page.
   Apple-style frost on top of the mosaic, and a thicker tint as a safety net where the blur cannot run. */
.ab:has(.ab-modes[open]) { view-transition-name: none; }
.ab-scrim { -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(.92); backdrop-filter: blur(40px) saturate(180%) brightness(.92); }
:root:not([data-bs-theme="dark"]) .ab-scrim {
  background:
    radial-gradient(420px 520px at 18% 78%, color-mix(in srgb, var(--net, #FFB01F) 30%, transparent), transparent 70%),
    repeating-conic-gradient(rgba(255, 255, 255, .22) 0 25%, transparent 0 50%) 0 0 / calc(var(--tile) * 2) calc(var(--tile) * 2),
    linear-gradient(rgba(255, 255, 255, .4) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    linear-gradient(90deg, rgba(255, 255, 255, .4) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    rgba(240, 236, 248, .78);
}
[data-bs-theme="dark"] .ab-scrim {
  background:
    radial-gradient(420px 520px at 18% 78%, color-mix(in srgb, var(--net, #FFB01F) 26%, transparent), transparent 70%),
    repeating-conic-gradient(rgba(255, 255, 255, .05) 0 25%, transparent 0 50%) 0 0 / calc(var(--tile) * 2) calc(var(--tile) * 2),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / var(--tile) var(--tile),
    rgba(12, 10, 20, .8);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root:not([data-bs-theme="dark"]) .ab-scrim { background-color: rgba(240, 236, 248, .96); }
  [data-bs-theme="dark"] .ab-scrim { background-color: rgba(12, 10, 20, .96); }
}
/* the bar's own glass needs to see the page too, so it carries no view-transition-name at all; the quick page
   cross-fade still runs and the bar sits in the same place on both pages */
.ab { view-transition-name: none; }

/* ══ Install sheet (mockup MOD-1 .isheet): a bottom sheet on phones, a centred dialog on computers ══ */
.isheet-scrim { position: fixed; inset: 0; z-index: 1094; background: rgba(28, 24, 40, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 220ms linear; }
.isheet-scrim.on { opacity: 1; }
.isheet { position: fixed; z-index: 1095; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -12px 40px rgba(28, 24, 40, .24);
  transform: translateY(104%); transition: transform 320ms cubic-bezier(.2, .9, .3, 1); }
.isheet.on { transform: none; }
.isheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 14px; }
.isheet-head { display: flex; align-items: center; gap: 14px; }
.isheet-icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: #1C1828;
  box-shadow: 0 8px 20px rgba(28, 24, 40, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.isheet-icon svg { width: 40px; height: 40px; }
.isheet-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.015em; }
.isheet-head p { margin: 2px 0 0; color: var(--text-muted); font-size: .9375rem; }
.isheet-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.isheet-perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.isheet-perks .icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--net, #FFB01F) 28%, var(--surface)); color: var(--text); flex: none; }
.isheet-tabs { display: flex; gap: 2px; padding: 4px; margin-top: 18px; border-radius: 999px; background: var(--tint); }
.isheet-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-display); font-weight: 700;
  font-size: .875rem; color: var(--text-muted); cursor: pointer; }
.isheet-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.isheet-desk { display: none; }
@media (pointer: fine) { .isheet-desk { display: block; } }
.isheet-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.isheet-steps li { display: flex; align-items: center; gap: 12px; }
.isheet-steps b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint); font-family: var(--font-display); font-size: .875rem; }
.isheet-steps.is-nudge { animation: ab-nudge 420ms var(--ease-standard); }
.isheet-acts { display: flex; gap: 8px; margin-top: 20px; }
.isheet-acts .btn { min-height: 52px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; }
.isheet-later { --btn-bg: var(--tint); --btn-fg: var(--text); background: var(--tint); color: var(--text); padding-inline: 22px; }
.isheet-go { flex: 1; --btn-bg: var(--net, #FFB01F); --btn-fg: #1C1828; background: var(--net, #FFB01F); color: #1C1828; box-shadow: inset 0 -2px 0 rgba(28, 24, 40, .14); }
.isheet-go:hover { background: var(--net, #FFB01F); color: #1C1828; filter: brightness(.95); }
@media (min-width: 1024px) {
  .isheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; border-radius: 28px; transform: translate(-50%, -46%); opacity: 0;
    transition: transform 260ms cubic-bezier(.2, .9, .3, 1), opacity 200ms linear; }
  .isheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .isheet-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .isheet, .isheet-scrim { transition: opacity 150ms linear; } }

/* ══ Switch mode, the reveal (founder 2 Dec: "make it an impressive transition"). Three layers, staged:
   1 the frost: blur and tint ramp up from nothing (0–420 ms);
   2 the mosaic: glass tiles open in a circle from the logo outwards (80–600 ms, clip-path, works everywhere);
   3 the glow: the network's colour blooms behind the options (200–700 ms).
   Closing plays it back quickly (appbar.js adds .is-closing, then closes). Reduced motion: a plain fade. ══ */
.ab-scrim {
  --ox: calc(var(--ab-gap, 16px) + 28px); --oy: calc(100% - 46px - env(safe-area-inset-bottom));
  -webkit-mask-image: none; mask-image: none;
  background: rgba(240, 236, 248, .72);
  animation: none;
}
[data-bs-theme="dark"] .ab-scrim { background: rgba(12, 10, 20, .76); }
.ab-scrim::before, .ab-scrim::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ab-scrim::before {                                    /* the mosaic */
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .24) 0 25%, transparent 0 50%) 0 0 / 36px 36px,
    linear-gradient(rgba(255, 255, 255, .42) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255, 255, 255, .42) 1px, transparent 1px) 0 0 / 18px 18px;
  clip-path: circle(0 at var(--ox) var(--oy));
}
[data-bs-theme="dark"] .ab-scrim::before {
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .055) 0 25%, transparent 0 50%) 0 0 / 36px 36px,
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px) 0 0 / 18px 18px;
}
.ab-scrim::after {                                     /* the glow behind the options */
  background: radial-gradient(420px 520px at 18% 78%, color-mix(in srgb, var(--net, #FFB01F) 32%, transparent), transparent 70%);
  opacity: 0; transform: scale(.7); transform-origin: var(--ox) var(--oy);
}
.ab-modes[open] .ab-scrim { animation: ab-frost-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
.ab-modes[open] .ab-scrim::before { animation: ab-tiles-in 520ms cubic-bezier(.3, .7, .2, 1) 80ms both; }
.ab-modes[open] .ab-scrim::after { animation: ab-glow-in 500ms cubic-bezier(.2, .9, .3, 1) 200ms both; }
.ab-modes.is-closing .ab-scrim { animation: ab-frost-out 240ms ease-in both; }
.ab-modes.is-closing .ab-scrim::before { animation: ab-tiles-out 220ms ease-in both; }
.ab-modes.is-closing .ab-scrim::after { animation: ab-glow-out 180ms ease-in both; }
.ab-modes.is-closing .ab-fan, .ab-modes.is-closing .ab-thread { opacity: 0; transition: opacity 160ms linear; }
@keyframes ab-frost-in {
  from { -webkit-backdrop-filter: blur(0) saturate(100%); backdrop-filter: blur(0) saturate(100%); background-color: transparent; }
  to { -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(.92); backdrop-filter: blur(40px) saturate(180%) brightness(.92); }
}
@keyframes ab-frost-out {
  from { -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(.92); backdrop-filter: blur(40px) saturate(180%) brightness(.92); }
  to { -webkit-backdrop-filter: blur(0) saturate(100%); backdrop-filter: blur(0) saturate(100%); background-color: transparent; }
}
@keyframes ab-tiles-in { from { clip-path: circle(0 at var(--ox) var(--oy)); } to { clip-path: circle(160vmax at var(--ox) var(--oy)); } }
@keyframes ab-tiles-out { from { clip-path: circle(160vmax at var(--ox) var(--oy)); } to { clip-path: circle(0 at var(--ox) var(--oy)); } }
@keyframes ab-glow-in { to { opacity: 1; transform: none; } }
@keyframes ab-glow-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) {
  .ab-modes[open] .ab-scrim, .ab-modes[open] .ab-scrim::before, .ab-modes[open] .ab-scrim::after { animation: ab-fade 150ms linear both !important; }
  .ab-modes[open] .ab-scrim::before { clip-path: none; }
  .ab-modes[open] .ab-scrim::after { opacity: 1; transform: none; }
}
/* founder 2 Dec: the Computer tab shows on every device, so a phone can see how to install on a computer too */
.isheet-desk { display: block; }

/* Text fields (founder 2 Dec): no hard rectangle inside the box when typing; the whole field glows softly in the
   network colour instead. Inputs inside a wrapper box (.sh-inbox, search pills) show the glow on the wrapper. */
input:focus, textarea:focus, select:focus { outline: none; }
input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--net, #FFB01F) 22%, transparent) !important; border-color: color-mix(in srgb, var(--net, #FFB01F) 70%, var(--text)) !important; }
.sh-inbox input:focus, .mp-dock-search input:focus, .inbox input:focus, .mp-search input:focus, .cr-find input:focus {
  box-shadow: none !important; border-color: transparent !important; }
.sh-inbox:focus-within, .mp-dock-search:focus-within, .mp-search:focus-within {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--net, #FFB01F) 22%, transparent) !important; border-color: color-mix(in srgb, var(--net, #FFB01F) 70%, var(--text)) !important; }

/* the inner field of a wrapped box never glows itself (the wrapper does); stronger than the general rule above */
.sh-inbox input:not([type=checkbox]):not([type=radio]):focus, .mp-dock-search input:not([type=checkbox]):not([type=radio]):focus,
.inbox input:not([type=checkbox]):not([type=radio]):focus, .mp-search input:not([type=checkbox]):not([type=radio]):focus,
.cr-find input:not([type=checkbox]):not([type=radio]):focus { box-shadow: none !important; border-color: transparent !important; outline: none !important; background: transparent !important; }
/* public site (founder 2 Dec): no logo button in the bottom bar; the tabs take the full width */
body.pub-page .ab .ab-logo { display: none; }

/* 3 Dec (founder: "the tab slide lags"): the highlight gets its own layer, so the slide runs on the graphics chip and
   the frosted bar is not repainted on every frame; its glow is a soft fixed shadow, not a recoloured one. */
.ab-ind { will-change: transform; backface-visibility: hidden; }
.ab-pill { contain: layout style; }
