/* The app on top of Orbita (css/orbita.css and css/orbita-kit.css, loaded before this file and never edited: they come from the design package).
   Orbita draws a 390 x 844 phone with absolute coordinates; the app is the real screen. This file is the glue: the safe areas Telegram reports, the two panes, the layers
   (splash, gates, sheets, toasts, the bottom bar) that sit over the screen, and the few rules that make Orbita's pieces behave in a real page (fixed instead of absolute, scrolling,
   the keyboard). The colours, type and components are Orbita's own: nothing here defines a colour of its own, except the one technical value --sheet-solid, below. */

/* ---- the room Telegram and the phone take. The Telegram variables do not exist until the client sends an event, so every use has a fallback: without one the whole declaration is dropped. */
:root {
  --sat: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --sal: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
  --sar: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px));
  --list-w: 348px; --read-w: 760px;
}
/* Full screen (Bot API 8.0): Telegram hides its header and keeps its own buttons (close, menu) over the top of the page. The space they take is the content safe area; it is added to the
   device's own (notch): 54 + 46 = 100 px on the owner's iPhone, the 100 px of the design's "top zone". --js-sat is written by js/tg.js from Telegram's own numbers. */
html.fullscreen { --sat: var(--js-sat, calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px))); }
/* Where a screen without a bar of its own starts: below Telegram's buttons in full screen (--sat), 20 px from the top of the page otherwise. */
:root { --top: max(var(--sat), 20px); }

/* The one value that is not Orbita's: what shows through the keyboard's rounded top corners while a sheet is lifted, which js/tg.js paints with Telegram's own setBackgroundColor
   and needs as a plain colour (the sheet itself is translucent: --sheet over a blurred page). It is the sheet's own colour, opaque. */
.th-light { --sheet-solid: #FBF7F0; }
.th-dark { --sheet-solid: #101721; }

/* ---- page base. orbita.css only resets box-sizing, the body's margin and font, buttons and focus; the rest of a real page is here. */
html, body { height: 100%; margin: 0; }
html { touch-action: pan-x pan-y; }                                 /* no pinch and no double-tap zoom (the owner's choice): scrolling is all a finger does */
body { background: var(--bg); color: var(--tx); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
[hidden] { display: none !important; }
button, input, textarea { margin: 0; }
button { background: none; border: 0; padding: 0; touch-action: manipulation; }
a { color: var(--acc-tx); text-underline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; flex: none; }
::selection { background: var(--acc-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* a text that may be very long (atoms.js longText): its first lines (--lines), and a «Leggi tutto» that opens the rest */
.longtext { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.clampn { display: -webkit-box; -webkit-line-clamp: var(--lines, 4); -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; text-wrap: pretty; }
.clampn.open { display: block; overflow: visible; }
.morebtn { min-height: 36px; padding: 6px 0; color: var(--acc-tx); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.morebtn:focus-visible { outline-offset: 2px; }
.blk { width: 100%; }
.grow { flex: 1; min-width: 0; }

/* The ambient light behind everything (the design's .amb, which is absolute inside the phone): one fixed layer, under the panes, which the glass of the cards and bars blurs. */
.amb { position: fixed; z-index: 0; }

/* ---- layout: one pane at a time on a phone, list + conversation side by side on a wide screen */
#app { position: fixed; inset: 0; top: var(--app-top, 0px); height: var(--app-h, 100%); display: grid; grid-template-columns: minmax(0, 1fr); }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
#app[data-route="list"] #main-pane { display: none; }
#app:not([data-route="list"]) #list-pane { display: none; }
@media (min-width: 900px) {
  #app { grid-template-columns: var(--list-w) minmax(0, 1fr); }
  #app[data-route="list"] #main-pane, #app:not([data-route="list"]) #list-pane { display: flex; }
  #list-pane { border-right: 1px solid var(--line); }
}
/* A member with exactly one project (main.js sets data-solo) sees that page alone: no list beside it, on any screen. */
html #app[data-solo="1"] #list-pane { display: none; }
@media (min-width: 900px) { html #app[data-solo="1"] { grid-template-columns: minmax(0, 1fr); } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* The room the bottom bar takes at the foot of a screen (26 px above the bottom edge or the home indicator, 68 px high, a breath of 24 px above it), so nothing important ends up
   under it: always for the list pane (it only shows where the bar is, or beside it on a wide screen), and for the main pane only on the screens that show the bar
   (html[data-tabs="on"], set by main.js); on a wide screen the bar belongs to the list pane. */
#app { --bar-room: calc(26px + 68px + 24px + var(--sab)); }
#list-pane { --tab-room: var(--bar-room); }
#main-pane { --tab-room: 0px; }
html[data-tabs="on"] #main-pane { --tab-room: var(--bar-room); }

/* a screen arriving: from the right on a phone (it was pushed), a soft rise beside the list or when changing tab */
.enter { animation: enter 340ms var(--ease) backwards; }           /* not 'both': a finished animation of transform would make this pane the containing block of fixed children */
@keyframes enter { from { opacity: 0; transform: translateX(28px); } }
.enter-tab { animation: enter-tab 340ms var(--ease) backwards; }
@keyframes enter-tab { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 900px) { .enter { animation-name: enter-tab; } }

/* ---- layers over the screen: the splash, the gates (the app cannot open), the new-version banner */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 80; transition: opacity 340ms var(--ease); }
.splash::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(470px 380px at 94% -6%, var(--amb1), transparent 70%), radial-gradient(430px 430px at -14% 86%, var(--amb2), transparent 70%); }
.splash .nuc { position: relative; }
.splash.out { opacity: 0; pointer-events: none; }
.gate { position: fixed; inset: 0; z-index: 75; overflow-y: auto; display: grid; place-items: center; text-align: center; background: var(--bg);
  padding: calc(var(--top) + 24px) calc(var(--sar) + 24px) calc(var(--sab) + 24px) calc(var(--sal) + 24px); }
.gate::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(470px 380px at 94% -6%, var(--amb1), transparent 70%), radial-gradient(430px 430px at -14% 86%, var(--amb2), transparent 70%); }
.gate > div { position: relative; display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 340px; }
.gate h1:focus { outline: none; }
.gate p { overflow-wrap: anywhere; }
.gate-mark { position: relative; width: 132px; height: 132px; margin-bottom: 12px; }                        /* the Nucleo (200 px) is centred on this box: it overhangs by 34 px on each side */
.gate-mark .nuc { position: absolute; left: -34px; top: -34px; }
.gate-badge { position: absolute; right: -4px; bottom: -4px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--tx); }
.gate-text { max-width: 300px; text-wrap: pretty; }
.gate-hint { max-width: 280px; }
.gate .actions { display: grid; gap: 8px; width: 100%; margin-top: 12px; }
.id-box { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 12px 14px 18px; text-align: left; }
.id-box code { display: block; margin-top: 2px; font: 500 24px/30px var(--m); letter-spacing: .04em; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
/* a new version was published while the app was open: Orbita's banner (the glass bar), under Telegram's zone */
.update-banner { position: fixed; z-index: 70; left: 16px; right: 16px; top: calc(var(--app-top, 0px) + var(--top)); max-width: 460px; margin: 0 auto; border-radius: 28px; }
.banner-i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--acc-soft); color: var(--acc-tx); box-shadow: inset 0 0 0 1px var(--acc-line); }
.banner-i .ic { width: 19px; height: 19px; }
.banner-t { font-weight: 700; }

/* ---- sheets: a bottom sheet on phones, a centred dialog on wide screens. orbita.css draws them with position: absolute inside the phone: here they are fixed.
   KEYBOARD: bottom is var(--kb): where the keyboard covers the bottom of the layout viewport (overlay model) the sheet is lifted by what it covers; where the window itself shrinks
   (Telegram on iOS and Android) --kb is 0 and the sheet is already above the keyboard. */
.scrim { position: fixed; z-index: 40; opacity: 0; transition: opacity 200ms var(--ease); }
.scrim.on { opacity: 1; }
.scrim:not(.on), .sheet:not(.on) { pointer-events: none; }        /* while it slides out (or before it slides in) a tap goes through to the page */
.sheet { position: fixed; z-index: 41; bottom: var(--kb, 0px); max-height: min(calc(var(--app-h, 100vh) - var(--sat) - 16px), 720px); display: flex; flex-direction: column;
  padding-bottom: max(24px, var(--sab)); transform: translateY(100%); touch-action: pan-y; transition: transform 340ms var(--ease), bottom 200ms var(--ease); }
.sheet.on { transform: none; }
/* ---- sheets with a text field (class has-field, set by ui.js). js/sheetlift.js decides WHEN; this is how they move (skill references/ui-pitfalls.md K14 to K19).
   While a field has the focus it sets html.kb-lift (+ --lift-full, the window's height with no keyboard), and when the keyboard starts to rise --lift-kb (the height it covers).
   The sheet is then placed from the TOP of the window: #layer becomes a box at top: 0 with a px height, the sheet sits at the bottom of it (position: absolute; bottom: <kb px>).
   Nothing depends on where the bottom of the window is, so the window shrinking under the sheet changes nothing (iOS lays position: fixed out against a layout viewport that follows
   the new height one frame late: a handover to `bottom: 0` flashed the sheet 308 px low). Nothing animated contains a percentage. The sheet keeps its height (its bottom padding is
   frozen at the value it had on focus) and so rises as one piece.
   WHY `bottom` AND NOT `transform`: iOS moves its native text caret when the page LAYS OUT. A transform runs on the compositor and lays nothing out, so the caret stayed behind and
   then jumped. `bottom` is a layout animation of one small box: cheap, and the caret follows the sheet to within 2 px.
   UP: the lower envelope of the keyboard's motion, measured on an iPhone in three openings: never ahead of it, at most 5 px behind (its 11 px shadow strip hides that).
   DOWN (the keyboard hides, the sheet stays open): the keyboard needs ~165 ms, nearly linear; the sheet takes 120 ms so that it is always ahead of it.
   BELOW the sheet: the keyboard has rounded top corners and the page shows through them. Before the window shrinks that is the page under the sheet's shadow: the sheet's own colour is
   painted 24 px below it (the first shadow, --sheet-solid). After it shrinks it is what Telegram paints under the page: tg.js paintBelow() gives that the sheet's colour for as long as the lift lasts. */
@media (max-width: 719.98px) {
  html.kb-lift #layer { position: fixed; top: 0; left: 0; right: 0; height: var(--lift-full, 100vh); }
  html.kb-lift .sheet.has-field { position: absolute; top: auto; bottom: var(--lift-kb, 0px); padding-bottom: var(--lift-pad, max(24px, var(--sab)));
    max-height: min(calc(var(--lift-full, 100vh) - var(--lift-want, 0px) - var(--sat, 0px) - 12px), 720px);
    box-shadow: 0 24px 0 0 var(--sheet-solid), var(--sh3), 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-hi);
    transition: transform 340ms var(--ease), bottom 420ms cubic-bezier(.26, .8, .16, .96); }
  html.kb-lift-down .sheet.has-field { transition: transform 340ms var(--ease), bottom 120ms linear; }
  html.kb-lift-snap .sheet.has-field, html.kb-lift .sheet.has-field.instant { transition: none; }     /* the change of placement itself must not animate */
}
.sheet.instant { transition: none; transform: none; opacity: 0; }          /* leaving while the keyboard is up: gone at once, no slide over a screen that is changing size */
.sheet-grip { margin: 0 -20px; padding: 0; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grip .grab { margin: 10px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { min-width: 0; overflow-wrap: anywhere; }
.sheet-body { overflow: auto; scroll-padding: 24px 0; min-height: 0; display: grid; grid-auto-rows: max-content; gap: 16px; align-content: start; overscroll-behavior: contain; margin: 0 -20px; padding: 2px 20px 4px; }
.sheet-foot { display: grid; gap: 8px; padding-top: 16px; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: calc(var(--app-top, 0px) + var(--app-h, 100vh) / 2); width: min(480px, 92vw); border-radius: 32px; transform: translate(-50%, -46%) scale(.97); opacity: 0;   /* centred in the VISIBLE area, keyboard or not */
    transition: transform 340ms var(--ease), opacity 200ms; padding-bottom: 24px; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
}

/* ---- toasts: glass pills over the bottom of the screen (above the bar where it shows), and at the top while a sheet is open so that they never cover its buttons */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(var(--kb, 0px) + var(--sab) + 112px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
html[data-tabs="on"] .toasts { bottom: calc(var(--kb, 0px) + 26px + 68px + 16px + var(--sab)); }
#layer.sheet-open .toasts { bottom: auto; top: calc(var(--app-top, 0px) + var(--top) + 12px); }
.toasts .toast { pointer-events: auto; max-width: min(92vw, 420px); animation: toastin 340ms var(--ease); }
.toasts .toast.out { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; }
.toasts .toast.error { color: var(--crit); }
.toasts .toast.error .ic { color: var(--crit); }
.toasts .toast.ok .ic { color: var(--ok); }
.toasts .toast button { color: var(--acc-tx); font-weight: 700; margin-left: 4px; min-height: 44px; padding: 0 8px; }
@keyframes fade { from { opacity: 0; } }

/* ---- the bottom bar (orbita.css: .tabbar.lg with .tab and .tab.on): fixed 16 px from the sides and 26 px above the bottom edge (or the home indicator), 68 px high.
   Away on a conversation, a form or a guide (their own bottom), and while the keyboard is up. On a wide screen it is the foot of the list pane and never goes away. */
.tabbar { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: calc(26px + var(--sab)); max-width: 460px; margin: 0 auto;
  transition: transform 400ms var(--ease), opacity 250ms var(--ease), visibility 0s; }
.tab { text-decoration: none; min-width: 0; -webkit-tap-highlight-color: transparent; }
.tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab .ic { width: 24px; height: 24px; transition: transform 320ms var(--spring); }
.tab.on .ic { transform: translateY(-1px) scale(1.06); }
.tab:active .ic { transform: scale(.88); }
.tab:focus-visible { outline-offset: -3px; }
/* Four tabs (Home, Progetti, Impostazioni, Users) in a bar that is at most 328 px wide on a phone and on the list pane of a wide screen: a little less room for each label, so that «Impostazioni» is not cut. */
.tabbar { gap: 2px; padding-left: 4px; padding-right: 4px; }
.tab { font-size: 11px; letter-spacing: -.1px; }
.tab > span { padding: 0; }
html[data-tabs="off"] .tabbar, html[data-kb] .tabbar { transform: translateY(calc(100% + 26px + var(--sab) + 24px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 350ms var(--ease), opacity 200ms var(--ease), visibility 0s 350ms; }
@media (min-width: 900px) {
  .tabbar { right: auto; margin: 0; width: calc(var(--list-w) - 32px); }
  html[data-tabs="off"] .tabbar { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: none; }
  html[data-tabs] #main-pane { --tab-room: 0px; }
}
/* Without backdrop-filter (old Android WebViews) the glass becomes the opaque colours of the theme. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .card, .grp, .lg, .toast, .btn-sec, .btn-ic { background: var(--surf); }
  .sheet, .dlg { background: var(--sheet-solid); }
  .scrim { background: var(--scrim); }
}

/* ---- small pieces shared by the screens */
/* The glass bars and pills (.lg) paint a diagonal light over themselves with ::before: what is inside must sit above it. */
.lg > * { position: relative; }
.empty.fill { margin: auto; max-width: 420px; }
.empty h2 { color: var(--tx); }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--track); border-top-color: var(--acc); animation: spin .8s linear infinite; }
/* the confirmation sheet: a symbol, the question, the consequences, big buttons */
.sheet-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 8px 14px; }
.sheet-hero p { max-width: 300px; text-wrap: pretty; }
.sheet-sym { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: var(--acc-soft); color: var(--acc-tx); }
.sheet-sym.crit { background: var(--crit-soft); color: var(--crit); }
/* a list of actions in a sheet, and the text column of a cell */
.cell-t { flex: 1; min-width: 0; text-align: left; font-weight: 600; }
.cell-i.crit { background: var(--crit-soft); color: var(--crit); }
button.cell { width: 100%; border: 0; background: transparent; text-align: left; }
button.cell:active { background: var(--field); }

/* ---- pages: a scrolling page with a column of blocks 16 px apart, 20 px from the sides. A page with no bar of its own is the first child of its pane: it starts below Telegram's
   buttons (--top); a page with a bar (.pagebar, drawn only where Telegram has no back arrow of its own) starts below that. Room is left at the foot for the bottom bar where it shows. */
.page { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.page-in { max-width: 640px; margin: 0 auto; padding: 8px 20px calc(var(--tab-room, 0px) + 32px); display: grid; gap: 16px; align-content: start; }
.page:first-child > .page-in { padding-top: calc(var(--top) + 4px); }
.pagebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--top) - 2px) 20px 0; flex: none; }
.pagebar .back { padding: 0 16px 0 10px; gap: 2px; }
.ptop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.ptop h1 { min-width: 0; overflow-wrap: anywhere; }
.stamp { margin: -8px 4px 0; }
.sec { display: grid; gap: 8px; min-width: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.sec > .hint { margin: 0 4px; }
/* what a cell holds: the tile, the two lines, the value on the right */
.cell-body { flex: 1; min-width: 0; display: grid; }
.cell-title { font-weight: 600; overflow-wrap: anywhere; }
/* a status chip beside a description: on the line of the title, the description under it across the whole row */
/* (on a narrow phone the chip goes under the title rather than cutting a word of it: the title keeps whole words) */
.cell-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.cell-head > .cell-title { overflow-wrap: break-word; }
.cell-head > .chip { flex: none; margin-left: auto; }
.cell-sub { overflow-wrap: anywhere; }
.cell-i.steel { background: var(--steel-soft); color: var(--steel); }
.cell-v.mono, .mono { font-family: var(--m); }
.cell-v.mono { font-size: 13px; line-height: 19px; }
.cell-v { flex: none; }
.cell-v > .ic { color: var(--tx3); }
.bar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bar-row + .mt { margin-top: 8px; }
.notice { position: relative; }
.banner-i.crit { background: var(--crit-soft); color: var(--crit); box-shadow: inset 0 0 0 1px transparent; }
.banner-i.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px transparent; }
.pagebar + .page > .page-in { padding-top: 8px; }
@media (min-width: 900px) { .pagebar { display: none; } }

/* ---- the title of a tab screen that shrinks into a glass bar when the page is scrolled (boards Home-2 and Impostazioni-2): the page fades under it. (The design's .fade-top is a piece of the
   phone drawn in the boards: this is the same gradient, written for the real screen.) */
.topfade { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: calc(var(--top) + 70px); pointer-events: none; background: linear-gradient(var(--bg) 35%, transparent); }
.cfade { opacity: 0; transition: opacity 200ms var(--ease); }
.cfade.on { opacity: 1; }
.cbar { position: absolute; z-index: 3; left: 16px; right: 16px; top: calc(var(--top) - 2px); height: 52px; max-width: 460px; margin: 0 auto; border-radius: 26px; padding: 4px 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.cbar.on { opacity: 1; transform: none; }
.cbar.with-end { padding: 4px 8px 4px 20px; justify-content: flex-start; }
.cbar.with-end .t-hd { flex: 1; }
@media (min-width: 900px) { .cbar { max-width: none; } }

/* Things focused by the script (a sheet, a page title) do not need a ring: it is for the keyboard's own Tab. */
[tabindex="-1"]:focus-visible { outline: none; }

/* the quiet way out of a sheet or a form ("Annulla"): neutral, as in the boards (Fogli-1: the ghost button in the secondary text colour) */
.sheet-foot .btn-ghost, .sticky-foot .btn-ghost { color: var(--tx2); height: 48px; }
/* a row with a second action at its end (atoms.js splitCell): the row itself opens something, a small button at its end copies it */
.cell.split { padding: 0; gap: 0; }
.cell.split > .split-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 4px 8px 16px; border: 0; background: transparent; color: var(--tx); text-align: left; font: inherit; }
.cell.split > .split-main:active { background: var(--field); }
.cell.split > .split-act { flex: none; width: 44px; height: 44px; margin-right: 6px; color: var(--tx2); }
.cell.split > .split-act:active { background: var(--field); }
.cell.split > .split-act.done { color: var(--ok); }
/* a row that is there with nothing to show yet ("off"): the quiet look, in colours of the theme (not opacity: the text keeps its contrast) */
/* the marks of Claude, ChatGPT and DeepSeek (js/brands.js): each in its own colour on a quiet tile; the OpenAI mark has no colour of its own and follows the text */
.brand { display: block; flex: none; fill: currentColor; }
.brand-claude { color: #D97757; }
.brand-deepseek { color: #4D6BFE; }
.brand-openai { color: var(--tx); }
.brand-abliteration { color: #E0483A; }
.brand-surplus { color: var(--tx); }                 /* Experiential Labs (the id the service was first given): its leaf is one colour, like its logo, so it follows the text */
.brand-nvidia { color: #76B900; }
.brand-stepfun { color: #005AFF; }
.brand-minimax { color: #F23F5D; }
.brand-zai { color: var(--tx); }
.brand-omniroute { color: #E54D5E; }                  /* OmniRoute: the red of its favicon (a hub with its spokes), the same in both themes */
.cell-i.brandtile { background: var(--field); }
.cell-i.brandtile .brand { width: 20px; height: 20px; }
.cell.off .cell-i { background: var(--field); color: var(--tx3); }
.cell.off .cell-title { color: var(--tx2); }
.cell.off .cell-v { color: var(--tx3); }
div.cell.off { cursor: default; }

/* the status light (atoms.js light): a lit dot at the end of a row; green, orange, red, grey (switched off) */
.light { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--off); box-shadow: 0 0 0 4px var(--field); }
.light-ok { background: var(--ok-f); box-shadow: 0 0 0 4px var(--ok-soft), 0 0 10px var(--ok-f); }
.light-warn { background: var(--warn-f); box-shadow: 0 0 0 4px var(--warn-soft), 0 0 10px var(--warn-f); }
.light-crit { background: var(--crit-f); box-shadow: 0 0 0 4px var(--crit-soft), 0 0 10px var(--crit-f); }
.cell-v > .light { margin-right: 4px; }
.sheet-head > .light { margin-right: 6px; }
.lit { display: inline-flex; align-items: center; gap: 12px; color: var(--tx); font-weight: 600; }       /* a light with its words beside it (atoms.js lit): the summary of a page, the state in a window */
