/**
 * TruBible OS shell (TINL-1376 / TINL-1377). Drawn only on a computer-sized screen: `html.tbos-desktop`
 * is set by /os/tb-os.js. Everywhere else `.tbos-win` and `.tbos-body` are `display: contents`, so a
 * phone, a tablet and the store apps see the app exactly as it is without the shell.
 *
 * This file replaces two "Daylight" rules for the desktop only (docs/design.md): there is a picture behind
 * the apps, and the chrome is translucent. Still one accent (--brand), and no colour of its own.
 *
 * The same core design as Ethan.Bible's desktop (appv2 src/app/os.css), as the browser draws it (TINL-1440, owner
 * Nov 15 2026: "the MacOS style, let share the same core design between"). Ethan.Bible's left bar, side panels and
 * windows were set to follow THIS taskbar on Nov 13 ("Calmer"); its menu bar is its own see-through glass, which
 * ours takes here (--os-bar-*). test/osDesktopDesign.test.js compares the values each file finally draws (the
 * last rule wins), and untracked/next-port/live-desk.js compares the two live sites. Only the accent is ours.
 *
 * NEVER give `.tbos-win` a transform, filter, backdrop-filter, contain or will-change at rest: every
 * `position: fixed` thing inside an app would re-anchor to the window. Glass goes on the bar, the left bar,
 * the menus and an app's own side panels, each of which holds nothing fixed.
 */
:root {
  --os-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --os-menubar-h: 30px;
  --os-bar-h: 44px;
  /* The left bar (TINL-1446, owner Nov 16 2026: "instead of task bar at bottom, for desktop, use Left Bar with icons,
     text and highlighting, glass effects"): a glass bar under the menu bar; the window takes the room to its right. */
  --os-gap: 12px;                                /* around the bar and the window */
  --os-rail-w: 212px;                            /* icons and names; icons only on a narrow desktop */
  --os-rail-space: calc(var(--os-rail-w) + 2 * var(--os-gap));   /* what the bar takes from the left, with its gaps */
  --os-w: min(1720px, calc(100vw - var(--os-rail-space) - var(--os-gap)));
  --os-h: calc(100dvh - var(--os-menubar-h) - 2 * var(--os-gap));
  --os-radius: 12px;
  --os-ink: #15171c;
  --os-ink-2: rgba(21, 23, 28, 0.66);
  --os-glass: rgba(246, 247, 249, 0.68);
  --os-glass-strong: rgba(250, 250, 251, 0.9);
  --os-glass-side: rgba(240, 242, 244, 0.66);    /* an app's side panel, with the wallpaper showing through */
  /* the menu bar: Ethan.Bible's thin pane of see-through glass (its "Glass" layer, owner Nov 13 2026) */
  --os-bar-glass: rgba(255, 255, 255, 0.22);
  --os-bar-glass-strong: rgba(255, 255, 255, 0.42);
  --os-bar-blur: saturate(190%) blur(30px);
  --os-bar-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.4), 0 0.5px 0 rgba(0, 0, 0, 0.1), 0 10px 26px -14px rgba(0, 0, 0, 0.45);
  --os-bar-ink: var(--os-ink);
  --os-bar-text-shadow: none;
  --os-rail-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 14px 34px -14px rgba(12, 22, 34, 0.5), inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
  --os-line: rgba(0, 0, 0, 0.1);
  --os-hover: rgba(0, 0, 0, 0.07);
  --os-win-bg: var(--bg, #ffffff);
  --os-wall: url(/os/img/wall-day.webp?v=2);
  --os-wall-color: #afb7bc;
  /* what shows while the picture is on its way: ten bands sampled from the picture itself (top to bottom), so a
     late picture is a soft change and never a flat grey screen. Re-sample when the wallpaper is replaced
     (docs/os-shell.md, "The wallpaper"). */
  --os-wall-ground: linear-gradient(180deg, #c0d2de 5%, #ced8de 15%, #d8dcdc 25%, #e3dcd1 35%, #bfb3ad 45%, #98a3ac 55%, #99a7b0 65%, #a3b1ba 75%, #9baab1 85%, #7e8e93 95%);
  --os-desk-ink: #1d1d1f;
  --os-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.28), 0 24px 60px -12px rgba(12, 22, 34, 0.45), 0 6px 16px -6px rgba(12, 22, 34, 0.2);
  --os-pop-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 20px 50px -14px rgba(12, 22, 34, 0.45);
  --os-blur: blur(34px) saturate(1.7);
  --os-ease: cubic-bezier(0.32, 0.72, 0, 1);
}
/* Whole pixels: on a fraction the window is drawn a hair differently from page to page. Inside @supports,
   because a custom property does not fall back: a browser without round() would get no window at all. */
@supports (width: round(1.5px, 1px)) {
  :root { --os-w: round(down, min(1720px, calc(100vw - var(--os-rail-space) - var(--os-gap))), 2px); }
}
/* a narrow desktop (a small laptop, a tablet held sideways): the bar shows icons only, the names come as tips */
@media (max-width: 1199px) { :root { --os-rail-w: 62px; } }
[data-theme="dark"] {
  --os-ink: #f3f4f6;
  --os-ink-2: rgba(243, 244, 246, 0.68);
  --os-glass: rgba(30, 33, 38, 0.62);
  --os-glass-strong: rgba(36, 38, 43, 0.92);
  --os-glass-side: rgba(28, 30, 35, 0.7);
  --os-bar-glass: rgba(16, 18, 28, 0.24);
  --os-bar-glass-strong: rgba(16, 18, 28, 0.42);
  --os-bar-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.14), 0 10px 26px -14px rgba(0, 0, 0, 0.6);
  --os-bar-ink: #fff;
  --os-bar-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --os-rail-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 14px 34px -14px rgba(0, 0, 0, 0.7), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  --os-line: rgba(255, 255, 255, 0.14);
  --os-hover: rgba(255, 255, 255, 0.11);
  --os-wall: url(/os/img/wall-night.webp?v=2);
  --os-wall-color: #2f3f4c;
  --os-wall-ground: linear-gradient(180deg, #28364c 5%, #324259 15%, #3d526a 25%, #4c687d 35%, #64848f 45%, #5e6d71 55%, #314359 65%, #3a4c5e 75%, #3b4e5a 85%, #20292a 95%);
  --os-desk-ink: #ffffff;
  --os-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.28), 0 24px 60px -12px rgba(12, 22, 34, 0.45), 0 6px 16px -6px rgba(12, 22, 34, 0.2);   /* Ethan.Bible keeps one window shadow in Dark */
  --os-pop-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 20px 50px -14px rgba(0, 0, 0, 0.7);
}
@media (max-width: 1320px) and (max-resolution: 1.4dppx) {
  :root { --os-wall: url(/os/img/wall-day-1280.webp?v=2); }
  [data-theme="dark"] { --os-wall: url(/os/img/wall-night-1280.webp?v=2); }
}

/* ---------- Inside an app ----------
   html.tbos-app (set by tb-os.js: a store app, the desktop app, an installed web app) or html.in-app (set by
   js/app.js on the pages that are not in the shell: /app, listen, join, the host console).
   Touch manners every native app has. The words of a page stay selectable; its buttons and bars do not. */
:is(html.tbos-app, html.in-app) { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }
/* Only the app's own chrome: bars, tabs, buttons. A link or a picture inside someone's message keeps its
   long-press menu (copy the link, save the photo), and words stay selectable. */
:is(html.tbos-app, html.in-app) :is(button, summary, nav, nav a, a[class*="btn"], [role="button"], [role="tab"], [role="menuitem"], .tabbar, .navbar) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:is(html.tbos-app, html.in-app) :is(button, a, summary, label, [role="button"], [role="tab"], [role="menuitem"]) { touch-action: manipulation; }
:is(html.tbos-app, html.in-app) :is(button, [role="button"], a[class*="btn"]):active:not(:disabled) { opacity: 0.7; transition: opacity 60ms; }
@media (pointer: coarse) { :is(html.tbos-app, html.in-app) * { scrollbar-width: none; } :is(html.tbos-app, html.in-app) ::-webkit-scrollbar { display: none; } }

/* ---------- Not a desktop: the shell is not there ---------- */
.tbos-win, .tbos-body { display: contents; }
.tbos-menubar, .tbos-rail, .tbos-desk, .tbos-bar, .tbos-menu, .tbos-about { display: none; }

/* ---------- The desktop ---------- */
/* --app-vh: how tall the app's own area is. An app that sized something with 100vh uses var(--app-vh, 100vh) here. */
html.tbos-desktop { --app-vh: calc(var(--os-h) - var(--os-bar-h)); height: 100%; overflow: hidden; background: var(--os-wall) center / cover no-repeat, var(--os-wall-ground) var(--os-wall-color); }
html.tbos-fill, html.tbos-fill.tbos-short.tbos-desktop { --app-vh: calc(100dvh - var(--os-menubar-h) - var(--os-bar-h)); }
html.tbos-desktop body { height: 100%; margin: 0; overflow: hidden; background: transparent; }

/* ---------- Menu bar ---------- */
html.tbos-desktop .tbos-menubar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--os-menubar-h);
  display: flex; align-items: center; gap: 1px; padding: 0 8px 0 6px;
  font: 500 13px/1 var(--os-font); color: var(--os-bar-ink); text-shadow: var(--os-bar-text-shadow); letter-spacing: 0;
  background: linear-gradient(180deg, var(--os-bar-glass-strong), var(--os-bar-glass)); -webkit-backdrop-filter: var(--os-bar-blur); backdrop-filter: var(--os-bar-blur);
  border-bottom: 0; box-shadow: var(--os-bar-shadow); user-select: none; -webkit-user-select: none;
}
.tbos-mb {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 24px; padding: 0 9px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: default; white-space: nowrap;
}
.tbos-mb:hover, .tbos-mb[aria-expanded="true"] { background: var(--os-hover); }
.tbos-mb:focus-visible, .tbos-light:focus-visible, .tbos-find:focus-visible, .tbos-rail-item:focus-visible, .tbos-desk-open:focus-visible,
.tbos-controls button:focus-visible, .tbos-about a:focus-visible { outline: 2px solid var(--brand, #0369a1); outline-offset: 1px; }
.tbos-mb-logo { padding: 0 7px; }
.tbos-mb-logo img { width: 20px; height: 20px; display: block; }
.tbos-mark-night, [data-theme="dark"] .tbos-mark-day { display: none !important; }
[data-theme="dark"] .tbos-mark-night { display: block !important; }
.tbos-mb-app { font-weight: 700; }
.tbos-mb-gap { flex: 1; }
.tbos-mb-icon { padding: 0 6px; }
.tbos-mb svg, .tbos-find svg, .tbos-controls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbos-clock { padding: 0 8px; font-variant-numeric: tabular-nums; white-space: pre; }
.tbos-me { display: inline-flex; }
.tbos-avatar { padding: 0 2px; }
.tbos-avatar img, .tbos-avatar span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--os-ink); color: var(--os-win-bg); font: 700 11px/1 var(--os-font); }
.tbos-signin { font-weight: 600; }

/* ---------- Menus and Controls ---------- */
html.tbos-desktop .tbos-menu {
  display: block; position: fixed; z-index: 56; min-width: 230px; max-width: 320px; padding: 5px;
  border-radius: 10px; background: var(--os-glass-strong); -webkit-backdrop-filter: var(--os-blur); backdrop-filter: var(--os-blur);
  box-shadow: var(--os-pop-shadow); font: 400 13.5px/1.25 var(--os-font); color: var(--os-ink);
  animation: tbos-pop 150ms var(--os-ease) both; transform-origin: top left;
}
.tbos-menu [role^="menuitem"] {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 4px 12px 4px 6px; box-sizing: border-box;
  border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: default;
}
.tbos-menu [role^="menuitem"]:hover, .tbos-menu [role^="menuitem"]:focus-visible { background: var(--brand, #0369a1); color: var(--on-brand, #fff); outline: none; }
.tbos-menu-mark { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
.tbos-menu-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tbos-menu img { flex: none; border-radius: 22.5%; box-shadow: 0 0 0 0.5px var(--os-line); }
.tbos-menu-sep { height: 1px; margin: 5px 8px; background: var(--os-line); }
.tbos-menu-head { display: grid; gap: 2px; padding: 6px 12px 4px 30px; }
.tbos-menu-head b { font-weight: 600; }
.tbos-menu-head small { color: var(--os-ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

html.tbos-desktop .tbos-controls { width: 300px; max-width: none; padding: 10px; display: grid; gap: 10px; border-radius: 16px; transform-origin: top right; }
.tbos-tile { padding: 10px; border-radius: 12px; background: var(--os-hover); }
.tbos-tile-h { margin: 0 0 8px; font: 600 12px/1 var(--os-font); color: var(--os-ink-2); }
.tbos-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tbos-seg button, .tbos-langs button, .tbos-switch {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px;
  background: var(--os-glass-strong); color: var(--os-ink); font: 500 13px/1 var(--os-font); cursor: pointer; box-shadow: 0 0 0 0.5px var(--os-line);
}
.tbos-seg button[aria-pressed="true"], .tbos-langs button[aria-pressed="true"] { background: var(--brand, #0369a1); color: var(--on-brand, #fff); box-shadow: none; }
.tbos-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tbos-switch { width: 100%; justify-content: flex-start; background: transparent; box-shadow: none; padding: 0 2px; }
.tbos-switch span { flex: 1; text-align: left; }
.tbos-switch i { flex: none; width: 36px; height: 22px; border-radius: 11px; background: rgba(120, 120, 128, 0.45); position: relative; transition: background 160ms; }
.tbos-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 180ms var(--os-ease); }
.tbos-switch[aria-checked="true"] i { background: var(--brand, #0369a1); }
.tbos-switch[aria-checked="true"] i::after { transform: translateX(14px); }

/* ---------- The window ---------- */
html.tbos-desktop .tbos-win {
  position: fixed; z-index: 10; display: flex; flex-direction: column;
  /* centred in the room right of the bar (on a wide screen; under 1720 px wide it simply starts beside the bar) */
  top: calc(var(--os-menubar-h) + var(--os-gap) + var(--os-dy, 0px));
  left: calc(var(--os-rail-space) + (100vw - var(--os-rail-space) - var(--os-gap) - var(--os-w)) / 2 + var(--os-dx, 0px));
  left: round(calc(var(--os-rail-space) + (100vw - var(--os-rail-space) - var(--os-gap) - var(--os-w)) / 2 + var(--os-dx, 0px)), 1px);
  width: var(--os-w); height: var(--os-h);
  border-radius: var(--os-radius); overflow: clip; box-shadow: var(--os-shadow);
  transform-origin: var(--os-ox, 50%) var(--os-oy, 100%);
  animation: tbos-in 380ms var(--os-ease) backwards;
}
html.tbos-desktop .tbos-win[data-state] { display: none; }
html.tbos-desktop .tbos-body { display: block; position: relative; flex: 1; min-height: 0; overflow: auto; background: var(--os-win-bg); color: var(--text, inherit); scroll-padding-top: calc(var(--nav-h, 0px) + 16px); }
html.tbos-desktop .tbos-win:focus { outline: none; }
html.tbos-desktop .tbos-win.tbos-out { animation: tbos-out 300ms cubic-bezier(0.5, 0, 0.9, 0.5) forwards; }
html.tbos-desktop .tbos-win.tbos-in { animation: tbos-in 380ms var(--os-ease) backwards; }
html.tbos-leaving .tbos-win { opacity: 0.55; transition: opacity 220ms ease-out; }

/* ---------- A window with a side panel ----------
   <nav class="tbos-side"> as the first child of .tbos-body, or of a block inside it marked .tbos-split (an
   introduction page that shares the window with the signed-in app): a glass panel of links to the page's
   sections. The panel stays while the page scrolls beside it; off the desktop it is not drawn. */
.tbos-side { display: none; }
/* the paper is painted once, beside the panel, so gaps between the page's sections are paper too */
html.tbos-desktop :is(.tbos-body, .tbos-split):has(> .tbos-side) { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-auto-rows: min-content; align-content: start; background: linear-gradient(to right, transparent 250px, var(--os-win-bg) 250px); }
html.tbos-desktop :is(.tbos-body, .tbos-split):has(> .tbos-side) > :not(.tbos-side) { grid-column: 2; }
html.tbos-desktop .tbos-body:has(> .tbos-split:not([hidden]) > .tbos-side) { background: transparent; }
html.tbos-desktop .tbos-split[hidden] { display: none; }
html.tbos-desktop .tbos-side {
  grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; height: var(--app-vh); box-sizing: border-box;
  padding: 14px 10px 12px; overflow-y: auto; background: var(--os-glass-side); -webkit-backdrop-filter: var(--os-blur); backdrop-filter: var(--os-blur);
  border-right: 1px solid var(--os-line); font: 500 13.5px/1.25 var(--os-font); color: var(--os-ink); text-align: left;
}
.tbos-side-head { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.tbos-side-head img { flex: none; border-radius: 22.5%; box-shadow: 0 0 0 0.5px var(--os-line), 0 4px 10px -4px rgba(0, 0, 0, 0.3); }
.tbos-side-head b { display: block; font: 700 16px/1.15 var(--os-font); letter-spacing: -0.02em; }
.tbos-side-head small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--os-ink-2); }
.tbos-side-label { padding: 12px 10px 5px; font: 600 11px/1 var(--os-font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--os-ink-2); }
.tbos-side a.tbos-side-row { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.tbos-side a.tbos-side-row svg { flex: none; width: 17px; height: 17px; color: var(--brand, #0369a1); }
.tbos-side a.tbos-side-row:hover { background: var(--os-hover); }
.tbos-side a.tbos-side-row[aria-current] { background: var(--brand, #0369a1); color: var(--on-brand, #fff); }
.tbos-side a.tbos-side-row[aria-current] svg { color: inherit; }
.tbos-side a:focus-visible { outline: 2px solid var(--brand, #0369a1); outline-offset: 1px; }
.tbos-side-foot { margin-top: auto; display: grid; gap: 6px; padding: 14px 4px 0; }
.tbos-side-foot .tbos-side-go { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 38px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 10px; background: var(--brand, #0369a1); color: var(--on-brand, #fff); font: 600 14px/1.15 var(--os-font); text-decoration: none; text-align: center; cursor: pointer; }
.tbos-side-foot .tbos-side-go:hover { filter: brightness(1.08); }
.tbos-side-foot .tbos-side-more { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 32px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 8px; background: transparent; color: var(--os-ink); font: 500 13px/1.15 var(--os-font); text-decoration: none; cursor: pointer; }
.tbos-side-foot :is(.tbos-side-go, .tbos-side-more) svg { width: 16px; height: 16px; flex: none; }
.tbos-side-foot [hidden] { display: none; }
.tbos-side-foot .tbos-side-more:hover { background: var(--os-hover); }

/* A short screen (a small laptop): the gaps tighten and the bar's rows are smaller (it scrolls if it must). */
html.tbos-short { --os-gap: 6px; }
html.tbos-short.tbos-desktop { --app-vh: calc(var(--os-h) - var(--os-bar-h)); }
html.tbos-short.tbos-desktop .tbos-rail { --row: 36px; --ico: 24px; padding: 6px; }

/* Fill the screen: the window takes everything under the menu bar; the bar waits just past the left edge and
   slides in when the pointer reaches the first 8 px of the screen (or the keyboard reaches it). */
html.tbos-fill.tbos-desktop .tbos-win { top: var(--os-menubar-h); left: 0; width: 100vw; height: calc(100dvh - var(--os-menubar-h)); border-radius: 0; box-shadow: none; }
html.tbos-fill.tbos-desktop .tbos-rail { overflow: visible; transform: translateX(calc(-100% - var(--os-gap) - 4px)); }
html.tbos-fill.tbos-desktop .tbos-rail:hover, html.tbos-fill.tbos-desktop .tbos-rail:focus-within, html.tbos-fill.tbos-away.tbos-desktop .tbos-rail { transform: none; }
html.tbos-fill .tbos-rail::before { content: ''; position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--os-gap) - 10px); width: calc(var(--os-gap) + 10px); }

/* ---------- Other apps as windows (TINL-1391) ----------
   <section class="tbos-xwin">: a title bar, the app's own page in a frame, a click catcher and a resize grip.
   Sized and placed in pixels by tb-os.js. Only on the desktop. */
.tbos-xwin { display: none; }
html.tbos-desktop .tbos-xwin {
  position: fixed; z-index: 12; display: flex; flex-direction: column; border-radius: var(--os-radius); overflow: clip; box-shadow: var(--os-shadow); background: var(--os-win-bg);
}
html.tbos-desktop .tbos-xwin[hidden] { display: none; }
html.tbos-desktop .tbos-xwin:not(.is-front), html.tbos-desktop .tbos-win:not(.is-front):not(:only-of-type) { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 18px 44px -18px rgba(12, 22, 34, 0.38); }
html.tbos-desktop .tbos-xwin.is-max { top: var(--os-menubar-h) !important; left: var(--os-rail-space) !important; width: calc(100vw - var(--os-rail-space)) !important; height: calc(100dvh - var(--os-menubar-h)) !important; border-radius: 0; }
.tbos-xframe { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--os-win-bg); }
/* the first window showing its next page inside itself (tb-os.js, "loads its next page INSIDE itself") */
html.tbos-desktop .tbos-body[hidden], .tbos-mainframe[hidden] { display: none; }
.tbos-xcatch { position: absolute; inset: var(--os-bar-h) 0 0 0; display: none; }
html.tbos-desktop .tbos-xwin:not(.is-front) .tbos-xcatch, html.tbos-dragging .tbos-xcatch { display: block; }
html.tbos-dragging, html.tbos-dragging * { user-select: none; -webkit-user-select: none; }
.tbos-xgrip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; z-index: 2; }
html.tbos-desktop .tbos-xwin.is-max .tbos-xgrip { display: none; }
.tbos-xtools { flex: none; display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 190px; }
.tbos-xtools .tbos-step.is-done { color: var(--success, #15803d); }
html.tbos-desktop .tbos-xwin.tbos-xin { animation: tbos-in 320ms var(--os-ease) backwards; }
/* a window that is not in front is quieter: its lights are grey, as on a Mac */
html.tbos-desktop .tbos-xwin:not(.is-front) .tbos-light::before, html.tbos-desktop .tbos-win:not(.is-front) .tbos-bar:not(.tbos-xbar) .tbos-light::before { background: rgba(128, 128, 136, 0.42); }
html.tbos-desktop .tbos-xwin:not(.is-front) .tbos-title, html.tbos-desktop .tbos-win:not(.is-front) > :is(.tbos-bar, .tbos-barslot > .tbos-bar) .tbos-title { opacity: 0.6; }

/* ---------- This page as the content of an app window (html.tbos-framed) ----------
   Framed by another TruBible page's desktop: the in-window layout, with no desktop of its own. The window's
   frame and title bar are drawn by the desktop outside. Side panels are solid: blur cannot see through a frame. */
html.tbos-framed, html.tbos-framed body { background: var(--os-win-bg) !important; }
html.tbos-framed { --app-vh: 100dvh; --os-glass-side: #eef0f2; --os-blur: none; }
html.tbos-framed[data-theme="dark"] { --os-glass-side: #1c1e23; }
html.tbos-framed .tbos-menubar, html.tbos-framed .tbos-rail, html.tbos-framed .tbos-desk, html.tbos-framed .tbos-bar, html.tbos-framed .tbos-xwin { display: none !important; }
html.tbos-framed .tbos-win { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100dvh !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important; }

/* ---------- Title bar ---------- */
/* the bar's slot on a Next.js page (TINL-1430): the bar lays out as the window's own child */
.tbos-barslot { display: contents; }
html.tbos-desktop .tbos-bar {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 12px; height: var(--os-bar-h); padding: 0 10px 0 9px; box-sizing: border-box;
  font: 600 13px/1 var(--os-font); color: var(--os-ink); background: var(--os-glass-strong); -webkit-backdrop-filter: var(--os-blur); backdrop-filter: var(--os-blur);
  border-bottom: 1px solid var(--os-line); user-select: none; -webkit-user-select: none; cursor: default; touch-action: none;
}
.tbos-left { display: inline-flex; align-items: center; flex: none; gap: 2px; }
.tbos-lights { display: inline-flex; flex: none; margin-right: 10px; }
.tbos-step { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--os-ink-2); display: grid; place-items: center; cursor: default; }
.tbos-step svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tbos-step:hover:not(:disabled) { background: var(--os-hover); color: var(--os-ink); }
.tbos-step:disabled { opacity: 0.32; }
.tbos-step:focus-visible { outline: 2px solid var(--brand, #0369a1); outline-offset: 1px; }
.tbos-light { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: default; }
.tbos-light::before { content: ''; position: absolute; inset: 5.5px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.tbos-light.is-close::before { background: #ff5f57; }
.tbos-light.is-min::before { background: #febc2e; }
.tbos-light.is-zoom::before { background: #28c840; }
.tbos-light::after { content: ''; position: absolute; inset: 0; opacity: 0; background: center / 8px 8px no-repeat; transition: opacity 100ms; }
.tbos-lights:hover .tbos-light::after, .tbos-light:focus-visible::after { opacity: 0.72; }
.tbos-light.is-close::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.4 1.4l5.2 5.2M6.6 1.4L1.4 6.6' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tbos-light.is-min::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.2 4h5.6' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tbos-light.is-zoom::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.6 4.4V1.6h2.8zM6.4 3.6v2.8H3.6z' fill='%23000'/%3E%3C/svg%3E"); }
.tbos-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.tbos-title img { flex: none; border-radius: 22.5%; }
.tbos-title b { font-weight: 650; white-space: nowrap; }
.tbos-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--os-ink-2); font-weight: 500; }
.tbos-sub:not(:empty)::before { content: '—'; margin-right: 8px; opacity: 0.55; }
.tbos-find {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; min-width: 190px; padding: 0 8px 0 9px; border: 0; border-radius: 8px;
  background: var(--os-hover); color: var(--os-ink-2); font: 500 13px/1 var(--os-font); cursor: pointer;
}
.tbos-find span { flex: 1; text-align: left; }
.tbos-find kbd { font: 500 11px/1 var(--os-font); color: var(--os-ink-2); padding: 3px 5px; border-radius: 5px; box-shadow: 0 0 0 0.5px var(--os-line); }
.tbos-find:hover { color: var(--os-ink); }
/* the lights and the search field are the same width, so the title sits in the true centre */
html.tbos-desktop .tbos-bar .tbos-left { min-width: 190px; }
html.tbos-desktop .tbos-bar .tbos-find[hidden] { display: inline-flex; visibility: hidden; }

/* ---------- The left bar (TINL-1446) ----------
   The same glass as Ethan.Bible's bar (test/osDesktopDesign.test.js). Each app: its icon and name; the app in front
   is highlighted by one pill that glides between rows (tb-os.js railHi()); an open app has a dot. */
html.tbos-desktop .tbos-rail {
  --row: 44px; --ico: 30px;
  position: fixed; z-index: 50; top: calc(var(--os-menubar-h) + var(--os-gap)); bottom: var(--os-gap); left: var(--os-gap); width: var(--os-rail-w);
  display: flex; flex-direction: column; gap: 2px; padding: 8px; box-sizing: border-box; overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain;
  border-radius: 18px; background: var(--os-glass); -webkit-backdrop-filter: var(--os-blur); backdrop-filter: var(--os-blur); box-shadow: var(--os-rail-shadow);
  font: 500 13.5px/1.2 var(--os-font); color: var(--os-ink);
  transition: transform 320ms var(--os-ease);
}
.tbos-rail::-webkit-scrollbar { display: none; }
.tbos-rail-hi {
  position: absolute; z-index: 0; top: 0; left: 8px; right: 8px; height: var(--hi-h, var(--row)); border-radius: 11px; pointer-events: none;
  background: var(--brand, #0369a1); box-shadow: 0 8px 18px -10px var(--brand, #0369a1); opacity: 0;
  transform: translateY(var(--hi-y, 0px)); transition: transform 420ms var(--os-ease), height 420ms var(--os-ease), opacity 200ms;
}
html.tbos-short.tbos-desktop .tbos-rail-hi { left: 6px; right: 6px; }
.tbos-rail.has-hi .tbos-rail-hi { opacity: 1; }
.tbos-rail.is-still .tbos-rail-hi { transition: none; }
.tbos-rail-item {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 11px; min-height: var(--row); padding: 0 8px; box-sizing: border-box;
  border-radius: 11px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background 160ms, color 220ms;
}
.tbos-rail-item img { flex: none; width: var(--ico); height: var(--ico); border-radius: 22.5%; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 3px 8px -2px rgba(0, 0, 0, 0.35); transition: transform 240ms var(--os-ease); }
[data-theme="dark"] .tbos-rail-item img, [data-theme="dark"] .tbos-title img, [data-theme="dark"] .tbos-about img { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.28), 0 3px 8px -2px rgba(0, 0, 0, 0.5); }
.tbos-rail-item:hover { background: var(--os-hover); }
.tbos-rail-item:hover img { transform: scale(1.08); }
.tbos-rail-item:active img { transform: scale(0.94); }
.tbos-rail-item.is-front { color: var(--on-brand, #fff); }
.tbos-rail-item.is-front:hover { background: transparent; }
.tbos-rail-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* an open app: a dot at the end of its row */
.tbos-rail-item::after { content: ''; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity 200ms; }
.tbos-rail-item.is-open::after { opacity: 0.6; }
.tbos-rail-item.is-bounce img { animation: tbos-nudge 520ms var(--os-ease); }
.tbos-rail-sep { flex: none; height: 1px; margin: 6px 10px; background: var(--os-line); }
/* the last group (Settings) sits at the bottom of the bar, as on a Mac's sidebar */
.tbos-rail-sep:nth-last-child(2) { margin-top: auto; }
/* icons only: the row is the icon; its name is ONE tip beside it (span.tbos-tip, outside the bar: tb-os.js tipFor()) */
.tbos-tip { display: none; }
html.tbos-desktop .tbos-tip {
  display: block; position: fixed; z-index: 57; transform: translate(-6px, -50%); padding: 5px 10px; border-radius: 7px;
  background: var(--os-glass-strong); color: var(--os-ink); font: 500 12.5px/1 var(--os-font); white-space: nowrap; box-shadow: var(--os-pop-shadow);
  opacity: 0; pointer-events: none; transition: opacity 120ms, transform 160ms var(--os-ease);
}
html.tbos-desktop .tbos-tip.is-on { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1199px) {
  .tbos-rail-item { justify-content: center; padding: 0; }
  .tbos-rail-name { display: none; }
  .tbos-rail-item::after { right: 2px; width: 4px; height: 4px; margin-top: -2px; }
  .tbos-rail-sep { margin: 6px 8px; }
}

/* ---------- The desktop with no window on it ---------- */
html.tbos-desktop.tbos-away .tbos-desk {
  display: grid; position: fixed; z-index: 5; inset: var(--os-menubar-h) 0 0 var(--os-rail-space); place-content: center; justify-items: center; gap: 4px;
  color: var(--os-desk-ink); font-family: var(--os-font); text-align: center; animation: tbos-fade 420ms ease-out both;
}
.tbos-desk-time { font: 600 clamp(72px, 10vw, 132px)/1 var(--os-font); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.tbos-desk-date { margin: 0 0 26px; font: 500 20px/1.3 var(--os-font); }
.tbos-desk-open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 9px; border: 0; border-radius: 22px;
  background: var(--os-glass-strong); -webkit-backdrop-filter: var(--os-blur); backdrop-filter: var(--os-blur); color: var(--os-ink);
  font: 600 14px/1 var(--os-font); cursor: pointer; box-shadow: var(--os-pop-shadow); transition: transform 160ms var(--os-ease);
}
.tbos-desk-open img { border-radius: 22.5%; }
.tbos-desk-open:hover { transform: translateY(-1px) scale(1.02); }

/* ---------- About ---------- */
html.tbos-desktop .tbos-about {
  display: grid; justify-items: center; gap: 6px; position: fixed; z-index: 57; top: 50%; left: 50%; width: 340px; margin: -220px 0 0 -170px; padding: 44px 26px 20px; box-sizing: border-box;
  border-radius: 14px; background: var(--os-glass-strong); -webkit-backdrop-filter: var(--os-blur); backdrop-filter: var(--os-blur); box-shadow: var(--os-shadow);
  color: var(--os-ink); font: 400 13.5px/1.45 var(--os-font); text-align: center; animation: tbos-pop 220ms var(--os-ease) both; outline: none;
}
.tbos-about .tbos-lights { position: absolute; top: 8px; left: 8px; margin: 0; }
.tbos-about > img { border-radius: 22.5%; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4); }
.tbos-about h2 { margin: 8px 0 0; font: 700 22px/1.1 var(--os-font); letter-spacing: -0.02em; }
.tbos-about p { margin: 0; color: var(--os-ink-2); }
.tbos-about-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; margin: 14px 0 10px; }
.tbos-about-apps a { display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border-radius: 10px; color: var(--os-ink); font-size: 11.5px; line-height: 1.2; text-decoration: none; }
.tbos-about-apps a:hover { background: var(--os-hover); }
.tbos-about-apps img { border-radius: 22.5%; }
.tbos-about-foot { font-size: 12px; }
.tbos-about-foot a { color: inherit; }

/* ---------- Moving between pages of one site: the desktop stays, the content changes ----------
   The owner: "page stay the same but url change … don't feel like the page got refresh". Every link is still
   a real address that can be copied. With the browser's page transitions (Chrome, Edge, Safari 18.2+) the old
   page stays on screen until the next one is ready, then the two are cross-faded as ONE picture, evenly:
   every pixel that is the same on both pages (the wallpaper, the menu bar, the left bar, the window's frame, a side
   panel) does not change at all, and only what differs fades. No part is carried separately on purpose: a
   glass part taken out of the picture loses the blur behind it for the length of the fade (measured: the
   left bar and the title bar flickered). The window does not "open" again either (html.tbos-stay, set by
   tb-os.js when you came from the same site). */
@view-transition { navigation: auto; }
/* ONE animation: the old picture stays whole underneath and the new one fades in over it. For two opaque
   pictures that is exactly an even cross-fade, so a pixel that is the same in both keeps its value. It used to
   be two fades (old out, new in, added with plus-lighter): on a busy computer they fell out of step, the old
   one was gone while the new one was still half there, and the whole screen dimmed for a frame (TINL-1382,
   seen in the browser's own screen frames: untracked/goal/os-stay.js). One animation cannot fall out of step
   with itself: a late new picture only shows the old one longer. Not during the Light/Dark circle (theme.js). */
html.tbos-desktop:not(.tb-theme-switching)::view-transition-old(root) { animation: none; opacity: 1; mix-blend-mode: normal; }
html.tbos-desktop:not(.tb-theme-switching)::view-transition-new(root) { animation: tbos-vt-in 200ms linear both; mix-blend-mode: normal; }
@keyframes tbos-vt-in { from { opacity: 0; } }
html.tbos-stay.tbos-desktop .tbos-win:not(.tbos-in):not(.tbos-out) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html.tbos-desktop:not(.tb-theme-switching)::view-transition-old(root) { animation: none; opacity: 0; }
  html.tbos-desktop:not(.tb-theme-switching)::view-transition-new(root) { animation: none; }
}

/* ---------- Motion ---------- */
@keyframes tbos-in { from { opacity: 0; transform: scale(0.965) translateY(10px); } }
@keyframes tbos-out { to { opacity: 0; transform: scale(0.08); } }
@keyframes tbos-pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
@keyframes tbos-fade { from { opacity: 0; } }
@keyframes tbos-nudge { 0%, 100% { transform: none; } 35% { transform: translateX(6px) scale(1.06); } 70% { transform: translateX(-1px); } }
@keyframes tbos-slide { from { opacity: 0; transform: translateX(-40px); } }
@keyframes tbos-row { from { opacity: 0; transform: translateX(-12px); } }
@keyframes tbos-drop { from { opacity: 0; transform: translateY(-100%); } }
/* the first page of a visit: the desktop arrives, then the window opens */
html.tbos-boot.tbos-desktop .tbos-menubar { animation: tbos-drop 520ms var(--os-ease) both; }
html.tbos-boot.tbos-desktop .tbos-rail { animation: tbos-slide 620ms 100ms var(--os-ease) both; }
html.tbos-boot.tbos-desktop .tbos-rail-item { animation: tbos-row 460ms var(--os-ease) both; animation-delay: calc(220ms + var(--i, 0) * 26ms); }
html.tbos-boot.tbos-desktop .tbos-win { animation-delay: 260ms; animation-duration: 520ms; }
.tbos-bar.is-moving { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  html.tbos-desktop .tbos-win, html.tbos-desktop .tbos-menubar, html.tbos-desktop .tbos-rail, html.tbos-desktop .tbos-menu, html.tbos-desktop .tbos-about,
  html.tbos-desktop.tbos-away .tbos-desk, .tbos-rail-item, .tbos-rail-item.is-bounce img { animation: none !important; }
  .tbos-rail-item, .tbos-rail-item img, .tbos-rail-hi, html.tbos-desktop .tbos-rail, .tbos-tip, .tbos-desk-open { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --os-glass: #f3f4f6; --os-glass-strong: #fafafb; --os-glass-side: #eef0f2; --os-blur: none; }
  [data-theme="dark"] { --os-glass: #1f2227; --os-glass-strong: #25272c; --os-glass-side: #1c1e23; }
}
@media (forced-colors: active) {
  html.tbos-desktop .tbos-menubar, html.tbos-desktop .tbos-rail, html.tbos-desktop .tbos-win, html.tbos-desktop .tbos-menu { border: 1px solid CanvasText; }
  .tbos-rail-item.is-front { outline: 2px solid Highlight; }
  .tbos-light::before { forced-color-adjust: none; }
}
@media print {
  html.tbos-desktop, html.tbos-desktop body { height: auto; overflow: visible; background: none; }
  html.tbos-desktop .tbos-menubar, html.tbos-desktop .tbos-rail, html.tbos-desktop .tbos-bar, html.tbos-desktop .tbos-desk { display: none; }
  html.tbos-desktop .tbos-win { position: static; width: auto; height: auto; box-shadow: none; overflow: visible; }
  html.tbos-desktop .tbos-body { overflow: visible; }
}

/* =====================================================================================================================
   FOLIO (TINL-1450, owner Nov 16 2026: "Forget about MacOS beautiful style … Suprise me. Don't make it look like a
   regular AI design."). On a computer: no wallpaper, menu bar, window chrome or colourful app tiles. A bound book:
   - the BINDING: a full-height navigation in warm ink beside the white page;
   - the RIBBON: a satin bookmark in the accent that hangs from the top edge down to the app you are in, and glides
     to the next one (railHi() places it; a page change carries it across, tb-os.js "fo_hi");
   - a RUNNING HEAD over the page (the app in small capitals, then the page), as in a printed book;
   - line icons in one ink; the serif wordmark. Same look on Ethan.Bible (docs/folio.md, test/osDesktopDesign.test.js).
   The window keeps its whole contract (#tbos-win, #tbos-body, --app-vh, .tbos-barslot): it just sits flush beside
   the binding, so every app's *-os.css works unchanged. Never a transform, filter or blur on the window at rest.
   ===================================================================================================================== */
/* Folio's serif, self-hosted (Fraunces 600 upright, SIL OFL: public/os/fonts/OFL.txt): a page that loads only Fraunces
   italic (Connect) set the wordmark in italic. Latin, Latin-extended and Vietnamese; Chinese and Korean keep the sans. */
@font-face { font-family: 'TB Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url(/os/fonts/fraunces-600-vietnamese.woff2?v=1) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'TB Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url(/os/fonts/fraunces-600-latin-ext.woff2?v=1) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'TB Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url(/os/fonts/fraunces-600-latin.woff2?v=1) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html.tbos-folio {
  --fo-w: 256px;
  --fo-bind: #1b1a17;                          /* the binding, warm ink */
  --fo-ink: #f5f2eb;                           /* the app you are in, the person's name */
  --fo-ink-2: #cdc8bd;                         /* the other apps (10:1 on the binding) */
  --fo-ink-3: #959086;                         /* group labels, icons at rest (5.4:1) */
  --fo-line: rgba(245, 242, 235, 0.09);
  --fo-hover: rgba(245, 242, 235, 0.055);
  --fo-here: rgba(245, 242, 235, 0.09);
  --fo-accent: #7cc7ee;                        /* TruBible's accent as it reads on ink (tokens.css, Dark) */
  --fo-gutter: rgba(20, 16, 10, 0.16);         /* the page curving into the binding */
  --fo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fo-serif: 'TB Serif', 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --fo-sans: var(--font-body, 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif);
  /* the window, flush: no menu bar, no gap, no corners, no shadow; its room starts where the binding ends */
  --os-menubar-h: 0px; --os-gap: 0px; --os-radius: 0px; --os-shadow: none; --os-bar-h: 48px;
  --os-rail-space: var(--fo-w); --os-w: calc(100vw - var(--fo-w)); --os-h: 100dvh;
  --os-blur: none; --os-glass-strong: var(--bg-elevated, #fff); --os-glass-side: var(--bg-subtle, #f7f7f6);
  --os-pop-shadow: 0 0 0 1px var(--border, #e8e8e5), 0 18px 40px -16px rgba(20, 16, 10, 0.32);
}
html.tbos-folio.tbos-compact { --fo-w: 76px; }
html.tbos-folio[data-theme="dark"] {
  --fo-bind: #141311; --fo-line: rgba(245, 242, 235, 0.08); --fo-gutter: rgba(0, 0, 0, 0.5);
  --os-pop-shadow: 0 0 0 1px var(--border, #2a2a2d), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
}
html.tbos-folio.tbos-desktop { background: var(--fo-bind); }
html.tbos-folio .tbos-menubar, html.tbos-folio .tbos-desk, html.tbos-folio .tbos-xwin { display: none !important; }

/* ---------- the page ---------- */
html.tbos-folio.tbos-desktop .tbos-win { left: var(--fo-w); top: 0; width: calc(100vw - var(--fo-w)); height: 100dvh; animation: none; transition: left 280ms var(--fo-ease), width 280ms var(--fo-ease); }
html.tbos-folio.tbos-desktop .tbos-win::after {   /* the gutter: a soft shade where the page meets the binding (not a gradient fill: a shadow) */
  content: ''; position: absolute; z-index: 40; inset: 0 auto 0 0; width: 1px; pointer-events: none; box-shadow: 0 0 18px 3px var(--fo-gutter);
}
html.tbos-folio[data-theme="dark"].tbos-desktop .tbos-win { box-shadow: inset 1px 0 0 rgba(245, 242, 235, 0.06); }
html.tbos-folio.tbos-leaving .tbos-win { opacity: 0.82; }

/* the running head */
html.tbos-folio.tbos-desktop .tbos-bar {
  height: 48px; gap: 12px; padding: 0 28px; background: var(--os-win-bg); border-bottom: 1px solid var(--border, #e8e8e5);
  font: 600 14px/1 var(--fo-sans); color: var(--text, #0d0d0d); cursor: auto; touch-action: auto; user-select: auto; -webkit-user-select: auto;
}
html.tbos-folio .tbos-bar .tbos-left, html.tbos-folio .tbos-bar .tbos-find, html.tbos-folio .tbos-title img { display: none !important; }
html.tbos-folio .tbos-title { justify-content: flex-start; gap: 0; pointer-events: auto; }
html.tbos-folio .tbos-title b { font: 650 10.5px/1 var(--fo-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted, #5c5c5c); }
html.tbos-folio .tbos-sub { color: var(--text, #0d0d0d); font-weight: 600; letter-spacing: -0.005em; }
html.tbos-folio .tbos-sub:not(:empty)::before { content: ''; display: inline-block; width: 22px; height: 1px; margin: 0 12px 0 14px; vertical-align: middle; background: currentColor; opacity: 0.28; }

/* side panels inside a page (introductions, Settings, the team page): paper, not glass */
html.tbos-folio.tbos-desktop .tbos-side { background: var(--bg-subtle, #f7f7f6); border-right: 1px solid var(--border, #e8e8e5); font-family: var(--fo-sans); }
html.tbos-folio.tbos-desktop .tbos-side-head img { box-shadow: none; }

/* ---------- the binding ---------- */
html.tbos-folio.tbos-desktop .tbos-rail {
  --row: 38px; top: 0; bottom: 0; left: 0; width: var(--fo-w); gap: 0; padding: 0 12px 12px 18px; border-radius: 0; box-shadow: none;
  background: var(--fo-bind); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--fo-ink-2);
  font: 500 14px/1.2 var(--fo-sans); text-shadow: none; transition: width 280ms var(--fo-ease), padding 280ms var(--fo-ease);
}
html.tbos-folio[data-theme="dark"].tbos-desktop .tbos-rail { box-shadow: inset -1px 0 0 var(--fo-line); }
.fo-brand { display: none; }
html.tbos-folio .fo-brand {
  flex: none; display: flex; align-items: center; gap: 11px; height: 68px; padding: 0 8px; margin: 0 0 2px; color: var(--fo-ink); text-decoration: none; border-radius: 10px;
}
html.tbos-folio .fo-brand img { flex: none; width: 26px; height: 26px; }
html.tbos-folio .fo-brand b { font: 600 21px/1 var(--fo-serif); letter-spacing: -0.012em; white-space: nowrap; font-optical-sizing: auto; }
html.tbos-folio .fo-find {
  flex: none; display: flex; align-items: center; gap: 10px; height: 38px; margin: 2px 0 22px; padding: 0 9px 0 11px; box-sizing: border-box;
  border: 1px solid var(--fo-line); border-radius: 10px; background: rgba(245, 242, 235, 0.035); color: var(--fo-ink-3);
  font: 500 13.5px/1 var(--fo-sans); text-align: left; cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms;
}
html.tbos-folio .fo-find[hidden] { visibility: hidden; }   /* its room is kept: nothing below it moves when search arrives */
html.tbos-folio .fo-find svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
html.tbos-folio .fo-find span { flex: 1; white-space: nowrap; overflow: hidden; }
html.tbos-folio .fo-find kbd { font: 600 10.5px/1 var(--fo-sans); color: var(--fo-ink-3); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--fo-line); }
html.tbos-folio .fo-find:hover { background: rgba(245, 242, 235, 0.07); color: var(--fo-ink-2); border-color: rgba(245, 242, 235, 0.14); }
html.tbos-folio .fo-sec { flex: none; display: grid; gap: 1px; margin: 0 0 20px; }
html.tbos-folio .fo-label { margin: 0; padding: 0 10px 9px; font: 650 10.5px/1 var(--fo-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fo-ink-3); white-space: nowrap; }

html.tbos-folio.tbos-desktop .tbos-rail-item {
  min-height: 0; height: var(--row); gap: 12px; padding: 0 10px; border-radius: 9px; color: var(--fo-ink-2); font-weight: 500;
  transition: background 160ms, color 160ms;
}
html.tbos-folio .tbos-rail-item::after { display: none; }
html.tbos-folio .fo-ico { flex: none; display: grid; place-items: center; width: 20px; height: 20px; color: var(--fo-ink-3); transition: color 160ms, transform 260ms var(--fo-ease); }
html.tbos-folio .fo-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
html.tbos-folio .fo-ico-ethan { background: currentColor; -webkit-mask: url(/images/ethan-logo.png) center / 21px no-repeat; mask: url(/images/ethan-logo.png) center / 21px no-repeat; }
html.tbos-folio.tbos-desktop .tbos-rail-item:hover { background: var(--fo-hover); color: var(--fo-ink); }
html.tbos-folio .tbos-rail-item:hover .fo-ico { color: var(--fo-ink); transform: translateX(1px); }
html.tbos-folio.tbos-desktop .tbos-rail-item.is-front, html.tbos-folio.tbos-desktop .tbos-rail-item[aria-current] { background: var(--fo-here); color: var(--fo-ink); font-weight: 600; }
html.tbos-folio .tbos-rail-item.is-front .fo-ico { color: var(--fo-accent); }
html.tbos-folio .tbos-rail-item:focus-visible, html.tbos-folio .fo-nav button:focus-visible, html.tbos-folio .fo-brand:focus-visible { outline: 2px solid var(--fo-accent); outline-offset: 1px; }

/* the ribbon: hangs from the top edge to the app you are in, a swallowtail at its end */
html.tbos-folio.tbos-desktop .tbos-rail-hi {
  left: 0; right: auto; top: 0; width: 10px; border-radius: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.25), inset 1px 0 0 rgba(0, 0, 0, 0.12); transform: none;
  height: calc(var(--hi-y, 0px) + var(--hi-h, 38px) - 4px); background: var(--fo-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
  transition: height 620ms var(--fo-ease), opacity 200ms;
}
html.tbos-folio.tbos-compact.tbos-desktop .tbos-rail-hi { width: 8px; }

/* the foot: Settings, the person, and four tools */
html.tbos-folio .fo-foot { margin-top: auto; flex: none; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--fo-line); }
html.tbos-folio .fo-me:empty { display: none; }
html.tbos-folio .fo-person {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--fo-ink);
  font: inherit; text-align: left; cursor: pointer; transition: background 160ms;
}
html.tbos-folio .fo-person:hover, html.tbos-folio .fo-person[aria-expanded="true"] { background: var(--fo-hover); }
html.tbos-folio .fo-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #3a3731; color: var(--fo-ink); font: 650 13px/1 var(--fo-sans); }
html.tbos-folio .fo-av img { width: 100%; height: 100%; object-fit: cover; }
html.tbos-folio .fo-who { flex: 1; min-width: 0; display: grid; gap: 3px; }
html.tbos-folio .fo-who b { font: 600 13.5px/1.15 var(--fo-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.tbos-folio .fo-who small { font: 500 11.5px/1.15 var(--fo-sans); color: var(--fo-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.tbos-folio .fo-person > svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--fo-ink-3); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html.tbos-folio .fo-signin {
  width: 100%; height: 40px; border: 0; border-radius: 10px; background: var(--fo-ink); color: var(--fo-bind); font: 650 14px/1 var(--fo-sans); cursor: pointer; transition: transform 140ms var(--fo-ease), opacity 160ms;
}
html.tbos-folio .fo-signin:hover { opacity: 0.92; } html.tbos-folio .fo-signin:active { transform: scale(0.98); }
html.tbos-folio .fo-tools { display: flex; gap: 2px; padding: 2px 2px 0; }
html.tbos-folio .fo-tool {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--fo-ink-3); cursor: pointer; transition: background 160ms, color 160ms;
}
html.tbos-folio .fo-tool:hover, html.tbos-folio .fo-tool[aria-expanded="true"] { background: var(--fo-hover); color: var(--fo-ink); }
html.tbos-folio .fo-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.tbos-folio .fo-more { display: none; }
html.tbos-folio .fo-theme svg + svg, html.tbos-folio[data-theme="dark"] .fo-theme svg:first-child { display: none; }
html.tbos-folio[data-theme="dark"] .fo-theme svg + svg { display: block; }

/* folded to its icons (the person's choice, and every screen under 1200 px): each name is ONE tip beside it */
html.tbos-folio.tbos-compact.tbos-desktop .tbos-rail { padding: 0 12px 12px 14px; }
html.tbos-folio.tbos-compact :is(.tbos-rail-name, .fo-brand b, .fo-find span, .fo-find kbd, .fo-who, .fo-person > svg) { display: none; }
html.tbos-folio.tbos-compact.tbos-desktop :is(.tbos-rail-item, .fo-find, .fo-brand, .fo-person) { justify-content: center; padding: 0; }
html.tbos-folio.tbos-compact .fo-label { height: 1px; margin: 0 10px 12px; padding: 0; overflow: hidden; color: transparent; background: var(--fo-line); }
html.tbos-folio.tbos-compact .fo-person { height: 44px; }
html.tbos-folio.tbos-compact .fo-tools { flex-direction: column; align-items: center; }
html.tbos-folio.tbos-compact .fo-tools > :not(.fo-theme, .fo-more) { display: none; }   /* folded: Appearance, and More for the rest */
html.tbos-folio.tbos-compact .fo-more { display: grid; }
html.tbos-folio.tbos-compact.tbos-desktop .tbos-rail { --row: 34px; }
html.tbos-folio.tbos-compact .fo-brand { height: 56px; }
html.tbos-folio.tbos-compact .fo-find { margin-bottom: 14px; }
html.tbos-folio.tbos-compact .fo-sec { margin-bottom: 10px; }
html.tbos-folio.tbos-compact .fo-label { margin-bottom: 10px; }
html.tbos-folio.tbos-compact .fo-foot { gap: 2px; padding-top: 8px; }
html.tbos-folio.tbos-desktop .tbos-tip {
  padding: 7px 11px; border-radius: 8px; background: var(--fo-bind); color: var(--fo-ink); font: 600 12.5px/1 var(--fo-sans);
  box-shadow: 0 0 0 1px var(--fo-line), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

/* a short screen: tighter rows */
html.tbos-folio.tbos-short.tbos-desktop .tbos-rail { --row: 33px; }
html.tbos-folio.tbos-short .fo-brand { height: 54px; }
html.tbos-folio.tbos-short .fo-find { margin-bottom: 14px; }
html.tbos-folio.tbos-short .fo-sec { margin-bottom: 12px; }

/* menus and Controls from the binding: paper, beside it */
html.tbos-folio .tbos-menu { background: var(--bg-elevated, #fff); color: var(--text, #0d0d0d); font-family: var(--fo-sans); border-radius: 12px; padding: 6px; }
html.tbos-folio .tbos-menu.fo-pop { transform-origin: bottom left; }
html.tbos-folio .tbos-menu [role^="menuitem"] { min-height: 34px; padding: 0 12px 0 8px; border-radius: 8px; }
html.tbos-folio .tbos-menu [role^="menuitem"]:hover, html.tbos-folio .tbos-menu [role^="menuitem"]:focus-visible { background: var(--brand-soft, #e8f4fb); color: var(--text, #0d0d0d); }
html.tbos-folio .tbos-menu-sep { background: var(--border, #e8e8e5); }
html.tbos-folio .tbos-tile { background: var(--bg-subtle, #f7f7f6); }
html.tbos-folio .tbos-seg button, html.tbos-folio .tbos-langs button { background: var(--bg-elevated, #fff); color: var(--text, #0d0d0d); box-shadow: 0 0 0 1px var(--border, #e8e8e5); }
html.tbos-folio .tbos-seg button[aria-pressed="true"], html.tbos-folio .tbos-langs button[aria-pressed="true"] { background: var(--brand, #0369a1); color: var(--on-brand, #fff); box-shadow: none; }

/* the first page of a visit: the ribbon drops, the rows settle in (nothing moves under reduced motion) */
@keyframes fo-drop { from { height: 0; } }
@keyframes fo-rise { from { opacity: 0; transform: translateY(6px); } }
html.tbos-folio.tbos-boot.tbos-desktop .tbos-rail-hi { animation: fo-drop 900ms var(--fo-ease) 120ms backwards; }
html.tbos-folio.tbos-boot.tbos-desktop :is(.tbos-rail-item, .fo-label) { animation: fo-rise 420ms var(--fo-ease) backwards; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
@media (prefers-reduced-motion: reduce) {
  html.tbos-folio .tbos-rail-hi, html.tbos-folio .tbos-rail, html.tbos-folio .tbos-win { transition: none !important; animation: none !important; }
  html.tbos-folio :is(.tbos-rail-item, .fo-label) { animation: none !important; }
}

/* the page's title in the binding's serif, as a printed book sets its chapter heads (TINL-1450). Chinese and Korean
   keep the sans: the serif has no glyphs for them. */
html.tbos-folio:is(:lang(zh), :lang(ko)) { --fo-serif: var(--fo-sans); }
html.tbos-folio .tbos-body :is(.page-header h1, #welcome-text, #tab-title, #tf-title, .wp-greet h1) {
  font-family: var(--fo-serif); font-weight: 600; letter-spacing: -0.022em; font-optical-sizing: auto; font-variation-settings: 'SOFT' 30;
}

/* folded on a short screen (a 1024 × 700 laptop): everything fits without scrolling. Search is still Ctrl K and in More. */
html.tbos-folio.tbos-compact.tbos-short.tbos-desktop .tbos-rail { --row: 32px; }
html.tbos-folio.tbos-compact.tbos-short .fo-find { display: none; }
html.tbos-folio.tbos-compact.tbos-short .fo-brand { height: 52px; margin-bottom: 4px; }
html.tbos-folio.tbos-compact.tbos-short .fo-sec { margin-bottom: 8px; }
html.tbos-folio.tbos-compact.tbos-short .fo-label { margin-bottom: 8px; }
html.tbos-folio.tbos-compact.tbos-short .fo-person { height: 38px; }

/* the binding's links are never underlined, whatever the page's own link rules say (Connect underlines every `.cn a`),
   and the binding is always ink: its controls and scroll bars are drawn dark (TINL-1450) */
html.tbos-folio .fo-nav a, html.tbos-folio .fo-nav a:visited, html.tbos-folio .fo-nav a:hover { text-decoration: none; }
html.tbos-folio .fo-nav { color-scheme: dark; }

/* ---------- a page's own sections, hung under its app in the binding; its actions at the right of the running head ----------
   (TINL-1450; the owner: "sub menu on left under the current menu … action should button on right"). tb-os.js adopt()
   moves [data-fo-sub] / .tbos-side here (.fo-subslot) and [data-fo-actions] / .tbos-side-foot to the running head (.fo-acts).
   Their own scripts keep working: they are the same elements. Here they take the binding's look. */
html.tbos-folio .fo-subslot { flex: none; margin: 2px 0 10px 19px; padding: 4px 0 2px 11px; border-left: 1px solid var(--fo-line); }
html.tbos-folio .fo-subslot:empty { display: none; }
html.tbos-folio .fo-subslot :is(.team-side, .settings-nav, .tbos-side, [data-fo-sub]) {
  position: static; display: grid; gap: 1px; width: auto; min-width: 0; height: auto; max-height: none; margin: 0; padding: 0;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible;
  color: var(--fo-ink-2); font: 500 13.5px/1.25 var(--fo-sans); text-align: left;
}
html.tbos-folio .fo-subslot :is(nav, .team-nav-group) { display: grid; gap: 1px; margin: 0; padding: 0; background: none; border: 0; }
html.tbos-folio .fo-subslot :is(a, button):not(.btn-icon) {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; margin: 0; padding: 0 10px; box-sizing: border-box;
  border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--fo-ink-2); font: 500 13.5px/1.2 var(--fo-sans);
  text-align: left; text-decoration: none; cursor: pointer; transition: background 160ms, color 160ms;
}
html.tbos-folio .fo-subslot :is(a, button):not(.btn-icon):hover { background: var(--fo-hover); color: var(--fo-ink); }
html.tbos-folio .fo-subslot :is(a, button):not(.btn-icon):is([aria-current="page"], [aria-current="true"], .active, [aria-selected="true"]) {
  background: var(--fo-here); color: var(--fo-ink); font-weight: 600;
}
html.tbos-folio .fo-subslot svg { flex: none; width: 16px; height: 16px; color: var(--fo-ink-3); stroke-width: 1.75; }
html.tbos-folio .fo-subslot :is([aria-current="page"], [aria-current="true"], .active, [aria-selected="true"]) svg { color: var(--fo-accent); }
html.tbos-folio .fo-subslot :is(.team-nav-label, .tbos-side-label, .settings-nav-label) {
  margin: 10px 0 4px; padding: 0 10px; font: 650 10px/1 var(--fo-sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--fo-ink-3);
}
html.tbos-folio .fo-subslot :is(.tbos-side-head, .team-side-foot) { display: none !important; }
/* the team console: the church, its link, Translation | Meetings, then its sections */
html.tbos-folio .fo-subslot .team-back { color: var(--fo-ink-3); }
html.tbos-folio .fo-subslot .team-ident, html.tbos-folio .fo-subslot .team-ident-inner { margin: 4px 0 2px; padding: 0; background: none; border: 0; box-shadow: none; }
html.tbos-folio .fo-subslot .team-ident-row { display: flex; align-items: center; gap: 9px; padding: 4px 10px; }
html.tbos-folio .fo-subslot .team-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; box-shadow: none; }
html.tbos-folio .fo-subslot .team-ident-name { color: var(--fo-ink); font: 600 13.5px/1.2 var(--fo-sans); }
html.tbos-folio .fo-subslot .team-ident-badges .badge { background: rgba(245, 242, 235, 0.08); color: var(--fo-ink-2); border-color: transparent; }
html.tbos-folio .fo-subslot .team-join { display: flex; align-items: center; gap: 4px; margin: 2px 0 6px; padding: 0 6px 0 10px; color: var(--fo-ink-3); font-size: 12px; }
html.tbos-folio .fo-subslot .team-join > svg { width: 13px; height: 13px; }
html.tbos-folio .fo-subslot .team-join-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fo-ink-3); font-size: 12px; text-decoration: none; }
html.tbos-folio .fo-subslot .team-join .btn-icon { width: 26px; height: 26px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--fo-ink-3); border-radius: 7px; }
html.tbos-folio .fo-subslot .team-join .btn-icon:hover { background: var(--fo-hover); color: var(--fo-ink); }
html.tbos-folio .fo-subslot .team-ws { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 2px 0 6px; padding: 3px; border-radius: 10px; background: rgba(245, 242, 235, 0.05); }
html.tbos-folio .fo-subslot .team-ws .team-ws-btn { justify-content: center; min-height: 30px; padding: 0 6px; font-size: 12.5px; }
html.tbos-folio .fo-subslot .team-ws .team-ws-btn.active { background: rgba(245, 242, 235, 0.12); }
html.tbos-folio .fo-subslot .team-nav-count, html.tbos-folio .fo-subslot .count { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: rgba(245, 242, 235, 0.09); color: var(--fo-ink-2); font-size: 11px; }
html.tbos-folio .fo-subslot .team-delete { color: var(--fo-ink-3); margin-top: 6px; }
html.tbos-folio .fo-subslot .team-delete:hover { color: #fca5a5; }
html.tbos-folio .fo-subslot .team-side[data-ws="meet"] [data-ws="translation"], html.tbos-folio .fo-subslot .team-side[data-ws="translation"] .team-nav [data-ws="meet"],
html.tbos-folio .fo-subslot .team-side:not([data-ws]) .team-nav [data-ws="meet"] { display: none !important; }
html.tbos-folio .fo-subslot .team-side .team-ws [data-ws] { display: flex !important; }
html.tbos-folio.fo-has-sub.tbos-desktop .team-shell { display: block; }   /* its side panel hangs in the binding */

/* the actions: compact pills at the right of the running head */
html.tbos-folio .fo-acts { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; }
html.tbos-folio .fo-acts:empty { display: none; }
html.tbos-folio .fo-acts :is([data-fo-actions], .tbos-side-foot) { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
html.tbos-folio .fo-acts :is([data-fo-actions], .tbos-side-foot).hidden { display: none; }
html.tbos-folio .fo-acts :is(.btn, a, button):not(.btn-icon) { width: auto; min-height: 32px; height: 32px; padding: 0 14px; font-size: 13px; border-radius: 999px; white-space: nowrap; }
html.tbos-folio .fo-acts .btn-icon { width: 32px; height: 32px; min-height: 32px; padding: 0; }
html.tbos-folio .fo-acts [data-hub-lazy] { display: none !important; }   /* search is in the binding */
html.tbos-folio .fo-acts .tbos-side-foot .tbos-side-go { background: var(--brand, #0369a1); color: var(--on-brand, #fff); }

/* folded to icons: no room for a section list; adopt() leaves it in the page */
html.tbos-folio.tbos-compact .fo-subslot { display: none; }
/* the team panel in the binding: no card, no wash, no light borders; idle icons in ink (main-os.css loads later and
   ties, so these carry .tbos-desktop too); its painted side column in the page goes (main-os.css: the 276 px strip) */
html.tbos-folio.tbos-desktop .fo-subslot .team-ident::before { display: none; }
html.tbos-folio.tbos-desktop .fo-subslot :is(.team-ident, .team-ident-inner, .team-join, .team-ws) { background: none; border: 0; box-shadow: none; }
html.tbos-folio.tbos-desktop .fo-subslot .team-ws { background: rgba(245, 242, 235, 0.05); }
html.tbos-folio.tbos-desktop .fo-subslot .team-ws-btn { flex-direction: row; color: var(--fo-ink-2); }
html.tbos-folio.tbos-desktop .fo-subslot .team-ws-btn svg { width: 15px; height: 15px; }
html.tbos-folio.tbos-desktop .fo-subslot .team-ws-btn.active { background: rgba(245, 242, 235, 0.12); color: var(--fo-ink); box-shadow: none; }
html.tbos-folio.tbos-desktop .fo-subslot svg { color: var(--fo-ink-3); }
html.tbos-folio.tbos-desktop .fo-subslot :is(a, button):hover svg { color: var(--fo-ink); }
html.tbos-folio.tbos-desktop .fo-subslot :is([aria-current="page"], [aria-current="true"], .active, [aria-selected="true"]) svg { color: var(--fo-accent); }
html.tbos-folio.tbos-desktop .fo-subslot .team-nav-item.active { background: var(--fo-here); color: var(--fo-ink); }
html.tbos-folio.tbos-desktop .fo-subslot .team-nav-item.active .team-nav-count { background: rgba(245, 242, 235, 0.14); color: var(--fo-ink); }
html.tbos-folio.tbos-desktop .fo-subslot .team-nav-label { color: var(--fo-ink-3); }
html.tbos-folio.tbos-desktop .fo-subslot .team-back { color: var(--fo-ink-3); }
html.tbos-folio.fo-has-sub.tbos-desktop .tbos-body:has(> .team-shell) { background: var(--os-win-bg); }
html.tbos-folio.tbos-desktop .fo-subslot .team-ws-btn { gap: 6px; padding: 0 4px; font-size: 12px; }
html.tbos-folio.tbos-desktop .fo-subslot .team-ws-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* an introduction whose sections hang in the binding draws no top bar of its own (main-os.css hid it only while the panel
   was in the page); the document apps: their list takes the page, their app tile is not repeated */
html.tbos-folio.fo-has-sub.tbos-desktop .tbos-body > .navbar { display: none; }
html.tbos-folio.fo-has-sub.tbos-desktop body { --nav-h: 0px; }
/* a page whose shown panel hangs in the binding keeps no column for a panel it does not show (Meetings' visitors' one) */
html.tbos-folio.fo-has-sub.tbos-desktop :is(.tbos-body, .tbos-split):has(> .tbos-side) { display: block; background: var(--os-win-bg); }
html.tbos-folio.fo-has-sub.tbos-desktop :is(.tbos-body, .tbos-split) > .tbos-side { display: none; }
html.tbos-folio .fo-subslot :is(a, button):not(.btn-icon):not(.team-ws-btn) { justify-content: flex-start; }
/* app page titles in the serif, like the dashboard's: Connect's Today and the Meetings home */
html.tbos-folio .tbos-body :is(.cn-today-top h1), html.tbos-folio.mh-in .tbos-body .mh-hero h1, html.tbos-folio.mh-in .tbos-body .mh-eyebrow { font-family: var(--fo-serif); font-weight: 600; letter-spacing: -0.022em; font-variation-settings: 'SOFT' 30; }

/* ---------- from the page-by-page audit (TINL-1449, Nov 16 2026) ---------- */
/* Create's headline is its page title: the serif */
html.tbos-folio .tbos-body #tc-headline { font-family: var(--fo-serif); font-weight: 600; letter-spacing: -0.022em; font-variation-settings: 'SOFT' 30; }
/* a page's own top bar (logo, Features, Pricing, Login, Start free): the binding is the navigation now; visitors get
   Start free at the right of the running head (tb-os.js) and Sign in at the binding's foot */
html.tbos-folio.tbos-desktop .tbos-body > .navbar { display: none; }
html.tbos-folio.tbos-desktop body { --nav-h: 0px; }
/* a React page's introduction panel (Worship Studio) cannot be moved (adopt()): in Folio it is not drawn, its page is
   painted (it showed the binding's ink through a transparent body: dark text on near-black) */
html.tbos-folio.tbos-desktop #tbos-win[data-barslot] :is(.tbos-body, .tbos-split):has(> .tbos-side) { display: block; background: var(--os-win-bg); }
html.tbos-folio.tbos-desktop #tbos-win[data-barslot] :is(.tbos-body, .tbos-split) > .tbos-side { display: none; }
html.tbos-folio.tbos-desktop #tbos-win[data-barslot] .tbos-body { background: var(--os-win-bg); }
/* a long sub-menu (the home page's sections, Connect's channels) makes the binding scroll: its foot (Settings, the
   person, Light/Dark, Language, Help) stays in view and the groups scroll under it (sweep, Nov 16 2026) */
html.tbos-folio.tbos-desktop .fo-foot { position: sticky; bottom: -12px; z-index: 2; margin-bottom: -12px; padding-bottom: 12px; background: var(--fo-bind); }

/* Folded binding (TINL-1455, owner: "I don't see a way to expand the sidebar back after I collapse it"): the fold button
   stays at the foot when folded and shows the names again (its icon points outward; tb-os.js mark() relabels it) */
/* the sidebar's button at the start of the running head (owner: "an icon on left … on main Content", TINL-1455) */
.fo-side-toggle { display: none; }
html.tbos-folio.tbos-desktop .tbos-bar .fo-side-toggle { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-left: -8px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-muted, #5c5c5c); cursor: pointer; transition: background-color 160ms, color 160ms; }
html.tbos-folio.tbos-desktop .tbos-bar .fo-side-toggle:hover { background: var(--bg-hover, rgba(0, 0, 0, 0.05)); color: var(--text, #0d0d0d); }
html.tbos-folio.tbos-desktop .tbos-bar .fo-side-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
html.tbos-folio .fo-side-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.tbos-folio .fo-side-toggle .fo-ico-unfold, html.tbos-folio.tbos-compact .fo-side-toggle .fo-ico-fold { display: none; }
html.tbos-folio.tbos-compact .fo-side-toggle .fo-ico-unfold { display: block; }

/* Files' document apps as its sub-list (TINL-1455): a chevron on the Files row opens and closes it; folded to icons,
   their icons show under Files while the sub-list is open (in one of them), without the chevron. A page's own section
   list (Files', a document app's) hangs below the whole group (subSlot()). */
html.tbos-folio .fo-parent { position: relative; display: grid; gap: 1px; }
html.tbos-folio .fo-kids-toggle { position: absolute; z-index: 2; top: 0; right: 4px; display: grid; place-items: center; width: 28px; height: var(--row, 38px); padding: 0; border: 0; border-radius: 7px; background: none; color: var(--fo-ink-3); cursor: pointer; transition: background-color 160ms, color 160ms; }
html.tbos-folio .fo-kids-toggle:hover { background: var(--fo-hover); color: var(--fo-ink); }
html.tbos-folio .fo-kids-toggle:focus-visible { outline: 2px solid var(--fo-accent); outline-offset: -2px; }
html.tbos-folio .fo-kids-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--fo-ease); }
html.tbos-folio .fo-parent.is-open .fo-kids-toggle svg { transform: rotate(180deg); }
html.tbos-folio .fo-kids { display: grid; gap: 1px; margin: 1px 0 4px 19px; padding-left: 11px; border-left: 1px solid var(--fo-line); }
html.tbos-folio .fo-kids[hidden] { display: none; }
html.tbos-folio.tbos-desktop .fo-kids .tbos-rail-item { --row: 34px; font-size: 13.5px; }
html.tbos-folio.tbos-compact .fo-kids-toggle { display: none; }
html.tbos-folio.tbos-compact .fo-kids { margin: 0; padding: 0; border: 0; }   /* folded: their icons while open (in one of them) */

/* Bible opens Ethan.Bible in a new tab (TINL-1457): a small arrow says so */
html.tbos-folio .fo-out { margin-left: auto; width: 13px; height: 13px; flex: none; color: var(--fo-ink-3); }
html.tbos-folio .fo-out svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.tbos-folio.tbos-compact .fo-out { display: none; }

/* =====================================================================================================================
   THE ONE APP'S SIDEBAR (TINL-1460, owner Nov 16 2026: "Copy exactly Teams sidebar … On top TruBible and logo, the
   search or ask, the button new Chat … a menu Church Translation, Calendar, Meetings, Worship Studio, Files. Then
   Favorites, Chats"). Folio's binding keeps its look (ink, the ribbon, the serif wordmark); its CONTENT follows Teams:
   the brand with New chat beside it, search, the church's apps, then Favorites and Chats, which scroll between the
   top and the foot. The conversation rows (.tbc-*) are drawn by tb-os.js chatsHtml() and are the same rows in the
   chats' own list pane on a phone (connect.css gives them paper colours there).
   ===================================================================================================================== */
html.tbos-folio.tbos-desktop .tbos-rail { overflow: hidden; }
.fo-top, .fo-scroll, .fo-new { display: none; }
html.tbos-folio .fo-top { flex: none; display: flex; align-items: center; gap: 6px; }
html.tbos-folio .fo-top .fo-brand { flex: 1; min-width: 0; }
html.tbos-folio .fo-new {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--fo-line); border-radius: 10px;
  background: rgba(245, 242, 235, 0.035); color: var(--fo-ink-2); cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms, transform 180ms var(--fo-ease);
}
html.tbos-folio .fo-new svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.tbos-folio .fo-new:hover { background: rgba(245, 242, 235, 0.09); color: var(--fo-ink); border-color: rgba(245, 242, 235, 0.16); }
html.tbos-folio .fo-new:active { transform: scale(0.94); }
html.tbos-folio .fo-find { margin-bottom: 14px; }
/* the part that scrolls: the menu and the lists (a thin bar that shows only while it is used) */
html.tbos-folio .fo-scroll {
  flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 -10px 0 -4px; padding: 2px 10px 10px 4px;
  overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color 200ms;
}
html.tbos-folio .fo-scroll:hover, html.tbos-folio .fo-scroll:focus-within { scrollbar-color: rgba(245, 242, 235, 0.2) transparent; }
html.tbos-folio .fo-menu { margin-bottom: 16px; }
html.tbos-folio .fo-foot { margin-top: 0; }
html.tbos-folio .fo-chats-ico { display: none; }   /* only while folded to icons */
html.tbos-folio .fo-chats-ico .tbc-badge { position: absolute; top: 2px; right: 2px; }
html.tbos-folio.tbos-desktop .fo-chats-ico { position: relative; }

/* ---- a section: its label folds it ---- */
html.tbos-folio .tbc-sec { display: block; margin-bottom: 14px; }   /* a block, not Folio's grid: a grid's own column grows with a long name */
.tbc-sec[hidden] { display: none !important; }
.tbc-sec-head { display: flex; align-items: center; gap: 4px; }
.tbc-label { flex: 1; display: flex; align-items: center; gap: 6px; min-height: 28px; margin: 0; padding: 0 10px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 8px; }
html.tbos-folio .tbc-label { padding-bottom: 0; }
html.tbos-folio .tbc-label:hover { color: var(--fo-ink-2); }
.tbc-label svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--fo-ease, ease); }
.tbc-sec.is-shut .tbc-label svg { transform: rotate(-90deg); }
.tbc-sec.is-shut .tbc-list { display: none; }

/* ---- the rows ---- */
.fo-nav { --tbc-ink: var(--fo-ink); --tbc-ink-2: var(--fo-ink-2); --tbc-ink-3: var(--fo-ink-3); --tbc-hover: var(--fo-hover); --tbc-here: var(--fo-here); --tbc-chip: rgba(245, 242, 235, 0.11); --tbc-accent: var(--fo-accent); --tbc-on-accent: #0b1f2b; --tbc-line: var(--fo-line); }
.tbc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.tbc-row {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; box-sizing: border-box; border-radius: 9px;
  color: var(--tbc-ink-2); font: 500 13.5px/1.2 var(--fo-sans, inherit); text-decoration: none; cursor: pointer; transition: background 160ms, color 160ms;
}
/* a row is a link, and a page's own link colours (the chats underline and colour every `.cn a`) must not reach it */
a.tbc-row, a.tbc-row:visited, .cn a.tbc-row { color: var(--tbc-ink-2); text-decoration: none; }
.tbc-church-head a.tbc-row, .tbc-church-head a.tbc-row:visited, .cn .tbc-church-head a.tbc-row { color: var(--tbc-ink); }
a.tbc-row:hover, .cn a.tbc-row:hover { background: var(--tbc-hover); color: var(--tbc-ink); }
a.tbc-row[aria-current="page"], .cn a.tbc-row[aria-current="page"] { color: var(--tbc-ink); }
.tbc-row[aria-current="page"] { background: var(--tbc-here); color: var(--tbc-ink); font-weight: 600; }
.tbc-row.is-unread .tbc-name { color: var(--tbc-ink); font-weight: 650; }
.tbc-row:focus-visible, .tbc-more:focus-visible, .tbc-label:focus-visible { outline: 2px solid var(--tbc-accent); outline-offset: 1px; }
.tbc-av {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: var(--tbc-chip) center / cover no-repeat; color: var(--tbc-ink); font: 650 9.5px/1 var(--fo-sans, inherit); letter-spacing: 0.02em;
}
.tbc-sq { border-radius: 7px; }
.tbc-av-ethan::before { content: ''; width: 15px; height: 15px; background: var(--tbc-accent); -webkit-mask: url(/images/ethan-logo.png) center / contain no-repeat; mask: url(/images/ethan-logo.png) center / contain no-repeat; }
.tbc-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: var(--tbc-ink-3); }
.tbc-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbc-row[aria-current="page"] .tbc-ico { color: var(--tbc-accent); }
.tbc-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbc-name small { display: block; margin-top: 2px; color: var(--tbc-ink-3); font: 500 11.5px/1.15 var(--fo-sans, inherit); overflow: hidden; text-overflow: ellipsis; }
.tbc-ethan { min-height: 44px; }
.tbc-ethan .tbc-av { width: 28px; height: 28px; margin-left: -2px; }
.tbc-ethan .tbc-av-ethan::before { width: 17px; height: 17px; }
.tbc-badge { flex: none; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--tbc-accent); color: var(--tbc-on-accent); font: 700 10.5px/18px var(--fo-sans, inherit); text-align: center; }
.tbc-badge[hidden] { display: none; }
.tbc-dot { flex: none; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--tbc-accent); }
/* a church: its name (Today), a menu, and its channels on a hairline */
.tbc-church { margin-top: 6px; }
.tbc-church-head { position: relative; display: flex; align-items: center; }
.tbc-church-head .tbc-row { flex: 1; min-width: 0; padding-right: 34px; color: var(--tbc-ink); font-weight: 600; }
.tbc-more {
  position: absolute; right: 3px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--tbc-ink-3); cursor: pointer; opacity: 0; transition: opacity 140ms, background 140ms, color 140ms;
}
.tbc-more svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.tbc-church-head:hover .tbc-more, .tbc-more:focus-visible, .tbc-more[aria-expanded="true"] { opacity: 1; }
.tbc-more:hover, .tbc-more[aria-expanded="true"] { background: var(--tbc-hover); color: var(--tbc-ink); }
@media (hover: none) { .tbc-more { opacity: 1; } }
.tbc-kids { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 1px 0 0 19px; padding-left: 8px; border-left: 1px solid var(--tbc-line); }
.tbc-kids .tbc-row { min-height: 33px; }
/* a row can be pinned from its own menu (right click, or a long press): the mark shows on the favourites */
.tbc-row .tbc-star { flex: none; width: 13px; height: 13px; color: var(--tbc-ink-3); }

/* folded to icons: the lists have no room; one Chats icon carries what is unread */
html.tbos-folio.tbos-compact :is(.tbc-sec, .fo-new) { display: none; }
html.tbos-folio.tbos-compact .fo-chats-ico { display: flex; }
html.tbos-folio.tbos-compact .fo-top { justify-content: center; }
html.tbos-folio.tbos-compact .fo-scroll { margin: 0; padding: 0 0 8px; scrollbar-width: none; }
html.tbos-folio.tbos-compact .fo-menu { margin-bottom: 8px; }

/* the first page of a visit: the rows settle in with the menu */
html.tbos-folio.tbos-boot.tbos-desktop .tbc-row { animation: fo-rise 420ms var(--fo-ease) 260ms backwards; }
@media (prefers-reduced-motion: reduce) { html.tbos-folio .tbc-row, .tbc-label svg, html.tbos-folio .fo-new { animation: none !important; transition: none !important; } }
/* a conversation and its star (shown when the pointer is on the row; always for a favorite on touch screens) */
.tbc-item { position: relative; }
.tbc-fav {
  position: absolute; right: 3px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 8px;
  background: var(--tbc-solid, transparent); color: var(--tbc-ink-3); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 140ms, color 140ms, transform 180ms;
}
.tbc-fav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tbc-fav[aria-pressed="true"] svg { fill: currentColor; }
.tbc-item:hover .tbc-fav, .tbc-fav:focus-visible { opacity: 1; pointer-events: auto; }
.tbc-item:hover .tbc-row { padding-right: 34px; }
.tbc-item:hover :is(.tbc-badge, .tbc-dot) { display: none; }
.tbc-fav:hover { color: var(--tbc-accent); }
.tbc-fav:active { transform: scale(0.88); }
.fo-nav .tbc-fav { --tbc-solid: transparent; }
/* the church's menu and a row's menu: a small paper card */
.tbc-menu {
  position: fixed; z-index: 400; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); padding: 6px; box-sizing: border-box; border-radius: 12px;
  background: var(--bg-elevated, #fff); color: var(--text, #0d0d0d); box-shadow: 0 0 0 1px var(--border, #e8e8e5), 0 18px 40px -16px rgba(20, 16, 10, 0.32);
  font: 500 14px/1.2 var(--font-body, 'Inter', system-ui, sans-serif); animation: tbc-pop 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tbc-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.tbc-menu :is(a, button) {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 12px; box-sizing: border-box; border: 0; border-radius: 8px; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.tbc-menu :is(a, button):hover, .tbc-menu :is(a, button):focus-visible { background: var(--brand-soft, #e8f4fb); outline: none; }
.tbc-menu svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted, #5c5c5c); }
.tbc-menu b { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--brand, #0369a1); color: var(--on-brand, #fff); font: 700 11px/16px inherit; text-align: center; }
.tbc-menu hr { height: 1px; margin: 5px 6px; border: 0; background: var(--border, #e8e8e5); }
.tbc-menu-head { padding: 8px 12px 6px; color: var(--text-muted, #5c5c5c); font: 650 11px/1.2 inherit; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .tbc-menu { animation: none; } }
/* the bell beside "Chats", and the one-line invitation to turn notifications on */
.tbc-bell { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--tbc-ink-3); cursor: pointer; transition: background 140ms, color 140ms; }
.tbc-bell[hidden], .tbc-nudge[hidden] { display: none; }
.tbc-bell svg, .tbc-nudge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbc-bell:hover, .tbc-bell[aria-expanded="true"] { background: var(--tbc-hover); color: var(--tbc-ink); }
.tbc-bell.is-off { color: var(--tbc-accent); }
.tbc-nudge { display: flex; align-items: center; gap: 2px; margin: 2px 0 6px; border-radius: 9px; background: var(--tbc-hover); }
.tbc-nudge-on { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--tbc-ink); font: 600 13px/1.2 var(--fo-sans, inherit); text-align: left; cursor: pointer; }
.tbc-nudge-on svg { flex: none; color: var(--tbc-accent); }
.tbc-nudge-on span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbc-nudge-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--tbc-ink-3); cursor: pointer; }
.tbc-nudge-x:hover, .tbc-nudge-on:hover { color: var(--tbc-ink); }
/* a visitor on the home page: the menu item of the part now on the stage (js/home-one.js) */
html.tbos-folio.tbos-desktop .tbos-rail-item.is-show { background: var(--fo-here); color: var(--fo-ink); }
html.tbos-folio .tbos-rail-item.is-show .fo-ico { color: var(--fo-accent); }
