/* faxtract.css: the app's one stylesheet, linked by both layouts (the
   shell's fx:head and bare:head). First the parts not drawn from the
   faxtract design mock, then the mock's own rules, their selectors and
   custom properties unchanged so markup ports class for class; where class
   names collide the mock's win. The fonts are the files Google Fonts
   serves the mock (OFL), every subset in its order, self-hosted. The
   mock's inline styles are classes at the end. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-vietnamese.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-latin-ext.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Dancing Script";
  src: url("fonts/DancingScript-500-vietnamese.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Dancing Script";
  src: url("fonts/DancingScript-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Dancing Script";
  src: url("fonts/DancingScript-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400-cyrillic-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400-symbols2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400-vietnamese.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500-cyrillic-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500-symbols2.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500-vietnamese.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-vietnamese.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The parts not drawn from the mock: the sign-in and error pages, the
   assistant's embeds, the extraction panel, the prompt editor, the
   environment and masquerade banners. They come before the mock's rules,
   which win where class names collide. Their tokens are VoKol's: teal is
   brand and interaction, never state; state is the muted ok/warn/off hues,
   always beside a word or glyph. Dark is class dark-theme (js/fxtheme.js). */

/* Tokens ------------------------------------------------------------------ */

/* VoKol: one brand teal, cool blue-teal greys, teal-tinted shadows. The
   --fleet-* names are the app's; the values are the design system's, with the
   contrast adjustments its bridge worked out (a brand a hair deeper than
   teal-600, status inks deepened for text, one muted grey that clears 4.5:1). */
:root {
  --teal-50: #f0f8fa;
  --teal-100: #d9edf1;
  --teal-200: #b3dbe3;
  --teal-300: #7fc1cc;
  --teal-700: #0d5e71;
  --teal-800: #0c4b5a;
  --teal-900: #0b3d49;
  --teal-950: #072731;

  --gray-0: #ffffff;
  --gray-50: #f7f9fa;
  --gray-100: #eef2f4;
  --gray-200: #e0e6e9;
  --gray-300: #cbd4d8;
  --gray-600: #4d5a60;
  --gray-700: #384247;
  --gray-900: #171d20;

  --fleet-bg: var(--gray-0);
  --fleet-bg-1: var(--gray-50);
  --fleet-bg-2: var(--gray-50);
  --fleet-bg-3: var(--teal-50);
  --fleet-bg-4: var(--gray-100);
  --fleet-page: var(--gray-50);
  --fleet-card: var(--gray-0);
  --fleet-selected: var(--teal-50);

  --fleet-line: var(--gray-200);
  --fleet-line-bright: var(--gray-300);

  --fleet-fg: var(--gray-900);
  --fleet-fg-1: var(--gray-700);
  --fleet-fg-2: var(--gray-600);
  --fleet-muted: #5c6b71;
  --fleet-faint: #5c6b71;

  /* between teal-600 and teal-700, so teal on its own soft wash clears 4.5:1 at label sizes */
  --fleet-brand: #0f6a80;
  --fleet-brand-hover: var(--teal-700);
  --fleet-brand-active: var(--teal-800);
  --fleet-brand-soft: var(--teal-100);
  --fleet-brand-soft-hover: var(--teal-200);
  --fleet-brand-ink: var(--gray-0);
  --fleet-accent: var(--teal-300);
  /* a lighter teal than the brand, which reads near-black in running text; 4.6:1 on gray-50 */
  --fleet-link: #0e7c90;

  --fleet-ok: #1b6455;
  --fleet-warn: #7f5d1d;
  --fleet-off: #9e3141;
  --fleet-info: #2f6a8b;

  --fleet-ok-wash: #dcefe9;
  --fleet-warn-wash: #f1ebdb;
  --fleet-off-wash: #f4e3e6;
  --fleet-info-wash: #dce8f0;

  --fleet-wash: var(--teal-50);
  --fleet-scrim: rgba(7, 39, 49, 0.45);
  /* a focused field (the code editor): a teal edge and a teal-300 halo */
  --fleet-focus-ring: rgba(127, 193, 204, 0.55);
  --fleet-focus-field: 0 0 0 0.5px var(--fleet-brand), 0 0 0 3.5px var(--fleet-focus-ring);

  /* elevation is teal-tinted, never black */
  --fleet-shadow-xs: 0 1px 2px rgba(11, 61, 73, 0.06);
  --fleet-shadow-md: 0 6px 16px rgba(11, 61, 73, 0.1);
  --fleet-shadow-lg: 0 14px 32px rgba(11, 61, 73, 0.12);
  --fleet-shadow-xl: 0 24px 56px rgba(11, 61, 73, 0.16);
  --fleet-shadow-card: var(--fleet-shadow-xl);

  --fleet-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --fleet-duration-fast: 120ms;

  /* the mock's type, so a part reads as the pages around it */
  --font-sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: var(--font-sans);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-control: 8px;
  --radius-input: 12px;
  --radius-button: 12px;
  --radius-card: 16px;
}

/* dark is VoKol's own inverse surface, teal-950, not a grey inversion */
.dark-theme {
  --fleet-bg: var(--teal-950);
  --fleet-bg-1: #0a333f;
  --fleet-bg-2: var(--teal-900);
  --fleet-bg-3: var(--teal-800);
  --fleet-bg-4: #0e4453;
  --fleet-page: var(--teal-950);
  --fleet-card: var(--teal-900);
  /* lighter than teal-800, so a status pill on a selected row keeps 4.5:1 */
  --fleet-selected: rgba(127, 193, 204, 0.08);

  --fleet-line: rgba(127, 193, 204, 0.16);
  --fleet-line-bright: rgba(127, 193, 204, 0.3);

  --fleet-fg: var(--gray-0);
  --fleet-fg-1: #d7e6ea;
  --fleet-fg-2: #a8c3ca;
  --fleet-muted: #9dbcc4;
  --fleet-faint: #a8c3ca;

  --fleet-brand: var(--teal-300);
  --fleet-brand-hover: #9bd3dc;
  --fleet-brand-active: var(--teal-200);
  --fleet-brand-soft: var(--teal-800);
  --fleet-brand-soft-hover: var(--teal-700);
  --fleet-brand-ink: var(--teal-950);
  --fleet-accent: var(--teal-300);
  --fleet-link: var(--teal-300);

  --fleet-ok: #7fcdb6;
  --fleet-warn: #e2bb7c;
  --fleet-off: #ec9aa7;
  --fleet-info: #8fc3e0;

  --fleet-ok-wash: rgba(127, 205, 182, 0.16);
  --fleet-warn-wash: rgba(226, 187, 124, 0.16);
  --fleet-off-wash: rgba(236, 154, 167, 0.16);
  --fleet-info-wash: rgba(127, 190, 222, 0.16);

  --fleet-wash: rgba(127, 193, 204, 0.08);
  --fleet-scrim: rgba(3, 18, 23, 0.7);
  --fleet-focus-ring: rgba(127, 193, 204, 0.28);

  --fleet-shadow-xs: 0 1px 2px rgba(3, 18, 23, 0.4);
  --fleet-shadow-md: 0 8px 20px rgba(3, 18, 23, 0.45);
  --fleet-shadow-lg: 0 14px 32px rgba(3, 18, 23, 0.5);
  --fleet-shadow-xl: 0 24px 56px rgba(3, 18, 23, 0.55);
  --fleet-shadow-card: var(--fleet-shadow-xl);
}

/* Base -------------------------------------------------------------------- */

* {
  border-color: var(--fleet-line);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
}

a {
  color: var(--fleet-link);
}
/* a text link: a bare anchor in running text, or .link on anything; anchors
   styled as controls carry their own class and colour */
a:not([class]) {
  color: var(--fleet-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:not([class]):hover {
  color: var(--fleet-brand-hover);
  text-decoration-thickness: 2px;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

input, textarea, select {
  background: var(--fleet-bg);
  border: 1px solid var(--fleet-line-bright);
  border-radius: var(--radius-input);
  padding: 8px 10px;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fleet-brand);
}

/* the older 1em icons (li with class lucide); a small .btn sizes its .li, not these */
svg.lucide, .btn.sm > svg.lucide {
  stroke-width: 1.25;
  width: 1em;
  height: 1em;
}

/* Type steps -------------------------------------------------------------- */

.text-value {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}
.text-prose {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.text-mono-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.text-mono-label-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.text-display {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Token utilities --------------------------------------------------------- */

.line {
  border-color: var(--fleet-line);
}

.ink-1 {
  color: var(--fleet-fg-1);
}
.ink-2 {
  color: var(--fleet-fg-2);
}
.ink-muted {
  color: var(--fleet-muted);
}
.ink-faint {
  color: var(--fleet-faint);
}

.brand {
  color: var(--fleet-brand);
}

.state-ok {
  color: var(--fleet-ok);
}
.state-warn {
  color: var(--fleet-warn);
}
.state-off {
  color: var(--fleet-off);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Controls ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-button);
  border: 1px solid var(--fleet-line-bright);
  background: var(--fleet-bg);
  color: var(--fleet-fg);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--fleet-duration-fast) var(--fleet-ease-standard), border-color var(--fleet-duration-fast) var(--fleet-ease-standard), color var(--fleet-duration-fast) var(--fleet-ease-standard);
}
/* secondary and ghost fill with the brand's soft wash; primary darkens one teal step */
.button:hover {
  background: var(--fleet-brand-soft);
  border-color: var(--fleet-brand);
  color: var(--fleet-brand);
}
.button:active {
  background: var(--fleet-brand-soft-hover);
  border-color: var(--fleet-brand-active);
  color: var(--fleet-brand-active);
}
.button-primary {
  background: var(--fleet-brand);
  border-color: var(--fleet-brand);
  color: var(--fleet-brand-ink);
}
.button-primary:hover {
  background: var(--fleet-brand-hover);
  border-color: var(--fleet-brand-hover);
  color: var(--fleet-brand-ink);
}
.button-primary:active {
  background: var(--fleet-brand-active);
  border-color: var(--fleet-brand-active);
  color: var(--fleet-brand-ink);
}
/* a destructive button keeps its state hue: teal never stands in for state */
.button.state-off, .icon-button.state-off {
  color: var(--fleet-off);
}
.button.state-off:hover, .button.state-off:active {
  background: var(--fleet-off-wash);
  border-color: var(--fleet-off);
  color: var(--fleet-off);
}

.button-full {
  width: 100%;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-control);
  color: var(--fleet-faint);
  font-size: 16px;
}
.icon-button:hover {
  color: var(--fleet-brand);
  background: var(--fleet-brand-soft);
}
.icon-button.state-off:hover {
  color: var(--fleet-off);
  background: var(--fleet-off-wash);
}

.field-hint {
  font-size: 12px;
  color: var(--fleet-muted);
  font-weight: 400;
}

/* Auth pages (outside the shell) ------------------------------------------ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--fleet-page);
}
.auth-card {
  width: 100%;
  max-width: 448px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--fleet-card);
  box-shadow: var(--fleet-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-heading {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.auth-alert, .auth-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--fleet-line-bright);
  border-radius: var(--radius-control);
  background: var(--fleet-bg);
  font-size: 13px;
}
.auth-alert-glyph {
  font-weight: 700;
  color: var(--fleet-fg-2);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--fleet-fg-2);
}
.auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

/* Shell ------------------------------------------------------------------- */

.shell-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
/* A state, not an action: the warn hue with a glyph and words, never teal.
   One quiet line that wraps on a phone and takes its own row, so no page
   under it moves sideways. */
.env-banner {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--fleet-line);
  background: var(--fleet-warn-wash);
  color: var(--fleet-warn);
}
.env-banner p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.env-banner a {
  color: inherit;
  text-decoration: underline;
}
.env-banner-glyph {
  display: inline-flex;
  flex: none;
  font-size: 16px;
  line-height: 1;
  padding-top: 1px;
}
.env-banner-missing {
  margin-left: 4px;
}
@media (max-width: 767.98px) {
  .demo-banner {
    display: none;
  }
}
.masquerade-banner {
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
}
.masquerade-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 767.98px) {
  /* a set height: the phone reader, fixed over the page, starts below it */
  .shell {
    --masquerade-bar: 104px;
  }
  .masquerade-banner {
    height: var(--masquerade-bar);
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .masquerade-banner p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .masquerade-banner .env-banner-glyph {
    display: none;
  }
}
.shell-main-padded {
  padding: 0;
}

.nav-row-chevron {
  display: flex;
  flex-shrink: 0;
  color: var(--fleet-faint);
  font-size: 16px;
  transition: transform var(--fleet-duration-fast) var(--fleet-ease-standard);
}

@media (min-width: 768px) {
  .shell-main-padded {
    padding: 24px;
  }

  .md-hidden {
    display: none !important;
  }
}

/* Notices ----------------------------------------------------------------- */

.notice-card {
  max-width: 560px;
  margin: 24px;
  padding: 20px 24px;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-card);
  background: var(--fleet-bg-2);
}

/* Controls and rows ------------------------------------------------------- */

input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  accent-color: var(--fleet-brand);
}
input[type="checkbox"]:focus, input[type="radio"]:focus {
  box-shadow: none;
}

.grow {
  flex: 1;
}
.min-w-0 {
  min-width: 0;
}
.block {
  display: block;
}

.uppercase {
  text-transform: uppercase;
}

.button-small {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fleet-bg-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stat b {
  color: var(--fleet-fg);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.pill-link, .pill-button {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--fleet-fg-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}
.pill-link:hover, .pill-button:hover {
  background: var(--fleet-brand-soft);
  color: var(--fleet-brand);
}

.pill-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.pill-link, .pill-button {
  gap: 5px;
}
.pill-link svg, .pill-button svg {
  flex: none;
  font-size: 1.15em;
}

.settings-picker-options {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.option-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.option-row:hover {
  background: var(--fleet-brand-soft);
}
.option-row.state-off:hover {
  background: var(--fleet-off-wash);
}

.option-row-label {
  flex: 1;
  min-width: 0;
}

.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--fleet-brand-soft);
  color: var(--fleet-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.list-row-cursor {
  outline: 1px solid var(--fleet-line-bright);
  outline-offset: -1px;
}

.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: lowercase;
}
.status-ok {
  background: var(--fleet-ok-wash);
  color: var(--fleet-ok);
}
.status-warn {
  background: var(--fleet-warn-wash);
  color: var(--fleet-warn);
}
.status-off {
  background: var(--fleet-off-wash);
  color: var(--fleet-off);
}
.tag {
  align-items: center;
}
.tag.truncate {
  flex: 0 1 auto;
  min-width: 0;
  display: block;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 24px;
  text-align: center;
}
.empty-state p {
  max-width: 384px;
  margin: 0;
}

.card {
  flex-direction: column;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  text-decoration: none;
  color: inherit;
}
.card:focus-visible {
  box-shadow: inset 0 0 0 3px var(--fleet-focus-ring);
}

.dialog::backdrop {
  background: var(--fleet-scrim, rgba(7, 39, 49, 0.45));
  backdrop-filter: blur(3px);
}

/* the dialogs of the banners and a template's embed */
.dialog {
  width: calc(100% - 2rem);
  max-width: 512px;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--fleet-bg-2);
  color: var(--fleet-fg);
  box-shadow: var(--fleet-shadow-xl);
  flex-direction: column;
  overflow: hidden;
}
.dialog[open] {
  display: flex;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 24px 24px 12px;
}
.dialog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px 16px;
}
.dialog-body p {
  margin: 0;
}
.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--fleet-line);
}

.spotlight-chip {
  flex: none;
  padding: 4px 12px;
  border: 1px solid var(--fleet-line-bright);
  border-radius: 999px;
  color: var(--fleet-fg-2);
  font-size: 12.5px;
  font-weight: 600;
}
.spotlight-chip:hover {
  border-color: var(--fleet-brand);
  color: var(--fleet-brand);
}
.spotlight-chip[aria-pressed="true"] {
  border-color: var(--fleet-brand);
  background: var(--fleet-brand);
  color: var(--fleet-brand-ink);
}

@media (max-width: 767.98px) {
  .spotlight-chip {
    min-height: 36px;
  }
}

@media (max-width: 767.98px) {
  .option-row {
    min-height: 44px;
  }
}

/* Reader parts ------------------------------------------------------------ */

.reader {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.reader-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--fleet-bg-1);
  border-bottom: 1px solid var(--fleet-line);
}
.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  color: var(--fleet-fg);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.reader-back:hover {
  color: var(--fleet-brand);
  background: var(--fleet-wash);
}
.reader-back svg {
  font-size: 18px;
}
.reader-title h1 {
  font-size: 13.5px;
  font-weight: 500;
}
.reader-meta {
  margin: 2px 0 0;
  line-height: 1.4;
}
.reader-summary {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: normal;
}
.reader-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.reader-panes {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.reader-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.reader-pane-review {
  flex: 1;
  border-top: 1px solid var(--fleet-line);
}

.reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 2px 12px;
  background: var(--fleet-bg);
  border-bottom: 1px solid var(--fleet-line);
}
.reader-page-labels {
  display: flex;
  align-items: center;
  min-height: 32px;
  min-width: 0;
}
.reader-page-label {
  font-weight: 700;
}

/* a search match in the fax reader's text (overlay.js) */
mark.reader-hit {
  border-radius: 2px;
  background: var(--teal-200);
  color: var(--teal-950);
  font-weight: 700;
}

.reader-stage {
  background: var(--fleet-bg-1);
}
.reader-page {
  display: flex;
  flex-direction: column;
}

.reader-page-frame {
  padding: 12px;
}
.reader-stage-page {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.reader-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  user-select: none;
}
.reader-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 17 / 22;
  width: 100%;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-control);
  background: var(--fleet-bg-2);
}

/* a table row's band: an estimate, OCR gives no row coordinates */
.reader-band {
  z-index: 12;
  border-radius: 2px;
  background: rgba(127, 193, 204, 0.18);
}

.reader-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--fleet-line);
}
.reader-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-control);
  background: var(--fleet-bg-2);
}
.reader-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-control);
  color: var(--fleet-fg-2);
  font-size: 13.5px;
  font-weight: 500;
}
.reader-tab[aria-selected="true"] {
  background: var(--fleet-bg);
  color: var(--fleet-brand);
  box-shadow: var(--fleet-shadow-xs);
}

.reader-panel {
  padding: 12px 16px;
}

.reader-block-html {
  min-width: 0;
  overflow-x: auto;
  overflow-wrap: anywhere;
}
.reader-block-html p {
  margin: 0 0 4px;
}
.reader-block-html table {
  border-collapse: collapse;
}
.reader-block-html td, .reader-block-html th {
  border: 1px solid var(--fleet-line);
  padding: 2px 6px;
}
.reader-image-note {
  font-style: italic;
}
.reader-blocks-empty {
  margin: 0;
}

/* pdf.js, for a fax without pages */
.pdf-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 75vh;
  min-height: 0;
}
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fleet-line);
}
.pdf-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-page-input {
  width: 64px;
  padding: 4px 8px;
  background: var(--fleet-bg-4);
}
.pdf-tool {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid var(--fleet-line-bright);
  border-radius: var(--radius-control);
  color: var(--fleet-fg-2);
  text-decoration: none;
}
.pdf-tool:hover {
  background: var(--fleet-brand-soft);
  border-color: var(--fleet-brand);
  color: var(--fleet-brand);
}
.pdf-error {
  margin: 40px 0 0;
  text-align: center;
}
.pdf-pages {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  overflow-y: auto;
}
.pdf-canvas {
  border: 1px solid var(--fleet-line);
  box-shadow: var(--fleet-shadow-lg);
}

/* the view-schema panel */
.vs-panel, .vs-state {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fleet-line);
}
.vs-unsaved {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fleet-warn-wash);
  color: var(--fleet-warn);
}
.vs-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.vs-state-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vs-tabs-row {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--fleet-line);
  overflow-x: auto;
}
.vs-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}
.vs-tab {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 100%;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--fleet-fg-2);
}
.vs-tab[aria-selected="true"] {
  background: var(--fleet-brand-soft);
  color: var(--fleet-brand);
}
.vs-tabpanel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vs-empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
}
.vs-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.vs-span {
  grid-column: 1 / -1;
}
.vs-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vs-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.vs-header-title {
  font-size: 14px;
  font-weight: 500;
}
.vs-header-aside {
  flex-shrink: 0;
  margin-left: auto;
}
.vs-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--fleet-bg-2);
}
.vs-card p {
  margin: 0;
}
.vs-card-empty {
  align-items: center;
  padding: 24px 16px;
}
.vs-array {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vs-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--fleet-line);
}
.vs-entry:first-child {
  padding-top: 0;
  border-top: 0;
}
.vs-entry-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.vs-unknown {
  padding: 16px;
  border: 1px dashed var(--fleet-line-bright);
  border-radius: var(--radius-card);
}
.vs-unknown p {
  margin: 0;
}
.vs-nested-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.vs-table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-control);
  background: var(--fleet-bg-1);
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
}
.vs-table thead tr {
  background: var(--fleet-bg-3);
}
.vs-table th {
  height: 36px;
  min-width: 200px;
  padding: 0 8px;
  text-align: left;
  vertical-align: middle;
  font-weight: 700;
}
.vs-table td {
  min-width: 200px;
  padding: 8px;
  vertical-align: top;
  border-top: 1px solid var(--fleet-line);
}
.vs-table td.vs-table-empty {
  text-align: center;
}
.vs-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vs-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.vs-line-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.vs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.vs-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.vs-control-box {
  position: relative;
}
.vs-input {
  height: 36px;
  padding: 0 12px;
  background: var(--fleet-bg-4);
  font-size: 13px;
}
.vs-input-dense {
  height: 32px;
}
.vs-textarea {
  height: auto;
  min-height: 72px;
  padding: 8px 12px;
  resize: vertical;
}
.vs-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  background: var(--fleet-bg-4);
}
.vs-edited-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 1px;
  background: var(--fleet-fg);
  pointer-events: none;
}
.vs-model-said {
  overflow-wrap: anywhere;
}
.vs-model-said-text {
  font-family: var(--font-sans);
  font-weight: 400;
  white-space: pre-line;
}
/* field → source: read mode shows each value as a way to its source, edit mode the inputs */
.vs-panel[data-mode="read"] .vs-control-box, .vs-panel[data-mode="read"] [data-model-said], .vs-panel[data-mode="read"] [data-invalid-json], .vs-panel[data-mode="read"] .vs-bar .vs-mode-edit {
  display: none;
}
.vs-panel[data-mode="edit"] .vs-value, .vs-panel[data-mode="edit"] [data-extraction-edit] {
  display: none;
}
.vs-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 4px 0;
  border-radius: var(--radius-xs);
  color: var(--fleet-fg);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
button.vs-value {
  cursor: pointer;
  color: var(--fleet-brand);
  text-decoration: underline;
  text-decoration-color: var(--fleet-accent);
  text-underline-offset: 3px;
}
button.vs-value::after {
  content: "⌖";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fleet-muted);
  text-decoration: none;
}
button.vs-value:hover, button.vs-value:focus-visible {
  background: var(--fleet-brand-soft);
  color: var(--fleet-brand-hover);
  text-decoration-color: currentColor;
}
.vs-value[data-source-state="none"]:hover {
  color: var(--fleet-fg-2);
}
.vs-value[data-source-state="edited"]::after {
  content: "✎ edited";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fleet-warn);
}

@media (min-width: 768px) {
  .reader-head {
    padding: 6px 28px;
  }
  .reader-toolbar {
    padding: 2px 20px;
  }

  .reader-panel {
    padding: 16px 20px;
  }
  .vs-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vs-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vs-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .reader {
    overflow: hidden;
  }
  .reader-panes {
    flex-direction: row;
  }
  .reader-pane-pages {
    width: 52%;
    flex-shrink: 0;
    min-height: 0;
  }
  .reader-pane-review {
    min-height: 0;
    border-top: 0;
    border-left: 1px solid var(--fleet-line);
  }
  .reader-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  .reader-panel {
    min-height: 0;
    overflow: auto;
  }
  .pdf-viewer {
    flex: 1;
    height: auto;
  }
}
@media (max-width: 767.98px) {
  .reader-head {
    flex-wrap: wrap;
  }
  .reader-title {
    flex-basis: 100%;
    order: 3;
  }
  /* in the first row, between the way back and the actions; the matches
     open across the whole head, as the field alone is too narrow for them */
  .reader-head {
    position: relative;
  }
}

/* Prompt editor (04-pipeline: LLM prompt editor) -------------------------- */

.prompts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
}
.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prompt-card {
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-card);
  background: var(--fleet-bg-2);
}
.prompt-card p {
  margin: 0;
}
.prompt-template {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-card);
  background: var(--fleet-bg-1);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.prompt-destroy {
  display: inline;
  margin-left: 8px;
}
.prompt-textarea {
  width: 100%;
  min-height: 320px;
  font-family: inherit;
  font-size: inherit;
  resize: vertical;
}

/* Send a Fax (02-outbound: UI) ---------------------------------------------- */

.send-head .text-prose {
  margin: 2px 0 0;
}
.send-card > .text-mono-label {
  margin: 0;
  color: var(--fleet-muted);
  text-transform: uppercase;
}
.send-foot .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.send-foot .button:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 767.98px) {
  .send-head {
    padding: 16px 16px 8px;
  }
  .send-body {
    padding: 0 16px 16px;
  }
  .send-foot {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }
}

/* Settings (07-org-settings: UI) --------------------------------------------- */

.settings-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--fleet-line-bright);
  border-radius: var(--radius-input);
  background: var(--fleet-bg);
  color: var(--fleet-fg);
  font: inherit;
  font-size: 13px;
}

.settings-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-card);
  background: var(--fleet-bg-2);
  overflow: hidden;
}
.settings-row {
  border-bottom: 1px solid var(--fleet-line);
}
.settings-row:target {
  background: var(--fleet-brand-soft);
}
.settings-row:last-of-type {
  border-bottom: 0;
}
.settings-row-main {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
}
.settings-row-toggle {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--fleet-fg);
  text-align: left;
  font-size: 14px;
}
button.settings-row-toggle:hover {
  background: var(--fleet-wash);
}
.settings-row-toggle[aria-expanded="true"] .nav-row-chevron {
  transform: rotate(90deg);
}

.settings-row-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 16px 12px 46px;
}
.settings-row-details p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.settings-picker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--fleet-fg-1);
}
.settings-picker-box {
  position: relative;
}

.settings-picker-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 12rem;
  margin-top: 4px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-control);
  background: var(--fleet-bg-1);
  box-shadow: var(--fleet-shadow-md);
}
.settings-picker-options[hidden], .settings-picker-options [hidden] {
  display: none;
}
.settings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.settings-chips:empty {
  display: none;
}

.settings-avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.settings-user-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-user-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.settings-user-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.settings-access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 2px 6px;
  border-radius: var(--radius-control);
  color: var(--fleet-fg-2);
}
.settings-access-toggle:hover {
  background: var(--fleet-wash);
}
.settings-access-toggle[aria-expanded="true"] .nav-row-chevron {
  transform: rotate(90deg);
}
.settings-user .settings-row-details {
  padding: 4px 0 0;
}

.settings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-card);
  background: var(--fleet-bg-2);
}
.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.settings-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fleet-line);
  color: var(--fleet-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: lowercase;
}
.settings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fleet-line);
}
.settings-table .num {
  text-align: right;
}

@media (max-width: 767.98px) {
  .settings-input, .pill-button, .option-row, .settings-access-toggle {
    min-height: 44px;
  }

  .settings-user-main .text-mono-label-sm {
    max-width: 100%;
  }
}
.settings-role {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--fleet-line-bright);
  border-radius: 999px;
  color: var(--fleet-fg-2);
}
/* 44px targets on the phone */
@media (max-width: 767.98px) {
  .dialog input:not([type="checkbox"]):not([type="radio"]), .dialog select, .dialog .button {
    min-height: 44px;
  }
  .dialog .icon-button {
    width: 44px;
    height: 44px;
  }
}

/* the row is a settings-row disclosure; its details line up under the number */
.number-row .settings-row-details {
  padding-left: 64px;
}
.number-row .tag {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.number-row a.tag {
  color: var(--fleet-link);
  text-decoration: none;
}
.number-row a.tag:hover {
  text-decoration: underline;
}
.number-row-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fleet-brand-soft);
  color: var(--fleet-brand);
  font-size: 18px;
}
.number-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.number-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 1px 8px;
  border: 1px solid var(--fleet-line-bright);
  border-radius: 999px;
  color: var(--fleet-fg-2);
}

/* --- flows (05-flows): templates, document types, extractors ------------- */

.flows-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-control);
  overflow: hidden;
}
.flows-list > li {
  border-bottom: 1px solid var(--fleet-line);
}
.flows-list > li:last-child {
  border-bottom: 0;
}

.flows-candidates {
  max-height: 18rem;
  overflow-y: auto;
}
.flows-candidates > li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 0;
}

/* codeeditor.js's host; the editor's own styles are in its shadow root */
.code-editor {
  min-height: 72px;
  overflow: hidden;
  resize: vertical;
}

.ai-code .pill-button {
  min-height: 28px;
  color: var(--fleet-muted);
}

.ai-code {
  position: relative;
  margin: 6px 0;
}
.ai-code pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-control);
  background: var(--fleet-bg);
  color: var(--fleet-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
.ai-code .pill-button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--fleet-bg);
}

@media (max-width: 767.98px) {
  .ai-code .pill-button {
    min-height: 44px;
  }
}

.assistant-table {
  max-width: 100%;
  overflow-x: auto;
}

.assistant-cite {
  color: var(--fleet-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* an embed: a card (icon, kind, title, one fact) that opens in place on the
   app's own view of a record, a change, a plan or a question */

.ai-embed-wrap {
  position: relative;
}
.ai-embed {
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-card);
  background: var(--fleet-bg);
  overflow: hidden;
}
.ai-embed-open-slot {
  visibility: hidden;
}
.ai-embed-wrap > .ai-embed-open {
  position: absolute;
  top: 26px;
  right: 32px;
  transform: translateY(-50%);
}
.ai-embed > summary, .ai-embed > .ai-embed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px;
  list-style: none;
  cursor: pointer;
}
.ai-embed > summary::-webkit-details-marker {
  display: none;
}
.ai-embed > summary:hover {
  background: var(--fleet-wash);
}
.ai-embed > summary:focus-visible {
  outline: 2px solid var(--fleet-brand);
  outline-offset: -2px;
}
.ai-embed[open] > summary {
  border-bottom: 1px solid var(--fleet-line);
  background: var(--fleet-bg-1);
}
.ai-embed-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--fleet-bg-4);
  color: var(--fleet-fg-2);
  font-size: 17px;
}
.ai-embed-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ai-embed-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.ai-embed-kind {
  flex: none;
}
.ai-embed-end {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}
.ai-embed-chev {
  display: flex;
  color: var(--fleet-faint);
  font-size: 16px;
  transition: transform var(--fleet-duration-fast) var(--fleet-ease-standard);
}
.ai-embed[open] .ai-embed-chev {
  transform: rotate(90deg);
}
.ai-embed-body {
  max-height: 600px;
  overflow: auto;
  padding: 16px;
  background: var(--fleet-bg);
}
.ai-embed-body.flush {
  padding: 0;
}
.ai-embed-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--fleet-line);
  background: var(--fleet-bg-1);
}
.ai-embed-foot .grow {
  flex: 1;
  min-width: 0;
}
.ai-embed:not([open]) > .ai-embed-foot {
  display: none;
}
.ai-embed-unavailable {
  opacity: 0.85;
}
.ai-embed-unavailable > .ai-embed-row {
  cursor: default;
}
.ai-embed-unavailable .ai-embed-icon {
  background: var(--fleet-bg-2);
  color: var(--fleet-faint);
}
.tag-draft {
  background: var(--fleet-warn-wash);
  color: var(--fleet-warn);
  text-transform: uppercase;
}
.tag-test {
  background: var(--fleet-info-wash);
  color: var(--fleet-info);
  text-transform: uppercase;
}
.ai-embed-tag-note {
  margin-left: 0.4em;
}

/* the card names the record: the page's own head (back link, title) is not repeated */
.ai-embed .settings-input[disabled], .ai-embed .settings-input[readonly] {
  background: var(--fleet-bg-1);
  color: var(--fleet-fg-1);
}
.ai-embed .reader {
  height: 600px;
}
/* a test document's reader: its pages stacked in the stage, their text by page */
.ai-test-reader .reader-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  overflow-y: auto;
}
.ai-test-reader .reader-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 8.5 / 11;
  background: var(--fleet-bg-2);
}
.ai-test-wait {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
}
.ai-test-error {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--fleet-line);
  background: var(--fleet-off-wash);
}
.ai-test-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}
.ai-test-page + .ai-test-page {
  border-top: 1px solid var(--fleet-line);
}
.ai-test-page h2, .ai-test-page p {
  margin: 0;
}
/* a question: chips to choose, a field to type, a list to search and pick */
.ai-question {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.ai-question-prompt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-chips .spotlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  cursor: pointer;
}
.ai-chips .spotlight-chip[aria-pressed="false"] {
  background: transparent;
}
.ai-chips .spotlight-chip svg {
  font-size: 13px;
}
.ai-chips .spotlight-chip[aria-pressed="false"] svg {
  display: none;
}
.ai-chips .spotlight-chip[disabled] {
  cursor: default;
}
.ai-chips .spotlight-chip[disabled]:not([aria-pressed="true"]) {
  opacity: 0.6;
}
.ai-q-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ai-q-pick .flows-list {
  max-height: 206px;
  overflow-y: auto;
}
.ai-q-pick .flows-candidates > li {
  padding: 0;
  min-height: 0;
}
.ai-q-pick .option-row {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  cursor: pointer;
}
.ai-q-pick .option-row:has(input:checked) {
  background: var(--fleet-selected);
}
/* a change: before and after, the changed fields marked, the rest collapsed */

.ai-version-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}
.ai-version-list > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
}
.ai-mark-add > dt, .ai-mark-del > dt {
  color: var(--fleet-fg-2);
}
.ai-version-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ai-mark-add {
  background: var(--fleet-ok-wash);
  box-shadow: inset 3px 0 0 var(--fleet-ok);
}
.ai-mark-del {
  background: var(--fleet-off-wash);
  box-shadow: inset 3px 0 0 var(--fleet-off);
}
.ai-strike {
  text-decoration: line-through;
}
.ai-prompt-diff {
  margin: 0;
  padding: 8px 0;
  border: 1px solid var(--fleet-line);
  border-radius: var(--radius-control);
  background: var(--fleet-bg);
  font-size: 12.5px;
  line-height: 1.55;
}
.ai-prompt-diff > span, .ai-prompt-diff > details {
  display: block;
  padding: 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* a version: one line naming the write, the changed fields, the rest collapsed */
.ai-version {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-version p {
  margin: 0;
}
.ai-version-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-version-more > summary, .ai-version-same > summary {
  cursor: pointer;
}
.ai-version-more > .ai-version-list {
  margin-top: 6px;
}
/* a plan: the step table across the card, the deletes marked */
.ai-plan.settings-table-wrap {
  border: 0;
  border-radius: 0;
  background: none;
}
.ai-plan .settings-table {
  width: 100%;
}
.ai-plan .settings-table td {
  vertical-align: top;
}
.ai-plan .settings-table th:first-child, .ai-plan .settings-table td:first-child {
  width: 36px;
  color: var(--fleet-faint);
}
.ai-plan .settings-table tr:last-child td {
  border-bottom: 0;
}
.ai-plan tr.ai-plan-delete td {
  background: color-mix(in srgb, var(--fleet-off-wash) 55%, transparent);
}
.ai-plan tr.ai-plan-delete td:first-child {
  box-shadow: inset 3px 0 0 var(--fleet-off);
}
.ai-plan-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.ai-plan-step svg {
  font-size: 15px;
}
.ai-plan-err {
  margin: 6px 0 0;
  color: var(--fleet-off);
  font-size: 12.5px;
}
.ai-plan-result {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .ai-embed > summary {
    min-height: 56px;
  }
  .ai-embed-wrap > .ai-embed-open {
    top: 28px;
  }
  /* the kind sits above the title, so each has the card's width; the
     link to the record's page is its icon (its words stay its name) */
  .ai-embed > summary, .ai-embed > .ai-embed-row {
    gap: 8px;
  }
  .ai-embed-line {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .ai-embed-kind {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ai-embed-open-words {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .ai-chips .spotlight-chip {
    min-height: 40px;
  }

  /* the review below the pages stays in reach: the pages scroll on their own */
  .ai-test-reader .reader-stage {
    max-height: 320px;
  }
  .ai-embed .reader {
    height: auto;
  }
  /* a plan's step: its number, action and result on a line, what it sends below at the card's width */
  .ai-plan thead {
    display: none;
  }
  .ai-plan tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    border-bottom: 1px solid var(--fleet-line);
  }
  .ai-plan tr:last-child {
    border-bottom: 0;
  }
  .ai-plan .settings-table td {
    border-bottom: 0;
  }
  .ai-plan .settings-table td:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .ai-embed-tag-note {
    display: none;
  }
}
.reader-embed-pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.reader-embed-page {
  display: block;
  max-width: 100%;
  height: auto;
}

/* a proposed change and a plan, drawn in the conversation */

.assistant-step-args {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 8px;
  margin: 4px 0 0;
  font-size: 12px;
}
.assistant-step-args dt {
  color: var(--fleet-muted);
}
.assistant-step-args dd {
  margin: 0;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-plan-long summary {
  cursor: pointer;
}
.ai-plan-long-value {
  max-height: 240px;
  overflow: auto;
}

/* The mock ---------------------------------------------------------------- */

/* the page frame the mock is shown in */
:root {
  color-scheme:light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
html {
  scroll-padding-top:env(safe-area-inset-top,0px);
}
body {
  margin:0;
  padding:0;
  font:14px -apple-system,BlinkMacSystemFont,sans-serif;
  background:#fff;
  color:#000;
}
img {
  max-width:100%;
}
[hidden]:not([hidden=until-found i]) {
  display:none!important;
}

/* Layout: app shell. Sidebar (mailboxes) + top search bar + one working surface.
   Phones: drawer for the sidebar, bottom tab bar, reader split into Original / Details / Text.
   Single light theme by design (product UI concept): every color is set explicitly. */
:root {
  --ink:#1a2630;
  --ink2:#33454f;
  --sub:#5b6b76;
  --faint:#62727a;
  --teal:#0d5f66;
  --deep:#0a4a50;
  --soft:#e3eeef;
  --soft2:#f0f6f6;
  --line:#dfe3e1;
  --line2:#eceeec;
  --bg:#f6f7f5;
  --card:#ffffff;
  --side:#f3f6f5;
  --amber:#f7c948;
  --amberbg:#fff6d6;
  --amberink:#7a5a06;
  --ok:#1a7f4e;
  --okbg:#e5f4ec;
  --warn:#9a6700;
  --warnbg:#fff1d0;
  --bad:#b42318;
  --badbg:#fde8e6;
  --info:#3d6a8c;
  --infobg:#e8f1f8;
  --mono:'Public Sans',system-ui,-apple-system,sans-serif;
  --code:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  --sans:'Public Sans',system-ui,-apple-system,sans-serif;
  --disp:'Bricolage Grotesque','Public Sans',system-ui,sans-serif;
  --card2:#fbfcfb;
  --hover:#e8eeec;
  --hover2:#f7faf9;
  --selbg:#eaf4f2;
  --selline:#cfe3de;
  --border2:#d3dedb;
  --border3:#c9d6d3;
  --border4:#c3cfcb;
  --border5:#b9c7c4;
  --tealline:#a9cbc6;
  --tealline2:#cfe2df;
  --tealline3:#9fc9c4;
  --tealbg:#d6e7e4;
  --tealbg2:#e3eeee;
  --stagebg:#eef0ec;
  --stripbg:#e7eae5;
  --paper:#ffffff;
  --knob:#ffffff;
  --onteal:#ffffff;
  --switchbg:#c3cfcb;
  --chartbar:#bcd8d4;
  --tagbg:#edf2f1;
  --tagink:#3e5a55;
  --pillbg:#eef1f0;
  --pillink:#4f5f5b;
  --pilloffbg:#f1f1ef;
  --pilloffink:#8a918f;
  --calloutline:#f1df9e;
  --litbg:#fff3c4;
  --toastbg:#173d39;
  --ontoast:#ffffff;
  --scrim:#10262566;
  --via-ai:#6a4a8a;
  --via-job:#7a8a86;
  --via-api:#b8741a;
  --top:60px;
  --foot:44px;
  --tab:58px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --ink:#e4ebed;
    --ink2:#c4d0d4;
    --sub:#8fa0a6;
    --faint:#829399;
    --teal:#3bb0b9;
    --deep:#8fd6db;
    --soft:#143336;
    --soft2:#112628;
    --line:#28353a;
    --line2:#1f2a2e;
    --bg:#0f1618;
    --card:#161f22;
    --side:#121a1d;
    --amber:#f7c948;
    --amberbg:#33290c;
    --amberink:#f3d783;
    --ok:#4fc48c;
    --okbg:#10302a;
    --warn:#e5b544;
    --warnbg:#332a0e;
    --bad:#f27d74;
    --badbg:#3b1d1c;
    --info:#7fb6e0;
    --infobg:#172a3a;
    --card2:#1b2528;
    --hover:#1f2b2f;
    --hover2:#1a2528;
    --selbg:#143033;
    --selline:#1f4c50;
    --border2:#2e3c41;
    --border3:#36454a;
    --border4:#3d4d52;
    --border5:#3d4d52;
    --tealline:#2f7a80;
    --tealline2:#214b4f;
    --tealline3:#2f7a80;
    --tealbg:#1c4347;
    --tealbg2:#182f33;
    --stagebg:#0b1012;
    --stripbg:#0e1517;
    --paper:#f3f4f1;
    --knob:#e4ebed;
    --onteal:#06282b;
    --switchbg:#3d4d52;
    --chartbar:#2f6b70;
    --tagbg:#243034;
    --tagink:#b8c8c4;
    --pillbg:#243034;
    --pillink:#b8c8c4;
    --pilloffbg:#1f292c;
    --pilloffink:#7f8c89;
    --calloutline:#4d3f12;
    --litbg:#ffe99a;
    --toastbg:#2b4d4a;
    --ontoast:#ffffff;
    --scrim:#000000a6;
    --via-ai:#b79ad6;
    --via-job:#9aa8a4;
    --via-api:#e0a24a;
    color-scheme:dark;
  }
  :root:not([data-theme="light"]) .tag.t-green {
    background:#1a3a2c;
    color:#8fd3ad;
  }
  :root:not([data-theme="light"]) .tag.t-blue {
    background:#1f2b45;
    color:#9fb6ea;
  }
  :root:not([data-theme="light"]) .tag.t-amber {
    background:#3a2a14;
    color:#e8b878;
  }
  :root:not([data-theme="light"]) .tag.t-violet {
    background:#2f2440;
    color:#c9aee6;
  }
  :root:not([data-theme="light"]) .tag.t-teal {
    background:#163340;
    color:#8cc4de;
  }
  :root:not([data-theme="light"]) .tag.t-red {
    background:#3a1f1a;
    color:#eaa093;
  }
  :root:not([data-theme="light"]) .tag.t-olive {
    background:#2a3018;
    color:#c3cf7f;
  }
  :root:not([data-theme="light"]) .tag.t-other {
    background:#243034;
    color:#b8c8c4;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-green {
    color:#8fd3ad;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-blue {
    color:#9fb6ea;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-amber {
    color:#e8b878;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-violet {
    color:#c9aee6;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-teal {
    color:#8cc4de;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-red {
    color:#eaa093;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-olive {
    color:#c3cf7f;
  }
  :root:not([data-theme="light"]) .navbtn .ic.t-other {
    color:#b8c8c4;
  }
  :root:not([data-theme="light"]) .doctext p.lit {
    color:#1a2630;
  }
  :root:not([data-theme="light"]) .paper .btn {
    background:#fff;
    color:#1a2630;
    border-color:#d3dedb;
  }
  :root:not([data-theme="light"]) .pill.ok {
    background:#1a3a2c;
    color:#8fd3ad;
  }
  :root:not([data-theme="light"]) .brand .bx {
    background-image:linear-gradient(90deg,#8fd6db 0%,#8fd6db 44%,#3dc3d6 56%,#3dc3d6 100%);
  }
  :root:not([data-theme="light"]) .menu,:root:not([data-theme="light"]) .popover,:root:not([data-theme="light"]) .qpanel,:root:not([data-theme="light"]) .fpanel,:root:not([data-theme="light"]) .modal,:root:not([data-theme="light"]) .peek,:root:not([data-theme="light"]) .send-results {
    box-shadow:0 18px 50px #00000080;
  }
}
:root[data-theme="dark"] {
  --ink:#e4ebed;
  --ink2:#c4d0d4;
  --sub:#8fa0a6;
  --faint:#829399;
  --teal:#3bb0b9;
  --deep:#8fd6db;
  --soft:#143336;
  --soft2:#112628;
  --line:#28353a;
  --line2:#1f2a2e;
  --bg:#0f1618;
  --card:#161f22;
  --side:#121a1d;
  --amber:#f7c948;
  --amberbg:#33290c;
  --amberink:#f3d783;
  --ok:#4fc48c;
  --okbg:#10302a;
  --warn:#e5b544;
  --warnbg:#332a0e;
  --bad:#f27d74;
  --badbg:#3b1d1c;
  --info:#7fb6e0;
  --infobg:#172a3a;
  --card2:#1b2528;
  --hover:#1f2b2f;
  --hover2:#1a2528;
  --selbg:#143033;
  --selline:#1f4c50;
  --border2:#2e3c41;
  --border3:#36454a;
  --border4:#3d4d52;
  --border5:#3d4d52;
  --tealline:#2f7a80;
  --tealline2:#214b4f;
  --tealline3:#2f7a80;
  --tealbg:#1c4347;
  --tealbg2:#182f33;
  --stagebg:#0b1012;
  --stripbg:#0e1517;
  --paper:#f3f4f1;
  --knob:#e4ebed;
  --onteal:#06282b;
  --switchbg:#3d4d52;
  --chartbar:#2f6b70;
  --tagbg:#243034;
  --tagink:#b8c8c4;
  --pillbg:#243034;
  --pillink:#b8c8c4;
  --pilloffbg:#1f292c;
  --pilloffink:#7f8c89;
  --calloutline:#4d3f12;
  --litbg:#ffe99a;
  --toastbg:#2b4d4a;
  --ontoast:#ffffff;
  --scrim:#000000a6;
  --via-ai:#b79ad6;
  --via-job:#9aa8a4;
  --via-api:#e0a24a;
  color-scheme:dark;
}
:root[data-theme="dark"] .tag.t-green {
  background:#1a3a2c;
  color:#8fd3ad;
}
:root[data-theme="dark"] .tag.t-blue {
  background:#1f2b45;
  color:#9fb6ea;
}
:root[data-theme="dark"] .tag.t-amber {
  background:#3a2a14;
  color:#e8b878;
}
:root[data-theme="dark"] .tag.t-violet {
  background:#2f2440;
  color:#c9aee6;
}
:root[data-theme="dark"] .tag.t-teal {
  background:#163340;
  color:#8cc4de;
}
:root[data-theme="dark"] .tag.t-red {
  background:#3a1f1a;
  color:#eaa093;
}
:root[data-theme="dark"] .tag.t-olive {
  background:#2a3018;
  color:#c3cf7f;
}
:root[data-theme="dark"] .tag.t-other {
  background:#243034;
  color:#b8c8c4;
}
:root[data-theme="dark"] .navbtn .ic.t-green {
  color:#8fd3ad;
}
:root[data-theme="dark"] .navbtn .ic.t-blue {
  color:#9fb6ea;
}
:root[data-theme="dark"] .navbtn .ic.t-amber {
  color:#e8b878;
}
:root[data-theme="dark"] .navbtn .ic.t-violet {
  color:#c9aee6;
}
:root[data-theme="dark"] .navbtn .ic.t-teal {
  color:#8cc4de;
}
:root[data-theme="dark"] .navbtn .ic.t-red {
  color:#eaa093;
}
:root[data-theme="dark"] .navbtn .ic.t-olive {
  color:#c3cf7f;
}
:root[data-theme="dark"] .navbtn .ic.t-other {
  color:#b8c8c4;
}
:root[data-theme="dark"] .doctext p.lit {
  color:#1a2630;
}
:root[data-theme="dark"] .paper .btn {
  background:#fff;
  color:#1a2630;
  border-color:#d3dedb;
}
:root[data-theme="dark"] .pill.ok {
  background:#1a3a2c;
  color:#8fd3ad;
}
:root[data-theme="dark"] .brand .bx {
  background-image:linear-gradient(90deg,#8fd6db 0%,#8fd6db 44%,#3dc3d6 56%,#3dc3d6 100%);
}
:root[data-theme="dark"] .menu,:root[data-theme="dark"] .popover,:root[data-theme="dark"] .qpanel,:root[data-theme="dark"] .fpanel,:root[data-theme="dark"] .modal,:root[data-theme="dark"] .peek,:root[data-theme="dark"] .send-results {
  box-shadow:0 18px 50px #00000080;
}

.li {
  display:inline-block;
  vertical-align:-.2em;
  flex:none;
}
.btn>.li,.opt>.li,.fbtn>.li,.act>.li {
  width:14px;
  height:14px;
}
.btn.sm>.li {
  width:13px;
  height:13px;
}
.navbtn .ic,.menu .mi .ic,.tabbar .ic,.act .ai,.mact .ai,.opt .ic {
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.navbtn .ic .li {
  width:15px;
  height:15px;
}
.menu .mi .ic .li {
  width:15px;
  height:15px;
}
.tabbar .ic .li {
  width:21px;
  height:21px;
}
.act .ai .li {
  width:15px;
  height:15px;
}
.mact .ai .li {
  width:19px;
  height:19px;
}
.iconbtn>.li {
  width:16px;
  height:16px;
}
.scope .chev .li,.fbtn .li.cd {
  width:12px;
  height:12px;
}
.callout>span>.li {
  width:16px;
  height:16px;
}
.gchip .li,.chip .li,.fkey .li,#aiAttached .li,.send-chips .li {
  width:11px;
  height:11px;
}
* {
  box-sizing:border-box;
}
[hidden] {
  display:none!important;
}
html,body {
  height:100%;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.45 var(--sans);
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}
button,input,select,textarea {
  font:inherit;
  color:inherit;
}
button {
  cursor:pointer;
}
:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:2px;
}
/* the parts' focused fields; the mock marks focus by border or outline alone */
input:focus,textarea:focus,select:focus,:focus-visible {
  box-shadow:none;
}
/* the parts' input:focus (outline:none) outranks :focus-visible */
input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:2px;
}
h1,h2,h3,h4,h5,h6,p {
  margin:0;
}
h1,h2,h3 {
  font-family:var(--disp);
  text-wrap:balance;
  letter-spacing:-.02em;
}
h4,h5,h6 {
  letter-spacing:normal;
}
.mono {
  font-family:var(--mono);
}
.num {
  font-variant-numeric:tabular-nums;
}
.muted {
  color:var(--sub);
}
.faint {
  color:var(--faint);
}
.sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
}
@media (prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    animation:none!important;
  }
}

/* shell */
.shell {
  display:grid;
  grid-template-columns:248px minmax(0,1fr);
  height:100%;
}
.side {
  background:var(--side);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-height:0;
  padding-left:env(safe-area-inset-left,0px);
}
.side-scroll {
  flex:1;
  min-height:0;
  overflow:hidden;
  padding:12px 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.side-scroll>* {
  flex:none;
}
#typenav {
  overflow-y:auto;
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color:var(--border3) transparent;
}
#typenav::-webkit-scrollbar {
  width:6px;
}
#typenav::-webkit-scrollbar-thumb {
  background:var(--border3);
  border-radius:3px;
}
.brand {
  font:800 22px var(--disp);
  letter-spacing:-.6px;
  padding:2px 8px;
  display:flex;
  align-items:baseline;
}
.brandrule {
  margin:0 -10px 2px;
}
.side-foot .scope {
  margin:6px 10px 4px;
  width:auto;
}
.brand .b1 {
  color:var(--deep);
}
.brand .b2 {
  color:#22b5c9;
}
.brand .bx {
  background:linear-gradient(90deg,var(--deep) 0%,var(--deep) 44%,#22b5c9 56%,#22b5c9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--amber);
  display:inline-block;
  margin:8px 0 0 2px;
}
.scope {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:9px;
  padding:6px 10px;
}
.scope:hover {
  border-color:var(--border3);
}
.scope b {
  display:block;
  font-size:12.5px;
}
.scope small {
  display:block;
  font-size:11px;
  color:var(--sub);
}
.scope .grow {
  flex:1;
  min-width:0;
}
.chev {
  color:var(--faint);
  font-size:11px;
}
.navlabel {
  font:600 10px var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--faint);
  padding:0 10px;
  margin-bottom:2px;
}
.nav {
  display:flex;
  flex-direction:column;
  gap:1px;
}
.navbtn {
  border:0;
  background:none;
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 10px;
  border-radius:7px;
  color:var(--ink2);
  font-weight:600;
  font-size:13px;
  text-align:left;
}
.navbtn:hover {
  background:var(--hover);
}
.navbtn.on {
  background:var(--soft);
  color:var(--deep);
}
.navbtn .ic {
  width:18px;
  text-align:center;
  color:var(--sub);
  font-size:14px;
}
.navbtn.on .ic {
  color:var(--teal);
}
.subnav {
  padding:2px 0 4px 14px;
  display:flex;
  flex-direction:column;
  gap:1px;
  border-left:2px solid var(--line);
  margin:0 0 4px 18px;
}
.subnav .navbtn.sub {
  font-weight:500;
  font-size:12.5px;
  padding:3px 8px;
  color:var(--ink2);
}
.subnav .navbtn.sub.on {
  font-weight:600;
}
.subnav .navbtn.sub .ic {
  width:14px;
  font-size:11px;
}
.subsep {
  height:1px;
  background:var(--line2);
  margin:4px 8px;
}
.shell.rail .side .subnav {
  display:none;
}
.navbtn .ct {
  margin-left:auto;
  font:500 11px var(--mono);
  color:var(--sub);
}
.navbtn .ct.new {
  background:var(--teal);
  color:var(--onteal);
  border-radius:10px;
  padding:0 6px;
}
.navbtn.sub {
  padding-left:58px;
  font-size:12px;
}
.navbtn.sub .ic {
  width:14px;
}
.side-foot {
  border-top:1px solid var(--line);
  padding:6px 10px calc(8px + env(safe-area-inset-bottom,0px));
  position:relative;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.collapse {
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 10px;
  border-radius:7px;
  color:var(--sub);
  font-size:12px;
  font-weight:600;
  width:100%;
  text-align:left;
}
.collapse:hover {
  background:var(--hover);
  color:var(--ink2);
}
.fsep {
  border:0;
  border-top:1px solid var(--line);
  margin:5px -10px;
  width:auto;
}
.collapse .ic {
  width:18px;
  text-align:center;
  font-size:14px;
}
.shell.rail .collapse {
  justify-content:center;
  padding:8px 0;
  font-size:0;
}
.shell.rail .collapse .ic {
  font-size:14px;
}
@media (max-width:900px) {
  .collapse,.collapse+.fsep {
    display:none;
  }
}
.user {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:0;
  background:none;
  border-radius:8px;
  padding:6px;
  text-align:left;
}
.user:hover {
  background:var(--hover);
}
.av {
  width:30px;
  height:30px;
  border-radius:8px;
  background:var(--tealbg);
  color:var(--deep);
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:12px;
  flex:none;
}
.user b {
  display:block;
  font-size:12.5px;
}
.user small {
  display:block;
  font-size:11px;
  color:var(--sub);
}
.user .grow {
  flex:1;
  min-width:0;
}
.uchev {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:7px;
  color:var(--sub);
  border:1px solid var(--line);
  background:var(--card);
  flex:none;
}
.user:hover .uchev,.user[aria-expanded=true] .uchev {
  background:var(--soft);
  border-color:var(--tealline);
  color:var(--deep);
}
.menu {
  position:absolute;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 14px 40px #13302d26;
  padding:6px;
  z-index:40;
  min-width:220px;
}
.menu[hidden] {
  display:none;
}
.menu .mi {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:0;
  background:none;
  padding:8px 10px;
  border-radius:6px;
  text-align:left;
  font-size:13px;
  color:var(--ink2);
}
.menu .mi:hover,.menu .mi.kb {
  background:var(--soft2);
}
.menu .mi .ic {
  width:16px;
  text-align:center;
  color:var(--sub);
}
.menu .mi kbd {
  margin-left:auto;
}
.menu hr {
  border:0;
  border-top:1px solid var(--line2);
  margin:5px 4px;
}
.popover .mh {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:8px 10px 4px;
}
.themeseg {
  display:flex;
  gap:2px;
  margin:0 8px 6px;
  background:var(--line2);
  border-radius:8px;
  padding:2px;
}
.themeseg button {
  flex:1;
  border:0;
  background:none;
  border-radius:6px;
  font:500 12px var(--sans);
  color:var(--sub);
  padding:5px 0;
}
.themeseg button[aria-pressed=true] {
  background:var(--card);
  color:var(--ink);
  box-shadow:0 1px 2px #0002;
  font-weight:600;
}
.menu .mh {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:6px 10px 4px;
}
.usermenu {
  position:fixed;
  width:236px;
}

.main {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  height:100%;
}
.top {
  height:var(--top);
  flex:none;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 max(20px,env(safe-area-inset-right,0px)) 0 20px;
  border-bottom:1px solid var(--line);
  background:var(--card);
}
.top .burger {
  display:none;
}
.sw {
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:3px;
  background:currentColor;
}
.viewtitle {
  font:700 18px var(--disp);
  letter-spacing:-.02em;
  white-space:nowrap;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex:none;
  width:236px;
  overflow:hidden;
}
.viewtitle .vt {
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}
.viewtitle small {
  flex:none;
}
.viewtitle small {
  font:500 11.5px var(--mono);
  color:var(--sub);
  letter-spacing:0;
}
.search {
  flex:1;
  max-width:none;
  display:flex;
  align-items:center;
  gap:10px;
  height:40px;
  border:1px solid var(--border3);
  border-radius:9px;
  padding:0 12px;
  background:var(--card);
  box-shadow:0 2px 10px #1d4b4508;
}
.search:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #0d5f661a;
}
.search input {
  border:0;
  outline:0;
  flex:1;
  min-width:0;
  background:transparent;
}
.search input::-webkit-search-cancel-button {
  display:none;
}
.qclear {
  width:24px;
  height:24px;
  border-radius:6px;
  border:0;
  background:var(--soft2);
  color:var(--sub);
  display:grid;
  place-items:center;
  flex:none;
}
.qclear:hover {
  background:var(--hover2);
  color:var(--ink);
}
.qclear[hidden] {
  display:none;
}
.topsearch {
  flex:1;
  min-width:0;
  position:relative;
}
.qpanel {
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  max-height:min(72dvh,640px);
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 18px 50px #13302d2e;
  z-index:62;
  padding:6px 0;
}
.qp-sec {
  padding:8px 14px;
}
.qp-sec+.qp-sec {
  border-top:1px solid var(--line2);
}
.qp-h {
  font:600 10.5px var(--sans);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-bottom:7px;
}
.qp-chips {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.qp-chips button {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:14px;
  padding:4px 11px;
  font-size:12.5px;
  color:var(--ink2);
  white-space:nowrap;
}
.qp-chips button:hover {
  border-color:var(--border3);
}
.qp-chips button[aria-pressed=true] {
  background:var(--soft);
  border-color:var(--tealline);
  color:var(--deep);
  font-weight:600;
}
.qp-chips .c {
  color:var(--faint);
  font-size:11.5px;
  margin-left:4px;
}
.qp-foot {
  padding:6px 14px 4px;
  font-size:11.5px;
  color:var(--faint);
  display:flex;
  gap:12px;
}
.search .scope-tag {
  display:none!important;
  font:500 11px var(--mono);
  color:var(--sub);
  background:var(--soft2);
  border-radius:5px;
  padding:2px 7px;
  white-space:nowrap;
}
kbd {
  font:600 10px var(--sans);
  letter-spacing:.02em;
  border:1px solid var(--line);
  border-bottom-width:2px;
  border-radius:4px;
  padding:1px 5px;
  color:var(--sub);
  background:var(--card2);
}
.btn {
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--ink2);
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  font-size:12.5px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.btn:hover {
  background:var(--soft2);
}
.btn.pri {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.btn.pri:hover {
  background:color-mix(in srgb,var(--teal) 85%,var(--ink));
}
.btn.sm {
  padding:5px 9px;
  font-size:12px;
}
.btn.ghost {
  border-color:transparent;
  background:none;
}
.btn:disabled {
  opacity:.42;
  cursor:default;
  background:var(--card);
}
.btn.danger {
  color:var(--bad);
}
.iconbtn {
  border:1px solid transparent;
  background:none;
  width:34px;
  height:34px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:var(--ink2);
  font-size:16px;
  flex:none;
}
.iconbtn:hover {
  background:var(--soft2);
}
.iconbtn:disabled {
  opacity:.35;
}
.top .sendbtn {
  margin-left:auto;
}
.view {
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.view[hidden] {
  display:none;
}

/* inbox list */
.list {
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:var(--card);
}
.listhead {
  flex:none;
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border-bottom:1px solid var(--line);
  min-height:48px;
}
.listhead h1 {
  font-size:17px;
  margin-right:8px;
  white-space:nowrap;
}
.selall {
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:7px;
  height:30px;
  position:relative;
}
.selall input {
  margin:0 4px 0 8px;
  accent-color:var(--teal);
  width:15px;
  height:15px;
}
.selall button {
  border:0;
  background:none;
  height:100%;
  padding:0 6px;
  color:var(--sub);
  font-size:10px;
}
.bulk {
  display:flex;
  align-items:center;
  gap:2px;
  flex-wrap:nowrap;
  overflow:hidden;
}
.act {
  border:1px solid transparent;
  background:none;
  height:30px;
  padding:0 9px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink2);
  white-space:nowrap;
}
.act:hover:not(:disabled) {
  background:var(--soft2);
  border-color:var(--line);
}
.act:disabled {
  opacity:.4;
  cursor:default;
}
.act .ai {
  font-size:13px;
  color:var(--sub);
}
.ractions .act {
  height:32px;
}
.bulk {
  overflow-x:auto;
  scrollbar-width:none;
  min-width:0;
  flex:0 1 auto;
}
.bulk::-webkit-scrollbar {
  display:none;
}
@media (max-width:1100px) {
  .act {
    padding:0 7px;
    gap:4px;
    font-size:12px;
  }
  .selcount {
    min-width:0;
  }
}
.selcount {
  font:600 12.5px var(--sans);
  color:var(--ink2);
  padding:0 6px 0 4px;
  white-space:nowrap;
}
.listhead .spacer {
  flex:1;
}
.listbar {
  position:relative;
  flex:none;
}
.listbar .listhead {
  position:absolute;
  inset:0;
  z-index:4;
  background:var(--selbg);
  border-bottom:1px solid var(--selline);
  min-height:0;
}
.list:not(.has-sel) .listbar .listhead {
  display:none;
}
.fgroup {
  display:flex;
  align-items:center;
  gap:6px;
  flex:1;
  min-width:0;
}
.vcount {
  font-size:12px;
  color:var(--sub);
  white-space:nowrap;
  margin-right:8px;
}
@media (max-width:900px) {
  .vcount {
    display:none;
  }
}
.filters .selall {
  flex:none;
  margin-right:4px;
}
.filters #refresh {
  width:30px;
  height:28px;
  font-size:14px;
  color:var(--sub);
}
.list:not(.has-sel) .bulk,.list:not(.has-sel) .selcount {
  display:none;
}
.filters {
  flex:none;
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 16px;
  border-bottom:1px solid var(--line);
  background:var(--card2);
  overflow-x:auto;
  scrollbar-width:none;
}
.filters::-webkit-scrollbar {
  display:none;
}
.fbtn {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:6px;
  padding:4px 9px;
  font-size:12px;
  color:var(--ink2);
  display:inline-flex;
  gap:5px;
  align-items:center;
  white-space:nowrap;
  position:relative;
}
.fbtn span.k {
  color:var(--faint);
}
.fbtn.set {
  border-color:var(--tealline);
  background:var(--soft2);
  color:var(--deep);
}
.fbtn:hover {
  border-color:var(--border3);
}
.filters .sep {
  width:1px;
  height:18px;
  background:var(--line);
  flex:none;
}
.filters .end {
  margin-left:auto;
  display:flex;
  gap:6px;
  align-items:center;
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11.5px;
  background:var(--soft);
  color:var(--deep);
  border-radius:5px;
  padding:3px 4px 3px 8px;
  white-space:nowrap;
}
.chip button {
  border:0;
  background:none;
  color:var(--deep);
  padding:0 4px;
  font-size:13px;
  line-height:1;
}
.rows {
  flex:1;
  overflow:auto;
  min-height:0;
}
.row {
  display:grid;
  grid-template-columns:28px 10px minmax(170px,230px) minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:0 16px 0 12px;
  height:40px;
  border-bottom:1px solid var(--line2);
  cursor:pointer;
  color:var(--sub);
  position:relative;
}
.row:hover {
  background:var(--hover2);
}
.row.sel {
  background:var(--selbg);
}
.row.kb {
  box-shadow:inset 3px 0 0 var(--teal);
}
.row input {
  accent-color:var(--teal);
  width:15px;
  height:15px;
  margin:0 0 0 6px;
}
.row .dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:transparent;
}
.row.unread .dot {
  background:var(--teal);
}
.row .from {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
}
.row .from small {
  display:none;
  font:400 12px var(--sans);
  color:var(--faint);
  margin-left:6px;
}
@media (min-width:1500px) {
  .row {
    grid-template-columns:28px 10px minmax(240px,300px) minmax(0,1fr) auto;
  }
  .row .from small {
    display:inline;
  }
}
.row.unread .from {
  color:var(--ink);
  font-weight:700;
}
.row .line {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-size:13px;
}
.row .line .sum {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  min-width:0;
}
.row.unread .line .sum {
  color:var(--ink2);
}
.row .meta {
  display:flex;
  align-items:center;
  gap:12px;
  font:400 12px var(--sans);
  white-space:nowrap;
}
.row.unread .meta .when {
  color:var(--ink);
  font-weight:500;
}
.row .meta .to {
  color:var(--faint);
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.row .meta .pg {
  color:var(--faint);
  width:28px;
  text-align:right;
}
.row .meta .when {
  width:62px;
  text-align:right;
}
.tag {
  font:600 10.5px var(--sans);
  border-radius:4px;
  padding:2px 6px;
  background:var(--tagbg);
  color:var(--tagink);
  white-space:nowrap;
  flex:none;
}
.tag.t-green {
  background:#e3f1ea;
  color:#1f6b4c;
}
.tag.t-blue {
  background:#e8eef9;
  color:#3a5a92;
}
.tag.t-amber {
  background:#fbeedd;
  color:#8a5414;
}
.tag.t-violet {
  background:#f0e9f6;
  color:#6a4a8a;
}
.tag.t-teal {
  background:#e6f2f6;
  color:#27637a;
}
.tag.t-red {
  background:#f6ebe9;
  color:#8c3b2e;
}
.tag.t-olive {
  background:#eef1e3;
  color:#5a6524;
}
.tag.t-other {
  background:#eef0ef;
  color:#5f6b68;
}
.navbtn .ic.t-green {
  color:#1f6b4c;
}
.navbtn .ic.t-blue {
  color:#3a5a92;
}
.navbtn .ic.t-amber {
  color:#c47a1a;
}
.navbtn .ic.t-violet {
  color:#6a4a8a;
}
.navbtn .ic.t-teal {
  color:#27637a;
}
.navbtn .ic.t-red {
  color:#8c3b2e;
}
.navbtn .ic.t-olive {
  color:#7a8a2a;
}
.navbtn .ic.t-other {
  color:#8a9593;
}
.st {
  font:600 10px var(--mono);
  letter-spacing:.03em;
  text-transform:uppercase;
  border-radius:4px;
  padding:2px 5px;
  flex:none;
}
.st.urgent {
  background:var(--badbg);
  color:var(--bad);
}
.st.review {
  background:var(--warnbg);
  color:var(--warn);
}
.st.failed {
  background:var(--badbg);
  color:var(--bad);
}
.st.unrouted {
  background:var(--infobg);
  color:var(--info);
}
.st.proc {
  background:var(--soft2);
  color:var(--sub);
}
.st.sent {
  background:var(--okbg);
  color:var(--ok);
}
.keys {
  display:flex;
  gap:11px;
  align-items:center;
  flex-wrap:nowrap;
  overflow-x:auto;
  white-space:nowrap;
  flex:1;
  min-width:0;
  scrollbar-width:none;
}
.keys::-webkit-scrollbar {
  display:none;
}
.keys span {
  gap:3px!important;
}
.keys span {
  display:inline-flex;
  gap:5px;
  align-items:center;
}
.pager {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}
.pager .range {
  font:500 12px var(--mono);
  color:var(--ink2);
  margin-right:6px;
}
.pager .iconbtn {
  width:30px;
  height:30px;
  border:1px solid var(--line);
}
.pgdots {
  color:var(--faint);
  padding:0 2px;
  font-size:12px;
}
.empty {
  padding:70px 20px;
  text-align:center;
  color:var(--sub);
}
.empty h2 {
  font-size:18px;
  color:var(--ink);
  margin-bottom:6px;
}
.empty p {
  max-width:420px;
  margin:0 auto 16px;
}

.popover {
  position:fixed;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 14px 40px #13302d26;
  z-index:60;
  min-width:220px;
  max-width:min(320px,calc(100vw - 32px));
  padding:6px;
}
.popover[hidden] {
  display:none;
}
.popover input[type=search] {
  width:100%;
  border:1px solid var(--line);
  border-radius:6px;
  padding:6px 8px;
  margin-bottom:4px;
  outline:0;
}
.opt {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:6px;
  font-size:13px;
  cursor:pointer;
  width:100%;
  border:0;
  background:none;
  text-align:left;
}
.opt:hover {
  background:var(--soft2);
}
.opt input {
  accent-color:var(--teal);
  margin:0;
}
.opt .c {
  margin-left:auto;
  font:400 11px var(--mono);
  color:var(--faint);
}
.opt.on {
  color:var(--deep);
  font-weight:600;
}
.popfoot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line2);
  margin-top:4px;
  padding:6px 4px 2px;
  font-size:11.5px;
  color:var(--sub);
}

.peek {
  position:fixed;
  z-index:65;
  width:230px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 16px 44px #13302d30;
  padding:10px;
  pointer-events:none;
}
.peek .pp {
  background:var(--paper);
  border:1px solid var(--line2);
  padding:10px 11px;
  font:7.5px/1.5 Georgia,serif;
  color:#33443f;
  height:250px;
  overflow:hidden;
  position:relative;
}
.peek .pp::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:40px;
  background:linear-gradient(transparent,var(--paper));
}
.peek .pp .h {
  font:700 6.5px Arial,sans-serif;
  letter-spacing:.06em;
  border-bottom:1px solid #4f675f;
  padding-bottom:4px;
  margin-bottom:5px;
}
.peek .pp .t {
  font:700 10px Georgia,serif;
  margin:6px 0 4px;
}
.peek .pp .f {
  font:6px Arial,sans-serif;
  color:#8a958f;
  border-top:1px solid #e3e6e2;
  margin-top:8px;
  padding-top:3px;
}
.peek .pp div+div {
  margin-top:3px;
}
.peek figcaption {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font:500 10.5px var(--mono);
  color:var(--sub);
  margin-top:7px;
}
@media (hover:none),(max-width:900px) {
  .peek {
    display:none!important;
  }
}
.spotchips {
  display:flex;
  gap:6px;
  padding:8px 14px;
  border-bottom:1px solid var(--line2);
  overflow-x:auto;
  flex:none;
  scrollbar-width:none;
}
.spotchips button {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:14px;
  padding:3px 10px;
  font-size:12px;
  color:var(--ink2);
  white-space:nowrap;
}
.spotchips button[aria-pressed=true] {
  background:var(--soft);
  border-color:var(--tealline);
  color:var(--deep);
  font-weight:600;
}
.spotres {
  overflow:auto;
  padding:6px;
  min-height:0;
  flex:1;
}
.qpanel .spotchips {
  border-top:1px solid var(--line2);
}
.qpanel .spotres {
  max-height:46dvh;
}
.qp-foot {
  flex:none;
}
@media (max-width:900px) {
  .qpanel {
    position:fixed;
    left:8px;
    right:8px;
    top:58px;
    max-height:calc(100dvh - 130px);
  }
  .qpanel .qp-foot {
    display:none;
  }
  .qpanel .spotres {
    max-height:none;
  }
}
.spotg {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:10px 10px 4px;
}
.spoti {
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 10px;
  border-radius:8px;
  cursor:pointer;
  font-size:13px;
}
.spoti .ic {
  width:20px;
  text-align:center;
  color:var(--sub);
  flex:none;
}
.spoti .tx {
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.spoti .tx small {
  color:var(--faint);
  margin-left:8px;
  font-size:12px;
}
.spoti .kd {
  font:500 11px var(--mono);
  color:var(--faint);
  flex:none;
}
.spoti.on {
  background:var(--soft2);
}
.spoti.on .kd::after {
  content:" ↵";
}

/* modal */
.scrim {
  position:fixed;
  inset:0;
  background:var(--scrim);
  z-index:70;
  display:grid;
  place-items:center;
  padding:16px;
}
.scrim[hidden] {
  display:none;
}
.modal {
  position:relative;
  background:var(--card);
  border-radius:14px;
  width:min(560px,100%);
  max-height:min(640px,calc(100dvh - 32px));
  display:flex;
  flex-direction:column;
  box-shadow:0 30px 80px #0d2b2a55;
}
.modal header {
  padding:18px 20px 12px;
  border-bottom:1px solid var(--line2);
}
.modal header h2 {
  font-size:18px;
}
.modal header p {
  color:var(--sub);
  font-size:12.5px;
  margin-top:3px;
}
.modal .mbody {
  padding:12px 20px;
  overflow:auto;
  flex:1;
  min-height:0;
}
.modal footer {
  padding:12px 20px;
  border-top:1px solid var(--line2);
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.modal footer .lft {
  margin-right:auto;
  font:500 11.5px var(--mono);
  color:var(--sub);
}
.field {
  display:flex;
  flex-direction:column;
  gap:5px;
}
.field label {
  font-size:12px;
  font-weight:600;
  color:var(--ink2);
}
.field input,.field select,.field textarea {
  border:1px solid var(--border2);
  border-radius:8px;
  padding:9px 10px;
  background:var(--card);
  outline:0;
  width:100%;
}
.field input:focus,.field select:focus,.field textarea:focus {
  border-color:var(--teal);
}
.field small {
  color:var(--faint);
  font-size:11.5px;
}
.pickrow {
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px 6px;
  border-bottom:1px solid var(--line2);
  cursor:pointer;
}
.pickrow:hover {
  background:var(--soft2);
}
.pickrow input {
  accent-color:var(--teal);
  width:16px;
  height:16px;
  margin:0;
}
.pickrow b {
  font:500 13px var(--mono);
  display:block;
}
.pickrow small {
  color:var(--sub);
  font-size:12px;
}
.pickrow .c {
  font:400 11px var(--mono);
  color:var(--faint);
  text-align:right;
}
.pickrow .cnt {
  display:grid;
  grid-template-columns:3.4ch auto 3.6ch auto;
  gap:0 5px;
  align-items:baseline;
  font-variant-numeric:tabular-nums;
}
.pickrow .cnt b {
  font-weight:600;
  color:var(--sub);
  text-align:right;
}
.pickrow .cnt i {
  font-style:normal;
  text-align:left;
}
.pickrow .cnt i:first-of-type::after {
  content:' ·';
  color:var(--faint);
}
.pickall {
  background:var(--soft2);
  border-radius:8px;
  border-bottom:0;
  margin-bottom:6px;
}

/* reader */
.reader {
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:var(--card);
  color:var(--ink);
}
.rhead {
  flex:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-bottom:1px solid var(--line);
  min-height:54px;
}
.rhead .fsw {
  flex:1 1 auto;
  min-width:200px;
  max-width:none;
}
.sumhead {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.sumhead h2 {
  font-size:19px;
  margin-right:2px;
}
.addc {
  border:1px dashed var(--border3);
  background:var(--card);
  border-radius:5px;
  font-size:11px;
  font-weight:600;
  color:var(--teal);
  padding:1px 6px;
  margin-left:8px;
  vertical-align:1px;
  cursor:pointer;
}
.addc:hover {
  background:var(--soft2);
}
.ractions {
  display:flex;
  align-items:center;
  gap:4px;
  flex:none;
}
.ractions .btn.sm {
  padding:5px 10px;
}
.ractions .act {
  height:30px;
}
.fsw {
  flex:1 1 auto;
  min-width:220px;
  position:relative;
}
.fsearch {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border3);
  border-radius:8px;
  height:36px;
  padding:0 8px 0 11px;
  background:var(--card);
}
.fsearch:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #0d5f661a;
}
.fsearch input {
  border:0;
  outline:0;
  flex:1;
  min-width:0;
  font-size:13.5px;
  background:transparent;
}
.fsearch input::-webkit-search-cancel-button {
  display:none;
}
.fnav {
  display:inline-flex;
}
.fpanel {
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 5px);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 16px 44px #13302d2e;
  z-index:35;
  overflow:hidden;
}
.fpanel .fnote {
  padding:12px 14px;
  font-size:12.5px;
  color:var(--sub);
  line-height:1.5;
}
.fpanel .fsum {
  padding:9px 14px;
  font:500 11.5px var(--mono);
  color:var(--ink2);
  border-bottom:1px solid var(--line2);
}
.fres {
  max-height:320px;
  overflow:auto;
}
.fopt {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:8px 14px;
  cursor:pointer;
  border-bottom:1px solid var(--line2);
}
.fopt:last-child {
  border-bottom:0;
}
.fopt.on {
  background:var(--soft2);
}
.fopt .fpg {
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.1;
}
.fopt .fpg small {
  font:500 9px var(--mono);
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--faint);
}
.fopt .fpg b {
  font:600 15px var(--mono);
  color:var(--ink2);
}
.fopt .ftx {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.fopt .ftx small {
  font:500 10.5px var(--mono);
  color:var(--faint);
  text-transform:uppercase;
  letter-spacing:.05em;
}
.fopt .ftx span {
  font-size:13px;
  color:var(--ink2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.fopt mark {
  background:#ffe99a;
  border-radius:2px;
  color:#1a2630;
}
.fopt .ftag {
  font:600 9.5px var(--mono);
  text-transform:uppercase;
  background:var(--infobg);
  color:var(--info);
  border-radius:4px;
  padding:2px 5px;
}
.ffoot {
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 12px;
  border-top:1px solid var(--line2);
  background:var(--card2);
  font:500 11px var(--mono);
  color:var(--sub);
  flex-wrap:wrap;
}
.ffoot .iconbtn {
  width:24px;
  height:24px;
  font-size:12px;
}
.ffoot .fchrome {
  border:0;
  background:none;
  color:var(--teal);
  font:inherit;
  padding:0;
  cursor:pointer;
}
.ffoot .fhint {
  margin-left:auto;
}
.fsearch .pos {
  font:500 11px var(--mono);
  color:var(--sub);
  white-space:nowrap;
}
.fsearch .iconbtn {
  width:24px;
  height:24px;
  font-size:12px;
}
.toggles {
  display:flex;
  gap:2px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:2px;
  background:var(--card);
}
.toggles button {
  border:0;
  background:none;
  border-radius:5px;
  font:500 11px var(--mono);
  padding:4px 8px;
  color:var(--sub);
}
.toggles button[aria-pressed=true] {
  background:var(--soft);
  color:var(--deep);
}
.rtabs-m {
  display:none;
}
.panes {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
}
.pane {
  min-height:0;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.pane.pages {
  background:var(--stagebg);
  border-right:1px solid var(--line);
}
.stage {
  flex:1;
  overflow:auto;
  --sp:22px;
  padding:var(--sp);
  min-height:0;
  display:grid;
  place-items:center;
  container-type:size;
}
.paper {
  background:var(--paper);
  width:min(100%,calc((100cqh - 2*var(--sp)) * 8.5 / 11));
  aspect-ratio:8.5/11;
  margin:0 auto;
  padding:4.8% 5.5%;
  box-shadow:0 4px 18px #23393326;
  font:2.02cqw/1.65 Georgia,'Times New Roman',serif;
  color:#24342f;
  position:relative;
  overflow:hidden;
  container-type:inline-size;
}
.paper>* {
  font-size:2.02cqw;
}
.paper .blk {
  position:relative;
  border-radius:2px;
  padding:1px 3px;
  margin:0 -3px;
}
.paper .blk+.blk {
  margin-top:6px;
}
.paper .blk.h {
  font:700 1.78cqw Arial,sans-serif;
  letter-spacing:.08em;
  border-bottom:2px solid #4f675f;
  padding-bottom:8px;
  margin-bottom:12px;
}
.paper .blk.t {
  font:700 2.75cqw Georgia,serif;
  margin:14px -3px 10px;
}
.paper .blk.f {
  font:1.62cqw Arial,sans-serif;
  color:#7c8a85;
  margin-top:28px;
  border-top:1px solid #dde1dc;
  padding-top:6px;
}
.paper .blk.tbl {
  font-size:1.94cqw;
}
.regions .paper .blk {
  box-shadow:0 0 0 1px #0d5f6655;
}
.regions .paper .blk:hover {
  background:#0d5f660f;
}
.paper .blk .bt,.paper .blk .bn {
  display:none;
  position:absolute;
  top:-8px;
  font:600 9px var(--mono);
  border-radius:3px;
  padding:0 4px;
  line-height:14px;
}
.paper .blk .bn {
  left:-14px;
  background:#24342f;
  color:#f3f4f1;
}
.paper .blk .bt {
  right:-4px;
  background:var(--soft);
  color:var(--deep);
  text-transform:uppercase;
}
.shownums .paper .blk .bn {
  display:block;
}
.showtypes .paper .blk .bt {
  display:block;
}
.hidechrome .paper .blk.h,.hidechrome .paper .blk.f {
  opacity:.18;
}
.paper .blk.lit {
  background:#ffe99a;
  box-shadow:0 0 0 3px #ffe99a;
}
.paper mark {
  background:#ffe99a;
  color:inherit;
  border-radius:2px;
}
.doctext mark {
  background:#ffe99a;
  color:#1a2630;
  border-radius:2px;
}
.paper mark.cur,.doctext mark.cur {
  background:#f2b705;
  box-shadow:0 0 0 2px #f2b705;
}
.strip {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 12px;
  border-top:1px solid var(--line);
  background:var(--stripbg);
}
.strip .iconbtn {
  width:30px;
  height:30px;
  border:1px solid var(--line);
  background:var(--card);
  flex:none;
}
.strip .iconbtn:disabled {
  opacity:.35;
}
.strip .pgdots {
  padding:0 1px;
  align-self:flex-start;
  margin-top:22px;
}
.thumb {
  border:2px solid transparent;
  background:none;
  width:50px;
  padding:2px;
  border-radius:7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  flex:none;
  cursor:pointer;
}
.thumb svg {
  width:40px;
  height:52px;
  background:var(--paper);
  border-radius:2px;
  box-shadow:0 1px 2px #0003;
  display:block;
}
.thumb .pn {
  font:500 10.5px var(--mono);
  color:var(--sub);
  line-height:1;
}
.thumb:hover {
  background:var(--hover);
}
.thumb.on {
  border-color:var(--teal);
}
.thumb.on .pn {
  color:var(--deep);
  font-weight:700;
}
.thumb.bad svg {
  background:var(--badbg);
}
.thumb.bad .pn {
  color:var(--bad);
}
@media (max-width:900px) {
  .strip {
    gap:3px;
    padding:6px 8px;
  }
  .thumb {
    width:40px;
  }
  .thumb svg {
    width:32px;
    height:42px;
  }
}
.pane.review {
  background:var(--card);
}
.rtabs {
  flex:none;
  display:flex;
  gap:18px;
  padding:0 18px;
  border-bottom:1px solid var(--line);
  overflow-x:auto;
}
.rtab {
  border:0;
  background:none;
  padding:12px 0 10px;
  font-weight:600;
  font-size:12.5px;
  color:var(--sub);
  border-bottom:2px solid transparent;
  white-space:nowrap;
}
.rtab.on {
  color:var(--deep);
  border-color:var(--teal);
}
.rtab .faint {
  font:400 11px var(--mono);
}
.rtab {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.rtab>.li {
  width:14px;
  height:14px;
  opacity:.85;
}
.rtab.on>.li {
  opacity:1;
}
.rbody {
  flex:1;
  overflow:auto;
  padding:16px 18px 30px;
  min-height:0;
}
.kv {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 18px;
}
.kv .wide {
  grid-column:1/-1;
}
.kv label {
  display:block;
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-bottom:3px;
}
.val {
  display:inline-block;
  font:500 13px var(--mono);
  border:0;
  background:none;
  padding:0;
  text-align:left;
  color:var(--ink);
  border-bottom:1px dashed var(--tealline3);
  cursor:pointer;
  line-height:1.5;
}
.val:hover {
  color:var(--teal);
}
.nf {
  font-style:italic;
  color:var(--warn);
  font-size:12.5px;
}
.sect {
  margin-top:20px;
}
.sect h3 {
  font:600 11px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:8px;
}
.sect h3 .faint {
  letter-spacing:0;
  text-transform:none;
}
.items {
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
}
.item {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));
  gap:10px;
  padding:10px 12px;
  border-top:1px solid var(--line2);
  font-size:12.5px;
  align-items:start;
}
.item:first-child {
  border-top:0;
}
.item.h {
  background:var(--card2);
  font:600 10px var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--faint);
}
.item .k {
  display:none;
}
.callout {
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:var(--amberbg);
  border:1px solid var(--calloutline);
  border-radius:9px;
  padding:10px 12px;
  font-size:12.5px;
  color:var(--amberink);
  margin-bottom:14px;
}
.callout b {
  color:var(--amberink);
}
.callout.info {
  background:var(--soft2);
  border-color:var(--tealline2);
  color:var(--ink2);
}
.doctext {
  font:12.5px/1.7 var(--mono);
  color:var(--ink2);
}
.doctext .pg {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin:14px 0 6px;
  display:flex;
  justify-content:space-between;
}
.doctext>:first-child>.pg:first-child,.doctext>.pg:first-child {
  margin-top:0;
}
.doctext p {
  padding:3px 6px;
  border-radius:4px;
  margin:0 -6px;
  cursor:pointer;
}
.doctext p[data-block-key]:not(.lit):hover {
  background:var(--soft2);
}
/* a row, never a <p> in its block; a lit row stays lit */
.doctext p.lit {
  background:var(--litbg);
}
.doctext p .bn {
  font-size:10px;
  color:var(--faint);
  margin-right:8px;
}
.deliv {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.drow {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 11px;
  font-size:12.5px;
}
.drow small {
  display:block;
  color:var(--sub);
  font-size:11.5px;
}
.kind {
  font:600 10px var(--mono);
  text-transform:uppercase;
  letter-spacing:.06em;
  background:var(--soft2);
  color:var(--deep);
  border-radius:4px;
  padding:3px 6px;
}
.trail {
  display:flex;
  flex-direction:column;
  gap:0;
  border-left:2px solid var(--line);
  margin-left:6px;
  padding-left:14px;
}
.trail div {
  position:relative;
  padding:4px 0 8px;
  font-size:12.5px;
}
.trail div::before {
  content:"";
  position:absolute;
  left:-20px;
  top:9px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--card);
  border:2px solid var(--teal);
  box-sizing:content-box;
}
.trail small {
  display:block;
  font:400 11px var(--mono);
  color:var(--faint);
}

.rwrap {
  flex:1;
  min-height:0;
  display:flex;
}
.rwrap .panes {
  flex:1;
  min-width:0;
}
.rchat {
  width:360px;
  flex:none;
  border-left:1px solid var(--line);
  display:flex;
  flex-direction:column;
  background:var(--card);
  min-height:0;
}
.cites {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  margin-top:6px;
}
.btn.on {
  background:var(--soft);
  border-color:var(--tealline);
  color:var(--deep);
}
@media (max-width:900px) {
  .rchat {
    position:fixed;
    inset:0;
    width:auto;
    z-index:76;
    border:0;
    padding-top:env(safe-area-inset-top,0px);
  }
}
.pane.pages {
  position:relative;
}
.stagectl {
  position:absolute;
  top:10px;
  right:14px;
  z-index:5;
  opacity:0;
  transition:opacity .15s;
}
.pane.pages:hover .stagectl,.pane.pages:focus-within .stagectl {
  opacity:1;
}
.stagectl button {
  display:inline-flex;
  gap:6px;
  align-items:center;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:7px;
  padding:4px 9px;
  font-size:12px;
  color:var(--ink2);
  box-shadow:0 4px 14px #13302d1a;
}
.stagectl button[aria-pressed=false] {
  color:var(--sub);
}
.proc {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--warn);
  background:var(--warnbg);
  border-radius:5px;
  padding:2px 7px;
  white-space:nowrap;
  font-weight:600;
}
.proc .pl {
  font-weight:500;
  color:var(--amberink);
}
.sw {
  width:11px;
  height:11px;
  border:1.6px solid currentColor;
  border-radius:50%;
  position:relative;
  flex:none;
}
.sw::after {
  content:"";
  position:absolute;
  left:50%;
  top:1px;
  width:1.4px;
  height:4px;
  background:currentColor;
  transform-origin:50% 100%;
  animation:sweep 2s linear infinite;
}
@keyframes sweep {
  to {
    transform:rotate(360deg);
  }
}
.proccard {
  border:1px solid var(--calloutline);
  background:var(--amberbg);
  border-radius:11px;
  padding:14px;
  margin-bottom:16px;
}
.pc-top {
  display:flex;
  gap:12px;
  align-items:center;
}
.pc-clock {
  font:700 26px var(--disp);
  color:var(--warn);
  min-width:68px;
}
.pc-top b {
  display:block;
}
.pc-top small {
  display:block;
  color:var(--sub);
  font-size:12.5px;
}
.psteps {
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.psteps li {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  color:var(--faint);
}
.psteps li small {
  margin-left:auto;
  color:var(--sub);
}
.psteps .pi {
  width:10px;
  height:10px;
  border-radius:50%;
  border:1.6px solid currentColor;
  flex:none;
}
.psteps li.done {
  color:var(--ok);
}
.psteps li.done .pi {
  background:currentColor;
}
.psteps li.cur {
  color:var(--warn);
  font-weight:600;
}
.psteps li.cur .pi {
  border-color:currentColor;
  box-shadow:0 0 0 3px #f7c94855;
}
.sumtext {
  font-size:14.5px;
  line-height:1.5;
  color:var(--ink);
  margin-bottom:16px;
}
.acc {
  border:1px solid var(--line);
  border-radius:10px;
  margin-top:12px;
  padding:0 12px;
}
.acc summary {
  cursor:pointer;
  padding:10px 0;
  font-weight:600;
  font-size:13px;
  list-style:none;
  display:flex;
  align-items:center;
  gap:8px;
}
.acc summary::-webkit-details-marker {
  display:none;
}
.acc summary::before {
  content:"›";
  color:var(--faint);
  transition:transform .15s;
  display:inline-block;
}
.acc[open] summary::before {
  transform:rotate(90deg);
}
.acc[open] {
  padding-bottom:12px;
}
.dtbar {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.doctext p .bn,.doctext p .bty {
  display:none;
  font-size:10px;
  color:var(--faint);
  margin-right:8px;
}
.doctext.dt-nums p .bn {
  display:inline;
}
.doctext.dt-types p .bty {
  display:inline;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.doctext.dt-nochrome p.c-h,.doctext.dt-nochrome p.c-f {
  display:none;
}
@media (hover:none),(max-width:900px) {
  .stagectl {
    opacity:1;
  }
}
@media (max-width:900px) {
  .stagectl {
    position:static;
    display:flex;
    justify-content:flex-end;
    padding:8px 10px 0;
  }
  .stagectl button {
    box-shadow:none;
  }
  .setbody,.rows,.side-scroll {
    scrollbar-width:none;
  }
  .setbody::-webkit-scrollbar,.rows::-webkit-scrollbar {
    display:none;
  }
}
.shell.ai .mail-only {
  display:none!important;
}
.shell:not(.ai) .ai-only {
  display:none!important;
}
.convs {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
  flex:1 1 auto;
}
.convhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 4px 0 10px;
}
.convsearch {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  height:36px;
  padding:0 10px;
}
.convsearch input {
  border:0;
  outline:0;
  flex:1;
  min-width:0;
  background:transparent;
  font-size:13px;
}
.convlist {
  overflow:auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  scrollbar-width:thin;
}
.conv {
  display:block;
  width:100%;
  text-align:left;
  border:0;
  background:none;
  border-radius:7px;
  padding:6px 10px;
}
.conv:hover {
  background:var(--hover);
}
.conv b {
  display:block;
  font-size:13px;
  font-weight:500;
  color:var(--ink2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.conv small {
  display:block;
  font-size:11px;
  color:var(--faint);
}
.conv.on {
  background:var(--tealbg2);
}
.conv.on b {
  color:var(--ink);
}
.shell.rail .convs {
  display:none!important;
}
.aiview {
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:var(--card);
}
.aihead {
  flex:none;
  display:flex;
  align-items:center;
  gap:6px;
  height:var(--top);
  padding:0 18px 0 24px;
  border-bottom:1px solid var(--line);
}
.aihead h1 {
  font-size:16px;
  font-family:var(--sans);
  font-weight:600;
  letter-spacing:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.convtitlein {
  font:600 16px var(--sans);
  border:1px solid var(--teal);
  border-radius:7px;
  padding:5px 9px;
  min-width:0;
  width:min(420px,60%);
  outline:0;
}
.aihead .spacer {
  flex:1;
}
.aiburger {
  display:none;
}
@media (max-width:900px) {
  .aiburger {
    display:grid;
  }
}
.aihead .iconbtn {
  color:var(--sub);
}
.aihead .iconbtn.danger {
  color:var(--bad);
}
.aimsgs {
  flex:1;
  overflow:auto;
  min-height:0;
  padding:22px max(16px,calc((100% - 860px)/2)) 10px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.aiempty {
  text-align:center;
  color:var(--sub);
  font-size:13.5px;
  max-width:640px;
  margin:8px auto 0;
  line-height:1.55;
}
.aimsgs .bub {
  max-width:78%;
}
.aimsgs .bub.ai p+p {
  margin-top:6px;
}
.aimsgs .bub.typing {
  color:var(--faint);
  letter-spacing:2px;
}
.propose {
  border:1px solid var(--tealline2);
  background:var(--card);
  border-radius:10px;
  margin-top:8px;
  overflow:hidden;
  color:var(--ink2);
}
.propose .ph {
  padding:8px 12px;
  background:var(--soft2);
  font-size:12px;
  font-weight:600;
  color:var(--deep);
  display:flex;
  gap:8px;
  align-items:center;
}
.propose .pb {
  padding:10px 12px;
  font-size:13px;
}
.propose table {
  border-collapse:collapse;
  width:100%;
  font-size:12.5px;
  margin-top:4px;
}
.propose td,.propose th {
  padding:4px 8px 4px 0;
  text-align:left;
  border-bottom:1px solid var(--line2);
}
.propose th {
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--faint);
}
.propose .pf {
  display:flex;
  gap:6px;
  padding:8px 12px;
  border-top:1px solid var(--line2);
  align-items:center;
}
.propose .pf .st {
  margin-left:auto;
}
.aicomp {
  flex:none;
  padding:8px max(16px,calc((100% - 920px)/2)) calc(10px + env(safe-area-inset-bottom,0px));
}
.composer {
  border:1.5px solid var(--teal);
  border-radius:14px;
  padding:12px 12px 10px 16px;
  background:var(--card);
  box-shadow:0 0 0 4px #0d5f6614;
}
.composer textarea {
  width:100%;
  border:0;
  outline:0;
  resize:none;
  font-size:14px;
  line-height:1.5;
  background:transparent;
  min-height:44px;
  max-height:200px;
}
.crow {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:4px;
}
.crow .spacer {
  flex:1;
}
.clip {
  color:var(--sub);
  cursor:pointer;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:7px;
}
.clip:hover {
  background:var(--soft2);
  color:var(--ink2);
}
.ftypes {
  font-size:11.5px;
  color:var(--sub);
  font-weight:600;
}
.sendc {
  width:38px;
  height:38px;
  border-radius:50%;
  border:0;
  background:var(--teal);
  color:var(--onteal);
  display:grid;
  place-items:center;
}
.sendc:hover {
  background:var(--deep);
}
.attached {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:4px 0;
}
.attached span {
  font-size:12px;
  background:var(--soft2);
  border-radius:6px;
  padding:3px 8px;
  color:var(--deep);
  display:inline-flex;
  gap:6px;
  align-items:center;
}
.attached button {
  border:0;
  background:none;
  color:var(--sub);
  padding:0;
  cursor:pointer;
}
.aihint {
  text-align:center;
  font-size:11.5px;
  color:var(--sub);
  margin-top:6px;
  font-weight:600;
}
@media (max-width:900px) {
  .aihead {
    height:52px;
    padding:0 10px 0 6px;
  }
  .aihead h1 {
    font-size:14px;
    line-height:1.25;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .aimsgs .bub {
    max-width:90%;
  }
  .aihint {
    display:none;
  }
}
/* settings */
.setwrap {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  background:var(--card);
}
.setnav {
  border-right:1px solid var(--line);
  overflow:auto;
  padding:14px 10px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:var(--card2);
}
.setnav .navbtn {
  font-size:12.5px;
  padding:6px 10px;
}
/* nav fix: "sub" items in the settings nav keep the 18px icon box so labels line up with siblings (was 4px left on desktop, 48px indented in the phone drawer) */
.setnav .navbtn.sub .ic,.side-set .navbtn.sub .ic {
  width:18px;
}
.side-set .navbtn.sub {
  padding-left:10px;
  font-size:13px;
}
.grp>.navbtn .chev {
  margin-left:6px;
  transition:transform .15s;
}
.grp.open>.navbtn .chev {
  transform:rotate(90deg);
}
.setsel {
  display:none;
}
.setmain {
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
}
.sethead {
  flex:none;
  padding:8px 20px;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:8px;
  align-items:center;
  min-height:48px;
  background:var(--card2);
}
.sethead .t {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.sethead .t p {
  color:var(--sub);
  font-size:12.5px;
  max-width:70ch;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1 1 240px;
  min-width:0;
}
.sethead .t .fbtn {
  flex:none;
}
.sethead .btn {
  padding:6px 11px;
}
.split {
  display:inline-flex;
}
.split .btn:first-child {
  border-radius:8px 0 0 8px;
}
.split .splitdd {
  border-radius:0 8px 8px 0;
  border-left:1px solid #ffffff55;
  padding:6px 8px;
}
.crumb {
  font:500 11px var(--mono);
  color:var(--faint);
  margin-bottom:4px;
}
.crumb button {
  border:0;
  background:none;
  padding:0;
  color:var(--teal);
  font:inherit;
}
.minisearch {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:7px;
  height:30px;
  padding:0 9px;
  background:var(--card);
  width:260px;
  max-width:100%;
}
.minisearch input {
  border:0;
  outline:0;
  flex:1;
  min-width:0;
  font-size:12.5px;
  background:transparent;
  padding:1px 2px;
}
.setbody {
  flex:1;
  overflow:auto;
  min-height:0;
  container-type:inline-size;
}
.tbl {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.tbl th {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  text-align:left;
  padding:9px 12px;
  border-bottom:1px solid var(--line);
  background:var(--card2);
  position:sticky;
  top:0;
  z-index:1;
  white-space:nowrap;
}
.tbl td {
  padding:9px 12px;
  border-bottom:1px solid var(--line2);
  vertical-align:middle;
}
.tbl tr.click {
  cursor:pointer;
}
.tbl tr.click:hover td {
  background:var(--hover2);
}
.tbl td.mono,.tbl td .mono {
  font-size:12.5px;
}
.tbl .first {
  padding-left:20px;
}
.tbl .last {
  padding-right:20px;
  text-align:right;
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  font-weight:600;
  border-radius:12px;
  padding:2px 8px;
  background:var(--pillbg);
  color:var(--pillink);
  white-space:nowrap;
  margin:1px 2px 1px 0;
}
.pill.ok {
  background:var(--okbg);
  color:var(--ok);
}
.pill.off {
  background:var(--pilloffbg);
  color:var(--pilloffink);
}
.pill.teal {
  background:var(--soft);
  color:var(--deep);
}
.pill.fboth {
  padding:0 8px;
  margin:0 0 0 5px;
  line-height:16px;
  flex:none;
}
.bp-lb>.fboth {
  align-self:center;
  margin:2px 0 0;
}
.wai-chip>.fboth {
  overflow:visible;
}
.pill.sys {
  background:var(--amberbg);
  color:var(--amberink);
}
.role {
  font:500 11px var(--mono);
  color:var(--sub);
}
.cards {
  padding:16px 20px;
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
.card {
  display:block;
  border:1px solid var(--line);
  border-radius:11px;
  padding:16px;
  background:var(--card);
}
.card h3 {
  font-size:15px;
}
.card p {
  color:var(--sub);
  font-size:12.5px;
  margin-top:4px;
}
.stat {
  font:700 26px var(--disp);
  color:var(--deep);
  margin-top:6px;
}
.pad {
  padding:16px 20px;
  display:flex;
  flex-direction:column;
  gap:16px;
  max-width:980px;
}

/* document flows (Go 05-flows / 06-integrations) */
.fgrow {
  flex:1;
  min-width:0;
}
.ftr {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fmeta {
  font-size:12px;
  color:var(--sub);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.funsaved {
  font-size:11.5px;
  font-weight:600;
  color:var(--amberink);
  background:var(--amberbg);
  border-radius:10px;
  padding:2px 8px;
  white-space:nowrap;
}
.fwrap {
  max-width:980px;
  padding:14px 20px 40px;
}
.fstack {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.fspacer {
  width:30px;
  flex:none;
}
.fexp {
  width:30px;
  height:30px;
  color:var(--faint);
}
.fexp svg {
  transition:transform .15s;
}
.fexp.on svg {
  transform:rotate(90deg);
}
.flink {
  flex:1;
  min-width:0;
  border:0;
  background:none;
  text-align:left;
  padding:4px 6px;
  border-radius:6px;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.flink b {
  font-size:13.5px;
  color:var(--ink);
}
.flink b.muted {
  color:var(--sub);
}
.fdesc {
  font-size:12.5px;
  color:var(--sub);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ftags {
  font-size:11.5px;
  color:var(--faint);
}
.fgen {
  color:var(--teal);
  font-weight:600;
}
.fonoff {
  font-size:11.5px;
  color:var(--faint);
  white-space:nowrap;
  margin-right:4px;
}
.fonoff.on {
  color:var(--ok);
}
.iconbtn:hover:not(:disabled) {
  background:var(--soft2);
  border-color:var(--line);
}
.iconbtn:disabled {
  opacity:.35;
}
.iconbtn.danger {
  color:var(--bad);
}
.fdests {
  list-style:none;
  margin:0;
  padding:2px 10px 8px calc(40px + var(--d,0)*22px);
}
.fcard .fdests,.fflow-body .fdests {
  padding:0;
}
.flink2 {
  width:100%;
  border:0;
  background:none;
  display:flex;
  gap:10px;
  align-items:baseline;
  padding:6px 8px;
  border-radius:6px;
  text-align:left;
  font-size:12.5px;
}
.flink2:hover {
  background:var(--soft2);
}
.flink2 b {
  font-weight:600;
  white-space:nowrap;
}
.flink2 span {
  color:var(--sub);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.flinkt {
  border:0;
  background:none;
  padding:0;
  color:var(--teal);
  font:inherit;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
.fcard {
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.fcard h3 {
  font-size:14.5px;
}
.fcard-head {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.fcard-head h3 {
  flex:1;
  min-width:0;
}
.fsub {
  font-size:12px;
  font-weight:600;
  color:var(--sub);
}
.fnote2 {
  font-size:12px;
  color:var(--sub);
  margin:0;
}
.flabel {
  font-size:12.5px;
  font-weight:600;
  color:var(--ink2);
}
.fsw2 {
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
}
.fsw2 .switch {
  width:36px;
  height:20px;
}
.fsw2 .switch::after {
  width:16px;
  height:16px;
}
.fsw2 .switch[aria-checked=true]::after {
  left:18px;
}
.switch:disabled {
  opacity:.45;
}
.btn.pri:disabled {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
  opacity:.4;
}
.fcard>.btn,.fcard .field+.btn {
  align-self:flex-start;
}
.fcard .field input:disabled,.fcard .field textarea:disabled,.fcode:disabled,.fcode[readonly] {
  background:var(--card2);
  color:var(--sub);
  cursor:default;
}
.fcode {
  width:100%;
  border:1px solid var(--border2);
  border-radius:8px;
  padding:10px 12px;
  font:12.5px/1.55 var(--code);
  background:var(--card2);
  color:var(--ink);
  resize:vertical;
  outline:0;
}
.fcode:focus {
  border-color:var(--teal);
  background:var(--card);
}
.fflows {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  counter-reset:fl;
}
.fflow {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  overflow:hidden;
}
.fflow.off .fflow-head b {
  color:var(--sub);
}
.fflow-head {
  display:flex;
  align-items:center;
  gap:2px;
  padding:4px 6px 4px 4px;
  background:var(--card2);
}
.fflow-head.ro {
  padding:4px 6px 4px 4px;
  border-bottom:1px solid var(--line2);
}
.fflow.closed .fchain {
  display:none;
}
.fflow.closed .fflow-head.ro {
  border-bottom:0;
}
.fflow-head small {
  font-size:11.5px;
  color:var(--faint);
}
.fflow-head .iconbtn {
  width:30px;
  height:30px;
  font-size:14px;
}
.fflow-toggle {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:none;
  text-align:left;
  padding:6px;
  border-radius:7px;
}
.fflow-toggle:hover {
  background:var(--soft2);
}
.fflow-toggle>span:last-child {
  min-width:0;
  flex:1;
}
.fflow-toggle b {
  font-size:13px;
}
.fchev {
  color:var(--faint);
  display:grid;
  place-items:center;
  transition:transform .15s;
}
.fchev.on {
  transform:rotate(90deg);
}
.fflow-body {
  border-top:1px solid var(--line2);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.farr {
  color:var(--faint);
  text-align:center;
  padding-top:30px;
}
.fpicker h4 {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin:0 0 6px;
}
.fpicker h4 .faint {
  text-transform:none;
  letter-spacing:0;
  font-family:var(--sans);
}
.fpsearch {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:7px;
  height:30px;
  padding:0 8px;
  margin-bottom:4px;
}
.fpsearch input {
  border:0;
  outline:0;
  flex:1;
  min-width:0;
  font-size:12.5px;
  background:transparent;
  padding:1px 2px;
  width:auto;
}
.fpsearch:focus-within {
  border-color:var(--teal);
}
.fplist {
  border:1px solid var(--line2);
  border-radius:8px;
  max-height:212px;
  overflow:auto;
  padding:3px;
}
.fpick {
  width:100%;
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  background:none;
  padding:5px 6px 5px calc(6px + var(--d,0)*14px);
  border-radius:6px;
  text-align:left;
  font-size:12.5px;
  color:var(--ink2);
  min-height:30px;
}
.fpick:hover {
  background:var(--soft2);
}
.fpick .ftr {
  flex:1;
  min-width:0;
}
.fpcheck {
  width:16px;
  height:16px;
  border:1.5px solid var(--border4);
  border-radius:4px;
  display:grid;
  place-items:center;
  font-size:10px;
  color:transparent;
  flex:none;
}
.fpick[aria-pressed=true] {
  color:var(--ink);
  font-weight:600;
}
.fpick[aria-pressed=true] .fpcheck,.fchoice[aria-pressed=true] .fpcheck {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.fpmeta {
  font-size:10.5px;
  color:var(--faint);
  font-weight:500;
}
.fchain {
  display:grid;
  grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr);
  gap:6px;
  padding:10px 12px;
  align-items:start;
}
.fchain small {
  display:block;
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-bottom:5px;
}
.fchain .farr {
  padding-top:20px;
}
.fchain>div {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  font-size:12.5px;
}
.fchip {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:7px;
  padding:4px 8px;
  font-size:12.5px;
  color:var(--ink2);
  text-align:left;
  display:inline-flex;
  gap:6px;
  align-items:center;
  max-width:100%;
}
.fchip:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.ftabs {
  display:flex;
  gap:2px;
  border-bottom:1px solid var(--line);
  overflow-x:auto;
  scrollbar-width:none;
  margin-bottom:-2px;
}
.ftabs button {
  border:0;
  background:none;
  padding:8px 12px;
  font-weight:600;
  font-size:12.5px;
  color:var(--sub);
  border-bottom:2px solid transparent;
  white-space:nowrap;
}
.ftabs button.on {
  color:var(--teal);
  border-bottom-color:var(--teal);
}
.fmodes {
  display:inline-flex;
  border:1px solid var(--line);
  border-radius:7px;
  padding:2px;
  gap:2px;
}
.fmodes button {
  border:0;
  background:none;
  border-radius:5px;
  padding:3px 10px;
  font-size:12px;
  font-weight:600;
  color:var(--sub);
}
.fmodes button[aria-pressed=true] {
  background:var(--soft);
  color:var(--deep);
}
.fmodes a {
  border:0;
  background:none;
  border-radius:5px;
  padding:3px 10px;
  font-size:12px;
  font-weight:600;
  color:var(--sub);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.fmodes a[aria-pressed=true] {
  background:var(--soft);
  color:var(--deep);
}
/* clip, not hidden: a focused control must not scroll the list sideways */
.ffields {
  border:1px solid var(--line2);
  border-radius:8px;
  overflow:clip;
  container-type:inline-size;
}
.ffield {
  display:grid;
  grid-template-columns:minmax(120px,1fr) 70px minmax(0,1.6fr);
  gap:10px;
  padding:7px 10px 7px calc(10px + var(--d,0)*18px);
  font-size:12.5px;
  border-top:1px solid var(--line2);
}
.ffield.h {
  border-top:0;
  background:var(--card2);
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
}
.ffield .fk {
  font-family:var(--code);
  font-size:12px;
  color:var(--ink);
}
.ffield .ft {
  color:var(--teal);
  font-size:12px;
}
.ffield .fdsc {
  color:var(--sub);
}
/* narrow, on the phone or in a narrow panel: the description on a line of its own */
@container (max-width:400px) {
  .ffield {
    grid-template-columns:minmax(0,1fr) 60px;
    row-gap:0;
  }
  .ffield .fdsc {
    grid-column:1/-1;
    margin-top:-8px;
  }
  .ffield.h .fdsc,.ffield.h span:last-child {
    display:none;
  }
}
.vprev {
  border:1px solid var(--line2);
  border-radius:9px;
  background:var(--card2);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.vtabs {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}
.vtabs button {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:14px;
  padding:3px 11px;
  font-size:12px;
  color:var(--ink2);
}
.vtabs button.on {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.vcard {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:9px;
  padding:10px 12px;
}
.vcard h5 {
  font-size:12.5px;
  margin:0 0 8px;
}
.vrow {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:10px;
}
.vrow+.vrow {
  margin-top:8px;
}
.vrow label {
  display:block;
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
}
.vrow span {
  font-size:12.5px;
}
.vtbl {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.vtbl th {
  text-align:left;
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:4px 6px;
  border-bottom:1px solid var(--line);
}
.vtbl td {
  padding:5px 6px;
  border-bottom:1px solid var(--line2);
}
.fkeys {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.fkey {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font:12px var(--code);
  background:var(--soft2);
  border:1px solid var(--tealline2);
  border-radius:6px;
  padding:2px 4px 2px 8px;
}
.fkey button {
  border:0;
  background:none;
  color:var(--sub);
  font-size:11px;
  padding:1px 4px;
  border-radius:4px;
}
.fkey button:hover {
  background:var(--tealbg2);
}
.fkeyadd {
  display:flex;
  gap:6px;
  margin-top:4px;
}
.fkeyadd input {
  flex:1;
  min-width:0;
  max-width:260px;
  border:1px solid var(--border2);
  border-radius:8px;
  padding:6px 9px;
  font:12.5px var(--code);
  outline:0;
}
.fkeyadd input:focus {
  border-color:var(--teal);
}
.fsms {
  margin:0;
  border:1px solid var(--line2);
  border-radius:10px;
  padding:10px 12px;
  background:var(--card2);
}
.fsms figcaption {
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-bottom:6px;
}
.fsms p {
  margin:0;
  background:var(--tealbg2);
  border-radius:14px 14px 14px 4px;
  padding:8px 11px;
  font-size:12.5px;
  max-width:340px;
}
.ffacts {
  margin:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
}
.ffacts dt {
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
}
.ffacts dd {
  margin:2px 0 0;
  font-size:12.5px;
  word-break:break-word;
}
.fchoices {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;
}
.fchoice {
  position:relative;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:10px;
  padding:10px 12px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.fchoice b {
  font-size:13px;
}
.fchoice small {
  font-size:12px;
  color:var(--sub);
}
.fchoice .fpcheck {
  position:absolute;
  top:10px;
  right:10px;
}
.fchoice[aria-pressed=true] {
  border-color:var(--teal);
  box-shadow:0 0 0 2px #0d5f661a;
}
@media (max-width:900px) {
  .fwrap {
    padding:12px 12px 90px;
  }
  .fchain {
    grid-template-columns:minmax(0,1fr);
  }
  .farr {
    transform:rotate(90deg);
    padding:0;
    height:12px;
    line-height:12px;
  }
  .fchain .farr {
    padding:0;
  }
  .fonoff {
    display:none;
  }
  .fdesc {
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .sethead .fmeta {
    display:none;
  }
  .sethead .bl,.ctbl .bl {
    display:none;
  }
  .ctbl td.first,.ctbl th.first {
    width:28px;
    padding-right:0;
  }
  .fsms p {
    max-width:none;
  }
}
/* flows */
.flowedit .fflow-head {
  display:none;
}
.flowedit .fflow {
  border:0;
  border-radius:0;
}
.flowedit .fflow-body {
  padding-top:0;
}
.ulist {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.ulist li {
  display:flex;
  align-items:center;
  gap:6px;
}
.ulist .flink {
  flex:1;
}
.fpickrow {
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  cursor:pointer;
  text-align:left;
  width:100%;
}
.fpickrow:hover {
  background:var(--hover);
}
.fpickrow b {
  display:block;
  font-size:13px;
}
.fpickrow small {
  display:block;
  font-size:11.5px;
  color:var(--sub);
}
.fpickrow .fgrow {
  min-width:0;
}
.fnewrow {
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
}
.fnewrow input {
  flex:1;
}
.flowviz {
  margin-top:8px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  background:var(--card2);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.flowviz .chain {
  flex-wrap:wrap;
}
.intpills {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.intpill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 6px 4px 10px;
  background:var(--card);
  font-size:12.5px;
  position:relative;
  cursor:default;
}
.intpill.off {
  color:var(--faint);
  border-style:dashed;
}
.intpill.off b {
  text-decoration:line-through;
}
.intpill b {
  font-weight:600;
}
.intpill .switch {
  transform:scale(.8);
  margin:-3px;
}
.intpill[data-tip]::after {
  content:attr(data-tip);
  position:absolute;
  left:0;
  bottom:calc(100% + 8px);
  width:max-content;
  max-width:260px;
  padding:7px 10px;
  border-radius:8px;
  background:var(--ink);
  color:var(--card);
  font:12px/1.4 var(--sans);
  box-shadow:0 8px 24px #0004;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s;
  z-index:5;
}
.intpill:hover::after,.intpill:focus-within::after {
  opacity:1;
}
.sfcheck {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  color:var(--ink);
  cursor:pointer;
  user-select:none;
}
.sfcheck input {
  width:16px;
  height:16px;
  accent-color:var(--teal);
  margin:0;
}
.sfcheck.locked {
  color:var(--ink2);
}
.sfcheck.locked input {
  opacity:.7;
}
.infotip {
  position:relative;
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  color:var(--faint);
  cursor:help;
}
.infotip:hover,.infotip:focus-visible,.infotip.on {
  color:var(--teal);
  outline:0;
}
.infotip::after {
  content:attr(data-tip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%);
  width:260px;
  padding:8px 10px;
  border-radius:8px;
  background:var(--ink);
  color:var(--card);
  font:12px/1.4 var(--sans);
  text-align:left;
  box-shadow:0 8px 24px #0004;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s;
  z-index:5;
}
.infotip:hover::after,.infotip:focus-visible::after,.infotip.on::after {
  opacity:1;
}
@media (max-width:600px) {
  .infotip::after {
    left:auto;
    right:-8px;
    transform:none;
  }
}
/* ---------- template blueprint: numbers → template → one lane per flow (document type → extractor → integrations) ---------- */
:root {
  --lc-green:#1f6b4c;
  --lc-blue:#3a5a92;
  --lc-amber:#a8620c;
  --lc-violet:#6a4a8a;
  --lc-teal:#27637a;
  --lc-red:#8c3b2e;
  --lc-olive:#66751c;
  --lc-other:#718080;
  --lc-out:#3d6a8c;
  --wire:#b9c7c4;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --lc-green:#8fd3ad;
    --lc-blue:#9fb6ea;
    --lc-amber:#e8b878;
    --lc-violet:#c9aee6;
    --lc-teal:#8cc4de;
    --lc-red:#eaa093;
    --lc-olive:#c3cf7f;
    --lc-other:#9fb0ac;
    --lc-out:#7fb6e0;
    --wire:#41545a;
  }
}
:root[data-theme="dark"] {
  --lc-green:#8fd3ad;
  --lc-blue:#9fb6ea;
  --lc-amber:#e8b878;
  --lc-violet:#c9aee6;
  --lc-teal:#8cc4de;
  --lc-red:#eaa093;
  --lc-olive:#c3cf7f;
  --lc-other:#9fb0ac;
  --lc-out:#7fb6e0;
  --wire:#41545a;
}
.bpc-green {
  --lc:var(--lc-green);
}
.bpc-blue {
  --lc:var(--lc-blue);
}
.bpc-amber {
  --lc:var(--lc-amber);
}
.bpc-violet {
  --lc:var(--lc-violet);
}
.bpc-teal {
  --lc:var(--lc-teal);
}
.bpc-red {
  --lc:var(--lc-red);
}
.bpc-olive {
  --lc:var(--lc-olive);
}
.bpc-other {
  --lc:var(--lc-other);
}
.bpc-out {
  --lc:var(--lc-out);
}
.fmodes button {
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.fmodes button .li {
  width:13px;
  height:13px;
}
.bpwrap {
  padding:16px 20px 48px;
  max-width:1240px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.bpintro {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card2);
  padding:14px 16px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  align-items:flex-end;
}
.bpintro>div:first-child {
  flex:1 1 420px;
  min-width:0;
}
.bpintro h2 {
  font-size:17px;
}
.bpintro p {
  font-size:12.5px;
  color:var(--sub);
  margin-top:4px;
  max-width:78ch;
}
.bplegend {
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  font-size:11.5px;
  color:var(--sub);
  margin-top:10px;
}
.bplegend>span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.bplg {
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid var(--lc-other);
  background:var(--card);
  display:inline-block;
  flex:none;
}
.bplg.num,.bplg.tpl {
  border:0;
  border-radius:4px;
  display:inline-grid;
  place-items:center;
  background:var(--soft);
  color:var(--teal);
}
.bplg.tpl {
  background:var(--teal);
  color:var(--onteal);
}
.bplg .li {
  width:10px;
  height:10px;
}
.bplg.dt {
  background:var(--lc-green);
  border-color:var(--lc-green);
}
.bplg.ex {
  border-color:var(--lc-green);
}
.bplg.man {
  border-color:var(--warn);
}
.bplg.off {
  border-style:dashed;
  border-color:var(--border5);
}
.bpsel {
  border:1px solid var(--border2);
  border-radius:8px;
  padding:6px 8px;
  background:var(--card);
  font-size:12.5px;
  min-width:0;
  flex:1;
  height:32px;
}
.bpsel:focus {
  border-color:var(--teal);
  outline:0;
}
.bpcards {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.bpcard {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  display:flex;
  flex-direction:column;
  container-type:inline-size;
  min-width:0;
}
.bpcard:hover {
  border-color:var(--border3);
}
.bpcard-h {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 8px 6px 14px;
}
.bpbx {
  width:30px;
  height:30px;
  border-radius:8px;
  background:var(--soft);
  color:var(--teal);
  display:grid;
  place-items:center;
  flex:none;
}
.bpcard-t {
  border:0;
  background:none;
  padding:0;
  font:700 15px var(--disp);
  letter-spacing:-.01em;
  color:var(--ink);
  text-align:left;
}
.bpcard-t:hover {
  color:var(--teal);
}
.bpcard-h p {
  font-size:12.5px;
  color:var(--sub);
  margin-top:1px;
}
.bpcard-h .ftags {
  display:block;
  margin-top:2px;
}
.bpcard-h .iconbtn {
  width:30px;
  height:30px;
}
.bpcard-f {
  display:flex;
  gap:6px;
  padding:8px 14px 12px;
  align-items:center;
  border-top:1px solid var(--line2);
  margin-top:auto;
}
.bpm {
  border:0;
  background:none;
  text-align:left;
  padding:8px 14px 14px;
  display:grid;
  grid-template-columns:minmax(0,96px) 18px minmax(0,86px) 18px minmax(0,1fr);
  align-items:start;
  width:100%;
  color:var(--ink2);
  font-size:11.5px;
  border-radius:0;
}
.bpm:hover {
  background:var(--hover2);
}
.bpm-h {
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-bottom:5px;
}
.bpm-nums {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.bpm-num {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  color:var(--ink2);
}
.bpm-num>span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bpm-num .li {
  color:var(--teal);
  width:11px;
  height:11px;
}
.bpm-more {
  color:var(--faint);
  font-size:11px;
}
.bpm-arr {
  color:var(--faint);
  text-align:center;
  line-height:18px;
}
.bpm-sorter {
  border:1.5px solid var(--teal);
  border-radius:8px;
  background:var(--soft2);
  padding:4px 7px;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.bpm-sorter b {
  font-size:12px;
  color:var(--ink);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bpm-sorter small {
  font-size:10.5px;
  color:var(--sub);
}
.bpm-lanes {
  display:flex;
  flex-direction:column;
  gap:5px;
  border-left:2px solid var(--wire);
  padding:2px 0;
  min-width:0;
}
.bpm-lane {
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  height:18px;
}
.bpm-lane::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  border-top:2px solid var(--lc);
  transform:translateY(-1px);
}
.bpm-lane>* {
  position:relative;
}
.bpm-dt {
  margin-left:8px;
  background:var(--card);
  border:1.5px solid var(--lc);
  color:var(--ink);
  font-weight:600;
  font-size:11px;
  border-radius:9px;
  padding:0 7px;
  line-height:15px;
  min-width:0;
  max-width:62%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bpm-ex {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--lc);
  border:2px solid var(--lc);
  flex:none;
}
.bpm-ex.none {
  background:var(--card);
  border-style:dashed;
}
.bpm-ints {
  margin-left:auto;
  display:flex;
  gap:3px;
  flex:0 1 auto;
  min-width:0;
}
.bpm-i {
  height:17px;
  min-width:17px;
  border-radius:9px;
  border:1.5px solid var(--lc);
  background:var(--card);
  color:var(--lc);
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:0 6px 0 4px;
  font-size:10px;
  font-weight:600;
  min-width:0;
  max-width:110px;
}
.bpm-i>span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ink);
}
.bpm-i.more {
  padding:0 5px;
  color:var(--sub);
  border-color:var(--border5);
}
.bpm-i.none {
  border-style:dashed;
  border-color:var(--border5);
  color:var(--sub);
  padding:0 6px;
}
.bpm-i .li {
  width:9px;
  height:9px;
  flex:none;
}
.bpm-i.man {
  border-color:var(--warn);
  color:var(--warn);
}
.bpm-i.off {
  border-style:dashed;
  border-color:var(--border5);
  color:var(--faint);
}
.bpm-i.off>span {
  color:var(--faint);
}
.bpm-dt {
  max-width:46%;
}
.bpm-lane.off {
  opacity:.5;
}
.bpm-lane.off::before {
  border-top-style:dashed;
}
.bpm-out {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,96px) 18px minmax(0,86px) 18px minmax(0,1fr);
  margin-top:10px;
  padding-top:9px;
  border-top:1px dashed var(--line);
  align-items:start;
}
.bpm-oh {
  grid-column:1/4;
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--sub);
  font-weight:600;
  font-size:11px;
}
.bpm-out .bpm-lanes {
  grid-column:5;
}
@container (max-width:400px) {
  .bpm {
    grid-template-columns:minmax(0,1fr);
  }
  .bpm-h,.bpm>span:empty {
    display:none;
  }
  .bpm-nums {
    flex-direction:row;
    flex-wrap:wrap;
    gap:3px 10px;
  }
  .bpm-arr {
    transform:rotate(90deg);
    width:18px;
    margin:2px 0;
  }
  .bpm-sorter {
    align-self:start;
    max-width:100%;
  }
  .bpm-lanes {
    margin-left:8px;
  }
  .bpm-out {
    grid-template-columns:minmax(0,1fr);
  }
  .bpm-oh {
    grid-column:1;
    margin-bottom:6px;
  }
  .bpm-out .bpm-lanes {
    grid-column:1;
    margin:0 8px 0 0;
  }
}
/* large blueprint */
.bp-lede {
  font-size:12.5px;
  color:var(--sub);
  max-width:84ch;
}
.bp {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  container-type:inline-size;
  position:relative;
  min-width:0;
}
.bp-bar {
  position:sticky;
  top:0;
  z-index:6;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:8px 12px;
  background:var(--card2);
  border-bottom:1px solid var(--line2);
  border-radius:12px 12px 0 0;
}
.bp-bar .bpsel {
  flex:0 1 340px;
}
.bp-cap {
  flex-basis:100%;
  font-size:12.5px;
  color:var(--ink);
  display:flex;
  gap:8px;
  align-items:flex-start;
  background:var(--card);
  border:1px solid var(--line2);
  border-radius:8px;
  padding:7px 10px;
}
.bp-cap .li {
  color:var(--teal);
  margin-top:2px;
  flex:none;
}
.bp-canvas {
  position:relative;
  overflow-x:auto;
  overflow-y:hidden;
  padding:14px 16px 18px;
  --bpv:0;
}
.bp-wires {
  position:absolute;
  left:0;
  top:0;
  pointer-events:none;
  z-index:0;
  overflow:visible;
}
.bp-wires path {
  fill:none;
  stroke:var(--wire);
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:opacity .25s,stroke-width .25s;
}
.bp-wires path.lane {
  stroke-width:2.75;
}
.bp-wires path.chev {
  stroke-width:2;
}
.bp.tracing .bp-wires path:not(.on) {
  opacity:.16;
}
.bp.tracing .bp-wires path.on {
  stroke-width:3.5;
}
.bp-grp {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:140px 40px 156px 52px minmax(500px,1fr);
  align-items:start;
  min-width:888px;
  row-gap:6px;
}
.bp-grp+.bp-grp {
  margin-top:20px;
  padding-top:14px;
  border-top:1px dashed var(--line);
}
.bp-gh {
  grid-column:1/-1;
  grid-row:1;
  display:flex;
  align-items:center;
  gap:8px 14px;
  flex-wrap:wrap;
  margin-bottom:4px;
}
.bp-gh>b {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
}
.bp-gh>b .li {
  color:var(--teal);
}
.bp-gh>span {
  font-size:12px;
  color:var(--sub);
}
.bp-gh .fsw2 {
  gap:8px;
  justify-content:flex-start;
}
.bp-gh .fsw2 .fgrow {
  flex:none;
}
.bp-gh .fsw2 .flabel {
  font-size:12px;
}
.bp-gh .grow {
  flex:1;
}
.bp-gh i {
  font-style:normal;
}
.bp-hd {
  grid-row:2;
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
}
.bp-hd.c1 {
  grid-column:1;
}
.bp-hd.c3 {
  grid-column:3;
}
.bp-hd.c5 {
  grid-column:5;
}
.bp-lhd {
  display:flex;
  gap:4px;
}
.bp-lhd span {
  flex:none;
  width:112px;
  text-align:center;
}
.bp-lhd span:last-child {
  width:auto;
  flex:1;
  text-align:left;
  padding-left:30px;
}
.bp-hd .v {
  display:none;
}
.bp-c1 {
  grid-column:1;
  grid-row:3;
}
.bp-c3 {
  grid-column:3;
  grid-row:3;
}
.bp-c5 {
  grid-column:5;
  grid-row:3;
}
.out .bp-lhd span:nth-child(3) {
  width:88px;
}
.bp-sorter.outhub {
  border-color:var(--lc-out);
}
.bp-sorter.outhub .bp-sorter-h b {
  white-space:normal;
  line-height:1.2;
}
.bp-sorter.outhub .bx {
  background:var(--lc-out);
}
.bp-sorter.outhub .nm {
  border-top-color:color-mix(in srgb,var(--lc-out) 30%,transparent);
}
/* the parts' .stat pill */
.bp-st.stat {
  font-size:inherit;
  letter-spacing:normal;
  text-transform:none;
  white-space:normal;
}
.bp-st.stat {
  cursor:default;
}
.bp-st.stat:hover {
  background:none;
}
.bp-st.stat:hover .bp-dot {
  transform:none;
}
.bp-st.stat .bp-dot {
  border-style:dashed;
}
.bp-nums {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.bp-num {
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  padding:5px 8px;
  text-align:left;
  min-width:0;
  width:100%;
  color:var(--ink2);
  transition:opacity .25s,box-shadow .2s;
}
.bp-num:hover {
  border-color:var(--teal);
}
.bp-num .ic {
  color:var(--teal);
  display:grid;
  place-items:center;
  flex:none;
}
.bp-num>span:last-child {
  min-width:0;
  display:flex;
  flex-direction:column;
}
.bp-num b {
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ink);
}
.bp-num small {
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
}
.bp-num.on {
  border-color:var(--teal);
  box-shadow:0 0 0 3px var(--soft);
}
.bp.tracing .bp-num:not(.on) {
  opacity:.4;
}
.bp-addnum {
  border:1px dashed var(--border4);
  border-radius:9px;
  background:none;
  padding:5px 8px;
  font-size:12px;
  font-weight:600;
  color:var(--sub);
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
}
.bp-addnum:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.bp-none {
  font-size:12px;
  color:var(--faint);
  padding:4px 2px;
}
.bp-sorter {
  border:1.5px solid var(--teal);
  border-radius:12px;
  background:var(--soft2);
  padding:8px 10px 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  font-size:11.5px;
  color:var(--sub);
}
.bp-sorter-h {
  border:0;
  background:none;
  padding:2px;
  margin:-2px;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  color:var(--ink);
  min-width:0;
}
.bp-sorter-h:hover b {
  color:var(--teal);
}
.bp-sorter-h.sel {
  box-shadow:0 0 0 3px var(--tealline2);
}
.bp-sorter-h .bx {
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--teal);
  color:var(--onteal);
  display:grid;
  place-items:center;
  flex:none;
}
.bp-sorter-h>span:last-child {
  min-width:0;
  display:flex;
  flex-direction:column;
}
.bp-sorter-h small {
  font-size:11px;
  color:var(--sub);
}
.bp-sorter-h b {
  font:700 15px var(--disp);
  letter-spacing:-.01em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bp-sorter p {
  margin:0;
  line-height:1.4;
}
.bp-sorter .nm {
  border-top:1px solid var(--tealline2);
  padding-top:6px;
}
.bp.tracing .bp-sorter:not(.on) {
  opacity:.5;
}
.bp-sorter.on {
  box-shadow:0 0 0 3px var(--soft);
}
.bp-lanes {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.bp-lane {
  display:flex;
  align-items:flex-start;
  gap:4px;
  padding:4px 0 6px;
  border-radius:10px;
  position:relative;
  transition:opacity .25s,background .25s;
}
.bp-lane.off {
  opacity:.55;
}
.bp.tracing .bp-grp.in .bp-lane:not(.on):not(.scan) {
  opacity:.28;
}
.bp.tracing .bp-grp.out {
  opacity:.4;
}
.bp-wires path[data-off] {
  stroke-dasharray:3 5;
  opacity:.6;
}
.bp-lane.scan {
  background:var(--hover2);
}
.bp-lane.on {
  background:color-mix(in srgb,var(--lc) 9%,transparent);
}
.bp-st {
  flex:none;
  width:88px;
  border:0;
  background:none;
  padding:2px 2px 4px;
  border-radius:9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-align:center;
  color:var(--ink2);
  position:relative;
  min-width:0;
}
.bp-st.dt,.bp-st.ex {
  width:112px;
}
.bp-st:hover {
  background:var(--hover2);
}
.bp-st:hover .bp-dot {
  transform:scale(1.08);
}
.bp-dot {
  width:30px;
  height:30px;
  border-radius:50%;
  border:2.5px solid var(--lc,var(--teal));
  background:var(--card);
  color:var(--lc,var(--teal));
  display:grid;
  place-items:center;
  flex:none;
  transition:box-shadow .2s,transform .15s;
}
.bp-dot .li {
  width:14px;
  height:14px;
}
.bp-st.dt .bp-dot {
  width:32px;
  height:32px;
  background:var(--lc);
  color:var(--card);
}
.bp-lb {
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
  max-width:100%;
}
.bp-lb b {
  font-size:12px;
  font-weight:600;
  color:var(--ink);
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.bp-lb small {
  font-size:11px;
  color:var(--sub);
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bp-lb small.m {
  color:var(--amberink);
  font-weight:600;
}
.bp-k {
  display:none;
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
}
.bp-st.manual .bp-dot {
  border-color:var(--warn);
  color:var(--warn);
}
.bp-st.off .bp-dot,.bp-st.empty .bp-dot,.bp-st.dt.empty .bp-dot {
  border-style:dashed;
  border-color:var(--border5);
  color:var(--faint);
  background:var(--card);
}
.bp-st.off b,.bp-st.empty b {
  color:var(--sub);
  font-weight:500;
}
.bp-st.sel {
  background:var(--selbg);
}
.bp-st.sel .bp-dot {
  box-shadow:0 0 0 4px color-mix(in srgb,var(--lc,var(--teal)) 30%,transparent);
}
.bp-st[data-tb]::after,.bp-bi[data-tb]::after {
  content:attr(data-tb);
  position:absolute;
  top:-7px;
  left:calc(50% + 10px);
  font:600 10px/1.5 var(--sans);
  padding:0 6px;
  border-radius:8px;
  background:var(--okbg);
  color:var(--ok);
  white-space:nowrap;
  z-index:3;
  box-shadow:0 0 0 2px var(--card);
}
.bp-st.tb-no::after,.bp-st.tb-skip::after,.bp-bi.tb-no::after,.bp-bi.tb-skip::after {
  background:var(--pilloffbg);
  color:var(--pilloffink);
}
.bp-st.tb-wait::after,.bp-bi.tb-wait::after {
  background:var(--amberbg);
  color:var(--amberink);
}
.bp-st.tb-unk::after,.bp-bi.tb-unk::after {
  background:var(--card);
  color:var(--sub);
  border:1px dashed var(--line);
}

/* onboarding + demos */
.tut-prog {
  height:3px;
  background:var(--line2);
  flex:none;
}
.tut-prog i {
  display:block;
  height:100%;
  width:0;
  background:var(--teal);
}
.dm {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  gap:14px;
  width:min(100%,880px);
  font-size:12.5px;
}
@media (max-width:700px) {
  .dm {
    grid-template-columns:1fr;
  }
}
.dm .switch {
  pointer-events:none;
  display:inline-block;
}
.dm .btn {
  pointer-events:none;
}

/* tour coach marks */
.tourofr {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  counter-reset:to;
}
.tourofr li {
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 4px;
  font-size:13.5px;
  color:var(--ink);
  border-bottom:1px solid var(--line2);
}
.tourofr li:last-child {
  border-bottom:0;
}
.tourofr .ic {
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--soft);
  color:var(--teal);
  display:grid;
  place-items:center;
  flex:none;
}
.tourofr-note {
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin:12px 0 0;
  padding:9px 11px;
  border-radius:9px;
  background:var(--card2);
  border:1px solid var(--line);
  font-size:12.5px;
  color:var(--sub);
  line-height:1.45;
}
.tourofr-note .li {
  flex:none;
  margin-top:2px;
}
.tour-ring {
  position:fixed;
  z-index:88;
  border:2px solid var(--amber);
  border-radius:10px;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--amber) 28%,transparent),0 0 0 9999px color-mix(in srgb,#0b2523 26%,transparent);
  pointer-events:none;
  transition:left .35s,top .35s,width .35s,height .35s;
}
.tour-ring[hidden] {
  display:none;
}
.tour-card {
  position:fixed;
  z-index:89;
  width:min(420px,calc(100vw - 24px));
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 18px 50px #0b252340;
  padding:12px 16px 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  transition:left .3s,top .3s;
}
.tour-k {
  display:flex;
  justify-content:space-between;
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
}
.tour-k>span {
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.tour-card h3 {
  margin:0;
  font:700 15px var(--disp);
  letter-spacing:-.01em;
  color:var(--ink);
}
.tour-card p {
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:var(--ink2);
}
.tour-f {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  flex-wrap:wrap;
}
.tour-f .tut-dots {
  margin:0 auto 0 2px;
  gap:3px;
}
.tour-f .tut-dots i {
  width:5px;
  height:5px;
}
.tour-f .tut-dots i.on {
  width:14px;
}
.tour-cta {
  display:flex;
  gap:6px;
  margin-left:auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.touring .scrim {
  z-index:87;
}
.exm {
  font-size:9.5px;
  margin-left:6px;
  vertical-align:middle;
}

.exhint {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 12px;
  padding:7px 10px;
  border-radius:8px;
  background:var(--soft);
  color:var(--deep);
  font-size:12.5px;
  font-weight:600;
}
/* integrations bundle: one stop that stands for every integration of the flow, since they all run at once */
.bp-st.bundle {
  --bx:17px;
  cursor:default;
}
.bp-bh {
  border:0;
  background:none;
  padding:0;
  margin:0;
  font:inherit;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-align:center;
  width:100%;
  min-width:0;
  border-radius:9px;
  cursor:pointer;
}
.bp-bh:hover .bp-dot {
  transform:scale(1.08);
}
.bp-dot.stack {
  position:relative;
  isolation:isolate;
}
.bp-st.bundle {
  width:104px;
}
.bp-dot.stack::before,.bp-dot.stack::after {
  content:"";
  position:absolute;
  inset:-2.5px;
  border-radius:50%;
  border:2.5px solid var(--lc,var(--teal));
  background:var(--card);
  z-index:-1;
}
.bp-dot.stack::before {
  transform:translate(4px,-4px);
  opacity:.55;
}
.bp-dot.stack::after {
  transform:translate(8px,-8px);
  opacity:.28;
}
.bp-bl {
  list-style:none;
  margin:0;
  padding:0;
  display:none;
  flex-direction:column;
  gap:1px;
  width:100%;
  position:relative;
}
.bp-bl::before {
  content:"";
  position:absolute;
  left:calc(var(--bx) - 1px);
  top:-6px;
  bottom:14px;
  border-left:2px solid var(--lc,var(--teal));
  opacity:.55;
}
.bp-st.bundle.open {
  width:200px;
  align-items:stretch;
  text-align:left;
}
.bp-st.bundle.open .bp-bh {
  flex-direction:row;
  align-items:center;
  gap:8px;
  text-align:left;
}
.bp-st.bundle.open .bp-bl {
  display:flex;
  margin-top:4px;
}
.bp-bi {
  border:0;
  background:none;
  margin:0;
  font:inherit;
  color:var(--ink2);
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  width:100%;
  min-width:0;
  padding:3px 24px 3px 0;
  border-radius:7px;
  position:relative;
  cursor:pointer;
}
.bp-bi::before {
  content:"";
  position:absolute;
  left:calc(var(--bx) - 1px);
  top:50%;
  width:10px;
  border-top:2px solid var(--lc,var(--teal));
  opacity:.55;
}
.bp-bi:hover {
  background:var(--hover2);
}
.bp-idot {
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid var(--lc,var(--teal));
  background:var(--card);
  color:var(--lc,var(--teal));
  display:grid;
  place-items:center;
  flex:none;
  margin-left:calc(var(--bx) - 11px);
  position:relative;
}
.bp-idot .li {
  width:12px;
  height:12px;
}
.bp-bi.manual .bp-idot {
  border-color:var(--warn);
  color:var(--warn);
}
.bp-bi.off .bp-idot {
  border-style:dashed;
  border-color:var(--border5);
  color:var(--faint);
}
.bp-bi.off b {
  color:var(--sub);
  font-weight:500;
}
.bp-bi .bp-lb b {
  -webkit-line-clamp:1;
}
.bp-bi[data-tb]::after {
  left:auto;
  right:2px;
  top:50%;
  transform:translateY(-50%);
}
.bp-st.bundle.sel .bp-idot {
  box-shadow:0 0 0 3px color-mix(in srgb,var(--lc,var(--teal)) 22%,transparent);
}
.bp.ro .bp-bh,.bp.ro .bp-bi,.tut-bp .bp-bh,.tut-bp .bp-bi {
  cursor:default;
}
.bp.ro .bp-bh:hover .bp-dot,.tut-bp .bp-bh:hover .bp-dot {
  transform:none;
}
.bp.ro .bp-bi:hover,.tut-bp .bp-bi:hover {
  background:none;
}
.bp-add {
  align-self:flex-start;
  border:1px dashed var(--border4);
  border-radius:8px;
  background:none;
  padding:4px 10px;
  font-size:12px;
  font-weight:600;
  color:var(--sub);
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
}
.bp-add:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.bp-edit {
  border:1px solid var(--tealline2);
  border-radius:10px;
  background:var(--card2);
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:2px 0 10px;
  position:relative;
  z-index:2;
  box-shadow:0 6px 20px #0b25230f;
}
.bp-edit-h {
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}
.bp-edit-h>b {
  font-size:13px;
  min-width:0;
}
.bp-edit-h .iconbtn {
  width:30px;
  height:30px;
}
.bp-edit .fflow-body {
  border-top:0;
  padding:0;
}
.bp-edit .fsteps {
  background:var(--card);
}
.bp-edit .fnote2 .flinkt {
  margin-right:4px;
}
.bp-shared {
  font-size:12px;
  color:var(--info);
  background:var(--infobg);
  border-radius:7px;
  padding:5px 9px;
  display:flex;
  gap:6px;
  align-items:center;
}
.bp-token {
  position:absolute;
  left:0;
  top:0;
  width:26px;
  height:20px;
  margin:-10px 0 0 -13px;
  border-radius:5px;
  background:var(--amber);
  color:#1a2630;
  display:grid;
  place-items:center;
  z-index:5;
  box-shadow:0 4px 14px #0004,0 0 0 2px var(--card);
  transition:transform .6s cubic-bezier(.45,0,.2,1),opacity .2s;
  pointer-events:none;
}
.bp-token .li {
  width:13px;
  height:13px;
}
.bp-token::after {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:9px;
  border:2px solid var(--amber);
  opacity:0;
  animation:bpping 1.1s ease-out infinite;
}
@keyframes bpping {
  0% {
    opacity:.7;
    transform:scale(.8);
  }
  100% {
    opacity:0;
    transform:scale(1.35);
  }
}
.bp-steps {
  border-top:1px solid var(--line2);
  padding:12px 16px 14px;
}
.bp-steps h4 {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
  margin:0 0 8px;
}
.bp-steps ol {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  counter-reset:bps;
}
.bp-steps li {
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:8px;
  font-size:12.5px;
  align-items:start;
}
.bp-steps li .si {
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--soft);
  color:var(--teal);
}
.bp-steps li .si .li {
  width:12px;
  height:12px;
}
.bp-steps li.no .si,.bp-steps li.skip .si {
  background:var(--pilloffbg);
  color:var(--pilloffink);
}
.bp-steps li.wait .si {
  background:var(--amberbg);
  color:var(--amberink);
}
.bp-steps li.ok .si {
  background:var(--okbg);
  color:var(--ok);
}
.bp-steps li.no,.bp-steps li.skip,.bp-steps li.unk {
  color:var(--sub);
}
.bp-steps li.unk .si {
  background:var(--card);
  color:var(--sub);
  border:1px dashed var(--line);
}
.bp-plan,.bp-plan[hidden] {
  display:none;
}
.bp-token.still,.bp-token.still::after {
  transition:none;
  animation:none;
}
.ftr-hd,.tut-hd {
  flex:1 1 260px;
  min-width:0;
}
.bp-fvs {
  display:flex;
  flex-wrap:wrap;
  gap:4px 6px;
  margin-top:5px;
}
.bp-fv {
  display:inline-flex;
  gap:6px;
  align-items:baseline;
  border:1px solid var(--line);
  border-radius:6px;
  padding:1px 7px;
  font-size:12px;
  background:var(--card);
  max-width:100%;
  min-width:0;
}
.bp-fv code {
  font:11.5px var(--code);
  color:var(--teal);
}
.bp-fv span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.bp-acts {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.bp-foot {
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  padding:8px 16px 12px;
  border-top:1px solid var(--line2);
  font-size:11.5px;
  color:var(--sub);
}
.bp-foot>span {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
@container (min-width:730px) and (max-width:1079px) {
  .bp-canvas {
    padding:14px 12px 18px;
  }
  .bp-grp {
    grid-template-columns:108px 28px 128px 40px minmax(0,1fr);
    min-width:740px;
  }
  .out .bp-lhd span:nth-child(3) {
    width:76px;
  }
  .bp-st {
    width:76px;
  }
  .bp-st.dt,.bp-st.ex {
    width:100px;
  }
  .bp-st.bundle {
    width:94px;
  }
  .bp-lhd span {
    width:100px;
  }
  .bp-lb b {
    font-size:11.5px;
  }
  .bp-lb small {
    font-size:10.5px;
  }
  .bp-num {
    padding:5px 7px;
  }
  .bp-num .ic {
    display:none;
  }
  .bp-sorter {
    padding:8px;
  }
}
@container (max-width:729px) {
  .bp-canvas {
    --bpv:1;
    padding:12px 12px 16px;
    overflow-x:hidden;
  }
  .bp-grp,.bp-grp.out {
    grid-template-columns:minmax(0,1fr);
    min-width:0;
    row-gap:0;
  }
  .bp-gh {
    grid-row:auto;
    margin-bottom:10px;
  }
  .bp .bp-grp>* {
    grid-column:1;
    grid-row:auto;
  }
  .bp-hd {
    margin:0 0 5px;
  }
  .bp-hd.c3,.bp-hd.c5 {
    margin-top:22px;
  }
  .bp-hd .h,.bp-gh .h {
    display:none;
  }
  .bp-hd .v {
    display:inline;
  }
  .bp-nums {
    flex-direction:row;
    flex-wrap:wrap;
  }
  .bp-num {
    width:auto;
    max-width:100%;
    flex:0 1 auto;
  }
  .bp-addnum {
    width:auto;
  }
  .bp-lb>.fboth {
    align-self:flex-start;
  }
  .bp-sorter {
    max-width:360px;
  }
  .bp-lanes {
    padding-left:30px;
  }
  .bp-lane {
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:4px 0;
  }
  .bp-st,.bp-st.dt,.bp-st.ex {
    width:auto;
    flex-direction:row;
    align-items:center;
    text-align:left;
    gap:10px;
    padding:3px 6px;
  }
  .bp-k {
    display:block;
  }
  .bp-lb small {
    white-space:normal;
  }
  .bp-lb b {
    -webkit-line-clamp:3;
  }
  .bp-st[data-tb]::after {
    left:auto;
    right:6px;
    top:50%;
    transform:translateY(-50%);
  }
  .bp-st.bundle {
    --bx:21px;
    flex-wrap:wrap;
    width:auto;
  }
  .bp-st.bundle.open {
    width:auto;
  }
  .bp-bh,.bp-st.bundle.open .bp-bh {
    flex-direction:row;
    align-items:center;
    text-align:left;
    gap:10px;
  }
  .bp-bl {
    flex:1 0 100%;
  }
  .bp-edit {
    margin:4px 0 10px;
  }
  .bp-edit-h>b {
    flex-basis:100%;
  }
}
@media (max-width:900px) {
  .bpwrap {
    padding:12px 12px 90px;
  }
  .bpintro {
    padding:12px;
  }
  .bp-bar .bpsel {
    flex:1 1 200px;
  }
}
/* "where this sits" strip on the building-block pages */
.bpwhere {
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card2);
  padding:10px 12px;
  margin-bottom:12px;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.bpwhere ol {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
}
.bpwhere li {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  color:var(--sub);
}
.bpwhere li+li::before {
  content:"→";
  color:var(--faint);
  margin-right:2px;
}
.bpwhere li>span,.bpwhere li>button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:2px 8px;
  background:var(--card);
  font:inherit;
  color:inherit;
  white-space:nowrap;
}
.bpwhere li>button {
  color:var(--teal);
  font-weight:600;
}
.bpwhere li>button:hover {
  border-color:var(--teal);
}
.bpwhere li.flowgrp {
  border:1.5px dashed var(--border4);
  border-radius:9px;
  padding:3px 6px;
  gap:4px;
  flex-wrap:wrap;
  max-width:100%;
}
.bpwhere li.flowgrp>i {
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  font-style:normal;
  margin-right:2px;
}
.bpwhere li.flowgrp>em {
  font-style:normal;
  color:var(--faint);
}
.bpwhere .on {
  border-color:var(--teal)!important;
  background:var(--soft)!important;
  color:var(--deep)!important;
  font-weight:600;
}
.bpwhere li.flowgrp.on {
  background:var(--soft2)!important;
}
.bpwhere p {
  font-size:12.5px;
  color:var(--ink2);
  margin:0;
}
.navlabel.navadv {
  margin:10px 0 2px;
  color:var(--faint);
}
.fdir-ic {
  color:var(--teal);
  vertical-align:-2px;
  margin-right:2px;
}
.addmark {
  position:relative;
}
.mfa-pick {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.mfa-opt {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:var(--card);
  cursor:pointer;
}
.mfa-opt:hover {
  border-color:var(--teal);
  background:var(--soft2);
}
.mfa-opt b {
  font-size:13.5px;
}
.mfa-opt small {
  font-size:12px;
  color:var(--sub);
  line-height:1.4;
}
.mic {
  width:30px;
  height:30px;
  border-radius:8px;
  background:var(--tealbg);
  color:var(--deep);
  display:inline-grid;
  place-items:center;
  flex:none;
}
.mfa-totp {
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.qrbox {
  flex:none;
  padding:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
}
.qr {
  display:block;
}
.mfakey {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border2);
  border-radius:8px;
  padding:6px 6px 6px 10px;
  background:var(--card2);
}
.mfakey code {
  flex:1;
  font:600 12.5px var(--mono);
  letter-spacing:.04em;
  word-break:break-all;
  color:var(--ink);
}
.pkprompt {
  max-width:380px;
  margin:0 auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  box-shadow:0 16px 40px #0003;
  overflow:hidden;
}
.pkhead {
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--line2);
  background:var(--card2);
}
.pkhead b {
  display:block;
  font-size:13px;
}
.pkhead small {
  font-size:11.5px;
  color:var(--sub);
}
.pkuser {
  display:flex;
  gap:10px;
  align-items:center;
  padding:14px;
}
.pkuser b {
  display:block;
  font-size:13.5px;
}
.pkuser small {
  font-size:12px;
  color:var(--sub);
}
.pkfoot {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:0 14px 14px;
  min-height:46px;
  align-items:center;
}
.pkwait {
  display:inline-flex;
  gap:6px;
  align-items:center;
  font-size:12.5px;
  color:var(--sub);
}
.codes {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.codes code {
  font:600 13px var(--mono);
  letter-spacing:.06em;
  padding:8px 10px;
  border:1px dashed var(--line);
  border-radius:8px;
  background:var(--card2);
  text-align:center;
}
.methods {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:4px 0 12px;
}
.method {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
}
.method>div {
  flex:1;
  min-width:0;
}
.method b {
  display:block;
  font-size:13px;
}
.method small {
  font-size:11.5px;
  color:var(--sub);
}
.spin {
  animation:spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
@media (max-width:700px) {
  .mfa-pick {
    grid-template-columns:1fr;
  }
  .mfa-totp {
    flex-direction:column;
    align-items:center;
  }
  .codes {
    grid-template-columns:1fr;
  }
}
.field>.fnote2 {
  margin-left:3px;
}
.askwrap {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.rbody:has(>:not([hidden])>.askwrap) {
  padding:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.rbody>:not([hidden]):has(>.askwrap) {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.navbtn .nfold {
  margin-left:2px;
  color:var(--faint);
  display:inline-flex;
  transition:transform .15s;
}
.navbtn[aria-expanded="false"] .nfold {
  transform:rotate(-90deg);
}
.navbtn:not(:hover) .nfold {
  opacity:.6;
}
.convrow {
  position:relative;
  display:flex;
  align-items:center;
  border-radius:7px;
}
.convrow .conv {
  flex:1;
  min-width:0;
  background:none;
}
.convrow:hover {
  background:var(--hover);
}
.convrow.on {
  background:var(--tealbg2);
}
.convrow.on .conv,.convrow:hover .conv {
  background:none;
}
.convdel {
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  color:var(--faint);
  opacity:0;
  transition:opacity .12s;
}
.convrow:hover .convdel,.convdel:focus-visible {
  opacity:1;
}
.convdel:hover {
  color:var(--bad);
  background:var(--card);
}
.convrow:hover .conv b {
  padding-right:24px;
}
#convDelete.muted {
  opacity:.35;
  cursor:default;
  pointer-events:none;
}
@media (hover:none) {
  .convdel {
    opacity:.6;
  }
}
.usermenu .mid {
  padding:8px 10px;
  gap:10px;
  align-items:center;
}
.usermenu .mid .av {
  width:30px;
  height:30px;
  border-radius:8px;
  background:var(--tealbg);
  color:var(--deep);
  display:grid;
  place-items:center;
  font:700 11px var(--mono);
  flex:none;
}
.usermenu .mid .grow {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.25;
}
.usermenu .mid b {
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.usermenu .mid small {
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.usermenu .mid .ic {
  color:var(--faint);
}
.usermenu .themeseg {
  margin:6px 8px 8px;
}
body:not(.kbdhints) .usermenu kbd,body:not(.kbdhints) .search>kbd {
  display:none;
}
.brand {
  text-decoration:none;
  cursor:pointer;
}
.pgrid {
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:960px;
  padding-bottom:72px;
}
.pid {
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.pavatar {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  flex:none;
}
.pavatar>span,.pavatar img {
  width:84px;
  height:84px;
  border-radius:18px;
  background:var(--tealbg);
  color:var(--deep);
  display:grid;
  place-items:center;
  font:800 26px var(--disp);
  object-fit:cover;
}
.pupload {
  cursor:pointer;
}
.prow {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-top:1px solid var(--line2);
}
.prow:first-of-type {
  border-top:0;
}
.prow>div {
  min-width:0;
}
.prow b {
  display:block;
  font-size:13.5px;
}
.prow small {
  display:block;
  font-size:12px;
  color:var(--sub);
  margin-top:2px;
  line-height:1.4;
}
.prow .themeseg {
  margin:0;
  width:220px;
  flex:none;
}
.psub {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin:14px 0 0;
  padding-top:10px;
  border-top:1px solid var(--line2);
}
.psub+.prow {
  border-top:0;
}
.marks {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:10px;
  margin-top:10px;
}
.mark {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px;
}
.mark img {
  border-radius:6px;
  border:1px solid var(--line2);
  background:#fff;
  flex:none;
  width:120px;
  height:37px;
}
.mark .mk {
  flex:1;
  min-width:0;
}
.mark .mk b {
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mark .mk small {
  display:block;
  font-size:11px;
  color:var(--sub);
}
@media (max-width:700px) {
  .pid {
    flex-direction:column;
    align-items:stretch;
  }
  .pavatar {
    align-self:flex-start;
  }
  .prow {
    flex-wrap:wrap;
  }
  .prow .themeseg {
    width:100%;
  }
}
.rtab .rct {
  display:inline-block;
  min-width:16px;
  height:16px;
  border-radius:8px;
  background:var(--soft);
  color:var(--deep);
  font:600 10px var(--mono);
  line-height:16px;
  text-align:center;
  margin-left:6px;
  padding:0 4px;
}
.chatwrap {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.chatwho {
  display:flex;
  align-items:center;
  gap:6px;
  border:0;
  border-bottom:1px solid var(--line2);
  background:var(--card2);
  padding:9px 18px;
  font-size:12.5px;
  color:var(--ink2);
  text-align:left;
  cursor:pointer;
  width:100%;
}
.chatwho:hover {
  background:var(--hover2);
}
.chatwho b {
  color:var(--ink);
}
.chatlog {
  flex:1;
  overflow:auto;
  padding:14px 18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:0;
}
.cmeta {
  display:flex;
  align-items:baseline;
  gap:8px;
}
.cmeta b {
  font-size:12.5px;
}
.cmeta small {
  font-size:11px;
  color:var(--faint);
}
.mn {
  color:var(--teal);
  font-weight:600;
  background:var(--soft2);
  border-radius:4px;
  padding:0 3px;
}
.chatc {
  flex:none;
  position:relative;
  padding:10px 18px calc(12px + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--line2);
  background:var(--card);
}
.chatbox {
  display:flex;
  align-items:flex-end;
  gap:8px;
  border:1px solid var(--border2);
  border-radius:12px;
  padding:6px 6px 6px 12px;
  background:var(--card);
}
.chatbox:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #0d5f661a;
}
.chatbox textarea {
  flex:1;
  border:0;
  background:none;
  resize:none;
  font:13.5px/1.4 var(--sans);
  color:var(--ink);
  outline:0;
  max-height:120px;
  padding:6px 0;
}
.chatbox .sendc {
  width:32px;
  height:32px;
  border-radius:9px;
  border:0;
  background:var(--teal);
  color:var(--onteal);
  flex:none;
}
/* chat windows: "Ask about this fax" and "Team chat" share one look. A header that says who is on the other end,
   a tinted message area with bubbles (yours on the right), and a pinned composer. */
.askwrap,.chatwrap {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  background:var(--card);
}
.rbody:has(>:not([hidden])>.chatwrap) {
  padding:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.rbody>:not([hidden]):has(>.chatwrap) {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.chathead {
  flex:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border-bottom:1px solid var(--line2);
  background:var(--card);
}
.chathead .chh-t {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
}
.chathead .chh-t b {
  font-size:13px;
  color:var(--ink);
}
.chathead .chh-t small {
  font-size:11.5px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.chathead .chatwho {
  border:0;
  background:none;
  padding:0;
  width:auto;
  font-size:11.5px;
  color:var(--sub);
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.chathead .chatwho:hover {
  background:none;
  color:var(--teal);
}
.chathead>.av2,.cm .cav {
  width:28px;
  height:28px;
  border-radius:50%;
  font-size:10.5px;
}
.chs-av {
  display:flex;
  flex:none;
}
.chs-av:empty {
  display:none;
}
.chs-av .av2 {
  width:26px;
  height:26px;
  border-radius:50%;
  font-size:9.5px;
  box-shadow:0 0 0 2px var(--card);
  margin-left:-5px;
}
.chs-av .av2:first-child {
  margin-left:0;
}
.aiav {
  background:var(--tealbg);
  color:var(--deep);
}
.clog {
  flex:1;
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:16px 18px 12px;
  background:var(--card2);
}
.cm {
  display:flex;
  gap:8px;
  align-items:flex-start;
  min-width:0;
}
.cm:not(.cont)+.cm,.cm+.cm:not(.cont) {
  margin-top:10px;
}
.cm.cont {
  margin-top:0;
}
.cm.me {
  justify-content:flex-end;
}
.cm .cav.sp {
  visibility:hidden;
  height:0;
}
.cmb {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  max-width:min(80%,520px);
}
.cm.me .cmb {
  align-items:flex-end;
}
.cm .cmeta {
  display:flex;
  align-items:baseline;
  gap:7px;
  margin:0 3px 3px;
}
.cm .cmeta b {
  font-size:12px;
  color:var(--ink2);
}
.cm .cmeta small {
  font-size:10.5px;
  color:var(--sub);
}
.cbub {
  padding:8px 12px;
  border-radius:15px;
  font-size:13.5px;
  line-height:1.45;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-width:100%;
}
.cm.them .cbub {
  background:var(--card);
  color:var(--ink);
  border:1px solid var(--line);
  border-top-left-radius:5px;
}
.cm.them.cont .cbub {
  border-top-left-radius:15px;
}
.cm.me .cbub {
  background:var(--teal);
  color:var(--onteal);
  border-top-right-radius:5px;
}
.cm.me.cont .cbub {
  border-top-right-radius:15px;
}
.cm.me .mn {
  background:none;
  color:inherit;
  padding:0;
  text-decoration:underline;
  text-underline-offset:2px;
}
.cm.ai .cbub {
  white-space:normal;
}
.cbub.typing {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:12px 14px;
}
.cbub.typing i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--faint);
  animation:cdot 1s infinite ease-in-out;
}
.cbub.typing i:nth-child(2) {
  animation-delay:.15s;
}
.cbub.typing i:nth-child(3) {
  animation-delay:.3s;
}
@keyframes cdot {
  0%,60%,100% {
    opacity:.35;
    transform:none;
  }
  30% {
    opacity:1;
    transform:translateY(-3px);
  }
}
.csrc {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  margin-top:8px;
  padding-top:7px;
  border-top:1px dashed var(--line);
}
.csrc>span {
  font:600 10px var(--sans);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-right:2px;
}
.cday {
  display:flex;
  align-items:center;
  gap:10px;
  margin:2px 0 8px;
  font:600 10.5px var(--sans);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
}
.cday::before,.cday::after {
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}
.cday+.cm {
  margin-top:0;
}
.cempty {
  margin:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  max-width:380px;
  padding:24px 8px;
}
.ce-ic {
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--tealbg);
  color:var(--deep);
  margin-bottom:4px;
}
.cempty b {
  font:700 15px var(--disp);
  letter-spacing:-.01em;
  color:var(--ink);
}
.cempty p {
  font-size:12.5px;
  color:var(--sub);
  line-height:1.5;
}
.cpins {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  margin-top:10px;
}
.cpin {
  border:1px solid var(--tealline2);
  background:var(--card);
  color:var(--deep);
  border-radius:16px;
  padding:5px 11px;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
}
.cpin:hover {
  background:var(--soft2);
  border-color:var(--tealline);
}
.cpins.row {
  flex:none;
  flex-wrap:nowrap;
  justify-content:flex-start;
  overflow-x:auto;
  margin:0;
  padding:10px 18px 0;
  background:var(--card);
  border-top:1px solid var(--line2);
  scrollbar-width:none;
}
.cpins.row::-webkit-scrollbar {
  display:none;
}
.cpins.row .cpin {
  white-space:nowrap;
  flex:none;
}
.cpins.row+.chatc {
  border-top:0;
}
.chatbox .sendc {
  display:grid;
  place-items:center;
}
.chatbox .sendc:disabled {
  opacity:.45;
  cursor:default;
}
.chatbox textarea::placeholder,#rchat .composer textarea::placeholder {
  color:var(--faint);
}
.chint {
  font-size:11px;
  color:var(--sub);
  margin:6px 4px 0;
}
@media (max-width:900px) {
  .cmb {
    max-width:86%;
  }
  .chathead {
    padding:8px 14px;
  }
  .clog {
    padding:14px 12px 10px;
  }
  .cpins.row {
    padding:8px 12px 0;
  }
  .chint {
    display:none;
  }
}

.mentions {
  position:absolute;
  left:18px;
  right:18px;
  bottom:calc(100% - 4px);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 12px 32px #0003;
  padding:4px;
  z-index:4;
}
.mentions .opt {
  gap:8px;
}
.mentions .opt.on {
  background:var(--soft2);
}
.mentions .av2 {
  width:24px;
  height:24px;
  font-size:10px;
}
.minisearch.whoq {
  width:100%;
  height:36px;
  margin-bottom:8px;
}
.pickrow.whorow {
  cursor:default;
}
.whomore {
  padding:8px;
}
.chatbox textarea,.chatbox textarea:focus {
  width:auto;
  min-width:0;
  min-height:0;
  border:0;
  box-shadow:none;
  background:none;
}
.chatbox .sendc {
  padding:0;
}
.brandrow {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.bell {
  position:relative;
  width:30px;
  height:30px;
  color:var(--sub);
}
.bell:hover {
  background:var(--hover);
  color:var(--ink);
}
.bbadge {
  position:absolute;
  top:1px;
  right:1px;
  min-width:16px;
  height:16px;
  border-radius:8px;
  background:var(--bad);
  color:#fff;
  font:700 9.5px var(--mono);
  display:grid;
  place-items:center;
  padding:0 4px;
}
.shell.rail .brandrow {
  flex-direction:column;
  gap:4px;
}
.shell.rail .bell {
  margin:0 auto;
}
.bellp {
  position:fixed;
  z-index:68;
  width:364px;
  max-height:min(520px,calc(100dvh - 16px));
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 18px 50px #0d2b2a33;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.bellp[hidden] {
  display:none;
}
.bellp header {
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 8px 10px 14px;
  border-bottom:1px solid var(--line2);
}
.bellp header b {
  font-size:14px;
}
.bellp header .spacer {
  flex:1;
}
.bellist {
  overflow:auto;
  padding:6px;
}
.bellday {
  font:600 10px var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--faint);
  padding:8px 8px 4px;
}
.belli {
  display:flex;
  gap:10px;
  padding:8px;
  border-radius:8px;
  align-items:flex-start;
}
.belli.go {
  cursor:pointer;
}
.belli.go:hover {
  background:var(--hover);
}
.belli.unread.go:hover {
  background:var(--soft);
}
.belli .nchev {
  color:var(--faint);
  margin-left:auto;
  align-self:center;
  flex:none;
}
.belli.unread {
  background:var(--soft2);
}
.belli .bic {
  width:26px;
  height:26px;
  border-radius:7px;
  background:var(--card2);
  border:1px solid var(--line2);
  display:grid;
  place-items:center;
  color:var(--teal);
  flex:none;
}
.belli p {
  font-size:12.5px;
  color:var(--ink);
  line-height:1.4;
}
.belli small {
  font-size:11px;
  color:var(--faint);
}
.belli.unread p {
  font-weight:600;
}
@media (max-width:900px) {
  .bellp {
    left:8px;
    right:8px;
    width:auto;
  }
}
body.askhidden .askfab.global {
  display:none!important;
}
.switch.sm {
  width:30px;
  height:17px;
}
.switch.sm::after {
  width:13px;
  height:13px;
}
.aliasrows {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:8px;
}
.aliasrow {
  display:flex;
  align-items:baseline;
  gap:10px;
  font-size:13px;
}
.aliasrow small {
  color:var(--sub);
  font-size:11px;
}
.aliasin {
  display:flex;
  align-items:center;
  gap:0;
  border:1px solid var(--border2);
  border-radius:8px;
  background:var(--card);
  overflow:hidden;
}
.aliasin input {
  border:0!important;
  flex:1;
  min-width:0;
  background:none!important;
}
.aliasin .mono {
  padding:0 10px;
  color:var(--sub);
  font-size:12.5px;
  white-space:nowrap;
  border-left:1px solid var(--line2);
  align-self:stretch;
  display:flex;
  align-items:center;
  background:var(--card2);
}
.farr-s {
  color:var(--faint);
  margin:0 6px;
}
small.ftr i {
  font-style:normal;
  color:var(--sub);
}

.askfab.askfab.global {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  z-index:66;
  left:auto;
  top:auto;
  right:40px;
  bottom:0;
  height:24px;
  padding:0 14px 3px;
  border-radius:10px 10px 0 0;
  font:600 11px var(--sans);
  letter-spacing:.01em;
  box-shadow:0 -2px 10px #0d5f6633;
  opacity:.9;
  cursor:pointer;
  user-select:none;
  transition:height .16s ease,font-size .16s ease,padding .16s ease,opacity .16s,background .15s;
}
.askfab.global .li {
  width:12px;
  height:12px;
  transition:width .16s,height .16s;
}
.askfab.askfab.global:hover,.askfab.askfab.global.up,.askfab.askfab.global.on {
  height:44px;
  font-size:14px;
  padding:0 18px 6px;
  opacity:1;
}
.askfab.global:hover .li,.askfab.global.up .li,.askfab.global.on .li {
  width:16px;
  height:16px;
}
.askfab.askfab.global.on {
  background:var(--deep);
  color:#fff;
}
body.askleft .askfab.askfab.global {
  right:auto;
  left:40px;
}
.shell.ai~.askfab.global,body.aiw-open .askfab.global.m {
  display:none;
}
@media (max-width:900px) {
  .askfab.askfab.global {
    display:none;
  }
}
.aiw {
  position:fixed;
  z-index:65;
  width:420px;
  height:620px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 24px 60px #0d2b2a40;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.aiw[hidden] {
  display:none;
}
.aiw-h {
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
  padding:8px 8px 8px 10px;
  border-bottom:1px solid var(--line2);
  flex:none;
}
.aiw-conv {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:0;
  background:none;
  font:600 13.5px var(--sans);
  color:var(--ink);
  padding:6px 8px;
  border-radius:8px;
  min-width:0;
  max-width:60%;
}
.aiw-conv b {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.aiw-conv:hover {
  background:var(--hover2);
}
.aiw-h .spacer {
  flex:1;
}
.aiw-convs {
  position:absolute;
  left:8px;
  top:calc(100% - 2px);
  width:min(340px,calc(100% - 16px));
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 14px 40px #0003;
  padding:8px;
  z-index:3;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.aiw-convs .convlist {
  max-height:300px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.aiw-convs .conv {
  width:100%;
  text-align:left;
  border:0;
  background:none;
  border-radius:7px;
  padding:7px 8px;
  display:flex;
  flex-direction:column;
  gap:1px;
  cursor:pointer;
}
.aiw-convs .conv:hover {
  background:var(--hover2);
}
.aiw-convs .conv.on {
  background:var(--soft2);
}
.aiw-convs .conv b {
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
}
.aiw-convs .conv small {
  font-size:11px;
  color:var(--sub);
}
.aiw-body {
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.aiw .aimsgs {
  padding:14px 14px 6px;
}
.aiw .aimsgs .bub {
  max-width:88%;
}
.aiw .aicomp {
  padding:6px 10px 10px;
}
.aiw .aihint {
  display:none;
}
.aihead #aiMin {
  color:var(--sub);
}
.aihead .aisep {
  width:1px;
  height:22px;
  background:var(--line);
  margin:0 4px;
}
.aihead .aix {
  color:var(--ink2);
  border:1px solid var(--line);
  background:var(--card);
}
.aihead .aix:hover {
  background:var(--hover);
}
@media (min-width:901px) {
  .aihead {
    padding-left:14px;
  }
}
.sendc {
  display:grid;
  place-items:center;
}
.sendc svg {
  transform:translate(-1px,1px);
}
@media (max-width:900px) {
  .aiw {
    left:0!important;
    top:0!important;
    width:100%!important;
    height:100dvh!important;
    border-radius:0;
    padding-top:env(safe-area-inset-top,0px);
  }
  .aiw-convs {
    width:calc(100% - 16px);
  }
}

.aliases {
  display:grid;
  grid-template-columns:1fr;
  gap:1px;
  font-size:11.5px;
  color:var(--sub);
  margin-top:4px;
}
.aliases .al1 {
  display:block;
}
.aliases .al2 {
  display:block;
  min-height:1.3em;
}
.aliases .mono {
  color:var(--ink2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nbsheet {
  table-layout:fixed;
  min-width:1230px;
}
.nbsheet .aliases .mono {
  overflow:visible;
  text-overflow:clip;
}
.modal.sendm.numm {
  width:min(1140px,100%);
}
.nbsheet td,.nbsheet th {
  overflow:hidden;
}
.nbsheet .allrow td {
  background:var(--soft2);
  border-bottom:2px solid var(--tealline2);
}
.nbsheet .allrow small {
  display:block;
  font-size:10.5px;
}
.cpk {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  border:1px solid var(--border2);
  background:var(--card);
  border-radius:7px;
  padding:6px 8px;
  font-size:12.5px;
  color:var(--sub);
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cpk.has {
  color:var(--ink);
}
.cpk .li {
  flex:none;
}
.cpanel {
  position:absolute;
  z-index:5;
  width:300px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 14px 40px #0003;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cplist {
  max-height:240px;
  overflow:auto;
}
.cprow {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 6px;
  border-radius:6px;
  cursor:pointer;
}
.cprow:hover {
  background:var(--hover2);
}
.cprow input {
  accent-color:var(--teal);
  margin:0;
}
.cprow b {
  display:block;
  font-size:12.5px;
  font-weight:600;
}
.cprow small {
  display:block;
  font-size:11px;
  color:var(--sub);
}
.cpfoot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11.5px;
  padding-top:4px;
  border-top:1px solid var(--line2);
}
.rtlist {
  max-height:min(52vh,420px);
  overflow:auto;
}

.nbchoice {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:600px) {
  .nbchoice {
    grid-template-columns:1fr;
  }
}
.nbopt {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:12px;
  padding:18px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--teal);
  cursor:pointer;
}
.nbopt:hover {
  border-color:var(--tealline);
  background:var(--soft2);
}
.nbopt b {
  font-size:15px;
  color:var(--ink);
}
.nbopt small {
  font-size:12.5px;
  color:var(--sub);
  line-height:1.45;
}
.nbres {
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.nbres-h {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 12px;
  background:var(--card2);
  border-bottom:1px solid var(--line2);
  font-size:12px;
  color:var(--ink2);
}
.nbgrid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
  gap:6px;
  padding:8px;
  max-height:300px;
  overflow:auto;
}
.nbnum {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:7px 9px;
  cursor:pointer;
  background:var(--card);
}
.nbnum:hover {
  border-color:var(--border3);
}
.nbnum.on {
  border-color:var(--tealline);
  background:var(--soft);
}
.nbnum input {
  accent-color:var(--teal);
  margin:0;
  flex:none;
}
.nbnum>span {
  min-width:0;
}
.nbnum b {
  display:block;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
.nbnum small {
  display:block;
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
}
.nbone {
  display:flex;
  align-items:baseline;
  gap:10px;
  font-size:16px;
}
.nbone b {
  font-weight:700;
}
.nbh {
  font:600 10.5px var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--faint);
  margin:6px 0 -4px;
}

.nbtbl-wrap {
  overflow-x:auto;
  flex:none;
  border:1px solid var(--line);
  border-radius:10px;
}
.newm>* {
  flex:none;
}
.nbtbl {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.nbtbl th {
  text-align:left;
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:8px 10px;
  background:var(--card2);
  border-bottom:1px solid var(--line2);
}
.nbtbl td {
  padding:8px 10px;
  border-bottom:1px solid var(--line2);
  vertical-align:top;
}
.nbtbl td b {
  white-space:nowrap;
}
.nbtbl td:nth-child(2) {
  min-width:180px;
}
.nbtbl input,.nbtbl select {
  width:100%;
  border:1px solid var(--border2);
  border-radius:7px;
  padding:6px 8px;
  background:var(--card);
  font-size:13px;
}
.nbtbl .aliases {
  margin-top:3px;
}
.loa {
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px;
  background:var(--card2);
}
.loa h4 {
  font-size:13px;
  margin:1.33em 0 6px;
}
.loa p {
  font-size:12.5px;
  color:var(--ink2);
  line-height:1.5;
  margin-bottom:8px;
}
.sigbox {
  position:relative;
  border:1px dashed var(--border4);
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.sigbox canvas {
  display:block;
  width:100%;
  height:auto;
  touch-action:none;
  cursor:crosshair;
}
.sigact {
  position:absolute;
  left:12px;
  top:10px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
}
.portc {
  align-items:flex-start;
}
.portc>div {
  flex:1;
}
.pstep {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.pstep span {
  font:600 10.5px var(--mono);
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--faint);
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.pstep span.done {
  color:var(--ok);
}
.pstep span.cur {
  color:var(--ink);
}
.pstep span+span::before {
  content:'›';
  color:var(--faint);
  margin-right:6px;
  font-weight:400;
}
.pacts {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.callout.portc p {
  margin:0;
}
.portc .pacts .btn {
  margin-left:0;
}

.pkbox {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  align-items:center;
  border:1px solid var(--border2);
  border-radius:8px;
  padding:4px 6px;
  background:var(--card);
  min-height:38px;
}
.pkbox:focus-within {
  border-color:var(--teal);
}
.pkbox input {
  border:0!important;
  padding:4px!important;
  flex:1;
  min-width:120px;
  background:none!important;
  font-size:13px;
}
.pkchips {
  display:contents;
}
.pkchips .gchip {
  margin:0;
}
.pkdrop {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--card);
  box-shadow:0 10px 30px #0002;
  padding:4px;
  margin-top:4px;
  max-height:220px;
  overflow:auto;
}
.pkdrop .opt {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}
.pkdrop .opt small {
  font-size:11.5px;
}
.newm {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.frow2 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width:600px) {
  .frow2 {
    grid-template-columns:1fr;
  }
}
.nrow {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.hipaa .hrow {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid var(--line2);
}
.hipaa .hrow:last-of-type {
  border-bottom:0;
}
.hipaa .hrow>div {
  flex:1;
  min-width:0;
}
.hipaa .hrow>div b {
  display:block;
  font-size:13.5px;
  margin-bottom:2px;
}
.hipaa .lock {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  color:var(--amberink);
  background:var(--amberbg);
  border-radius:7px;
  padding:8px 10px;
}
.baa {
  font:12.5px/1.5 var(--sans);
  background:var(--card2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 14px;
  max-height:280px;
  overflow:auto;
  color:var(--ink2);
}
.baa h4 {
  font-size:12.5px;
  margin:10px 0 4px;
  color:var(--ink);
}
.baa h4:first-child {
  font-size:14px;
  margin-top:0;
}
.baa p {
  margin:0 0 6px;
}
.baa .bl {
  padding-left:18px;
  text-indent:-18px;
  margin:2px 0;
}
.hlist {
  margin:10px 0 0 18px;
  font-size:13px;
  color:var(--ink2);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.tag.tbtn {
  border:0;
  cursor:pointer;
  font:inherit;
  font-size:inherit;
}
.tag.tbtn:hover {
  filter:brightness(.93);
}

.modal.signm {
  width:min(1060px,100%);
  min-width:0;
  max-width:100%;
  max-height:min(900px,calc(100dvh - 32px));
  height:calc(100dvh - 32px);
}
.sg-head {
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.sg-head>div {
  flex:1;
  min-width:0;
}
.sg-tools {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 16px;
  border-bottom:1px solid var(--line2);
  flex-wrap:wrap;
  flex:none;
  min-width:0;
  max-width:100%;
}
.sg-seg {
  display:inline-flex;
  background:var(--line2);
  border-radius:8px;
  padding:2px;
  gap:2px;
  flex:none;
}
.sg-seg button {
  border:0;
  background:none;
  border-radius:6px;
  padding:5px 10px;
  font:600 12px var(--sans);
  color:var(--sub);
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.sg-seg button[aria-pressed=true] {
  background:var(--card);
  color:var(--ink);
  box-shadow:0 1px 2px #0002;
}
.sg-marks {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.sg-mark {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:7px;
  padding:4px 9px;
  font:500 12px var(--sans);
  color:var(--ink2);
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.sg-mark[aria-pressed=true] {
  border-color:var(--tealline);
  background:var(--soft);
  color:var(--deep);
  font-weight:600;
}
.sg-mark.ghost {
  border-style:dashed;
  text-decoration:none;
  color:var(--sub);
}
.sg-brush {
  display:inline-flex;
  gap:4px;
}
.sg-brush button {
  width:30px;
  height:30px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:7px;
  display:grid;
  place-items:center;
  padding:0;
}
.sg-brush button i {
  display:block;
  border-radius:50%;
  background:var(--ink);
}
.sg-brush button[aria-pressed=true] {
  border-color:var(--tealline);
  background:var(--soft);
}
.sg-body {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:92px 1fr;
}
.sg-pages {
  border-right:1px solid var(--line2);
  overflow:auto;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  background:var(--card2);
  scrollbar-width:thin;
}
.sg-pages button {
  border:2px solid transparent;
  background:none;
  padding:2px;
  border-radius:6px;
  flex:none;
  cursor:pointer;
}
.sg-pages button.on {
  border-color:var(--teal);
}
.sg-pages canvas {
  display:block;
  width:100%;
  height:auto;
  background:#fff;
  box-shadow:0 1px 2px #0003;
}
.sg-pages small {
  display:block;
  text-align:center;
  font:500 10px var(--mono);
  color:var(--sub);
  margin-top:2px;
}
.sg-stage {
  position:relative;
  background:var(--stagebg);
  display:grid;
  place-items:center;
  padding:14px;
  min-width:0;
  min-height:0;
  overflow:hidden;
}
#sgc {
  background:#fff;
  box-shadow:0 4px 18px #0004;
  touch-action:none;
  display:block;
}
.sg-stage.draw #sgc {
  cursor:crosshair;
}
.sg-stage.stamp #sgc {
  cursor:copy;
}
.sg-hint {
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  font-size:11.5px;
  color:var(--sub);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px 10px;
  pointer-events:none;
  white-space:nowrap;
  max-width:calc(100% - 20px);
  overflow:hidden;
  text-overflow:ellipsis;
}
.sg-brush button[data-sgbrush="1"] i {
  width:5px;
  height:5px;
}
.sg-brush button[data-sgbrush="2"] i {
  width:8px;
  height:8px;
}
.sg-brush button[data-sgbrush="4"] i {
  width:14px;
  height:14px;
}
.sg-tools .spacer {
  flex:1;
}
.sg-ink {
  font-size:11.5px;
  align-self:center;
  margin-left:4px;
  color:var(--sub);
}
@media (max-width:900px) {
  .scrim:has(.signm) {
    padding:0;
  }
  .modal.signm {
    width:100%;
    height:100dvh;
    max-height:none;
    border-radius:0;
    padding-top:env(safe-area-inset-top,0px);
  }
  .sg-head {
    padding:12px 14px 10px;
  }
  .sg-head p {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .sg-tools {
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .sg-tools>* {
    flex:none;
  }
  .sg-marks {
    flex-wrap:nowrap;
  }
  .sg-tools .spacer {
    min-width:8px;
  }
  .sg-body {
    grid-template-columns:1fr;
    grid-template-rows:1fr 84px;
  }
  .sg-pages {
    flex-direction:row;
    border-right:0;
    border-top:1px solid var(--line2);
    order:2;
    padding:8px 10px;
  }
  .sg-pages button {
    width:52px;
  }
  .sg-hint {
    display:none;
  }
  .sg-tools {
    padding:6px 10px;
    gap:6px;
  }
}
.ctbl tr.sel td {
  background:var(--soft2);
}
.ctbl td.mono {
  white-space:nowrap;
}
.ctbl input[type=checkbox] {
  accent-color:var(--teal);
  width:15px;
  height:15px;
  margin:0;
}
#contactsHead .t {
  display:flex;
  align-items:center;
  gap:10px;
}
/* send dialog */
.modal.sendm {
  width:min(1000px,100%);
  max-height:min(760px,calc(100dvh - 32px));
}
.send-head {
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.send-steps {
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 0;
  padding:0;
  list-style:none;
}
.send-step {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--faint);
  font:700 10px var(--mono);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.send-step .disc {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border:1px solid var(--border4);
  border-radius:999px;
  font-size:10px;
}
.send-step[aria-current=step] {
  color:var(--ink);
}
.send-step[aria-current=step] .disc {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.send-step.done .disc {
  background:var(--soft);
  border-color:transparent;
  color:var(--teal);
}
.send-rule {
  flex:none;
  width:24px;
  height:1px;
  background:var(--line);
}
.send-body {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding-top:12px;
}
#sfErr:empty {
  display:none;
}
.send-stack {
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.send-cols {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  gap:20px;
  min-height:420px;
}
.send-label {
  font-weight:600;
  font-size:13px;
  color:var(--ink2);
}
.send-to {
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
  min-height:36px;
  padding:6px 10px;
  border:1px solid var(--border2);
  border-radius:8px;
  background:var(--card);
  cursor:text;
}
.send-to:focus-within {
  border-color:var(--teal);
}
.send-chips {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
  max-height:96px;
  overflow-y:auto;
}
.send-chips:empty {
  display:none;
}
.send-chips .chip button {
  border:0;
  background:none;
  color:var(--deep);
  opacity:.6;
  padding:0 2px 0 4px;
  font-size:12px;
  border-radius:50%;
}
.send-chips .chip button:hover {
  opacity:1;
}
.send-to input {
  width:100%;
  min-height:24px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  font:13.5px var(--sans);
}
.send-results {
  max-height:256px;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  box-shadow:0 12px 32px #13302d22;
  margin-top:6px;
}
.send-group {
  border-bottom:1px solid var(--line2);
}
.send-group:last-child {
  border-bottom:0;
}
.send-gt {
  margin:0;
  padding:6px 10px;
  background:var(--card2);
  font:700 10px var(--mono);
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--faint);
}
.send-opt {
  display:flex;
  flex-direction:column;
  min-height:36px;
  padding:6px 10px;
  cursor:pointer;
  font-size:13px;
  justify-content:center;
}
.send-opt small {
  color:var(--sub);
  font:11px var(--mono);
}
.send-opt:hover,.send-opt.on {
  background:var(--soft2);
}
.send-select {
  width:100%;
  min-height:36px;
  padding:6px 10px;
  border:1px solid var(--border2);
  border-radius:8px;
  background:var(--card);
  font:13.5px var(--sans);
  color:inherit;
}
.send-drop {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:88px;
  padding:16px;
  border:1px dashed var(--border5);
  border-radius:10px;
  background:var(--card2);
  text-align:center;
  cursor:pointer;
  margin-top:4px;
}
.send-drop .t {
  font-size:13.5px;
  font-weight:600;
  color:var(--ink);
}
.send-drop .s {
  font:500 11px var(--mono);
  color:var(--sub);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.send-drop:hover,.send-drop.drag {
  border-color:var(--teal);
  background:var(--soft2);
}
.send-files {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:8px 0 0;
  padding:0;
  list-style:none;
}
.send-files:empty {
  display:none;
}
.send-file {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:13px;
}
.send-file .fk {
  font:600 10px var(--mono);
  color:var(--sub);
  width:30px;
}
.send-file .nm {
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.send-file .sz {
  font:11px var(--mono);
  color:var(--sub);
  white-space:nowrap;
}
.send-file .iconbtn {
  width:26px;
  height:26px;
}
.send-refused {
  margin:0;
  font:600 11.5px var(--mono);
  color:var(--bad);
}
.send-card {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
}
.ml {
  margin:0;
  font:700 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
}
.send-preview {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-height:240px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--stripbg);
  overflow-y:auto;
  flex:1;
}
.send-preview img {
  display:block;
  width:100%;
  max-width:520px;
  height:auto;
  background:#fff;
  box-shadow:0 1px 3px #0002;
}
.send-foot {
  display:flex;
  gap:8px;
  align-items:center;
}
.send-foot .fgrow {
  flex:1;
}
.send-head .iconbtn {
  width:30px;
  height:30px;
}
@media (max-width:900px) {
  .modal.sendm {
    position:fixed;
    inset:0;
    width:100%;
    max-width:none;
    height:100dvh;
    max-height:none;
    border-radius:0;
    padding-top:env(safe-area-inset-top,0px);
  }
  .scrim:has(.sendm) {
    padding:0;
  }
  .send-cols {
    grid-template-columns:minmax(0,1fr);
    min-height:0;
  }
  .send-steps {
    flex-wrap:wrap;
  }
  .send-rule {
    width:12px;
  }
  .send-chips {
    max-height:168px;
  }
  .send-to {
    padding:0 10px;
  }
  .send-to:has(li) {
    padding:6px 10px;
  }
  .modal.sendm .btn,.send-to,.send-to input,.send-select,.send-opt,.send-file {
    min-height:44px;
  }
  .modal.sendm .send-head .iconbtn {
    width:44px;
    height:44px;
    margin:-7px;
  }
  .sfcheck {
    min-height:44px;
    margin:-13px 0;
  }
  .send-to input {
    margin:-1px 0;
    padding-bottom:6px;
  }
  .send-to:has(li) input {
    min-height:24px;
    margin:0;
    padding-bottom:0;
  }
  .send-foot {
    padding-bottom:max(12px,env(safe-area-inset-bottom));
  }
}
.systog {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  color:var(--ink2);
  margin-right:6px;
  white-space:nowrap;
}
.systog input {
  accent-color:var(--teal);
  margin:0;
}
.lib-ind {
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  overflow:hidden;
}
.lib-ind+.lib-ind {
  margin-top:10px;
}
.lib-h {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background:var(--card2);
  border-bottom:1px solid var(--line2);
}
.lib-h .ic {
  width:30px;
  height:30px;
  border-radius:8px;
  background:var(--soft);
  display:grid;
  place-items:center;
  font-size:15px;
  color:var(--deep);
  flex:none;
}
.lib-act {
  flex:none;
}
.lib-h b {
  font-size:14px;
}
.lib-h small {
  display:block;
  font-size:12px;
  color:var(--sub);
}
.lib-items {
  list-style:none;
  margin:0;
  padding:4px;
}
.lib-it {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:8px;
}
.lib-it:hover {
  background:var(--hover2);
}
.lib-it .fexp {
  width:28px;
  height:28px;
}
.lib-it .t {
  flex:1;
  min-width:0;
}
.lib-it .t b {
  font-size:13px;
  display:block;
}
.lib-it .t span {
  font-size:12px;
  color:var(--sub);
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lib-it .fk2 {
  font:11px var(--code);
  color:var(--sub);
  white-space:nowrap;
}
.lib-prev {
  margin:0 8px 8px 44px;
  border:1px solid var(--line2);
  border-radius:8px;
  padding:10px 12px;
  font-size:12.5px;
  background:var(--card2);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.lib-prev h5 {
  margin:0 0 4px;
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
}
.lib-prev pre {
  margin:0;
  white-space:pre-wrap;
  font:12px/1.5 var(--code);
  color:var(--ink2);
}
.lib-prev .fkeys {
  margin-top:2px;
}
.pill.ok {
  background:#e3f1ea;
  color:#1f6b4c;
}
@media (max-width:900px) {
  .lib-prev {
    grid-template-columns:1fr;
    margin-left:8px;
  }
  .lib-it .fk2 {
    display:none;
  }
}
.more {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px;
  font-size:12px;
  color:var(--sub);
}
.more.end {
  color:var(--faint);
}
.spin {
  width:14px;
  height:14px;
  border:2px solid var(--line);
  border-top-color:var(--teal);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
.ac {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px;
}
.ac-h {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
}
.ac-h h3 {
  font-size:14px;
}
.ac-h span {
  font-size:11.5px;
  color:var(--faint);
  white-space:nowrap;
}
.achart {
  width:100%;
  height:78px;
  display:block;
  margin-top:auto;
}
.axrow {
  display:flex;
  justify-content:space-between;
  font:500 10px var(--mono);
  color:var(--faint);
  margin-top:4px;
}
.seg {
  display:flex;
  height:12px;
  border-radius:6px;
  overflow:hidden;
  gap:2px;
  background:var(--line2);
}
.seg i {
  display:block;
  min-width:3px;
}
.legend {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.legend button,.rank button {
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  background:none;
  padding:6px 6px;
  border-radius:7px;
  text-align:left;
}
.legend button:hover,.rank button:hover {
  background:var(--hover2);
}
.legend button.on,.rank button.on {
  background:var(--soft);
}
.rank {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.av2 {
  width:26px;
  height:26px;
  border-radius:7px;
  background:var(--tealbg);
  color:var(--deep);
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:10.5px;
  flex:none;
}
.kind.via-ui {
  color:var(--teal);
}
.kind.via-ai {
  color:var(--via-ai);
}
.kind.via-api {
  color:var(--via-api);
}
.kind.via-job {
  color:var(--via-job);
}
.kind.via-ui,.kind.via-ai,.kind.via-api,.kind.via-job {
  border-color:color-mix(in srgb,currentColor 45%,transparent);
}
.acttbl .dayrow td {
  background:var(--card2);
  font:600 11px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
  padding:6px 20px;
}
.acttbl button.kind {
  cursor:pointer;
}
@media (max-width:900px) {
  .acttbl .dayrow td {
    padding:6px 12px;
  }
}
.money {
  display:flex;
  align-items:center;
  border:1px solid var(--border2);
  border-radius:8px;
  overflow:hidden;
  background:var(--card);
}
.money span {
  padding:0 10px;
  color:var(--sub);
  font-size:13px;
  border-right:1px solid var(--line2);
  align-self:stretch;
  display:grid;
  place-items:center;
  background:var(--card2);
}
.money input {
  border:0;
  outline:0;
  padding:8px 10px;
  flex:1;
  min-width:0;
  font:13.5px var(--sans);
}
.sethead .fmodes {
  margin-right:4px;
}
.mqlog {
  list-style:none;
  margin:0 0 0 72px;
  padding:0;
  border-left:2px solid var(--line);
}
.mqlog li {
  position:relative;
  display:block;
  padding:6px 0 6px 18px;
  font-size:13px;
  min-height:28px;
}
.mqlog .mqt {
  position:absolute;
  left:-74px;
  width:60px;
  text-align:right;
  font-size:11.5px;
  color:var(--sub);
  top:7px;
}
.mqlog .mqi {
  position:absolute;
  left:-9px;
  top:7px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--card);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-size:9px;
  color:var(--sub);
}
.mqlog li.mq-change .mqi {
  background:var(--amberbg);
  border-color:var(--amberink);
  color:var(--amberink);
}
.mqlog li.mq-started .mqi,.mqlog li.mq-ended .mqi {
  background:var(--soft);
  border-color:var(--teal);
  color:var(--teal);
}
.mqlog li.mq-change .mqtx {
  font-weight:600;
}
.mqlog .mqtx {
  min-width:0;
}
@media (max-width:900px) {
  .mqlog {
    margin-left:62px;
  }
  .mqlog .mqt {
    left:-64px;
    width:52px;
  }
}
.tokbox {
  display:flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:9px;
  padding:8px 10px;
  background:var(--card2);
}
.tokbox code {
  flex:1;
  min-width:0;
  font:12.5px var(--code);
  word-break:break-all;
  user-select:all;
}
.tokbox-big {
  padding:12px;
  border:1.5px solid var(--teal);
  background:var(--card);
}
.tokbox-big code {
  font-size:13.5px;
  line-height:1.5;
}
.tokbox-big .btn {
  flex:none;
  white-space:nowrap;
}
@media (max-width:520px) {
  .tokbox-big {
    flex-direction:column;
    align-items:stretch;
  }
}
.tk-ack {
  display:flex;
  gap:8px;
  align-items:center;
}
.tkonce-b {
  display:flex;
  flex-direction:column;
  gap:12px;
}
/* the once view drawn on the list, for a browser without htmx: the modal's parts in a card */
.tkonce-page {
  max-width:640px;
  padding:0;
  margin-bottom:16px;
}
.tkonce-page header {
  padding:18px 20px 12px;
  border-bottom:1px solid var(--line2);
}
.tkonce-page header h2 {
  font-size:18px;
}
.tkonce-page header p {
  color:var(--sub);
  font-size:12.5px;
  margin-top:3px;
}
.tkonce-page .mbody {
  padding:12px 20px;
}
.tkonce-page footer {
  padding:12px 20px;
  border-top:1px solid var(--line2);
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.tkonce-page footer .lft {
  margin-right:auto;
  font:500 11.5px var(--mono);
  color:var(--sub);
}
.tup-none {
  padding:6px;
}
.tse-nomatch {
  padding:8px 10px;
}
.tsw-num {
  font-weight:400;
  color:var(--sub);
}
.tn-sub {
  margin-top:-8px;
}
.tk-oncewarn.nudge {
  animation:tkNudge .45s ease;
}
@keyframes tkNudge {
  0%,100% {
    transform:none;
  }
  25% {
    transform:translateX(-5px);
  }
  75% {
    transform:translateX(5px);
  }
}
@media (prefers-reduced-motion:reduce) {
  .tk-oncewarn.nudge {
    animation:none;
    outline:2px solid var(--amberink);
    outline-offset:2px;
  }
}
.chips {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.gchip.more {
  background:none;
  border:1px dashed var(--border5);
  color:var(--sub);
  padding:3px 9px;
  cursor:pointer;
}
.gchip.more:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.glist {
  width:100%;
  border:1px solid var(--line2);
  border-radius:9px;
  background:var(--card2);
}
.glhead {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-bottom:1px solid var(--line2);
}
.glist ul {
  list-style:none;
  margin:0;
  padding:4px;
  max-height:300px;
  overflow:auto;
}
.glist li {
  display:flex;
  align-items:center;
  gap:4px;
}
.glist li .flink2 {
  flex:1;
  min-width:0;
}
.glist .iconbtn {
  width:26px;
  height:26px;
  font-size:12px;
}
.reach .rv {
  min-width:0;
}
.ftree,.tkids {
  list-style:none;
  margin:0;
  padding:0;
}
.trow {
  display:flex;
  align-items:center;
  gap:4px;
  padding:2px 6px 2px calc(2px + var(--d,0)*24px);
  border-radius:8px;
}
.trow:hover {
  background:var(--hover2);
}
.trow.nox {
  padding-left:6px;
}
.trow .flink {
  padding:5px 6px;
}
.fsteps {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  background:var(--card2);
}
.fsteps li+li {
  border-left:1px solid var(--line);
}
.fsteps button {
  width:100%;
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 11px;
  text-align:left;
  color:var(--sub);
}
.fsteps b {
  font-size:12.5px;
  color:var(--ink2);
}
.fsteps small {
  font-size:11.5px;
  color:var(--faint);
}
.fsn {
  width:22px;
  height:22px;
  border-radius:50%;
  border:1.5px solid var(--border4);
  display:grid;
  place-items:center;
  font:600 11px var(--mono);
  flex:none;
}
.fsteps li.on {
  background:var(--card);
  box-shadow:inset 0 -2px 0 var(--teal);
}
.fsteps li.on .fsn {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.fsteps li.done .fsn {
  border-color:var(--teal);
  color:var(--teal);
}
.fsteps li.done small {
  color:var(--ink2);
}
.fstepbody {
  border-top:1px solid var(--line2);
  padding-top:12px;
}
.fstepnav {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line2);
  padding-top:10px;
}
.fstepnav .fnote2 {
  flex:1;
  text-align:center;
}
.fpicker.one .fpcheck {
  border-radius:50%;
}
.fpicker .fplist {
  max-height:260px;
}
.reach {
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:var(--card);
}
.reach>div {
  display:grid;
  grid-template-columns:120px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px 12px;
  border-top:1px solid var(--line2);
}
.reach>div:first-child {
  border-top:0;
}
.reach .rk {
  font-size:12.5px;
  font-weight:600;
}
.reach .rk small {
  display:block;
  font-weight:400;
  font-size:11px;
  color:var(--sub);
}
.reach .rv {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.gchip {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  font-weight:600;
  background:var(--soft);
  color:var(--deep);
  border:0;
  border-radius:12px;
  padding:3px 6px 3px 9px;
}
.gchip .faint {
  color:var(--sub);
}
/* faint misses 4.5:1 on the chip's --soft */
.gchip button {
  border:0;
  background:none;
  color:var(--deep);
  opacity:.6;
  padding:0 3px;
  font-size:11px;
  border-radius:50%;
}
.gchip button:hover {
  opacity:1;
  background:var(--tealbg);
}
.who {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
}
.who summary {
  padding:9px 12px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  gap:8px;
}
.who summary::-webkit-details-marker {
  display:none;
}
.who summary .faint {
  font-weight:400;
  font-size:12px;
}
.who ul {
  list-style:none;
  margin:0;
  padding:0 8px 8px;
  border-top:1px solid var(--line2);
  max-height:320px;
  overflow:auto;
}
.who li {
  display:flex;
  gap:10px;
  align-items:baseline;
  padding:5px 6px;
  font-size:12.5px;
  border-radius:6px;
}
.who li:hover {
  background:var(--soft2);
}
.who li b {
  font-weight:600;
  white-space:nowrap;
}
.who li span {
  color:var(--sub);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.etab {
  width:100%;
  border-collapse:collapse;
  font-size:12.5px;
}
.etab th {
  text-align:left;
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:6px 8px;
  border-bottom:1px solid var(--line);
}
.etab td {
  padding:7px 8px;
  border-bottom:1px solid var(--line2);
  vertical-align:top;
}
.etab tr.click {
  cursor:pointer;
}
.etab tr.click:hover td {
  background:var(--soft2);
}
@media (max-width:900px) {
  .fsteps {
    grid-template-columns:1fr;
  }
  .fsteps li+li {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .reach>div {
    grid-template-columns:minmax(0,1fr) auto;
    gap:6px;
  }
  .reach .rk {
    grid-column:1/-1;
  }
  .reach>div:has(.glist:not([hidden])) {
    grid-template-columns:1fr;
  }
  .reach>div:has(.glist:not([hidden]))>.btn {
    justify-self:start;
  }
  .glhead {
    flex-wrap:wrap;
  }
  .glhead .fpsearch {
    flex-basis:100%;
  }
  .glhead .fnote2 {
    white-space:nowrap;
    margin-right:auto;
  }
  .glist {
    min-width:0;
    max-width:100%;
  }
  .reach .rv {
    display:block;
  }
  .fstepnav .fnote2 {
    display:none;
  }
}
.chain {
  display:flex;
  align-items:stretch;
  gap:0;
  flex-wrap:wrap;
  margin:4px 0;
}
.node {
  border:1px solid var(--line);
  border-radius:9px;
  padding:10px 12px;
  background:var(--card);
  min-width:130px;
  flex:1;
}
.node small {
  display:block;
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin-bottom:4px;
}
.node b {
  font-size:13px;
}
.node .sub {
  font-size:11.5px;
  color:var(--sub);
  margin-top:2px;
}
.arr {
  align-self:center;
  color:var(--faint);
  padding:0 8px;
  font-size:16px;
}
.flow {
  border:1px solid var(--line);
  border-radius:11px;
  overflow:hidden;
}
.flow+.flow {
  margin-top:10px;
}
.switch {
  position:relative;
  width:30px;
  height:17px;
  border-radius:10px;
  background:var(--switchbg);
  border:0;
  flex:none;
  padding:0;
}
.switch::after {
  content:"";
  position:absolute;
  width:13px;
  height:13px;
  border-radius:50%;
  background:var(--knob);
  top:2px;
  left:2px;
  transition:left .15s;
}
.switch[aria-checked=true] {
  background:var(--teal);
}
.switch[aria-checked=true]::after {
  left:15px;
}

/* contacts, send, assistant */
.page {
  flex:1;
  overflow:auto;
  background:var(--card);
}
.grid2 {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.drop {
  border:1.5px dashed var(--tealline3);
  border-radius:10px;
  padding:26px;
  text-align:center;
  color:var(--sub);
  background:var(--card2);
}
.chat {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bub {
  max-width:80%;
  padding:10px 13px;
  border-radius:11px;
  font-size:13px;
  line-height:1.55;
}
.bub.me {
  margin-left:auto;
  background:var(--teal);
  color:var(--onteal);
}
.bub.ai {
  background:var(--soft2);
  color:var(--ink2);
}
.cite {
  font:500 11px var(--mono);
  background:var(--amberbg);
  color:var(--amberink);
  border-radius:4px;
  padding:1px 5px;
  border:0;
  cursor:pointer;
}

.toast {
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(20px + env(safe-area-inset-bottom,0px));
  background:var(--toastbg);
  color:var(--ontoast);
  padding:10px 16px;
  border-radius:9px;
  font-size:12.5px;
  z-index:90;
  display:flex;
  gap:12px;
  align-items:center;
  box-shadow:0 10px 30px #0b252344;
}
.toast[hidden] {
  display:none;
}
.toast button {
  border:0;
  background:none;
  color:var(--amber);
  font-weight:700;
  padding:0;
}

@media (min-width:901px) {
  .shell {
    transition:grid-template-columns .18s;
  }
  .shell.rail {
    grid-template-columns:60px minmax(0,1fr);
  }
  .shell.rail .side {
    width:60px;
    position:relative;
    z-index:45;
    overflow:hidden;
  }
  .shell.rail .side .side-scroll {
    padding:16px 8px;
  }
  .shell.rail .side .navbtn {
    font-size:0;
    justify-content:center;
    padding:9px 0;
    gap:0;
  }
  .shell.rail .side .scope,.shell.rail .side .user,.shell.rail .collapse {
    gap:0;
  }
  .shell.rail .side .scope .av,.shell.rail .side .user .av {
    margin:0 auto;
  }
  .shell.rail .side .navbtn .ic {
    font-size:15px;
    width:auto;
  }
  .shell.rail .side .navbtn .ct:not(.new) {
    display:none;
  }
  .shell.rail .side .navbtn .ct.new {
    position:absolute;
    margin:-18px 0 0 22px;
    font-size:9px;
    padding:0 4px;
  }
  .shell.rail .side .navbtn {
    position:relative;
  }
  .shell.rail .side .navlabel,.shell.rail .side .scope .grow,.shell.rail .side .scope .chev,.shell.rail .side .user .grow,.shell.rail .side .user .uchev,.shell.rail .side #typenav {
    display:none;
  }
  .shell.rail .side .scope {
    padding:0;
    justify-content:center;
    width:40px;
    height:40px;
    margin:6px auto 4px;
    border-radius:10px;
  }
  .shell.rail .side .scope .av {
    width:24px;
    height:24px;
    border-radius:7px;
    background:none;
    color:var(--teal);
  }
  .shell.rail .side .scope .av .li {
    width:18px;
    height:18px;
  }
  .shell.rail .side .brand {
    font-size:0;
    justify-content:center;
    padding:6px 0;
  }
  .shell.rail .side .brand>span {
    display:none;
  }
  .shell.rail .side .brand>.bx {
    display:inline;
    font-size:24px;
  }
  .shell.rail .side .side-foot {
    padding:10px 8px;
  }
  .shell.rail .side .user {
    justify-content:center;
    padding:6px 0;
  }
  .shell.rail .side-foot {
    position:static;
  }
}
.side-set {
  display:none;
}
.side-set .back {
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:none;
  padding:8px 10px;
  font-weight:600;
  color:var(--teal);
  font-size:13px;
  border-radius:7px;
  width:100%;
  text-align:left;
}
.side-set .back:hover {
  background:var(--hover);
}
.side-set h2 {
  font-size:18px;
  padding:0 10px;
}
/* phone bottom bar, drawer */
.tabbar {
  display:none;
}
.drawer-scrim {
  display:none;
}
.mbulk {
  display:none;
}

@media (max-width:1100px) {
  .row {
    grid-template-columns:28px 10px minmax(120px,170px) minmax(0,1fr) auto;
  }
  .row .meta .to {
    display:none;
  }
}
@media (max-width:900px) {
  .shell {
    grid-template-columns:1fr;
  }
  .side {
    position:fixed;
    inset:0 auto 0 0;
    width:min(300px,86vw);
    z-index:80;
    transform:translateX(-105%);
    visibility:hidden;
    transition:transform .2s,visibility 0s .2s;
    box-shadow:0 0 50px #0b252340;
  }
  .shell.drawer .side {
    transform:none;
    visibility:visible;
    transition:transform .2s;
  }
  .shell.drawer .drawer-scrim {
    display:block;
    position:fixed;
    inset:0;
    background:var(--scrim);
    z-index:79;
  }
  .top .burger {
    display:grid;
  }
  .rhead {
    flex-wrap:nowrap;
    gap:6px;
  }
  .rhead .fsw {
    min-width:0;
  }
  .rhead .fsearch kbd {
    display:none;
  }
  .top {
    padding:0 max(12px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));
    gap:6px;
    height:56px;
  }
  .top .sendbtn {
    display:none;
  }
  .search {
    height:38px;
  }
  .search .scope-tag,.search kbd {
    display:none;
  }
  .viewtitle {
    display:none;
  }
  .viewtitle small {
    display:none;
  }
  .main {
    height:100%;
    padding-bottom:calc(var(--tab) + env(safe-area-inset-bottom,0px));
  }
  body.reading {
    --tab:0px;
  }
  body.reading .tabbar {
    display:none;
  }
  .tabbar {
    display:grid;
    grid-template-columns:repeat(5,1fr);
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:50;
    background:var(--card);
    border-top:1px solid var(--line);
    height:calc(var(--tab) + env(safe-area-inset-bottom,0px));
    padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  }
  .tabbar button {
    border:0;
    background:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    font-size:10.5px;
    font-weight:600;
    color:var(--sub);
    position:relative;
  }
  .tabbar button .ic {
    font-size:18px;
    line-height:1;
  }
  .tabbar button.on {
    color:var(--teal);
  }
  .tabbar .badge {
    position:absolute;
    top:7px;
    left:calc(50% + 6px);
    background:var(--teal);
    color:var(--onteal);
    font:600 9.5px var(--mono);
    border-radius:8px;
    padding:0 4px;
  }
  .tabbar .compose .ic {
    background:var(--teal);
    color:var(--onteal);
    width:40px;
    height:30px;
    border-radius:9px;
    display:grid;
    place-items:center;
    font-size:15px;
  }
  .listbar {
    display:flex;
    align-items:center;
    border-bottom:1px solid var(--line);
    background:var(--card2);
  }
  .listhead {
    padding:6px 0 6px 12px;
    border:0;
    min-height:0;
    flex:none;
    background:none;
  }
  .listhead .spacer,#refresh {
    display:none;
  }
  .listbar .filters {
    border:0;
    flex:1;
    min-width:0;
    padding-left:8px;
  }
  .bulk {
    display:none;
  }
  .selcount {
    display:none;
  }
  .filters {
    padding:6px 12px;
  }
  .filters .end .fbtn .k {
    display:none;
  }
  .row {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    height:auto;
    padding:9px 12px 9px 14px;
    gap:2px 8px;
    align-items:start;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    user-select:none;
  }
  .row input {
    display:none;
  }
  .row .from {
    grid-column:1!important;
  }
  .row .line {
    grid-column:1/3!important;
  }
  .row .meta {
    grid-column:2!important;
  }
  .selmode .row {
    grid-template-columns:24px minmax(0,1fr) auto;
    padding-left:8px;
  }
  .selmode .row input {
    display:block;
  }
  .selmode .row .from {
    grid-column:2!important;
  }
  .selmode .row .line {
    grid-column:2/4!important;
  }
  .selmode .row .meta {
    grid-column:3!important;
  }
  .listbar .listhead {
    display:none!important;
  }
  .list:not(.selmode) .filters .selall {
    display:none;
  }
  .row input {
    grid-row:1/3;
    margin:3px 0 0 4px;
    width:18px;
    height:18px;
  }
  .row .dot {
    position:absolute;
    left:3px;
    top:15px;
    width:6px;
    height:6px;
  }
  .row .from {
    grid-column:2;
    font-size:14px;
  }
  .row .from small {
    display:none;
  }
  .row .line {
    grid-column:2/4;
    grid-row:2;
    font-size:12.5px;
    flex-wrap:nowrap;
  }
  .row .meta {
    grid-column:3;
    grid-row:1;
    gap:6px;
  }
  .row .meta .pg {
    display:none;
  }
  .row .meta .when {
    width:auto;
  }
  .mbulk {
    display:flex;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:55;
    background:var(--toastbg);
    color:var(--ontoast);
    height:calc(var(--tab) + env(safe-area-inset-bottom,0px));
    padding:0 max(8px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left,0px));
    align-items:center;
    gap:2px;
  }
  .mbulk[hidden] {
    display:none;
  }
  .mbulk .cnt {
    font:600 13px var(--mono);
    margin-right:auto;
  }
  .mact {
    border:0;
    background:none;
    color:var(--ontoast);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    font-size:10.5px;
    font-weight:600;
    padding:4px 8px;
    border-radius:8px;
    min-width:52px;
  }
  .mact .ai {
    font-size:16px;
    line-height:1;
  }
  .mact:hover {
    background:#ffffff1a;
  }
  .rhead {
    padding:8px 12px;
    align-items:start;
  }
  .ractions .wide {
    display:none;
  }
  .ractions .more {
    display:grid;
  }
  .fsearch {
    max-width:none;
  }
  .rtabs-m {
    display:flex;
    flex:none;
    border-bottom:1px solid var(--line);
    background:var(--card);
  }
  .rtabs-m button {
    flex:1;
    border:0;
    background:none;
    padding:10px 0;
    font-weight:600;
    font-size:12.5px;
    color:var(--sub);
    border-bottom:2px solid transparent;
  }
  .rtabs-m button.on {
    color:var(--deep);
    border-color:var(--teal);
  }
  .rtabs-m button {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    padding:8px 2px 7px;
    font-size:11px;
    flex:1 1 0;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .rtabs-m button>.li {
    width:16px;
    height:16px;
  }
  .panes {
    grid-template-columns:1fr;
  }
  .panes .pane {
    display:none;
  }
  .panes[data-m=orig] .pages {
    display:flex;
  }
  .panes:not([data-m=orig]) .review {
    display:flex;
  }
  .panes .rtabs {
    display:none;
  }
  .stage {
    --sp:10px;
  }
  .paper {
    padding:18px 16px;
    min-height:0;
    font-size:12px;
  }
  .kv {
    grid-template-columns:1fr;
  }
  .item {
    grid-template-columns:1fr 1fr;
    gap:4px 10px;
  }
  .item.h {
    display:none;
  }
  .item .k {
    display:block;
    font:600 9.5px var(--mono);
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--faint);
  }
  .item>div:first-child {
    grid-column:1/-1;
    font-weight:600;
  }
  .setwrap {
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr);
  }
  .setnav {
    display:none;
  }
  .setsel {
    display:none;
  }
  .shell.inset .side-set {
    display:flex;
    flex-direction:column;
    gap:12px;
    flex:1;
    min-height:0;
    overflow:auto;
    padding:12px 10px;
  }
  .shell.inset .side-scroll {
    display:none;
  }
  .shell.inset .side-foot>.navbtn,.shell.inset .side-foot>.fsep {
    display:none;
  }
  .setsel select {
    width:100%;
    border:1px solid var(--line);
    border-radius:8px;
    padding:9px 10px;
    background:var(--card);
    font-weight:600;
  }
  .sethead {
    padding:8px 12px;
    flex-wrap:wrap;
  }
  .sethead .t p {
    display:none;
  }
  .sethead .t p:has(button),.sethead .t p:has(a.btn) {
    display:block;
    white-space:normal;
    flex-basis:100%;
  }
  .minisearch {
    width:100%;
  }
  .tbl .hide-m {
    display:none;
  }
  .tbl .first {
    padding-left:12px;
  }
  .tbl .last {
    padding-right:12px;
  }
  /* a long name, email or value breaks where it must, so no row sets a table wider than the phone */
  .tbl td {
    overflow-wrap:anywhere;
  }
  .cards {
    padding:12px;
    grid-template-columns:1fr;
  }
  .pad {
    padding:12px;
  }
  .grid2 {
    grid-template-columns:minmax(0,1fr);
  }
  .usermenu {
    left:8px!important;
    right:8px;
    width:auto;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  }
  .toast {
    bottom:calc(var(--tab) + 12px + env(safe-area-inset-bottom,0px));
  }
}
@media (min-width:901px) {
  .ractions .more {
    display:none;
  }
  .askfab.askfab:not(.global) {
    display:none;
  }
  body:not(.askhidden) .chatc {
    padding-bottom:28px;
  }
}
.askfab {
  position:fixed;
  right:14px;
  bottom:calc(var(--tab) + 14px + env(safe-area-inset-bottom,0px));
  z-index:70;
  border:0;
  border-radius:24px;
  height:44px;
  padding:0 16px;
  background:var(--teal);
  color:var(--onteal);
  font:600 14px var(--sans);
  box-shadow:0 8px 24px #0d5f6655;
  display:flex;
  align-items:center;
  gap:6px;
}
.askfab:active {
  transform:scale(.97);
}
#reader:has(.panes[data-m=orig]) .askfab {
  bottom:calc(var(--tab) + 88px + env(safe-area-inset-bottom,0px));
}
#reader:has(.panes[data-m=chat]) .askfab {
  display:none;
}
/* ===================== final draft additions ===================== */
/* "Where am I?" pane (ported from the tutorial variant), coloured like the blueprint */
.waiq {
  border:1px solid var(--border2)!important;
  width:32px!important;
  height:32px!important;
  color:var(--sub);
}
.waiq[aria-pressed=true] {
  background:var(--soft);
  border-color:var(--tealline)!important;
  color:var(--deep);
}
.setmain.has-wai {
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(252px,21vw,296px);
  grid-template-rows:auto auto minmax(0,1fr);
}
.setmain.has-wai.wai-col {
  grid-template-columns:minmax(0,1fr) 44px;
}
.setmain.has-wai>.sethead {
  grid-column:1/-1;
  grid-row:1;
}
.setmain.has-wai>.setbody {
  grid-column:1;
  grid-row:3;
}
.setmain.has-wai>.fpage {
  display:contents;
}
.setmain.has-wai:not(:has(.sethead))>.wai {
  grid-row:1/-1;
}
.wai {
  grid-column:2;
  grid-row:3;
  border-left:1px solid var(--line);
  background:var(--card2);
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
  overflow:hidden;
}
.wai-h {
  display:flex;
  align-items:center;
  gap:2px;
  padding:8px 8px 8px 14px;
  border-bottom:1px solid var(--line2);
  flex:none;
  min-height:48px;
}
.wai-ttl {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  background:none;
  padding:4px 0;
  text-align:left;
  color:var(--ink);
}
.wai-ttl>.li {
  color:var(--teal);
  width:16px;
  height:16px;
  flex:none;
}
.wai-ttl>span {
  font:700 14px var(--disp);
  letter-spacing:-.01em;
  white-space:nowrap;
}
.wai-ttl small {
  display:none;
  font-size:12px;
  color:var(--sub);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.wai-h .iconbtn {
  width:30px;
  height:30px;
  color:var(--sub);
}
.wai-b {
  flex:1;
  min-height:0;
  overflow:auto;
  padding:14px 14px 44px;
  display:flex;
  flex-direction:column;
  gap:14px;
  scrollbar-width:thin;
}
.wai-lead {
  font-size:12.5px;
  color:var(--ink2);
  line-height:1.5;
  margin:0;
}
.wai-lead b {
  display:block;
  font:700 15px var(--disp);
  letter-spacing:-.01em;
  color:var(--ink);
  margin-bottom:3px;
}
.wai-sum {
  font-size:12px;
  color:var(--ink2);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  padding:7px 9px;
  line-height:1.45;
  margin:0;
}
.wai-sum b {
  color:var(--ink);
}
.wai-sum.tr {
  border-color:var(--calloutline);
  background:var(--amberbg);
  color:var(--amberink);
}
.wai-chain {
  list-style:none;
  margin:0;
  padding:0;
}
.wai-p {
  position:relative;
  padding:0 0 12px 24px;
}
.wai-p::before {
  content:"";
  position:absolute;
  left:6px;
  top:16px;
  bottom:-1px;
  width:2px;
  background:var(--line);
}
.wai-p:last-child {
  padding-bottom:0;
}
.wai-p:last-child::before {
  display:none;
}
.wai-dot {
  position:absolute;
  left:0;
  top:4px;
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid var(--lc-green);
  background:var(--card2);
  display:grid;
  place-items:center;
}
.wai-p[data-k=num] .wai-dot {
  border-radius:4px;
  border:0;
  background:var(--soft);
  color:var(--teal);
}
.wai-p[data-k=tpl] .wai-dot {
  border-radius:4px;
  border:0;
  background:var(--teal);
  color:var(--onteal);
}
.wai-p[data-k=num] .wai-dot .li,.wai-p[data-k=tpl] .wai-dot .li {
  width:9px;
  height:9px;
}
.wai-p[data-k=flow] .wai-dot {
  border-radius:3px;
  border:0;
  background:linear-gradient(var(--lc-green),var(--lc-green)) center/100% 2.5px no-repeat;
}
.wai-p[data-k=dt] .wai-dot {
  background:var(--lc-green);
}
.wai-p[data-k=int] .wai-dot {
  width:12px;
  height:12px;
  left:1px;
  top:5px;
}
.wai-p.is-here .wai-dot {
  box-shadow:0 0 0 3px var(--tealbg2),0 0 0 4.5px var(--teal);
}
.wai-p.is-here::before {
  background:var(--tealline2);
}
.wai-pn {
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  background:none;
  padding:2px 6px;
  margin-left:-6px;
  border-radius:6px;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink2);
  width:calc(100% + 6px);
  text-align:left;
}
a.wai-pn,a.wai-chip {
  text-decoration:none;
}
.wai-pn:hover {
  background:var(--hover);
  color:var(--ink);
}
.wai-pn .ct {
  margin-left:auto;
  font:500 11px var(--mono);
  color:var(--faint);
}
.wai-you {
  margin-left:auto;
  font:600 9.5px var(--mono);
  font-style:normal;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--teal);
  white-space:nowrap;
}
.wai-p.is-here .wai-pn {
  color:var(--deep);
}
.wai-rec {
  margin-top:4px;
  background:var(--soft);
  border:1px solid var(--tealline2);
  border-radius:8px;
  padding:6px 9px;
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.wai-rec b {
  font-size:13px;
  overflow-wrap:anywhere;
}
.wai-rec small {
  font-size:11.5px;
  color:var(--sub);
}
.wai-nb {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
}
.wai-chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:6px;
  padding:2px 7px;
  font-size:12px;
  color:var(--ink2);
  max-width:100%;
  min-width:0;
  text-align:left;
}
.wai-chip>span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.wai-chip .cd {
  width:8px;
  height:8px;
  border-radius:50%;
  flex:none;
  background:var(--lc,var(--lc-other));
}
.wai-chip .cd.ring {
  background:none;
  border:1.5px solid var(--lc,var(--sub));
}
.wai-chip .cd.ln {
  border-radius:2px;
  height:3px;
  width:10px;
}
.wai-chip>.li {
  width:11px;
  height:11px;
  color:var(--sub);
  flex:none;
}
.wai-chip .n {
  font:500 10.5px var(--mono);
  color:var(--faint);
  flex:none;
}
.wai-chip:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.wai-chip.more {
  border-style:dashed;
  color:var(--sub);
}
.wai-none {
  display:block;
  font-size:12px;
  color:var(--faint);
  margin-top:3px;
}
.wai-hint {
  font-size:12px;
  color:var(--sub);
  margin:-4px 0 0;
}
.wai-hint.uses {
  margin:0 0 6px;
}
.wai-uses {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
}
.wai-uses li {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--sub);
}
.wai-uses li .wai-chip {
  flex:0 1 auto;
}
.wai-uses li .ct {
  margin-left:auto;
  font:500 11px var(--mono);
  color:var(--faint);
  white-space:nowrap;
}
.wai-uses {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
}
.wai-uses li {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--sub);
}
.wai-uses li .wai-chip {
  flex:0 1 auto;
}
.wai-uses li .ct {
  margin-left:auto;
  font:500 11px var(--mono);
  color:var(--faint);
  white-space:nowrap;
}
.wai-f {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  border-top:1px solid var(--line2);
  padding-top:12px;
}
.wai-rail {
  flex:1;
  border:0;
  background:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:14px 0;
  color:var(--sub);
  font:600 12.5px var(--sans);
}
.wai-rail>.li {
  color:var(--teal);
  width:17px;
  height:17px;
}
.wai-rail span {
  writing-mode:vertical-rl;
}
.wai-rail:hover {
  background:var(--hover);
  color:var(--deep);
}
.wai[hidden],.setmain:not(.has-wai)>.wai {
  display:none;
}
.wai:not(.is-col) .wai-rail,.wai.is-col .wai-b,.wai .wai-m {
  display:none;
}
@media (min-width:901px) {
  .wai.is-col .wai-h {
    display:none;
  }
  .wai-ttl {
    pointer-events:none;
  }
}
@media (max-width:900px) {
  .setmain.has-wai,.setmain.has-wai.wai-col {
    display:flex;
  }
  .wai {
    position:fixed;
    left:0;
    right:0;
    bottom:calc(var(--tab) + env(safe-area-inset-bottom,0px));
    z-index:45;
    max-height:min(64dvh,560px);
    border:1px solid var(--line);
    border-bottom:0;
    border-radius:14px 14px 0 0;
    box-shadow:0 -10px 30px #0d2b2a2e;
  }
  .wai-h {
    padding:6px 6px 6px 14px;
    border-bottom-color:var(--line2);
  }
  .wai.is-col .wai-h {
    border-bottom:0;
  }
  .wai-ttl small {
    display:block;
  }
  .wai .wai-rail,.wai .wai-d {
    display:none;
  }
  .wai.is-col .wai-up,.wai:not(.is-col) .wai-dn {
    display:inline;
  }
  .wai-ttl small::before {
    content:"· ";
    color:var(--faint);
  }
  .wai-b {
    padding:12px 14px 20px;
  }
  .setmain.has-wai .setbody {
    padding-bottom:52px;
  }
}

/* sender's and recipient's fax machines */
.bp-sender,.bp-hd.c0 {
  display:none;
}
.bp-fax {
  width:34px;
  height:34px;
  border-radius:10px;
  border:2px solid var(--border4);
  background:var(--card);
  color:var(--ink2);
  display:grid;
  place-items:center;
  flex:none;
  transition:box-shadow .2s,border-color .2s,color .2s;
}
.bp-fax .li {
  width:18px;
  height:18px;
}
.bp-sender {
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:5px;
  min-width:0;
  padding-top:4px;
  transition:opacity .25s;
}
.bp-sender b {
  font-size:11.5px;
  font-weight:600;
  color:var(--ink);
  line-height:1.3;
  overflow-wrap:anywhere;
}
.bp-sender small {
  display:block;
  font-size:10.5px;
  color:var(--sub);
  line-height:1.3;
}
.bp-sender .bp-lb {
  align-items:center;
}
.bp-sender.on .bp-fax {
  border-color:var(--amber);
  color:var(--amberink);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--amber) 32%,transparent);
}
.bp.tracing .bp-sender:not(.on) {
  opacity:.4;
}
.bp-wires path.phone {
  stroke:var(--border5);
  stroke-dasharray:1.5 5;
  stroke-width:2.25;
}
.bp.tracing .bp-wires path.phone.on {
  stroke:var(--amber);
  opacity:1;
  animation:bpdash .7s linear infinite;
}
@keyframes bpdash {
  to {
    stroke-dashoffset:-13;
  }
}
.bp-from {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:10.5px;
  font-weight:600;
  color:var(--amberink);
  white-space:normal;
  line-height:1.3;
  margin-top:2px;
}
.bp-from .li {
  width:11px;
  height:11px;
  flex:none;
}
.bp-fromall {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  color:var(--faint);
  line-height:1.3;
}
.bp-fromall .li {
  width:13px;
  height:13px;
  flex:none;
  color:var(--sub);
}
.bp-fromall {
  margin-bottom:2px;
  flex-basis:100%;
}
@container (min-width:890px) {
  .bp-grp .bp-c1,.bp-grp .bp-hd.c1 {
    grid-column:3;
  }
  .bp-grp .bp-c3,.bp-grp .bp-hd.c3 {
    grid-column:5;
  }
  .bp-grp .bp-c5,.bp-grp .bp-hd.c5 {
    grid-column:7;
  }
  .bp-hd.c0 {
    display:block;
    grid-column:1;
  }
  .bp-hd.c0 {
    text-align:center;
  }
  .bp-sender {
    display:flex;
    grid-column:1;
    grid-row:3;
  }
  .bp-from,.bp-fromall {
    display:none!important;
  }
}
@container (min-width:890px) and (max-width:1079px) {
  .bp-grp {
    grid-template-columns:90px 24px 108px 28px 128px 40px minmax(0,1fr);
    min-width:850px;
  }
}
@container (min-width:1080px) {
  .bp-grp {
    grid-template-columns:104px 30px 140px 40px 156px 52px minmax(500px,1fr);
    min-width:1030px;
  }
}
/* middle tier: hubs stack, lanes stay a left-to-right subway */
@container (min-width:470px) and (max-width:729px) {
  .bp-hd .h {
    display:flex;
  }
  .bp-hd .v {
    display:none;
  }
  .bp-hd .bp-lhd {
    padding-left:30px;
    gap:3px;
  }
  .bp-lhd span {
    width:clamp(78px,17.5cqw,104px);
  }
  .bp-lhd span:last-child {
    width:auto;
    flex:1;
    text-align:left;
    padding-left:12px;
  }
  .out .bp-lhd span:nth-child(3) {
    width:clamp(58px,13.5cqw,80px);
  }
  .bp-lane {
    flex-direction:row;
    align-items:flex-start;
    gap:3px;
    padding:4px 0 6px;
  }
  .bp-st,.bp-st.dt,.bp-st.ex {
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:5px;
    padding:2px 2px 4px;
  }
  .bp-st {
    width:clamp(58px,13.5cqw,80px);
  }
  .bp-st.dt,.bp-st.ex {
    width:clamp(78px,17.5cqw,104px);
  }
  .bp-st.bundle {
    --bx:17px;
    width:clamp(72px,16cqw,104px);
    flex-wrap:nowrap;
  }
  .bp-st.bundle.open {
    width:200px;
  }
  .bp-bh {
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:5px;
  }
  .bp-st.bundle.open .bp-bh {
    flex-direction:row;
    align-items:center;
    text-align:left;
    gap:8px;
  }
  .bp-k {
    display:none;
  }
  .bp-lb b {
    -webkit-line-clamp:2;
    font-size:11.5px;
  }
  .bp-lb small {
    white-space:nowrap;
    font-size:10.5px;
  }
  .bp-st[data-tb]::after {
    left:calc(50% + 10px);
    right:auto;
    top:-7px;
    transform:none;
  }
  .bp-canvas {
    overflow-x:auto;
  }
}
/* empty lane: the skeleton of what a flow will be */
.bp-empty {
  border:1.5px dashed var(--tealline);
  border-radius:12px;
  background:color-mix(in srgb,var(--soft2) 70%,transparent);
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.bp-empty .bp-lane {
  padding:2px 0 0;
}
.bp-empty .bp-st {
  cursor:pointer;
}
.bp-emptycta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
}
.bp-emptycta p {
  font-size:12px;
  color:var(--sub);
  margin:0;
  flex:1 1 220px;
  min-width:0;
  line-height:1.45;
}
.bp-emptycta .btn {
  padding:8px 14px;
}
.bp-numph {
  display:flex;
  flex-direction:column;
  gap:6px;
  border:1.5px dashed var(--border4);
  border-radius:9px;
  padding:8px;
  min-width:0;
  font-size:11.5px;
  color:var(--sub);
  line-height:1.35;
}
.bp-numph b {
  color:var(--ink2);
  font-size:12px;
}
.bp-numph .btn {
  align-self:flex-start;
  padding:4px 7px;
  font-size:11.5px;
  gap:4px;
  max-width:100%;
}
.bp-sorter.unnamed .bp-sorter-h b {
  color:var(--faint);
  font-style:italic;
  font-weight:600;
}
.bp-sorter.unnamed {
  border-style:dashed;
}
/* always-visible template details above the blueprint */
.bp-det {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  padding:10px 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:flex-end;
}
.bp-det>.field {
  flex:1 1 200px;
  min-width:0;
}
.bp-det>.field.wide {
  flex:2 1 280px;
}
.bp-det .field input {
  padding:7px 10px;
}
.bp-det .fsw2 {
  flex:0 1 auto;
  padding-bottom:6px;
}
.bp-det .fsw2 .fnote2 {
  display:none;
}
.field.invalid input {
  border-color:var(--bad);
  box-shadow:0 0 0 3px var(--badbg);
}
.ferr {
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--bad)!important;
  font-size:12px!important;
  font-weight:600;
}
.ferr .li {
  width:13px;
  height:13px;
  flex:none;
}
/* new template: numbered setup */
.nt {
  border:1px solid var(--tealline2);
  border-radius:12px;
  background:var(--card);
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  container-type:inline-size;
}
.nt-h {
  display:flex;
  align-items:baseline;
  gap:6px 12px;
  flex-wrap:wrap;
}
.nt-h h2 {
  font-size:16px;
}
.nt-h p {
  font-size:12.5px;
  color:var(--sub);
  margin:0;
}
.nt-steps {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
.nt-s {
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  gap:6px 12px;
  align-items:center;
  padding:9px 10px;
  border-top:1px solid var(--line2);
  min-width:0;
}
.nt-s:first-child {
  border-top:0;
}
.nt-s.next {
  background:var(--soft2);
  border-radius:10px;
  border-top-color:transparent;
  box-shadow:inset 0 0 0 1px var(--tealline2);
}
.nt-s.next+.nt-s {
  border-top-color:transparent;
}
.nt-n {
  width:24px;
  height:24px;
  border-radius:50%;
  border:1.5px solid var(--border4);
  display:grid;
  place-items:center;
  font:700 12px var(--sans);
  color:var(--sub);
  background:var(--card);
  align-self:start;
}
.nt-s.next .nt-n {
  border-color:var(--teal);
  color:var(--teal);
}
.nt-s.done .nt-n {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.nt-n .li {
  width:13px;
  height:13px;
}
.nt-t {
  display:flex;
  align-items:baseline;
  gap:2px 8px;
  flex-wrap:wrap;
  min-width:0;
  min-height:24px;
  align-content:center;
}
.nt-t b {
  font-size:13px;
  color:var(--ink);
}
.nt-opt {
  font-size:11.5px;
  color:var(--faint);
}
.nt-note {
  flex-basis:100%;
  font-size:12px;
  color:var(--sub);
  line-height:1.4;
}
.nt-a {
  display:flex;
  gap:6px;
  align-items:center;
  justify-self:end;
}
.nt-full {
  grid-column:2/-1;
  min-width:0;
}
.nt-fields {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;
  gap:10px 14px;
  align-items:end;
}
.nt-fields .field input {
  padding:8px 10px;
}
.nt-fields .fsw2 {
  padding-bottom:8px;
}
.nt-fields .fsw2 .fnote2 {
  display:none;
}
.nt-nums {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.nt-nums .wai-chip {
  font-size:11.5px;
}
.nt-nums .wai-chip button {
  border:0;
  background:none;
  padding:0;
  margin-left:2px;
  color:var(--faint);
  display:grid;
  place-items:center;
}
.nt-nums .wai-chip button:hover {
  color:var(--bad);
}
.nt-why {
  font-size:12px;
  color:var(--sub);
}
.nt-a .nt-why,.sethead .nt-why {
  white-space:nowrap;
}
.nt-why.ok {
  color:var(--ok);
}
.btn.pri[aria-disabled=true] {
  opacity:.55;
}
.btn.pri[aria-disabled=true]:hover {
  background:var(--teal);
}
@container (max-width:600px) {
  .nt-fields {
    grid-template-columns:minmax(0,1fr);
  }
  .nt-fields .fsw2 {
    padding-bottom:0;
  }
}
@container (max-width:400px) {
  .nt {
    padding:12px 10px;
  }
  .nt-s {
    grid-template-columns:24px minmax(0,1fr);
    padding:9px 6px;
  }
  .nt-a {
    grid-column:2;
    justify-self:start;
  }
}
@media (max-width:900px) {
  .sethead .nt-why {
    display:none;
  }
}
/* inline helpers inside the flow stepper */
.fplib {
  border-top:1px dashed var(--line);
  margin-top:6px;
  padding-top:6px;
}
.fplib h5 {
  font:600 9.5px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sub);
  margin:2px 4px 4px;
}
.fpick .fplibtag {
  margin-left:auto;
  font-size:11px;
  color:var(--teal);
  font-weight:600;
  white-space:nowrap;
}
.fpnew {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
  border-top:1px dashed var(--line);
  margin-top:6px;
  padding:8px 4px 2px;
}
.fpnew input {
  flex:1 1 140px;
  min-width:0;
  border:1px solid var(--border2);
  border-radius:7px;
  padding:6px 8px;
  background:var(--card);
  font-size:12.5px;
}
.fpnew select {
  border:1px solid var(--border2);
  border-radius:7px;
  padding:6px 6px;
  background:var(--card);
  font-size:12.5px;
}
.fpempty {
  font-size:12px;
  color:var(--sub);
  padding:6px 4px;
}
/* empty account hero on the Templates landing */
.bphero {
  border:1px solid var(--tealline2);
  border-radius:12px;
  background:var(--card);
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.bphero h2 {
  font-size:18px;
}
.bphero p {
  font-size:13px;
  color:var(--ink2);
  max-width:72ch;
  margin:0;
  line-height:1.5;
}
.bphero .acts {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.empty .acts {
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

/* first-run walkthrough, drawn with the blueprint's own parts */
.tut-scrim {
  position:fixed;
  inset:0;
  z-index:90;
  background:var(--scrim);
  display:grid;
  place-items:start center;
  padding:max(24px,7vh) 24px 24px;
}
.tut {
  width:min(1060px,100%);
  max-height:calc(100dvh - max(24px,7vh) - 24px);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 24px 60px #0b252340;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.tut-h {
  display:flex;
  align-items:center;
  gap:8px 12px;
  flex-wrap:wrap;
  padding:12px 12px 10px 18px;
  border-bottom:1px solid var(--line2);
}
.tut-h h2 {
  font-size:16px;
  flex:1 1 260px;
  min-width:0;
}
.tut-k {
  font:600 10px var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--teal);
  display:block;
  margin-bottom:2px;
}
.tut-ex {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  font-weight:700;
  color:var(--amberink);
  background:var(--amberbg);
  border:1px dashed var(--calloutline);
  border-radius:12px;
  padding:2px 9px;
  white-space:nowrap;
}
.tut-ex .li {
  width:12px;
  height:12px;
}
.tut-stage {
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:14px 18px;
  background:var(--card2);
}
.tut-stage .bp {
  background:var(--card);
}
.tut-stage .bp.ex {
  border-style:dashed;
  border-color:var(--calloutline);
}
.tut-stage .bp-canvas {
  padding-top:10px;
}
.tut-stage .bp-grp {
  row-gap:4px;
}
.tut-bp .tut-off {
  opacity:0!important;
  pointer-events:none;
  transition:opacity .2s;
}
.tut-bp [data-ts],.tut-bp .bp-wires path {
  transition:opacity .45s;
}
.tut-bp .bp-st,.tut-bp .bp-num,.tut-bp .bp-sorter-h {
  cursor:default;
}
.tut-bp .bp-st:hover {
  background:none;
}
.tut-bp .bp-st:hover .bp-dot {
  transform:none;
}
.tut-bp .bp-num:hover {
  border-color:var(--line);
}
.tut-bp .bp-num.on:hover {
  border-color:var(--teal);
}
.tut-cap {
  flex:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 18px;
  padding:12px 18px 6px;
  border-top:1px solid var(--line2);
  align-items:start;
}
.tut-cap h3 {
  font:700 16px var(--disp);
  letter-spacing:-.01em;
  margin:0 0 3px;
}
.tut-cap p {
  font-size:13px;
  color:var(--ink2);
  margin:0;
  line-height:1.5;
  max-width:76ch;
}
.tut-chain {
  grid-column:1/-1;
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  align-items:center;
}
.tut-chain li {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  color:var(--faint);
  border:1px solid var(--line2);
  border-radius:12px;
  padding:2px 8px;
}
.tut-chain li .li {
  width:11px;
  height:11px;
}
.tut-chain li.on {
  color:var(--deep);
  border-color:var(--tealline);
  background:var(--soft);
  font-weight:600;
}
.tut-chain li.done {
  color:var(--sub);
}
.tut-chain em {
  font-style:normal;
  color:var(--faint);
  font-size:11px;
}
.tut-fv {
  margin-top:6px;
}
.tut-cta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.tut-n {
  font:600 11px var(--mono);
  color:var(--faint);
  white-space:nowrap;
  padding-top:4px;
}
.tut-nav {
  flex:none;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 18px 14px;
}
.tut-nav .grow {
  flex:1;
}
.tut-dots {
  display:flex;
  gap:5px;
  align-items:center;
}
.tut-dots i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--line);
  display:block;
}
.tut-dots i.on {
  background:var(--teal);
  width:18px;
  border-radius:4px;
}
@media (max-width:900px) {
  .tut-scrim {
    padding:0;
    place-items:stretch;
  }
  .tut {
    width:100%;
    max-height:none;
    height:100dvh;
    border-radius:0;
    border:0;
  }
  .tut-h {
    padding:10px 8px 8px 14px;
  }
  .tut-stage {
    padding:10px 12px;
  }
  .tut-cap {
    padding:10px 14px 4px;
    grid-template-columns:minmax(0,1fr);
  }
  .tut-n {
    display:none;
  }
  .tut-nav {
    padding:8px 14px calc(12px + env(safe-area-inset-bottom,0px));
  }
  .tut-dots {
    display:none;
  }
}
.wai-chip.lit {
  border-color:var(--amber);
  background:var(--amberbg);
  color:var(--amberink);
  font-weight:600;
}
@media (max-width:1100px) {
  .sethead .nt-why {
    display:none;
  }
}
@container (max-width:729px) {
  .bp-grp.in .bp-hd.c3,.bp-grp.in .bp-hd.c5 .v,.bp-grp.out .bp-hd.c3,.bp-grp.out .bp-hd.c1 .v {
    padding-left:26px;
  }
}
@container (max-width:729px) {
  .bp-numph {
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:4px 10px;
  }
  .bp-numph>span {
    flex:1 1 150px;
  }
}
@media (min-width:901px) and (max-width:1100px) {
  .sethead .bl {
    display:none;
  }
  .sethead .fmeta {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
.tut-h {
  position:relative;
  padding-right:52px;
}
.tut-h>.iconbtn {
  position:absolute;
  top:8px;
  right:8px;
}
.tut-bp .bp-lane.on {
  background:none;
}
@container (min-width:730px) and (max-width:819px) {
  .bp-canvas {
    padding:12px 10px 16px;
  }
  .bp-grp {
    grid-template-columns:100px 24px 120px 36px minmax(0,1fr);
    min-width:0;
  }
  .bp-st {
    width:72px;
  }
  .bp-st.dt,.bp-st.ex {
    width:92px;
  }
  .bp-lhd span {
    width:92px;
  }
}
.bplg.fx {
  border:1.5px solid var(--border4);
  border-radius:4px;
  background:var(--card);
  color:var(--ink2);
  display:inline-grid;
  place-items:center;
}
@container (min-width:730px) and (max-width:819px) {
  .bp-addnum {
    padding:5px 6px;
    font-size:11.5px;
    gap:4px;
    white-space:nowrap;
  }
}
/* ===================== final draft, round 2 ===================== */
/* short, dismissable explainer and the compact follow-a-fax row */
.bpintro.how {
  flex-wrap:nowrap;
  align-items:flex-start;
  gap:6px;
  padding:9px 6px 10px 14px;
}
.bpintro.how .bpi {
  flex:1;
  min-width:0;
}
.bpintro.how p {
  margin:0;
  font-size:12.5px;
  color:var(--ink2);
  max-width:none;
  line-height:1.5;
}
.bpintro.how p b {
  color:var(--ink);
}
.bpintro.how .bplegend {
  margin-top:6px;
  gap:4px 12px;
}
.bpintro.how .iconbtn {
  width:30px;
  height:30px;
  color:var(--sub);
  margin-top:-3px;
}
.bptools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 16px;
  min-width:0;
}
.bpnote {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--sub);
}
.bpnote .li {
  color:var(--faint);
}
.flinkq {
  border:0;
  background:none;
  color:var(--sub);
  font-size:12.5px;
  font-weight:500;
  padding:5px 7px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.flinkq:hover {
  color:var(--teal);
  background:var(--hover2);
}
.flinkq .li {
  color:var(--faint);
}
.flinkq:hover .li {
  color:var(--teal);
}
/* collapsible template cards */
.bpcards {
  align-items:start;
}
/* copy tree on the cards: a copy is marked on its left edge and says where it came from; an original lists its copies */
.bpcard.copy {
  border-left:3px solid var(--tealline);
}
.bpcard-row .bpc-sum>.li {
  vertical-align:-1px;
  color:var(--faint);
}
.bpcard-h {
  padding-left:6px;
}
.bpc-tog {
  width:28px;
  height:28px;
  color:var(--sub);
  margin-top:1px;
}
.bpc-tog .li {
  transition:transform .15s;
}
.bpcard:not(.col) .bpc-tog .li {
  transform:rotate(90deg);
}
.bpcard.col {
  grid-column:1/-1;
}
.bpcard-row {
  display:flex;
  align-items:center;
  gap:4px 10px;
  padding:7px 10px 7px 6px;
  min-width:0;
}
.bpcard-row>* {
  flex:none;
}
.bpcard-row .bpbx {
  width:26px;
  height:26px;
  border-radius:7px;
}
.bpcard-row .bpcard-t {
  font-size:14px;
  flex:0 1 auto;
  min-width:48px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bpc-sum {
  font-size:12px;
  color:var(--sub);
  white-space:nowrap;
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bpc-dots {
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
}
.bpcard-row .fgrow {
  flex:1 1 0;
}
.bpc-dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--lc);
  display:block;
  flex:none;
}
.bpc-dot.off {
  background:none;
  border:1.5px dashed var(--border5);
}
.bpc-sep {
  width:1px;
  height:12px;
  background:var(--line);
  margin:0 3px;
  display:block;
}
@container (max-width:560px) {
  .bpcard-row {
    flex-wrap:wrap;
  }
  .bpcard-row .btn.ghost {
    display:none;
  }
  .bpcard-row .bpcard-t {
    flex:1 1 0;
  }
  .bpc-sum {
    white-space:normal;
    flex:1 1 calc(100% - 70px);
    margin-left:64px;
  }
  .bpc-dots {
    margin-left:64px;
    flex-wrap:wrap;
  }
  .bpcard-row .fgrow {
    display:none;
  }
}
/* a template embed in a narrow card: each lane and number stacks its cells, its column heads dropped */
@container (max-width:480px) {
  [data-template-summary] .tbl thead {
    display:none;
  }
  [data-template-summary] .tbl tr {
    display:block;
    padding:6px 0;
    border-bottom:1px solid var(--line2);
  }
  [data-template-summary] .tbl td {
    display:block;
    border:0;
    padding:2px 12px;
  }
}
/* trace one fax: the template's blueprint, read-only */
.ftr-sub {
  font-size:12.5px;
  color:var(--sub);
  margin:2px 0 0;
}
.ftrace .tut-stage {
  padding:14px 18px 18px;
}
.ftrace .bp-cap {
  margin:10px 12px 0;
  flex-basis:auto;
}
.bp.ro .bp-st,.bp.ro .bp-num,.bp.ro .bp-sorter-h,.bp.ro .bp-sorter .flinkt {
  pointer-events:none;
}
.bp.ro .bp-sorter .flinkt {
  text-decoration:none;
  color:inherit;
}
.bp.ro .bp-add,.bp.ro .bp-addnum,.bp.ro .bp-gh .fsw2,.bp.ro .bp-emptycta,.bp.ro .bp-gh .grow {
  display:none;
}
.bp.ro .bp-st:hover {
  background:none;
}
.bp.ro .bp-st:hover .bp-dot {
  transform:none;
}
.bp.otr.tracing .bp-grp.out {
  opacity:1;
}
.bp.otr.tracing .bp-grp.out .bp-lane:not(.on) {
  opacity:.28;
}
.bp.otr.tracing .bp-grp.out .bp-num:not(.on),.bp.otr.tracing .bp-grp.out .bp-sorter:not(.on) {
  opacity:.45;
}
.bp.otr .bp-steps,.ftrace .bp-steps {
  border-top:1px solid var(--line2);
}
@media (max-width:600px) {
  .ftrace .bl2 {
    display:none;
  }
}
@media (max-width:600px) {
  .bpintro.how .bplegend {
    display:none;
  }
}
/* ===================== round 3: mini blueprint in the Templates List view ===================== */
.ftree .trow:has(>.tl) {
  align-items:flex-start;
  border-bottom:1px solid var(--line2);
  border-radius:0;
  padding-top:6px;
  padding-bottom:6px;
}
.ftree .trow:has(>.tl)>.fexp,.ftree .trow:has(>.tl)>.fspacer {
  margin-top:3px;
}
.trow>.tl {
  flex:1;
  min-width:0;
  container-type:inline-size;
}
.tl .bpc-dots {
  margin-top:5px;
}
/* ===================== round 4 ===================== */
/* trace a fax from the pane; the caption floats over the blueprint while it runs */
.wai-tr {
  display:flex;
  flex-direction:column;
  gap:6px;
  border:1px dashed var(--line);
  border-radius:9px;
  padding:8px 9px;
}
.wai-tr label {
  font-size:12px;
  color:var(--sub);
  display:flex;
  align-items:center;
  gap:6px;
}
.wai-tr label .li {
  color:var(--teal);
}
.wai-trr {
  display:flex;
  gap:6px;
  min-width:0;
}
.wai-trr .bpsel {
  flex:1 1 0;
  min-width:0;
  height:30px;
  font-size:12px;
}
.bp>.tr-cap {
  position:sticky;
  top:8px;
  z-index:7;
  margin:10px 12px 0;
  box-shadow:0 6px 18px #0b25231a;
}
/* Call records: an indented child of Billing, in the desktop nav and the phone drawer */
.setnav .navbtn.child,.side-set .navbtn.child {
  padding-left:24px;
  font-size:12px;
  font-weight:500;
  color:var(--sub);
}
.setnav .navbtn.child .ic,.side-set .navbtn.child .ic {
  width:14px;
}
.navbtn.child .ic .li {
  width:13px;
  height:13px;
}
.setnav .navbtn.child.on,.side-set .navbtn.child.on {
  color:var(--deep);
}
.cdrtbl td {
  vertical-align:top;
}
.cdrtbl tr.sel td {
  background:var(--selbg);
}
.cdrtbl tr.grp td {
  border-bottom-color:transparent;
}
.cdrtbl tr.grp.glast td {
  border-bottom-color:var(--line2);
}
.cdrtbl tr.grp td.first {
  box-shadow:inset 3px 0 0 var(--tealline2);
}
.cdrtbl tr.sub td {
  background:var(--card2);
}
.cdrtbl tr.sub.sel td {
  background:var(--selbg);
}
.cdrtbl tr.sub .cdr-when {
  padding-left:14px;
}
.cdr-when {
  display:flex;
  gap:8px;
  align-items:flex-start;
  min-width:0;
}
.cdr-when>.li {
  flex:none;
  margin-top:3px;
  color:var(--sub);
}
.cdr-when b {
  display:block;
  font-size:12.5px;
  white-space:nowrap;
}
.cdr-when small {
  display:block;
  font-size:11px;
  color:var(--faint);
}
.cdr-who {
  font-size:13px;
}
.cdr-sm {
  display:block;
  font-size:11.5px;
  color:var(--sub);
}
.cdr-why {
  display:block;
  font-size:11.5px;
  color:var(--sub);
  margin-top:3px;
  max-width:34ch;
}
.pill.bad {
  background:var(--badbg);
  color:var(--bad);
}
.cdr-tr {
  width:30px;
  height:30px;
  color:var(--sub);
}
.cdr-tr:hover {
  color:var(--teal);
  background:var(--hover);
}
.cdr-foot {
  font-size:12px;
  color:var(--faint);
  padding:10px 20px 18px;
  margin:0;
}
.show-m {
  display:none!important;
}
@media (max-width:900px) {
  .show-m {
    display:block!important;
  }
  .cdr-why {
    display:none;
  }
  .cdrtbl .cdr-when b {
    white-space:normal;
  }
  .cdr-foot {
    padding:10px 12px 90px;
  }
}
/* call record drawer; a full-height sheet on phones */
.cdrd-scrim {
  position:fixed;
  inset:0;
  z-index:88;
  background:var(--scrim);
}
.cdrd {
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:min(470px,100%);
  background:var(--card);
  border-left:1px solid var(--line);
  box-shadow:-18px 0 40px #0b25232e;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.cdrd>.cdrd-h {
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:14px 10px 12px 18px;
  border-bottom:1px solid var(--line2);
}
.cdrd-h>div {
  flex:1;
  min-width:0;
}
.cdrd>.cdrd-h h2 {
  font-size:17px;
}
.cdrd>.cdrd-h p {
  font-size:12.5px;
  color:var(--sub);
  margin:2px 0 0;
}
.cdrd-b {
  flex:1;
  min-height:0;
  overflow:auto;
  padding:14px 18px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.cdrd-b h3 {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  margin:0 0 8px;
}
.cdr-facts {
  grid-template-columns:1fr 1fr;
}
.cdr-facts dd .pill {
  margin-right:4px;
}
.cdr-fax {
  font-size:12.5px;
  color:var(--ink2);
  margin:0;
}
.cdrd>.cdrd-f {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--line2);
}
.cdrd-f .cdr-why {
  flex-basis:100%;
  max-width:none;
  margin:0;
}
.t30 {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
}
.t30 li {
  position:relative;
  padding:18px 4px 0 0;
  min-width:0;
}
.t30 li::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:6px;
  height:2px;
  background:var(--line);
}
.t30 li.done::before {
  background:var(--teal);
}
.t30 li:first-child::before {
  left:6px;
}
.t30 li:last-child::before {
  right:auto;
  width:8px;
}
.t30-dot {
  position:absolute;
  left:0;
  top:1px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--card);
  border:2px solid var(--border4);
}
.t30 li.done .t30-dot {
  background:var(--teal);
  border-color:var(--teal);
}
.t30 li.fail .t30-dot {
  background:var(--bad);
  border-color:var(--bad);
}
.t30 li.skip {
  opacity:.45;
}
.t30 b {
  display:block;
  font-size:12px;
  color:var(--ink);
}
.t30 small {
  display:block;
  font-size:11px;
  color:var(--sub);
  line-height:1.35;
  overflow-wrap:anywhere;
}
.t30 li.fail small {
  color:var(--bad);
}
.t30-ticks {
  display:flex;
  gap:2px;
  margin:3px 0 2px;
  flex-wrap:wrap;
}
.t30-ticks i {
  width:4px;
  height:10px;
  border-radius:1px;
  background:var(--teal);
  display:block;
}
.t30-ticks i.bad {
  background:var(--bad);
}
.t30-ticks i.un {
  background:var(--border4);
}
@media (max-width:900px) {
  .cdrd {
    width:100%;
    border-left:0;
  }
  .cdr-facts {
    grid-template-columns:1fr;
  }
  .t30 {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
.deliv.cdrl {
  margin-top:8px;
}
/* the call drawer in #modal: the scrim is its frame, the modal no box */
.scrim:has(.cdrdm) {
  padding:0;
}
.modal.cdrdm {
  display:contents;
}
.cdrtbl td .mono,.cdrtbl .cdr-sm.mono,.cdrtbl td.hide-m>.mono {
  white-space:nowrap;
}
.cdrtbl .cdr-num {
  white-space:nowrap;
}
/* the table drops columns as the page narrows; on phones each call becomes a stacked row */
@container (max-width:860px) {
  .cdrtbl .hide-d {
    display:none;
  }
}
@media (max-width:900px) {
  .cdrtbl thead {
    display:none;
  }
  .cdrtbl,.cdrtbl tbody {
    display:block;
    width:100%;
  }
  .cdrtbl tr {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;
    gap:4px 12px;
    padding:10px 12px;
    border-bottom:1px solid var(--line2);
    align-items:start;
  }
  .cdrtbl td,.cdrtbl td.first,.cdrtbl td.last {
    display:block;
    padding:0;
    border:0;
    background:none!important;
    text-align:left;
    box-shadow:none!important;
  }
  .cdrtbl td.first {
    grid-column:1/3;
  }
  .cdrtbl td.last {
    grid-column:3;
    grid-row:1/3;
    align-self:center;
  }
  /* the cells left between first and last flow into the second row */
  .cdrtbl td.hide-m {
    display:none;
  }
  .cdrtbl tr.sel {
    background:var(--selbg);
  }
  .cdrtbl tr.sub {
    background:var(--card2);
  }
  .cdrtbl tr.grp {
    box-shadow:inset 3px 0 0 var(--tealline2);
    border-bottom-color:transparent;
  }
  .cdrtbl tr.grp.glast {
    border-bottom-color:var(--line2);
  }
  .cdrtbl .cdr-when small {
    white-space:normal;
  }
}
/* ===================== round 6 ===================== */
/* 1. API token scopes */
.modal.tokm {
  width:min(660px,calc(100vw - 32px));
  max-height:min(760px,calc(100dvh - 32px));
}
.tkx {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.tkp {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}
.tkp button {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:9px;
  padding:7px 10px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
  color:var(--ink2);
}
.tkp button b {
  font-size:12.5px;
  color:var(--ink);
}
.tkp button small {
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tkp button:hover {
  border-color:var(--border3);
}
.tkp button[aria-checked=true] {
  border-color:var(--teal);
  background:var(--soft2);
  box-shadow:inset 0 0 0 1px var(--teal);
}
.tkp button[aria-checked=true] b {
  color:var(--deep);
}
.tkm-w {
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.tkx.err .tkm-w {
  border-color:var(--bad);
}
.tkm {
  width:100%;
  border-collapse:collapse;
  font-size:12.5px;
  table-layout:fixed;
}
.tkm thead th {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  text-align:center;
  padding:7px 4px;
  background:var(--card2);
  border-bottom:1px solid var(--line);
  width:68px;
}
.tkm thead th:first-child {
  text-align:left;
  padding-left:12px;
  width:auto;
}
.tkm tbody th {
  text-align:left;
  font-weight:400;
  padding:7px 8px 7px 12px;
  vertical-align:middle;
}
.tkm tbody th b {
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink);
}
.tkm tbody th small {
  display:block;
  font-size:11px;
  color:var(--sub);
  line-height:1.35;
  margin-top:1px;
}
.tkm td {
  text-align:center;
  vertical-align:middle;
  padding:0;
}
.tkm tbody tr+tr>* {
  border-top:1px solid var(--line2);
}
.tkm tbody tr:hover>* {
  background:var(--hover2);
}
.tkc {
  display:grid;
  place-items:center;
  height:42px;
  cursor:pointer;
}
.tkc input {
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--teal);
  cursor:pointer;
}
.tkm td.tkflash {
  animation:tkflash .9s ease-out;
}
@keyframes tkflash {
  0% {
    background:var(--soft);
  }
  100% {
    background:transparent;
  }
}
.tkna {
  display:inline-block;
  width:17px;
  height:17px;
  border-radius:4px;
  border:1.5px dashed var(--border4);
  vertical-align:middle;
  position:relative;
  cursor:help;
}
.tkna::after {
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  top:50%;
  height:1.5px;
  margin-top:-.75px;
  background:var(--border5);
  transform:rotate(-45deg);
}
.tkrule {
  display:flex;
  gap:6px;
  align-items:flex-start;
  font-size:11.5px;
  color:var(--sub);
  margin:0;
}
.tkrule .li {
  flex:none;
  margin-top:1px;
  color:var(--faint);
}
.tkout {
  border:1px solid var(--line2);
  background:var(--card2);
  border-radius:9px;
  padding:8px 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.tksum {
  font-size:12.5px;
  color:var(--ink2);
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tkout-sm .tksum {
  white-space:normal;
}
.tkcodes {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.tkcodes code {
  font:11.5px var(--code);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:5px;
  padding:1px 6px;
  color:var(--ink2);
}
#tkFoot.bad {
  color:var(--bad);
}
.tkerr {
  display:flex;
  gap:6px;
  align-items:center;
  font-size:12px;
  font-weight:600;
  color:var(--bad);
  margin:0;
}
.tk-name {
  border:0;
  background:none;
  padding:0;
  font-weight:700;
  color:var(--ink);
  text-align:left;
}
.tktbl tr.click:hover .tk-name {
  color:var(--teal);
}
a.tk-name {
  text-decoration:none;
  display:inline;
}
.tkchip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  max-width:100%;
}
.tkchip .pill {
  margin:0;
}
.tkchip small {
  font-size:11.5px;
  color:var(--sub);
  white-space:nowrap;
}
.tk-msum {
  margin-top:3px;
}
.tktbl td:not(.first):not(:nth-child(2)) {
  white-space:nowrap;
}
@container (max-width:700px) {
  .tktbl .tk-c2 {
    display:none;
  }
}
@container (max-width:600px) {
  .tktbl .tk-c3 {
    display:none;
  }
}
.tkd-facts {
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
.tkd-foot {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.tkd-foot .fnote2 {
  margin-right:auto;
}
@media (max-width:900px) {
  .tkp {
    grid-template-columns:minmax(0,1fr);
  }
  .tkp button {
    flex-direction:row;
    align-items:baseline;
    gap:8px;
  }
  .tkm thead th {
    width:54px;
    padding:7px 2px;
  }
  .tkm tbody th {
    padding:6px 6px 6px 10px;
  }
  .tkm tbody th small {
    display:none;
  }
  .tkc {
    height:40px;
  }
}
/* 2. Activity: compact summary strip, a breakdown that opens itself only on wide pages, one sticky filter row */
.asum {
  padding:12px 20px 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.as-strip {
  display:flex;
  align-items:center;
  gap:8px 18px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  padding:7px 8px 7px 14px;
  min-width:0;
  min-height:52px;
}
.as-tot {
  display:flex;
  align-items:center;
  gap:8px;
  flex:none;
}
.as-tot b {
  font:700 26px/1 var(--disp);
  color:var(--deep);
  letter-spacing:-.02em;
}
.as-tot span {
  font-size:12px;
  font-weight:600;
  color:var(--ink2);
  line-height:1.2;
}
.as-tot small {
  display:block;
  font-weight:400;
  color:var(--sub);
  font-size:11.5px;
  white-space:nowrap;
}
.as-spark {
  flex:1 1 120px;
  min-width:90px;
  max-width:220px;
}
.as-spark svg {
  width:100%;
  height:30px;
  display:block;
}
.as-stats {
  display:flex;
  gap:12px;
  margin:0;
  flex:none;
}
.as-stats div {
  border-left:2px solid var(--line);
  padding-left:8px;
  display:flex;
  flex-direction:column-reverse;
  min-width:0;
}
.as-stats dt {
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
}
.as-stats dd {
  margin:0;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  line-height:1.15;
}
.as-via {
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:0 1 auto;
  min-width:0;
}
.as-via .seg {
  height:5px;
  border-radius:3px;
  margin:0 6px;
}
.as-chips {
  display:flex;
  gap:2px;
  flex-wrap:nowrap;
}
.as-chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid transparent;
  background:none;
  border-radius:7px;
  padding:2px 7px 2px 6px;
  font-size:12px;
  color:var(--ink2);
  white-space:nowrap;
}
.as-chip:hover {
  background:var(--hover2);
}
.as-chip.on {
  background:var(--soft);
  border-color:var(--selline);
  color:var(--deep);
}
.as-chip i {
  width:8px;
  height:8px;
  border-radius:2px;
  flex:none;
}
.as-chip b {
  font-weight:600;
}
.as-chip span {
  font-weight:600;
  color:var(--sub);
}
.as-tog {
  margin-left:auto;
  flex:none;
  color:var(--ink2);
}
.as-tog .cd {
  transition:transform .15s;
}
.as-tog[aria-expanded=true] .cd {
  transform:rotate(180deg);
}
.as-tog[aria-expanded=true] {
  background:var(--soft2);
}
.as-brk {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);
  gap:10px;
}
.asum[data-brk=closed] .as-brk {
  display:none;
}
.as-brk .ac {
  padding:10px 14px 12px;
  gap:8px;
}
.as-brk .ac-h h3 {
  font-size:13.5px;
}
.as-day .achart {
  height:66px;
}
.as-day .as-stats {
  display:none;
}
.arank {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.arank button {
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:none;
  padding:2px 6px;
  border-radius:7px;
  text-align:left;
  min-height:28px;
  color:var(--ink);
}
.arank button:hover {
  background:var(--hover2);
}
.arank button.on {
  background:var(--soft);
}
.arank .av2 {
  width:22px;
  height:22px;
  border-radius:6px;
  font-size:9.5px;
}
.ar-n {
  flex:1 1 auto;
  min-width:0;
  font-size:12.5px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ar-bar {
  flex:0 1 64px;
  min-width:24px;
  height:4px;
  border-radius:2px;
  background:var(--line2);
  overflow:hidden;
}
.ar-bar i {
  display:block;
  height:100%;
  background:var(--chartbar);
  border-radius:2px;
}
.arank button.on .ar-bar i {
  background:var(--teal);
}
.ar-c {
  font-size:12.5px;
  font-weight:600;
  min-width:2.5ch;
  text-align:right;
}
.atool-anchor {
  height:10px;
}
.atool {
  position:sticky;
  top:0;
  z-index:4;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 20px;
  background:var(--card);
  border-top:1px solid var(--line2);
  border-bottom:1px solid var(--line);
}
.atool-in {
  display:flex;
  align-items:center;
  gap:8px 14px;
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
}
.afi {
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--sub);
}
.afi select {
  border:1px solid var(--line);
  border-radius:8px;
  padding:5px 8px;
  font-size:12.5px;
  background:var(--card);
  max-width:170px;
  color:var(--ink);
}
.afi select.set {
  border-color:var(--teal);
  background:var(--soft2);
  color:var(--deep);
  font-weight:600;
}
.atool-mw {
  position:relative;
  flex:none;
}
.atool-more {
  gap:6px;
}
.atool-n {
  min-width:16px;
  height:16px;
  border-radius:8px;
  background:var(--teal);
  color:var(--onteal);
  font-size:10px;
  font-weight:700;
  line-height:16px;
  text-align:center;
  padding:0 4px;
}
.atool-pop {
  top:calc(100% + 6px);
  left:0;
  width:260px;
  max-width:calc(100vw - 24px);
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.atool-pop .afi {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:4px;
  font-weight:600;
  color:var(--ink2);
}
.atool-pop .afi[hidden] {
  display:none;
}
.atool-pop .afi select {
  max-width:none;
  width:100%;
  padding:7px 8px;
}
.atool-c {
  margin-left:auto;
  font-size:12px;
  color:var(--sub);
  white-space:nowrap;
  flex:none;
  padding-left:4px;
}
.acttbl th {
  top:var(--ath,0px);
}
@container (max-width:1239px) {
  .asum[data-brk=auto] .as-brk {
    display:none;
  }
}
@container (max-width:1099px) {
  .as-strip>.as-stats {
    display:none;
  }
  .as-day .as-stats {
    display:flex;
  }
  .as-brk {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .as-day {
    grid-column:1/-1;
  }
}
@container (max-width:700px) {
  .as-spark {
    display:none;
  }
  .atool-c {
    display:none;
  }
  .as-tog .bl {
    display:none;
  }
  .as-tog {
    padding:5px 7px;
  }
  .as-strip {
    gap:8px 14px;
  }
  .as-chip {
    padding:2px 5px;
  }
}
@container (max-width:560px) {
  .as-brk {
    grid-template-columns:minmax(0,1fr);
  }
}
@container (max-width:470px) {
  .as-strip {
    flex-wrap:wrap;
    padding:8px 8px 8px 12px;
  }
  .as-via {
    order:3;
    flex:1 1 100%;
  }
  .as-chips {
    justify-content:space-between;
  }
  .as-via .seg {
    margin:0 4px;
  }
}
@media (max-width:900px) {
  .asum {
    padding:10px 12px 0;
  }
  .atool {
    padding:8px 12px;
  }
  .afi>span {
    display:none;
  }
  .atool-pop .afi>span {
    display:block;
  }
  .afi select {
    max-width:140px;
  }
}
/* 3. forks: a compact tree inside the parent's card */
.fk-tog {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  background:var(--card2);
  border-radius:7px;
  padding:4px 8px 4px 7px;
  font-size:12px;
  color:var(--ink2);
  white-space:nowrap;
  flex:none;
}
.fk-tog:hover {
  border-color:var(--border3);
  background:var(--hover2);
}
.fk-tog>.li:first-child {
  color:var(--teal);
}
.fk-tog b {
  font-weight:600;
  color:var(--ink);
}
.fk-tm {
  color:var(--sub);
}
.fk-tog .cd {
  color:var(--faint);
  transition:transform .15s;
}
.fk-tog[aria-expanded=true] {
  background:var(--soft2);
  border-color:var(--tealline2);
}
.fk-tog[aria-expanded=true] .cd {
  transform:rotate(180deg);
}
.fk-tog.sm {
  padding:2px 6px;
  font-size:11.5px;
}
.fk {
  border-top:1px solid var(--line2);
  padding:6px 10px 8px 14px;
}
.bpcard.col .fk {
  padding-left:44px;
}
.fk-tree,.fk-tree ul {
  list-style:none;
  margin:0;
  padding:0;
}
.fk-tree ul {
  margin-left:14px;
}
.fk-n {
  position:relative;
  padding-left:20px;
}
.fk-n::before {
  content:"";
  position:absolute;
  left:7px;
  top:-6px;
  bottom:0;
  border-left:1.5px solid var(--tealline);
}
.fk-tree ul>.fk-n::before {
  top:0;
}
.fk-n:last-child::before {
  bottom:auto;
  height:23px;
}
.fk-tree ul>.fk-n:last-child::before {
  height:17px;
}
.fk-n::after {
  content:"";
  position:absolute;
  left:7px;
  top:17px;
  width:10px;
  border-top:1.5px solid var(--tealline);
}
.fk-row {
  display:flex;
  align-items:center;
  gap:6px 14px;
  min-height:34px;
  padding:2px 4px 2px 6px;
  border-radius:7px;
  cursor:pointer;
  min-width:0;
}
.fk-row:hover {
  background:var(--hover2);
}
.fk-main {
  display:flex;
  align-items:baseline;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
}
.fk-name {
  border:0;
  background:none;
  padding:0;
  font-weight:600;
  font-size:13px;
  color:var(--ink);
  text-align:left;
  white-space:nowrap;
  flex:none;
  max-width:45%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.fk-row:hover .fk-name {
  color:var(--teal);
}
.fk-diff {
  font-size:12px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  flex:1 1 auto;
}
.fk-who,.fk-nums {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  color:var(--sub);
  white-space:nowrap;
  flex:none;
}
.fk-who .li,.fk-nums .li {
  color:var(--faint);
}
.fk-who.priv {
  color:var(--amberink);
}
.fk-who.priv .li {
  color:var(--amberink);
}
.fk-nums {
  min-width:34px;
  justify-content:flex-end;
}
.fk-nums.none {
  color:var(--faint);
}
.fk-go {
  color:var(--faint);
  display:inline-grid;
  place-items:center;
  width:18px;
  flex:none;
}
@container (max-width:640px) {
  .fk-row {
    flex-wrap:wrap;
    align-items:flex-start;
    padding:4px 4px 4px 6px;
  }
  .fk-main {
    flex:1 1 100%;
    flex-direction:column;
    gap:1px;
  }
  .fk-name {
    max-width:100%;
  }
  .fk-diff {
    white-space:normal;
  }
  .fk-go {
    display:none;
  }
  .bpcard.col .fk {
    padding-left:14px;
  }
}
.bp-lin {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 10px;
  font-size:12.5px;
  color:var(--ink2);
  background:var(--card2);
  border:1px solid var(--line);
  border-left:3px solid var(--tealline);
  border-radius:9px;
  padding:6px 8px 6px 12px;
}
.bp-lin>.li {
  color:var(--teal);
  flex:none;
}
.bp-lin>span {
  flex:1 1 260px;
  min-width:0;
}
/* a name wraps whole, never mid-name */
.bp-lin a.flinkt {
  display:inline-block;
}
.bp-lin .faint {
  color:var(--sub);
}
.bp-lin.kids {
  border-left-color:var(--line);
  padding:5px 12px;
}
.bp-lin.kids>.li {
  color:var(--faint);
}
.bp-lin [aria-expanded=true] {
  background:var(--soft2);
}
.bp-cmp {
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  padding:8px 12px;
  margin-top:-4px;
}
.bp-cmpl {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
.bp-cmpl li {
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:2px 10px;
  padding:6px 0;
  border-bottom:1px solid var(--line2);
  font-size:12.5px;
  color:var(--ink2);
}
.bp-cmpl li:last-child {
  border-bottom:0;
}
.bp-cmpl small {
  grid-column:2;
  font-size:11.5px;
  color:var(--sub);
}
.bp-cmpl .k {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  border-radius:4px;
  padding:2px 5px;
  align-self:start;
  justify-self:start;
  background:var(--pillbg);
  color:var(--pillink);
}
.bp-cmpl .add .k {
  background:var(--okbg);
  color:var(--ok);
}
.bp-cmpl .del .k {
  background:var(--badbg);
  color:var(--bad);
}
.bp-cmpl .chg .k {
  background:var(--amberbg);
  color:var(--amberink);
}
@media (max-width:900px) {
  .fk {
    padding:6px 8px 8px 10px;
  }
  .bp-cmpl li {
    grid-template-columns:minmax(0,1fr);
  }
  .bp-cmpl small {
    grid-column:1;
  }
}
/* 4. resend confirmation */
.modal.rsm {
  width:min(520px,calc(100vw - 32px));
}
.rs-body {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.rs-why {
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--calloutline);
  background:var(--amberbg);
  color:var(--amberink);
  border-radius:9px;
  padding:9px 12px;
  font-size:12.5px;
}
.rs-why>.li {
  flex:none;
  margin-top:1px;
}
.rs-why b {
  color:inherit;
}
.rs-why small {
  display:block;
  margin-top:2px;
  font-size:12px;
  opacity:.9;
}
.rs-why.bad {
  background:var(--badbg);
  border-color:color-mix(in srgb,var(--bad) 35%,transparent);
  color:var(--bad);
}
.rs-why.info {
  background:var(--soft2);
  border-color:var(--tealline2);
  color:var(--ink2);
}
.rs-why.info>.li {
  color:var(--teal);
}
.rs-facts {
  margin:0;
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.rs-facts>div {
  display:contents;
}
.rs-facts dt,.rs-facts dd {
  padding:9px 12px;
  border-bottom:1px solid var(--line2);
  margin:0;
}
.rs-facts>div:last-child dt,.rs-facts>div:last-child dd {
  border-bottom:0;
}
.rs-facts dt {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  background:var(--card2);
  display:flex;
  align-items:center;
}
.rs-facts dt label {
  font:inherit;
  color:inherit;
}
.rs-facts dd {
  font-size:13px;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.rs-facts dd>span {
  font-size:12px;
  color:var(--sub);
}
.rs-facts dd .mono {
  font-size:12.5px;
}
.rs-sel,.rs-body .field select {
  border:1px solid var(--border2);
  border-radius:8px;
  padding:7px 9px;
  background:var(--card);
  color:var(--ink);
  width:100%;
  font-size:13px;
}
.rs-sel:focus,.rs-body .field select:focus {
  border-color:var(--border2);
}
.rs-tot {
  font-size:13px;
  color:var(--ink2);
  margin:0;
}
.rs-list {
  list-style:none;
  margin:0;
  padding:0;
  border:1px solid var(--line);
  border-radius:10px;
  max-height:220px;
  overflow:auto;
}
.rs-list li {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:4px 12px;
  align-items:center;
  padding:8px 12px;
  border-bottom:1px solid var(--line2);
  font-size:12.5px;
}
.rs-list li:last-child {
  border-bottom:0;
}
.rs-n {
  display:flex;
  flex-direction:column;
  min-width:0;
}
.rs-n b {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rs-n .mono {
  font-size:12px;
  color:var(--sub);
}
.rs-st {
  font-size:11px;
  font-weight:600;
  border-radius:10px;
  padding:2px 8px;
  background:var(--amberbg);
  color:var(--amberink);
  white-space:nowrap;
}
.rs-st.bad {
  background:var(--badbg);
  color:var(--bad);
}
.rs-st.info {
  background:var(--soft2);
  color:var(--ink2);
}
.rs-p {
  font-size:12px;
  color:var(--sub);
  white-space:nowrap;
}
.rsend {
  display:inline-flex;
  align-items:center;
  gap:4px;
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--ink2);
  border-radius:6px;
  padding:1px 7px;
  font-size:11.5px;
  font-weight:600;
  flex:none;
  margin-right:6px;
}
.rsend:hover {
  border-color:var(--teal);
  color:var(--teal);
}
@media (max-width:900px) {
  .rs-facts {
    grid-template-columns:minmax(0,1fr);
  }
  .rs-facts dt {
    border-bottom:0;
    padding-bottom:2px;
    background:none;
  }
  .rs-facts dd {
    padding-top:0;
  }
}
/* 5. waiting automation: a count on the Automation results row, waiting items first, a dot on the Summary tab */
.apip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:2px;
  border-radius:10px;
  padding:1px 8px 1px 6px;
  background:var(--amberbg);
  color:var(--amberink);
  border:1px solid var(--calloutline);
  font:700 11px/16px var(--sans);
}
.apip i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--warn);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--warn) 25%,transparent);
}
.acc.has-wait {
  border-color:var(--calloutline);
}
.drow.waiting {
  border-color:var(--calloutline);
  background:color-mix(in srgb,var(--amberbg) 55%,var(--card));
}
.drow.waiting small {
  color:var(--amberink);
}
.drow-acts {
  display:inline-flex;
  gap:4px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.drow-acts .btn.ghost {
  color:var(--sub);
}
.rtab {
  position:relative;
}
.acc[data-acc=auto] .deliv {
  container-type:inline-size;
}
@container (max-width:460px) {
  .drow.waiting {
    grid-template-columns:auto minmax(0,1fr);
  }
  .drow.waiting .drow-acts {
    grid-column:2;
    justify-content:flex-start;
    margin-left:-6px;
  }
}
.rtab.pend::after {
  content:"";
  position:absolute;
  left:10px;
  top:9px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--warn);
  box-shadow:0 0 0 2px var(--card);
}
.rtabs-m button {
  position:relative;
}
.rtabs-m button.pend::after {
  content:"";
  position:absolute;
  left:calc(50% + 4px);
  top:6px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--warn);
  box-shadow:0 0 0 2px var(--card);
}
/* ===================== round 7 ===================== */
/* A. shared page header: Billing and Call records use the Activity strip, breakdown and filter row */
.as-strip.as-wrap {
  flex-wrap:nowrap;
}
@container (max-width:600px) {
  .as-strip.as-wrap-s {
    flex-wrap:wrap;
  }
  .as-strip.as-wrap-s .as-via {
    order:3;
    flex:1 1 100%;
    flex-wrap:wrap;
  }
}
@container (max-width:760px) {
  .as-strip.as-wrap {
    flex-wrap:wrap;
  }
  .as-strip.as-wrap .as-via {
    order:3;
    flex:1 1 100%;
  }
  .as-strip.as-wrap .as-chips {
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:2px 6px;
  }
}
.hs-facts {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px 14px;
}
.hs-facts dd b {
  font-size:14px;
  color:var(--ink);
}
.hs-facts dd {
  color:var(--sub);
}
.as-via.as-row {
  flex-direction:row;
  align-items:center;
  gap:8px;
}
.as-link {
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:7px;
  padding:4px 8px;
  font-size:12px;
  font-weight:600;
  color:var(--ink2);
  white-space:nowrap;
  flex:none;
}
.as-link:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.bs-auto {
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:8px;
  padding:3px 9px;
  text-align:left;
  flex:0 1 auto;
  min-width:0;
}
.bs-auto b {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--ink);
}
.bs-auto b i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--faint);
}
.bs-auto.on b i {
  background:var(--ok);
}
.bs-auto span {
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.bs-auto:hover {
  border-color:var(--teal);
}
.bs-auto.low {
  border-color:var(--calloutline);
  background:var(--amberbg);
}
.bs-auto.low span {
  color:var(--amberink);
}
.bs-acts {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:auto;
}
.bltbl td {
  vertical-align:middle;
}
.bltbl .bl-what {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.bltbl .bl-ic {
  width:26px;
  height:26px;
  border-radius:7px;
  display:grid;
  place-items:center;
  flex:none;
  background:var(--soft2);
  color:var(--deep);
}
.bltbl .bl-ic.cr {
  background:var(--okbg);
  color:var(--ok);
}
.bltbl .bl-what small {
  display:block;
  font-size:11.5px;
  color:var(--sub);
}
.bltbl .num,.cdrtbl .num {
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.bltbl th.num,.cdrtbl th.num {
  text-align:right;
}
.bltbl .cr {
  color:var(--ok);
  font-weight:600;
}
.bltbl .bl-when {
  white-space:nowrap;
}
.bltbl .bl-when small {
  display:block;
  font-size:11.5px;
  color:var(--faint);
}
.bl-note {
  font-size:12px;
  color:var(--sub);
  padding:8px 20px;
  margin:0;
  background:var(--card2);
  border-bottom:1px solid var(--line2);
}
@container (max-width:700px) {
  .cdrtbl th.hide-m,.cdrtbl td.hide-m {
    display:none;
  }
  .cdrtbl .cdr-sm.show-m {
    display:block!important;
  }
}
.pill.paid {
  background:var(--okbg);
  color:var(--ok);
}
@container (max-width:640px) {
  .bltbl .bl-hide {
    display:none;
  }
}
@media (max-width:900px) {
  .bl-note {
    padding:8px 12px;
  }
}
.ba-on {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
}
.ba-on b {
  display:block;
  font-size:13px;
}
.ba-on small {
  display:block;
  font-size:12px;
  color:var(--sub);
}
.mbody.bamodal {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ba-fields {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
.ba-fields:disabled {
  opacity:.45;
}
.ba-err {
  margin:0;
  color:var(--bad);
}
.bs-decline {
  flex-wrap:wrap;
  align-items:center;
  margin:12px 20px 0;
}
.bs-decline>div {
  flex:1 1 240px;
}
@media (max-width:900px) {
  .bs-decline {
    margin:10px 12px 0;
  }
}
.sethead .soon {
  font-size:10.5px;
  font-weight:600;
  color:var(--sub);
  background:var(--soft2);
  border-radius:999px;
  padding:1px 6px;
}
/* B. who a token belongs to */
.pill.svc {
  background:var(--amberbg);
  color:var(--amberink);
}
.av2.svc {
  background:var(--amberbg);
  color:var(--amberink);
}
.tnst {
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}
.tnst button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:0;
  background:none;
  padding:3px 8px 3px 3px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:var(--faint);
}
.tnst button span {
  width:18px;
  height:18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:10.5px;
  background:var(--line2);
  color:var(--sub);
}
.tnst li.on button {
  color:var(--deep);
  background:var(--soft2);
}
.tnst li.on button span {
  background:var(--teal);
  color:var(--onteal);
}
.tnst li.done button {
  color:var(--ink2);
  cursor:pointer;
}
.tnst li.done button span {
  background:var(--soft);
  color:var(--deep);
}
.tnst li.done button:hover {
  background:var(--hover2);
}
.tnst button:disabled {
  cursor:default;
}
.tnb {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.tn-q {
  font:700 14.5px var(--disp);
  letter-spacing:-.01em;
  margin:0;
}
.tnk {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.tnk button {
  display:flex;
  gap:10px;
  align-items:flex-start;
  text-align:left;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:10px;
  padding:10px 12px;
  color:var(--ink2);
  min-width:0;
}
.tnk button .av2 {
  width:30px;
  height:30px;
}
.tnk button b {
  display:block;
  font-size:13px;
  color:var(--ink);
}
.tnk button small {
  display:block;
  font-size:11.5px;
  color:var(--sub);
  line-height:1.4;
  margin-top:2px;
}
.tnk button[aria-checked=true] {
  border-color:var(--teal);
  background:var(--soft2);
  box-shadow:inset 0 0 0 1px var(--teal);
}
.tnk button:disabled {
  opacity:.6;
  cursor:not-allowed;
}
.tnk button:not(:disabled):hover {
  border-color:var(--border3);
}
.tn-note {
  display:flex;
  gap:8px;
  align-items:flex-start;
  font-size:12px;
  color:var(--ink2);
  background:var(--card2);
  border:1px solid var(--line2);
  border-radius:9px;
  padding:8px 10px;
  margin:0;
}
.tn-note>.li {
  flex:none;
  margin-top:1px;
  color:var(--teal);
}
.tn-note.warn {
  background:var(--amberbg);
  border-color:var(--calloutline);
  color:var(--amberink);
}
.tn-note.warn>.li {
  color:var(--amberink);
}
.tup {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  min-width:0;
}
.tup-l {
  font-size:12px;
  font-weight:600;
  color:var(--ink2);
  margin:0 0 5px;
}
.tup-sel {
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  min-width:0;
}
.tup-sel>span:nth-child(2) {
  flex:1;
  min-width:0;
}
.tup-sel b {
  display:block;
  font-size:13px;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tup-sel small {
  display:block;
  font-size:11.5px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tup-lock {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11.5px;
  color:var(--faint);
  white-space:nowrap;
}
.tup-find {
  border-top:1px solid var(--line2);
  padding:8px 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.tup-find .minisearch {
  width:100%;
  height:34px;
}
.tup-res {
  display:flex;
  flex-direction:column;
  max-height:214px;
  overflow:auto;
}
.tup-res button {
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  background:none;
  border-radius:7px;
  padding:5px 6px;
  text-align:left;
  color:var(--ink2);
  min-width:0;
}
.tup-res button:hover,.tup-res button:focus-visible {
  background:var(--hover2);
}
.tup-res button>span:last-child {
  min-width:0;
}
.tup-res b {
  display:block;
  font-size:12.5px;
  color:var(--ink);
}
.tup-res small {
  display:block;
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tup-res .av2,.tup-sel .av2 {
  width:28px;
  height:28px;
  font-size:10px;
}
.tki {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tki-sum {
  font-size:13px;
  color:var(--ink2);
  margin:0;
}
.tki-sum b {
  color:var(--ink);
}
.tsw {
  border:1px solid var(--line2);
  border-radius:9px;
  background:var(--card2);
}
.tsw summary {
  cursor:pointer;
  list-style:none;
  padding:6px 10px;
  font-size:12px;
  font-weight:600;
  color:var(--teal);
  display:flex;
  gap:6px;
  align-items:center;
}
.tsw summary::-webkit-details-marker {
  display:none;
}
.tsw summary::before {
  content:"›";
  transition:transform .15s;
  display:inline-block;
  color:var(--faint);
}
.tsw[open] summary::before {
  transform:rotate(90deg);
}
.tsw ul {
  list-style:none;
  margin:0;
  padding:0 10px 8px;
  display:flex;
  flex-direction:column;
  max-height:220px;
  overflow:auto;
}
.tsw li {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 10px;
  align-items:center;
  padding:5px 0;
  border-top:1px solid var(--line2);
  font-size:12.5px;
}
.tsw li b {
  font-weight:600;
  color:var(--ink);
}
.tsw li small {
  grid-column:1;
  font-size:11px;
  color:var(--sub);
}
.tsw li .btn {
  grid-column:2;
  grid-row:1/span 2;
}
.tsw li.out b {
  text-decoration:line-through;
  color:var(--sub);
}
.tsw .tsw-h {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  padding:8px 0 2px;
  border:0;
  display:block;
}
.tsee {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.tse-picks {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-height:28px;
  align-items:center;
}
.tse-chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--tealline2);
  background:var(--soft2);
  border-radius:7px;
  padding:3px 4px 3px 8px;
  font-size:12px;
  color:var(--ink);
  max-width:100%;
}
.tse-chip>.li {
  color:var(--teal);
  flex:none;
}
.tse-chip small {
  color:var(--sub);
  font-size:11px;
  white-space:nowrap;
}
.tse-chip button {
  border:0;
  background:none;
  width:20px;
  height:20px;
  border-radius:5px;
  display:grid;
  place-items:center;
  color:var(--sub);
  padding:0;
}
.tse-chip button:hover {
  background:var(--hover);
  color:var(--bad);
}
.tse-none {
  font-size:12px;
  color:var(--faint);
}
.tse-add .minisearch {
  width:100%;
  height:36px;
}
.tse-res {
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:9px;
  margin-top:6px;
  max-height:230px;
  overflow:auto;
  background:var(--card);
}
.tse-res button {
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-bottom:1px solid var(--line2);
  background:none;
  padding:7px 10px;
  text-align:left;
  color:var(--ink2);
}
.tse-res button:last-child {
  border-bottom:0;
}
.tse-res button:hover,.tse-res button:focus-visible {
  background:var(--hover2);
}
.tse-res button>.li {
  color:var(--teal);
  flex:none;
}
.tse-res b {
  font-size:12.5px;
  color:var(--ink);
  font-weight:600;
}
.tse-res small {
  display:block;
  font-size:11px;
  color:var(--sub);
}
.tse-res .tse-k {
  margin-left:auto;
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  white-space:nowrap;
}
.tse-quick {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size:11.5px;
  color:var(--sub);
  margin-top:6px;
}
.tse-quick button {
  border:1px dashed var(--border3);
  background:none;
  border-radius:7px;
  padding:2px 8px;
  font-size:12px;
  color:var(--ink2);
}
.tse-quick button:hover {
  border-color:var(--teal);
  color:var(--teal);
}
.tse-tot {
  font-size:13px;
  color:var(--ink2);
  margin:0;
}
.tse-tot b {
  color:var(--ink);
}
.tk-h4 {
  font:700 13px var(--disp);
  margin:4px 0 0;
  color:var(--ink);
}
.tk-ownnote {
  margin-top:-4px;
}
.tk-asline {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  color:var(--ink2);
  margin:0 0 10px;
}
.tk-asline .av2 {
  width:24px;
  height:24px;
  font-size:9.5px;
}
.tk-as {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.tk-as .av2 {
  width:26px;
  height:26px;
  font-size:10px;
}
.tk-as b {
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
}
.tk-as small {
  display:block;
  font-size:11.5px;
  color:var(--sub);
  white-space:nowrap;
}
.tk-as .bad {
  color:var(--bad);
}
.tkna.who {
  border-style:solid;
  border-color:var(--line);
  background:var(--line2);
}
.tkna.who::after {
  display:none;
}
.tn-rev {
  margin:0;
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.tn-rev>div {
  display:contents;
}
.tn-rev dt,.tn-rev dd {
  margin:0;
  padding:9px 12px;
  border-bottom:1px solid var(--line2);
}
.tn-rev>div:last-child dt,.tn-rev>div:last-child dd {
  border-bottom:0;
}
.tn-rev dt {
  font:600 10px var(--mono);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--faint);
  background:var(--card2);
}
.tn-rev dd {
  font-size:12.5px;
  color:var(--ink2);
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.tn-rev dd b {
  color:var(--ink);
}
.tn-rev .tk-as {
  display:flex;
}
.tk-seg {
  margin-right:4px;
}
.tktbl .tk-msum {
  display:none;
  margin-top:3px;
}
@container (max-width:900px) {
  .tktbl .tk-c4,.tktbl .tk-c2 {
    display:none;
  }
  .tktbl .tk-msum {
    display:block;
  }
}
@container (max-width:700px) {
  .tktbl .tk-c3 {
    display:none;
  }
}
@container (max-width:520px) {
  .tktbl .tk-c5 {
    display:none;
  }
}
@media (max-width:900px) {
  .tktbl .tk-msum {
    display:block;
  }
}
@media (max-width:900px) {
  .tnk {
    grid-template-columns:minmax(0,1fr);
  }
  .tn-rev {
    grid-template-columns:minmax(0,1fr);
  }
  .tn-rev dt {
    border-bottom:0;
    padding-bottom:2px;
    background:none;
  }
  .tn-rev dd {
    padding-top:0;
  }
  .tnst button {
    font-size:0;
    gap:0;
    padding:3px;
  }
  .tnst li.on button {
    font-size:12px;
    gap:6px;
    padding:3px 8px 3px 3px;
  }
  .tk-seg button,.tk-seg a {
    padding:3px 7px;
  }
}
/* ===================== round 8 ===================== */
/* round 8: the owner is fixed, and a service token stays inside its owner's view */
.tup-fixed {
  background:var(--card2);
  border-style:dashed;
}
.tup-fixed .tup-sel {
  opacity:.8;
}
.tup-fixed .tup-sel b,.tup-fixed .tup-sel small {
  color:var(--sub);
}
.tse-lim {
  display:flex;
  gap:6px;
  align-items:flex-start;
  font-size:12px;
  color:var(--sub);
  margin:0;
}
.tse-lim .li {
  flex:none;
  margin-top:2px;
  color:var(--faint);
}
.tsw li.gone b {
  color:var(--sub);
  text-decoration:line-through;
}
.tsw li.gone small {
  color:var(--amberink);
}
/* ===================== the mock's inline styles, as classes ===================== */
.convhead .navlabel {
  margin:0;
  padding:0;
}
.mbody.stack {
  display:flex;
  flex-direction:column;
  gap:10px;
}
/* the shell's links, which the mock draws as buttons */
a.navbtn,a.mi,a.opt,a.back,a.sendbtn,a.btn,a.iconbtn,.tabbar a {
  text-decoration:none;
}
a.opt {
  color:inherit;
}
.opt-rule {
  border:0;
  border-top:1px solid var(--line2);
  margin:4px 0;
}
@media (max-width:900px) {
  .tabbar a {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    font-size:10.5px;
    font-weight:600;
    color:var(--sub);
    position:relative;
  }
  .tabbar a .ic {
    font-size:18px;
    line-height:1;
  }
  .tabbar a.on {
    color:var(--teal);
  }
}
.collapse .rail-open,.shell.rail .collapse .rail-close {
  display:none;
}
.shell.rail .collapse .rail-open {
  display:inline;
}
.search input,.search input:focus,.fsearch input,.fsearch input:focus {
  padding:1px 2px;
  border:0;
  box-shadow:none;
  width:auto;
}
/* find's box is its whole height, a 24px target on the phone */
.fsearch input {
  align-self:stretch;
}
html.ai-on .main:has(> .ai)>.shell-main,html.ai-on .main:has(> .ai)>.setwrap {
  display:none!important;
}
.navlabel {
  color:var(--sub);
}
.search input {
  align-self:stretch;
}
.send-step,.scopepick .c,.pickrow .cnt i {
  color:var(--sub);
}
.popover .mh,.menu .mh {
  color:var(--sub);
}
.pkform {
  display:contents;
}
.pickall b {
  font-family:var(--sans);
}
.minisearch.pksearch {
  width:100%;
  margin-bottom:8px;
  height:36px;
}
.pkpage {
  border:1px solid var(--line);
}
.pkgap {
  flex-basis:12px;
}
.pknone {
  padding:20px 6px;
}
.pickrow[hidden] {
  display:none;
}
.side:focus {
  outline:none;
}
.bellnone {
  padding:18px 12px;
  font-size:12.5px;
}

/* settings frame and shared table */
.viewtitle small.crumb {
  order:-1;
}
/* --sub, not the mock's --faint, for AA contrast, as the shell's labels */
.navlabel.navadv,.tbl th {
  color:var(--sub);
}
.tbl td.tempty {
  padding:30px 20px;
  color:var(--sub);
}
.dialog-foot [data-settings-delete] {
  margin-right:auto;
}
/* top search: this page's sections or everywhere's (js/spotlight.js) */
.qpanel:not(.all) .qp-all,.qpanel.all .qp-page {
  display:none;
}
#qpfacets>.qp-sec:first-child {
  border-top:1px solid var(--line2);
}
.spnone {
  padding:24px 12px;
  text-align:center;
  font-size:13px;
}
/* the mock's --faint misses 4.5:1 for text this small: the panel's text is --sub */
.qpanel .qp-h,.qpanel .spotg,.qpanel .qp-foot,.qp-chips .c,.spoti .tx small,.spoti .kd {
  color:var(--sub);
}
/* the fax list: links the mock draws as buttons, and its inline styles */
a.tag.tbtn,a.rsend,a.fbtn,.chip a,.empty a.btn {
  text-decoration:none;
}
.chip a {
  color:var(--deep);
  padding:0 4px;
  font-size:13px;
  line-height:1;
}
.fbtn.reset {
  border-style:dashed;
}
#pop form {
  display:contents;
}
.opt-name {
  display:block;
}
.opt-num {
  font-size:11px;
}
#pop>.mh:first-child {
  padding:6px 8px;
}
.opt[hidden] {
  display:none;
}
.peek .pp img {
  display:block;
  width:100%;
  height:auto;
}
.peek .pp:has(img) {
  padding:0;
}
.tbl td.last.keyhelp {
  text-align:left;
}
.row:focus {
  outline:0;
}
/* a phone holds "+ contact" to WCAG 2.5.8's 24px by a hit area, so the row keeps the mock's height */
@media (max-width:767px) {
  .row .addc {
    position:relative;
  }
  .row .addc::after {
    content:"";
    position:absolute;
    inset:-4px 0;
  }
}
/* the parts' .tag reaches the mock's tags and chips; the action icons keep the box they were matched in */
.act .ai,.mact .ai {
  flex:none;
  flex-direction:row;
  min-height:0;
  background:none;
}
.tag {
  display:inline;
  letter-spacing:normal;
}
.chip {
  letter-spacing:normal;
}
/* the list fills main, so its card runs below a short list as the mock's does */
.shell-main:has(> #v-list) {
  display:flex;
  flex-direction:column;
}
/* #selAll keeps WCAG 2.5.8's 24px from the Select-by button; the box stays where the mock has it */
.selall input {
  margin-right:5px;
}
.selall button {
  padding-left:5px;
}
/* AA over the mock: the list's faint text takes --sub, and light amber and
   green text on their tints darken a step (4.4:1 in the mock) */
:root {
  --warnink:#865900;
  --okink:#177248;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --warnink:var(--warn);
    --okink:var(--ok);
  }
}
:root[data-theme="dark"] {
  --warnink:var(--warn);
  --okink:var(--ok);
}
.row .meta .to,.row .meta .pg,.row:not(.unread) .line .sum.faint,.fbtn span.k,.opt .c {
  color:var(--sub);
}
.proc,.st.review {
  color:var(--warnink);
}
.st.sent {
  color:var(--okink);
}
/* the reader: Go's rendered page images in the mock's paper, block regions over them */
.main:has(#reader)>.top {
  display:none;
}
.shell-main:has(>#reader) {
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
@media (max-width:900px) {
  body:has(#reader) {
    --tab:0px;
  }
  body:has(#reader) .tabbar {
    display:none;
  }
}
.paper.img {
  padding:0;
  position:relative;
  overflow:hidden;
}
.paper.bad {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  color:var(--sub);
}
.pimg {
  position:absolute;
  inset:0;
}
.pimg img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
/* page images take the dark theme's --paper tone (#f3f4f1), as the mock's pages do */
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) :is(.pimg,.thumb,.peek .pp) img {
    filter:brightness(.953);
  }
}
:root[data-theme="dark"] :is(.pimg,.thumb,.peek .pp) img {
  filter:brightness(.953);
}
.pregions {
  position:absolute;
  inset:0;
}
.paper .pregions .blk {
  position:absolute;
  margin:0;
  padding:0;
  border:0;
  border-radius:2px;
  background:none;
  font:inherit;
  cursor:pointer;
}
.paper .pregions .blk+.blk {
  margin:0;
}
.regions .paper .pregions .blk {
  box-shadow:0 0 0 1px #0d5f6655;
}
.paper .pregions .blk.hit {
  background:#ffe99a66;
  box-shadow:0 0 0 1px #e0b400;
}
.paper .pregions .blk.cur {
  background:#f2b70540;
  box-shadow:0 0 0 2px #f2b705;
}
.paper .pregions .blk.lit {
  background:#ffe99a55;
  box-shadow:0 0 0 3px #ffe99a;
}
.paper .pregions .bn {
  left:-14px;
}
.reader-band {
  position:absolute;
  border:1px dashed #f2b705;
  pointer-events:none;
}
.thumb img,.thumb .tph {
  width:40px;
  height:52px;
  background:var(--paper);
  border-radius:2px;
  box-shadow:0 1px 2px #0003;
  display:block;
  object-fit:cover;
}
.thumb.bad .tph {
  background:var(--badbg);
}
@media (max-width:900px) {
  .thumb img,.thumb .tph {
    width:32px;
    height:42px;
  }
}
.dtnone {
  color:var(--sub);
  font-size:12.5px;
  padding:6px 0;
}
.kvsub {
  display:block;
  color:var(--faint);
  font-size:12.5px;
}
.delivnote {
  font-size:12.5px;
  padding:4px 0;
}
.rtcur {
  margin-left:8px;
}
.rtsearch {
  width:100%;
  height:36px;
  margin-bottom:6px;
}
.dtacts {
  margin-left:auto;
  display:flex;
  gap:6px;
}
.callout .btn {
  margin-left:4px;
}
.sumhead button.tag {
  border:0;
  cursor:pointer;
}
.pill.warn {
  background:var(--warnbg);
  color:var(--warn);
}
.fpanel.stale .fres {
  opacity:.55;
}
/* a page's text not fetched yet holds about a page's room, so scrolling Full text fetches pages one or two at a time */
.doctext [data-blocks-page]:has(>[data-page-wait]) {
  min-height:60vh;
}
/* the mock's --faint and --warn small text miss WCAG AA contrast in Summary and Full text */
#reader .kv label,#reader .kvsub,#reader .node small,#reader .psteps li:not(.done):not(.cur),#doctext .pg>span,#doctext p .bn,#doctext p .bty {
  color:var(--sub);
}
#doctext p.lit .bn,#doctext p.lit .bty {
  color:inherit;
}
#reader .psteps li.cur {
  color:var(--amberink);
}
/* the assistant: AI mode is html.ai-on (fxtheme.js, before paint), the window #aiw */
html:not(.ai-on) #v-assistant {
  display:none;
}
html.ai-on .main>.top:not(.searching),html.ai-on .main>.shell-main,html.ai-on .main>.setwrap {
  display:none!important;
}
html.ai-on .shell .mail-only {
  display:none!important;
}
html.ai-on .shell .ai-only {
  display:flex!important;
}
html.ai-on .shell.rail .convs {
  display:none!important;
}
html.ai-on .askfab.global {
  display:none;
}
.convlabel {
  margin:0;
  padding:0;
}
.convnone {
  font-size:12.5px;
  padding:8px 10px;
}
.aithread {
  display:contents;
}
.bub {
  position:relative;
}
.bubfile {
  font-size:11.5px;
  opacity:.85;
  margin-top:4px;
}
.bubfile .li {
  vertical-align:-3px;
}
.aitext p+p,.aitext>*+* {
  margin-top:6px;
}
.aitext ul,.aitext ol {
  padding-left:18px;
}
.aitext blockquote {
  margin-left:0;
  margin-right:0;
  padding:6px 10px;
  border-left:3px solid var(--tealline);
  background:var(--soft2);
  border-radius:0 6px 6px 0;
  color:var(--sub);
}
.aitext pre {
  white-space:pre-wrap;
  font:12px var(--mono);
}
.aiact {
  font-size:12px;
  color:var(--sub);
}
.aiacts {
  position:absolute;
  left:0;
  top:100%;
  display:flex;
  gap:4px;
  padding-top:2px;
  opacity:0;
  transition:opacity .12s;
}
.bub.ai:hover .aiacts,.aiacts:focus-within {
  opacity:1;
}
.aipill {
  display:inline-flex;
  align-items:center;
  gap:4px;
  border:0;
  background:none;
  color:var(--sub);
  font-size:11px;
  padding:2px 4px;
  border-radius:5px;
  cursor:pointer;
}
.aipill:hover {
  background:var(--hover);
  color:var(--ink2);
}
.aipill svg {
  width:12px;
  height:12px;
}
.pnote {
  font-size:12px;
}
.propose th.pkey {
  width:90px;
}
.propose .pold {
  color:var(--faint);
}
.propose .pdel {
  color:var(--bad);
}
.propose .psame summary {
  font-size:12px;
  cursor:pointer;
  margin-top:6px;
}
.aistatus {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  color:var(--sub);
}
.aistatus:has(p:empty):has([data-ai-retry][hidden]) {
  display:none;
}
.btn.pri.bad {
  background:var(--bad);
  border-color:var(--bad);
}
.convren {
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  color:var(--faint);
  opacity:0;
  transition:opacity .12s;
}
.convrow:hover .convren,.convren:focus-visible {
  opacity:1;
}
.aiw-convs .convrow {
  border-radius:7px;
}
.aiw-convs .convrow.on {
  background:var(--soft2);
}
.aiw-convs .convrow:hover {
  background:var(--hover2);
}
.convrename {
  display:block;
  padding:2px;
}
.convrename .convtitlein {
  font-size:13px;
  width:100%;
}
.converr {
  font-size:11.5px;
  color:var(--bad);
  padding:2px 4px;
}
.aitext a.cite {
  text-decoration:none;
  display:inline-block;
}
.propose th {
  color:var(--sub);
}
.bub.ai:has(>.aiacts) {
  margin-bottom:14px;
}
/* drawn at the mock's size, tapped in 44px */
@media (max-width:900px) {
  .aiburger,.aicomp .sendc {
    position:relative;
  }
  .aiburger::after,.aicomp .sendc::after {
    content:"";
    position:absolute;
    inset:calc(50% - 22px);
  }
  #convNew {
    position:relative;
    z-index:1;
  }
  #convNew::after {
    content:"";
    position:absolute;
    inset:-9px 0;
  }
}
.propose .popen {
  margin-left:auto;
  font-weight:500;
  color:var(--deep);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.aimsgs .bub.ai {
  display:block;
  flex:none;
}
.propose .faint,.propose .pold,.convnone {
  color:var(--sub);
}
.askfab.askfab.global.on {
  color:var(--onteal);
}
.composer textarea,.composer textarea:focus {
  box-shadow:none;
  padding:2px;
  border-radius:0;
}
.convsearch input,.aiwsearch input,.convsearch input:focus,.aiwsearch input:focus {
  border:0;
  padding:0;
  box-shadow:none;
  background:none;
  border-radius:0;
}
.propose td {
  overflow-wrap:anywhere;
}
.propose .pline+.pline {
  margin-top:3px;
}
.propose .pnew {
  color:var(--deep);
  font-weight:500;
}

/* profile: server-drawn mark previews, the avatar photo, dialog forms */
.mark>svg {
  border-radius:6px;
  border:1px solid var(--line2);
  background:#fff;
  flex:none;
  width:120px;
  height:37px;
}
.av img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
.modal>.mform {
  display:contents;
}
.pid .pidf {
  flex:1;
  gap:10px;
}
.mfa-totp>.fstack {
  gap:10px;
  flex:1;
  min-width:0;
}
.mfacode {
  font:600 20px var(--mono);
  letter-spacing:.18em;
  max-width:200px;
}
.mfaerr {
  color:var(--bad);
}
.codesbar {
  display:flex;
  gap:8px;
  margin-top:10px;
}
.sgname {
  margin-bottom:10px;
}
.sigfoot {
  display:flex;
  justify-content:space-between;
  margin-top:8px;
}
.sigfoot small,.opt .popnote {
  color:var(--sub);
}
.opt .popnote {
  margin-left:auto;
  font-size:11px;
}
.newm .upper {
  text-transform:uppercase;
}
.pwbody {
  display:flex;
  flex-direction:column;
  gap:10px;
}
/* contacts: the mock's inline styles as classes; the page fills main as the inbox does */
.shell-main:has(> #v-contacts) {
  display:flex;
  flex-direction:column;
}
.ctmain {
  background:var(--card);
  flex:1;
}
.ctbl thead th.ctcheck {
  width:34px;
}
.ctsub {
  font-size:11.5px;
}
.ctacts {
  white-space:nowrap;
}
.ctcount {
  font-size:13px;
}
.ctdel {
  margin-right:auto;
}
.ctimport {
  cursor:pointer;
  position:relative;
}
.ctimport:has(:focus-visible) {
  outline:2px solid var(--teal);
  outline-offset:2px;
}
.ctselall input {
  margin-right:4px;
}
.ctproblems {
  margin:0;
  padding-left:18px;
  font-size:12.5px;
  color:var(--sub);
}
.ctform {
  display:flex;
  flex-direction:column;
  min-height:0;
}
@media (max-width:900px) {
  .ctform .field {
    gap:0;
  }
  .ctform .field label {
    padding-bottom:5px;
  }
  .ctform footer .btn {
    position:relative;
  }
  .ctform footer .btn::after {
    content:"";
    position:absolute;
    inset:-4px 0;
  }
  /* drawn at the mock's size, tapped in 44px: the area grows left from 2px past the right edge, clear of the next button */
  #contactsHead .btn,.ctacts .btn {
    position:relative;
  }
  #contactsHead .btn::after,.ctacts .btn::after {
    content:"";
    position:absolute;
    right:-2px;
    top:calc(50% - 22px);
    height:44px;
    width:max(100% + 2px,44px);
  }
}
.pmcount {
  margin-right:auto;
}
/* the organization screens: list cells' second lines, record pages' chip
   lists and links, the grant picker and the HIPAA and BAA dialogs */
.tsub,.tbl td .tsub {
  font-size:11px;
}
.tmore {
  font-size:11.5px;
}
a.gchip,a.flink2 {
  text-decoration:none;
  color:inherit;
}
a.gchip {
  color:var(--deep);
}
.chiprow {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.gsub {
  font-weight:400;
}
.bigempty {
  font-size:12px;
}
.glhead .glq {
  margin:0;
  flex:1;
}
.pmsearch {
  width:100%;
  height:36px;
  margin-bottom:8px;
}
.hintro {
  font-size:13px;
  color:var(--ink2);
}
.baarow {
  margin-top:12px;
}
label.opt.baaok {
  margin-top:8px;
  width:auto;
}
/* the parts draw every checkbox 16px and rounded; these keep the native box */
.opt input[type=checkbox],.pickrow input[type=checkbox],.nbnum input[type=checkbox],.cprow input[type=checkbox] {
  border:revert;
  border-radius:revert;
  padding:revert;
}
.opt input[type=checkbox],.nbnum input[type=checkbox],.cprow input[type=checkbox] {
  width:auto;
  height:auto;
}
.etab .rmc {
  text-align:right;
}
.mbody.mqbody {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.glist .glnone {
  padding:8px;
}
/* the masquerade pages: what the mock set inline */
/* the parts draw a .stat as an uppercase pill; a card's is a big number or name */
.card>.stat {
  display:block;
  padding:0;
  border-radius:0;
  background:none;
  letter-spacing:normal;
  text-transform:none;
  white-space:normal;
}
.tbl td .tlogged {
  font-size:12px;
}
.cards.flush {
  padding:0;
}
.mqreason {
  font-size:13.5px;
  margin:0;
}
/* the settings log pages' summary (templates/settings/summary.html): what the mock set inline */
.v-completed {
  background:var(--ok);
}
.v-partial {
  background:var(--warn);
}
.v-busy {
  background:var(--border5);
}
.v-noanswer {
  background:var(--faint);
}
.v-failed {
  background:var(--bad);
}
.v-ui {
  background:var(--teal);
}
.v-ai {
  background:var(--via-ai);
}
.v-job {
  background:var(--via-job);
}
.v-api {
  background:var(--via-api);
}
.as-spark rect.bar,.achart rect.bar {
  fill:var(--chartbar);
}
.as-spark rect.bar-on,.achart rect.bar-on {
  fill:var(--teal);
}
.achart line.axis {
  stroke:var(--line);
}
.tbl.acttbl td.act-time {
  font-size:12px;
  white-space:nowrap;
}
.tbl.acttbl td .act-detail {
  font-size:11px;
  color:var(--sub);
}
.act-problem {
  margin:12px 20px 0;
  color:var(--bad);
}
.act-head {
  display:flex;
  gap:8px;
}
.acttbl button.kind {
  border:2px outset;
  border-color:color-mix(in srgb,currentColor 45%,transparent);
}
.afi select:focus {
  box-shadow:none;
  border-color:var(--line);
}
.afi select.set:focus {
  border-color:var(--teal);
}
.afi select:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:2px;
  box-shadow:none;
}
.act-notes {
  margin:12px 20px 0;
  padding:0;
  list-style:none;
  color:var(--sub);
  font-size:12.5px;
}
.act-notes li+li {
  margin-top:4px;
}
/* any cell but the time breaks anywhere, so no name or value sets the table wider than the phone */
.tbl.acttbl td {
  overflow-wrap:anywhere;
}
/* flows sections: depth as data-d (the CSP blocks style=""), links styled as their mock buttons */
.fpage {
  display:contents;
}
[data-d="1"] {
  --d:1;
}
[data-d="2"] {
  --d:2;
}
[data-d="3"] {
  --d:3;
}
[data-d="4"] {
  --d:4;
}
[data-d="5"] {
  --d:5;
}
a.flink,a.flink2,a.fpickrow {
  text-decoration:none;
  color:inherit;
}
.bpwhere li>a {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:2px 8px;
  background:var(--card);
  color:var(--teal);
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.bpwhere li>a:hover {
  border-color:var(--teal);
}
.minisearch.fwide {
  width:100%;
  height:36px;
  margin-bottom:8px;
}
.fpickrows {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ftabs button[aria-selected=true] {
  color:var(--teal);
  border-bottom-color:var(--teal);
}
.fmodes button[aria-selected=true] {
  background:var(--soft);
  color:var(--deep);
}
.fmark {
  font-size:11.5px;
  font-weight:600;
  color:var(--sub);
  white-space:nowrap;
}
/* --faint fails AA on these small labels; --sub passes */
.ftags,.bpwhere li.flowgrp>i,.bpwhere li.flowgrp>em,.ffacts dt,.fsms figcaption,.fcard .field small {
  color:var(--sub);
}
/* the parts' input and checkbox rules are not the mock's: these inputs draw as the browser does */
.fnewrow input {
  all:revert;
  flex:1;
  font:inherit;
  color:inherit;
  min-width:0;
}
.fnewrow input:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:2px;
}
.systog input {
  all:revert;
  accent-color:var(--teal);
  margin:0;
}
.modal>form {
  display:contents;
}
.vtabs button[aria-selected=true] {
  background:var(--teal);
  border-color:var(--teal);
  color:var(--onteal);
}
.vstack {
  display:flex;
  flex-direction:column;
  gap:10px;
}
/* a control takes no more room than the text it holds: it is 24px tall (a
   pointer target), and negative margins give the extra back to the row */
.ffield input,.ffield select,.ffield textarea {
  font:inherit;
  color:inherit;
  padding:0 6px;
  min-height:24px;
  margin:calc((1lh - 24px) / 2) 0;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  width:100%;
  min-width:0;
  box-shadow:none;
}
.ffield input:hover,.ffield select:hover,.ffield textarea:hover {
  border-color:var(--line);
}
.ffield input:focus-visible,.ffield select:focus-visible,.ffield textarea:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:0;
}
/* the name is a 24px target whose whole box is visible: its row's padding,
   not a negative margin, gives the extra back, and it sits above a narrow
   row's description, which reaches up into that padding */
.ffield .fk input {
  font-family:var(--code);
  font-size:12px;
  margin:0;
  position:relative;
  z-index:1;
}
.ffield .fk {
  padding-block:calc(6px - (24px - 1lh) / 2) calc(8px - (24px - 1lh) / 2);
}
.ffield select {
  appearance:none;
  color:var(--teal);
  font-size:12px;
  padding:0 2px;
}
.ffield textarea {
  field-sizing:content;
  flex:1;
  width:auto;
  resize:none;
}
.ffield .fctl {
  flex:none;
}
.ffield .fk,.ffield .ft {
  display:flex;
}
.ffield .fdsc {
  display:flex;
  gap:6px;
  align-items:flex-start;
}
/* a row reads as the mock's, key, type and description; its other controls show while it is hovered or holds focus */
.ffield .fctl {
  display:flex;
  gap:6px;
  align-items:center;
  height:1lh;
}
.ffield .fctl select {
  width:auto;
}
.ffield:not(:hover):not(:focus-within) .fctl {
  display:none;
}
.ffield .freq {
  font-size:11px;
  color:var(--sub);
  white-space:nowrap;
  display:flex;
  gap:3px;
  align-items:center;
}
.ffield .freq input {
  width:auto;
  accent-color:var(--teal);
}
.ffield .iconbtn {
  width:24px;
  height:24px;
  font-size:14px;
}
.fadd1 {
  margin-top:10px;
}
.fpmsearch {
  width:100%;
  height:36px;
  margin-bottom:8px;
}
.fpcount {
  margin-right:auto;
}
.fpnew input,.fpnew select {
  width:auto;
}
.modal .field small {
  color:var(--sub);
}
.field.fgap {
  margin-top:10px;
}
/* a card's sub-panel lays out as the card itself would (12px) */
.fsubpanel {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ffield.h,.vrow label,.vtbl th {
  color:var(--sub);
}
/* the template screens: the mock's inline styles, as classes, and its buttons drawn as links */
a.bp-num,a.bp-sorter-h,a.bpcard-t,a.bpm,a.fk-name,.bpcard a.btn {
  text-decoration:none;
}
.fpick[data-d="1"] {
  --d:1;
}
.fpick[data-d="2"] {
  --d:2;
}
.fpick[data-d="3"] {
  --d:3;
}
.fpick[data-d="4"] {
  --d:4;
}
.bpm-pad {
  padding-left:8px;
}
.bphero-pill {
  align-self:flex-start;
}
.opt .opt-sub {
  display:block;
  font-size:11.5px;
  color:var(--sub);
}
.field.qcdesc {
  margin-top:10px;
}
.aflist {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.aflist-none {
  font-size:12.5px;
  padding:8px 2px;
}
.bp-cmpnums {
  margin-top:6px;
}
.bp-wires path.t-green {
  stroke:var(--lc-green);
}
.bp-wires path.t-blue {
  stroke:var(--lc-blue);
}
.bp-wires path.t-amber {
  stroke:var(--lc-amber);
}
.bp-wires path.t-violet {
  stroke:var(--lc-violet);
}
.bp-wires path.t-teal {
  stroke:var(--lc-teal);
}
.bp-wires path.t-red {
  stroke:var(--lc-red);
}
.bp-wires path.t-olive {
  stroke:var(--lc-olive);
}
.bp-wires path.t-other {
  stroke:var(--lc-other);
}
.bp-wires path.t-out {
  stroke:var(--lc-out);
}
/* the numbers dialog search, full width as the mock draws it */
.minisearch.bpnumq {
  width:100%;
  height:36px;
  margin-bottom:8px;
}

/* the reader's Ask tab: the assistant's messages and composer, moved in
   by assistant.js, drawn as the tab's chat (.clog, .cbub, .chatc) */
.askwrap>[data-ask-icons],.askwrap [data-ai-intro],.askwrap .crow .spacer,.askwrap .clip,.askwrap .ftypes,.askwrap .aihint,.askwrap .aiacts [data-ai-copy] {
  display:none;
}
.askwrap .aimsgs {
  flex:1;
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:16px 18px 12px;
  background:var(--card2);
}
.askwrap .aithread {
  display:flex;
  flex-direction:column;
  gap:3px;
}
.askwrap .cm.ai {
  flex:none;
  flex-direction:row;
  background:none;
}
.askwrap .aithread:empty {
  display:none;
}
.askwrap .bub,.askwrap .aimsgs .bub.ai {
  max-width:100%;
  margin:0;
  padding:8px 12px;
  border-radius:15px;
  font-size:13.5px;
  line-height:1.45;
  flex:none;
}
.askwrap .cm.me .bub {
  background:var(--teal);
  color:var(--onteal);
  border-top-right-radius:5px;
}
.askwrap .cm.them .bub {
  background:var(--card);
  color:var(--ink);
  border:1px solid var(--line);
  border-top-left-radius:5px;
}
.askwrap .cm.them .bub.typing {
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:4px;
  padding:12px 14px;
  letter-spacing:0;
}
.askwrap .bub.ai:has(>.aiacts) {
  margin-bottom:0;
}
.askwrap .aiacts:not(:has([data-ai-retry])) {
  display:none;
}
.askwrap .aicomp {
  flex:none;
  padding:10px 18px calc(12px + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--line2);
  background:var(--card);
}
.askwrap .cpins.row:not([hidden])+.aicomp {
  border-top:0;
}
.askwrap .composer {
  display:flex;
  align-items:flex-end;
  gap:8px;
  border:1px solid var(--border2);
  border-radius:12px;
  padding:6px 6px 6px 12px;
  background:var(--card);
  box-shadow:none;
}
.askwrap .composer:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #0d5f661a;
}
.askwrap .composer textarea,.askwrap .composer textarea:focus {
  flex:1;
  min-width:0;
  width:auto;
  min-height:0;
  max-height:120px;
  border:0;
  background:none;
  resize:none;
  font:13.5px/1.4 var(--sans);
  color:var(--ink);
  outline:0;
  padding:6px 0;
}
.askwrap .crow {
  display:contents;
}
.askwrap .composer .sendc {
  width:32px;
  height:32px;
  border-radius:9px;
  flex:none;
}
.askwrap .composer .sendc svg {
  width:15px;
  height:15px;
}
.askwrap .chint,.askwrap .csrc>span {
  color:var(--sub);
}
.askwrap a.cite {
  color:var(--amberink);
  text-decoration:none;
}
.askwrap .aimsgs .bub.ai p.csrc {
  margin-top:8px;
}
.askwrap .composer [data-ai-stop] {
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:9px;
  flex:none;
  display:grid;
  place-items:center;
  background:var(--teal);
  color:var(--onteal);
  font-size:0;
  opacity:.45;
}
.askwrap .composer [data-ai-stop] span {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
.askwrap .composer [data-ai-stop]:hover,.askwrap .composer [data-ai-stop]:focus-visible {
  opacity:1;
}
.askwrap .composer [data-ai-stop] svg {
  width:15px;
  height:15px;
}
.askchip {
  position:fixed;
  z-index:60;
}
@media (min-width:901px) {
  body:not(.askhidden) .askwrap .aicomp {
    padding-bottom:28px;
  }
}
@media (max-width:900px) {
  .askwrap .aimsgs {
    padding:14px 12px 10px;
  }
}
/* numbers (T24): what the mock writes as inline styles */
.nstack {
  gap:8px;
}
.nh3 {
  font-size:15px;
}
.nflowh {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.nflowh .btn {
  margin-left:auto;
}
.ntags {
  font-size:12px;
}
.whob {
  padding:0 10px 10px;
}
.gchip a {
  color:inherit;
  text-decoration:none;
}
.nbw130 {
  width:130px;
}
.nbw170 {
  width:170px;
}
.nbw200 {
  width:200px;
}
.nbgo {
  align-self:flex-end;
}
.nbhint {
  margin-top:14px;
}
.nbc150 {
  width:150px;
}
.nbc330 {
  width:330px;
}
.nbc180 {
  width:180px;
}
.nbc190 {
  width:190px;
}
.nbper {
  font-size:12px;
}
.nbopt-l {
  font-weight:400;
}
.cpkc {
  display:contents;
}
.nbkeep {
  padding:6px 0;
}
.nbok {
  width:auto;
}
.cpanel .minisearch,.minisearch.aiwsearch {
  height:32px;
}
.alrm {
  margin-right:auto;
  color:var(--bad);
}
.albad {
  color:var(--bad);
}
.send-drop input[type=file] {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.send-drop {
  position:relative;
}
/* the numbers screens' notes: --sub, since --faint fails AA contrast */
#numForm .field small,[data-numm] .field small,.fflow-head.ro small,#alNote:not(.albad) {
  color:var(--sub);
}
/* a record page that is its own form: each value is its field, drawn as the
   text it holds and a field only on hover and focus; Save and Cancel show
   once one changes (entity.js) */
.ival {
  font:inherit;
  color:inherit;
  letter-spacing:inherit;
  background:transparent;
  border:1px solid transparent;
  border-radius:6px;
  padding:0 4px;
  margin:-1px -5px;
  width:auto;
  min-width:2ch;
  max-width:100%;
  field-sizing:content;
  appearance:none;
  -webkit-appearance:none;
}
.ival:hover {
  border-color:var(--line);
}
.ival:focus {
  border-color:var(--teal);
  background:var(--card);
  outline:none;
}
select.ival {
  cursor:pointer;
  width:auto;
}
.viewtitle .ival {
  min-width:0;
  flex:0 1 auto;
}
#detailForm {
  display:contents;
}
.isave {
  display:inline-flex;
  gap:6px;
}
.isave[hidden] {
  display:none;
}
.idel {
  display:flex;
  gap:8px;
  align-items:center;
}
.idel [data-delconfirm]:not([hidden]) {
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.pstatd>summary {
  list-style:none;
  cursor:pointer;
  border-radius:4px;
}
.pstatd>summary::-webkit-details-marker {
  display:none;
}
.pstatd>summary:hover {
  box-shadow:0 0 0 3px var(--card),0 0 0 4px var(--line);
}
.pstatd>summary:focus-visible {
  outline:none;
  box-shadow:0 0 0 3px var(--card),0 0 0 4px var(--teal);
}
.pstat {
  display:flex;
  gap:6px 16px;
  flex-wrap:wrap;
  align-items:center;
  margin:0 0 8px;
  font-size:12.5px;
  color:var(--sub);
}
.pstat .ival {
  color:var(--ink);
  font-weight:600;
}
/* a card row's remove: shown on hover or focus, so the page reads as values */
.rmh>button {
  display:none;
}
.rmh:hover>button,.rmh:focus-within>button,.rmh.rmon>button,tr:hover>.rmh>button,tr:focus-within>.rmh>button {
  display:inline-flex;
}
.rmin {
  position:relative;
}
.rmin>button {
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  background:var(--card);
}
/* a record's fields on the phone, which draws no title or meta line: entity.js moves them below its cards */
.mfields {
  display:none;
}
@media (max-width:900px) {
  .mfields {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  .mfields .ival {
    width:100%;
    margin:0;
    font-weight:400;
    font-size:14px;
    letter-spacing:normal;
    color:var(--ink);
  }
}
/* an Add the card's design does not draw: it takes no room and shows on hover or focus */
.fcard-head .qact {
  margin-block:-8px;
  opacity:0;
}
.fcard:hover .qact,.fcard:focus-within .qact {
  opacity:1;
}
