
:root{
  --indigo:#2b2a4e; --indigo-deep:#1c1b33; --indigo-soft:#413e6b;
  --gold:#d69622; --gold-soft:#f0c26a; --gold-wash:#fdf6e8;
  --slate:#64748b; --mist:#c9d3e1; --mist-wash:#eef2f7;

  /* A little more contrast in the light (Ben, 14 Oct 2026): muted text was
     4.2:1 on white, under the 4.5:1 that small text needs; now 6:1, with
     secondary text at 10:1, firmer lines, and cards a clearer step off the
     page. */
  --ink:#221e18; --ink-secondary:#3d372f; --ink-muted:#5c554c;
  --surface:#ffffff; --page:#f0efeb; --border:rgba(48,42,34,0.34);
  --good:#0ca30c; --warning:#d69622; --serious:#ec835a; --critical:#d03b3b;

  /* Surfaces and states written as tokens rather than literals, so the dark
     palette is one block of overrides instead of a hunt through the file. */
  --panel:#ffffff;            /* menus and popovers, above a surface */
  --wash:#faf9f7;             /* a surface a shade off the page */
  --on-indigo:#ffffff;        /* text on the brand bar */
  /* Firmer washes and lines (Ben, 17 Oct 2026: higher contrast everywhere). */
  --ok-wash:#dcf1dc; --ok-ink:#065c06; --ok-line:#8fc98f;
  --err-wash:#fbdede; --err-ink:#8f1a1a; --err-line:#e59a9a;
  --gold-ink:#7a4f00;
  --serious-wash:#fbe0d2; --serious-ink:#8f3713; --serious-line:#e8a585;
  --radius:2px;
  --shadow-sm:0 1px 2px rgba(48,42,34,.08), 0 2px 10px rgba(48,42,34,.06);
  --shadow-md:0 2px 6px rgba(48,42,34,.08), 0 14px 34px rgba(48,42,34,.12);
  --tracked:.1em;
  /* The lift pass (14 Nov 2026): the lead tile's fill and words, and the hatch for what is not filled yet. */
  --lead-bg:linear-gradient(135deg,#2b2a4e,#413e6b); --lead-ink:#ffffff; --lead-sub:#e3e1f4;
  --hatch:repeating-linear-gradient(135deg,rgba(48,42,34,.11) 0 2px,transparent 2px 7px);
  --hatch-soft:repeating-linear-gradient(135deg,rgba(48,42,34,.06) 0 2px,transparent 2px 7px);
}

/* ── Dark ───────────────────────────────────────────────────────────────────
   Only the tokens change. Every rule below is written against them, so the
   palette is one place rather than a second stylesheet that drifts.

   "System" never reaches CSS: the script in the head resolves it against the
   device before the first paint and stamps light or dark on the root, so there
   is one selector here rather than a media query racing an explicit choice.

   The ground is warm rather than neutral black: the brand ink is warm, and a
   cold grey under a warm indigo reads as two different products. */
:root[data-theme="dark"]{
  /* Designed for the dark, not inverted: three clear steps of ground (page,
     card, menu) so sections read as sections, and text in three weights that
     all stay well clear of the surface they sit on — secondary text at 10:1
     and muted text at 6.5:1 against a card, where the old muted grey was
     close enough to the card to blend away. */
  --ink:#fdfbf7; --ink-secondary:#d8d3ca; --ink-muted:#aca69c;
  --surface:#232229; --page:#0c0b0f; --panel:#2f2e37; --wash:#17161c;
  --border:rgba(255,255,255,0.16);
  --mist-wash:#302f39; --mist:#575561;
  /* Indigo does two jobs — a fill behind white text (buttons, switches,
     the next shoot) and an accent — and no one shade passes for both on a
     dark ground. The fill is #6b67db (white on it: 4.6:1); links take their
     own lighter --link (8.8:1 on a card). */
  --indigo:#6b67db; --indigo-deep:#17162b; --indigo-soft:#8481d6; --link:#b9b6ff;
  --gold:#e0a63c; --gold-soft:#8a6a22; --gold-wash:#332a17; --gold-ink:#e8bf6a;
  --good:#5cc95c; --warning:#e0a63c; --serious:#f09a6e; --critical:#ef6b6b;
  --ok-wash:#1d2a1d; --ok-ink:#7fd67f; --ok-line:#2f4a2f;
  --err-wash:#2e1c1c; --err-ink:#f08b8b; --err-line:#5a2c2c;
  --serious-wash:#33221a; --serious-ink:#f0a87e; --serious-line:#5c3823;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.3);
  --shadow-md:0 2px 6px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.5);
  --lead-bg:linear-gradient(135deg,#e0a63c,#c98a1f); --lead-ink:#17150f; --lead-sub:#2a2110;
  --hatch:repeating-linear-gradient(135deg,rgba(255,255,255,.11) 0 2px,transparent 2px 7px);
  --hatch-soft:repeating-linear-gradient(135deg,rgba(255,255,255,.055) 0 2px,transparent 2px 7px);
  color-scheme:dark;
}
/* The brand bar keeps its own dark ground in both palettes — it is the one
   surface that was already dark, and inverting it would lose the brand. */
:root[data-theme="dark"] .topbar{
  background:var(--indigo-deep);border-bottom-color:rgba(255,255,255,.08)}

/* Form controls draw themselves from the operating system unless told
   otherwise, which is how a dark page ends up with white input boxes. */
:root[data-theme="dark"] input,:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea{
  background:var(--surface);color:var(--ink);border-color:var(--border)}
:root[data-theme="dark"] input[type=date],
:root[data-theme="dark"] input[type=datetime-local]{
  color-scheme:dark}

*{box-sizing:border-box}

/* ── Dark refinements ─────────────────────────────────────────────────────
   Beyond the tokens, the few things the dark needs that a token cannot say:
   hues chosen for white paper lifted to read on a dark card, cards given an
   edge of light so sections stay sections, and links taking --link. */
/* Colours that were chosen for white paper are lifted for the dark: a type,
   section or priority chip keeps its hue but gains the brightness to read on
   a dark card. */
:root[data-theme="dark"] .tflag,
:root[data-theme="dark"] .chip,:root[data-theme="dark"] .status-chip{filter:brightness(1.45) saturate(1.1)}
:root[data-theme="dark"] ::placeholder{color:#8f8a82;opacity:1}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .dash-panel,
:root[data-theme="dark"] .dash-tile{border-color:rgba(255,255,255,.12);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35)}
:root[data-theme="dark"] a{color:var(--link);text-decoration-color:rgba(185,182,255,.45)}
:root[data-theme="dark"] a.btn,:root[data-theme="dark"] .tab,:root[data-theme="dark"] .nav a,
:root[data-theme="dark"] .dash-item,:root[data-theme="dark"] .dash-tile,:root[data-theme="dark"] .c-row,
:root[data-theme="dark"] .br-row,:root[data-theme="dark"] .br-tile,:root[data-theme="dark"] .nq,
:root[data-theme="dark"] .nav-portal,:root[data-theme="dark"] .portal-opt{color:inherit}
:root[data-theme="dark"] a.btn,:root[data-theme="dark"] .sc-next{color:#fff}
:root[data-theme="dark"] .sc-row,:root[data-theme="dark"] .sc-sheet{color:inherit}
:root[data-theme="dark"] .dnum-more{color:var(--link)}
:root[data-theme="dark"] .subtle{color:var(--ink-secondary)}

body{margin:0;font-family:'Chivo',Arial,Helvetica,sans-serif;color:var(--ink);
     font-size:14px;line-height:1.6;background:var(--page);-webkit-font-smoothing:antialiased}
a{color:var(--indigo);text-underline-offset:3px;text-decoration-color:var(--mist)}
a:hover{color:var(--gold)}
h1{font-size:30px;margin:0 0 8px;font-weight:300;letter-spacing:-.025em;
   line-height:1.15;color:var(--ink);text-wrap:balance}
h2{font-size:11px;margin:0 0 16px;font-weight:700;letter-spacing:var(--tracked);
   text-transform:uppercase;color:var(--ink-muted)}
h3{font-size:15px;margin:0 0 10px;font-weight:600;color:var(--ink)}
p{margin:0 0 12px}
.subtle{color:var(--ink-secondary);font-size:15px;font-family:'Gentium Plus',Georgia,serif}
.mono{font-family:'Fragment Mono',ui-monospace,monospace;font-size:12.5px}

/* Wide content scrolls inside its own container (.table-wrap, .card-tight,
   .cal-scroll); the page body never scrolls sideways. Without this one
   over-wide table drags the header and every card off-centre with it, which
   looks like a broken layout rather than a wide table. */
/* A change saved in place says so, briefly, next to what changed — rather
   than a page reload being the only evidence anything happened. */
/* Fixed and tiny, so it sits beside whatever just saved without being part of
   it and without needing room. Nothing here can resize a field or shift a row,
   and it follows its field while the page scrolls. */
.live-mark{position:fixed;z-index:60;pointer-events:none;
  display:inline-flex;align-items:center;justify-content:center;
  width:15px;height:15px;border-radius:50%;
  font-size:9px;font-weight:700;line-height:1;
  background:#2f9e54;color:#fff;border:1px solid rgba(255,255,255,.7);
  box-shadow:0 1px 3px rgba(28,27,51,.22);
  opacity:0;transform:scale(.5);
  transition:opacity var(--m-quick,.13s) ease,transform var(--m-quick,.13s) cubic-bezier(.2,.9,.3,1.3)}
.live-mark.in{opacity:1;transform:none}
.live-mark.bad{background:#c2362a}
@media(prefers-reduced-motion:reduce){
  .live-mark{transition:opacity var(--m-quick,.13s) ease;transform:none}
}
form.live-busy{opacity:.55;pointer-events:none;transition:opacity var(--m-instant,.1s)}

/* ── Edit in place ──────────────────────────────────────────────────────────
   At rest this is text. Not a field that happens to be styled quietly — no
   border, no background, no box. A list of sixty rows each carrying a visible
   input reads as a form to fill in rather than a list to read, which is the
   opposite of what an editable list is for.

   The field appears when the pointer is over it, and an empty one shows a
   faint dash rather than an empty box, so a row with no company still looks
   like a row. */
/* Every rule here needs BOTH classes. The shared form stylesheet styles
   `input:not([type])` — the same specificity as `.inline-edit input` — and it
   comes later in the sheet, so it won and the field kept its border and
   padding no matter what this said. Two classes settles it. */
.inline-edit{display:inline-block;min-width:0;max-width:100%}
.inline-edit input.bare{font:inherit;font-size:inherit;color:inherit;width:100%;
  min-width:60px;background:transparent;border:1px solid transparent;
  border-radius:2px;padding:2px 4px;margin:-2px -4px;cursor:text;
  text-overflow:ellipsis;transition:border-color var(--m-quick,.12s),background var(--m-quick,.12s)}
.inline-edit input.bare::placeholder{color:transparent}
/* Hovering the row, not just the field: the target is otherwise only as wide
   as the text, and an empty cell has no target at all. */
tr:hover .inline-edit input.bare,
.inline-edit:hover input.bare{border-color:var(--border);background:var(--surface)}
tr:hover .inline-edit input.bare::placeholder,
.inline-edit:hover input.bare::placeholder{color:var(--ink-muted);font-style:italic}
.inline-edit input.bare:focus{border-color:var(--indigo);background:var(--surface);
  outline:none;box-shadow:none}
.inline-edit input.bare:focus::placeholder{color:var(--ink-muted);font-style:italic}
@media(hover:none){
  /* No hover on a touch screen, so the affordance has to be permanent or it
     does not exist at all. */
  .inline-edit input.bare{border-color:var(--border);background:var(--mist-wash)}
  .inline-edit input.bare::placeholder{color:var(--ink-muted);font-style:italic}
}

/* `hidden` means hidden, everywhere.
   The browser's own [hidden] rule is a bare attribute selector, so ANY class
   that sets display — and a portal this size sets it on dozens — overrides it
   on specificity. The symptom is not subtle: every menu in the selection bar
   rendered at once, stacked on top of each other. This is the one place
   !important is the correct tool, because it is enforcing a browser-level
   meaning that component styles have no business overriding. */
[hidden]{display:none !important}

html{overflow-x:hidden}
body{overflow-x:clip}
/* ── Words stay whole ─────────────────────────────────────────────────────
   Text wraps between words. `break-word` splits a word only when that one
   word is wider than the whole line on its own — a long web address — and
   otherwise never. It used to be `anywhere` in forty places, which does not
   only allow a split anywhere: it lets the browser shrink a box to the width
   of a single letter before it tries anything else. That is how a badge came
   out as "OPPORTUNIT / Y" and a calendar block as "TRAIN / ING". */
body{overflow-wrap:break-word;word-break:normal;hyphens:manual}
/* A badge is a label, not a sentence: its words wrap between each other and
   are never split, and the box is as wide as its longest word. */
.badge{overflow-wrap:normal;word-break:keep-all}
/* Flex and grid children default to min-width:auto, which lets one long word
   or one wide cell push a whole row past the viewport. This is the single
   rule that stops that happening anywhere, rather than per component. */
.wrap *{min-width:0}
img,video,canvas,svg,iframe{max-width:100%}
pre,code{overflow-wrap:break-word;white-space:pre-wrap}
img,svg,video,canvas{max-width:100%;height:auto}

/* ── Safe areas (installed / standalone) ─────────────────────────────────── */
/* Added to a home screen there is no browser chrome, so the page runs edge to
   edge underneath the status bar, the notch and the home indicator. The insets
   are 0 in a normal browser tab, so these are inert there — but without
   `viewport-fit=cover` on the viewport meta they are 0 *everywhere*, which is
   the whole reason the app looked shifted up under the clock. */
:root{--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);
      --sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);
      /* How wide a page gets. See the bands under Layout. */
      --page-w:100%}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
/* The indigo has to extend up *behind* the status bar, not start below it, or
   the notch area shows the page background as a pale strip above the header. */
.topbar{background:var(--indigo);color:#fff;border-bottom:1px solid var(--indigo-deep);
        padding-top:var(--sat)}
/* ── The header stays put, on every screen ─────────────────────────────────
   The brand bar and the menu under it are how you get anywhere, so they are
   never scrolled away. Anything else that sticks — a selection bar, a row of
   column headings — sticks *under* it, at `--head-h`, which the script below
   keeps equal to the header's real height. A jump to an anchor lands under
   it for the same reason. */
.topbar{position:sticky;top:0;z-index:70}
html{scroll-padding-top:var(--head-h,0px)}

/* ── Opening ──────────────────────────────────────────────────────────────
   The first page of a visit opens on the mark, centred on the house indigo,
   and fades into the page once the page is there. Only the first: a splash
   on every click would be a delay dressed up as a welcome. */
#tcSplash{display:none}
html.tc-splash #tcSplash{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;
  justify-content:center;background:#2b2a4e;transition:opacity .5s ease}
html.tc-splash #tcSplash.out{opacity:0;pointer-events:none}
/* One opening everywhere (Ben, 30 Sep): the white horizontal logo on the
   house indigo, whatever the theme or the screen — only its size changes.
   The same rule as the app's opening and its launch images (SPLASH_W). */
#tcSplash img{width:min(62vw,360px);height:auto}
@media (prefers-reduced-motion:reduce){html.tc-splash #tcSplash{transition-duration:.25s}}
.topbar-inner{max-width:var(--page-w);margin:0 auto;display:flex;align-items:center;
              justify-content:space-between;height:64px;gap:20px;
              padding:0 max(28px,var(--sar)) 0 max(28px,var(--sal))}
.brand{display:flex;align-items:center;gap:14px}
.brand img{height:20px;width:auto;filter:invert(1) brightness(1.9)}
.brand .sub{font-size:10px;color:var(--mist);border-left:1px solid rgba(201,211,225,.3);
            padding-left:14px;text-transform:uppercase;letter-spacing:var(--tracked);font-weight:600}
.nav{max-width:var(--page-w);margin:0 auto;display:flex;align-items:stretch;
     padding:0 max(28px,var(--sar)) 0 max(28px,var(--sal));
     gap:4px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.09)}
.nav-group{display:flex;align-items:stretch;gap:2px;flex-wrap:wrap}
.nav a{display:flex;align-items:center;color:rgba(255,255,255,.72);text-decoration:none;
       font-size:11px;font-weight:600;padding:13px 14px;text-transform:uppercase;
       letter-spacing:.08em;white-space:nowrap;border-bottom:2px solid transparent;
       transition:color var(--m-quick,.15s) ease,border-color var(--m-quick,.15s) ease}
.nav a:hover{color:#fff}
.nav a.active{color:#fff;border-bottom-color:var(--gold)}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.nav-menu{position:relative;display:flex}
.nav-trigger{display:flex;align-items:center;gap:7px;background:transparent;border:0;
     border-bottom:2px solid transparent;color:rgba(255,255,255,.72);font-family:inherit;
     font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
     padding:13px 14px;cursor:pointer;white-space:nowrap;
     transition:color var(--m-quick,.15s) ease,border-color var(--m-quick,.15s) ease}
.nav-trigger:hover{color:#fff}
.nav-trigger.active{color:#fff;border-bottom-color:var(--gold)}
.nav-trigger svg{opacity:.6;transition:transform var(--m-base,.18s) ease,opacity var(--m-quick,.15s) ease}
.nav-trigger:hover svg{opacity:1}
.nav-menu.open .nav-trigger{color:#fff}
.nav-menu.open .nav-trigger svg{transform:rotate(180deg);opacity:1}

.nav-panel{position:absolute;top:100%;left:0;min-width:212px;z-index:60;
     background:var(--panel);border:1px solid var(--border);border-top:2px solid var(--gold);
     box-shadow:0 18px 44px rgba(28,27,51,.28), 0 2px 6px rgba(28,27,51,.14);
     padding:6px;display:flex;flex-direction:column;
     opacity:0;visibility:hidden;transform:translateY(-6px);
     transition:opacity var(--m-quick,.16s) ease,transform var(--m-quick,.16s) ease,visibility var(--m-quick,.16s)}
.nav-menu.open .nav-panel{opacity:1;visibility:visible;transform:translateY(0)}
.nav-panel a{display:block;color:var(--ink);padding:10px 14px;font-size:11px;
     border-bottom:0;border-left:2px solid transparent;letter-spacing:.07em;
     transition:background var(--m-quick,.13s) ease,color var(--m-quick,.13s) ease,border-color var(--m-quick,.13s) ease}
.nav-panel a:hover{background:var(--mist-wash);color:var(--indigo);
     border-left-color:var(--mist)}
.nav-panel a.active{background:var(--gold-wash);color:var(--gold-ink);border-left-color:var(--gold)}
.nav-sub{display:block;font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
     color:var(--ink-muted);padding:10px 14px 4px}
.nav-panel a.nav-in{padding-left:24px}
.nav-trigger:focus-visible,.nav-panel a:focus-visible{outline:2px solid var(--gold);
     outline-offset:-2px}
@media(max-width:820px){
  .nav{gap:0}
  .nav-panel{position:static;box-shadow:none;border-top-width:1px;min-width:0;
             width:100%;transform:none}
  .nav-menu{flex-direction:column;width:100%}
}
@media(prefers-reduced-motion:reduce){
  .nav-panel,.nav-trigger svg{transition:none}
}

/* Language switch. Two short labels rather than a dropdown: with two options a
   dropdown hides the one you want behind a click, and someone who cannot read
   the current language needs the alternative visible, not nested. */
.lang-form{display:flex;border:1px solid rgba(201,211,225,.32)}
.lang-opt{background:transparent;border:0;color:rgba(255,255,255,.7);font-family:inherit;
  font-size:10px;font-weight:700;letter-spacing:.08em;padding:7px 11px;cursor:pointer;
  transition:background var(--m-quick,.14s) ease,color var(--m-quick,.14s) ease}
.lang-opt:hover{color:#fff;background:rgba(255,255,255,.1)}
.lang-opt.on{background:var(--gold);color:var(--indigo-deep)}

/* The theme control. Three icons rather than three words: a sun, a moon and a
   half-filled circle are what every operating system already uses for this
   choice, so the control can be small enough to sit in a header that also has
   to hold a brand, a switcher and a menu. Each keeps a title and an
   aria-label — an icon nobody can name is unusable with a screen reader.

   It is a group of three rather than one button that cycles: a cycle hides
   where you are and how many presses it takes to get where you want. */
.theme-switch{display:inline-flex;border:1px solid rgba(255,255,255,.22);
  border-radius:3px;overflow:hidden;flex:none}
/* The menu's copy is for phones only; on a wide screen the bar has room. */
.nav-theme,.nav-tabsedit{display:none !important}
/* The calendar, one press from any console. Sized and bordered like the
   appearance switch beside it, because they are the same kind of thing: a
   small control in the bar rather than an item of navigation. */
.calbtn{display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:26px;flex:none;border:1px solid rgba(255,255,255,.22);
  border-radius:3px;color:rgba(255,255,255,.72);text-decoration:none}
.calbtn:hover{color:#fff;background:rgba(255,255,255,.14)}
.calbtn:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.calbtn svg{display:block}
@media(max-width:860px){.calbtn{width:32px;height:32px}}
/* The header has to fit 390px: on a phone, Record a meeting is in the menu (Meetings) instead of the bar. */
@media(max-width:480px){.calbtn.mtgbtn{display:none}}

/* ── The bell ─────────────────────────────────────────────────────────────
   Beside the calendar, drawn the same way. The count is the only colour in
   the bar, because it is the only thing in it that is asking for you. */
.bellbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:26px;flex:none;border:1px solid rgba(255,255,255,.22);border-radius:3px;
  color:rgba(255,255,255,.72);background:none;cursor:pointer;padding:0}
.bellbtn:hover,.bellbtn[aria-expanded="true"]{color:#fff;background:rgba(255,255,255,.14)}
.bellbtn:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.bellbtn svg{display:block}
a.bellbtn{text-decoration:none}
.bell-n{position:absolute;top:-6px;right:-6px;min-width:16px;height:16px;padding:0 4px;
  border-radius:8px;background:var(--gold);color:var(--indigo-deep);font-size:9.5px;
  font-weight:800;line-height:16px;text-align:center;box-shadow:0 0 0 2px var(--indigo)}
.bell-n[hidden]{display:none}
/* Something that changed on screen because it changed somewhere else. */
.tc-arrived{animation:tc-arrived 1.6s ease-out}
@keyframes tc-arrived{0%{box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 70%,transparent)}
  100%{box-shadow:0 0 0 3px transparent}}
@media (prefers-reduced-motion:reduce){.tc-arrived{animation:none}}
@media(max-width:860px){.bellbtn{width:32px;height:32px}}
/* Bigger on a computer (Ben, 4 Nov 2026: "enlarge some of the header
   icons"): 28px boxes with 15px glyphs read as specks on a wide screen. The
   bar is 64px tall, so these still sit well inside it. Phones keep 32px. */
@media(min-width:861px){
  /* The same height as the console menu beside them (Ben, 4 Nov 2026), so
     the bar reads as one row; the day/night switch keeps its own size. */
  .topbar-right .bellbtn,.topbar-right .calbtn{width:36px;height:32px;border-radius:10px}
  .topbar-right .bellbtn svg,.topbar-right .calbtn svg{width:18px;height:18px}
  .topbar-right .bell-n{top:-7px;right:-7px;min-width:18px;height:18px;line-height:18px;font-size:10.5px;border-radius:9px}
  .topbar-right{gap:10px}
}
.bellpanel{position:fixed;z-index:95;width:min(360px,calc(100vw - 16px));
  background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:0 14px 40px rgba(28,27,51,.26);overflow:hidden}
.bellpanel[hidden]{display:none}
.bellpanel .bp-head{display:flex;align-items:center;justify-content:space-between;
  padding:11px 14px;border-bottom:1px solid var(--border);font-size:10px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted)}
.bellpanel .bp-head a{color:var(--indigo);text-decoration:none;letter-spacing:.04em}
.bellpanel .bp-acts{display:flex;gap:14px;align-items:center}
.bellpanel .bp-all{background:none;border:0;padding:0;font:inherit;color:var(--indigo);
  letter-spacing:.04em;cursor:pointer}
.bellpanel ul{list-style:none;margin:0;padding:0;max-height:min(60vh,420px);overflow-y:auto}
.bellpanel li a{display:block;padding:10px 14px;border-bottom:1px solid var(--border);
  text-decoration:none;color:var(--ink)}
.bellpanel li.new a{box-shadow:inset 3px 0 0 var(--gold);background:var(--mist-wash)}
.bellpanel li .t{display:block;font-size:13.5px;line-height:1.35}
.bellpanel li.new .t{font-weight:700}
.bellpanel li .b{display:block;font-size:12px;color:var(--ink-muted);margin-top:2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bellpanel li .w{display:block;font-size:11px;color:var(--ink-muted);margin-top:3px}
.bellpanel .bp-none{padding:22px 14px;font-size:13px;color:var(--ink-muted);text-align:center}
/* Something new while you are looking at the page. */
.belltoast{position:fixed;z-index:96;right:16px;bottom:calc(18px + var(--sab));
  width:min(340px,calc(100vw - 32px));background:var(--indigo);color:#fff;border-radius:var(--radius);
  box-shadow:0 12px 32px rgba(28,27,51,.35);padding:12px 14px;text-decoration:none;
  opacity:0;transform:translateY(10px);transition:opacity var(--m-base,.25s),transform var(--m-slow,.3s) cubic-bezier(.2,.8,.2,1)}
.belltoast.on{opacity:1;transform:none}
.belltoast .t{display:block;font-weight:700;font-size:13.5px}
.belltoast .b{display:block;font-size:12.5px;opacity:.8;margin-top:2px}
@media(max-width:860px){.belltoast{left:16px;right:16px;width:auto;top:calc(var(--head-h,58px) + 8px);bottom:auto}}
.tg-opt{background:transparent;border:0;color:rgba(255,255,255,.62);
  padding:0;width:24px;height:22px;cursor:pointer;line-height:0;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background var(--m-quick,.12s) ease,color var(--m-quick,.12s) ease}
.tg-opt svg{display:block}
.tg-opt:hover{color:#fff;background:rgba(255,255,255,.12)}
.tg-opt.on{background:var(--gold);color:var(--indigo-deep)}
.tg-opt:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.logout-form button{background:transparent;color:rgba(255,255,255,.72);
       border:1px solid rgba(201,211,225,.32);padding:9px 18px;font-size:10px;cursor:pointer;
       font-family:inherit;font-weight:600;text-transform:uppercase;letter-spacing:.08em;
       transition:all var(--m-quick,.15s) ease}
.logout-form button:hover{background:#fff;color:var(--indigo-deep);border-color:#fff}

/* ── Layout ──────────────────────────────────────────────────────────────────

   How wide a page is, as a share of the screen it is on: tighter on a small
   one, 80% on a laptop, 70% on a desktop. A percentage rather than a number,
   so it follows the window continuously as it is dragged — every width in
   between, with no script and nothing to fall a frame behind.

     under 1280   fills the screen; the margins do the work. A quarter of a
                  tablet given over to grey is a quarter of a tablet wasted.
     1280–1679    80% — laptops
     1680 and up  70% — desktop monitors

   Each band carries a floor equal to the width at the bottom of it, and that
   is the part that is easy to get wrong: without it the page *shrinks* as the
   window is widened past a breakpoint — 80% of 1679 is 1343px and 70% of 1680
   is 1176, so dragging one pixel wider would take 167px off the page. The
   floors make the whole curve go one way.

   Percent rather than `vw`: `vw` counts the scrollbar, and a page 15px wider
   than the window it is in grows a second scrollbar along the bottom. Set
   once, because the header, the nav and the page all read it — three copies
   of a width is how a header lines up with the content at one size and not
   the other. */
/* Consoles fill the window on a computer (Ben, 4 Nov 2026: "make the webapp
   on desktops full width"). The page is everything beside the menu column,
   at every size; only the gutter grows on a big screen so nothing touches
   the glass. The client site keeps the bands above (client_server._STYLE):
   a client reading a review page wants a column, not a 2560px line. */
@media(min-width:1680px){.wrap{padding-left:max(40px,var(--sal)) !important;padding-right:max(40px,var(--sar)) !important}}
@media(min-width:2200px){.wrap{padding-left:max(56px,var(--sal)) !important;padding-right:max(56px,var(--sar)) !important}}

.wrap{max-width:var(--page-w);margin:0 auto;
      padding:56px max(28px,var(--sar)) calc(96px + var(--sab)) max(28px,var(--sal))}
/* ── A page that fills the window ──────────────────────────────────────────
   A calendar is not a document: it is a grid that should use the screen it
   is on, and the thing that scrolls should be the hours rather than the
   page. `body.full` hands the whole width over and stops the window
   scrolling, so the only scrollbar is the one inside the grid.

   The header is kept — it is how you get anywhere else — so the page is the
   viewport minus whatever the bars above it take, measured rather than
   guessed at, because the nav wraps to two lines on a narrow screen. */
body.full{overflow:hidden}
/* The same width as every other page — the calendar is not a special case,
   it just needs the height. Not edge to edge either: a grid running into the
   window frame has nothing to sit in, and the first and last day end up
   touching the glass. */
body.full .wrap{max-width:var(--page-w);
  padding:20px max(26px,var(--sar)) 14px max(26px,var(--sal));
  height:calc(100dvh - var(--chrome,0px));display:flex;flex-direction:column;
  min-height:0}
body.full .wrap > *{min-height:0}
@media(max-width:1100px){
  body.full .wrap{padding:16px max(18px,var(--sar)) 10px max(18px,var(--sal))}
}
@media(max-width:820px){
  /* Margins stay, they just get out of the way: on a phone every pixel the
     frame takes is a pixel of Thursday. */
  body.full .wrap{padding:10px max(12px,var(--sar)) 8px max(12px,var(--sal))}
}
.pagehead{margin-bottom:34px;padding-bottom:22px;border-bottom:1px solid var(--border)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
      padding:28px 30px;margin-bottom:22px;box-shadow:var(--shadow-sm)}
.card-tight{padding:0}

/* ── Stat tiles ──────────────────────────────────────────────────────────── */
/* Tiles that stand apart, the first one filled (the lift pass, 14 Nov 2026; before that, one joined strip). */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
           gap:10px;margin-bottom:22px}
.stat-tile{background:var(--surface);padding:26px 28px;border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.stat-grid:not(.quiet) > .stat-tile:first-child:not(.attention){background:var(--lead-bg);border-color:transparent}
.stat-grid:not(.quiet) > .stat-tile:first-child:not(.attention) .value{color:var(--lead-ink)}
.stat-grid:not(.quiet) > .stat-tile:first-child:not(.attention) .label{color:var(--lead-sub)}
.stat-grid:not(.quiet) > .stat-tile:first-child:not(.attention) a{color:var(--lead-ink)}
.stat-tile .value{font-size:42px;font-weight:300;line-height:1;letter-spacing:-.04em;
                  color:var(--indigo);font-variant-numeric:tabular-nums}
.stat-tile .label{font-size:10px;color:var(--ink-muted);margin-top:12px;font-weight:700;
                  text-transform:uppercase;letter-spacing:.08em;line-height:1.5}
.stat-tile.attention{background:var(--gold-wash)}
.stat-tile.attention .value{color:var(--gold-ink)}
/* Quiet figures (Ben, 18 Oct 2026: the numbers at the top of the pipeline
   pages "a lot smaller and less prominent"). */
.stat-grid.quiet{margin-bottom:18px}
.stat-grid.quiet .stat-tile{padding:11px 16px}
.stat-grid.quiet .stat-tile .value{font-size:19px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.stat-grid.quiet .stat-tile .label{margin-top:4px;font-size:9.5px}

/* ── Tables ──────────────────────────────────────────────────────────────── */
table.data{width:100%;border-collapse:collapse;font-size:13.5px}
table.data th{background:transparent;color:var(--ink-muted);text-align:left;padding:14px 16px;
              font-weight:700;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
              white-space:nowrap;border-bottom:1px solid var(--ink)}
table.data td{padding:15px 16px;border-bottom:1px solid var(--border);vertical-align:top}
table.data tbody tr:hover td{background:var(--wash)}
table.data td.num{font-variant-numeric:tabular-nums;text-align:right}

/* ── Buttons — squared + uppercase, matching the site ────────────────────── */
.btn{display:inline-block;background:var(--indigo);color:#fff;border:1px solid var(--indigo);
     border-radius:var(--radius);padding:13px 30px;font-size:11px;font-weight:700;cursor:pointer;
     text-decoration:none;font-family:inherit;text-transform:uppercase;
     letter-spacing:var(--tracked);transition:all var(--m-quick,.15s) ease}
.btn:hover{background:var(--gold);border-color:var(--gold);color:var(--indigo-deep)}
.btn-secondary{background:transparent;color:var(--indigo);border-color:var(--ink)}
.btn-secondary:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
/* In night mode the ink is nearly white, so the same rule drew white words
   on a white button (Ben, 1 Oct 2026): the dark hover fills with the ink and
   writes in the page's own dark. */
:root[data-theme="dark"] .btn-secondary:hover{background:var(--ink);color:var(--page);border-color:var(--ink)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .btn-secondary:hover{background:var(--ink);color:var(--page);border-color:var(--ink)}}
.btn-sm{padding:8px 16px;font-size:10px}

/* ── Forms ───────────────────────────────────────────────────────────────── */
/* `input:not([type])` matters: an <input> with no type attribute *is* a text
   input to the browser, but `input[type=text]` does not match it — so one
   omitted attribute left a field unstyled and half the width of its column. */
input[type=text],input[type=email],input[type=password],input[type=number],
input[type=date],input[type=search],input[type=url],input[type=tel],
input:not([type]),select,textarea{
  border:1px solid var(--border);border-radius:var(--radius);padding:11px 13px;
  font-family:inherit;font-size:14px;background:#fff;color:var(--ink);width:100%;
  transition:border-color var(--m-quick,.15s) ease,box-shadow var(--m-quick,.15s) ease}
input:hover,select:hover,textarea:hover{border-color:var(--slate)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(214,150,34,.18)}
label{font-size:10px;color:var(--ink-muted);display:block;margin-bottom:6px;font-weight:700;
      text-transform:uppercase;letter-spacing:.08em}
.field{margin-bottom:18px}
.row{display:flex;gap:18px;flex-wrap:wrap}
.row > .field{flex:1;min-width:180px}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;font-size:10px;
       font-weight:700;text-transform:uppercase;letter-spacing:.07em;border:1px solid transparent}
.badge .dot{width:5px;height:5px;border-radius:50%;display:inline-block}
.badge-good{background:var(--ok-wash);color:var(--ok-ink);border-color:var(--ok-line)}
.badge-good .dot{background:var(--good)}
.badge-warning{background:var(--gold-wash);color:var(--gold-ink);border-color:var(--gold-soft)}
.badge-warning .dot{background:var(--warning)}
.badge-serious{background:var(--serious-wash);color:var(--serious-ink);border-color:var(--serious-line)}
.badge-serious .dot{background:var(--serious)}
.badge-critical{background:var(--err-wash);color:var(--err-ink);border-color:var(--err-line)}
.badge-critical .dot{background:var(--critical)}
.badge-muted{background:var(--wash);color:var(--ink-muted);border-color:var(--border)}
.badge-muted .dot{background:var(--ink-muted)}


/* ── Mobile ───────────────────────────────────────────────────────────────
   Phones are a primary surface here — crew fill in a logbook on site, not at
   a desk. Three things carry the layout: the nav folds behind a toggle, data
   tables scroll inside their own container so the page body never does, and
   tap targets grow to something a thumb can actually hit. */

.nav-toggle{display:none;align-items:center;justify-content:center;gap:8px;
     background:transparent;border:1px solid rgba(201,211,225,.32);color:#fff;
     font-family:inherit;font-size:10px;font-weight:700;letter-spacing:.12em;
     text-transform:uppercase;padding:9px 14px;cursor:pointer}
.nav-toggle:hover{background:rgba(255,255,255,.1)}
.nav-toggle svg{display:block}

/* Switching portals should not mean typing a URL or hunting a bookmark. Sits
   with the other identity controls, top right, and is hidden entirely when the
   person can only reach one. */
.portal-switch{display:flex;border:1px solid rgba(201,211,225,.32);flex:none}
.portal-opt{display:flex;align-items:center;padding:7px 11px;font-size:10px;
  font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(255,255,255,.72);text-decoration:none;white-space:nowrap;
  transition:background var(--m-quick,.13s) ease,color var(--m-quick,.13s) ease}
.portal-opt:hover{color:#fff;background:rgba(255,255,255,.1)}
.portal-opt.on,.portal-switch .portal-opt.on{background:var(--gold);color:#1c1b33}
@media(max-width:860px){.portal-opt{padding:6px 8px;letter-spacing:.06em}}

/* Cards that offer a document type to file — documents hub and reports. */
.doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1px;
          background:var(--border);border:1px solid var(--border);margin-bottom:8px}
.doc-card{display:block;background:var(--surface);padding:24px 26px;text-decoration:none;
          color:inherit;transition:background var(--m-quick,.15s) ease}
.doc-card:hover{background:var(--wash);color:inherit}
.doc-name{font-weight:700;font-size:15px;color:var(--indigo);margin-bottom:8px}
.doc-blurb{font-family:'Gentium Plus',Georgia,serif;font-size:14px;color:var(--ink-secondary);
           line-height:1.5;margin-bottom:14px}
.doc-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--ink-muted);
          text-transform:uppercase;letter-spacing:.06em;font-weight:700}

/* Wide content never widens the page — it scrolls inside its own box. */
.field-x2{flex:2}
.field-x3{flex:3}
/* A label is uppercase and tracked by default, which is right for a field name
   and wrong for a sentence. `.plain-label` opts a checkbox row out; `.lc` opts
   out a qualifier inside one. */
/* Which one of several — small, beside the name, never competing with it. */
.inv-unit{display:inline-block;margin-left:6px;padding:1px 6px;font-size:10.5px;
  font-weight:700;letter-spacing:.06em;color:var(--ink-secondary);
  background:var(--mist-wash);border:1px solid var(--border);vertical-align:2px}
.plain-label{display:flex;gap:10px;align-items:flex-start;margin:6px 0 18px;
  text-transform:none;letter-spacing:0;font-size:13px;font-weight:400;
  color:var(--ink-secondary);line-height:1.5;cursor:pointer}
.plain-label input{margin-top:3px;flex:none}
.plain-label strong{color:var(--ink);font-weight:600}
label .lc{text-transform:none;letter-spacing:0;font-weight:400;
  color:var(--ink-muted);font-size:11px}
/* A field whose content is a button: bottom-aligned with its neighbours on a
   wide row, full width once the row stacks. */
.field-submit{display:flex;align-items:flex-end;margin:0}
.field-tight{margin:0}
@media(max-width:760px){.field-submit{margin-top:6px}
  .field-submit .btn{width:100%}}
.field-narrow{max-width:320px}
.field-narrow.field-150{max-width:150px}
/* Buttons in a table cell: right-aligned, wrapping rather than forcing the
   table wider than the screen. */
.row-actions{text-align:right;white-space:nowrap}
.row-actions .btn{margin-left:6px}
@media(max-width:760px){.row-actions{white-space:normal}
  .row-actions .btn{margin:2px 0 2px 6px}}
/* Above the stacking width a table is a table, and one wider than its card
   — a rare thing at desktop widths — scrolls inside the card as a last
   resort rather than being clipped out of reach. Pickers and date panels
   are `position:fixed`, so a scrolling card does not cut them off. */
.table-wrap{width:100%}
@media(min-width:861px){.table-wrap{overflow-x:auto}}
.table-wrap table.data{width:100%}

/* Data tables stack rather than scroll.

   A table wide enough to need dragging is a table nobody reads the right-hand
   end of. Below 860px each row becomes its own block with the column name
   beside each value, which fits any phone and keeps every field visible. The
   labels are filled in by script from the header row, so a table added later
   gets this without anyone marking it up.

   860, the same width the header turns into a phone menu. It was 640, and an
   unfolded fold or a portrait iPad sat between the two: the table neither
   stacked nor fitted, and the card clipped its right-hand columns away. */
@media(max-width:860px){
  .table-wrap table.data,
  .table-wrap table.data tbody,
  .table-wrap table.data tr,
  .table-wrap table.data td{display:block;width:auto}
  .table-wrap table.data thead,
  .table-wrap table.data tr:first-child:has(th){display:none}
  .table-wrap table.data tr{border:1px solid var(--border);margin-bottom:10px;
    padding:4px 0;background:var(--surface)}
  .table-wrap table.data td{border:0;padding:7px 14px;text-align:left;
    display:flex;gap:12px;align-items:baseline;overflow-wrap:break-word}
  .table-wrap table.data td::before{content:attr(data-label);flex:0 0 38%;
    font-size:10.5px;text-transform:uppercase;letter-spacing:.07em;
    font-weight:700;color:var(--ink-muted)}
  .table-wrap table.data td:empty{display:none}
  .table-wrap table.data td.row-actions{justify-content:flex-end}
  .table-wrap table.data td.row-actions::before{content:""}
  /* ── Nothing leaves the card ───────────────────────────────────────────
     A stacked cell is as wide as the phone and no wider. A child that
     refuses to wrap and is not told to clip runs past the edge — and
     because the page itself refuses to scroll sideways, what runs past is
     not merely awkward, it is unreadable with no way to reach it. So every
     child may shrink, and one that will not wrap is cut with an ellipsis
     rather than allowed to escape. */
  .table-wrap table.data td > *{min-width:0;max-width:100%}
  .table-wrap table.data td [style*="nowrap"],
  .table-wrap table.data td .mono{overflow:hidden;text-overflow:ellipsis}
  /* The label is a caption, not a column: below 430px a fixed 38% of a
     narrow card leaves the value with less room than its own name. */
  .table-wrap table.data td::before{max-width:132px}
}

@media(max-width:430px){
  /* Below this the brand keeps the bar to itself. */
  .brand .sub{display:none}
  .table-wrap table.data td{gap:8px;padding:7px 11px}
  .table-wrap table.data td::before{flex-basis:34%;max-width:104px;
    font-size:10px}
}

/* Values wrap onto a second line rather than squeeze: a cell holding a task
   and its kind pressed "Email" into a column one letter wide. On a fold's
   cover screen the label goes above the value, which then has the card's
   whole width. */
@media(max-width:860px){
  .table-wrap table.data td{flex-wrap:wrap;row-gap:2px}
  .table-wrap table.data td > *{flex:0 1 auto}
  /* The first value sits beside its label and wraps inside itself; only
     what follows it (a kind, a note) moves to the next line. */
  .table-wrap table.data td:not(.row-actions) > :first-child{flex:1 1 50%}
}
@media(max-width:360px){
  .table-wrap table.data td{flex-direction:column;align-items:flex-start;gap:2px}
  .table-wrap table.data td::before{flex-basis:auto;max-width:none}
  .table-wrap table.data td.row-actions{align-items:flex-end}
}

@media(max-width:900px){
  .wrap{padding:32px max(18px,var(--sar)) calc(72px + var(--sab)) max(18px,var(--sal))}
  .topbar-inner{height:58px;padding:0 18px}
  .brand img{height:17px}
  .brand .sub{font-size:9px;padding-left:10px}
  h1{font-size:24px}
  .card{padding:22px 18px}
  .stat-tile{padding:20px 18px}
  .stat-tile .value{font-size:34px}
  table.data th,table.data td{padding:11px 12px}
}


/* ── The header on a phone ──────────────────────────────────────────────────
   **One breakpoint for the whole header: 860px.** The switcher and account
   line moved into the menu at 860 while the menu only became a button at
   760, so between the two — an unfolded Pixel Fold, an iPad in portrait —
   the phone menu's contents were drawn permanently open across the top of
   every page, 360 to 640px tall. They move together now.
   Everything that is not the brand or the way into the menu moves into the
   menu. Squeezing five controls into 390px is what made every page underneath
   look mis-aligned; the fix is to stop trying. */
.topbar-right{display:flex;align-items:center;gap:12px;min-width:0}
.nav-portals{display:none;width:100%;box-sizing:border-box}
/* The console's own pages; another console's stand in for them in the
   phone's menu, and are a list among the rest, not a box of their own. */
.nav-links{display:contents}
.nav-links[hidden]{display:none}
.nav-links.nav-wait{display:block;padding:18px;opacity:.6;font-size:12px;letter-spacing:.08em;
  text-transform:uppercase;text-align:center}
.nav-sec{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;
  font-weight:700;opacity:.55;margin-bottom:8px}
/* The full width of the menu, split into as many equal parts as there are
   consoles — two, three or four.

   It used to be `auto-fit` with a 72px floor, which asks the browser to work
   the column count out from whatever width it thinks the menu has. That is a
   guess, and on a menu that had been laid out in two columns it was the wrong
   one: four consoles came out as four full-width bars stacked down the screen.
   The count is known when the page is rendered, so it is stated.

   `data-n` and not a custom property: `repeat()` takes an <integer>, and a
   `var()` inside it is substituted too late — the browser drops the whole
   declaration and the grid has no columns at all. Five or more go three to a
   row rather than shrinking past reading. */
/* The console switcher in the phone's menu: where you are, on one line, and
   a list that says what each console is for (Ben, 2 Nov 2026). */
.nav-switch>summary{list-style:none;cursor:pointer}
.nav-switch>summary::-webkit-details-marker{display:none}
.pswitch-now{display:flex;align-items:center;gap:12px;min-height:44px;color:#fff}
.pswitch-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.pswitch-k{font-size:11px;opacity:.6}
.pswitch-t b{font-size:16px;font-weight:700}
.pswitch-go{flex:none;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid rgba(255,255,255,.28);
  border-radius:18px;font-size:12px;font-weight:700;letter-spacing:.04em}
.pswitch-go svg{transition:transform var(--m-quick,.15s) ease}
.nav-switch[open] .pswitch-go svg{transform:rotate(180deg)}
.pdot{flex:none;width:12px;height:12px;border-radius:50%;background:var(--pc,#fff);box-shadow:0 0 0 2px rgba(255,255,255,.22)}
.portal-list{display:flex;flex-direction:column;gap:4px;margin-top:10px}
.nav-portal{display:flex;align-items:center;gap:12px;padding:10px 12px;color:#fff;text-decoration:none;
  border-radius:8px;min-height:48px;box-sizing:border-box;border:1px solid transparent}
.nav-portal .pl-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.nav-portal .pl-t b{font-size:15px;font-weight:600}
.nav-portal .pl-t span{font-size:12.5px;opacity:.65}
.nav-portal.on{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}
.nav-who{font-size:13px;opacity:.8;display:block;margin-bottom:10px;overflow-wrap:break-word}

@media(max-width:860px){
  /* The switcher and the account line live in the menu from here down. */
  .topbar-right > .portal-switch,
  .topbar-right > .lang-form,
  .topbar-right > .logout-form{display:none}
  .nav-portals{display:block;padding:12px 16px;
       border-top:1px solid rgba(255,255,255,.14)}
  .nav-account .logout-form button{width:100%;padding:11px;font-size:14px}
}

@media(max-width:860px){
  .nav-toggle{display:inline-flex}

  /* ── The header stays where it is ──────────────────────────────────────
     On a phone a page is mostly scrolling, and every way out of it —
     the menu, the way back, the switcher — lives in this bar. Scrolled off
     the top, getting anywhere meant scrolling all the way back up first.
     Above the page rather than in it, so a menu opened over a list is not
     drawn underneath the list. */
  .topbar{position:sticky;top:0;z-index:70}

  /* The header has to fit on a phone. Brand + language toggle + signed-in
     address + Log out + menu button together run past the right edge of a
     390px screen, and because .topbar-inner is a nowrap flex row the overflow
     drags the whole bar sideways — which is what makes every page underneath
     look mis-aligned rather than merely cramped. */
  .topbar-inner{gap:10px;height:54px}
  .topbar-inner > div{gap:8px !important;min-width:0}
  /* A 44px target, and the word "Menu" dropped below 430px where the brand
     needs the room more than the label does. */
  .nav-toggle{min-height:40px;padding:0 12px}
  .nav a{min-height:44px;display:flex;align-items:center}
  .nav .nav-portal{min-height:48px;width:auto;border-bottom:0;justify-content:flex-start;text-align:left;
    text-transform:none;letter-spacing:normal;padding:10px 12px;font-size:15px}
  .nav .nav-portal .pl-t span{letter-spacing:normal;text-transform:none;font-weight:400}
  .nav-switch{padding-bottom:12px}
  /* The brand sub-label is the first thing that can go: the console is named
     by the tab you are in and by the switcher inside the menu. */
  .brand .sub{border-left:0;padding-left:0;font-size:9px}
  .brand{min-width:0;flex:0 1 auto;overflow:hidden}
  .brand img{flex:none}
  .logout-form button{padding:7px 10px;font-size:10px}
  .lang-opt{padding:6px 8px}
  /* The language switch is a pair of two-character buttons. Stretched to the
     width of the menu it read as a section of it rather than a small control,
     so it sits centred and sized to its own words. */
  .nav-langs{text-align:center}
  .nav-langs .lang-form{display:inline-flex}
  /* Appearance moves out of the bar into the foot of the menu, centred and
     sized to itself like the language switch. */
  .theme-head{display:none !important}
  .nav-theme{display:block !important;text-align:center}
  .nav-theme .theme-switch{display:inline-flex;margin-top:2px}
  .nav-theme .tg-opt{width:44px;height:36px}
  /* A thumb target on a phone, without growing the icon itself. */
  .tg-opt{width:30px;height:28px}
  /* `dvh`, not `vh`: on iOS `100vh` is the height with the address bar
     *hidden*, so a menu measured against it runs under the bottom of the
     screen and its last item cannot be reached. */
  /* `flex-wrap:wrap` is inherited from the desktop rule, where the menu is a
     row and wrapping is what stops eleven links running off the side. Turned
     on its side it is a different thing entirely: a *column* flex container
     that is allowed to wrap, and has a definite height to wrap against, packs
     its items into as many columns as it needs — so a console with enough
     items to pass `max-height` laid its menu out in two narrow columns. The
     switcher inside then measured itself against a third of the screen and
     came out as four stacked bars. It is one column, always. */
  .nav{display:none;flex-direction:column;flex-wrap:nowrap;align-items:stretch;
       gap:0;padding:0;max-width:none;margin:0;
       background:var(--indigo-deep);
       max-height:calc(100dvh - 58px - var(--sat));overflow-y:auto;
       overscroll-behavior:contain;
       -webkit-overflow-scrolling:touch;padding-bottom:var(--sab)}
  /* ── Open, the menu is the screen ───────────────────────────────────────
     It was a dropdown inside the sticky header: as tall as its contents,
     with the page showing underneath it, and the page still free to scroll —
     so on a bounce the whole header slid down the screen with a gap above
     it, and in a browser with its own toolbar Log out sat underneath that
     toolbar. Now it is fixed from the bottom of the header to the bottom of
     the screen, it scrolls inside itself, and the page behind it is held
     still (see `nav-lock` and the script that sets `--nav-top`). */
  .nav.open{display:flex;position:fixed;left:0;right:0;top:var(--nav-top,58px);
    bottom:0;max-height:none;z-index:69;overflow-y:auto;
    padding-bottom:calc(28px + var(--sab))}
  /* The root only. Locking <body> as well makes the body its own scroll
     box, and the sticky header then sticks to *that* — which, on a page
     scrolled down, is off the top of the screen: the header vanished the
     moment the menu opened. */
  html.nav-lock{overflow:hidden;overscroll-behavior:none}
  /* The things about you, rather than places to go, sit at the foot of it. */
  /* Whichever of language and account comes first takes the free space
     above it; a console without a language switch pushes the account down. */
  .nav.open .nav-theme,.nav.open .nav-langs,.nav.open .nav-account{margin-top:auto}
  .nav.open .nav-theme ~ .nav-langs,.nav.open .nav-theme ~ .nav-account,
  .nav.open .nav-langs ~ .nav-account{margin-top:0}
  .nav-group{flex-direction:column;align-items:stretch}
  /* Tighter than it was. Eleven items at 15px of padding each is a menu you
     scroll to read, and the point of a menu is to be taken in at a glance;
     44px is still a thumb target with room to spare. */
  .nav a,.nav-trigger{width:100%;justify-content:space-between;padding:12px 18px;
       border-bottom:1px solid rgba(255,255,255,.07);font-size:12px;
       min-height:44px;white-space:normal}
  .nav a.active,.nav-trigger.active{border-bottom-color:rgba(255,255,255,.07);
       background:rgba(255,255,255,.06);color:#fff}
  .nav a.active{box-shadow:inset 3px 0 0 var(--gold)}
  .nav-menu{width:100%}
  .nav-panel{position:static;opacity:1;visibility:hidden;transform:none;height:0;
       overflow:hidden;padding:0;border:0;box-shadow:none;background:rgba(0,0,0,.22)}
  .nav-menu.open .nav-panel{visibility:visible;height:auto;padding:4px 0}
  .nav-panel a{color:rgba(255,255,255,.8);padding:11px 30px;border-left:0;
       min-height:42px}
  .nav-panel a:hover,.nav-panel a.active{background:rgba(255,255,255,.08);color:#fff}

  /* .card-tight is the common parent for tables a page did not wrap itself.
     Those are wrapped in .table-wrap by script (see _TABLE_LABEL_SCRIPT) so
     they stack like every other table; the clip only guards the page. */
  .card-tight{overflow-x:clip}
  .card-tight table.data{min-width:0;width:100%}

  .row{gap:0}
  .row > .field{flex:1 1 100%;min-width:0}
  /* Proportional and narrow fields go full width like everything else once the
     row stacks — a field pinned to flex:3 or a max-width keeps sitting beside
     its neighbours and hangs off the right edge. */
  .row > .field-x2,.row > .field-x3{flex:1 1 100%}
  .field-narrow{max-width:none}
  .stat-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
  .btn{padding:14px 22px}          /* ~44px tall: a real tap target */
  .btn-sm{padding:11px 16px}
  input[type=text],input[type=email],input[type=password],input[type=number],
  input[type=date],input[type=search],input[type=url],input[type=tel],
  input:not([type]),select,textarea{padding:13px 13px;font-size:16px}
  /* 16px stops iOS Safari zooming the viewport on focus. */
  .login-card{padding:36px 24px 30px}
  .doc-grid{grid-template-columns:1fr}

  /* One wide thing inside the page — a table, a long address, a chart — makes
     the *document* wider than the phone, and Safari answers that by shrinking
     the whole page to fit. The header and the menu shrink with it, which is
     what made the switcher render at two-thirds size with its buttons stacked
     on some consoles and not others: nothing was wrong with the menu, the page
     under it had overflowed. `clip` rather than `hidden` so it does not become
     a scroll container — a sticky header inside one stops sticking — and only
     on the horizontal axis, so menus and popovers still open past the edge. */
  .wrap{overflow-x:clip}
}

@media(max-width:430px){
  .nav-toggle-t{display:none}
  .nav-toggle{padding:0 11px}
  .brand .sub{display:none}
}

/* ── The tab bar and the More sheet (phones) ─────────────────────────────
   Places to go sit at the bottom, where the thumb is. The bar leaves the
   screen to the comment box on a project page (.has-composer), where the
   way out is Back — the same as a detail screen in any app. */
.tabbar,.nav-scrim{display:none}
@media(max-width:860px){
  :root{--tabbar-h:calc(58px + var(--sab))}
  .has-composer{--tabbar-h:0px}
  html.typing-elsewhere form.composer{display:none !important}
  html.typing-elsewhere{--cmp-h:0px !important}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:66;
    height:var(--tabbar-h);padding:0 max(6px,var(--sar)) var(--sab) max(6px,var(--sal));
    background:color-mix(in srgb,var(--surface) 94%,transparent);
    -webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);
    border-top:1px solid var(--border);box-sizing:border-box}
  .has-composer .tabbar{display:none}
  /* Typing: the keyboard is up, and the tab bar is not lifted above it by
     iOS — it hung in mid-page over the field (Ben, 3 Oct 2026). Away while
     anything is being typed in. */
  html.kb-open .tabbar{display:none !important}
  html.kb-open{--tabbar-h:0px}
  .tab{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:3px;text-decoration:none;border:0;background:none;
    color:var(--ink-muted);font:inherit;font-size:10.5px;font-weight:600;
    letter-spacing:.01em;padding:6px 2px 4px;cursor:pointer;
    -webkit-tap-highlight-color:transparent;border-radius:12px;margin:5px 1px}
  .tab span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tab svg{flex:none;transition:transform var(--m-base,.18s) ease}
  .tab:active svg{transform:scale(.9)}
  .tab.on,.tab-more[aria-expanded="true"]{color:var(--indigo);
    background:color-mix(in srgb,var(--indigo) 9%,transparent)}
  :root[data-theme="dark"] .tab.on,
  :root[data-theme="dark"] .tab-more[aria-expanded="true"]{color:var(--gold);
    background:color-mix(in srgb,var(--gold) 12%,transparent)}
  /* The page ends above the bar, never behind it. */
  .wrap{padding-bottom:calc(var(--tabbar-h) + 28px) !important}
  /* The menu button in the header is More's job now — except on a page
     with no tab bar, where it stays the way to everything else. */
  .nav-toggle{display:none !important}
  .has-composer .nav-toggle{display:inline-flex !important}

  /* More: the same menu, as a panel coming in from the right over the
     whole screen (Ben, 1 Oct 2026) — the way the calendar's views panel
     opens — leaving a strip of the page showing, dimmed. */
  .nav.open{top:0 !important;bottom:0;left:auto !important;right:0;
    width:min(84vw,360px);max-height:none;border-radius:0;
    box-shadow:-14px 0 40px rgba(0,0,0,.3);overflow-y:auto;
    padding-top:calc(14px + var(--sat));padding-bottom:calc(16px + var(--sab));
    animation:tcSheetIn .42s cubic-bezier(.22,1,.36,1) both}
  .nav.open.closing{animation:tcSheetOut .3s cubic-bezier(.4,0,1,1) both}
  html.nav-closing .nav-scrim{animation:tcFadeOut .3s ease both}
  .has-composer .nav.open{bottom:0;padding-bottom:calc(16px + var(--sab))}
  html.nav-lock .nav-scrim{display:block;position:fixed;inset:0;z-index:64;
    background:rgba(10,10,25,.42);animation:tcFade .2s ease}
  html.nav-lock .tabbar{z-index:63}
  .nav.open{z-index:69}
  .nav-tabsedit{display:block !important;text-align:center}
  .tabs-edit{border:1px solid rgba(255,255,255,.3);background:none;color:#fff;
    font:inherit;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
    padding:10px 16px;border-radius:3px;cursor:pointer;min-height:40px}
  .tabpick{text-align:left}
  .tabpick-say{font-size:12px;opacity:.75;margin:0 0 8px}
  .tabpick-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .tabpick-row{display:flex;align-items:center;gap:8px;padding:9px 10px;min-height:44px;
    border:1px solid rgba(255,255,255,.18);border-radius:6px;font-size:13px;color:#fff;
    box-sizing:border-box;cursor:pointer}
  .tabpick-row:has(input:checked){background:rgba(255,255,255,.14);border-color:var(--gold)}
  .tabpick-row:has(input:disabled){opacity:.45}
  .tabpick-row input{accent-color:var(--gold);width:16px;height:16px;flex:none;margin:0}
  .tabpick-ic{display:inline-flex;flex:none}
  .tabpick-ic svg{width:18px;height:18px}
  .tabpick-acts{display:flex;justify-content:space-between;gap:8px;margin-top:10px}
  .tabpick-acts button{flex:1 1 0;min-height:42px;font:inherit;font-size:11px;font-weight:700;
    letter-spacing:.08em;text-transform:uppercase;border-radius:3px;cursor:pointer}
  .tabpick-reset{background:none;color:#fff;border:1px solid rgba(255,255,255,.3)}
  .tabpick-save{background:var(--gold);color:#1d1b35;border:0}
  /* Back and forward live in the header on a phone, not inside More. */
  .nav.open .back-nav{display:none !important}
}
@keyframes tcSheetUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes tcSheetDown{from{transform:none}to{transform:translateY(100%)}}
@keyframes tcSheetIn{from{transform:translateX(100%)}to{transform:none}}
/* No rubber band in the app (Ben, 1 Oct 2026): pulled past the top or the
   bottom, iOS dragged the whole frame — the tab bar with it, popping down
   and back. The page simply stops at its ends, as an app's does. */
html.in-shell,html.in-shell body{overscroll-behavior-y:none}
/* ── Everything that opens, opens (Ben, 1 Oct 2026) ──────────────────────
   A menu, a picker, a summary card, a date panel, a folded section, a
   task's details, an expanding form: each comes in rather than appearing.
   One rule for all of them, using `@starting-style`, which animates an
   element from the moment it is shown — unhidden, unfolded or added — so
   no control needs a script of its own for it. Browsers without it simply
   show the thing at once, as before. Floating things fade and drop a few
   pixels into place; a section that opens inside the page only fades,
   because moving it would move everything under it. A little slower on a
   phone. Off for anyone who has asked for less motion. */
@media (prefers-reduced-motion:no-preference){
  .nav-panel,.split-menu,.pick-menu,.chip-menu,.block-menu,.stay-pop,.cal-pop,.cal-peek,
  .bellpanel,.wrp,.wrp-times,.cmp-at,.drop,.dash-scope + .drop{
    transition:opacity var(--m-base,.2s) ease,transform var(--m-base,.26s) cubic-bezier(.22,1,.36,1)}
  details[open] > :not(summary),.psec .table-wrap,.inv-eform,
  .cx-more,.fold-body{transition:opacity var(--m-base,.24s) ease}
  @starting-style{
    .nav-panel,.split-menu,.pick-menu,.chip-menu,.block-menu,.stay-pop,.cal-pop,.cal-peek,
    .bellpanel,.wrp,.wrp-times,.cmp-at,.drop{opacity:0;transform:translateY(-6px)}
    details[open] > :not(summary),.psec .table-wrap,.inv-eform,
    .cx-more,.fold-body{opacity:0}
  }
  @media(max-width:860px){
    .nav-panel,.split-menu,.pick-menu,.chip-menu,.block-menu,.stay-pop,.cal-pop,.cal-peek,
    .bellpanel,.wrp,.wrp-times,.cmp-at,.drop{
      transition:opacity var(--m-base,.26s) ease,transform var(--m-slow,.32s) cubic-bezier(.22,1,.36,1)}
    details[open] > :not(summary),.psec .table-wrap,.inv-eform,
    .cx-more,.fold-body{transition:opacity var(--m-slow,.3s) ease}
  }
}
/* …and goes the way it came (Ben, 3 Oct 2026: "all dropdowns … a slight
   expanding and closing animation"). Every one of these is put away by
   `hidden` or by losing its open class, which drops it at once; told it may
   stay drawn while it fades (`allow-discrete`), it lifts and fades out
   instead. Browsers that cannot simply close it at once, as before. The
   menus inside the phone's More sheet fold up by script (_NAV_SCRIPT). */
@media (prefers-reduced-motion:no-preference){
  @supports (transition-behavior:allow-discrete){
    .nav-panel,.split-menu,.pick-menu,.chip-menu,.block-menu,.stay-pop,.cal-pop,.cal-peek,
    .bellpanel,.wrp,.wrp-times,.cmp-at,.drop,[role="menu"],[role="listbox"].pop{
      transition:opacity var(--m-base,.18s) ease,transform var(--m-base,.22s) cubic-bezier(.22,1,.36,1),
        visibility .18s,display .18s allow-discrete}
    .split-menu[hidden],.pick-menu[hidden],.chip-menu[hidden],.block-menu[hidden],
    .stay-pop[hidden],.cal-pop[hidden],.cal-peek[hidden],.bellpanel[hidden],.wrp[hidden],
    .wrp-times[hidden],.cmp-at[hidden],.drop[hidden],[role="menu"][hidden]{
      opacity:0 !important;transform:translateY(-6px)}
    @media(max-width:860px){
      .nav-panel{transition:none}
    }
  }
}
/* ── The page header, on a phone (Ben, 1 Oct 2026) ───────────────────────
   Every main page — the places the menu goes — opens under a header the
   way an app's tabs do: the page's name large, its main action as a round
   "+" at the right, and the page's own switches (mine only, today only,
   mine / everyone, list / board) in a row under it. It stays at the top
   while the page scrolls. A page inside one (a project, a contact, an
   event) has no header: its title is part of what it shows. */
@media(max-width:860px){
  /* Fixed to the screen, not stuck to the page (Ben, 1 Oct 2026): inside
     the app's frame iOS moves a stuck header a beat behind the finger, and
     it shivered at the top on every scroll; a fixed one is held by the
     screen, as the tab bar is. A spacer of its height (pinHeaders below)
     keeps its place in the page. */
  body:has(.is-main) .pagehead,body:has(.is-main) .dhead{position:fixed;left:0;right:0;
    top:calc(var(--head-h,56px) - 1px);z-index:40;transform:translateZ(0);
    margin:0;padding:12px max(16px,var(--sar,0px)) 10px max(16px,var(--sal,0px));
    background:var(--page);border-bottom:1px solid var(--border)}
  body:has(.is-main) .pagehead .head-row,body:has(.is-main) .dhead{display:flex !important;
    flex-direction:row !important;align-items:center !important;text-align:left !important;
    justify-content:space-between !important;gap:10px;flex-wrap:nowrap !important;margin:0}
  body:has(.is-main) .pagehead .head-row > div:first-child,
  body:has(.is-main) .dhead > div:first-child{flex:1 1 auto;min-width:0}
  body:has(.is-main) .pagehead h1,body:has(.is-main) .dhead h1{font-size:25px;line-height:1.15;
    margin:0;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;
    text-overflow:ellipsis;text-align:left}
  /* Several sets of switches (pipeline, list/board) share one sideways row. */
  body:has(.is-main) .pagehead .head-row > :not(:first-child):not(.head-acts):not(.split-btn){
    flex:none}
  body:has(.is-main) .pagehead .btn{min-height:32px;padding:6px 11px;font-size:10.5px}
  body:has(.is-main) .pagehead .head-row > div:first-child p.subtle{display:none}
  /* The main action: a round "+" (with its words kept for a screen reader). */
  body:has(.is-main) .pagehead .head-acts{display:flex;gap:8px;flex:none;margin:0;width:auto !important}
  body:has(.is-main) .pagehead .head-acts .btn{width:auto !important}
  body:has(.is-main) .pagehead .head-acts > .btn:first-child{width:40px !important;max-width:40px}
  body:has(.is-main) .pagehead .split-main{flex:0 0 40px !important}
  body:has(.is-main) .pagehead .head-acts > .btn:first-child,
  body:has(.is-main) .pagehead .split-main{width:40px;height:40px;min-height:40px;padding:0;
    border-radius:50% !important;font-size:0;letter-spacing:0;display:inline-flex;
    align-items:center;justify-content:center;flex:none}
  /* A split button is one shape, halved (Ben, 3 Oct 2026). */
  body:has(.is-main) .pagehead .split-btn > .split-main{border-radius:999px 0 0 999px !important;
    width:46px;flex:0 0 46px !important;padding-left:4px}
  body:has(.is-main) .pagehead .head-acts > .btn:first-child .plus,
  body:has(.is-main) .pagehead .split-main .plus{font-size:24px;line-height:1;margin:0;font-weight:400}
  body:has(.is-main) .pagehead .split-btn{display:flex !important;align-items:center;gap:0;
    flex:none !important;width:auto !important;margin:0 0 0 auto !important;justify-content:flex-end}
  body:has(.is-main) .pagehead .split-more{width:38px;height:40px;min-height:40px;padding:0 4px 0 0;
    border-radius:0 999px 999px 0 !important;flex:none;display:inline-flex;align-items:center;justify-content:center}
  /* The switches, compact, in a row under the name — wrapping to a second
     line rather than scrolling sideways (nothing here scrolls sideways). */
  body:has(.is-main) .pagehead .filterbar{display:flex;gap:8px 10px;margin:10px 0 0 !important;
    padding:0;border:0;flex-wrap:wrap !important;align-items:center}
  body:has(.is-main) .pagehead .filterbar > *{flex:none}
  body:has(.is-main) .pagehead .filterbar .toggle{flex:none;margin:0}
  /* Search boxes run the full width on a phone, on every page (Ben, 10 Nov 2026). */
  .wrap input[type=search]:not(.dcl-find),body:has(.is-main) .pagehead .filterbar input[type=search]{
    flex:1 1 100% !important;width:100% !important;max-width:none !important;min-width:0 !important;box-sizing:border-box}
  body:has(.is-main) .pagehead .dash-scope,body:has(.is-main) .pagehead .seg{flex:none}
}
@keyframes tcSheetOut{from{transform:none}to{transform:translateX(100%)}}
@keyframes tcFade{from{opacity:0}to{opacity:1}}
@keyframes tcFadeOut{from{opacity:1}to{opacity:0}}
/* Reduce Motion asks for less *movement* — no bounce, no parallax — not for
   things to teleport. A sheet that simply appears reads as a glitch (Ben
   has it on, and saw exactly that), so the sheet still slides, a little
   quicker and with no overshoot, as the calendar's calm spring does. */
@media(prefers-reduced-motion:reduce){.nav.open{animation-duration:.26s}
  .nav.open.closing{animation-duration:.2s}}

/* ── Motion, kept small ─────────────────────────────────────────────────
   Things answer the finger: a press sinks a hair, a card eases in as its
   page arrives. None of it is long enough to wait for, and all of it stops
   for somebody who has asked their device for less motion. */
.btn,.tab,.nq,.lay-switch button,.tabs-edit,.cmp-send,.cmp-tool,.bellbtn,.backbtn,.c-row,.pick-face{
  transition:transform var(--m-quick,.12s) ease, background-color var(--m-quick,.15s) ease, color var(--m-quick,.15s) ease, box-shadow var(--m-quick,.15s) ease}
.btn:active,.nq:active,.lay-switch button:active,.tabs-edit:active,.cmp-send:active,
.bellbtn:active,.backbtn:active,.c-row:active{transform:scale(.97)}
.tab:active{transform:scale(.94)}
/* `backwards`, never `both`: the start state holds through the delay, and
   once the card has arrived the animation lets go of it. Held at its end
   state, every card kept a transform — which makes it the box that
   `position:fixed` measures from and paints within — so the owner, team and
   client lists opened inside a card and slid under the card below it. */
.wrap > .card,.wrap .two-col .card,.wrap .dash-panel,.wrap .dash-tile{animation:tcRise .32s cubic-bezier(.22,1,.36,1) backwards}
.wrap .two-col .col:nth-child(2) .card{animation-delay:.04s}
/* Tiles arrive one after another, 40ms apart and no more than six steps (the lift pass, 14 Nov 2026). */
.wrap .dash-tile:nth-child(2),.wrap .stat-tile:nth-child(2){animation-delay:.04s}
.wrap .dash-tile:nth-child(3),.wrap .stat-tile:nth-child(3){animation-delay:.08s}
.wrap .dash-tile:nth-child(4),.wrap .stat-tile:nth-child(4){animation-delay:.12s}
.wrap .dash-tile:nth-child(5),.wrap .stat-tile:nth-child(5){animation-delay:.16s}
.wrap .dash-tile:nth-child(n+6),.wrap .stat-tile:nth-child(n+6){animation-delay:.2s}
.wrap .stat-tile{animation:tcRise .32s cubic-bezier(.22,1,.36,1) backwards}
html.tc-vt .wrap .stat-tile{animation:none}
@keyframes tcRise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html.tc-vt .wrap > .card,html.tc-vt .wrap .two-col .card,html.tc-vt .wrap .dash-panel,html.tc-vt .wrap .dash-tile{animation:none}
/* A card holding something pinned to the screen (the comment box) fades
   only: a moving card is, for that moment, what the pinned box is pinned to. */
.wrap .card:has(.composer),.wrap .card:has([style*="position:fixed"]){animation-name:tcFadeIn}
@keyframes tcFadeIn{from{opacity:0}to{opacity:1}}
/* ── Between pages: a quick fade, the header held still ─────────────────
   Ben: pages and actions should not flash in, they should fade, with the
   header staying put. Page to page is the browser's own view transition:
   the page underneath cross-fades and the named header and tab bar are
   drawn straight across, not faded. */
@view-transition{navigation:auto}
.topbar{view-transition-name:tc-top}
.tabbar{view-transition-name:tc-tabs}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s;animation-timing-function:ease}
::view-transition-group(tc-top),::view-transition-group(tc-tabs),
::view-transition-new(tc-top),::view-transition-new(tc-tabs){animation:none}
::view-transition-old(tc-top),::view-transition-old(tc-tabs){display:none}
/* Things that open — an event's details, the new-event box, a menu, the
   bell — fade on rather than appear. Opacity only, and `backwards`: held at
   its end, an opacity animation keeps a stacking context that traps what
   floats inside (the lesson of the cards' arrival animation). */
.cal-peek,.cal-pop,.tpop,.bellpanel:not([hidden]),.pick-menu:not([hidden]),
.chip-menu,.block-menu,.tc-in{animation:tcFadeIn .16s ease backwards}
@media(prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none !important}
  .cal-peek,.cal-pop,.tpop,.bellpanel,.pick-menu,.chip-menu,.block-menu,.tc-in{animation:none}
}
/* Under Reduce Motion the arrival is a fade with no rise; presses stay —
   a few percent of scale under the finger is feedback, not motion. */
@media(prefers-reduced-motion:reduce){
  .wrap > .card,.wrap .two-col .card,.wrap .dash-panel,.wrap .dash-tile{animation-name:tcFadeIn}
}

.pushask{position:fixed;z-index:97;right:18px;bottom:calc(18px + var(--tabbar-h,0px));
  display:flex;align-items:center;gap:10px;max-width:min(460px,calc(100vw - 24px));
  background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:10px;
  box-shadow:0 12px 34px rgba(0,0,0,.18);padding:12px 12px 12px 16px;box-sizing:border-box}
.pushask-t{display:flex;flex-direction:column;gap:2px;font-size:13px;flex:1 1 auto;min-width:0}
.pushask-t span{font-size:12px;color:var(--ink-muted)}
.pushask button{flex:none;min-height:38px;border-radius:3px;font:inherit;font-size:11px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:0 14px;cursor:pointer}
.pushask-no{background:none;border:1px solid var(--border);color:var(--ink-secondary)}
.pushask-yes{background:var(--indigo);border:0;color:#fff}
@media(max-width:860px){.pushask{left:12px;right:12px;bottom:calc(12px + var(--tabbar-h,0px))}}

/* ── Moving between pages without a flash ────────────────────────────────
   Every page is still its own page — that is what keeps every save, every
   script and every back button honest — but the browser is told to hold the
   old page on screen and cross-fade to the new one instead of blanking the
   screen between them. The header and the tab bar are the same element on
   both pages and stay perfectly still while the content changes. */
@view-transition{navigation:auto}
/* Speed (Ben, 6 Nov 2026: "why is the console still so slow"): on a computer the browser already holds the old page
   until the new one paints, so the cross-fade only delayed every first paint by ~90ms (measured). Phones keep it. */
@media (min-width:861px) and (pointer:fine){@view-transition{navigation:none}}
.topbar{view-transition-name:tc-top}
.tabbar{view-transition-name:tc-tabs}
::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
::view-transition-group(tc-top),::view-transition-group(tc-tabs){animation:none}
::view-transition-old(tc-top),::view-transition-new(tc-top),
::view-transition-old(tc-tabs),::view-transition-new(tc-tabs){animation:none;mix-blend-mode:normal}
/* A cross-fade is what Reduce Motion itself recommends in place of movement,
   so it stays. */

/* ── Leaving a page: fade to its outline (Ben, 7 Oct 2026) ───────────────
   In a browser tab, the moment a link to another page is followed the
   content fades and an outline of a page takes its place, in the theme's own
   colours, until the next page cross-fades in over it. So there is never a
   moment of a half-drawn page or the browser's blank between the two. The
   installed app has its own outline (appshell.py) and is left to it. */
html.tc-leaving .wrap{position:relative}
html.tc-leaving .wrap > *{opacity:0;transition:opacity var(--m-quick,.14s) ease}
html.tc-leaving .wrap::before{content:"";position:absolute;z-index:5;pointer-events:none;
  top:56px;left:max(28px,var(--sal));right:max(28px,var(--sar));height:560px;
  --sk:color-mix(in srgb,var(--ink) 9%,transparent);--sk2:color-mix(in srgb,var(--ink) 5%,transparent);
  background-image:linear-gradient(var(--sk) 0 0),linear-gradient(var(--sk) 0 0),linear-gradient(var(--sk) 0 0),
    linear-gradient(var(--sk2) 0 0),linear-gradient(var(--sk2) 0 0),linear-gradient(var(--sk2) 0 0);
  background-repeat:no-repeat;
  background-size:min(38%,420px) 34px,min(22%,240px) 13px,min(14%,150px) 13px,100% 132px,100% 132px,100% 132px;
  background-position:0 0,0 54px,0 78px,0 120px,0 268px,0 416px;
  border-radius:10px;animation:tcFadeIn .2s ease backwards,tcSkel 1.1s ease-in-out .2s infinite alternate}
@keyframes tcSkel{from{opacity:1}to{opacity:.55}}
@keyframes tcArrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(min-width:861px){html.tc-arrive .wrap{animation:tcFadeIn .12s ease-out backwards}}
/* Arriving after the outline was up: the outline fades away over the arrived page instead of cutting out. */
html.tc-from-outline .wrap{position:relative}
html.tc-from-outline .wrap::after{content:"";position:absolute;z-index:5;pointer-events:none;inset:0;
  background:var(--page,#f0efeb);animation:tcOutlineAway .3s cubic-bezier(.22,1,.36,1) forwards}
@keyframes tcOutlineAway{from{opacity:1}to{opacity:0;visibility:hidden}}
/* The click is answered at once: a thin bar runs across the top until the next page is here. */
#tc-going{position:fixed;left:0;top:0;height:2px;width:0;z-index:2147483000;pointer-events:none;opacity:0;
  background:var(--gold,#d69622);box-shadow:0 0 6px color-mix(in srgb,var(--gold,#d69622) 60%,transparent)}
html.tc-going #tc-going{opacity:1;width:78%;transition:width 1.6s cubic-bezier(.08,.75,.2,1),opacity var(--m-instant,.1s) ease}
html.in-app #tc-going{display:none}
@media(prefers-reduced-motion:reduce){html.tc-going #tc-going{transition:opacity var(--m-instant,.1s) ease;width:100%}
  html.tc-from-outline .wrap::after{animation-duration:.12s}}
html.in-app.tc-leaving .wrap > *{opacity:1}
html.in-app.tc-leaving .wrap::before{display:none}
@media(max-width:640px){html.tc-leaving .wrap::before{top:28px;left:max(16px,var(--sal));right:max(16px,var(--sar));
  background-size:62% 30px,40% 12px,28% 12px,100% 110px,100% 110px,100% 110px;
  background-position:0 0,0 48px,0 70px,0 104px,0 228px,0 352px}}
@media(prefers-reduced-motion:reduce){html.tc-leaving .wrap::before{animation:tcFadeIn .2s ease backwards}}
/* Page changes on a phone in the browser (Ben, 8 Oct 2026): a page that is
   not one of the tab-bar pages slides in from the right; back slides the
   page off to the right and the one returned to slides in from the left.
   The installed app does the same with its own frames (appshell). */
@keyframes tcPushIn{from{transform:translateX(34%);opacity:0}to{transform:none;opacity:1}}
@keyframes tcPopIn{from{transform:translateX(-26%);opacity:.4}to{transform:none;opacity:1}}
@media(max-width:860px){
  html.tc-push-in .wrap{animation:tcPushIn .3s cubic-bezier(.22,1,.36,1) both}
  html.tc-pop-in .wrap{animation:tcPopIn .28s cubic-bezier(.22,1,.36,1) both}
  html.tc-popping .wrap{transition:transform var(--m-base,.22s) cubic-bezier(.4,0,1,1),opacity var(--m-base,.22s) ease;transform:translateX(100%);opacity:.6}
  html.tc-popping,html.tc-push-in,html.tc-pop-in{overflow-x:hidden}
  html.tc-popping .wrap::before{display:none}
}
@media(prefers-reduced-motion:reduce){html.tc-push-in .wrap,html.tc-pop-in .wrap{animation:none}
  html.tc-popping .wrap{transition:none}}

/* ── Inside the installed app: no header ─────────────────────────────────
   The app is the frame, and a phone app has no web header: the page starts
   under the status bar (which gets a backdrop so text never scrolls under
   the clock), the tab bar and More do the navigating, and a round back
   button appears on pages that are not a tab. The bar's contents are
   hidden, not the element: the More sheet lives inside it. */
.nav-quick,.nav-layout,.back-app{display:none !important}
@media(max-width:860px){
  html.in-app .topbar{background:none;box-shadow:none;border:0;min-height:0}
  html.in-app .topbar-inner{display:none !important}
  html.in-app body::before{content:"";position:fixed;left:0;right:0;top:0;height:var(--sat);
    z-index:72;background:inherit;pointer-events:none}
  html.in-app .wrap{padding-top:calc(var(--sat) + 18px) !important}
  html.in-app body:has(.back-app) .wrap{padding-top:calc(var(--sat) + 60px) !important}
  html.in-app .back-app{display:grid !important;position:fixed;z-index:67;
    top:calc(var(--sat) + 8px);left:max(10px,var(--sal));width:40px;height:40px;margin:0;
    place-items:center;border-radius:50%;color:var(--ink);
    background:color-mix(in srgb,var(--surface) 88%,transparent);
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
    border:1px solid var(--border);box-shadow:0 4px 14px rgba(0,0,0,.12)}
  html.in-app .back-app svg{width:18px;height:18px}
  /* In the header, left of the title, in the page's flow (see the script). */
  html.in-app .back-row{display:flex;align-items:center;gap:10px;min-width:0}
  html.in-app .back-row > h1{flex:1 1 auto;min-width:0;margin-top:0;margin-bottom:0}
  html.in-app .back-app.in-head{position:static;flex:none;width:36px;height:36px;
    margin:0 0 0 -4px;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
    background:var(--surface)}
  html.in-app.back-in-head body:has(.back-app) .wrap{padding-top:calc(var(--sat) + 18px) !important}
  /* The bar every page inside a main one wears (see backIntoHead). */
  html.in-app .subhead{position:fixed;left:0;right:0;top:0;z-index:66;display:flex;align-items:center;
    gap:10px;min-height:54px;padding:calc(var(--sat) + 7px) max(14px,var(--sar)) 7px max(10px,var(--sal));
    background:var(--page);border-bottom:1px solid var(--border);transform:translateZ(0)}
  html.in-app .subhead .back-app{position:static;flex:none;width:36px;height:36px;margin:0;
    box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--surface)}
  html.in-app .subhead-t{flex:1 1 auto;min-width:0;font-size:16px;font-weight:700;color:var(--ink);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.005em}
  html.in-app .subhead-t{transition:opacity var(--m-base,.18s) ease}
  html.in-app .subhead.t-hid .subhead-t{opacity:0}
  html.in-app.has-subhead body:has(.back-app) .wrap{padding-top:calc(var(--sat) + 72px) !important}
  /* The way back is the bar's; a trail of links above the title says it twice. */
  html.in-app.has-subhead .crumb{display:none}
  html.in-app .nav-quick{display:grid !important;grid-template-columns:1fr 1fr;gap:8px}
  /* Icons start at the same edge in every tile, so they line up down the column (Ben, 14 Nov 2026). */
  html.in-app .nq{display:flex !important;align-items:center;justify-content:flex-start;gap:9px;
    min-height:46px;border:1px solid rgba(255,255,255,.22);border-radius:8px;color:#fff;
    font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
    text-decoration:none;padding:0 14px !important;width:auto !important;min-width:0;white-space:nowrap}
  html.in-app .nq svg{flex:none;width:18px;height:18px}
  html.in-app .nq .nq-n{margin-left:auto}
  html.in-app .nav-quick .nq:last-child:nth-child(odd){grid-column:1 / -1}
  html.in-app .nq-n{min-width:18px;height:18px;border-radius:9px;background:var(--gold);
    color:var(--indigo-deep);font-size:10px;line-height:18px;text-align:center;padding:0 5px}
  html.in-app .nq-n[hidden]{display:none}
  html.in-app.can-fold .nav-layout{display:block !important;text-align:center}
  .lay-switch{display:inline-flex;border:1px solid rgba(255,255,255,.3);border-radius:3px;overflow:hidden}
  .lay-switch button{border:0;background:none;color:#fff;font:inherit;font-size:11px;font-weight:700;
    letter-spacing:.08em;text-transform:uppercase;padding:10px 18px;min-height:40px;cursor:pointer}
  .lay-switch button.on{background:var(--gold);color:#1d1b35}
  .tab-more{position:relative}
  .tab-more.has-dot::after{content:"";position:absolute;top:9px;right:calc(50% - 16px);width:8px;height:8px;
    border-radius:50%;background:var(--critical,#c0392b);box-shadow:0 0 0 2px var(--surface)}
}

/* ── Fold covers and the smallest phones ───────────────────────────────────
   A Galaxy Fold's cover screen is 280px wide. Back, forward, the bell, the
   calendar and the menu button are 190px of that before any gap, so below
   360 everything tightens a step and the wordmark gives way first — the
   menu button must never be the thing pushed off the edge. */
@media(max-width:360px){
  .topbar-inner{gap:4px;padding-left:max(8px,var(--sal));padding-right:max(8px,var(--sar))}
  .topbar-inner > div{gap:4px !important}
  .bellbtn,.calbtn{width:30px;height:30px}
  /* Calendar is a tab at the bottom; on the narrowest screens it leaves the
     header so the menu button never goes off the edge. */
  .topbar-right .calbtn{display:none}
  .nav-toggle{padding:0 9px;min-height:36px}
  .brand img{max-width:100%;height:auto;max-height:22px}
}

@media(max-width:420px){
  .wrap{padding:26px max(14px,var(--sar)) calc(64px + var(--sab)) max(14px,var(--sal))}
  h1{font-size:21px}
  .brand .sub{display:none}
}

.empty{color:var(--ink-muted);font-style:italic;font-size:14px;
       font-family:'Gentium Plus',Georgia,serif;padding:26px 16px}
.flash{padding:14px 18px;margin-bottom:22px;font-size:13.5px;border:1px solid;
       border-left-width:3px;border-radius:var(--radius)}
.flash-ok{background:var(--ok-wash);border-color:var(--ok-line);border-left-color:var(--good);color:var(--ok-ink)}
.flash-err{background:var(--err-wash);border-color:var(--err-line);border-left-color:var(--critical);color:var(--err-ink)}

/* ── Tighter, everywhere (Ben, 22 Oct 2026: "too much gap in between
   everything … I like the project individual pages cause it's a lot tighter").
   One layer at the end, so it beats the roomy defaults above and nothing that
   a page already set more tightly (pagekit's cards, the full-height calendar)
   is touched: `:where()` keeps the page-top rule weaker than `body.full .wrap`.
   Phones keep their 44px buttons and 16px inputs — only spacing moves there. */
.wrap:where(:not(.cwrap)){padding-top:30px}
.pagehead{margin-bottom:18px;padding-bottom:14px}
.pagehead h1{margin-bottom:4px}
h2{margin-bottom:10px}
.card{padding:16px 18px;margin-bottom:12px}
.card-tight{padding:0}
.stat-grid{margin-bottom:12px}
.stat-tile{padding:16px 18px}
.flash{padding:10px 14px;margin-bottom:12px}
.field{margin-bottom:12px}
.row{gap:12px}
label{margin-bottom:4px}
table.data th{padding:9px 12px}
table.data td{padding:10px 12px}
@media(min-width:761px){
  .btn{padding:9px 18px}
  .btn-sm{padding:6px 12px}
  input[type=text],input[type=email],input[type=password],input[type=number],
  input[type=date],input[type=search],input[type=url],input[type=tel],
  input:not([type]),select{padding:7px 10px}
  textarea{padding:8px 10px}
}
@media(max-width:760px){.wrap:where(:not(.cwrap)){padding-top:18px}}

/* Things that are gliding must not also be transitioning something else, or
   the two fight and the result is neither. */
.tc-gliding{will-change:transform}
.tc-held{transition:none !important}

/* The thing under the pointer. It lifts on pick-up and settles on release —
   the scale and tilt are what separate "carried" from "slid", and they live
   in the same transform as the position because a second transform on a
   parent would fight this one every frame. */
.tc-ghost{position:fixed;top:0;left:0;z-index:1000;pointer-events:none;
  transform-origin:center;will-change:transform;
  transition:box-shadow .18s ease, opacity .18s ease}
.tc-ghost.tc-lift{box-shadow:0 14px 30px rgba(28,27,51,.28)}

@media(prefers-reduced-motion:reduce){
  .tc-gliding{transition:none !important}
  .tc-ghost{transition:none}
}

:root{--m-instant:.08s;--m-quick:.14s;--m-base:.22s;--m-slow:.34s;--m-ease:cubic-bezier(.2,.8,.3,1);--m-out:cubic-bezier(.22,1,.36,1)}
@media (prefers-reduced-motion:no-preference){
  :root{interpolate-size:allow-keywords}
  /* Expand / collapse: the height glides (browsers that can), the content rises in (all). */
  details::details-content{transition:block-size var(--m-base) var(--m-out),content-visibility var(--m-base) allow-discrete}
  details:not([open])::details-content{block-size:0;overflow:clip}
  details > summary{transition:background-color var(--m-quick) ease,color var(--m-quick) ease}
  details[open] > :not(summary){animation:tcRiseIn var(--m-base) var(--m-out) backwards}
  /* Press: a hair of sink under the finger, on everything pressable the older rules don't already cover. */
  button:not(.btn):not(.tab):not(.nq):not(.bellbtn):not(.backbtn):not(.cmp-send):not(.tabs-edit):not(.cmp-tool),
  [role="button"],.chip,.nw-link,.nw-tick,.ico-del{
    transition:background-color var(--m-quick) ease,color var(--m-quick) ease,border-color var(--m-quick) ease,
      box-shadow var(--m-quick) ease,opacity var(--m-quick) ease,scale var(--m-quick) var(--m-ease)}
  button:not(.btn):not(.tab):not(.nq):not(.bellbtn):not(.backbtn):not(.cmp-send):not(.tabs-edit):not(.cmp-tool):active:not(:disabled),
  [role="button"]:active,.chip:active,.nw-link:active,.nw-tick:active,.ico-del:active{scale:.96}
  /* Click & change: fields and their focus ring ease; a tick pops when it changes (script adds .tc-pop). */
  input,select,textarea,.nw-ed,[contenteditable="true"]{
    transition:border-color var(--m-quick) ease,box-shadow var(--m-base) ease,background-color var(--m-quick) ease}
  .tc-pop{animation:tcPop .26s var(--m-ease)}
  /* Cards you can open lift a little under the pointer. */
  @media (hover:hover){
    a.card,.nw-card,.card[data-href],.dash-tile,.c-row{transition:box-shadow var(--m-base) ease,translate var(--m-base) var(--m-out),
      border-color var(--m-quick) ease}
    a.card:hover,.nw-card:hover,.card[data-href]:hover,.dash-tile:hover{translate:0 -2px;
      box-shadow:0 10px 24px -14px rgba(28,27,51,.45)}
    .nw-card .nw-img{transition:filter var(--m-base) ease}
    .nw-card:hover .nw-img{filter:brightness(1.04) saturate(1.05)}
  }
  /* Drag and drop: a target eases into its highlight and out of it; the item left behind fades. */
  .over,.is-over,.drop-here,.dropzone,.fm-drop{transition:background-color var(--m-quick) ease,border-color var(--m-quick) ease,
    outline-color var(--m-quick) ease,box-shadow var(--m-quick) ease}
  .dragging{transition:opacity var(--m-quick) ease}
  /* Messages: a saved / error line drops in; a toast rises. */
  .flash{animation:tcDropIn var(--m-slow) var(--m-out) backwards}
  .fm-toast,.toast,.tc-toast{animation:tcToast var(--m-slow) var(--m-out) backwards}
  /* Page updates: added rises in, changed glows once, removed fades out. */
  .tc-in{animation:tcRiseIn var(--m-base) var(--m-out) backwards}
  .tc-changed{animation:tcChanged 1.2s ease-out}
  .tc-out{animation:tcOut .2s ease forwards;pointer-events:none}
  /* Counts (the bell, a tab's number) pop when they change. */
  .tc-bump{animation:tcPop .3s var(--m-ease)}
}
@keyframes tcRiseIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes tcDropIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes tcToast{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes tcPop{0%{scale:1}40%{scale:1.18}100%{scale:1}}
@keyframes tcChanged{from{background-color:color-mix(in srgb,var(--gold,#d69622) 32%,transparent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--gold,#d69622) 22%,transparent)}}
@keyframes tcOut{to{opacity:0;transform:scale(.98)}}
@media (prefers-reduced-motion:reduce){
  .tc-in,.tc-pop,.tc-bump,.flash,.fm-toast,.toast,.tc-toast{animation:none}
  .tc-changed{animation:tcChanged .8s linear}
  .tc-out{animation:tcFadeOutCalm .12s linear forwards}
}
@keyframes tcFadeOutCalm{to{opacity:0}}

/* Each person's motion setting. Reduced keeps fades and colour, drops movement; Off stops both. */
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after{
  animation-duration:.001ms !important;animation-delay:0s !important;animation-iteration-count:1 !important;
  transition-duration:.001ms !important;transition-delay:0s !important;scroll-behavior:auto !important}
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{
  animation-duration:.001ms !important;animation-delay:0s !important;animation-iteration-count:1 !important;
  transition-property:opacity,color,background-color,border-color,box-shadow,outline-color !important;
  scroll-behavior:auto !important}
html[data-motion="off"]::view-transition-group(*),html[data-motion="off"]::view-transition-old(*),
html[data-motion="off"]::view-transition-new(*),html[data-motion="reduced"]::view-transition-group(*),
html[data-motion="reduced"]::view-transition-old(*),html[data-motion="reduced"]::view-transition-new(*){
  animation:none !important}
/* The switch, a group of three like Appearance. */
.motion-switch{display:inline-flex;border:1px solid var(--border,rgba(120,120,120,.34));border-radius:3px;
  overflow:hidden;flex:none}
.motion-switch .mo-opt{appearance:none;border:0;background:none;color:inherit;font:inherit;font-size:12px;
  padding:5px 10px;cursor:pointer}
.motion-switch .mo-opt + .mo-opt{border-left:1px solid var(--border,rgba(120,120,120,.34))}
.motion-switch .mo-opt.on{background:var(--gold,#d69622);color:#17150f;font-weight:700}
.motion-switch .mo-opt:focus-visible{outline:2px solid var(--gold,#d69622);outline-offset:-2px}
/* On a desktop it sits at the foot of the side menu; on a phone, in the menu under Appearance. */
@media(min-width:1024px){
  html:not(.fold) .nav .nav-motion{display:block;margin-top:auto;padding:18px 22px 0;border:0;
    color:var(--side-ink,var(--ink,#1c1b33))}
  html:not(.fold) .nav .nav-motion .mo-opt{color:var(--side-ink,var(--ink,#1c1b33)) !important}
  html:not(.fold) .nav .nav-motion .mo-opt.on{color:#17150f !important}
  html:not(.fold) .nav .nav-motion .nav-sec{display:block;margin:0 0 6px;font-size:10.5px;font-weight:700;
    letter-spacing:.12em;text-transform:uppercase;color:var(--side-head,var(--ink-muted,#5c554c))}
}
/* On a phone it is centred and sized like Appearance above it (Ben, 14 Nov 2026). */
@media(max-width:1023px){
  .nav .nav-motion{text-align:center}
  .nav .nav-motion .motion-switch{border-color:rgba(255,255,255,.22);border-radius:10px;margin-top:2px}
  .nav .nav-motion .mo-opt{min-height:36px;padding:0 16px;font-size:13px}
  .nav .nav-motion .mo-opt + .mo-opt{border-left-color:rgba(255,255,255,.22)}
}
/* Working: the pressed button keeps its size and words, and a ring turns beside them. */
.tc-busy{position:relative;pointer-events:none;cursor:progress}
.tc-busy::after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:.5em;vertical-align:-.08em;
  border:2px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.8;
  animation:tcSpin .7s linear infinite}
input.tc-busy{opacity:.7}
@keyframes tcSpin{to{transform:rotate(360deg)}}
html[data-motion="off"] .tc-busy::after,html[data-motion="reduced"] .tc-busy::after{animation:none !important;
  border-right-color:currentColor;opacity:.5}
@media (prefers-reduced-motion:reduce){.tc-busy::after{animation:none;border-right-color:currentColor;opacity:.5}}
/* The bar over a scrolled page. */
.topbar{transition:box-shadow var(--m-base,.22s) ease}
.topbar.tc-scrolled{box-shadow:0 6px 18px -10px rgba(12,11,15,.55)}
/* A native dialog comes in and goes out. `translate` and `scale`, not `transform`, so a dialog that places itself
   with a transform keeps its place; the backdrop fades by opacity, so a dialog's own backdrop colour stands. */
:where(dialog)::backdrop{background:rgba(12,11,15,.42)}
@media (prefers-reduced-motion:no-preference){
  dialog{transition:opacity var(--m-base,.22s) ease,translate var(--m-base,.22s) var(--m-out,ease),
    scale var(--m-base,.22s) var(--m-out,ease),overlay var(--m-base,.22s) allow-discrete,
    display var(--m-base,.22s) allow-discrete;opacity:0;translate:0 8px;scale:.985}
  dialog[open]{opacity:1;translate:0 0;scale:1}
  dialog::backdrop{transition:opacity var(--m-base,.22s) ease,overlay var(--m-base,.22s) allow-discrete,
    display var(--m-base,.22s) allow-discrete;opacity:0}
  dialog[open]::backdrop{opacity:1}
  @starting-style{dialog[open]{opacity:0;translate:0 8px;scale:.985}
    dialog[open]::backdrop{opacity:0}}
  /* Something dragged the browser's own way: what is left behind dims, and what was dropped settles. */
  .tc-drag-src{opacity:.45}
  .tc-settle{animation:tcSettle var(--m-slow,.34s) var(--m-out,ease)}
}
@keyframes tcSettle{from{scale:1.035;box-shadow:0 12px 26px -12px rgba(28,27,51,.5)}to{scale:1;box-shadow:none}}

.tc-mk-host{position:relative}
.tc-mk-host > :not(.tc-mk){position:relative;z-index:1}
.tc-mk-host > .on{background:transparent !important}
.tc-mk{position:absolute;left:0;top:0;width:100px;z-index:0;pointer-events:none;transform-origin:0 50%;
  background:var(--gold,#d69622);transition:transform var(--m-base,.22s) var(--m-out,ease)}
.dash-scope > .tc-mk{background:var(--indigo,#2b2a4e)}
.tc-mk.tc-held{transition:none !important}
@media (prefers-reduced-motion:reduce){.tc-mk{transition:none}}
@media print{.tc-mk{display:none}}

.bg-pending{position:relative}
.btn.bg-pending,button.bg-pending,input[type=submit].bg-pending{box-shadow:0 0 0 2px var(--gold-soft,rgba(214,150,34,.35))}
form.bg-pending{outline:2px solid var(--gold-soft,rgba(214,150,34,.35));outline-offset:2px}
@media (prefers-reduced-motion:no-preference){
  html:not([data-motion="off"]):not([data-motion="reduced"]) .bg-pending{
    animation:tcSaving calc(var(--m-slow,.34s) * 3) var(--m-ease,ease) infinite alternate}
}
@keyframes tcSaving{from{opacity:1}to{opacity:.55}}
.tc-syncpill{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px) + var(--tabbar-h,0px));
  z-index:900;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.02em;
  background:var(--panel,var(--surface,#fff));color:var(--ink-muted,#5c554c);border:1px solid var(--border,rgba(120,120,120,.34));
  box-shadow:var(--shadow-sm,0 4px 14px -6px rgba(12,11,15,.35));opacity:0;transform:translateY(6px);pointer-events:none;
  transition:opacity var(--m-quick,.14s) var(--m-ease,ease),transform var(--m-quick,.14s) var(--m-ease,ease)}
.tc-syncpill.on{opacity:1;transform:none}
.tc-syncpill[data-state="saved"]{color:var(--ok-ink,#2f6b3a)}
.tc-syncpill[data-state="failed"]{color:var(--err-ink,#a3302a)}
@media (prefers-reduced-motion:reduce){.tc-syncpill{transition:opacity var(--m-quick,.14s) linear;transform:none}}
@media print{.tc-syncpill{display:none}}

tr[data-lazy] .tc-lazy-cell::before{content:"";display:block;height:10px;width:60%;max-width:90px;border-radius:5px;
  background:color-mix(in srgb,var(--ink) 9%,transparent)}
@media (prefers-reduced-motion:no-preference){
  tr[data-lazy] .tc-lazy-cell::before{animation:tcSkel 1.1s ease-in-out infinite alternate}
}

html.tc-snapped .wrap{pointer-events:none}
html.tc-snapped.tc-leaving .wrap > *{opacity:1}
html.tc-snapped.tc-leaving .wrap::before{display:none}

/* The handle sits *on* the line between two headings, half in each, so it is
   the line you grab rather than a strip beside it. */
th[data-colgrip]{position:relative}
.colgrip{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;
  z-index:3;background:transparent;border:0;padding:0;touch-action:none}
.colgrip:after{content:"";position:absolute;top:18%;bottom:18%;left:4px;width:1px;
  background:var(--border);opacity:0;transition:opacity var(--m-instant,.1s) ease}
.colgrip:hover:after,.colgrip.pulling:after{opacity:1;background:var(--indigo);
  top:0;bottom:0;width:2px;left:3.5px}
.colgrip:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
/* While a column is being dragged the whole page is in that gesture: no text
   gets selected, and the cursor does not flicker as it crosses a cell. */
body.col-pulling{cursor:col-resize;user-select:none;-webkit-user-select:none}
@media(hover:none){.colgrip{right:-7px;width:16px}}

/* ── Back ────────────────────────────────────────────────────────────────
   In the top bar, before the brand, where every application that has one
   puts it. Drawn switched on, so it is there with the first paint rather
   than popping in once the page's scripts have run; the script only dims it
   when there turns out to be nowhere to go. */
.backbtn{display:none;align-items:center;justify-content:center;flex:0 0 auto;
  width:26px;height:26px;border:1px solid transparent;border-radius:4px;
  background:none;color:rgba(255,255,255,.72);cursor:pointer;padding:0;
  align-self:center;margin-right:6px}
.backbtn.on{display:inline-flex}
.backbtn:hover{color:#fff;background:rgba(255,255,255,.14)}
.backbtn:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
/* One in the menu bar, one in the header, and only ever one on screen. Below
   760px the menu bar is the collapsed menu, so a control inside it is not
   rendered at all — which is the device that has no browser button either. */
.back-bar{display:none !important}
@media(max-width:860px){
  .back-nav{display:none !important}
  .back-bar.on{display:inline-flex !important;width:32px;height:32px;
    margin-right:4px;margin-left:-4px}
}
@media(max-width:360px){
  .back-bar.on{width:28px;height:30px;margin-right:0}
}
/* The client console has one bar and no menu, so it keeps the header copy. */
.cbar .back-bar{display:inline-flex !important;margin-right:10px}
.cbar .back-bar:not(.on){visibility:hidden}
/* ── Forward ─────────────────────────────────────────────────────────────
   The same control pointing the other way, straight after Back, and shown
   whenever Back is — a button that appears and disappears reads as missing.
   Dimmed when nothing is ahead; still pressable, because on browsers that
   cannot say whether anything is ahead, "dimmed" is a guess and forward
   with nothing ahead does nothing at all. */
.fwdbtn{margin-left:-4px}
.backbtn.is-off{opacity:.38}
.backbtn.is-off:hover{background:none}
.cbar .fwdbtn:not(.on){visibility:hidden}


:root{--radius:14px;--radius-md:10px;--radius-sm:7px}
.card,.dash-panel,.dash-tile,.stat-tile,.br-tile,.br-card,.card-tight,.login-card,
.flash,.bellpanel,.belltoast,.pushask,.stay-pop,.c-shell,.c-menu,.cmp-at,.tabpick-row,
.wr-panel,.wrp,.wrp-times,.pick-menu,.cal-scroll,.cal-grid-wrap,.shootcard,.st-card,
.notecheck .table-wrap,.drop,.dropzone,.inv-add,.n-file,.cmp-file,.c-row,
.tgroup .card,.psec,.board-col,.kcol,.pipe-col,.modal,.dialog,.sheet,
.table-wrap:not(.card .table-wrap){border-radius:var(--radius) !important}
/* `clip`, not `hidden`: rounds what is inside without becoming a scroll
   box, so sticky headings inside a card still stick to the screen. */
.card,.dash-panel{overflow:clip}
.card:has(.pick-menu:not([hidden])),.card:has(.cmp-at:not([hidden])){overflow:visible}
.btn,button.btn,a.btn,.btn-sm,.btn-secondary,input:not([type=checkbox]):not([type=radio]),
select,textarea,.pick-face,.c-search,.tabs-edit,.lay-switch,.theme-switch,.portal-switch,
.nav-portal,.portal-opt,.nq,.chip-menu,.chip-opt,.cmp-tool,.linkbox,.cal-switch,
.dash-scope,.filterbar .toggle,.head-acts .btn,.logout-form button,.lang-form,.lang-opt,
.bellbtn,.calbtn,.backbtn:not(.back-app),.nav-toggle,.cal-arrow,.rt-bar,.rt-area,[data-rt] .rt-edit,
.composer textarea{border-radius:var(--radius-md) !important}
.chip-sel,.tsel,.pchip,.tflag,.chip,.status-chip,.tag,.badge,.pill,.c-day span,
.tt-row,.live-mark{border-radius:var(--radius-sm) !important}
.cmp-send,.c-av,.ini,.back-app,.bell-n,.c-badge,.nq-n,.pc-fab,.toggle-track,.toggle-knob{border-radius:999px !important}
/* The two ends of a segmented control, not every segment. */
.theme-switch,.lay-switch,.portal-switch,.dash-scope{overflow:hidden}
.theme-switch .tg-opt,.lay-switch button,.portal-switch .portal-opt,.dash-scope a{border-radius:0 !important}

/* A switch, not a tickbox. This turns a view on and off rather than answering
   a question, and a switch says which of those it is. */
/* This is a <label>, and the shared stylesheet makes every label a 10px
   uppercase bold field caption with a block display and a bottom margin —
   which is why this one came out shouting and sitting off-centre beside the
   buttons. Each of those is overridden deliberately rather than by accident.

   `align-items:center` is what centres the words against the switch; the
   inherited `display:block` was defeating it. */
.toggle{display:inline-flex !important;align-items:center;gap:8px;cursor:pointer;
  white-space:nowrap;min-height:36px;user-select:none;margin:0;
  font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-muted)}
.toggle-label{display:inline-block;line-height:1;margin:0;font-size:inherit;
  font-weight:inherit;letter-spacing:inherit;text-transform:inherit;
  color:inherit}
.toggle input{position:absolute;opacity:0;width:0;height:0}
.toggle-track{width:30px;height:17px;border-radius:19px;background:var(--border);
  position:relative;flex:none;transition:background var(--m-quick,.16s) ease}
.toggle-knob{position:absolute;top:2px;left:2px;width:13px;height:13px;
  border-radius:50%;background:var(--panel);box-shadow:0 1px 2px rgba(0,0,0,.25);
  transition:transform var(--m-quick,.16s) cubic-bezier(.2,.8,.3,1)}
.toggle input:checked + .toggle-track{background:var(--indigo)}
.toggle input:checked + .toggle-track .toggle-knob{transform:translateX(13px)}
.toggle input:focus-visible + .toggle-track{outline:2px solid var(--gold);
  outline-offset:2px}
.toggle:hover .toggle-track{background:var(--ink-muted)}
.toggle:hover input:checked + .toggle-track{background:var(--indigo)}
.toggle input:checked ~ .toggle-label{color:var(--indigo)}
.toggle-n{font-size:11.5px;font-weight:700;color:#fff;background:var(--indigo);
  border-radius:9px;padding:1px 7px;font-variant-numeric:tabular-nums}

/* Pipeline boards: the lines between columns are drawn by each column, not by
   the board's background showing through the gaps — so the empty end of a
   last row is page, not a grey block — and the columns are square, being one
   table rather than a row of cards (Ben, 2 Oct 2026). */
.board{background:none !important;border:0 !important}
.board > .board-col{border-radius:0 !important;box-shadow:0 0 0 1px var(--border)}
.filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.filterbar > *,.searchbar > *,.head-acts > *{margin-top:0;margin-bottom:0}
.searchbar,.head-acts{align-items:center}
.filterbar label:not(.toggle),.searchbar label:not(.toggle),.head-acts label:not(.toggle){
  display:inline-flex;align-items:center;gap:7px;margin:0}
.filterbar input[type=checkbox],.searchbar input[type=checkbox],.head-acts input[type=checkbox]{margin:0}

/* The brand's two faces (Brand Guidelines p.06; Ben, 3 Oct 2026): Chivo is
   the interface — names, labels, fields, buttons, numbers, dates — and
   Gentium Plus is for paragraphs. A button that never said otherwise was in
   the browser's Arial; dates were in a typewriter face the brand does not
   have; and the serif had spread from sentences onto crumbs, owners and
   status words. */
button,input,select,textarea{font-family:inherit}
.mono{font-family:'Chivo',Arial,Helvetica,sans-serif !important;font-variant-numeric:tabular-nums}
.subtle{font-family:'Chivo',Arial,Helvetica,sans-serif}
p.subtle{font-family:'Gentium Plus',Georgia,serif}
.pagehead p.subtle,p.subtle.crumb,p.subtle.nc-count,.nc-count *,.wrap :is(td,span,div,li,small,b,strong,a,button).subtle,
.wrap td :is(span,div,strong,b,a,input),.wrap .cardnote{font-family:'Chivo',Arial,Helvetica,sans-serif}
/* The phone app's sticky title is the app's alone. Outside it, it had no
   style at all and sat under every page as a stray line of the title. */
html:not(.in-app) .subhead{display:none !important}
:root{--fs-title:32px;--fs-section:13px;--fs-field:14px;--fs-label:10px}
@media(max-width:760px){:root{--fs-title:24px;--fs-field:15px}}
.wrap h1{font-size:var(--fs-title) !important;font-weight:700 !important;
  letter-spacing:-.02em !important;line-height:1.18 !important}
.wrap .card h2{font-size:var(--fs-section) !important}
.wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),
  select,textarea,.pick-face,.when-d,.when-t):not(.tsel){font-size:var(--fs-field) !important}
.wrap :is(.chip-sel,.stage-pick){font-weight:600 !important}
.wrap :is(.fl,.field > label){font-size:var(--fs-label) !important}

.splitbtn,.split-btn{gap:0 !important}
.splitbtn > .sb-main,.split-btn > .split-main{border-top-right-radius:0 !important;
  border-bottom-right-radius:0 !important;margin-right:0 !important}
.splitbtn > .sb-caret,.split-btn > .split-more{border-top-left-radius:0 !important;
  border-bottom-left-radius:0 !important;margin-left:0 !important;
  border-left:1px solid rgba(255,255,255,.3) !important}

.sk-menu{position:fixed;z-index:90;min-width:190px;max-width:min(360px,calc(100vw - 16px));
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md,10px);
  box-shadow:0 14px 34px rgba(28,27,51,.22);padding:6px;font-family:'Chivo',Arial,sans-serif}
.sk-menu[hidden]{display:none !important}
.sk-search{width:100%;font-size:var(--fs-field,14px) !important;padding:7px 9px;margin:0 0 6px}
.sk-opts{max-height:min(320px,55vh);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  touch-action:pan-y;position:relative}
/* More below: the bottom of the list fades and a small arrow says so
   (Ben, 10 Oct 2026 — on a phone it wasn't clear the list went on). */
.sk-opts.more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 34px),transparent);
  mask-image:linear-gradient(to bottom,#000 calc(100% - 34px),transparent)}
.sk-more{display:none;justify-content:center;margin-top:-2px;color:var(--ink-muted);pointer-events:none}
.sk-more svg{width:16px;height:16px}
.sk-menu.has-more .sk-more{display:flex}
.sk-opt{display:flex;align-items:center;gap:9px;width:100%;padding:8px 9px;border:0;
  background:none;text-align:left;cursor:pointer;border-radius:var(--radius-sm,7px);
  font:inherit;font-size:var(--fs-field,14px);color:var(--ink);line-height:1.25;
  text-transform:none;letter-spacing:normal;font-weight:500}
.sk-opt:hover,.sk-opt.cursor{background:var(--mist-wash)}
.sk-opt[aria-selected="true"]{font-weight:700}
.sk-opt[disabled]{opacity:.45;cursor:default}
.sk-opt[hidden]{display:none !important}
.sk-dot{flex:none;width:9px;height:9px;border-radius:50%;background:currentColor}
.sk-lbl{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sk-tick{flex:none;width:16px;height:16px;color:var(--indigo);visibility:hidden}
.sk-opt[aria-selected="true"] .sk-tick{visibility:visible}
.sk-group{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-muted);padding:9px 9px 3px}
.sk-none{font-size:13px;color:var(--ink-muted);padding:8px 9px}
@media(max-width:760px){.sk-opt{padding:11px 10px}}

.tcpv{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;background:rgba(14,13,28,.96);
  color:#f1f0fa;opacity:0;transition:opacity var(--m-base,.18s) ease}
.tcpv.on{opacity:1}
.tcpv-bar{flex:none;display:flex;align-items:center;gap:8px;padding:calc(8px + var(--sat,0px)) max(10px,var(--sar,0px)) 8px max(10px,var(--sal,0px));
  background:rgba(14,13,28,.9);border-bottom:1px solid rgba(255,255,255,.08)}
.tcpv-bar button,.tcpv-bar a{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:40px;
  padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.08);color:#f1f0fa;font:600 13.5px/1 system-ui,-apple-system,sans-serif;
  letter-spacing:0;text-transform:none;text-decoration:none;cursor:pointer}
.tcpv-bar button:hover,.tcpv-bar a:hover{background:rgba(255,255,255,.16)}
.tcpv-t{flex:1 1 auto;min-width:0;text-align:center;font:600 14px/1.3 system-ui,-apple-system,sans-serif}
.tcpv-t span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcpv-t small{display:block;font-weight:400;font-size:11.5px;color:rgba(241,240,250,.6)}
.tcpv-body{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  display:flex;flex-direction:column;align-items:center;padding:16px 12px calc(16px + var(--sab,0px))}
.tcpv-body.center{justify-content:center}
.tcpv-img{display:block;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}
.tcz-on > .tcpv-img{cursor:zoom-out}
/* Pages sit in one box that zoom.py widens, so the ordinary scroll pans it. */
.tcpv-doc{flex:none;width:min(100%,900px)}
.tcpv-page{display:block;width:100%;height:auto;background:#fff;margin:0 0 14px;box-shadow:0 4px 18px rgba(0,0,0,.4)}
.tcpv-zoom{display:flex;gap:4px;flex:none}
.tcpv-zoom[hidden]{display:none}
.tcpv-bar .tcpv-zoom button{min-width:40px;padding:0 10px;font-variant-numeric:tabular-nums}
.tcpv-page[data-wait]{aspect-ratio:1/1.414}
.tcpv-vid{max-width:100%;max-height:100%;background:#000}
.tcpv-text{width:min(100%,900px);background:#fff;color:#1b1a33;padding:18px;border-radius:6px;white-space:pre-wrap;
  overflow-wrap:break-word;font:13px/1.55 ui-monospace,Menlo,Consolas,monospace;box-sizing:border-box;margin:0}
.tcpv-tbl{width:min(100%,1100px);overflow:auto;background:#fff;border-radius:6px}
.tcpv-tbl table{border-collapse:collapse;color:#1b1a33;font:13px/1.4 system-ui,sans-serif}
.tcpv-tbl td{border:1px solid #e3e1ee;padding:5px 8px;white-space:nowrap}
.tcpv-tbl tr:first-child td{font-weight:700;background:#f6f5fb}
.tcpv-note{text-align:center;max-width:420px;font:14px/1.5 system-ui,sans-serif;color:rgba(241,240,250,.8)}
.tcpv-note b{display:block;font-size:17px;color:#f1f0fa;margin:12px 0 4px;overflow-wrap:break-word}
.tcpv-note .tcpv-dl{display:inline-flex;margin-top:16px;padding:12px 20px;border-radius:10px;background:#d69622;color:#1b1a33;
  font-weight:700;text-decoration:none}
.tcpv-cut{font:12.5px system-ui,sans-serif;color:rgba(241,240,250,.6);margin:10px 0 0}
.tcpv-spin{width:34px;height:34px;border:3px solid rgba(255,255,255,.2);border-top-color:#d69622;border-radius:50%;
  animation:tcpvspin .8s linear infinite}
@keyframes tcpvspin{to{transform:rotate(360deg)}}
.tcpv-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:64px;border:0;border-radius:10px;
  background:rgba(255,255,255,.1);color:#fff;font-size:26px;cursor:pointer}
.tcpv-nav.prev{left:max(8px,var(--sal,0px))}.tcpv-nav.next{right:max(8px,var(--sar,0px))}
.tcpv-nav[hidden]{display:none}
html.tcpv-open,html.tcpv-open body{overflow:hidden}
@media(max-width:600px){.tcpv-bar .tcpv-lbl{display:none}.tcpv-nav{display:none}
  .tcpv-bar .tcpv-zo,.tcpv-bar .tcpv-zi{display:none}.tcpv-zoom:not(.zoomed){display:none}}

/* The shield (protect.py): document content greys and blurs while the
   window isn't the one being looked at. */
html.tc-shield .tc-protect, html.tc-shield .tcpv-body, html.tc-shield .fv-view,
html.tc-shield [data-protect]{filter:grayscale(1) blur(22px) !important;transition:none !important}
html.tc-shield .tcpv-body, html.tc-shield .fv-view, html.tc-shield .tc-protect, html.tc-shield [data-protect]{position:relative}
.tc-protect img, .tcpv-body img, .fv-view img, [data-protect] img{-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}
.tcpv-get[hidden]{display:none !important}
/* Download, PDF and export buttons aren't shown to people who can't use them
   (the server refuses them anyway). */
html[data-guard="1"] :is(a[download], a[href*="/download"], a[href*="?dl=1"], a[href$="/pdf"], a[href*="/pdf?"],
  a[href$="/document"], a[href*="/document?"], a[href*="/export."], a[href*="export.csv"], a[href*="export.xlsx"],
  a[href^="/library/"]):not(.tc-keep){display:none !important}
@media print{
  html[data-guard="1"] body > *{display:none !important}
  html[data-guard="1"] body::before{content:"Printing is for administrators.";display:block;margin:40vh auto 0;text-align:center;
    font:600 16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#302a22}
}

/* ── The side chat window (Ben, 10 Oct 2026) ─────────────────────────────
   On a computer the header's Messages button opens Messages in a window over
   the page — moved by its bar, sized from any edge, closed, or expanded into
   the full Messages page — so a half-filled page underneath is never lost. */
.tcdock{position:fixed;z-index:2147482000;display:flex;flex-direction:column;background:var(--surface);
  border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 50px rgba(14,13,28,.28),0 2px 8px rgba(14,13,28,.12);
  overflow:hidden;min-width:300px;min-height:340px;animation:tcFadeIn .16s ease backwards}
.tcdock-bar{flex:none;display:flex;align-items:center;gap:4px;height:42px;padding:0 6px 0 14px;cursor:grab;user-select:none;
  background:var(--indigo,#2b2a4e);color:#fff;touch-action:none}
.tcdock.moving .tcdock-bar{cursor:grabbing}
.tcdock-t{flex:1 1 auto;min-width:0;font-size:13px;font-weight:700;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcdock-bar button{flex:none;display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:8px;
  background:none;color:#fff;cursor:pointer;letter-spacing:0;text-transform:none}
.tcdock-bar button:hover{background:rgba(255,255,255,.14)}
.tcdock-bar .tcdock-up{display:inline-flex;align-items:center;width:auto;gap:6px;padding:0 10px;font-size:11.5px;font-weight:700;letter-spacing:.04em}
.tcdock iframe{flex:1 1 auto;width:100%;border:0;background:var(--surface);display:block}
.tcdock.moving iframe,.tcdock.sizing iframe{pointer-events:none}
.tcdock-rz{position:absolute;z-index:2}
.tcdock-rz.n{top:-3px;left:10px;right:10px;height:8px;cursor:ns-resize}
.tcdock-rz.s{bottom:-3px;left:10px;right:10px;height:8px;cursor:ns-resize}
.tcdock-rz.e{right:-3px;top:10px;bottom:10px;width:8px;cursor:ew-resize}
.tcdock-rz.w{left:-3px;top:10px;bottom:10px;width:8px;cursor:ew-resize}
.tcdock-rz.nw{top:0;left:0;width:16px;height:16px;cursor:nwse-resize}
.tcdock-rz.ne{top:0;right:0;width:16px;height:16px;cursor:nesw-resize}
.tcdock-rz.sw{bottom:0;left:0;width:16px;height:16px;cursor:nesw-resize}
.tcdock-rz.se{bottom:0;right:0;width:16px;height:16px;cursor:nwse-resize}
/* Inside the window: Messages alone, edge to edge. */
/* The task console's calendar over the page (Ben, 12 Oct 2026). Under the
   header (70) and everything that drops from it — notifications (95), menus,
   toasts — so its calendar button closes it again; under the chat window. */
.tccalov{position:fixed;left:0;right:0;bottom:0;z-index:68;background:var(--page);
  border-top:1px solid var(--border);animation:tcFadeIn .14s ease backwards}
.tccalov iframe{display:block;width:100%;height:100%;border:0;background:var(--page)}
/* The page underneath holds still. On the root, not body: overflow on body
   made it the header's scroller, and a page scrolled down lost its header. */
html.calov-open{overflow:hidden}
.calbtn.on{background:var(--gold);color:#1d1b35}
.calbtn.on:hover{background:var(--gold);color:#1d1b35}
html.in-dock .topbar,html.in-dock .tabbar,html.in-dock .nav,html.in-dock .back-app,html.in-dock .pushask{display:none !important}
html.in-dock:not(.in-calov) body{background:var(--surface)}
html.in-dock:not(.in-calov) .wrap{padding:10px 12px 0 !important;max-width:none !important;margin:0 !important}
/* …but the room under a conversation for the message box stays: without it
   the last messages sat behind the box and could not be scrolled to (Ben,
   15 Oct 2026, the chat window). */
html.in-dock:not(.in-calov) .has-composer .wrap,html.in-dock:not(.in-calov) body.has-composer .wrap{
  padding-bottom:calc(var(--cmp-h,120px) + 12px) !important}
/* The calendar over the page is the calendar page as it always is — its
   width, its margins — only without a header of its own (Ben, 12 Oct 2026). */
html.in-calov .wrap{padding-top:20px !important}
html.in-dock{--head-h:0px}
html.in-dock .c-head{top:0 !important;margin:-10px -12px 0 !important}
html.in-dock .c-listhead h1{font-size:18px !important}

.tcz-on{display:block !important}
.tcz-on > .tcz-el{margin-left:auto !important;margin-right:auto !important}
.tcz-pill{position:fixed;left:50%;bottom:calc(18px + var(--sab,0px) + var(--tabbar-h,0px));transform:translate(-50%,8px);
  z-index:2147483001;display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:999px;
  background:rgba(27,26,51,.92);color:#fff;font:600 13px/1 system-ui,-apple-system,sans-serif;
  box-shadow:0 6px 20px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.tcz-pill.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.tcz-pill button{min-height:32px;padding:0 12px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;
  font:inherit;cursor:pointer}
.tczl{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;background:rgba(14,13,28,.96);color:#f1f0fa}
.tczl-bar{flex:none;display:flex;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px;
  background:rgba(14,13,28,.9);border-bottom:1px solid rgba(255,255,255,.08)}
.tczl-bar button{min-width:44px;height:40px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.1);
  color:#f1f0fa;font:600 14px/1 system-ui,-apple-system,sans-serif;cursor:pointer}
.tczl-bar .tczl-t{flex:1;min-width:0;text-align:center;font:600 14px/1.3 system-ui,sans-serif;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.tczl-body{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;
  align-items:center;justify-content:center;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))}
.tczl-body img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;background:#fff;border-radius:3px}
html.tczl-open,html.tczl-open body{overflow:hidden}
.dv-page .dv-title,.dv-page .dv-body{zoom:var(--tc-doc-zoom,1)}

.tc-hzdrop{position:fixed;right:24px;bottom:24px;z-index:2147482000;display:flex;flex-direction:column;gap:3px;
  padding:18px 22px;min-width:220px;border:2px dashed var(--indigo,#2b2a4e);border-radius:14px;
  background:var(--surface,#fff);color:var(--indigo,#2b2a4e);box-shadow:0 14px 34px rgba(20,19,40,.22);
  opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity var(--m-quick,.14s) ease,transform var(--m-quick,.14s) ease}
.tc-hzdrop.up{opacity:1;transform:none;pointer-events:auto}
.tc-hzdrop.on{background:color-mix(in srgb,var(--indigo,#2b2a4e) 10%,var(--surface,#fff))}
.tc-hzdrop b{font-size:14px}.tc-hzdrop small{font-size:12px;color:var(--ink-muted,#827b70)}
:root[data-theme="dark"] .tc-hzdrop{border-color:var(--gold);color:var(--gold)}
@media (max-width:860px){.tc-hzdrop{left:16px;right:16px;bottom:calc(16px + var(--sab,0px) + 64px)}}

[data-find-hide]{display:none !important}
.tc-searching input[type=search]{background-image:linear-gradient(90deg,transparent,rgba(107,103,219,.10),transparent);
  background-size:200% 100%;animation:tcSearchSweep var(--m-slow,.6s) var(--m-ease,ease) infinite}
@keyframes tcSearchSweep{from{background-position:100% 0}to{background-position:-100% 0}}
@media (prefers-reduced-motion: reduce){.tc-searching input[type=search]{animation:none}}

.ph-more,.ph-sheet,.ph-scrim{display:none}
@media(max-width:860px){
  :root{--ph-h:44px;--ph-gap:8px}

  /* ── Header: title, one main action, More ───────────────────────────────── */
  .pagehead{margin-bottom:14px !important;padding-bottom:12px !important}
  .pagehead .head-row{display:flex !important;align-items:center;gap:var(--ph-gap);flex-wrap:nowrap !important}
  .pagehead .head-row > div:first-child,.pagehead .head-row > h1{flex:1 1 auto;min-width:0}
  .pagehead .head-row > .btn,.pagehead .head-row > .ph-more,.pagehead .head-row > .head-acts{flex:none}
  .pagehead .head-row > .btn{height:var(--ph-h) !important;min-height:var(--ph-h) !important;
    padding:0 16px !important;display:inline-flex;align-items:center;white-space:nowrap;
    border-radius:var(--radius-md,10px) !important}
  .pagehead .ph-row > .ph-more{margin-left:auto}
  .pagehead .head-line > .paidbox{min-height:var(--ph-h);padding:0 14px;border-radius:var(--radius-md,10px)}
  [data-ph-item],[data-ph-items]{display:none !important}
  .ph-more{display:inline-grid;place-items:center;flex:none;width:var(--ph-h);height:var(--ph-h);padding:0;margin:0;
    border:1px solid var(--border);border-radius:var(--radius-md,10px);background:var(--surface);color:var(--ink);
    cursor:pointer;-webkit-tap-highlight-color:transparent;
    transition:background var(--m-quick,.14s) ease,transform var(--m-instant,.08s) ease}
  .ph-more:active{transform:scale(.94);background:var(--panel)}
  .ph-more svg{width:20px;height:20px;display:block}
  .ph-more[hidden]{display:none}
  html.in-app .subhead .ph-more{margin-left:auto;width:36px;height:36px;border-radius:50%}

  /* A record page's header (pagekit's .head-line / .head-r): the title, then its actions as one row of
     equal-height controls. Complete leads and takes the room; Paid and More keep their own width. */
  .pagehead .head-line:not(.keep-row){flex-wrap:wrap;gap:10px}
  .pagehead .head-line:not(.keep-row) > .head-r{display:flex;width:100%;margin-left:0;flex-wrap:wrap;
    align-items:stretch;gap:var(--ph-gap)}
  .pagehead .head-line:not(.keep-row) > .head-r > *{order:0 !important;margin:0 !important;box-sizing:border-box;
    height:var(--ph-h);min-height:var(--ph-h);border-radius:var(--radius-md,10px) !important}
  .pagehead .head-line:not(.keep-row) > .head-r > .donebox,
  .pagehead .head-line:not(.keep-row) > .head-r > .donesplit,
  .pagehead .head-line:not(.keep-row) > .head-r > .btn{flex:1 1 120px !important;min-width:0;justify-content:center}
  .pagehead .head-line:not(.keep-row) > .head-r > .donebox span{overflow:hidden;text-overflow:ellipsis}
  .pagehead .head-line:not(.keep-row) > .head-r > .paidbox{flex:0 0 auto !important;padding:0 14px;order:1 !important}
  .pagehead .head-line:not(.keep-row) > .head-r > .ph-more{flex:0 0 var(--ph-h);order:2 !important}
  .pagehead .head-line:not(.keep-row) > .head-r > .jm-chip{flex:0 0 auto !important;height:auto;min-height:0;
    order:3 !important;align-self:center;border-radius:999px !important}
  .pagehead nav.xlinks{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:10px 0 0}
  .pagehead nav.xlinks::-webkit-scrollbar{display:none}
  .pagehead nav.xlinks > *{flex:none;min-height:36px}

  /* ── Choices of one kind: one line that scrolls ─────────────────────────── */
  .ph-chips{display:flex !important;flex-wrap:nowrap !important;align-items:center;gap:var(--ph-gap);
    overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    min-width:0;max-width:100%;padding:1px 28px 1px 1px;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
    mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
  .ph-chips::-webkit-scrollbar{display:none}
  .ph-chips > *{flex:none}
  .ph-chips > .btn,.ph-chips > a,.ph-chips > button{min-height:36px;padding:0 14px !important;display:inline-flex;
    align-items:center;border-radius:999px !important;white-space:nowrap}

  /* ── Views of one thing: a segmented control ────────────────────────────── */
  .ph-seg{display:grid !important;grid-auto-flow:column;grid-auto-columns:1fr;gap:0 !important;padding:3px;
    border:1px solid var(--border);border-radius:var(--radius-md,10px);background:var(--panel)}
  .ph-seg > a,.ph-seg > button{min-height:36px;width:auto !important;margin:0 !important;padding:0 10px !important;
    display:flex !important;align-items:center;justify-content:center;text-align:center;white-space:nowrap;
    border:0 !important;border-radius:var(--radius-sm,7px) !important;box-shadow:none !important;
    transition:background var(--m-quick,.14s) ease,color var(--m-quick,.14s) ease}
  .ph-seg > .btn-secondary,.ph-seg > :not(.btn):not(.on){background:none !important;color:var(--ink-muted) !important}
  .ph-seg > .btn:not(.btn-secondary),.ph-seg > .on{background:var(--indigo) !important;color:#fff !important}

  /* ── Search: the box and its button on one line ─────────────────────────── */
  .searchbar{display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:var(--ph-gap) !important;
    align-items:center;margin-top:10px !important}
  .searchbar > input[type=search],.searchbar > input[type=text]{grid-column:1;width:100% !important;
    max-width:none !important;min-width:0;height:var(--ph-h);margin:0 !important}
  .searchbar > .btn[type=submit],.searchbar > button.btn{grid-column:2;height:var(--ph-h);min-height:0;
    padding:0 16px !important;width:auto !important;display:inline-flex;align-items:center}
  .searchbar > input[type=search]:only-child{grid-column:1 / -1}
  /* The switch and the small tools share the second line: one at each end. */
  .searchbar > .toggle{grid-column:1 / -1;grid-row:2;justify-self:start;min-height:36px}
  .searchbar > .cp-wrap,.searchbar > .ph-end{grid-column:1 / -1;grid-row:2;justify-self:end}
  .searchbar > .ph-filter{grid-column:1 / -1}
  .searchbar .cp-btn{min-height:36px}

  /* ── One compact row of switches and small tools ────────────────────────── */
  .ph-filter{display:flex !important;flex-wrap:nowrap !important;align-items:center;gap:6px 14px;min-width:0;
    overflow-x:auto;scrollbar-width:none;margin-top:10px !important}
  .ph-filter::-webkit-scrollbar{display:none}
  .ph-filter > *{flex:none;margin:0 !important}
  .ph-filter .toggle{min-height:36px}

  /* ── A record's own actions: one row, one height ────────────────────────── */
  .ph-actions{display:flex !important;align-items:stretch;gap:var(--ph-gap);flex-wrap:nowrap !important;
    width:100%;margin-top:10px}
  .ph-actions > *{margin:0 !important;min-height:var(--ph-h);box-sizing:border-box}
  .ph-actions > label,.ph-actions > .donesplit{flex:1 1 0;min-width:0;display:flex !important;align-items:center;
    border-radius:var(--radius-md,10px) !important}
  .ph-actions > .ph-fit{flex:0 0 auto}
  .ph-actions > .ph-more{height:auto;min-height:var(--ph-h)}
  .ph-actions label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* ── Sections of a list keep their distance from the one before ─────────── */
  .ph-gapped > * + *{margin-top:14px}
  .psec:not(.shut) + .psec{margin-top:18px}
  .psec{margin-bottom:8px}

  /* ── The More sheet ─────────────────────────────────────────────────────── */
  .ph-scrim{display:block;position:fixed;inset:0;z-index:9990;background:rgba(15,14,19,.42);opacity:0;
    transition:opacity var(--m-base,.22s) ease}
  .ph-scrim.on{opacity:1}
  .ph-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:9991;max-height:78vh;overflow-y:auto;
    background:var(--surface);color:var(--ink);border-radius:18px 18px 0 0;border:1px solid var(--border);
    border-bottom:0;box-shadow:0 -12px 40px rgba(0,0,0,.22);
    padding:8px 12px calc(14px + var(--sab,env(safe-area-inset-bottom,0px)));
    transform:translateY(102%);transition:transform var(--m-slow,.34s) var(--m-out,cubic-bezier(.22,1,.36,1));
    will-change:transform;overscroll-behavior:contain}
  .ph-sheet.on{transform:none}
  .ph-sheet::before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:var(--border);
    margin:2px auto 8px}
  .ph-sheet h2{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted);
    margin:4px 8px 6px;padding:0;border:0}
  .ph-sheet button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0;padding:0 10px;
    border:0;border-radius:var(--radius-md,10px);background:none;color:var(--ink);font:inherit;font-size:16px;
    font-weight:600;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .ph-sheet button:active{background:var(--panel)}
  .ph-sheet button:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
  .ph-sheet button svg{width:18px;height:18px;flex:none;color:var(--ink-muted)}
  .ph-sheet button.danger,.ph-sheet button.danger svg{color:var(--critical)}
  .ph-sheet .ph-sep{height:1px;background:var(--border);margin:6px 4px}
  .ph-sheet .ph-cancel{justify-content:center;margin-top:6px;background:var(--panel);color:var(--ink-muted)}
  html[data-motion="off"] .ph-sheet,html[data-motion="reduced"] .ph-sheet,
  html[data-motion="off"] .ph-scrim,html[data-motion="reduced"] .ph-scrim{transition:none !important}
  @media(prefers-reduced-motion:reduce){.ph-sheet,.ph-scrim{transition:none !important}}
}
.dl-short{display:none}
/* A job page on a phone (Ben, 21 Nov 2026: "Fix this page layout on mobile and make it look refined"):
   a title sized for the screen, Complete | Everyone and Paid on one line of 44px controls, and the
   linked work as two equal tiles instead of a row that runs off the edge. */
@media(max-width:640px){
  .dl-long{display:none}
  .dl-short{display:inline}
  .pagehead .head-line h1{font-size:26px;line-height:1.15;letter-spacing:-.01em;overflow-wrap:break-word;
    text-wrap:balance}
  .pagehead .head-line:not(.keep-row) > .head-r{flex-wrap:nowrap}
  .pagehead .head-line:not(.keep-row) > .head-r > .donesplit{display:flex;flex:1 1 0 !important;min-width:0}
  /* With Everyone beside it, Complete | Everyone takes the whole first line and Paid | More the second. */
  .pagehead .head-line:not(.keep-row) > .head-r:has(> .donesplit){flex-wrap:wrap}
  .pagehead .head-line:not(.keep-row) > .head-r > .donesplit:has(.so-all-head){flex:1 1 100% !important}
  .pagehead .head-line:not(.keep-row) > .head-r:has(> .donesplit .so-all-head) > .paidbox{flex:1 1 auto !important;
    justify-content:center}
  .pagehead .head-line:not(.keep-row) > .head-r > .donesplit .donebox{flex:1 1 auto;min-width:0;height:auto;
    padding:0 12px;justify-content:center}
  .pagehead .head-line:not(.keep-row) > .head-r > .donesplit .donebox > span{overflow:hidden;text-overflow:ellipsis}
  .pagehead nav.xlinks{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:var(--ph-gap,8px);
    overflow:visible;margin:12px 0 0}
  .pagehead nav.xlinks > *{min-width:0;min-height:44px}
  .pagehead nav.xlinks > .xl,.pagehead nav.xlinks > .xl-pick > .xl{width:100%;min-height:44px;box-sizing:border-box;
    justify-content:center;padding:6px 12px;border-radius:var(--radius-md,10px);white-space:normal;
    line-height:1.2;text-align:center;text-wrap:balance}
}

/* ── uikit: the page fills the window ───────────────────────────────────── */
body{min-height:100vh;min-height:100dvh}

/* ── uikit: page header ─────────────────────────────────────────────────── */
.pagehead .head-row{display:flex;gap:12px 16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.pagehead .head-row > div:first-child{flex:1 1 auto;min-width:0}
.pagehead .head-row h1{margin-bottom:0}
.pagehead .head-row > div:first-child > p.subtle{margin:4px 0 0}
.head-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.head-acts .plus{font-size:15px;line-height:1;font-weight:400;margin-right:6px}

/* ── uikit: one size for header actions and toolbar controls ─────────────── */
:root{--ctl-h:34px}
@media(min-width:861px){
  .pagehead .btn,.head-acts .btn,.dhead .btn{min-height:var(--ctl-h);padding:7px 14px;font-size:10.5px;
    display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;line-height:1.2}
  .searchbar,.org-add{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .org-add{flex-wrap:nowrap}
  .org-add > input{flex:1 1 220px;min-width:0;width:auto}
  .searchbar > input,.searchbar > select,.searchbar > .btn,.org-add > input,.org-add > .btn,
  .filterbar > input,.filterbar > select,.filterbar > .btn,.head-acts > select,.head-acts > input{
    height:var(--ctl-h);min-height:var(--ctl-h);box-sizing:border-box;margin:0}
  .searchbar > .btn,.org-add > .btn,.filterbar > .btn{padding:0 14px;font-size:10.5px;display:inline-flex;
    align-items:center;justify-content:center;white-space:nowrap;flex:none}
  .searchbar > input,.org-add > input,.filterbar > input{padding-top:0;padding-bottom:0}
  .head-acts > select,.filterbar > select,.searchbar > select{padding-top:0;padding-bottom:0}
}
/* The search button is never the loudest thing by the title: outlined, as on Organisations and Meetings. */
.searchbar > .btn:not(.btn-secondary){background:transparent;color:var(--indigo);border-color:var(--ink)}
.searchbar > .btn:not(.btn-secondary):hover{background:var(--ink);color:var(--page);border-color:var(--ink)}

/* ── uikit: segmented control ───────────────────────────────────────────── */
@media(min-width:861px){
  .ph-seg{display:inline-flex;gap:0;border:1px solid var(--ink);border-radius:var(--radius);overflow:hidden;
    vertical-align:middle}
  .ph-seg > .btn{border:0 !important;border-radius:0 !important;min-height:calc(var(--ctl-h) - 2px);margin:0}
  .ph-seg > .btn + .btn{border-left:1px solid var(--ink) !important}
  .ph-seg > .btn.btn-secondary{background:var(--surface)}
}

/* ── uikit: stat tiles are one joined strip, every row filled edge to edge ── */
.stat-grid{display:flex;flex-wrap:wrap;gap:1px;border-radius:var(--radius);overflow:hidden}
.stat-grid > .stat-tile{flex:1 1 200px;min-width:0;border-radius:0 !important;border:0 !important;
  box-shadow:none !important;margin:0 !important}
.stat-grid.quiet > .stat-tile{flex-basis:140px}
@media(max-width:640px){.stat-grid > .stat-tile,.stat-grid.quiet > .stat-tile{flex-basis:30%}}

/* ── uikit: nothing here yet ────────────────────────────────────────────── */
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  text-align:center;padding:30px 18px;border:1px dashed var(--border);border-radius:var(--radius);
  color:var(--ink-muted);font-size:13.5px;line-height:1.5;background:transparent;font-style:normal}
.empty-state b{color:var(--ink);font-weight:700}
.empty-state:empty{display:none}
.card > .empty-state,.table-wrap > .empty-state{border:0;padding:22px 12px}
.empty{font-style:normal;font-family:inherit;font-size:13.5px;color:var(--ink-muted)}

/* ── uikit: phone ───────────────────────────────────────────────────────── */
@media(max-width:860px){
  /* A header whose actions are choices (period, owner) puts them on their own row under the title: beside it
     they squeezed the title to one letter (Sales reports read "S."). */
  body:has(.is-main) .pagehead .head-row:has(> .head-acts > select){flex-wrap:wrap !important}
  body:has(.is-main) .pagehead .head-row:has(> .head-acts > select) > div:first-child{flex:1 1 100%}
  body:has(.is-main) .pagehead .head-row > .head-acts:has(> select){flex:1 1 100%;width:100% !important;
    flex-wrap:nowrap !important}
  body:has(.is-main) .pagehead .head-acts > select{flex:1 1 0;min-width:0;min-height:44px}
  /* The same for a header that carries a small form (add an organisation): title first, the form beneath. */
  body:has(.is-main) .pagehead .head-row:has(> form.org-add){flex-wrap:wrap !important}
  body:has(.is-main) .pagehead .head-row:has(> form.org-add) > div:first-child{flex:1 1 100%}
  body:has(.is-main) .pagehead .head-row > form.org-add{flex:1 1 100% !important;display:flex;gap:8px}
  body:has(.is-main) .pagehead .head-row > form.org-add > input{flex:1 1 0;min-width:0}
  .empty-state{padding:26px 14px}
  /* A header with no row of its own (a title, then switches): the title and More share the first line and
     everything else sits beneath, full width. More used to drop onto a line by itself under the title. */
  body:has(.is-main) .pagehead:not(:has(.head-row)):has(> .ph-more){display:flex;flex-wrap:wrap;align-items:center;
    gap:8px 10px}
  body:has(.is-main) .pagehead:not(:has(.head-row)):has(> .ph-more) > h1{flex:1 1 0;min-width:0;order:0}
  body:has(.is-main) .pagehead:not(:has(.head-row)) > .ph-more{order:1;flex:none;margin:0}
  body:has(.is-main) .pagehead:not(:has(.head-row)):has(> .ph-more) > :not(h1):not(.ph-more){flex:1 1 100%;order:2;
    margin-top:0 !important}
  /* Four numbers sit two and two, not three and one. */
  .dash-tiles:has(> .dash-tile:nth-child(4):last-child) > .dash-tile{flex-basis:45%}
  .stat-grid:has(> .stat-tile:nth-child(4):last-child) > .stat-tile{flex-basis:45%}
}

/* ── The menu on the left, on a desktop (Ben, 18 Oct 2026: "For all of the
   admin, teams, task, and sales consoles, i want to move the menu from the
   top to the left hand side on desktop versions") ─────────────────────────
   From 1024px wide the menu row leaves the header and becomes a column down
   the left, under the brand bar. Narrower than that (a tablet, a phone, the
   Fold layout) nothing here applies and the menu is what it was. The header
   script measures the bar alone once the menu is fixed, so --head-h is the
   brand bar's height and the column starts right under it.

   Its look is the TimbreOS Engine's side menu (Ben, 18 Oct 2026: "I like the
   bubble, spacing, icon, and text design ... incorporate the same for the
   console side menu"): a quiet panel, an icon by every item, the page you
   are on as a filled bubble, section names small and tracked. */
@media(min-width:1024px){
  html:not(.fold){--side-w:248px;--side-bg:#f7f6f2;--side-on:var(--indigo);--side-on-ink:#fff;
    --side-ink:var(--ink-secondary);--side-head:var(--ink-muted)}
  :root[data-theme="dark"]:not(.fold){--side-bg:#15141b;--side-on:#e8e6fb;--side-on-ink:#1c1b33;
    --side-ink:#d8d3ca;--side-head:#aca69c}
  html:not(.fold) .nav{position:fixed;top:var(--head-h,64px);left:0;bottom:0;width:var(--side-w);
    max-width:none;margin:0;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;
    padding:16px 0 40px;background:var(--side-bg);border-top:0;border-right:1px solid var(--border);
    overflow-y:auto;overscroll-behavior:contain;z-index:60;scrollbar-width:thin}
  html:not(.fold) .nav-links{display:flex;flex-direction:column}
  html:not(.fold) .nav-group{flex-direction:column;flex-wrap:nowrap;gap:0}
  /* An item: icon and words, the words in ordinary case. */
  html:not(.fold) .nav a,html:not(.fold) .nav-panel a{display:flex !important;align-items:center;gap:11px;
    margin:1px 12px;padding:8px 10px !important;border:0 !important;border-radius:9px !important;
    text-transform:none;letter-spacing:0;font-size:14px;font-weight:550;line-height:1.3;white-space:normal;
    color:var(--side-ink) !important;background:none;box-shadow:none !important;min-height:0}
  html:not(.fold) .nav a:hover,html:not(.fold) .nav-panel a:hover{background:color-mix(in srgb,var(--ink) 6%,transparent) !important}
  html:not(.fold) .nav a.active,html:not(.fold) .nav-panel a.active{background:var(--side-on) !important;
    color:var(--side-on-ink) !important;font-weight:700}
  html:not(.fold) .nav-ic{display:inline-flex;flex:none;width:18px;height:18px;opacity:.82}
  html:not(.fold) .nav a.active .nav-ic{opacity:1}
  html:not(.fold) .nav-ic svg{width:18px;height:18px}
  /* A section: its name small and tracked, the switch that opens it. */
  html:not(.fold) .nav-menu{flex-direction:column;margin-top:12px}
  html:not(.fold) .nav-trigger{width:auto;margin:0 12px;justify-content:space-between;padding:6px 10px;
    border:0 !important;border-radius:8px;font-size:10.5px;font-weight:700;letter-spacing:.12em;
    color:var(--side-head) !important;background:none}
  html:not(.fold) .nav-trigger:hover{color:var(--ink) !important;background:color-mix(in srgb,var(--ink) 5%,transparent)}
  html:not(.fold) .nav-trigger.active{color:var(--ink) !important}
  html:not(.fold) .nav-trigger svg{opacity:.6}
  html:not(.fold) .nav-menu.open .nav-trigger svg{transform:rotate(180deg)}
  html:not(.fold) .nav-panel{position:static;opacity:1;visibility:hidden;height:0;overflow:hidden;transform:none;
    min-width:0;background:transparent;border:0;box-shadow:none;padding:0;transition:none}
  html:not(.fold) .nav-menu.open .nav-panel{visibility:visible;height:auto;padding:2px 0 4px}
  html:not(.fold) .nav-panel .nav-sub{color:var(--side-head);padding:10px 22px 3px;font-size:9.5px}
  html:not(.fold) .nav-panel a.nav-in{margin-left:22px}
  /* Back and forward live in the top bar, beside the brand (Ben, 18 Oct 2026). */
  html:not(.fold) .nav > .back-nav{display:none !important}
  html:not(.fold) .topbar-inner .back-bar.on{display:inline-flex !important;width:32px;height:32px;margin-right:2px}
  html:not(.fold) .topbar-inner{justify-content:flex-start;gap:6px}
  html:not(.fold) .topbar-inner .brand{margin-left:12px}
  html:not(.fold) .topbar-right{margin-left:auto}
  /* Held still while the page beside it changes: the browser's cross-fade
     between two pages of one console leaves the menu where it is. */
  html:not(.fold) .nav{view-transition-name:tc-side}
  /* The page beside it. */
  html:not(.fold) .wrap{margin-left:var(--side-w)}
  html:not(.fold) .topbar-inner{padding-left:max(24px,var(--sal))}
}
/* The lift pass (14 Nov 2026): on a desktop the menu is its own rounded panel, set in from the edge. The page
   beside it starts where it always did, so nothing else moves. */
@media(min-width:1024px){
  html:not(.fold) .nav{top:calc(var(--head-h,64px) + 10px);left:10px;bottom:10px;width:calc(var(--side-w) - 10px);
    border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-sm);padding-bottom:18px}
}
::view-transition-group(tc-side),::view-transition-new(tc-side){animation:none}
::view-transition-old(tc-side){display:none}
/* Icons are the desktop column's; the top menu and the phone's go without. */
.nav-ic{display:none}

@media(max-width:860px){.nav-panel .nav-sub{color:rgba(255,255,255,.5);padding:10px 30px 4px}
  .nav-panel a.nav-in{padding-left:42px}
  /* The items inside a section in ordinary case; the section names keep
     their capitals and nothing gains an icon (Ben, 18 Oct 2026). */
  .nav-panel a{text-transform:none;letter-spacing:0;font-size:15px;font-weight:500}}

.board .board-head{align-items:center;line-height:1.35;min-height:calc(2.7em + 19px)}
.board .board-head .se-name{display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:break-word}

body{background:var(--indigo-deep);
  background-image:radial-gradient(900px 540px at 50% -10%, var(--indigo-soft), transparent 68%),
                   radial-gradient(620px 420px at 88% 108%, rgba(214,150,34,.18), transparent 66%);
  background-attachment:fixed}
.lg-wrap{min-height:100vh;min-height:100dvh;display:flex;justify-content:center;
  padding:calc(40px + var(--sat)) max(16px,var(--sar)) calc(40px + var(--sab)) max(16px,var(--sal))}
.lg-card{position:relative;background:#fff;color:#302a22;width:100%;max-width:760px;align-self:flex-start;
  padding:48px 52px 40px;box-shadow:0 30px 90px rgba(0,0,0,.5)}
.lg-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--indigo) 0%,var(--gold) 100%)}
.lg-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:34px}
.lg-top img{width:170px;display:block}
.lg-tabs{display:flex;border:1px solid rgba(43,42,78,.22)}
.lg-tabs a{padding:8px 14px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--indigo);text-decoration:none}
.lg-tabs a.on{background:var(--indigo);color:#fff}
.lg-card h1{font-size:30px;line-height:1.15;margin:0 0 8px;color:var(--indigo)}
.lg-meta{font-size:13px;color:var(--slate);margin:0 0 26px}
.lg-draft{border-left:3px solid var(--gold);background:rgba(214,150,34,.10);padding:12px 16px;margin:0 0 28px;
  font-size:13.5px;line-height:1.5;color:#5a4410}
.lg-draft b{color:#3d2e08}
.lg-body{font-family:'Gentium Plus',Georgia,serif;font-size:17px;line-height:1.6}
.lg-body .lg-lead{font-size:18.5px;line-height:1.55;margin:0 0 10px;color:#302a22}
.lg-body h2{font-family:Chivo,system-ui,sans-serif;font-size:13px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--indigo);margin:34px 0 10px;padding-top:18px;
  border-top:1px solid rgba(48,42,34,.12)}
.lg-body p{margin:0 0 12px}
.lg-body ol,.lg-body ul{margin:0 0 12px;padding-left:22px}
.lg-body li{margin:0 0 7px;padding-left:3px}
.lg-body a{color:var(--indigo);text-decoration-color:rgba(43,42,78,.35);text-underline-offset:2px;
  overflow-wrap:break-word}
.lg-body b{font-family:Chivo,system-ui,sans-serif;font-size:.86em;font-weight:700}
.lg-table{overflow-x:auto;margin:4px 0 14px}
.lg-body table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.45}
.lg-body th{font-family:Chivo,system-ui,sans-serif;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  text-align:left;color:var(--slate);padding:0 12px 8px 0;border-bottom:1px solid rgba(48,42,34,.25)}
.lg-body td{vertical-align:top;padding:10px 12px 10px 0;border-bottom:1px solid rgba(48,42,34,.12)}
.lg-body td:first-child{font-family:Chivo,system-ui,sans-serif;font-size:13px;font-weight:700;white-space:nowrap}
mark.lg-gap{background:rgba(214,150,34,.22);color:#5a4410;padding:0 4px;border-radius:2px;
  font-family:Chivo,system-ui,sans-serif;font-size:.78em;font-weight:700}
.lg-foot{margin-top:36px;padding-top:18px;border-top:1px solid rgba(48,42,34,.12);font-size:12.5px;
  color:var(--slate);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.lg-foot a{color:var(--indigo)}
@media(max-width:640px){
  .lg-wrap{padding-top:calc(16px + var(--sat));padding-bottom:calc(16px + var(--sab))}
  .lg-card{padding:34px 22px 28px}
  .lg-top img{width:140px}
  .lg-card h1{font-size:25px}
  .lg-body{font-size:16.5px}
  .lg-body td:first-child{white-space:normal}
  .lg-body table,.lg-body thead,.lg-body tbody,.lg-body tr,.lg-body td{display:block}
  .lg-body thead{display:none}
  .lg-body tr{padding:10px 0;border-bottom:1px solid rgba(48,42,34,.12)}
  .lg-body td{border:0;padding:2px 0}
  .lg-body td:last-child{color:var(--slate);font-style:italic}
}
