/* Country flags where the system draws none (Windows shows two letters):
   only flag characters come from this font, and only on html.flag-font
   (set at boot), so other systems never load it. */
@font-face {
  font-family: "OX Flags";
  src: url("/_/assets/flags.woff2?v=c404503e9e3f") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --btn: #000;
  --btn-fg: #fff;
  --btn-line: color-mix(in srgb, var(--fg) 12%, transparent);
  --btn-hover: #0e0e10;
  --btn-hover-line: #3f3f46;
  --btn-hover-fg: #fff;
  /* 4.5:1 or more on the cards and raised panels (#71767b was 4.3 and
     3.9 there). */
  --muted: #7e8389;
  --link: #1d9bf0;
  --link-hover: #8ecdff;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --status-deploy: #64d2ff;
  --line: #1c1c1c;
  --hover: rgba(255, 255, 255, 0.045);
  --glass: rgba(0, 0, 0, 0.8);
  /* A context menu's fill: nearly opaque, so its rows read over any
     photo or text under it (it was half see-through). */
  --menu-glass: rgba(28, 28, 30, 0.94);
  --glass-heavy: rgba(0, 0, 0, 0.92);
  --input-bg: #000;
  /* A field's edge reads 3:1 or more on the page, the cards, the raised
     panels and a menu's glass (#2f2f32 was 1.6:1, too faint to find the
     field by); the focused edge is clearly brighter again. */
  --input-line: #6b6b70;
  --input-focus: #b0b4b9;
  --card: #0a0a0a;
  --card-2: #0c0c0c;
  --elevated: #161616;
  --elevated-2: #16181c;
  --hairline: #2a2a2a;
  --hairline-strong: #3f3f3f;
  --scroll: #3a3a3c;
  --bubble-in: #3a3a3c;
  --bubble-in-fg: #fff;
  /* White reads at 4.6:1 on it (AA); the iOS blues read 3.7 and 4.0. */
  --bubble-out: #0071eb;
  --bubble-out-fg: #fff;
  --fg-dim: #c8c8c8;
  /* One height for every input and button on the site. */
  --control-h: 36px;
  /* The count beside a tab or a filter: "Followers (12)", "All (11)",
     as readable as the other quiet text (#4a4a4a was 2.4:1). */
  --tab-n: #7e8389;
  --rail-full: 256px;
  --rail-min: 80px;
  --rail: var(--rail-full);
  --stage: 600px;
  --stage-pad-x: 20px;
  /* Text inside the edge of a card in a page's column of cards. */
  --card-pad-x: 18px;
  --aside: 320px;
  --z-overlay: 150;
  --z-popup: 200;
  --z-toast: 220;
  --z-modal: 250;
  /* Over everything; a browser with a top layer puts the hint in it. */
  --z-tip: 2147483647;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --avatar-empty: linear-gradient(160deg, #1a1a1a 0%, #0c0c0c 46%, #050505 100%);
  --text-13: 14px;
  --text-15: 16px;
  --text-17: 18px;
  --text-20: 21px;
  --text-31: 33px;
  --lh-16: 17px;
  --lh-20: 21px;
  --lh-24: 26px;
  --lh-36: 38px;
  --lock-bar: 0px;
  --tabbar-h: 0px;
  --tabbar-pad: 0px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-flags: "OX Flags", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --uni-hi: #e6e6e6;
  --uni-mid: #8e8e93;
  --uni-lo: #3a3a3c;
  --uni-text: #e6e6e6;
  --uni-text-hot: #ffffff;
  --uni-line: rgba(255, 255, 255, 0.16);
  --uni-wash: rgba(255, 255, 255, 0.06);
  --uni-metal: #e6e6e6;
  --uni-metal-btn: #2c2c2e;
  --credit-hi: #ffe7a8;
  --credit-mid: #d4a24a;
  --credit-lo: #6a4a16;
  --credit-text: #f0d7a0;
  --credit-text-hot: #fff1c4;
  --credit-btn-fg: #14100a;
  --credit-line: rgba(212, 162, 74, 0.5);
  --credit-wash: rgba(212, 162, 74, 0.14);
  --sponsor-gold: #d4a24a;
}

/* A finger needs more than a pointer does. */
@media (pointer: coarse) {
  :root {
    --control-h: 44px;
  }
}

@property --msg-shift {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

* { box-sizing: border-box; }

html {
  /* No grey box over what a finger taps (a button's square around its
     round shape, a tab beside the picked one): each control shows its own
     press and pick. */
  -webkit-tap-highlight-color: transparent;
  /* Text keeps the sizes set here: a phone browser does not enlarge it in
     wide content (the plan table's headings came out twice their size). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  min-height: 100vh;
  min-height: 100dvh;
}

html,
body {
  overscroll-behavior-x: none;
}

@media (max-width: 800px) {
  html {
    overflow: hidden;
    scrollbar-gutter: auto;
    height: 100%;
    height: 100dvh;
  }
  /* No pull to refresh of the browser's own, in Safari as in the
     installed app: the page has its own (ui/pull.rs), and the browser's
     loaded the whole page again from a drag on an open menu (founder,
     2026-11-20). */
  html,
  body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
  }
  html.ios-pwa {
    min-height: 100lvh;
    height: 100lvh;
    height: var(--ios-shell-h, 100lvh);
    background-color: var(--bg);
    overscroll-behavior-y: none;
  }
  html.ios-pwa body,
  html.ios-pwa body.app {
    background-color: var(--bg);
    overscroll-behavior-y: none;
  }
  body,
  body.app {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    min-height: 0;
  }
  html.ios-pwa body.app {
    height: 100lvh;
    height: var(--ios-shell-h, 100lvh);
  }
  .post .post-byline > a.post-name,
  .post .post-byline > a.post-handle,
  .post .post-byline .badge-affiliate {
    pointer-events: none;
  }
  .post-byline .post-time {
    position: relative;
    z-index: 1;
  }
  .post-byline .post-drop {
    position: relative;
    z-index: 4;
    flex: 0 0 44px;
    width: 44px;
    margin-inline-end: -8px;
  }
  .post-byline .post-admin {
    width: 44px;
    height: 44px;
    margin: -12px 0;
  }
  .post-byline .post-admin::after {
    content: "";
    position: absolute;
    inset: -6px;
    /* The button already reaches into the page's edge: a wider tap area
       there made the timeline 2 px wider than the screen. */
    inset-inline-end: -4px;
  }
}

html {
  background: var(--bg);
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

html.theme-light,
html[data-theme="light"] {
  --bg: #ffffff;
  --fg: #111113;
  --btn-line: #5c5c62;
  --btn-hover: #2c2c2e;
  --btn-hover-fg: #fff;
  --muted: #3a3a3c;
  --tab-n: #4a4a4a;
  --fg-dim: #2c2c2e;
  --link: #0a5ebd;
  --link-hover: #084a96;
  --status-ok: #1f7a45;
  --status-warn: #8a6a12;
  --status-bad: #c62828;
  --status-deploy: #084a96;
  --line: #c7c7cc;
  --hover: rgba(0, 0, 0, 0.08);
  --glass: #ffffff;
  --glass-heavy: #ffffff;
  --input-bg: #ffffff;
  /* 3.5:1 or more on the cards (#8e8e93 was 2.7 there). */
  --input-line: #77777c;
  --input-focus: #3a3a3c;
  --card: #ebebf0;
  --card-2: #e5e5ea;
  --elevated: #ffffff;
  --elevated-2: #f2f2f7;
  --hairline: #c7c7cc;
  --hairline-strong: #8e8e93;
  /* 5:1 on the page (it read 3.3, and a season's about 2): a scrollbar is a control to be seen. */
  --scroll: #6e6e73;
  --bubble-in: #e5e5ea;
  --bubble-in-fg: #111113;
  --bubble-out: #0071eb;
  --bubble-out-fg: #fff;
  --avatar-empty: linear-gradient(160deg, #e5e5ea 0%, #d8d8de 46%, #d1d1d6 100%);
  --uni-hi: #111113;
  --uni-mid: #8e8e93;
  --uni-lo: #c7c7cc;
  --uni-text: #111113;
  --uni-text-hot: #111113;
  --uni-line: #c7c7cc;
  --uni-wash: rgba(0, 0, 0, 0.06);
  --uni-metal: #111113;
  --uni-metal-btn: #111113;
  --credit-text: #5c4818;
  --credit-text-hot: #3d3010;
  --credit-btn-fg: #fffaf0;
  --credit-line: rgba(106, 74, 22, 0.42);
  --credit-wash: rgba(212, 162, 74, 0.16);
  --sponsor-gold: #8a6110;
  color-scheme: light;
  scrollbar-color: var(--scroll) transparent;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]):not(.theme-light) {
    --bg: #ffffff;
    --fg: #111113;
    --btn-line: #5c5c62;
    --btn-hover: #2c2c2e;
    --btn-hover-fg: #fff;
    --muted: #3a3a3c;
    --tab-n: #4a4a4a;
    --fg-dim: #2c2c2e;
    --link: #0a5ebd;
    --link-hover: #084a96;
    --status-ok: #1f7a45;
    --status-warn: #8a6a12;
    --status-bad: #c62828;
    --status-deploy: #084a96;
    --line: #c7c7cc;
    --hover: rgba(0, 0, 0, 0.08);
    --glass: #ffffff;
    --glass-heavy: #ffffff;
    --input-bg: #ffffff;
    --input-line: #77777c;
    --input-focus: #3a3a3c;
    --card: #ebebf0;
    --card-2: #e5e5ea;
    --elevated: #ffffff;
    --elevated-2: #f2f2f7;
    --hairline: #c7c7cc;
    --hairline-strong: #8e8e93;
    --scroll: #6e6e73;
    --bubble-in: #e5e5ea;
    --bubble-in-fg: #111113;
    --bubble-out: #0071eb;
    --bubble-out-fg: #fff;
    --avatar-empty: linear-gradient(160deg, #e5e5ea 0%, #d8d8de 46%, #d1d1d6 100%);
    --uni-hi: #111113;
    --uni-mid: #8e8e93;
    --uni-lo: #c7c7cc;
    --uni-text: #111113;
    --uni-text-hot: #111113;
    --uni-line: #c7c7cc;
    --uni-wash: rgba(0, 0, 0, 0.06);
    --uni-metal: #111113;
    --uni-metal-btn: #111113;
    --credit-text: #5c4818;
    --credit-text-hot: #3d3010;
    --credit-btn-fg: #fffaf0;
    --credit-line: rgba(106, 74, 22, 0.42);
    --credit-wash: rgba(212, 162, 74, 0.16);
    --sponsor-gold: #8a6110;
    color-scheme: light;
    scrollbar-color: var(--scroll) transparent;
  }
}

.panel.credit,
.panel.sub-page,
.ox-ask.wallet-confirm {
  --uni-hi: #f3e2a0;
  --uni-mid: #c9a227;
  --uni-lo: #6e5418;
  --uni-text: #e6d392;
  --uni-text-hot: #f4e4a6;
  --uni-line: rgba(184, 146, 46, 0.48);
  --uni-wash: rgba(184, 146, 46, 0.14);
  --uni-metal: linear-gradient(158deg, #f6e7b0 0%, #e0c36a 16%, #8a6a22 40%, #efe0a0 56%, #b8922e 76%, #5c4514 100%);
  --uni-metal-btn: linear-gradient(180deg, #f6e7b0 0%, #e4c86a 18%, #b8922e 42%, #6e5418 68%, #d4af37 88%, #8a6a22 100%);
}

html.theme-light .panel.credit,
html.theme-light .panel.sub-page,
html.theme-light .ox-ask.wallet-confirm,
html[data-theme="light"] .panel.credit,
html[data-theme="light"] .panel.sub-page,
html[data-theme="light"] .ox-ask.wallet-confirm {
  --uni-hi: #c9a227;
  --uni-mid: #8a6a22;
  --uni-lo: #6e5418;
  --uni-text: #5c4818;
  --uni-text-hot: #3d3010;
  --uni-line: rgba(110, 84, 24, 0.42);
  --uni-wash: rgba(184, 146, 46, 0.16);
}

/* A styled scrollbar is for a mouse. On a touch screen WebKit draws a
   styled one as a lasting bar over the content (a popup's cards, a form's
   fields); without one the system's own thin indicator shows while it
   scrolls. */
@media (hover: hover) and (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll) transparent;
  }

  *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background: var(--scroll);
    border: 0;
    border-radius: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  * {
    scrollbar-width: auto !important;
    scrollbar-color: auto !important;
  }
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text-15);
  font-weight: 400;
  line-height: var(--lh-20);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

html.flag-font,
html.flag-font body {
  font-family: var(--font-flags);
}

body {
  background: transparent;
}

body.app,
body.auth {
  position: relative;
  isolation: isolate;
}

body.auth.has-wash::before,
body.auth.has-wash::after {
  content: "";
  position: fixed;
  inset: -70%;
  z-index: -1;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: blur(120px);
  will-change: transform;
}

body.auth.has-wash {
  background: #000;
}

body.auth.has-wash::before {
  background:
    radial-gradient(ellipse 78% 64% at 36% 32%, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.014) 42%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(ellipse 70% 58% at 76% 64%, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0.01) 46%, rgba(255, 255, 255, 0) 76%),
    radial-gradient(ellipse 64% 54% at 16% 78%, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0.007) 44%, rgba(255, 255, 255, 0) 74%),
    #000;
  animation: wash-fog-a 160s linear infinite;
}

body.auth.has-wash::after {
  background:
    radial-gradient(ellipse 68% 56% at 64% 36%, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.01) 44%, rgba(255, 255, 255, 0) 76%),
    radial-gradient(ellipse 58% 50% at 24% 58%, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.008) 46%, rgba(255, 255, 255, 0) 76%),
    radial-gradient(ellipse 54% 46% at 82% 82%, rgba(255, 255, 255, 0.014) 0%, rgba(255, 255, 255, 0.005) 42%, rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: screen;
  opacity: 0.36;
  animation: wash-fog-b 210s linear infinite;
}

body.app:not(.has-wash),
body.auth:not(.has-wash) {
  background: var(--bg);
}

body.app:not(.has-wash) .rail {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes wash-fog-a {
  0% {
    transform: translate3d(-5%, -3%, 0) scale(1.08);
  }
  20% {
    transform: translate3d(2%, 4%, 0) scale(1.14);
  }
  40% {
    transform: translate3d(6%, -2%, 0) scale(1.1);
  }
  60% {
    transform: translate3d(1%, 5%, 0) scale(1.16);
  }
  80% {
    transform: translate3d(-4%, 1%, 0) scale(1.11);
  }
  100% {
    transform: translate3d(-5%, -3%, 0) scale(1.08);
  }
}

@keyframes wash-fog-b {
  0% {
    transform: translate3d(4%, 3%, 0) scale(1.12);
  }
  25% {
    transform: translate3d(-3%, 1%, 0) scale(1.2);
  }
  50% {
    transform: translate3d(-6%, -4%, 0) scale(1.08);
  }
  75% {
    transform: translate3d(2%, -1%, 0) scale(1.18);
  }
  100% {
    transform: translate3d(4%, 3%, 0) scale(1.12);
  }
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
textarea,
select {
  outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  box-shadow: none;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="tel"]),
.field textarea,
.field select,
.rate-tile input,
.rate-qty input {
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--fg);
  color-scheme: inherit;
  transition: border-color 160ms var(--ease);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="tel"]):not([type="hidden"]),
.field select,
.rate-tile input,
.rate-qty input {
  box-sizing: border-box;
  height: var(--control-h);
  min-height: var(--control-h);
  max-height: var(--control-h);
  padding-block: 0;
  line-height: var(--lh-20);
}

.field textarea {
  height: auto;
  min-height: 88px;
  max-height: none;
  padding-block: 10px;
}

/* Search-box inputs inside .field must keep the pill search design (#81.12/14). */
.field .search-box input,
.field .search-box input:focus,
.field .search-box input:focus-visible {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  box-shadow: none;
  outline: none;
}


.field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--input-bg, var(--card));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2371767b' d='M4.2 6.2 8 10l3.8-3.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-inline-end: 28px;
  /* A select centers its own text; any block padding inside the fixed
     height cuts a tall glyph (g, y, j) at a larger font size. */
  line-height: normal;
  padding-block: 0;
  overflow: visible;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="tel"]):focus,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="tel"]):focus-visible,
.field textarea:focus,
.field textarea:focus-visible,
.field select:focus,
.field select:focus-visible,
.rate-tile input:focus,
.rate-tile input:focus-visible,
.rate-qty input:focus,
.rate-qty input:focus-visible {
  border-color: var(--input-focus);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.app {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 901px) {
  body.app:not(.has-wide-stage):not(.has-sub-stage):not(.has-founder-term):has(> .stage):not(:has(> .aside))::after {
    content: "";
    box-sizing: border-box;
    flex: 0 0 var(--aside);
    width: var(--aside);
    min-width: var(--aside);
  }
}

body.has-lockdown {
  --lock-bar: 42px;
  padding-top: var(--lock-bar);
}

.lockdown-banner {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--lock-bar);
  padding: 9px 18px;
  background:
    linear-gradient(180deg, rgba(255, 90, 82, 0.16) 0%, rgba(255, 90, 82, 0) 100%),
    linear-gradient(90deg, #2a0a0a 0%, #3b1010 48%, #2a0a0a 100%);
  border-bottom: 1px solid #ff4d45;
  box-shadow: none;
  color: #ffe8e5;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 0.01em;
}

.lockdown-pip {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ff4d45;
  box-shadow: 0 0 0 3px rgba(255, 77, 69, 0.22);
  animation: lockdown-pip-pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lockdown-pip {
    animation: none;
  }
}

@keyframes lockdown-pip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.92); }
}

/* What a script focuses so a screen reader starts there (a dialog's box,
   a page's heading after a soft navigation) is not a control: no ring. */
[role="dialog"][tabindex="-1"]:focus,
.stage[tabindex="-1"]:focus,
.stage h1[tabindex="-1"]:focus {
  outline: none;
}

.lockdown-banner p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
  text-align: start;
}

.lockdown-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8f88;
}

.lockdown-banner a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  transition: color 120ms var(--ease), border-bottom-color 120ms var(--ease);
}

.lockdown-banner a:hover {
  color: #ffd4d0;
  border-bottom-color: #ffd4d0;
}

@media (max-width: 800px) {
  body.has-lockdown {
    --lock-bar: 54px;
  }

  .lockdown-banner {
    justify-content: flex-start;
  }
}

.rail {
  position: sticky;
  top: var(--lock-bar);
  display: flex;
  flex-direction: column;
  width: var(--rail);
  height: calc(100dvh - var(--lock-bar));
  flex: 0 1 var(--rail);
  min-width: var(--rail-min);
  border-inline-start: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  padding: 16px 0 max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  background: var(--glass-heavy);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  overflow: visible;
  transition: width 180ms var(--ease), flex-basis 180ms var(--ease);
}

.rail-sheet {
  display: contents;
}

/* #60: the stage already draws the line between the menu and the page, so
   the menu does not add a second 1px border next to it (expanded or minimized). */
body:has(> .stage) > .rail {
  border-inline-end: 0;
}

.rail-toggle .icon-menu,
.rail-toggle .icon-x {
  display: none;
}

html:not(.rail-ready) .rail,
html:not(.rail-ready) .stage {
  transition: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover,
  .user:hover,
  .menu-item:hover {
    background: var(--hover);
  }
}

.icon {
  width: 23px;
  height: 23px;
  display: block;
  flex: 0 0 23px;
  overflow: visible;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  /* both-edges: one-sided gutter (RTL scrollbar on the left) was shifting
     icons off the rail’s true center, especially in the minimized icon column */
  scrollbar-gutter: stable both-edges;
  padding: 0 12px;
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.rail-nav > * {
  direction: ltr;
}

.rail-nav > a.nav-link[data-rail-bookmarks="1"],
.rail-nav > span.nav-link[data-rail-bookmarks="1"] {
  margin-bottom: 22px;
}

@media (hover: hover) and (pointer: fine) {
  .rail-nav::-webkit-scrollbar {
    width: 6px;
  }

  .rail-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .rail-nav::-webkit-scrollbar-thumb {
    background: var(--scroll);
    border: 0;
    border-radius: 0;
  }
}

.rail-nav > a.nav-link,
.rail-nav > span.nav-link,
.rail-nav .rail-group > .nav-group,
.rail-nav .rail-group > span.nav-link {
  min-height: 36px;
  gap: 10px;
  padding: 0 8px;
  align-items: center;
}

.rail-nav > a.nav-link > .icon,
.rail-nav > span.nav-link > .icon,
.rail-nav .rail-group > .nav-group > .icon,
.rail-nav .rail-group > span.nav-link > .icon {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  translate: none;
}

.rail-nav > a.nav-link .nav-label,
.rail-nav > span.nav-link .nav-label,
.rail-nav .rail-group > .nav-group .nav-label,
.rail-nav .rail-group > span.nav-link .nav-label {
  font-size: 18px;
  line-height: 21px;
  height: 20px;
  translate: none;
}

.nav-link,
.user,
.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--muted);
  width: 100%;
  text-align: start;
  overflow: hidden;
}

.user {
  min-height: 44px;
}

.nav-link.is-active {
  color: var(--fg);
  background: var(--hover);
}

/* An open group above the current page shows it in its text only: the
   page's own row carries the fill, so nested levels do not stack into
   steps. A closed group keeps the fill, as it is then the only mark. */
html:not(.rail-min) .rail-nav .rail-group.is-open > .nav-link.is-active {
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  html:not(.rail-min) .rail-nav .rail-group.is-open > .nav-link.is-active:hover {
    background: var(--hover);
  }
}

/* Two highlighted rows, one right under the other (hovered or selected, in
   any mix), read as one shape: no rounding on the edge they share. The row
   above may be a link, a closed group, or the head of an open group whose
   first row is the one below. Bookmarks has space under it and is left out. */
html:not(.rail-min) .rail-nav .nav-link:not([data-rail-bookmarks]):is(:hover, .is-active:not(.rail-group.is-open > .nav-link)):has(+ .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))),
html:not(.rail-min) .rail-nav .nav-link:not([data-rail-bookmarks]):is(:hover, .is-active:not(.rail-group.is-open > .nav-link)):has(+ .rail-group > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))),
html:not(.rail-min) .rail-nav .rail-group:not(.is-open):has(+ .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav .rail-group:not(.is-open):has(+ .rail-group > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

/* The first row of an open group starts further in, so the head keeps its
   outer corner on that side. */
html:not(.rail-min) .rail-nav .rail-group.is-open > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)):has(+ .rail-sub > .nav-link:first-child:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))),
html:not(.rail-min) .rail-nav .rail-group.is-open > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)):has(+ .rail-sub > .rail-group:first-child > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) {
  border-end-end-radius: 0;
}

html:not(.rail-min) .rail-nav .nav-link:not([data-rail-bookmarks]):is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) + .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav .nav-link:not([data-rail-bookmarks]):is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) + .rail-group > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav .rail-group:not(.is-open):has(> .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) + .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav .rail-group:not(.is-open):has(> .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) + .rail-group > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav .rail-group.is-open > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) + .rail-sub > .nav-link:first-child:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav .rail-group.is-open > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) + .rail-sub > .rail-group:first-child > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

/* The first level has a 2px gap between rows; the upper row fills it. */
html:not(.rail-min) .rail-nav > .nav-link:not([data-rail-bookmarks]):is(:hover, .is-active:not(.rail-group.is-open > .nav-link)):has(+ .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))),
html:not(.rail-min) .rail-nav > .nav-link:not([data-rail-bookmarks]):is(:hover, .is-active:not(.rail-group.is-open > .nav-link)):has(+ .rail-group > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))),
html:not(.rail-min) .rail-nav > .rail-group:not(.is-open):has(+ .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)),
html:not(.rail-min) .rail-nav > .rail-group:not(.is-open):has(+ .rail-group > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link))) > .nav-link:is(:hover, .is-active:not(.rail-group.is-open > .nav-link)) {
  box-shadow: none;
}

.nav-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.nav-group.is-disabled,
.nav-link.nav-group.is-disabled {
  opacity: 0.35;
  pointer-events: auto;
  cursor: pointer;
}

.menu-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.nav-link > .icon,
.user > .icon {
  translate: 0 -3px;
}

.nav-label {
  white-space: nowrap;
  font-size: var(--text-20);
  line-height: 23px;
  height: 22px;
  display: flex;
  align-items: center;
  overflow: visible;
  min-width: 0;
  translate: 0 -2px;
}

.nav-link > [data-live-badge] {
  margin-inline-start: auto;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.nav-count {
  margin-inline-start: auto;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px 1px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.nav-count[hidden] {
  display: none;
}

/* #55.21: partner/affiliates tally — same pill geometry, gray (not unread red). */
.nav-count.is-muted {
  background: color-mix(in srgb, var(--fg) 14%, transparent);
  color: var(--muted);
}

.rail-compose {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.rail-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  min-height: 32px;
  cursor: pointer;
  pointer-events: auto;
}

.rail-group.is-open > .rail-sub {
  display: flex;
}

.nav-group.is-active {
  color: var(--fg);
}

/* A group holding the current page keeps its fill, open or closed, so
   every level above the page is marked. */
.nav-chev {
  margin-inline-start: auto;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 160ms var(--ease);
}

.rail-group.is-open > .nav-group .nav-chev {
  transform: rotate(90deg);
}

.rail-group:not(.is-open) > .rail-sub {
  display: none;
}

.rail-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 0 0 2px 16px;
}

.rail-sub .nav-count,
.nav-link > .nav-count,
.nav-link > [data-live-badge] .nav-count {
  margin-inline-start: auto;
  position: static;
}

.rail-sub .nav-link {
  min-height: 30px;
  padding: 0 11px;
  gap: 10px;
}

.rail-sub .icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.rail-sub .nav-label {
  font-size: var(--text-15);
}

/* A label that does not fit ends in an ellipsis on one line, at every
   level and on every width, and only such a row shows its whole name as
   a hint on hover (founder, 2026-11-20; ui/hints.rs). A third level is
   indented less, so few need to. The icons-only rail shows no labels at
   any level. */
html:not(.rail-min) .rail-nav .nav-label {
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  /* What is hidden is what runs past the end of the line, not the tails
     of the letters: the label's box is as tall as its line and cut a "g"
     or a "y" short (founder, 2026-11-22). The box that clips is 4px
     taller each way; the margins take that back, so the words stay
     exactly where they were. */
  box-sizing: content-box;
  padding-block: 4px;
  margin-block: -4px;
}

html:not(.rail-min) .rail-sub .rail-sub {
  padding-inline-start: 10px;
}

/* #55.22: nested rail-sub group headers match leaf type (not main-rail 17px). */
.rail-nav .rail-sub .rail-group > .nav-group .nav-label,
.rail-nav .rail-sub .rail-group > span.nav-link .nav-label {
  font-size: var(--text-15);
  line-height: 23px;
  height: 22px;
}

/* A nested label's middle is its icon's (measured: at the top rows'
   nudge it sat 1.5px under it; founder, 2026-11-20). */
html:not(.rail-min) .rail-nav .rail-sub .nav-label,
html:not(.rail-min) .rail-nav .rail-sub .rail-group > .nav-group .nav-label,
html:not(.rail-min) .rail-nav .rail-sub .rail-group > span.nav-link .nav-label {
  translate: 0 -3.5px;
}

/* #57.7: nested Admin/Settings group headers — same icon size/baseline as leaf .nav-link. */
.rail-nav .rail-sub .rail-group > .nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 11px;
}

.rail-nav .rail-sub .rail-group > .nav-group > .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  flex-basis: 19px;
  translate: 0 -3px;
}

/* The expand mark of a nested group is the same mark, on the same vertical
   line, as its parent's: 16px, and pulled out by what a nested row is
   padded more than a top one. */
.rail-nav .rail-sub .rail-group > .nav-group > .nav-chev {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-inline-end: -1px;
  translate: 0 -2px;
}

.rail-post {
  height: var(--control-h);
  width: 100%;
  margin-top: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--text-15);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.rail-post-plus {
  display: none;
  font-size: 23px;
  line-height: 1;
  font-weight: 400;
  translate: 0 -0.5px;
}

.rail-post-label {
  white-space: nowrap;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .rail-post:hover {
    background: #e6e6e6;
    color: #000;
  }
}

.rail-post.is-off,
.rail-post:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.rail-end {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 8px;
  position: relative;
  z-index: 90;
}

/* Post over the account card: always in view, whatever the menu scrolls. */
.rail-end > .rail-post,
html.rail-min .rail-end > .rail-post {
  margin-top: 0;
  margin-bottom: 4px;
}

.rail-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  min-height: 48px;
  padding: 0 12px;
  margin: 0 12px 8px;
  border-radius: 14px;
  color: var(--muted);
  flex: none;
}

.rail-toggle .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

/* The menu's top row on a computer: narrow-the-menu, then Back beside it
   (a phone puts both in its top bar, sheets.css). On the narrow menu the
   two stack, and Back keeps its place while hidden so the links below
   never jump. */
@media (min-width: 801px) {
  .rail-top {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 12px 8px;
  }

  .rail-top > .rail-toggle {
    margin: 0;
  }

  .rail-top > .nav-back-btn:not([hidden]) {
    display: flex;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
    color: var(--muted);
  }

  .rail-top > .nav-back-btn .icon {
    width: 28px;
    height: 28px;
  }

  html.rail-min .rail-top {
    flex-direction: column;
    margin-inline: 0;
  }

  /* Back stands at the far end of the row on every page (founder,
     2026-11-25: "the back button in menu should be on right side";
     2026-11-26: it was there only with a conversation open, and beside
     the menu's button everywhere else). */
  html:not(.rail-min) .rail-top > .nav-back-btn {
    margin-inline-start: auto;
  }

  html.rail-min .rail-top > .nav-back-btn[hidden] {
    display: flex;
    visibility: hidden;
    width: 48px;
    min-height: 48px;
  }
}

@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .rail-top > .nav-back-btn:hover {
    color: var(--fg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .rail-toggle:hover { background: var(--hover); color: var(--fg); }
}

.nav-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-back-btn .icon {
  width: 23px;
  height: 23px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-back-btn:hover { background: var(--hover); }
}

.nav-back-btn:active {
  background: var(--hover);
  transform: scale(0.94);
}

.ox-ptr {
  position: fixed;
  left: 50%;
  top: calc(var(--lock-bar, 0px) + env(safe-area-inset-top, 0px) + 6px);
  z-index: 230;
  width: 36px;
  height: 36px;
  margin: 0 0 0 -18px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, calc(var(--ptr-y, 0px) - 8px), 0) scale(calc(0.55 + var(--ptr, 0) * 0.45));
  transition: opacity 140ms ease;
}

html.is-ptr .ox-ptr {
  opacity: 1;
}

/* Only the mark moves: moving the page moved its fixed bars with it. It
   sits where it was let go while the page is fetched again. */
html.is-ptr-spin .ox-ptr {
  transform: translate3d(0, calc(var(--ptr-y, 0px) - 8px), 0) scale(1);
}

/* Back to the top, without a jump, when a pull is let go short. */
html:not(.is-ptr) .ox-ptr {
  transition: opacity 140ms ease, transform 180ms var(--ease, ease);
}

.ox-ptr-ring {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--fg);
  border-radius: 50%;
  transform: rotate(calc(var(--ptr, 0) * 260deg));
}

html.is-ptr-arm .ox-ptr-ring {
  border-color: var(--muted);
  border-top-color: var(--fg);
}

html.is-ptr-spin .ox-ptr-ring {
  animation: ox-ptr-spin 640ms linear infinite;
}

@keyframes ox-ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-ptr-spin .ox-ptr-ring {
    animation: none;
  }
  .ox-ptr,
  html.is-ptr-spin .ox-ptr {
    transform: translate3d(0, 18px, 0);
  }
}

html.rail-min {
  --rail: var(--rail-min);
}

html.rail-min .rail {
  padding-inline-start: 0;
  padding-inline-end: 0;
  overflow: visible;
}

html.rail-min .rail-nav {
  padding: 0;
}

html.rail-min .rail-end {
  padding-inline-start: 0;
  padding-inline-end: 0;
}

html.rail-min .rail-toggle,
html.rail-min .nav-link,
html.rail-min .user,
html.rail-min .rail-post {
  gap: 0;
  justify-content: center;
  padding-inline-start: 0;
  padding-inline-end: 0;
  width: 40px;
  min-width: 40px;
  margin-inline: auto;
}

html.rail-min .rail-post {
  height: 40px;
  width: 40px;
  min-width: 40px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
}

html.rail-min .rail-post-plus {
  display: block;
  font-size: 23px;
}

html.rail-min .user {
  padding-inline-end: 0;
}

html.rail-min .nav-label,
html.rail-min .nav-chev,
html.rail-min .user .user-meta,
html.rail-min .rail-post-label {
  display: none;
}

html.rail-min .rail-group.is-open > .rail-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 40px;
  margin: 2px auto 4px;
  padding: 4px 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hover) 88%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}

html.rail-min .rail-group.is-open > .rail-sub .nav-link {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  margin-inline: auto;
  padding-inline-start: 0;
  padding-inline-end: 0;
  justify-content: center;
  gap: 0;
  border-radius: 10px;
}

html.rail-min .rail-group.is-open > .rail-sub .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  opacity: 0.92;
}

html.rail-min .rail-group.is-open > .nav-group {
  color: var(--fg);
}

html.rail-min .rail-toggle {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
}

html.rail-min .rail-toggle .icon {
  transform: rotate(180deg);
}

html.rail-min .nav-link {
  position: relative;
  overflow: visible;
}

/* #51: the live badge wrapper (margin-inline-start: auto) stays out of the flex row,
   so a centered icon is not pushed left; its pill pins to the icon corner. */
html.rail-min .nav-link > [data-live-badge] {
  display: contents;
}

html.rail-min .nav-link .nav-count {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  inset-inline-start: auto;
  margin: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 2px 1px;
  font-size: 10px;
  z-index: 2;
}

html.rail-min .user-menu:not(.is-sheet) {
  inset-inline-start: calc(100% + 8px);
  inset-inline-end: auto;
  bottom: 0;
  width: 220px;
}

@media (prefers-reduced-motion: reduce) {
  .rail,
  .stage {
    transition: none;
  }

  body.auth.has-wash::before,
  body.auth.has-wash::after {
    animation: none;
  }
}

.user-wrap {
  position: relative;
  z-index: 90;
}

.user {
  color: var(--fg);
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding-top: 4px;
  padding-bottom: 4px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--avatar-empty);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  font-size: var(--text-15);
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.avatar:not(.is-photo) {
  border: 0;
  box-shadow: none;
  background-clip: padding-box;
}

.avatar.is-photo {
  object-fit: cover;
  border-color: transparent;
  background: transparent;
  color: inherit;
  padding: 0;
}

.avatar.is-live {
  border-color: transparent;
}

.post-avatar,
.msg-head-photo,
.msg-intro-photo,
.profile-face,
.search-hit-av,
.online-face,
.user-av {
  position: relative;
}

.post-avatar.has-live::after,
.msg-head-photo.has-live::after,
.msg-intro-photo.has-live::after,
.profile-face.has-live::after,
.search-hit-av.has-live::after,
.online-face.has-live::after,
.user-av.has-live::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  /* 8px inside its ring: an even light is a rounder circle on a plain
     screen than the 7px one was (founder, 2026-11-20: "not a circle"). */
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #2f7a46;
  box-shadow: none;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
}

.profile-face.has-live::after {
  width: 16px;
  height: 16px;
  inset-inline-end: 6px;
  bottom: 6px;
}

.post-avatar.has-live.is-busy::after,
.msg-head-photo.has-live.is-busy::after,
.msg-intro-photo.has-live.is-busy::after,
.profile-face.has-live.is-busy::after,
.search-hit-av.has-live.is-busy::after,
.online-face.has-live.is-busy::after,
.user-av.has-live.is-busy::after {
  /* The bar is a drawing laid over the whole light, so it is on the
     light's middle at any size and any screen scaling (a gradient was
     set on whole pixels, and at 125% and 150% sat off the middle). Its
     grid is the light's own, so on a plain screen it lands on pixels. */
  background: #b3261e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Crect x='2' y='3' width='4' height='2' fill='%23f5f5f5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow: none;
}

/* The larger lights: 12px inside the ring on a profile, 10px in Messages. */
.profile-face.has-live.is-busy::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='3' y='5' width='6' height='2' fill='%23f5f5f5'/%3E%3C/svg%3E");
}

.msg-intro-photo.has-live.is-busy::after,
.msg-pin-face .post-avatar.has-live.is-busy::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='2' y='4' width='6' height='2' fill='%23f5f5f5'/%3E%3C/svg%3E");
}

/* A rounded square has its corner further out than a circle's edge: the
   dot sits on the corner, over it, not off it. */
.post-avatar:has(.is-verified-business).has-live::after,
.search-hit-av:has(.is-verified-business).has-live::after,
.online-face:has(.is-verified-business).has-live::after,
.user-av:has(.is-verified-business).has-live::after,
.msg-head-photo:has(.is-verified-business).has-live::after {
  inset-inline-end: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
}

.msg-intro-photo:has(.is-verified-business).has-live::after {
  inset-inline-end: -2px;
  bottom: -2px;
}

.profile-face:has(.is-verified-business).has-live::after {
  inset-inline-end: -4px;
  bottom: -4px;
}

.post-avatar.has-seen::after,
.msg-head-photo.has-seen::after,
.msg-intro-photo.has-seen::after,
.profile-face.has-seen::after,
.search-hit-av.has-seen::after,
.online-face.has-seen::after,
.user-av.has-seen::after {
  content: attr(data-ago);
  position: absolute;
  inset-inline-end: -4px;
  bottom: -3px;
  min-width: 18px;
  height: 14px;
  padding: 0 4px;
  border: 1px solid var(--bg);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 10px;
  line-height: 13px;
  font-weight: 400;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: none;
}

.profile-face.has-seen::after {
  inset-inline-end: 0;
  bottom: 0;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border-color: var(--hairline);
  background: var(--elevated-2);
  color: var(--fg);
  font-size: 14px;
  line-height: 23px;
  font-weight: 700;
  box-shadow: none;
}

.user-av,
.online-face,
.search-hit-av {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
}

.profile-face {
  display: block;
  position: relative;
  flex: 0 0 108px;
  width: 108px;
  height: 108px;
  overflow: visible;
}

button.profile-face {
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: zoom-in;
}

button.profile-face:focus-visible .av-box {
  outline: 2px solid rgba(240, 215, 160, 0.55);
  outline-offset: 2px;
}

.avatar.is-verified-business { border-radius: 8px; }

.quote-avatar.is-verified-business { border-radius: 4px; }

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.user-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  font-size: var(--text-15);
  line-height: 19px;
}

.user-name-text {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
  white-space: normal;
  line-height: 19px;
  font-weight: 700;
}

.badge-verified-business,
.badge-founder,
.badge-admin,
.badge-verified-user,
.badge-vip,
.badge-mute,
.badge-block {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 1.15em;
  display: block;
  margin: 0;
}

.badge-mute,
.badge-block {
  color: var(--muted);
}

.badge-block {
  color: #f4212e;
}

.name-marks {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  margin-inline-start: 4px;
}

.badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.e2ee-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: default;
  user-select: none;
}

.e2ee-mark .icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.e2ee-mark:hover,
.e2ee-mark:focus-visible {
  color: var(--fg);
  border-color: var(--hairline-strong);
  background: var(--card);
  outline: none;
}

.e2ee-mark.is-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.e2ee-mark.is-icon .icon {
  width: 17px;
  height: 17px;
}

.e2ee-mark.is-icon .e2ee-mark-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Just the lock, no circle round it, in every theme and state (founder,
   2026-11-17). */
.e2ee-mark.is-icon,
html.theme-light .e2ee-mark.is-icon {
  border-color: transparent;
  background: none;
}

.e2ee-mark.is-icon:hover,
.e2ee-mark.is-icon:focus-visible {
  background: none;
  color: var(--fg);
  border-color: transparent;
}

.e2ee-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* What a new password must have, under its field: a line a rule, ticked
   and lit once the password meets it (ui/pw_rules.rs). */
.pw-rules {
  list-style: none;
  margin: -4px 0 10px;
  padding: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

.pw-rules:empty {
  display: none;
}

.pw-rule {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pw-rule-mark {
  flex: 0 0 12px;
  text-align: center;
}

.pw-rule.is-met {
  color: var(--status-ok, #2f7a46);
}

.ox-note {
  position: fixed;
  inset: auto;
  z-index: var(--z-tip);
  width: max-content;
  max-width: min(280px, calc(100vw - 16px));
  margin: 0;
  overflow: visible;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--elevated);
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 400;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: start;
  pointer-events: none;
  box-shadow: none;
}

/* Handle wrap: no clip/ellipsis/nowrap/scrollbar on any @handle surface.
   Search-hit cards (#55.14) clip instead — see .search-hit-id / -name / -handle. */
.user-handle,
.post-handle,
.msg-head-handle,
.online-handle,
.notice .post-handle,
.status-oncall-handle,
.profile-handle {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
}

.user-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.user-name,
a.user-handle {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  /* Lists (follow/following/affiliates/mute/block/…): no underline on hover */
  a.user-name:hover .user-name-text,
  a.user-handle:hover {
    text-decoration: none;
  }
}

.person .user-meta,
.role-id.user-meta,
.dash-id.user-meta,
.status-oncall-copy.user-meta {
  flex: 1 1 auto;
}

.user-menu {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: calc(100% + 8px);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 6px;
  box-shadow: none;
  z-index: var(--z-popup);
}

.user-menu[hidden] { display: none; }

hr.menu-sep,
.menu-sep {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: auto;
  height: 0;
  min-height: 0;
  max-height: 0;
  margin: 6px 8px;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: none;
  color: transparent;
  overflow: hidden;
  flex: 0 0 auto;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

hr.menu-sep[hidden],
.menu-sep[hidden] {
  display: none;
}

.status-led {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
}

.status-led::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-led.is-auto::after {
  background: #2f7a46;
  box-shadow: none;
}

.status-led.is-busy::after {
  background: #b3261e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='2' y='4' width='6' height='2' fill='%23f5f5f5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow: none;
}

/* Calendar: Auto, and Busy while an event is on. */
/* Status from the calendar: the calendar itself, in the site's blue, where
   the others show a light. */
.status-led.is-calendar::after {
  content: none;
}

.status-led.is-calendar .icon {
  display: block;
  width: 17px;
  height: 17px;
  color: #0a84ff;
}

.menu-item.is-disabled .status-led.is-calendar .icon {
  color: var(--muted);
}

.status-led.is-off::after {
  background: #636366;
  box-shadow: none;
}

.menu-item.status-pick.is-on::after,
.compose-reply-from-menu .menu-item.is-on::after,
.reply-from-sheet .menu-item.is-on::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-inline-start: auto;
  margin-inline-end: 2px;
  flex: 0 0 auto;
  border-inline-start: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
}

.compose-reply-from-menu .menu-item.is-on,
.reply-from-sheet .menu-item.is-on {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  color: var(--fg);
}

.menu-item {
  color: var(--fg);
  min-height: 34px;
  height: auto;
  padding: 7px 11px;
  font-size: var(--text-15);
  line-height: 21px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  align-items: center; /* 64.1 single-line icon+label optical middle */
  gap: 8px; /* 64.2 tighten icon↔label (~10–12px → 8px) */
}

.menu-item > .icon,
.menu-item > .status-led,
.menu-item > .av-box {
  translate: none;
  /* 64.1: inherit/center with label on single-line (hypothesis: unconditional
     flex-start misaligned vs centered label / font metrics vs 20px icon). */
  align-self: center;
}

/* Keep 58.8: multi-line → pin leading chrome to first line only (not block center). */
.menu-item.is-multiline > .icon,
.menu-item.is-multiline > .status-led,
.menu-item.is-multiline > .av-box {
  align-self: flex-start;
}

.menu-item > .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.menu-item > .status-led {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.menu-item > span:not(.nav-count):not(.av-box):not(.status-led) {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 21px;
  height: auto;
}

.user-menu .menu-item {
  align-items: center;
  gap: 8px; /* 64.2 */
}

.user-menu .delegate-switch .av-box,
.user-menu .delegate-switch .avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.user-menu .delegate-switch .avatar {
  font-size: 11px;
  line-height: 1;
  border-width: 0;
}

.user-menu .nav-count {
  margin-inline-start: auto;
}

.aside {
  position: sticky;
  top: var(--lock-bar);
  display: flex;
  flex-direction: column;
  width: var(--aside);
  height: calc(100dvh - var(--lock-bar));
  flex: 0 0 var(--aside);
  min-width: var(--aside);
  padding: 16px 16px 14px;
  z-index: 3;
  background: var(--glass-heavy);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-inline-end: 1px solid var(--line);
}

.aside-search {
  flex: 0 0 auto;
}

/* The right column, top to bottom: Trending, then Who to follow. The
   staff have their own page (Help > Staff). */
/* Who to follow, whole, under Trending. */
.aside-suggest-box {
  flex: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* The first box under the search has no line over it. */
.aside-search + .aside-online {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.aside-online + .aside-online {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Trending hashtags (src/tags.rs): one line each, first in the column. */
.aside-trends {
  flex: none;
  margin-top: 16px;
}

/* Search shows no trends: what is trending has its own page. */
body.app > .stage:has(.search-page) ~ .aside .aside-trends {
  display: none;
}

/* The whole list, as a button across its box: the page's own button. */
.btn.aside-more {
  display: flex;
  width: 100%;
  height: 34px;
  margin: 8px 0 0;
  font-size: var(--text-13);
}

/* The whole Trending list (app/i/trending.rs): a sheet as the other
   pages have, one ranked row a tag. */
.trending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trend-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-rows > li + li {
  border-top: 1px solid var(--line);
}

.trend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 8px;
  /* Square, so the hover fills the band between two separators exactly
     instead of a rounded pill notched against the straight lines. */
  border-radius: 0;
  color: var(--fg);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .trend-row:hover {
    background: var(--hover);
  }
}

.trend-rank {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-13);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.trend-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trend-row-tag {
  font-size: var(--text-15);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.trend-row-n {
  color: var(--muted);
  font-size: var(--text-13);
}

.trend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
}

.trend-tag {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.trend-n {
  flex: none;
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .trend:hover {
    background: var(--hover);
  }
}

.aside-online-title {
  margin: 0 4px 8px;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 700;
}

/* A title with a small pill at the end of its line: Trending and how far
   back it counts. */
.aside-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.aside-hours {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-size: var(--text-12, 12px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.online-list {
  display: flex;
  flex-direction: column;
}

.online-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .online-card:hover { background: var(--hover); }
}

.online-card .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.online-id {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.online-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.online-name > span:first-child {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  line-height: 19px;
}

.online-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.online-rank {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  text-transform: uppercase;
}

.online-rank::before {
  content: "·";
  margin: 0 5px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

/* The boxes between the search and the foot: they scroll together, one
   bar at the column's edge, when the window is short. */
.aside-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: -16px;
  padding-inline: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.aside-end {
  flex: none;
  margin-top: auto;
  padding-top: 18px;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.copy a { color: var(--link); }
@media (hover: hover) and (pointer: fine) {
  .copy a:hover { color: var(--link-hover); }
}

.site-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px 0 2px;
  box-sizing: border-box;
}

.site-foot-mobile {
  display: none;
  margin-top: 8px;
  padding-top: 12px;
  padding-bottom: 28px;
}

#ox-nav-line {
  display: none;
}

.mobile-tabbar {
  display: none;
}

/* A phone's top bar: the site's mark (sheets.css places it); it is not
   there on a computer. */
.top-logo {
  display: none;
}

/* The account's picture in the tab bar, the size of the bar's icons. */
.mobile-tabbar .tabbar-face {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
.mobile-tabbar .tabbar-face .av-box {
  display: block;
  width: 26px;
  height: 26px;
}
.mobile-tabbar .tabbar-face .avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1;
  object-fit: cover;
}

/* A phone's Post: a round plus over the tab bar's end (the composer's
   popup, as the menu's Post opens). Not on the pages whose own controls
   stand there (Videos' actions, a conversation's field), nor while a
   popup or the menu is open. */
.post-fab {
  display: none;
}

@media (max-width: 800px) {
  body.has-tabbar .post-fab {
    position: fixed;
    inset-inline-end: 16px;
    bottom: calc(var(--tabbar-pad, 0px) + 16px);
    z-index: 54;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--fg);
    color: var(--bg);
    font: inherit;
    line-height: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body.has-tabbar .post-fab .icon {
    display: block;
    width: 26px;
    height: 26px;
  }

  body.has-tabbar .post-fab:active {
    transform: scale(0.94);
  }

  /* Nor over a settings or staff sheet: its own buttons end there. */
  body.has-tabbar:has(.videos-page, .messages, #work-page, .stage > .panel.settings) .post-fab,
  body.has-tabbar:has(.compose-back:not([hidden])) .post-fab {
    display: none;
  }
}
.mobile-tabbar .tabbar-link {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  padding: 10px 2px 4px;
  color: var(--muted);
  text-decoration: none;
  box-sizing: border-box;
}
.mobile-tabbar .tabbar-link .icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
/* The bar's six labels keep a phone tab bar's size (as iOS draws them,
   10pt): the site's type grew a step on 2026-11-18, "Notifications" did
   not fit its sixth of a 320px screen at 11px. */
.mobile-tabbar .tabbar-label {
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* The tab of the page shown: one soft rounded fill round the icon and its
   label together (the pill), and a heavier label, so it reads by shape as
   well as colour. On the default theme it is the text colour on a grey
   pill, like the rest of the site; a seasonal theme gives it its own
   accent. The pill keeps the same 6px on every side; its side margins
   give that back, so a label has the tab's whole width as before. */
.mobile-tabbar .tabbar-link.is-active {
  color: var(--fg);
}
.mobile-tabbar .tabbar-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  /* As wide as its tab at least, whatever its word: a short one ("Profile",
     "Search") had a narrower highlight than "Timeline" (founder,
     2026-12-01). A long word still takes what it needs. */
  min-width: 100%;
  max-width: calc(100% + 12px);
  margin: -6px -6px 0;
  padding: 6px;
  border-radius: 14px;
}
.mobile-tabbar .tabbar-link.is-active .tabbar-pill {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}
.mobile-tabbar .tabbar-link.is-active .tabbar-label {
  font-weight: 650;
}
html.theme-light .mobile-tabbar .tabbar-link.is-active .tabbar-pill {
  background: color-mix(in srgb, var(--fg) 9%, transparent);
}
html[data-season]:not([data-season=""]):not([data-season="default"]) .mobile-tabbar .tabbar-link.is-active {
  color: var(--accent, var(--fg));
}
html[data-season]:not([data-season=""]):not([data-season="default"]) .mobile-tabbar .tabbar-link.is-active .tabbar-pill {
  background: color-mix(in srgb, var(--accent, var(--fg)) 16%, transparent);
}
.mobile-tabbar .tabbar-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.mobile-tabbar .nav-count {
  position: absolute;
  top: 4px;
  inset-inline-end: calc(50% - 18px);
  margin-inline-start: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px 1px;
  font-size: 10px;
}
@media (max-width: 800px) {
  body.has-tabbar {
    --tabbar-h: 68px;
    --tabbar-pad: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    /* The top bar's bottom edge and its line: under a notch the bar starts
       below the status strip (and below a lockdown banner), so a fixed 57px
       put a popup under the bar. */
    --topbar-h: calc(var(--ox-nav-full, 56px) + 1px);
  }
  /* A full-screen sheet sits between the top bar and the tab bar, so both
     stay in view and in reach. With the keyboard up a popup takes what
     the keyboard leaves below the top bar (ui/modal::place), which sets
     its top and height; the composer keeps this same card then, its gaps,
     border and paddings as they are: it turned edge to edge with other
     paddings as its field took the focus, and back as it lost it, so the
     popup changed size at every tap (founder, 2026-11-30). */
  body.has-tabbar :is(.engage-back, .menu-sheet-back, .admin-sheet-back, .ox-ask-back:has(.ox-ask-wide), .compose-back) {
    top: var(--topbar-h);
    bottom: var(--tabbar-pad);
    /* A card with room around it: a gap below the top bar, above the tab
       bar and at the sides, the dimmed page showing in it. */
    padding: 10px;
    box-sizing: border-box;
  }
  body.has-tabbar .engage,
  body.has-tabbar .ox-ask-wide {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    overflow: hidden;
  }
  /* A wide dialog in that card keeps its own room inside the border (the
     card's edge is not the screen's, so no safe area). */
  body.has-tabbar .ox-ask-wide {
    padding: 16px var(--ask-pad-x, 16px);
  }
  body.has-tabbar .compose-back {
    background: rgba(0, 0, 0, 0.65);
  }
  body.has-tabbar .compose-back .compose {
    padding-top: 14px;
    padding-bottom: 14px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
  }
  body.has-tabbar :is(.menu-sheet-back, .admin-sheet-back) :is(.admin-menu, .post-menu, .user-menu, .uni-more-menu, .phone-cc-pop).is-sheet {
    max-height: 100%;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding-bottom: 8px;
  }
  /* Tabbar is in-flow so the stage scrollport (and its scrollbar) end above it. */
  body.has-tabbar.app {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }
  body.has-tabbar.app > .stage {
    grid-row: 1;
    grid-column: 1;
    /* A phone shows the page edge to edge: no side borders. */
    border-inline-start: 0;
    border-inline-end: 0;
    width: auto;
    min-width: 0;
    height: auto;
    max-height: none;
    min-height: 0;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.has-tabbar .mobile-tabbar {
    display: flex;
    position: relative;
    inset-inline-start: auto;
    inset-inline-end: auto;
    bottom: auto;
    top: auto;
    grid-row: 2;
    grid-column: 1;
    margin: 0;
    z-index: 55;
    width: 100%;
    height: auto;
    min-height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    /* Room for the active tab's pill, which reaches 6px past its tab: at
       either end it ran past the screen's edge. */
    padding: 0 6px 0;
    box-sizing: border-box;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: stretch;
  }

  /* Icons sit under a solid top pad; hit area fills the bar through the home indicator. */
  body.has-tabbar .mobile-tabbar .tabbar-link {
    padding-top: 10px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }

  body.has-tabbar .mobile-tabbar .tabbar-link .nav-count {
    top: 6px;
  }
  html.ios-pwa body.has-tabbar .mobile-tabbar {
    bottom: auto;
    top: auto;
  }
  body.has-tabbar > .stage {
    height: auto;
    max-height: none;
    min-height: 0;
  }
  html.ios-pwa body.has-tabbar > .stage {
    height: auto;
    max-height: none;
  }
  body.has-tabbar .site-foot-mobile {
    margin-bottom: 0;
    padding-bottom: 24px;
  }
  /* A season on a phone: as on a guest page, the season's scene shows
     behind the footer only. The stage is clear and the page above the
     footer is opaque, its fill reaching over the stage's padding. */
  html[data-season]:not([data-season="default"]) body.has-tabbar.app > .stage {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html[data-season]:not([data-season="default"]) body.has-tabbar.app > .stage > :not(.site-foot-mobile) {
    background-color: var(--bg);
    box-shadow: 0 0 0 12px var(--bg);
  }
  /* Messages/notes own their chrome; the grid row already clears the tabbar. */
  body.has-tabbar.has-wide-stage > .stage:has(.messages) {
    padding-bottom: 0 !important;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  /* Tabbar already accounts for home-indicator via --tabbar-pad; do not double it. */
  html:not(.msg-kb) body.has-tabbar.has-wide-stage > .stage:has(.messages:not(.is-thread)) .msg-compose {
    padding-bottom: 12px;
  }
  body.has-tabbar.has-founder-term .mobile-tabbar,
  body.has-tabbar .stage:has(.founder-term) ~ .mobile-tabbar,
  /* The tab bar goes only while the phone's keyboard is on screen
     (`msg-kb`, measured from the visual viewport, ui/chat_view.rs): a
     focused field, a tool tapped or a poll being written leaves it. */
  html.msg-kb body.has-tabbar .mobile-tabbar {
    display: none;
  }
  /* No tabbar row: fall back to the flex shell so term/keyboard can fill. */
  body.has-tabbar.has-founder-term.app,
  html.msg-kb body.has-tabbar.app {
    display: flex;
  }
  /* Zero --tabbar-pad only while the keyboard is open. */
  html.msg-kb body.has-tabbar {
    --tabbar-pad: 0px;
  }
  /* ≤800px founder term: clear lock-bar/status/safe-area; fill remaining viewport. */
  body.has-tabbar.has-founder-term > .stage,
  body.has-tabbar .stage:has(.founder-term),
  body.has-founder-term > .stage:has(.founder-term),
  .stage:has(.founder-term),
  .stage.is-founder-term {
    box-sizing: border-box !important;
    /* Body already clears --lock-bar via padding when lockdown is on; do not double-count it. */
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--ox-nav, 56px) + 12px) !important;
    padding-inline-end: max(12px, env(safe-area-inset-right, 0px)) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
    padding-inline-start: max(12px, env(safe-area-inset-left, 0px)) !important;
    height: calc(100dvh - var(--lock-bar)) !important;
    max-height: calc(100dvh - var(--lock-bar)) !important;
    min-height: 0;
    overflow: hidden !important;
  }
  body.has-tabbar.has-founder-term > .stage {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  }
  .stage:has(.founder-term) > .founder-term,
  .stage.is-founder-term > .founder-term,
  .founder-term,
  .founder-term-view,
  #ox-term {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  html.msg-kb body.has-tabbar > .stage:has(.search-page) {
    height: var(--msg-vv-height, 100dvh);
    max-height: var(--msg-vv-height, 100dvh);
    padding-bottom: 0 !important;
  }
  /* Keyboard open: drop tabbar / --tabbar-pad (tabbar is display:none). Do not
     leave tabbar-pad under Messages — the VV shell owns the bottom edge. */
  html.msg-kb body.has-tabbar > .stage {
    padding-bottom: 0 !important;
  }
  html.msg-kb body.has-tabbar.has-wide-stage > .stage:has(.messages) {
    padding-bottom: 0 !important;
  }
}

.status-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  background: var(--card-2);
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71767b;
  box-shadow: 0 0 0 3px rgba(113, 118, 123, 0.16);
}

.status-chip.is-ok i {
  background: #3d9a5f;
  box-shadow: 0 0 0 3px rgba(61, 154, 95, 0.18);
}

.status-chip.is-warn i {
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.status-chip.is-bad i {
  background: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18);
}

.status-chip.is-deploy i {
  background: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .status-chip:hover {
    background: var(--hover);
    border-color: var(--hairline-strong);
  }
}

.site-x {
  display: flex;
  justify-content: center;
  margin: 0 0 6px;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .site-x:hover {
    color: var(--fg);
  }
}

.site-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
}

.site-legal + .site-legal {
  margin-top: -6px;
}

.site-legal :is(a, .site-bug) {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.site-legal :is(a, .site-bug):hover {
  color: var(--fg);
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
}

.lang-switch.is-full {
  width: 100%;
  max-width: 360px;
}

/* The language list in its pill: the language's own name and a chevron. */
.lang-switch {
  position: relative;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  /* A select clips its text to the line: a tight one cut the tail of a
     g or a y, so the line is roomy and the padding makes up for it. */
  padding: 3px 28px 3px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-13);
  line-height: 1.5;
  cursor: pointer;
}

/* The compact picker is as wide as the language picked, not the longest. */
.lang-switch.is-compact .lang-select {
  field-sizing: content;
  width: auto;
}

.lang-switch.is-full .lang-select {
  padding: 6px 32px 6px 14px;
  font-size: var(--text-15);
}

.lang-switch::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-inline-end: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.lang-select:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.lang-select option {
  color: var(--fg);
  background: var(--bg);
}

.theme-opt.is-on {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  color: var(--fg);
}

.theme-opt {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-opt .icon {
  width: 17px;
  height: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .theme-opt:hover {
    color: var(--fg);
  }
}

.theme-opt:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}


/* The footer's menus: sound, and the look (light or dark, the base and the
   seasonal theme). Each is one round button beside the language; its menu
   opens above that line, centered on it like the footer, on the menus'
   surface. */
.site-foot-switch:has(> .foot-menu) {
  position: relative;
}

.foot-menu-btn {
  list-style: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, var(--bg));
  border-radius: 999px;
  /* Solid, in the text's full color: the theme's snow and petals do not
     show through it, and it does not read as turned off. */
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  color: var(--fg);
  cursor: pointer;
}

.foot-menu:not([open]) > .foot-menu-pop {
  display: none;
}

.foot-menu-btn::-webkit-details-marker {
  display: none;
}

.foot-menu-btn .icon {
  width: 19px;
  height: 19px;
}

.foot-menu-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: var(--z-popup);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 14px;
  text-align: start;
}

.foot-looks-k {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.foot-looks-k:first-child {
  margin-top: 0;
}

.foot-looks-pop .season-switch {
  max-width: 100%;
}

/* Sound: the button shows the choice in force; the menu lists the three
   with a check on the one in force, and closes on a pick. */
.sound-menu:not([data-now="all"]) [data-sound-icon="all"],
.sound-menu:not([data-now="notice"]) [data-sound-icon="notice"],
.sound-menu:not([data-now="off"]) [data-sound-icon="off"] {
  display: none;
}

.sound-now {
  display: grid;
  place-items: center;
}

.sound-pop {
  gap: 2px;
  min-width: 200px;
  padding: 6px;
}

.sound-pop .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: start;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .sound-pop .menu-item:hover {
    background: var(--hover);
  }
}

.sound-pop .menu-item > span {
  flex: 1 1 auto;
}

.sound-pop .foot-menu-check {
  visibility: hidden;
  color: var(--accent, var(--fg));
}

.sound-pop .menu-item[aria-checked="true"] .foot-menu-check {
  visibility: visible;
}

.site-foot-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 4px;
}

.site-foot .lang-switch,
.site-foot .theme-switch {
  margin-top: 0;
}

html.theme-light input,
html.theme-light textarea,
html.theme-light select,
html.theme-light .field input,
html.theme-light .field textarea,
html.theme-light .field select,
html.theme-light .rate-tile input,
html.theme-light .rate-qty input,
html.theme-light .credit-check .handle-pick .handle-pick-panel {
  color-scheme: light;
}

html.theme-light body.auth,
html.theme-light body.auth.has-wash {
  background: #fff;
}

html.theme-light body.auth.has-wash::before {
  background:
    radial-gradient(ellipse 78% 64% at 36% 32%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.03) 42%, rgba(0, 0, 0, 0) 74%),
    radial-gradient(ellipse 70% 58% at 76% 64%, rgba(0, 0, 0, 0.055) 0%, rgba(0, 0, 0, 0.02) 46%, rgba(0, 0, 0, 0) 76%),
    radial-gradient(ellipse 64% 54% at 16% 78%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.015) 44%, rgba(0, 0, 0, 0) 74%),
    #fff;
  animation: wash-fog-a 160s linear infinite;
  filter: blur(120px);
}

html.theme-light body.auth.has-wash::after {
  background:
    radial-gradient(ellipse 68% 56% at 64% 36%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.022) 44%, rgba(0, 0, 0, 0) 76%),
    radial-gradient(ellipse 58% 50% at 24% 58%, rgba(0, 0, 0, 0.045) 0%, rgba(0, 0, 0, 0.018) 46%, rgba(0, 0, 0, 0) 76%),
    radial-gradient(ellipse 54% 46% at 82% 82%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.012) 42%, rgba(0, 0, 0, 0) 72%);
  mix-blend-mode: multiply;
  opacity: 0.62;
  animation: wash-fog-b 210s linear infinite;
  filter: blur(128px);
}

html.theme-light .gate .btn,
html.theme-light .fail-card .btn {
  background: #111113;
  color: #fff;
  border-color: #111113;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .gate .btn:hover,
  html.theme-light .fail-card .btn:hover {
    background: #2c2c2e;
    border-color: #2c2c2e;
    color: #fff;
  }
}

html.theme-light .pace-fact,
html[data-theme="light"] .pace-fact {
  background: #fff;
}

html.theme-light .pace-panel,
html[data-theme="light"] .pace-panel {
  background: var(--line);
}

html.theme-light body.auth.is-pace:not(.has-wash) {
  background:
    radial-gradient(ellipse 58% 46% at 50% 18%, rgba(0, 0, 0, 0.05) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 50% 92%, rgba(0, 0, 0, 0.04) 0%, transparent 70%),
    #fff;
}

html.theme-light .pace-mark::before {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14) 0%, transparent 72%);
}

html.theme-light .pace-orbit {
  border-color: rgba(0, 0, 0, 0.08);
}

html.theme-light .pace-orbit.o1 {
  border-top-color: rgba(0, 0, 0, 0.55);
  border-inline-end-color: rgba(0, 0, 0, 0.12);
}

html.theme-light .pace-orbit.o2 {
  border-top-color: rgba(0, 0, 0, 0.35);
  border-inline-start-color: rgba(0, 0, 0, 0.1);
}

html.theme-light .pace-orbit.o3 {
  border-top-color: rgba(0, 0, 0, 0.22);
}

html.theme-light .pace-core {
  background:
    radial-gradient(circle at 50% 36%, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.86) 70%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

html.theme-light .pace-bar {
  background: #111113;
  box-shadow: none;
}

html.theme-light body.auth.is-access:not(.has-wash) {
  background:
    radial-gradient(ellipse 58% 46% at 50% 18%, rgba(180, 40, 40, 0.06) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 50% 92%, rgba(0, 0, 0, 0.04) 0%, transparent 70%),
    #fff;
}

html.theme-light .access-ring {
  border-color: rgba(0, 0, 0, 0.1);
}

html.theme-light .access-ring.r1 {
  border-color: rgba(0, 0, 0, 0.16);
}

html.theme-light .access-core {
  background:
    radial-gradient(circle at 50% 36%, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.86) 70%);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.45);
}

html.theme-light .access-slash {
  background: #111113;
  box-shadow: none;
}

html.theme-light .admin-sheet,
html.theme-light .rate-sheet,
html[data-theme="light"] .admin-sheet,
html[data-theme="light"] .rate-sheet {
  background: #fff;
}

html.theme-light .rate-tile,
html[data-theme="light"] .rate-tile {
  background: #fff;
}

html.theme-light .rate-reset,
html[data-theme="light"] .rate-reset {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) body.auth,
  html:not([data-theme="dark"]) body.auth.has-wash {
    background: #fff;
  }

  html:not([data-theme="dark"]) body.auth.has-wash::before {
    background:
      radial-gradient(ellipse 78% 64% at 36% 32%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.03) 42%, rgba(0, 0, 0, 0) 74%),
      radial-gradient(ellipse 70% 58% at 76% 64%, rgba(0, 0, 0, 0.055) 0%, rgba(0, 0, 0, 0.02) 46%, rgba(0, 0, 0, 0) 76%),
      radial-gradient(ellipse 64% 54% at 16% 78%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.015) 44%, rgba(0, 0, 0, 0) 74%),
      #fff;
    animation: wash-fog-a 160s linear infinite;
    filter: blur(120px);
  }

  html:not([data-theme="dark"]) body.auth.has-wash::after {
    background:
      radial-gradient(ellipse 68% 56% at 64% 36%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.022) 44%, rgba(0, 0, 0, 0) 76%),
      radial-gradient(ellipse 58% 50% at 24% 58%, rgba(0, 0, 0, 0.045) 0%, rgba(0, 0, 0, 0.018) 46%, rgba(0, 0, 0, 0) 76%),
      radial-gradient(ellipse 54% 46% at 82% 82%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.012) 42%, rgba(0, 0, 0, 0) 72%);
    mix-blend-mode: multiply;
    opacity: 0.62;
    animation: wash-fog-b 210s linear infinite;
    filter: blur(128px);
  }

  html:not([data-theme="dark"]) .pace-fact {
    background: #fff;
  }

  html:not([data-theme="dark"]) .admin-sheet,
  html:not([data-theme="dark"]) .rate-sheet {
    background: #fff;
  }

  html:not([data-theme="dark"]) .rate-reset {
    border-color: var(--line);
    background: #fff;
    box-shadow: none;
  }

  html:not([data-theme="dark"]) .msg-lock {
    background: rgba(40, 36, 28, 0.28);
  }

  html:not([data-theme="dark"]) .invite-card {
    background:
      linear-gradient(165deg, rgba(255, 231, 168, 0.55) 0%, rgba(243, 212, 138, 0.18) 38%, transparent 72%),
      repeating-linear-gradient(
        180deg,
        transparent,
        transparent 3px,
        rgba(106, 74, 22, 0.04) 3px,
        rgba(106, 74, 22, 0.04) 4px
      ),
      #f6eed8;
    border-color: #c9a227;
    box-shadow: inset 0 0 0 1px rgba(255, 241, 196, 0.55);
  }

  html:not([data-theme="dark"]) .invite-label {
    color: #8a6a12;
  }

  html:not([data-theme="dark"]) .invite-code {
    color: var(--credit-text-hot);
  }
}

html.theme-light .status-hero.is-ok {
  border-color: #6fa883;
  background: linear-gradient(180deg, rgba(61, 154, 95, 0.14), var(--card) 70%);
}

html.theme-light .status-hero.is-warn {
  border-color: #c9a227;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.16), var(--card) 70%);
}

html.theme-light .status-hero.is-bad {
  border-color: #e08a84;
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.12), var(--card) 70%);
}

html.theme-light .status-hero.is-deploy {
  border-color: #7eb0e0;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.12), var(--card) 70%);
}

html.theme-light .status-ribbon.is-void {
  fill: #e4e4e7;
}

html.theme-light .invite-card {
  background:
    linear-gradient(165deg, rgba(255, 231, 168, 0.55) 0%, rgba(243, 212, 138, 0.18) 38%, transparent 72%),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(106, 74, 22, 0.04) 3px,
      rgba(106, 74, 22, 0.04) 4px
    ),
    #f6eed8;
  border-color: #c9a227;
  box-shadow: inset 0 0 0 1px rgba(255, 241, 196, 0.55);
}

html.theme-light .invite-card.is-dead {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 48%),
    #f3efe4;
  border-color: #d4c4a0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

html.theme-light .invite-card.is-dead::before {
  background: #b8a078;
}

html.theme-light .metric.is-ok .metric-n { color: #1f7a45; }
html.theme-light .metric.is-warn .metric-n { color: #8a6a12; }
html.theme-light .metric.is-bad .metric-n { color: #c62828; }

html.theme-light .status-chip {
  background: var(--card-2);
  border-color: var(--hairline);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .status-chip:hover {
    border-color: var(--hairline-strong);
  }
}

html.theme-light .site-toast,
html.theme-light .ox-note,
html.theme-light .user-menu {
  background: var(--elevated);
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--fg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* A dialog on the light theme: the same edge and a deeper shadow. */
html.theme-light .ox-ask,
html.theme-light .compose {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

html.theme-light .user-menu,
html.theme-light .admin-menu,
html.theme-light .post-menu,
html.theme-light .uni-more-menu,
html.theme-light .foot-menu-pop,
html.theme-light .admin-pass,
html.theme-light .ctx-menu,
html.theme-light .ctx-reacts,
html.theme-light .compose-reply-from-menu {
  /* White on a white page (founder, 2026-11-14): a darker edge and a
     soft shadow set a menu off what is under it. */
  background: #fff;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
}

html.theme-light hr.menu-sep,
html.theme-light .menu-sep,
html[data-theme="light"] hr.menu-sep,
html[data-theme="light"] .menu-sep {
  background: none;
  border-top-color: rgba(0, 0, 0, 0.1);
}

html.theme-light .ctx-menu .menu-item:not(.is-danger) {
  color: var(--fg);
}

html.theme-light .menu-item.is-danger,
html.theme-light .ctx-menu .menu-item.is-danger {
  color: #c62828;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .ctx-menu .menu-item:hover {
    background: rgba(0, 0, 0, 0.06);
  }
}

html.theme-light .ctx-react:hover,
html.theme-light .ctx-react.is-on {
  background: rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-transparency: reduce) {
  html.theme-light .user-menu,
  html.theme-light .admin-menu,
  html.theme-light .post-menu,
  html.theme-light .uni-more-menu,
  html.theme-light .foot-menu-pop,
  html.theme-light .admin-pass,
  html.theme-light .ctx-menu,
  html.theme-light .ctx-reacts,
  html.theme-light .compose-reply-from-menu {
    background: #fff;
  }
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) hr.menu-sep,
  html:not([data-theme="dark"]) .menu-sep {
    background: none;
    border-top-color: rgba(0, 0, 0, 0.1);
  }
}

html.theme-light .phone-cc-pop {
  box-shadow: none;
}

html.theme-light .profile-banner,
html.theme-light .profile-banner-edit,
html.theme-light .profile-banner-img.is-empty,
html.theme-light .header-crop-frame {
  background: #e4e4e7;
}

html.theme-light .legal-body p,
html.theme-light .legal-body li,
html.theme-light .install-lede {
  color: var(--fg-dim);
}

html.theme-light .msg-poll-opt {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

html.theme-light .msg-bubble.is-mine .msg-poll-opt {
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
}

html.theme-light .msg-bubble:not(.is-mine) .msg-poll-n {
  color: rgba(0, 0, 0, 0.55);
}

html.theme-light .msg-poll-letter {
  background: rgba(0, 0, 0, 0.08);
}

html.theme-light .msg-poll-bar {
  background: rgba(0, 0, 0, 0.08);
}

html.theme-light .msg-poll-opt.is-on {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.28);
}

html.theme-light .msg-bubble:not(.is-mine).is-fail {
  color: var(--muted);
}

html.theme-light .msg-bubble:not(.is-mine) .quote-embed {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--fg);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .msg-bubble:not(.is-mine) .quote-embed:hover {
    background: rgba(0, 0, 0, 0.08);
  }
}

html.theme-light .msg-reply-media {
  background: var(--card);
  color: var(--muted);
}

html.theme-light .msg-bubble.is-photo-only:not(.is-sensitive) .msg-photo,
html.theme-light .msg-bubble.is-photo-only.is-open .msg-photo {
  background: var(--card);
}

html.theme-light .msg-send:not(.is-ready) {
  background: #d4d4d8;
  color: #111;
}

html.theme-light .toggle-ui {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

html.theme-light .toggle-ui::after {
  box-shadow: none;
}

html.theme-light .choice input {
  background: #fff;
  border-color: #8e8e93;
}

html.theme-light .ox-ask-back,
html.theme-light .compose-back {
  background: rgba(17, 17, 17, 0.5);
}

html.theme-light .e2ee-mark {
  background: var(--card);
  border-color: var(--hairline);
  color: var(--muted);
}

html.theme-light .profile-tag {
  border-color: rgba(106, 74, 22, 0.42);
  background: rgba(212, 162, 74, 0.16);
  color: #5c4818;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .compose-submit:hover,
  html.theme-light .rail-post:hover {
    background: #2c2c2e;
    border-color: #2c2c2e;
    color: #fff;
  }
}

html.theme-light .post-poll-opt.is-on {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.28);
}

html.theme-light .post-poll-opt.is-on .post-poll-letter {
  background: #111;
  color: #fff;
}

html.theme-light .post-poll-bar {
  background: rgba(11, 107, 203, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .report-card[data-href]:hover {
    background: var(--hover);
  }
}

html.theme-light .report-tag.is-open {
  color: #0a5ebd;
  background: color-mix(in srgb, #0a5ebd 12%, transparent);
}

html.theme-light .report-tag.is-progress {
  color: #8a6a12;
  background: color-mix(in srgb, #c9852a 16%, transparent);
}

html.theme-light .report-tag.is-done {
  color: #1f7a45;
  background: color-mix(in srgb, #1f7a45 14%, transparent);
}

html.theme-light .report-tag.is-kind {
  color: var(--muted);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .session-card:hover {
    background: var(--hover);
  }
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .live-new:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    color: var(--btn-hover-fg);
  }
}

html.theme-light .session-card.is-current {
  background: var(--hover);
}

html.theme-light .post.is-pinned {
  background: #fdecee;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .post.is-pinned:hover {
    background: #fadce0;
  }
}

html.theme-light .btn-danger,
html.theme-light .btn.is-danger {
  color: #c62828;
  border-color: #f0b4ae;
  background: #fff5f5;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .btn-danger:hover,
  html.theme-light .btn.is-danger:hover {
    color: #fff;
    border-color: #ff3b30;
    background: #e53935;
  }
}


html.theme-light .mcp-code,
html[data-theme="light"] .mcp-code {
  color: var(--fg);
}

html.theme-light .mcp-secret-input,
html.theme-light #mcp-token.mcp-secret-input,
html[data-theme="light"] .mcp-secret-input,
html[data-theme="light"] #mcp-token.mcp-secret-input {
  color: var(--fg);
  background: var(--input-bg);
  caret-color: var(--fg);
}

html.theme-light .lang-switch,
html.theme-light .theme-switch {
  border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

html.theme-light .theme-opt.is-on {
  background: #fff;
  box-shadow: none;
}

html.theme-light .msg-bubble:not(.is-mine) .msg-sensitive-hint {
  color: var(--muted);
}

html.theme-light .msg-reply-ref-media {
  background: var(--card);
  color: var(--muted);
}

html.theme-light .credit-hero,
html.theme-light .ox-ask.wallet-confirm {
  background:
    radial-gradient(circle at 18% -10%, rgba(212, 162, 74, 0.2), transparent 42%),
    linear-gradient(165deg, #fbf6e8 0%, #f4ecd4 58%, #efe4c4 100%);
  box-shadow: none;
}

html.theme-light .credit-send {
  background: #fbf6e8;
}

html.theme-light .wallet-confirm-to {
  background: rgba(255, 255, 255, 0.55);
}

html.theme-light .sub-notice {
  background: #fbf6e8;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .sub-app:hover .sub-app-go {
    background: #2c2c2e;
    border-color: #2c2c2e;
    color: #fff;
  }
}

html.theme-light .sub-pay-list li.is-in .sub-pay-amt {
  color: #1f7a45;
}

html.theme-light .sub-card {
  background:
    linear-gradient(180deg, var(--sub-wash), transparent 56%),
    #fbf6e8;
  box-shadow: none;
}

html.theme-light .sub-card.is-free {
  --sub-text: #3a3f48;
  --sub-text-hot: #14161a;
  background: #f3f4f7;
}

html.theme-light .sub-card.is-starter {
  --sub-text: #6a3e18;
  --sub-text-hot: #3d220c;
}

html.theme-light .sub-card.is-plus {
  --sub-text: #6a4820;
  --sub-text-hot: #3d2a10;
}

html.theme-light .sub-card.is-pro {
  --sub-text: #5c4818;
  --sub-text-hot: #3d3010;
}

html.theme-light .sub-card.is-organization {
  --sub-text: #5c4818;
  --sub-text-hot: #3d3010;
}

html.theme-light .sub-card.is-current {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sub-mid) 38%, transparent);
}

html.theme-light .sub-card-current {
  background: rgba(255, 255, 255, 0.65);
  color: var(--sub-text-hot);
}

html.theme-light .sub-card-list li {
  color: var(--sub-text);
}

html.theme-light .sub-pay-when {
  color: #6a5420;
}

html.theme-light .btn.sub-ghost {
  color: var(--uni-text);
  background: #fff;
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .btn.sub-ghost:hover {
    color: var(--uni-text-hot);
    background: #f7f0dc;
  }
}

html.theme-light .sub-confirm-math {
  background: #fff;
  color: #3d3010;
}

html.theme-light .ox-ask.wallet-confirm.sub-confirm .sub-confirm-error {
  color: #b42318;
}

html.theme-light .invite-label {
  color: #8a6a12;
}

html.theme-light .invite-code {
  color: var(--credit-text-hot);
}

html.theme-light .invite-card.is-dead .invite-code {
  color: #6e5c3a;
}

html.theme-light .lockdown-banner,
html[data-theme="light"] .lockdown-banner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, #c62828 0%, #e53935 50%, #c62828 100%);
  border-bottom-color: #b71c1c;
  box-shadow: none;
  color: #fff;
}

html.theme-light .lockdown-kicker,
html[data-theme="light"] .lockdown-kicker {
  color: #ffe4e1;
}

html.theme-light .lockdown-banner a,
html.theme-light .lockdown-banner a:hover,
html[data-theme="light"] .lockdown-banner a,
html[data-theme="light"] .lockdown-banner a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

html.theme-light .danger-panel,
html.theme-light .danger-panel.admin-sheet,
html.theme-light .danger-panel.rate-sheet {
  background:
    linear-gradient(180deg, #fff1f0, transparent 46%),
    var(--card);
  border-color: #f0b4ae;
  color: var(--fg);
  box-shadow: none;
}

html.theme-light .danger-panel.is-on,
html.theme-light .danger-panel.admin-sheet.is-on,
html.theme-light .danger-panel.rate-sheet.is-on {
  background:
    linear-gradient(180deg, #ffe3e0, transparent 55%),
    var(--card);
  border-color: #ff3b30;
  box-shadow: none;
}

html.theme-light .danger-panel > .settings-sub,
html.theme-light .danger-panel > .field-note,
html.theme-light .danger-panel .admin-sheet-head p,
html.theme-light .danger-panel .rate-sheet-head p {
  color: #8b1a1a;
}

html.theme-light .danger-panel .admin-sheet-head h2,
html.theme-light .danger-panel .rate-sheet-head h2 {
  color: #c62828;
}

/* The status page's "Operational" and its icon were the dark page's pale
   green on a light page (1.9:1). */
html.theme-light .status-item.is-ok > .icon,
html.theme-light .status-item.is-ok .status-state,
html[data-theme="light"] .status-item.is-ok > .icon,
html[data-theme="light"] .status-item.is-ok .status-state { color: var(--status-ok); }

html.theme-light .node-card.is-ok .node-status,
html.theme-light .metric.is-ok .metric-n { color: var(--status-ok); }
html.theme-light .node-card.is-warn .node-status,
html.theme-light .metric.is-warn .metric-n { color: var(--status-warn); }
html.theme-light .node-card.is-bad .node-status,
html.theme-light .metric.is-bad .metric-n { color: var(--status-bad); }

html.theme-light .notice-preview.is-moderated {
  color: #6e5c3a;
}

html.theme-light .ox-ask,
html.theme-light .compose,
html.theme-light .search-panel,
html.theme-light .handle-pick .handle-pick-panel,
html.theme-light .addr-town .town-pick-panel,
html.theme-light .cookie-bar {
  box-shadow: none;
}

html.theme-light .credit-tx.is-in .credit-tx-amt,
html.theme-light .sub-pay-list li.is-in .sub-pay-amt,
html[data-theme="light"] .credit-tx.is-in .credit-tx-amt,
html[data-theme="light"] .sub-pay-list li.is-in .sub-pay-amt {
  color: #1b6b42;
}

html.theme-light .credit-tx.is-out .credit-tx-amt,
html.theme-light .sub-pay-list li.is-out .sub-pay-amt,
html[data-theme="light"] .credit-tx.is-out .credit-tx-amt,
html[data-theme="light"] .sub-pay-list li.is-out .sub-pay-amt {
  color: #8a4f10;
}

html.theme-light .credit-tx.is-mint .credit-tx-amt,
html[data-theme="light"] .credit-tx.is-mint .credit-tx-amt {
  color: var(--fg);
}

html.theme-light,
html.theme-light body {
  -webkit-font-smoothing: auto;
}

.settings .lang-switch.is-full {
  margin-top: 10px;
}

.site-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
}

.site-copy a {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .site-copy a:hover {
    color: var(--link);
  }
}

.gate .site-foot {
  margin-top: auto;
  flex: 0 0 auto;
}

/* Inside the whole page (a visitor during a lockdown gets the sign-in
   form there) the page has its footer already: the form's own goes, or
   there are two. */
.stage:has(> .site-foot-mobile) .gate > .site-foot {
  display: none;
}

.guest-gate {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: min(400px, 100%);
  min-height: 0;
}

.guest-gate .gate-card {
  flex: 1 1 auto;
  justify-content: safe center;
}

.guest-gate .gate-brand {
  margin: 0 0 10px;
}

/* Corners are rounded everywhere. Cards, panels, dialogs and menus keep
   their own corner size; text buttons and fields share one small one
   (round icon buttons and pills stay round). */
:is(
  .btn:not(:has(> .icon:only-child)):not(.btn-round):not(.profile-member.is-member):not(.work-more):not(.work-step),
  .rail-post,
  .field input:not([type="checkbox"]):not([type="radio"]),
  .field textarea,
  .field select,
  .work-input
) {
  border-radius: 9px !important;
}

/* Guest pages: the card, its fields and buttons. */
.guest-gate .gate-card .admin-sheet {
  border-radius: 12px;
}
.guest-gate .gate-card :is(input, .btn) {
  border-radius: 9px;
}

.guest-gate .gate-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.guest-gate .gate-brand-copy {
  gap: 5px;
}

.guest-gate .gate-name {
  font-size: var(--text-20);
  line-height: var(--lh-24);
}

.guest-gate .gate-card h1 {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: start;
}

.guest-gate .stack {
  margin-top: 22px;
  gap: 14px;
}

.guest-gate .settings-sheets {
  margin-top: 22px;
  gap: 14px;
}

.guest-gate .admin-sheet,
.guest-gate .rate-sheet {
  padding: 16px;
  border-radius: 16px;
  gap: 12px;
}

.guest-gate .admin-sheet-head h2,
.guest-gate .rate-sheet-head h2 {
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.profile-edit-page .settings-sheets {
  gap: 16px;
}

.profile-edit-page .admin-sheet > .feature-toggles,
.profile-edit-page .rate-sheet > .feature-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-gate .field:has(> .field-side) {
  position: relative;
}

.guest-gate .field-side {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .guest-gate .field-side:hover {
    color: var(--fg);
  }
}

.guest-gate .btn[type="submit"],
.guest-gate .login-slots .btn,
.guest-gate .passkey-login {
  width: 100%;
  height: var(--control-h);
}

.guest-gate .login-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.guest-gate .login-more[hidden] {
  display: none;
}

.guest-gate #login-totp-switch-wrap {
  margin-top: 2px;
}

.guest-gate .switch {
  text-align: center;
}

.guest-gate .switch.is-quiet {
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.guest-gate .site-foot {
  margin-top: auto;
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  body.auth:has(.guest-gate) {
    padding: 20px 16px 16px;
    align-items: stretch;
  }

  .guest-gate {
    width: 100%;
    min-height: 0;
  }
}

.stage {
  position: relative;
  z-index: 1;
  flex: 0 1 var(--stage);
  width: var(--stage);
  max-width: var(--stage);
  min-width: 0;
  padding: var(--stage-pad-x) var(--stage-pad-x) 48px;
  border-inline-start: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(1.25);
  -webkit-backdrop-filter: blur(40px) saturate(1.25);
}

.stage:has(.post-menu:not([hidden])),
.stage:has(.admin-menu:not([hidden])),
.stage:has(.admin-pass:not([hidden])),
.stage:has(.admin-reset-copy:not([hidden])),
.stage:has(.search-panel:not([hidden])) {
  z-index: 160;
}

.stage:has(.profile),
.stage:has(.feed),
.stage:has(.dash),
.stage:has(.settings),
.stage:has(.sub-page),
.stage:has(.people),
.stage:has(.status),
.stage:has(#status-page) {
  padding: var(--stage-pad-x) var(--stage-pad-x) 16px;
}

/* Wide stage width (HTTP Perf, messages, notes, founder term) — aside hidden separately. */
.stage.is-wide,
body.has-wide-stage .stage,
.stage:has(.messages) {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
  min-height: 0;
  padding: 0;
}

/* #53.12 Fixed height + overflow:hidden only for messages/notes stages — not HTTP Perf. */
.stage:has(.messages),
body.has-wide-stage .stage:has(.messages) {
  height: calc(100dvh - var(--lock-bar));
  overflow: hidden;
}

/* The Logs, Metrics and Top queries pages on the wide stage: their
   groupings keep the gap from the column's edges that the sheets of
   other pages have. */
body.has-wide-stage .stage:has(.logs-page),
body.has-wide-stage .stage:has(.metrics):not(:has(.api-latency)):not(:has(.ws-latency)),
body.has-wide-stage .stage:has(#queries-admin),
body.has-wide-stage .stage:has(.maintenance-page),
body.has-wide-stage .stage:has(.deployments-page),
body.has-wide-stage .stage:has(> .learn-page) {
  padding: var(--stage-pad-x) var(--stage-pad-x);
}

/* A lesson fills the screen: its pager sits on the bottom edge. */
body.has-wide-stage .stage:has(> .learn-page.is-step) {
  padding-bottom: 0;
}

/* #55.4 HTTP/WS Perf: sticky chrome; only results scroll. */
/* #56.5/#57.4: beat body.has-wide-stage .stage { padding: 0 }; full usable width. */
body.has-wide-stage .stage:has(.api-latency),
body.has-wide-stage .stage:has(.ws-latency),
.stage:has(.api-latency),
.stage:has(.ws-latency) {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--lock-bar));
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--stage-pad-x) var(--stage-pad-x);
  width: calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
}

.stage:has(.api-latency) > .api-latency,
.stage:has(.ws-latency) > .ws-latency {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* #57.4: footer must not eat the locked results viewport (like messages/notes). */
.stage:has(.api-latency) > .site-foot-mobile,
.stage:has(.ws-latency) > .site-foot-mobile {
  display: none;
}

.api-latency > .admin-sheet:first-child,
.ws-latency > .admin-sheet:first-child,
.api-latency > .metrics-chapter:first-child,
.ws-latency > .metrics-chapter:first-child {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  background: var(--bg);
}

.api-latency > .admin-sheet:last-child,
.ws-latency > .admin-sheet:last-child,
.api-latency > .metrics-chapter:last-child,
.ws-latency > .metrics-chapter:last-child {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.stage:has(.messages) > .messages {
  flex: 1 1 auto;
  min-height: 0;
}

body.app:has(.messages) {
  height: 100dvh;
  overflow: hidden;
}

body.has-wide-stage .aside,
body:has(.messages) .aside { display: none; }

body.has-sub-stage .stage,
.stage:has(.sub-page) {
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
}

body.has-sub-stage .aside,
body:has(.sub-page) .aside { display: none; }

body.has-sub-stage .site-foot-mobile,
.stage:has(.sub-page) .site-foot-mobile,
.stage:has(.panel.legal) .site-foot-mobile {
  display: block;
}

.stage:has(.founder-term),
.stage.is-founder-term,
body.has-wide-stage .stage.is-founder-term {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
  min-height: 0;
  height: calc(100dvh - var(--lock-bar));
  padding: 16px 20px;
  overflow: hidden;
}

.stage:has(.founder-term) > .founder-term,
.stage.is-founder-term > .founder-term {
  flex: 1 1 auto;
  min-height: 0;
}

body.has-founder-term .aside,
body:has(.founder-term) .aside { display: none; }

/* The legal pages and the notice form have no right column: the page
   takes its place, as Subscription does, instead of leaving it empty. */
@media (min-width: 901px) {
  body.app > .stage:has(.panel.legal) {
    flex: 0 1 calc(var(--stage) + var(--aside));
    max-width: calc(var(--stage) + var(--aside));
    width: calc(var(--stage) + var(--aside));
  }
}

body.app > .stage:has(.panel.legal) ~ .aside {
  display: none;
}

.stage.is-founder-term .site-foot-mobile,
.stage:has(.founder-term) .site-foot-mobile {
  display: none;
}

body.app.has-founder-term,
body.app:has(.founder-term) {
  height: 100dvh;
  overflow: hidden;
}

.founder-term {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px 12px 12px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.founder-term-view {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #000;
  caret-color: transparent;
  outline: none;
  overflow: hidden;
}

.founder-term-view .ox-term-screen > div {
  font-family: inherit !important;
}

.ox-term-cursor {
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid var(--ox-cursor);
}

.ox-term-cursor.is-focused {
  background: var(--ox-cursor);
  mix-blend-mode: difference;
  animation: ox-term-blink 1.1s steps(1) infinite;
}

@keyframes ox-term-blink {
  50% { opacity: 0; }
}

.hero, .panel, .feed, .profile {
  width: 100%;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

h1 {
  margin: 0 0 12px;
  font-size: var(--text-20);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--lh-24);
}

.settings-sub {
  margin: 28px 0 12px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.settings-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-block + .settings-block {
  margin-top: 28px;
}

.settings .settings-sub,
.settings-block > .settings-sub {
  margin: 0;
}

.panel.settings > .settings-block:first-child {
  margin-top: 0;
}

.panel.settings {
  padding-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0;
  text-transform: none;
}

/* A required field's label ends in a red star; a field without one may be
   left empty. Required is the input's own `required`, or `is-required` on
   the label where the form checks it itself. The rate tiles, the ad image
   and the terms box are fields too, in their own markup. */
:is(.field.is-required, .field:has(:is(input, select, textarea)[required]))
  > :is(span:first-child:not(.field-row), .field-row > span:first-child, label:first-child)::after,
.is-required > .check-label::after,
.rate-tile:has(input[required]) > span:first-child::after,
.rate-qty:has(input[required]) > .rate-k:first-child::after,
.ad-pick:has(input[required]) .ad-pick-empty > span::after,
.check:has(> input[required]) > span::after {
  content: "*";
  margin-inline-start: 2px;
  color: var(--status-bad);
  font-weight: 650;
}

.field[hidden] {
  display: none !important;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* A start and an end side by side, at every width (founder, 2026-11-27:
   "start and end date also can move inline ... every other place"):
   Search, the audit and visitors ranges, activation codes, Work's
   cancelled dates, as Analytics and the Wallet have them. What else the
   group holds (an error, a button) takes a row of its own. */
.date-pair,
.field-row.date-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.date-pair > .field {
  min-width: 0;
  margin: 0;
}

.date-pair > :not(.field) {
  grid-column: 1 / -1;
}

.field-wait {
  letter-spacing: 0.06em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.field-wait.is-low {
  color: var(--fg);
}

.muted-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.field-note + .muted-actions,
.field-note + .btn {
  margin-top: 14px;
}

/* The buttons of an action line share its whole width evenly (Open post,
   Edit, Remove); one too wide for its share goes to a line of its own
   with the rest. A lone button takes it all. Hidden siblings (a second
   state of the same action) do not count. */
.muted-actions > .btn {
  flex: 1 1 0;
  min-width: fit-content;
  /* No wider than its line: a long name goes on to a second line inside
     the button, where it ran past a 320px phone's edge ("Kijelentkezés a
     többi munkamenetből"; swept 2026-11-21). */
  max-width: 100%;
  height: auto;
  min-height: var(--control-h);
  padding-block: 6px;
  white-space: normal;
  text-align: center;
}

/* A line laid out as a column (the downloads, the DNS checks) keeps each
   button its own height. */
:is(.transparency-downloads, .mail-dns-actions) > .btn {
  flex: none;
}

.muted-actions:not(:has(> :not([hidden]) ~ :not([hidden]))) > .btn {
  flex: 1 1 100%;
  width: 100%;
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.field-note a,
.field-note .mention {
  color: var(--link);
}

@media (hover: hover) and (pointer: fine) {
  .field-note a:hover,
  .field-note .mention:hover {
    color: var(--link-hover);
  }
}

/* A choice reads at the size of the text field next to it (the phone
   rule for bare fields is 16px). */
.field select {
  font-size: var(--text-15);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="tel"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  height: var(--control-h);
  min-height: var(--control-h);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  letter-spacing: 0;
  text-transform: none;
  user-select: text;
  -webkit-user-select: text;
}

.field textarea {
  padding-inline: 12px;
}

.field .search-box input {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.field input[readonly],
.field input:disabled,
.field textarea[readonly] {
  color: var(--muted);
  cursor: default;
  background: var(--input-bg);
}

/* A field or a select that cannot be changed looks it everywhere. */
.field input:disabled,
.field select:disabled,
.field textarea:disabled,
select:disabled {
  color: var(--muted);
  border-style: dashed;
  opacity: 0.65;
  cursor: not-allowed;
}

.field textarea {
  padding: 10px 12px;
  font: inherit;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
  min-height: 96px;
  user-select: text;
  -webkit-user-select: text;
}

.phone-wrap {
  position: relative;
}

.phone-field {
  display: flex;
  align-items: stretch;
  min-width: 0;
  box-sizing: border-box;
  height: var(--control-h);
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 160ms var(--ease);
}

.phone-field:focus-within {
  border-color: var(--input-focus);
}

.phone-cc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 4px 0 12px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.phone-cc::after {
  content: "";
  width: 1px;
  height: 16px;
  margin: 0 6px 0 4px;
  background: var(--hairline-strong);
  border-radius: 1px;
}

.phone-cc:hover,
.phone-cc[aria-expanded="true"] {
  background: var(--hover);
}

.phone-cc-flag,
.phone-cc-opt-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  flex: 0 0 20px;
  font-size: 17px;
  line-height: 1;
}

.phone-cc-code {
  display: inline-flex;
  align-items: center;
  height: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 19px;
}

.phone-cc-chev {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 160ms var(--ease);
}

.phone-cc[aria-expanded="true"] .phone-cc-chev {
  transform: rotate(-90deg);
}

.phone-wrap .phone-field > input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 12px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.phone-wrap .phone-field > input[type="tel"]:focus,
.phone-wrap .phone-field > input[type="tel"]:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.phone-cc-pop {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: var(--z-popup);
  display: flex;
  flex-direction: column;
  max-height: min(320px, 60vh);
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}

.phone-cc-pop[hidden] {
  display: none;
}

.phone-cc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  height: 40px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.phone-cc-search .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: 0 0 17px;
}

.phone-cc-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: var(--text-15);
}

.phone-cc-search input:focus,
.phone-cc-search input:focus-visible {
  border: 0;
  box-shadow: none;
}

.phone-cc-list {
  list-style: none;
  margin: 0;
  padding: 4px 6px 8px;
  overflow-y: auto;
  min-height: 0;
}

.phone-cc-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: start;
}

.phone-cc-opt:hover,
.phone-cc-opt.is-on,
.phone-cc-opt:focus-visible {
  background: var(--hover);
}

.phone-cc-opt-name,
.phone-cc-opt-dial {
  line-height: 19px;
}

.phone-cc-opt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-cc-opt-dial {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.profile { width: 100%; max-width: 600px; }

.profile-banner,
.profile-banner-edit {
  position: relative;
  margin: calc(-1 * var(--stage-pad-x)) calc(-1 * var(--stage-pad-x)) 0;
  aspect-ratio: 3 / 1;
  background: var(--card-2);
  overflow: hidden;
}


/* The shared badge gradients: rendered, so every badge can use them, but
   out of the layout. */
.badge-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Every date and time field is the browser's own (founder, 2026-11-26:
   "use the builtin datetime picker"), and every one looks the same,
   wherever it is: the site's field (fill, line, corners, height), as wide
   as its column, its popup in the page's theme (`color-scheme` follows the
   theme on <html>). iOS gives one a width of its own (wider than a phone's
   column) and centers its text; it starts at the left as other fields do. */
input:is([type="date"], [type="time"], [type="datetime-local"]) {
  -webkit-appearance: none;
  appearance: none;
  /* A flex line, as iOS lays its value out: the value in the middle of
     the field whatever its own box is. */
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: var(--control-h);
  min-height: var(--control-h);
  max-height: var(--control-h);
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--fg);
  font-size: var(--text-15);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-20);
  text-align: start;
  color-scheme: inherit;
  transition: border-color 160ms var(--ease);
}

input:is([type="date"], [type="time"], [type="datetime-local"]):focus,
input:is([type="date"], [type="time"], [type="datetime-local"]):focus-visible {
  border-color: var(--input-focus);
  outline: none;
}

input:is([type="date"], [type="time"], [type="datetime-local"]):is(:disabled, [readonly]) {
  opacity: 0.55;
  cursor: default;
}

/* iOS draws the value in a box of its own at the field's top, in its own
   size: it sat high with a gap under it, larger than the other fields'
   text (founder, 2026-11-28, Analytics' From and To). Its line fills the
   field (the height less the two border lines), so the text sits in the
   middle, in the fields' size. `font` first: the shorthand also sets the
   line height, and written last it put the field's 20px line back, so the
   value stayed at the top (founder, 2026-11-30, the composer's Schedule). */
input:is([type="date"], [type="time"], [type="datetime-local"])::-webkit-date-and-time-value {
  font: inherit;
  text-align: start;
  margin: 0;
  min-height: 0;
  height: calc(var(--control-h) - 2px);
  line-height: calc(var(--control-h) - 2px);
}

input:is([type="date"], [type="time"], [type="datetime-local"])::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* While the account menu is open over the rail, the Post button under it is
   hidden: it showed through around the menu's corners. */
.rail-end:has(#user-menu:not([hidden])) .rail-post {
  visibility: hidden;
}

/* Small links get a finger's target on a touch screen, without moving
   anything: the footer's links, the X link, a profile's follow counts,
   an (i) tip and "Forgot your PIN?" (16-22px drawn). */
@media (pointer: coarse) {
  .site-legal :is(a, .site-bug),
  .site-x,
  .profile-stat,
  .info-tip,
  #msg-pin-reset {
    position: relative;
  }

  .site-legal :is(a, .site-bug)::after,
  .site-x::after,
  .profile-stat::after,
  #msg-pin-reset::after,
  .info-tip::after {
    content: "";
    position: absolute;
    inset: -10px -6px;
  }

  .site-x::after {
    inset: -12px;
  }

  /* An (i) tip (22px drawn): 38px to a finger. */
  .info-tip::after {
    inset: -8px;
  }

  /* The footer's two rows of links far enough apart that each keeps its
     own target. */
  .site-legal {
    row-gap: 12px;
  }

  .site-legal + .site-legal {
    margin-top: 2px;
  }
}

/* iOS: the document keeps one pixel of room, so a tap on the status bar
   reaches the page and takes it to the top (ui/phone.rs). */
@media (max-width: 800px) {
  html.tap-top {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  html.tap-top::-webkit-scrollbar {
    display: none;
  }

  html.tap-top {
    height: calc(100dvh + 1px);
  }

  html.tap-top.ios-pwa {
    height: calc(var(--ios-shell-h, 100lvh) + 1px);
  }
}
button.profile-banner {
  display: block;
  width: calc(100% + 2 * var(--stage-pad-x));
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.profile-banner img,
.profile-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-banner-img.is-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--card-2);
}

.profile-edit-hero {
  margin-bottom: 8px;
}

.header-pick-hit {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.header-pick-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.header-pick-hit.is-off {
  cursor: default;
  pointer-events: none;
}

.header-pick-hit .photo-pick-ui {
  inset-inline-end: auto;
  bottom: auto;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .header-pick-hit:hover .photo-pick-ui {
    background: rgba(0, 0, 0, 0.72);
  }
}

.header-pick-hit.is-off .photo-pick-ui {
  opacity: 0.35;
}

.header-clear {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.header-clear .icon {
  width: 17px;
  height: 17px;
  flex: none;
}

@media (hover: hover) and (pointer: fine) {
  .header-clear:hover {
    background: rgba(0, 0, 0, 0.72);
  }
}

.header-clear[hidden] {
  display: none;
}

.profile-banner-edit .field-wait {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 10px;
  z-index: 2;
}

.header-crop-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.header-crop-frame {
  position: relative;
  margin: 14px 0 12px;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-2);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.header-crop-frame.is-drag {
  cursor: grabbing;
}

.header-crop-img {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  max-width: none;
  pointer-events: none;
}

.header-crop-zoom {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: #1d9bf0;
}

.profile-edit-hero .photo-edit {
  position: relative;
  z-index: 1;
  margin: -48px 0 0 0;
}

.profile-face .av-box {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.profile-face:has(.is-verified-business) .av-box {
  border-radius: 18px;
}

.profile-face .profile-photo {
  width: 100%;
  height: 100%;
  flex: none;
}

.profile-edit-hero .photo-pick-hit .profile-photo,
.profile-face .av-box {
  box-shadow: 0 0 0 4px var(--bg);
}

.profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.profile:has(.profile-banner) .profile-head {
  margin-top: -48px;
}

@media (max-width: 800px) {
  .profile-face {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .profile-photo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 28px;
  }

  .profile-photo.is-fallback {
    font-size: 28px;
  }

  .profile:has(.profile-banner) .profile-head {
    margin-top: -28px;
    margin-bottom: 14px;
  }

  /* The round buttons (44px) clear the header picture by 10px: aligned to
     the photo's foot they touched it (founder, 2026-11-19). */
  .profile:has(.profile-banner) .profile-head-end {
    margin-bottom: -10px;
  }

  .profile-edit-hero .photo-edit {
    margin: -28px 0 0 0;
  }

  .photo-pick-hit,
  .profile-edit-page .profile-photo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 28px;
  }

  .profile-edit-hero .photo-pick-hit .profile-photo,
  .profile-face .av-box {
    box-shadow: 0 0 0 3px var(--bg);
  }

  .header-pick-hit .photo-pick-ui {
    width: 38px;
    height: 38px;
  }

  .header-clear {
    top: 8px;
    inset-inline-end: 8px;
    width: 36px;
    height: 36px;
  }

  .profile-banner-edit .field-wait {
    left: 50%;
    inset-inline-end: auto;
    bottom: 8px;
    transform: translateX(-50%);
  }

  .status-bubble {
    max-width: min(200px, calc(100vw - 96px));
  }
}

.profile-head-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-drop { position: relative; }

.icon-more {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--fg);
}

@media (hover: hover) and (pointer: fine) {
  .icon-more:hover { background: var(--hover); }
}

.icon-more .icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.menu-item.is-danger {
  color: #ff3b30;
}

.menu-item.is-disabled,
.menu-item:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* #53.4 No-post / no-plan-post: Scheduled menu looks inactive */
body.no-plan-post .user-menu a.menu-item[href="/_/scheduled"] {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

span.menu-item {
  cursor: default;
}

.admin-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 248px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 6px;
  box-shadow: none;
  z-index: var(--z-popup);
}

.admin-menu[hidden] { display: none; }

.admin-lock {
  display: grid;
  gap: 16px;
  padding: 8px;
  min-width: 240px;
}

.admin-lock[hidden] { display: none; }

.admin-lock select,
.admin-lock textarea,
.admin-lock input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}

.admin-pass {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  box-shadow: none;
  z-index: var(--z-popup);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-pass[hidden] { display: none; }

.admin-pass .btn { width: 100%; }

/* A hidden button stays hidden whatever its display. */
.btn[hidden] {
  display: none;
}

body.has-admin-sheet,
body.has-menu-sheet {
  overflow: hidden;
}

.menu-sheet-back,
.admin-sheet-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 0;
}

.menu-sheet-back[hidden],
.admin-sheet-back[hidden] {
  display: none;
}

.admin-menu.is-sheet,
.post-menu.is-sheet,
.user-menu.is-sheet,
.uni-more-menu.is-sheet,
.phone-cc-pop.is-sheet {
  position: relative;
  inset-inline-start: auto;
  inset-inline-end: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: min(80dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 24px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px 16px 0 0;
  padding: 8px 8px max(12px, env(safe-area-inset-bottom, 0px));
  box-shadow: none;
}

.phone-cc-pop.is-sheet {
  height: min(80dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 24px));
  overflow: hidden;
  display: flex;
}

.phone-cc-pop.is-sheet .phone-cc-search {
  flex: none;
}

.phone-cc-pop.is-sheet .phone-cc-list {
  flex: 1 1 auto;
  min-height: 0;
}

.admin-menu.is-sheet .menu-item,
.post-menu.is-sheet .menu-item,
.user-menu.is-sheet .menu-item,
.uni-more-menu.is-sheet .menu-item,
.phone-cc-pop.is-sheet .phone-cc-opt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: start;
  min-height: 44px;
  padding: 10px 12px;
}

.admin-reset-copy {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: none;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
  user-select: all;
  z-index: var(--z-popup);
}

.admin-reset-copy[hidden] { display: none; }

.profile-photo.is-empty {
  background: var(--avatar-empty);
}

.profile-photo {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 108px;
  border: 2px solid transparent;
  background: var(--card);
  vertical-align: top;
}

.profile-photo.is-live {
  border-color: transparent;
}

.profile-photo.is-fallback {
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  background: var(--avatar-empty);
  color: var(--muted);
  border: 0;
  box-shadow: none;
  background-clip: padding-box;
}

.profile-photo.is-verified-business { border-radius: 18px; }

.profile-edit,
.profile-follow {
  width: auto;
  min-width: 0;
  display: inline-grid;
  place-items: center;
}

/* b6 #11: icon-only actions are perfect circles as tall as the Follow
   button beside them (the shared control height), icon centered. */
.profile-actions > a.profile-edit,
.profile-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  aspect-ratio: 1;
  width: var(--control-h);
  min-width: var(--control-h);
  height: var(--control-h);
  min-height: var(--control-h);
  border-radius: 50%;
  padding: 0;
  font-size: 0;
  line-height: 0;
  text-box: unset;
}

.profile-actions > a.profile-edit:not(.profile-message) .icon {
  width: 21px;
  height: 21px;
  flex: none;
  /* Pencil ink bias in the 24 viewBox. */
  transform: translate(0.5px, -0.75px);
}

.profile-message .icon {
  width: 21px;
  height: 21px;
  flex: none;
  /* Dual-bubble ink sits low-right in the 24 viewBox. */
  transform: translate(-0.5px, -1px);
}

.profile-follow.is-requested {
  background: var(--bg-2);
  color: var(--fg);
  border-color: var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .profile-follow.is-requested:hover {
    background: var(--bg-3);
  }
}
.badge-wrap.badge-private {
  color: var(--muted);
}
.person-request-actions {
  display: inline-flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.profile-follow.is-follow {
  background: var(--btn);
  color: var(--btn-fg);
  border-color: var(--btn-line);
}

@media (hover: hover) and (pointer: fine) {
  .profile-follow.is-follow:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover-line);
    color: var(--btn-hover-fg);
  }
}

.btn.profile-follow:disabled {
  opacity: 0.45;
  cursor: default;
}

.profile-id {
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-id-main { min-width: 0; }

.profile-name {
  margin: 0;
  font-size: var(--text-20);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  line-height: var(--lh-24);
  letter-spacing: 0;
}

.profile-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: var(--lh-24);
  font-weight: 700;
}

.profile.is-unavailable .profile-name {
  font-size: var(--text-31);
  line-height: var(--lh-36);
}

.profile-block-note {
  margin: 6px 0 0;
  color: #c9a3a3;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.profile-handle {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
}

@media (hover: hover) and (pointer: fine) {
  .profile-handle:hover {
    color: var(--fg);
  }
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 7px;
  border: 1px solid rgb(201 163 106 / 34%);
  border-radius: 999px;
  background: rgb(201 163 106 / 10%);
  color: #d7b27a;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.profile-tag .icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.profile-follows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.profile-stat-badge {
  color: var(--accent);
  font-weight: 600;
}
.profile-follow-stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.profile-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
}

.profile-stat-n { color: var(--fg); }

@media (hover: hover) and (pointer: fine) {
  .profile-stat:hover { color: var(--fg); }
}

.people-head { margin-bottom: 12px; }

.people-wrap {
  width: 100%;
}

.list-filter {
  margin: 0 0 12px;
}

.settings-block .list-filter {
  margin-top: 10px;
}

.people-head h1 {
  margin: 4px 0 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.follow-lists .people-head h1,
.affiliate-lists .people-head h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pending-lists .pending-section {
  margin-top: 16px;
}

.pending-lists .pending-section-label {
  margin: 0 0 8px;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 600;
  color: var(--fg);
}

.pending-lists .pending-section-label .profile-tab-n {
  font-weight: 400;
  color: var(--muted);
}

.follow-tabs + .people-wrap {
  margin-top: 12px;
}

.people,
.notices { width: 100%; }

.people::before,
.notices::before,
.timeline::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-inline: calc(-1 * var(--stage-pad-x));
}

.profile-tabs + .people::before,
.profile-tabs + .timeline::before,
.composer + .timeline::before,
.thread-chain + .timeline::before {
  margin-top: -1px;
}

.feed > .profile-tabs {
  margin-top: 0;
}

.people:has(> .timeline-empty)::before,
.notices:has(> .timeline-empty)::before,
.timeline:has(> .timeline-empty)::before {
  display: none;
}

.notice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  padding: 14px 0;
}

.notice + .notice {
  border-top: 1px solid var(--line);
}

.notice-face {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
}

.notice-face .post-avatar::after {
  content: none;
  display: none;
}

.notice-face .post-avatar,
.notice > .post-avatar {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
}

.notice .avatar,
.notice .avatar.is-photo {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  flex: none;
  font-size: 12px;
}

.notice img.avatar {
  display: block;
  object-fit: cover;
}

.notice .avatar.is-verified-business {
  border-radius: 8px;
}

.notice[data-href] {
  cursor: pointer;
  margin-inline: calc(-1 * var(--stage-pad-x));
  padding-inline: var(--stage-pad-x);
}

.notice.is-unread {
  background: var(--card);
}

.notice.is-unread .notice-kind {
  background: var(--card);
  border-color: var(--card);
}

@media (hover: hover) and (pointer: fine) {
  .notice[data-href]:hover {
    background: var(--hover);
  }
}

@media (hover: hover) and (pointer: fine) {
  .notice[data-href]:hover .notice-kind {
    background: var(--bg);
    border-color: var(--bg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .notice.is-unread[data-href]:hover .notice-kind {
    background: var(--card);
    border-color: var(--card);
  }
}

.notice-main { min-width: 0; }

.notice-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.notice .post-name {
  max-width: none;
  height: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 21px;
}

.notice .post-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice .post-handle {
  flex: 0 1 auto;
  min-width: 0;
}

.notice .post-time {
  flex: 0 0 auto;
  margin: 0;
}

.badge-affiliate {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: var(--card-2);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  flex: 0 0 16px;
  cursor: pointer;
}

.user.is-viewing {
  box-shadow: none;
}

.badge-affiliate img,
.badge-affiliate span {
  width: 16px;
  height: 16px;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.role-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}

.role-row > .post-avatar {
  align-self: center;
}

/* Invitations: an invitation's row has its event (title over when) and
   its answer; a guest's row in the guests sheet its answer and Remove. On
   a phone the event takes a line of its own under the organizer. */
.invite-row,
.invite-guests .role-row {
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
}
.invite-row.is-past {
  opacity: 0.6;
}
.invite-open {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 260px;
  color: inherit;
  text-decoration: none;
}
.invite-open .invite-title {
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.invite-open .invite-when {
  color: var(--muted);
  font-size: var(--text-13);
}
.invite-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.invite-guests-head {
  margin: 16px 0 4px;
}
@media (max-width: 640px) {
  .invite-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .invite-row .invite-open {
    grid-column: 2 / -1;
    grid-row: 2;
    max-width: none;
  }
}

.role-row + .role-row {
  border-top: 1px solid var(--line);
}

.role-row[hidden],
.person[hidden],
.invite-card[hidden] {
  display: none !important;
}

.role-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.role-state {
  color: var(--muted);
  font-size: var(--text-13);
}

.role-invite {
  display: flex;
  align-items: end;
  gap: 10px;
  width: 100%;
}

.role-invite .field {
  flex: 1 1 auto;
  min-width: 0;
}

.role-invite .btn {
  flex: 0 0 auto;
}

.org-id {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.org-glance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.org-glance li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notice .badge-wrap,
.notice .badge-wrap svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.notice .post-handle {
  max-width: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
  color: var(--muted);
  text-box: unset;
  line-height: var(--lh-20);
  padding: 2px 0;
}

/* Who keeps their name whole (up to most of the line): a long sentence of
   the site's (a job that ran out) squeezed "OperantX" to "Op…" (founder,
   2026-11-28). What they did gives way. */
.notice-line > .post-name {
  flex: 0 0 auto;
  max-width: 60%;
}

.notice-action {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: 21px;
}

.notice-line .post-time {
  margin-inline-start: auto;
  padding-inline-start: 8px;
}

/* "and 2 others" stays whole, on the name's line: the name gives way
   before it does. */
.notice-others {
  flex: none;
  white-space: nowrap;
  font-size: var(--text-15);
  line-height: 21px;
}

/* On a phone a grouped notice has no room for who, how many, what and
   when in one line: who and when keep the first, what they did has the
   second to itself. */
@media (max-width: 720px) {
  .notice-line:has(.notice-others) {
    display: grid;
    grid-template-columns: minmax(0, auto) auto minmax(0, 1fr) auto;
    column-gap: 6px;
    row-gap: 0;
  }

  .notice-line:has(.notice-others) .post-time {
    grid-column: 4;
    grid-row: 1;
  }

  .notice-line:has(.notice-others) .notice-action {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.notice-kind {
  position: absolute;
  inset-inline-end: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.notice-kind .icon {
  width: 17px;
  height: 17px;
  display: block;
  flex: none;
  overflow: visible;
  transform: none;
}

.notice-kind.is-like { color: #ff375f; }

.notice-kind.is-like .icon { fill: currentColor; }

.notice-kind.is-follow,
.notice-kind.is-mention { color: #1d9bf0; }

.notice-kind.is-credit { color: var(--muted); }

.notice-kind.is-report { color: #f4212e; }

.notice-kind.is-plan { color: #c9a227; }

.notice-kind.is-staff { color: #1d9bf0; }

.notice-kind.is-supported { color: #ff375f; }

.notice-kind.is-block { color: #f4212e; }

.notice-kind.is-mute { color: var(--muted); }

.notice-kind.is-lock { color: #f4212e; }

.notice-kind.is-birthday { color: #ff375f; }

.notice-preview {
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The clamp is on the text, not the bordered box: overflow there is cut
   at the padding edge, so a hidden line would peek into the padding. */
.notice-preview-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  /* The clip is the line boxes: tall enough that a descender (g, y, p)
     of the last line is not cut. */
  line-height: 19px;
}

.notice-preview.is-moderated {
  color: #9a8b6d;
  font-style: italic;
}

.notice-preview.is-deleted {
  font-style: italic;
}

.person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  align-items: center;
}

/* The face lines up with the name and the handle beside it; a line under
   them (a bio, a distance) runs on below. */
.person > .post-avatar {
  align-self: start;
}

/* A list of people: rows touch, each ruled under it, the last too; the
   list's own line (`.people::before`) is above the first. So the hover
   fills a row from rule to rule, and no row is left open at the bottom. */
.people > .person {
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
  transition: background 120ms var(--ease);
}

.person[data-href] {
  cursor: pointer;
  margin-inline: calc(-1 * var(--stage-pad-x));
  padding-inline: var(--stage-pad-x);
}

@media (hover: hover) and (pointer: fine) {
  .person[data-href]:hover {
    background: var(--hover);
  }
}

.person-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.person-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Why Who to follow suggests the account. */
.person-why {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
}

.person-blurb {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
}

.role-id .post-name,
.person .user-name,
.role-id .user-name,
.dash-id .user-name {
  display: flex;
  width: auto;
  max-width: 100%;
}

.role-id .post-name,
.dash-id .post-name,
.online-name {
  line-height: 19px;
}

.role-id .post-name > span:first-child,
.dash-id .post-name > span:first-child {
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-overflow: unset;
  line-height: 19px;
}

/* In a row of accounts with buttons beside it (Accounts you can open,
   the roles' lists) a name and a handle are one line each, cut with "…"
   where they do not fit (founder, 2026-11-19: "Operant X" broke over two
   lines beside Switch and Leave). The badge stays beside the name. */
.role-row .role-id {
  min-width: 0;
}

.role-row .role-id :is(.user-name, .post-name) {
  min-width: 0;
  flex-wrap: nowrap;
}

.role-row .role-id :is(.user-name-text, .post-name > span:first-child, .user-handle, .post-handle) {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

.role-row .role-id :is(.user-name, .post-name) > :not(:first-child) {
  flex: none;
}

.role-id .post-handle,
.dash-id .post-handle {
  line-height: var(--lh-16);
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
}

/* #44.11: never create a scrollbar gutter on person-card name/@handle (affiliates incl.) */
.person .user-meta,
.person .user-name,
.person .user-handle,
.affiliate-lists .user-meta,
.affiliate-lists .user-name,
.affiliate-lists .user-name-text,
.affiliate-lists .user-handle {
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.person-follow {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
}

.profile-bio-wrap { margin: 0 0 10px; }

.profile-bio {
  margin: 0;
  line-height: var(--lh-20);
  font-size: var(--text-15);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.profile-bio .mention,
.profile-bio .text-link,
.post-text .mention,
.post-text .text-link,
.quote-text .mention,
.quote-text .text-link {
  color: var(--link);
}

@media (hover: hover) and (pointer: fine) {
  .profile-bio .mention:hover,
  .profile-bio .text-link:hover,
  .post-text .mention:hover,
  .post-text .text-link:hover,
  .quote-text .mention:hover,
  .quote-text .text-link:hover {
    color: var(--link-hover);
  }
}

.profile-bio.is-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  max-height: calc(var(--lh-20) * 5);
}

.bio-more {
  display: block;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  color: var(--link);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

.bio-more[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .bio-more:hover { color: var(--link-hover); }
}

.profile-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

/* Each item is as tall as its icon, so the icon sits on whole pixels, and
   the text is trimmed to its capital height, as everywhere else, so the
   icon centres on the capitals and digits ("Budapest", "Oct 2025"). A long
   place or address wraps inside its item instead of running out of a
   fixed box. */
.profile-meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.profile-meta .profile-birthday-today {
  color: var(--sponsor-gold, #c9a227);
  font-weight: 650;
}

.profile-meta .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  overflow: visible;
}

.profile-meta span,
.profile-meta a {
  min-width: 0;
  line-height: 1;
  overflow-wrap: anywhere;
  text-box: trim-both cap alphabetic;
}

.profile-meta a { color: var(--link); }
@media (hover: hover) and (pointer: fine) {
  .profile-meta a:hover { color: var(--link-hover); }
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.profile-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .profile-social:hover {
    color: var(--fg);
  }
}

.profile-social .icon,
.profile-social .icon-social {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: block;
  overflow: visible;
  transform-origin: center;
}

.profile-social-x .icon,
.profile-social-x .icon-social {
  transform: scale(0.86);
}

.profile-edit-page .stack { margin-top: 0; }

.profile-form { margin-top: 0; }

.photo-edit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.photo-pick-hit {
  position: relative;
  display: block;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  cursor: pointer;
  border-radius: 50%;
}

.photo-pick-hit .profile-photo.is-verified-business,
.photo-pick-hit:has(.is-verified-business) {
  border-radius: 18px;
}

.photo-pick-ui {
  position: absolute;
  inset-inline-end: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--bg);
}

.photo-pick-ui .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .photo-pick-hit:hover .photo-pick-ui {
    background: #e6e6e6;
  }
}

.photo-pick-hit.is-off {
  cursor: default;
  pointer-events: none;
}

.photo-pick-hit.is-off .photo-pick-ui {
  opacity: 0.35;
}

.photo-pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-edit-actions .btn { flex: 1; }
.profile-edit-page .profile-photo {
  width: 108px;
  height: 108px;
  flex-basis: 108px;
  font-size: 38px;
}

@media (max-width: 800px) {
  .profile-face,
  .profile-photo,
  .profile-photo.is-fallback,
  .photo-pick-hit,
  .profile-edit-page .profile-photo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 28px;
  }
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--control-h);
  padding: 0 16px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-15);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), opacity 160ms var(--ease);
}

/* A button that holds only an icon, or a single sign, is a circle as
   tall as the others, what it holds in its very middle. */
.btn:has(> .icon:only-child),
.btn.btn-round {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--control-h);
  min-width: var(--control-h);
  padding: 0;
  border-radius: 50%;
  text-box: normal;
}

.btn:has(> .icon:only-child) > .icon,
.btn.btn-round > .icon {
  width: 21px;
  height: 21px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover-line);
    color: var(--btn-hover-fg);
  }
}

/* A button that asks twice (`dom::armed`) says its question in place of
   its label. A long one wraps inside the button: still a pill on one line,
   a rounded box on two. */
.btn[data-armed] {
  height: auto;
  min-height: var(--control-h);
  flex-shrink: 1;
  max-width: 100%;
  padding: 6px 16px;
  border-radius: calc(var(--control-h) / 2);
  line-height: var(--lh-20);
  text-box: normal;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
}

.btn:disabled { opacity: 0.45; cursor: wait; }
#push-enable:disabled { cursor: default; }
#close-account-btn:disabled { cursor: not-allowed; }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.btn-danger,
.btn.is-danger {
  color: #ff8a80;
  border-color: #8b1a1a;
  background: #1a0808;
}

@media (hover: hover) and (pointer: fine) {
  .btn-danger:hover,
  .btn.is-danger:hover {
    color: #fff;
    border-color: #ff3b30;
    background: #3a1010;
  }
}

.placeholder {
  min-height: 280px;
  border: 1px dashed var(--hairline);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.composer.is-off {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.feature-toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.settings-block > .feature-toggles,
.settings-block > .field-note,
.settings-block > .choice-list,
.settings-block > .muted-actions,
.settings-block > .field-note + .muted-actions,
.settings-block > .field-note + .btn,
.admin-sheet > .feature-toggles,
.admin-sheet > .field-note,
.admin-sheet > .choice-list,
.admin-sheet > .muted-actions,
.admin-sheet > .field-note + .muted-actions,
.admin-sheet > .field-note + .btn,
.rate-sheet > .feature-toggles,
.rate-sheet > .field-note,
.rate-sheet > .choice-list,
.rate-sheet > .muted-actions,
.rate-sheet > .field-note + .muted-actions,
.rate-sheet > .field-note + .btn {
  margin-top: 0;
}

.settings-sub + .field-note {
  margin-top: 0;
}

.install-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.install-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.install-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.install-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #000;
}

.install-hero-copy {
  min-width: 0;
}

.install-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install-title {
  margin: 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 600;
}

.install-lede {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.install-about {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 40em;
}

.install-about p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.install-how-title {
  margin: 8px 0 0;
  color: var(--fg);
  font-size: var(--text-17);
  line-height: var(--lh-20);
  font-weight: 600;
}

.install-tor {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-tor-addr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow-wrap: anywhere;
}

/* Safari draws a button as a box that clips its text: the box is a line
   taller than the letters need, so the last line's descenders (g, q, y)
   and the underline under them stay whole. A copy button drawn as a
   button (`.btn`) or as a menu row (`.menu-item`) keeps that look. */
button.copy-value:not(.btn):not(.menu-item) {
  display: inline-block;
  margin: 0;
  padding: 0 0 4px;
  overflow: visible;
  line-height: 1.45;
  border: 0;
  background: none;
  color: var(--link, var(--accent));
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  overflow-wrap: anywhere;
  max-width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  button.copy-value:not(.btn):not(.menu-item):hover {
    color: var(--link-hover, var(--fg));
  }
}

.tor-facts {
  margin: 12px 0 16px;
}

.mail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* A state's word is its theme colour taken a step toward the text, so it
   reads at 4.5:1 or more on its tinted pill in both themes (the fixed
   colours were 2.5-4.1 in light and 3 in dark). */
.mail-badge.is-ok {
  background: color-mix(in srgb, var(--status-ok) 20%, transparent);
  color: color-mix(in srgb, var(--status-ok) 70%, var(--fg));
}

.mail-badge.is-warn {
  background: color-mix(in srgb, var(--status-warn) 20%, transparent);
  color: color-mix(in srgb, var(--status-warn) 70%, var(--fg));
}

.mail-badge.is-bad {
  background: color-mix(in srgb, var(--status-bad) 16%, transparent);
  color: color-mix(in srgb, var(--status-bad) 70%, var(--fg));
}

.mail-badge.is-pending {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}

.mail-alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #c62828 35%, var(--line));
  background: color-mix(in srgb, #c62828 10%, transparent);
  color: var(--fg);
}

.access-lanes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-lanes .mail-lane-top {
  flex-wrap: nowrap;
}

.access-lanes .mail-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .access-lanes {
    grid-template-columns: 1fr;
  }
}

.mail-page,
.access-page,
.settings-sheets,
.features-page,
.rates-page,
.mcp-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-sheets > .form-error,
.features-page > .form-error {
  margin: 0;
}

.admin-sheet > .field,
.rate-sheet > .field,
.admin-sheet > .stack,
.rate-sheet > .stack {
  margin-top: 0;
}

.invite-mint.admin-sheet,
.invite-keys.admin-sheet {
  gap: 16px;
}

.danger-panel.admin-sheet > .admin-sheet-head h2,
.danger-panel.rate-sheet > .rate-sheet-head h2 {
  color: #ff6e66;
}

.access-page .choice-list {
  margin: 0;
}

.access-page .choice {
  align-items: flex-start;
  padding: 12px;
}

.access-page .choice .toggle-copy {
  padding-top: 1px;
}

.access-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.access-add .field {
  margin: 0;
}

.access-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-13);
  line-height: var(--lh-16);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .access-chip:hover {
    background: var(--hover);
  }
}

.access-chip-x {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  text-transform: lowercase;
}

@media (hover: hover) and (pointer: fine) {
  .access-chip:hover .access-chip-x {
    color: var(--fg);
  }
}

.access-page textarea {
  resize: vertical;
  min-height: 84px;
}

.mail-lanes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.mail-lane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.mail-lane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mail-lane-title {
  font-size: var(--text-13);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mail-hero .mail-lane-note {
  display: none;
}

.mail-lane-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.mail-dns-actions {
  margin: 0;
}

.mail-dns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.mail-dns-summary {
  margin: 0;
  font-size: 15px;
}

.mail-dns-summary.is-ok {
  color: var(--status-ok, #7dcea0);
}

.mail-dns-summary.is-bad {
  color: var(--status-warn, #e2b340);
}

.mail-dns-summary.is-pending {
  color: var(--muted);
}

.mail-dns-action {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: var(--text-12);
  font-weight: 600;
}

.mail-dns-action.is-ok {
  background: color-mix(in srgb, var(--status-ok) 22%, transparent);
  color: color-mix(in srgb, var(--status-ok) 70%, var(--fg));
}

.mail-dns-action.is-missing,
.mail-dns-action.is-mismatch {
  background: color-mix(in srgb, var(--status-warn) 22%, transparent);
  color: color-mix(in srgb, var(--status-warn) 70%, var(--fg));
}

.mail-dns-action.is-conflict {
  background: color-mix(in srgb, var(--status-bad) 18%, transparent);
  color: color-mix(in srgb, var(--status-bad) 70%, var(--fg));
}

.mail-dns-action.is-error {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}

.mail-dns-value {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: start;
  overflow-wrap: anywhere;
  font: inherit;
}

/* A DNS record is a facts table with its note under it. */
.mail-dns-record {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mail-dns-record .field-note {
  margin: 0;
}

.mail-send .field {
  margin-top: 0;
}

#mail-dns-block > .muted-actions,
#mail-send-form > .muted-actions {
  margin-top: 4px;
}

.mail-send .choice-list {
  margin: 0;
}

.mail-sent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mail-sent-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}

/* #40: the card a mail log entry links to. */
.mail-sent-card.is-target {
  border-color: var(--link);
  box-shadow: 0 0 0 1px var(--link);
  scroll-margin: 24px 0 96px;
}

.mail-sent-pinned {
  margin-bottom: 10px;
}

.staff-log.is-linked {
  cursor: pointer;
}

.mail-sent-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  background: none;
  color: inherit;
  text-align: start;
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .mail-sent-open:hover {
    background: var(--hover);
  }
}

.mail-sent-top {
  display: flex;
  /* The time goes under the name where the two do not fit a line (it
     was cut by the card's edge on a narrow phone). */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}

.mail-sent-time {
  color: var(--muted);
  font-size: var(--text-13);
  flex: 0 0 auto;
}

.mail-sent-subject {
  margin: 0;
  font-size: var(--text-16, var(--text-15));
  line-height: var(--lh-22, var(--lh-20));
  font-weight: 650;
}

/* "Sent by" line: small avatar, name and handle of the staff sender. */
.mail-sent-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  min-width: 0;
  font-size: var(--text-13);
  line-height: 21px;
  color: var(--muted);
}

.mail-sent-face {
  display: inline-flex;
  flex: 0 0 20px;
}

.mail-sent-face .avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-width: 0;
  font-size: 11px;
  line-height: 1;
}

.mail-sent-by-name {
  color: var(--fg);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mail-sent-by-handle {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mail-sent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 1.35;
}

.mail-sent-from,
.mail-sent-to {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mail-sent-progress {
  margin: 0;
}

.mail-sent-body {
  margin: 0;
  padding: 0 16px 16px;
  border-top: 1px solid var(--hairline);
}

.mail-sent-copy {
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: var(--text-15);
  line-height: 1.45;
  color: var(--fg);
}

.mail-sent-card.is-open .mail-sent-open {
  padding-bottom: 10px;
}

.mail-sent-more {
  min-height: 1px;
}

.install-how {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-how > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

.install-how-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
}

.install-how-icon .icon {
  width: 23px;
  height: 23px;
}

.install-how-copy {
  min-width: 0;
  padding-top: 2px;
}

.install-how h3 {
  margin: 0 0 4px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 600;
}

.install-how p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.metrics-chapter > .settings-sub {
  margin: 0 0 14px;
}

.metrics-kicker {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 400;
}

.metrics-chapter > .metrics-kicker:first-of-type {
  margin-top: 0;
}


.metrics-glance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metrics-glance .metric {
  display: grid;
  grid-template-rows: 16px 20px;
  align-content: start;
  gap: 6px;
  padding: 12px 10px 10px;
  min-height: 0;
}

.metrics-glance .metric-k {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 17px;
}

.metrics-glance .metric-n {
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metrics-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metrics-chapter .metrics-grid + .metrics-kicker {
  margin-top: 20px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.metric-k {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.metric-n {
  font-size: var(--text-20);
  line-height: var(--lh-24);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.metric-bar {
  display: block;
  height: 4px;
  margin: 4px 0 2px;
  border-radius: 99px;
  background: var(--hairline);
  overflow: hidden;
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #536471;
}

.metric.is-ok .metric-bar i { background: #3d9a5f; }
.metric.is-warn .metric-bar i { background: #c9a227; }
.metric.is-bad .metric-bar i { background: #ff3b30; }

.metric.is-ok .metric-n { color: #7dcea0; }
.metric.is-warn .metric-n { color: #e2b340; }
.metric.is-bad .metric-n { color: #ff8a80; }

.node-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.node-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.node-card.is-self {
  border-color: #3d9a5f;
}

.node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.node-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-title {
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-role {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
}

.node-status {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 17px;
}

.node-card.is-ok .node-status { color: #7dcea0; }
.node-card.is-warn .node-status { color: #e2b340; }
.node-card.is-bad .node-status { color: #ff8a80; }

.node-vitals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.node-vitals li {
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.node-vitals span {
  color: var(--muted);
  margin-inline-end: 4px;
}

.node-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.node-facts div {
  min-width: 0;
}

.node-facts dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
}

.node-facts dd {
  margin: 0;
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-detail {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.dash-users {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-users li:not(.timeline-empty) {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  margin-inline: -20px;
}

.dash-users li[hidden] {
  display: none !important;
}

.dash-users li + li:not(.timeline-empty) {
  border-top: 1px solid var(--line);
}

.dash-users li:not(.feed-more)[data-href] {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .dash-users li:not(.feed-more):not(.timeline-empty):hover {
    background: var(--hover);
  }
}

.dash-who { min-width: 0; }

.dash-id {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.dash-users .post-name { max-width: none; }

/* #53.10 Blocked IPs: IP + adjacent meta aligned */
/* #54.6 Soft-nav: beat .dash-users li grid after sameKind panel swap.
   Lock flex on the list under .blocked-ips so soft == hard reload. */
.blocked-ips .blocked-ip-list.dash-users > li,
.blocked-ip-list.dash-users > .blocked-ip-row,
li.blocked-ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  grid-template-columns: none;
}

.blocked-ip-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  flex: 1 1 auto;
}

.blocked-ip-meta {
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.dash-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: end;
}

.dash-role {
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 700;
}

.dash-seen {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

/* "Last seen" and its time, on one line. */
.dash-seen-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.dash-seen-label,
.dash-seen-line .post-time {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.dash-meta .post-time {
  padding: 0;
  margin: 0;
}

/* A label over a time (a context note, a limited account): the label
   lines up with the top of the avatar and the time with its foot, so the
   two never crowd each other and match the name and handle beside them. */
.dash-meta:has(> .report-tag + .post-time) {
  align-self: stretch;
  justify-content: space-between;
  gap: 6px;
}

.block-top-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}

.block-top .search-box input,
.block-top .search-box input::placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The placeholder is not a row: across the list. */
.dash-users > .timeline-empty {
  grid-column: 1 / -1;
}

/* b2 #50/#51: Limited Accounts and Context. The usual account row on top,
   then the facts and the actions across the full width. */
.context-notes .block-top-lead {
  margin: 0 0 12px;
}

.dash-users > li.limited-row {
  row-gap: 12px;
  padding-block: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .dash-users > li.limited-row:hover {
    background: transparent;
  }
}

/* b6 #4: each limited account is its own card, like a session in the
   session list. */
.dash-users.limited-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The case card's shell (sheets.css .report-card). */
.dash-users.limited-list > li.limited-row,
.dash-users.limited-list > li.limited-row:hover {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-inline: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 2.5%, transparent);
}

.limited-row .deletion-card-top .dash-meta {
  margin-inline-start: auto;
}

.limited-row .dash-meta .report-tag {
  white-space: nowrap;
}

.limited-row .limited-groups,
.limited-row .limited-actions {
  grid-column: 1 / -1;
}

.limited-row .limited-facts dd {
  overflow-wrap: anywhere;
}

/* Admin > Money > Sponsored posts: a limited-account card with the post
   under the author, its delivery bar, and the facts. The card opens the
   post's stats. */
.sponsored-row {
  cursor: pointer;
}

.sponsored-row .dash-meta {
  margin-inline-start: auto;
  gap: 4px;
}

.sponsored-row .dash-meta .report-tag {
  white-space: nowrap;
}

.sponsored-post {
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .sponsored-post:hover {
    text-decoration: underline;
  }
}

.sponsored-post .muted {
  color: var(--muted);
}

/* On the card's tint the track takes the hairline. */
.sponsored-row .reach-bar-track {
  display: block;
  background: var(--hairline-strong);
}

.sponsored-row .sponsored-facts dd {
  overflow-wrap: anywhere;
}

/* b3 #21: two labeled groups, Duration and Decision. */
.limited-groups {
  display: grid;
  gap: 12px;
}

.limited-group-head {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-12, 12px);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


@media (max-width: 520px) {
  .limited-row .limited-facts {
    grid-template-columns: 1fr;
  }
}

.block-top-lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.dash-count {
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-16);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dash-unit {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

/* The staff audit and a person's own log are one board: a sheet with its
   title, the search with its advanced fields, then the rows. No rule under
   the search; the space does that. */
.audit-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
}

.audit-panel > .staff-logs {
  margin-top: 0;
  border-top: 0;
}

/* The rows run from edge to edge of the sheet, whose padding is 20px at
   every width (the page's own gutter is narrower on a phone). */
.audit-panel > .staff-logs > .staff-log {
  margin-inline: -20px;
  padding-inline: 20px;
}

.audit-search {
  flex: 1;
  min-width: 0;
  margin: 0;
  /* The site's one control height, as the search boxes. */
  height: var(--control-h);
  min-height: var(--control-h);
  max-height: var(--control-h);
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 999px;
}

.audit-help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 120ms, background 120ms;
}

@media (hover: hover) and (pointer: fine) {
  .audit-help-btn:hover {
    color: var(--fg);
    background: var(--hover);
  }
}

/* The help mark mirrors the search mark on the left: the same size and the
   same 14px from the edge. The button keeps a 32px target and reaches into
   the box's padding by the difference. */
.audit-help-btn {
  margin-inline-end: -5px;
}

.audit-help-btn .icon {
  width: 19px;
  height: 19px;
}

/* The time range under the search: a quick range, or Custom range with its
   two ends (each a date and a clock, one under the other so the month
   names fit). */
.audit-range {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

/* A field like every other: its label over a control as wide as the
   search above it. */
.audit-range-pick {
  display: grid;
  gap: 6px;
  margin: 0;
}

.audit-range-pick > select {
  width: 100%;
}

.audit-range-custom {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
}

.audit-range-custom[hidden] {
  display: none;
}

.audit-range-end {
  margin: 0;
}

.audit-range-custom .form-error {
  margin: 0;
}

/* A range on: the menu reads as a set filter. */
.audit-range:not([data-range=""]) #audit-within {
  border-color: color-mix(in srgb, var(--link) 55%, var(--input-line, var(--line)));
}

.audit-advanced {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .audit-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.danger-panel + .settings-block {
  margin-top: 36px;
  padding-top: 8px;
}

.danger-panel,
body .danger-panel.admin-sheet,
body .danger-panel.rate-sheet {
  border: 1px solid color-mix(in srgb, #ff3b30 55%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 59, 48, 0.16), transparent 42%),
    var(--card);
  color: var(--fg);
  box-shadow: none;
}

.panel.settings > .danger-panel:first-child {
  margin-top: 0;
}

.danger-panel.is-on,
body .danger-panel.admin-sheet.is-on,
body .danger-panel.rate-sheet.is-on {
  border-color: #ff3b30;
  background:
    linear-gradient(180deg, rgba(255, 59, 48, 0.28), transparent 55%),
    var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.35);
}

.danger-panel > .settings-sub {
  margin: 0 0 8px;
  color: #ff6e66;
}

.danger-panel .admin-sheet-head h2,
.danger-panel .rate-sheet-head h2 {
  color: #ff6e66;
}

.danger-panel .admin-sheet-head p,
.danger-panel .rate-sheet-head p {
  color: color-mix(in srgb, #ff8a80 70%, var(--muted));
}

.danger-panel > .field-note {
  margin: 0 0 10px;
  color: #ffc2bc;
}

.danger-panel .admin-sheet-head p,
.danger-panel .rate-sheet-head p {
  color: #ffc2bc;
}

.danger-panel .feature-toggles {
  margin: 0;
}

.danger-panel .toggle {
  margin: 0;
  padding: 4px 0 8px;
  min-height: 32px;
  border: 0;
}

.danger-panel .toggle-ctrl input:checked + .toggle-ui {
  background: #ff3b30;
}

.danger-panel .toggle-ctrl input:checked + .toggle-ui::after {
  background: #fff;
}

.danger-panel .toggle-ctrl input:focus-visible + .toggle-ui {
  outline-color: #ff8a80;
}

.danger-panel .form-error {
  margin: 8px 0 6px;
}

.lockdown-sheet.danger-panel,
body .lockdown-sheet.danger-panel.admin-sheet,
body .lockdown-sheet.danger-panel.rate-sheet {
  position: relative;
  border: 1px solid #6a2420;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 77, 69, 0.18) 0%, rgba(255, 77, 69, 0) 55%),
    linear-gradient(165deg, #1a0c0c 0%, #120909 55%, #0e0808 100%);
  color: #ffe8e5;
  box-shadow: none;
  overflow: hidden;
}

.lockdown-sheet.danger-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff4d45 35%, #ff8f88 50%, #ff4d45 65%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

.lockdown-sheet.danger-panel.is-on,
body .lockdown-sheet.danger-panel.admin-sheet.is-on,
body .lockdown-sheet.danger-panel.rate-sheet.is-on {
  border-color: #ff4d45;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 77, 69, 0.28) 0%, rgba(255, 77, 69, 0) 58%),
    linear-gradient(165deg, #2a1010 0%, #1a0b0b 55%, #140808 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 69, 0.28);
}

.lockdown-sheet .admin-sheet-head h2,
.lockdown-sheet .rate-sheet-head h2 {
  color: #fff5f3;
  letter-spacing: -0.01em;
}

.lockdown-sheet .admin-sheet-head p,
.lockdown-sheet .rate-sheet-head p {
  color: #f0c4bf;
}

.lockdown-sheet .toggle {
  padding: 12px 0 6px;
}

.lockdown-sheet .toggle-ctrl input:checked + .toggle-ui {
  background: #ff4d45;
  box-shadow: 0 0 0 3px rgba(255, 77, 69, 0.2);
}

.lockdown-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 77, 69, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 77, 69, 0.18) 0%, rgba(255, 77, 69, 0.06) 100%),
    #1c0c0c;
  color: #ffc9c4;
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
}

.lockdown-live::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ff4d45;
  box-shadow: 0 0 0 3px rgba(255, 77, 69, 0.22);
}

.lockdown-live[hidden] {
  display: none;
}

html.theme-light .lockdown-sheet.danger-panel,
html.theme-light .lockdown-sheet.danger-panel.admin-sheet,
html.theme-light .lockdown-sheet.danger-panel.rate-sheet,
html[data-theme="light"] .lockdown-sheet.danger-panel {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(229, 57, 53, 0.12) 0%, rgba(229, 57, 53, 0) 55%),
    linear-gradient(165deg, #fff8f7 0%, #ffefed 100%);
  border-color: #f0a8a2;
  color: #4a1512;
  box-shadow: none;
}

html.theme-light .lockdown-sheet.danger-panel.is-on,
html.theme-light .lockdown-sheet.danger-panel.admin-sheet.is-on,
html.theme-light .lockdown-sheet.danger-panel.rate-sheet.is-on,
html[data-theme="light"] .lockdown-sheet.danger-panel.is-on {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(229, 57, 53, 0.18) 0%, rgba(229, 57, 53, 0) 58%),
    linear-gradient(165deg, #ffe9e7 0%, #ffd9d5 100%);
  border-color: #e53935;
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.18);
}

html.theme-light .lockdown-sheet .admin-sheet-head h2,
html.theme-light .lockdown-sheet .rate-sheet-head h2,
html[data-theme="light"] .lockdown-sheet .admin-sheet-head h2 {
  color: #7a1c18;
}

html.theme-light .lockdown-sheet .admin-sheet-head p,
html.theme-light .lockdown-sheet .rate-sheet-head p,
html[data-theme="light"] .lockdown-sheet .admin-sheet-head p {
  color: #7a3a36;
}

html.theme-light .lockdown-live,
html[data-theme="light"] .lockdown-live {
  background: linear-gradient(135deg, #ffe4e1 0%, #ffd6d1 100%);
  border-color: #e57373;
  color: #8b1e1a;
}

.danger-panel + .settings-sub {
  margin-top: 28px;
}

.staff-logs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  overflow-anchor: none;
  width: 100%;
}

.staff-logs:has(> .timeline-empty:not([hidden])) {
  border-top: 0;
}

.staff-log {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-inline: calc(-1 * var(--stage-pad-x, 16px));
  padding-inline: var(--stage-pad-x, 16px);
  border-bottom: 1px solid var(--line);
  width: auto;
  box-sizing: border-box;
}

.staff-log-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 10px;
  align-items: start;
  padding: 12px 0;
}

.staff-log[data-href] {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .staff-log:hover {
    background: var(--hover);
  }
}

.staff-log .post-avatar {
  margin-top: 1px;
}

.staff-log .post-avatar .av,
.staff-log .post-avatar span.av {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 12px;
  border-radius: 8px;
}

.staff-log .post-avatar img.av {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.staff-log-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.staff-log-time {
  font-size: 13px;
  color: var(--muted);
  margin-inline-start: auto;
  white-space: nowrap;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.staff-log-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.staff-log-body {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.staff-log-target {
  font-weight: 600;
  color: var(--fg);
}

.staff-log-meta {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 17px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.staff-log-more {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.staff-log-more .icon {
  width: 17px;
  height: 17px;
}

.staff-log.is-open .staff-log-more {
  color: var(--fg);
  background: var(--hover);
}

.staff-log.is-open .staff-log-more .icon {
  transform: rotate(180deg);
}

.staff-log-drawer {
  display: grid;
  grid-template-columns: minmax(96px, 148px) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 12px 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.staff-log-drawer[hidden] {
  display: none;
}

.staff-log-drawer div {
  display: contents;
}

.staff-log-drawer dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
}

.staff-log-drawer dd {
  margin: 0;
  font-size: 14px;
  line-height: 19px;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .staff-log-drawer {
    grid-template-columns: 1fr;
    margin-inline-start: 0;
  }

  .staff-log-drawer div {
    display: block;
  }

  .staff-log-drawer dd {
    margin-top: 1px;
  }
}

.staff-logs .post-name { max-width: none; }

.dash-lock {
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.placeholder p { margin: 0; }

.switch, .form-error, .form-ok {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.switch { color: var(--muted); text-align: center; }
.switch a { color: var(--link); }
@media (hover: hover) and (pointer: fine) {
  .switch a:hover { color: var(--link-hover); }
}

.form-error { color: #ff3b30; }
.gate .form-error { text-align: center; }
.form-ok { color: var(--fg); }
.form-error[hidden], .form-ok[hidden] { display: none; }

.site-toasts {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

/* On a phone the tab bar is at the bottom: a toast sits over the page,
   above the bar, not over its labels. */
@media (max-width: 800px) {
  body.has-tabbar .site-toasts {
    bottom: calc(var(--tabbar-pad, 0px) + 12px);
  }
}

.site-toast {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--elevated-2);
  border: 1px solid var(--hairline);
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  box-shadow: none;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.site-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.site-toast.has-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline-end: 8px;
}

.site-toast-action {
  margin-inline-start: auto;
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  box-sizing: border-box;
}

body.auth.has-lockdown {
  padding-top: calc(32px + var(--lock-bar));
}

.gate {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 360px;
  max-width: 100%;
  min-height: 0;
}

.gate > .gate-card,
.gate > .pace-scene {
  flex: 1 1 auto;
  justify-content: safe center;
}

@media (max-width: 800px) {
  body.auth {
    padding: 20px 16px 16px;
    align-items: stretch;
  }

  body.auth.has-lockdown {
    padding-top: calc(20px + var(--lock-bar));
  }

  .gate {
    width: 100%;
    min-height: 0;
  }
}

.gate-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.gate-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 20px;
}

.gate-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.gate-early {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.04em;
}

.gate-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 18px;
  object-fit: cover;
}

.gate-name {
  margin: 0;
  font-size: var(--text-31);
  line-height: var(--lh-36);
  font-weight: 400;
}

.gate-card h1 {
  margin: 0 0 12px;
  font-size: var(--text-31);
  line-height: var(--lh-36);
}

.gate .btn,
.fail-card .btn {
  background: var(--btn);
  color: var(--btn-fg);
  border-color: var(--btn-line);
}

@media (hover: hover) and (pointer: fine) {
  .gate .btn:hover,
  .fail-card .btn:hover {
    background: var(--btn-hover);
    color: var(--btn-hover-fg);
    border-color: var(--btn-hover-line);
  }
}

.fail-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0.06em;
}

.fail-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.fail-copy:last-of-type {
  margin-bottom: 20px;
}

.fail-card .pace-panel {
  margin: 4px 0 20px;
}

.fail-card .btn {
  text-align: center;
}

body.auth.is-pace:not(.has-wash) {
  background:
    radial-gradient(ellipse 58% 46% at 50% 18%, rgba(255, 255, 255, 0.022) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 50% 92%, rgba(255, 255, 255, 0.014) 0%, transparent 70%),
    #000;
}

.pace-gate {
  width: min(400px, 100%);
}

.pace-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pace-mark {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 0 28px;
}

.pace-mark::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 72%);
  filter: blur(10px);
  animation: pace-glow 4.8s ease-in-out infinite;
}

.pace-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.pace-orbit.o1 {
  inset: 0;
  border-top-color: rgba(255, 255, 255, 0.72);
  border-inline-end-color: rgba(255, 255, 255, 0.12);
  animation: pace-spin 14s linear infinite;
}

.pace-orbit.o2 {
  inset: 18px;
  border-top-color: rgba(255, 255, 255, 0.42);
  border-inline-start-color: rgba(255, 255, 255, 0.1);
  animation: pace-spin 20s linear infinite reverse;
}

.pace-orbit.o3 {
  inset: 36px;
  border-top-color: rgba(255, 255, 255, 0.28);
  animation: pace-spin 9s linear infinite;
}

.pace-core {
  position: absolute;
  inset: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.62) 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pace-bar {
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.pace-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.pace-scene h1 {
  margin: 0 0 28px;
  font-size: 38px;
  line-height: 43px;
  letter-spacing: -0.03em;
}

.pace-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.pace-fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px 18px;
  background: rgba(10, 10, 10, 0.92);
  text-align: start;
}

.pace-k {
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pace-v {
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.pace-s {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.pace-retry {
  width: 100%;
  text-align: center;
}

@keyframes pace-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pace-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pace-orbit,
  .pace-mark::before,
  .access-ring {
    animation: none;
  }
}

body.auth.is-access:not(.has-wash) {
  background:
    radial-gradient(ellipse 58% 46% at 50% 18%, rgba(255, 80, 80, 0.06) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 50% 92%, rgba(255, 255, 255, 0.014) 0%, transparent 70%),
    #000;
}

.access-gate {
  width: min(400px, 100%);
}

.access-mark {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 0 28px;
}

.access-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.access-ring.r1 {
  inset: 0;
  border-color: rgba(255, 255, 255, 0.16);
}

.access-ring.r2 {
  inset: 18px;
  border-color: rgba(255, 255, 255, 0.1);
}

.access-core {
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.62) 70%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.access-slash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: none;
}

.access-scene .access-reason {
  margin: 0 0 24px;
  max-width: 22em;
}

.feed { width: 100%; max-width: 600px; }


/* #80: staff viewing a locked account — show chrome, disable interact */
/* The staff "More" menu lives in .profile-actions too; its links (Account
   overview, View audit) stay usable on a locked account. */
.profile.is-locked-account .profile-actions .btn:not(.profile-edit):not(.menu-item),
.profile.is-locked-account .profile-actions a:not(.profile-edit):not(.menu-item),
.profile.is-locked-account .profile-follow,
.profile.is-locked-account .post-actions button,
.profile.is-locked-account .post-actions a,
.profile.is-locked-account .post-poll button,
.profile.is-locked-account .compose,
.profile.is-locked-account [data-follow],
.profile.is-locked-account .profile-message,
.profile.is-locked-account .profile-follow.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: default;
}
.profile-lock-name {
  flex: 0 0 auto;
  margin-inline-start: 10px;
  color: var(--muted);
  font-size: var(--text-15);
  font-weight: 500;
  line-height: var(--lh-20);
  letter-spacing: 0;
  white-space: nowrap;
}
.profile-name-text + .name-marks + .profile-lock-name,
.profile-name-text + .profile-lock-name {
  margin-inline-start: 10px;
}
.aside-suggest .person[data-href] {
  margin-inline: 0;
  padding-inline: 8px;
}

.people.aside-suggest::before {
  display: none;
}

.people.aside-suggest {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* In the sidebar's box the rows are tighter, and the box's edge closes
   the list, so the last row has no rule of its own. */
.aside-suggest > .person {
  padding-block: 10px;
}

.aside-suggest > .person:last-child {
  border-bottom: 0;
}

.aside-suggest .person,
.aside-suggest .person-main,
.aside-suggest .person-top,
.aside-suggest .user-meta {
  max-width: 100%;
  min-width: 0;
}

/* The column is narrow beside the Follow button. A long name or handle
   stays on one line and ends in an ellipsis. */
.aside-suggest .user-name-text,
.aside-suggest .user-handle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 21px;
}


/* Organization category choices (org overview and the staff dialog). */
.org-category-choice .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--muted);
}

.org-category-choice:has(input:checked) .icon {
  color: var(--fg);
}

/* The category for someone who may not change it: what it is, as text. */
.org-category-now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.org-category-now .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

/* b3 #34: limited visibility, in the warning hue. */
.profile-tag.is-limited {
  color: #ff9f0a;
}

/* b5 #2 / b6 #2: the affiliate note sits right after the affiliate badge
   in the name line, as a small chip in quiet grays (not the name's color). */
.affiliate-note {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-inline-start: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
  color: #c4c4c4;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
  .affiliate-note:hover {
    background: rgb(255 255 255 / 15%);
  }
}

html.theme-light .affiliate-note,
html[data-theme="light"] .affiliate-note {
  background: rgb(0 0 0 / 6%);
  color: #4a4a4a;
}

/* Business section on a categorized organization's profile. */
.profile-business {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.profile-business-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--fg);
}

.profile-business-icon .icon {
  width: 19px;
  height: 19px;
}

.profile-business-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-business-title {
  color: var(--fg);
  font-size: var(--text-15);
  font-weight: 700;
  line-height: var(--lh-20);
}

.profile-business-docs {
  gap: 6px;
  flex: 0 0 auto;
}

.profile-business-docs .icon {
  width: 17px;
  height: 17px;
}

/* The address under the stats line, like the Business section: the street
   over the town, region, and country, the distance and whether only the
   owner sees it under them, and Maps on the right. The lines and Maps
   open Google Maps in a new window. */
.profile-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

/* The card is the Maps link. */
@media (hover: hover) and (pointer: fine) {
  .profile-address:hover {
    border-color: var(--hairline-strong);
    background: var(--hover);
  }
}

.profile-address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--fg);
}

.profile-address-icon .icon {
  width: 19px;
  height: 19px;
}

.profile-address-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1px;
}

.profile-address-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.profile-address-text span:first-child {
  font-size: var(--text-15);
  font-weight: 700;
  line-height: var(--lh-20);
}

.profile-address-text span + span {
  color: var(--muted);
  font-size: 15px;
  line-height: 19px;
}

.profile-address-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* A plain line under the address, flush with its text. */
.profile-address-away {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 19px;
}

/* Only the owner sees a hidden address: an eye with the reason as its hint. */
.profile-address-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted);
  cursor: help;
}

.profile-address-note .icon {
  width: 19px;
  height: 19px;
}

/* The address sheet of the profile form: postal code and town on a line. */
.addr-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 2.4fr);
  gap: 12px;
}

.addr-town {
  position: relative;
  min-width: 0;
}

.addr-town .town-pick-panel {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  z-index: calc(var(--z-popup) + 20);
  max-height: 320px;
  overflow-y: auto;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

.town-pick-panel .search-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  color: var(--fg);
  text-align: start;
}

.town-pick-panel .search-hit.is-on,
.town-pick-panel .search-hit:hover {
  background: var(--hover);
}

@media (max-width: 520px) {
  .addr-row {
    grid-template-columns: 1fr;
  }

.addr-region {
  position: relative;
}

.addr-region .town-pick-panel {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 5;
  max-height: 240px;
  overflow: auto;
}

}

/* /{handle}/documents */
.org-docs-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.org-docs-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg);
}

.org-docs-kind .icon {
  width: 16px;
  height: 16px;
}

/* b3 #19: the stage pads its children; these bleed out to the column edges
   like timeline rows (margin-inline: -stage-pad), so the rules and row
   hovers span the full width, and pad their content back in. */
.org-docs-upload {
  max-width: none;
  padding: 12px var(--stage-pad-x);
  margin-inline: calc(-1 * var(--stage-pad-x));
  border-bottom: 1px solid var(--line);
}

.org-docs-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.org-docs-drop:hover,
.org-docs-upload.is-over .org-docs-drop {
  background: var(--hover);
  border-color: var(--muted);
}

.org-docs-upload.is-busy .org-docs-drop {
  opacity: 0.6;
  cursor: progress;
}

.org-docs-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
}

.org-docs-drop-icon .icon {
  width: 21px;
  height: 21px;
}

.org-docs-drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.org-docs-drop-title {
  color: var(--fg);
  font-weight: 700;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.org-docs-drop-note,
.org-docs-progress {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 17px;
}

.org-docs-progress {
  margin: 8px 0 0;
}

.org-docs-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.org-docs-note {
  padding: 12px var(--stage-pad-x);
  margin: 0 calc(-1 * var(--stage-pad-x));
  border-bottom: 1px solid var(--line);
}

.org-docs-list {
  list-style: none;
  margin: 0 calc(-1 * var(--stage-pad-x));
  padding: 0;
}

/* A row is one control: the whole width opens the file (preview for images,
   download otherwise), like list rows elsewhere. Delete stays its own button. */
.org-doc {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 160ms var(--ease);
}

.org-doc:hover,
.org-doc:focus-within {
  background: var(--hover);
}

.org-doc-open {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px var(--stage-pad-x);
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.org-doc-open:hover,
.org-doc-open:focus {
  text-decoration: none;
}

.org-doc-open:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}

.org-doc-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
}

.org-doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.org-doc-thumb .icon {
  width: 23px;
  height: 23px;
}

.org-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.org-doc-name {
  color: var(--fg);
  font-size: var(--text-15);
  font-weight: 600;
  line-height: var(--lh-20);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-doc-sub {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 17px;
}

.org-doc-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0 calc(var(--stage-pad-x) - 8px) 0 0;
}

.org-doc-act {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .org-doc-act:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .org-doc-act.is-danger:hover {
    color: #ff3b30;
  }
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .org-doc-act.is-danger:hover {
    color: #c62828;
  }
}

.org-doc-act .icon {
  width: 19px;
  height: 19px;
}

.org-docs-more {
  display: flex;
  margin: 16px auto;
  width: max-content;
}

/* Join date opens "About this account". Looks like the other meta items. */
.profile-meta .profile-joined {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .profile-meta .profile-joined:hover span { text-decoration: underline; }
}
.profile-meta .profile-joined:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The dialog body is a card: `.ox-ask p { margin: 0 }` used to win over the
   who-line's margin, so the list sat right under the handle, and a dialog
   with no buttons ended flush with the last row. */
.about-account {
  padding: 14px 16px 16px;
  margin: 0 0 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
/* b3 #8: the shared person card heads the popup, ruled off from the facts */
.about-account > .person {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.about-account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* The login streak in About: two bars on one scale (the current run and
   the best), then the last 30 days as squares, a day with a session lit. */
.about-account-list .about-streak {
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
}

.about-account-list li[data-about-row="streak"] {
  align-items: flex-start;
}

.about-account-list .about-streak-bars {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 10px;
}

.about-streak-name {
  color: var(--muted);
  font-size: var(--text-13);
}

.about-streak-track {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  overflow: hidden;
}

.about-streak-bar {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 45%, transparent);
}

.about-streak-bar.is-current {
  background: var(--link);
}

.about-streak-bars strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* A year of days, a week a column, the oldest at the top left. */
.about-account-list .about-streak-days {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  grid-template-columns: repeat(53, minmax(0, 1fr));
  gap: 1px;
}

.about-streak-days > span {
  aspect-ratio: 1;
  border-radius: 1px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.about-streak-days > span.is-on {
  background: var(--link);
}

.about-streak-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-12, 12px);
}

.about-account-guest {
  margin: 0;
}

/* The icon sits at the top of the row's first line, however many lines
   the label and the value take (founder, 2026-11-14). */
.about-account-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-account-list li[hidden] { display: none; }
.about-account-list li > .icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: var(--fg);
}
/* The glyphs drawn at one size (founder, 2026-11-17): the calendar and
   the ticket fill their box edge to edge, the pin and the flame do not, so
   the full ones sit a little smaller in the same column. */
.about-account-list li:is([data-about-row="joined"], [data-about-row="jobs_taken"], [data-about-row="jobs_posted"]) > .icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-inline: 1.5px;
  margin-top: 1.5px;
}
.about-account-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.about-account-label {
  color: var(--muted);
  font-size: 15px;
}
/* How a fact is known: an info mark by the label; its tooltip shows on
   a tap, and under a pointer. The mark is set on the text's baseline, a
   little under it, so its middle is the capitals' middle in any font (a
   line box's middle is not: Apple's face sits high in its line). */
.about-account-list .about-info {
  position: relative;
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  margin-inline-start: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font: inherit;
  vertical-align: -0.2em;
  cursor: pointer;
}
/* A finger's target around the small mark. */
.about-account-list .about-info::after {
  content: "";
  position: absolute;
  inset: -10px;
}
.about-account-list .about-info .icon {
  width: 100%;
  height: 100%;
  flex: none;
  color: inherit;
}
.about-account-list .about-info[aria-expanded="true"] { color: var(--fg); }
/* A tooltip: it floats under the label, over the value, and moves
   nothing in the sheet. */
.about-account-list div:has(> .about-info-note) {
  position: relative;
}
.about-info-note {
  position: absolute;
  inset-inline-start: 0;
  top: 26px;
  z-index: 5;
  width: max-content;
  max-width: min(320px, 64vw);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--elevated);
  color: var(--fg);
  font-size: var(--text-13);
  line-height: 1.35;
}
.about-info-note[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .about-account-label:has(.about-info:hover) + .about-info-note[hidden] { display: block; }
  .about-account-list .about-info:hover { color: var(--fg); }
}
/* A phone: a short sheet (About, an event's details) is as tall as what it
   holds, in the middle, not a full screen with the card at its top. */
@media (max-width: 800px) {
  .ox-ask-back:has(.ox-ask-wide.fit-ask) {
    place-items: center;
    align-items: center;
    /* One row as tall as the screen's room: the sheet's "at most all of
       it" is then a real height, and a long one (a message's info with
       many recipients) scrolls inside itself. With a row as tall as the
       sheet, the sheet grew past the screen and nothing scrolled
       (founder, 2026-11-21). */
    grid-template-rows: minmax(0, 1fr);
  }
  .ox-ask-wide.fit-ask,
  body.has-tabbar .ox-ask-wide.fit-ask {
    height: auto;
    min-height: 0;
    max-height: 100%;
    align-self: center;
  }
}
.about-account-list strong,
.about-account-list a {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.about-account-list a { color: var(--link); }
@media (hover: hover) and (pointer: fine) {
  /* The card heads the facts: it is not a row to pick, so no hover. */
  .about-account > .person[data-href]:hover {
    background: none;
  }
}
/* The handles an account had, as a short timeline under the count: the
   icon lines up with the label, each handle sits over its dates, and the
   current one has the filled dot. Its items are not the rows above. */
.about-account-list li[data-about-row="handles"] {
  align-items: flex-start;
}
.about-account-list li[data-about-row="handles"] > .icon {
  margin-top: 10px;
}
.about-handles {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  border-inline-start: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-account-list .about-handles li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-size: 15px;
  line-height: 19px;
}
.about-handles li::before {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: -23px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  background: var(--card);
}
.about-handles li:first-child::before {
  border-color: var(--fg);
  background: var(--fg);
}
.about-handle {
  color: var(--fg);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.about-handle-days {
  color: var(--muted);
  font-size: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .about-account-list a:hover { color: var(--link-hover); }
}
/* Linked domains: each proven name on its own line, as plain text (a
   domain proves ownership; it links nowhere). */
.about-domains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-account-list .about-domains li {
  display: block;
  color: var(--fg);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* b3 #23: a limited row has Adjust and Lift limit; share the width. */
.spam-signal-actions {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 8px;
}

.spam-signal-actions .btn {
  width: 100%;
}

/* b5 #15: "Follows you" pill next to the handle, like X. */
.profile-handle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.profile-follows-you {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  color: var(--muted);
  font-size: var(--text-12, 12px);
  line-height: 17px;
  font-weight: 500;
}

/* The handle and the pill are centred on their capitals, not on line
   boxes of two font sizes; the padding keeps both about as tall as before. */
@supports (text-box: trim-both cap alphabetic) {
  .profile-handle-row .profile-handle {
    padding: 5px 0;
    text-box: trim-both cap alphabetic;
  }

  .profile-follows-you {
    padding: 4px 6px;
    text-box: trim-both cap alphabetic;
  }
}

.profile-actions .icon-more {
  flex: none;
  width: var(--control-h);
  height: var(--control-h);
  border-radius: 50%;
}

/* Subscriptions: Subscribe at the price, Subscribed for a running one,
   and Review new price while a raised price waits for an answer. */
.profile-member {
  width: auto;
  min-width: 0;
  display: inline-grid;
  place-items: center;
}

.profile-member.is-member {
  background: var(--bg-2);
  color: var(--fg);
  border-color: var(--line);
}

/* Subscribed says so in words on a wide screen; on a phone it is a round
   button with the heart (its words in the tooltip and to a screen
   reader), so the row of actions keeps to one line beside the photo. */
.profile-member > .icon {
  display: none;
}

.profile-member.is-member {
  border-radius: 9px;
}

@media (max-width: 800px) {
  .profile-member.is-member:not(.is-asked) {
    width: var(--control-h);
    padding: 0;
    border-radius: 50%;
  }

  .profile-member.is-member:not(.is-asked) > .icon {
    display: block;
    width: 21px;
    height: 21px;
  }

  .profile-member.is-member:not(.is-asked) > .btn-text {
    display: none;
  }

  /* The words of Follow and Subscribe take a little less room. */
  .profile-actions > .btn:not(.profile-edit) {
    padding-inline: 14px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .profile-member.is-member:hover {
    background: var(--bg-3);
  }
}

.profile-member.is-asked {
  border-color: var(--credit-text-hot, var(--fg));
  color: var(--credit-text-hot, var(--fg));
}

.profile-member.is-disabled {
  cursor: default;
}

/* Access: the placeholder takes the row the chips would. */
.access-chips > .timeline-empty {
  --empty-gap: 0;
  --empty-min-h: 88px;
  flex: 1 1 100%;
}
.composer {
  position: relative;
  /* The own avatar sits where a post's author avatar does (10px down), so
     opening an own post keeps it in place. */
  padding: 10px var(--stage-pad-x);
  margin-inline: calc(-1 * var(--stage-pad-x));
  max-width: none;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.compose-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Not the body: with the page and the body both closed, the body becomes
   the box its sticky children stick in, and on a page scrolled down the
   menu let go and slid up by as much while the composer was open
   (founder, 2026-11-13). The page (the viewport) and the stage are
   enough to hold everything still. */
html.compose-lock,
html.compose-lock body.app > .stage,
html.compose-lock .stage {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.compose-lock body {
  overscroll-behavior: none;
}

.compose-back[hidden] { display: none; }

.compose {
  width: 580px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 12px 16px 16px;
  box-shadow: none;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* With the popup head's own class: the shared head (sheets.css, later)
   aligns to the top and set the title above the tools. */
.ox-ask-head.compose-top {
  min-height: 36px;
  margin-bottom: 8px;
  /* The title, Drafts, Scheduled and × share one centre line. */
  align-items: center;
}

.compose-top .ox-ask-x {
  margin-block: 0;
}

.compose-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  margin: 0;
}

.composer > .compose-head {
  position: absolute;
  top: 4px;
  inset-inline-end: var(--stage-pad-x);
  z-index: 3;
}

.composer:has(.compose-head) > .compose-row {
  padding-inline-end: 76px;
}

.compose-opens {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.compose-open {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .compose-open:hover {
    color: var(--fg);
    background: var(--hover);
  }
}

.compose-open .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.compose-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.compose-form textarea,
.composer textarea {
  width: 100%;
  height: calc((var(--lh-24) * 3) + 16px);
  min-height: calc((var(--lh-24) * 3) + 16px);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 8px 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  color: var(--fg);
  user-select: text;
  -webkit-user-select: text;
}

.compose-form textarea:focus,
.composer textarea:focus {
  border: 0;
}

.compose-mention-panel,
.compose-mention-panel.search-panel {
  position: fixed;
  /* #78.15 / #77.9: above compose-back modal; beat .search-panel z-popup */
  z-index: calc(var(--z-modal) + 80) !important;
  max-height: min(240px, 50vh);
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: none;
}
.compose-mention-panel[hidden] { display: none; }
.compose-row { position: relative; }

.compose-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.compose-tools {
  margin-inline-end: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
  position: relative;
  z-index: 6;
}

.compose-photo-btn,
.compose-poll-btn,
.compose-sensitive-btn,
.compose-schedule-btn,
.compose-ai-btn,
.compose-place-btn,
.compose-audience-btn,
.compose-boost-btn,
.compose-more-btn,
.compose-reply-who {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

/* The rarer tools (Sensitive, AI-generated, Add location, Who sees it,
   Boost) are named rows behind More on every width, as on a phone
   (founder, 2026-11-20; ui/compose.rs `bind_more`). */
.compose-tools > :is(.compose-sensitive-btn, .compose-ai-btn, .compose-place-btn, .compose-audience, .compose-boost-btn) {
  display: none;
}

/* More's switches show their state: a switch at the row's end. */
.compose-more-menu .menu-item[role="menuitemcheckbox"]::after {
  content: "";
  flex: none;
  width: 38px;
  height: 22px;
  margin-inline-start: auto;
  border-radius: 999px;
  background: radial-gradient(circle at 11px 50%, #fff 8px, transparent 8.5px), var(--hairline-strong);
  transition: background 160ms ease;
}

.compose-more-menu .menu-item[role="menuitemcheckbox"][aria-checked="true"]::after {
  background: radial-gradient(circle at 27px 50%, #fff 8px, transparent 8.5px), var(--link);
}

/* On a computer More's menu stands by its button, as "who can reply"
   does (ui/menus.rs `place_floating`). */
.compose-more-menu.is-floating {
  position: fixed;
  z-index: calc(var(--z-modal) + 20);
  min-width: 260px;
  max-height: min(360px, 70dvh);
  overflow: auto;
}

.compose-more-menu.is-floating .menu-item {
  gap: 12px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .compose-photo-btn:hover,
  .compose-poll-btn:hover,
  .compose-sensitive-btn:hover,
  .compose-schedule-btn:hover,
  .compose-ai-btn:hover,
  .compose-place-btn:hover,
  .compose-audience-btn:hover,
  .compose-boost-btn:hover,
  .compose-reply-who:hover {
    color: var(--fg);
    background: var(--hover);
  }
}

.compose-photo-btn.is-on,
.compose-poll-btn.is-on,
.compose-sensitive-btn.is-on,
.compose-schedule-btn.is-on,
.compose-ai-btn.is-on,
.compose-place-btn.is-on,
.compose-audience-btn.is-on,
.compose-boost-btn.is-on,
.compose-reply-who:not([data-reply-from="everyone"]) {
  color: var(--fg);
  background: var(--card);
}

.compose-photo-btn .icon,
.compose-poll-btn .icon,
.compose-sensitive-btn .icon,
.compose-schedule-btn .icon,
.compose-ai-btn .icon,
.compose-place-btn .icon,
.compose-audience-btn .icon,
.compose-boost-btn .icon,
.compose-reply-who .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

/* Who-can-reply: force menu + trigger icons to same 20×20 as globe */
.compose-reply-from-menu .menu-item > .icon,
.compose-reply-who .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  overflow: visible;
}

.compose-schedule-btn:disabled,
.compose-ai-btn:disabled,
.compose-place-btn:disabled,
.compose-audience-btn:disabled,
.compose-boost-btn:disabled,
.compose-schedule-btn.is-off,
.compose-ai-btn.is-off,
.compose-place-btn.is-off,
.compose-audience-btn.is-off,
.compose-boost-btn.is-off,
.compose-reply-who:disabled,
.compose-reply-who.is-off,
.compose-reply-from.is-off .compose-reply-who {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* #54.1 No-post: parent .composer.is-off dims once; child tools stay opacity:1
   (avoids .compose-schedule-btn:disabled{opacity:.35} stacking darker than photo/poll). */
.composer.is-off .compose-photo-btn,
.composer.is-off .compose-poll-btn,
.composer.is-off .compose-sensitive-btn,
.composer.is-off .compose-schedule-btn,
.composer.is-off .compose-ai-btn,
.composer.is-off .compose-place-btn,
.composer.is-off .compose-audience-btn,
.composer.is-off .compose-boost-btn,
.composer.is-off .compose-reply-who,
.composer.is-off .compose-open {
  opacity: 1;
  pointer-events: none;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .compose-schedule-btn:disabled:hover,
  .compose-ai-btn:disabled:hover,
  .compose-place-btn:disabled:hover,
  .compose-audience-btn:disabled:hover,
  .compose-boost-btn:disabled:hover,
  .compose-schedule-btn.is-off:hover,
  .compose-ai-btn.is-off:hover,
  .compose-place-btn.is-off:hover,
  .compose-audience-btn.is-off:hover,
  .compose-boost-btn.is-off:hover,
  .composer.is-off .compose-schedule-btn:hover,
  .composer.is-off .compose-ai-btn:hover,
  .composer.is-off .compose-place-btn:hover,
  .composer.is-off .compose-audience-btn:hover,
  .composer.is-off .compose-boost-btn:hover,
  .composer.is-off .compose-photo-btn:hover,
  .composer.is-off .compose-poll-btn:hover,
  .composer.is-off .compose-sensitive-btn:hover,
  .composer.is-off .compose-reply-who:hover,
  .composer.is-off .compose-open:hover {
    color: var(--muted);
    background: transparent;
  }
}

.compose-schedule,
.compose-boost {
  margin: 8px 0 0 52px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--elevated);
  color: var(--fg);
}

.compose-schedule-top,
.compose-boost-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
}

.compose-schedule-close,
.compose-boost-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 21px;
  line-height: 30px;
  cursor: pointer;
}

/* The day and time: the browser's own field, drawn as every one is, the
   panel's whole width (founder, 2026-11-27). */
.compose-schedule-fields {
  width: 100%;
}

.compose-boost-grid .field > span,
.compose-boost-grid .field > label > span {
  font-weight: 650;
}

/* The town's label holds its name and field, not the list under them:
   it lays out as if it were not there. */
.compose-boost-town-label {
  display: contents;
}

/* The composer's panels use the site's input look: the same fill, line,
   and corners as every other field. */
.compose-boost-grid select,
.compose-boost-grid input:not([type="checkbox"]) {
  width: 100%;
  color: var(--fg);
  color-scheme: inherit;
  background-color: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: 10px;
  padding: 0 28px 0 12px;
}

/* A select centers its own text: no block padding, so a tall glyph (g, y,
   j) is never cut by the fixed height. */
.compose-boost-grid select {
  height: var(--control-h);
  line-height: normal;
}

.compose-boost-grid select:focus,
.compose-boost-grid input:not([type="checkbox"]):focus {
  border-color: var(--input-focus);
}

.compose-boost-grid select option {
  background: var(--elevated);
  color: var(--fg);
}

html.theme-light .field select,
html[data-theme="light"] .field select,
html.theme-light .compose-boost-grid select,
html[data-theme="light"] .compose-boost-grid select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%233a3a3c' d='M4.2 6.2 8 10l3.8-3.8'/></svg>");
  color-scheme: light;
}

html.theme-light .compose-boost-grid select option,
html[data-theme="light"] .compose-boost-grid select option {
  background: #fff;
  color: #111113;
}

.compose-schedule-at {
  margin: 8px 0 0;
}

.compose-reply-from {
  position: relative;
  margin: 0;
  z-index: 8;
}

.compose-reply-from-menu {
  inset-inline-start: 0;
  inset-inline-end: auto;
  min-width: max-content;
  width: max-content;
  max-width: min(92vw, 420px);
  bottom: calc(100% + 6px);
  top: auto;
  z-index: calc(var(--z-modal) + 8);
  background: var(--elevated);
  border: 1px solid var(--hairline);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.compose-reply-from-menu.is-floating {
  position: fixed;
  z-index: calc(var(--z-modal) + 20);
  max-height: min(320px, 70dvh);
  overflow: auto;
}

.compose-reply-from-menu .menu-item {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .compose-reply-from-menu.is-floating,
  .post-menu.compose-reply-from-menu.is-floating {
    width: min(92vw, 420px);
    max-width: min(92vw, 420px);
  }

  .compose-reply-from-menu.is-floating .menu-item,
  .post-menu.compose-reply-from-menu.is-floating .menu-item {
    white-space: normal;
    min-height: 44px;
  }
}

.post-reply-from-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.reply-from-sheet .choice-list {
  margin: 0 -8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scheduled-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.muted-word-list {
  margin-top: 16px;
}

.muted-word-card .session-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.muted-word-card .session-copy {
  min-width: 0;
  flex: 1;
}

.muted-word-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.muted-word-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.muted-word-list .btn {
  flex: 0 0 auto;
  margin-inline-start: auto;
}


.scheduled-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.scheduled-when {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.scheduled-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.compose-shot {
  position: relative;
  margin: 8px 0 0 52px;
  width: min(100%, 280px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.compose-shot[hidden],
.compose-schedule[hidden],
.compose-boost[hidden],
.compose-poll[hidden],
.msg-poll-compose[hidden] {
  display: none;
}

.compose-shot :is(img, video) {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.compose-shot video {
  background: #000;
}

.compose-shot :is(img, video)[hidden] {
  display: none;
}

.compose-shot-x {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 0;
  cursor: pointer;
}

.compose-shot-x .icon {
  width: 13px;
  height: 13px;
  display: block;
}

.compose-shot-alt {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 8px;
  margin: 0;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.compose-alt {
  display: block;
  padding: 8px 10px 10px;
  background: var(--card);
}

.compose-alt[hidden] {
  display: none;
}

.compose-alt span {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.compose-alt-text {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
}

.post-alt {
  margin: 6px 0 0;
  font-size: 14px;
}

.post-alt summary {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.post-alt p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.composer.is-reply .compose-shot,
.compose-form .compose-shot {
  margin-inline-start: 52px;
}

.composer .compose-poll,
.compose-form .compose-poll {
  margin: 8px 0 0 52px;
}

.composer.is-reply .compose-poll {
  margin-inline-start: 52px;
}

.compose-count {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-variant-numeric: tabular-nums;
}

.compose-count.is-low { color: var(--fg); }

.compose-submit {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  min-width: 88px;
}

@media (hover: hover) and (pointer: fine) {
  .compose-submit:hover {
    background: #e6e6e6;
    border-color: #e6e6e6;
    color: #000;
  }
}

.compose-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.timeline { width: 100%; }

.feed-more {
  height: 24px;
  list-style: none;
}

/* Turn on system notifications: a slim bar at the top of the home timeline
   and the notifications page, never a dialog over the page. */
.push-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 12px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--card);
}

.push-banner-line {
  flex: 1 1 220px;
  margin: 0;
  color: var(--fg);
}

.push-banner-actions {
  display: flex;
  gap: 8px;
}

/* It stays in sight under the top of the list: under the page's tabs
   where they stay at the top too (their 45 to 49 px, then a gap). */
.live-new {
  position: sticky;
  top: 8px;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 8px auto 12px;
  height: var(--control-h);
  padding: 0 16px;
  box-shadow: none;
  font-weight: 650;
}

@media (hover: hover) and (pointer: fine) {
  .live-new:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    color: var(--btn-hover-fg);
  }
}

.profile-tabs ~ .timeline .live-new {
  top: 57px;
}

/* A phone's stage is the scrollport, below the top bar, with its gutter
   above the page: the button rests against that edge, not the window's
   (it stood a top bar's height too low; founder, 2026-12-01). */
@media (max-width: 800px) {
  body.app > .stage .live-new {
    top: calc(8px - var(--stage-pad-x));
  }

  body.app > .stage .profile-tabs ~ .timeline .live-new {
    top: calc(57px - var(--stage-pad-x));
  }
}

.feed-more[hidden] { display: none; }

/* Every "nothing here yet" on the site: one placeholder, a dashed box
   with a tray above the line. A list whose rows carry their own side
   padding (a sheet, the inbox) sets --list-pad-x, so the box lines up with
   its rows; a tight spot (a menu, a picker, a dialog) sets --empty-gap,
   and the same gap stays under it there (its box has no padding of its
   own to sit on). */
/* As wide as what holds it, in a column that centres its children too
   (Learn's campuses drew it as narrow as its words; founder, 2026-11-19). */
.timeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  justify-self: stretch;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--empty-min-h, 112px);
  margin: var(--empty-gap, 16px) var(--list-pad-x, 0);
  padding: 20px 18px;
  border: 1px dashed var(--hairline);
  border-radius: 16px;
  background: var(--card-2);
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: center;
  text-wrap: balance;
  list-style: none;
}

.timeline-empty::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l2.4-7.2A2.5 2.5 0 0 1 7.8 4h8.4a2.5 2.5 0 0 1 2.4 1.8L21 13'/%3E%3Cpath d='M3 13v4.5A2.5 2.5 0 0 0 5.5 20h13a2.5 2.5 0 0 0 2.5-2.5V13h-5.2l-1.3 2h-5l-1.3-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l2.4-7.2A2.5 2.5 0 0 1 7.8 4h8.4a2.5 2.5 0 0 1 2.4 1.8L21 13'/%3E%3Cpath d='M3 13v4.5A2.5 2.5 0 0 0 5.5 20h13a2.5 2.5 0 0 0 2.5-2.5V13h-5.2l-1.3 2h-5l-1.3-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.timeline-empty[hidden] {
  display: none;
}

/* A next step in the placeholder reads as a link. */
.timeline-empty a:not(.btn) {
  color: var(--link);
}

@media (hover: hover) and (pointer: fine) {
  .timeline-empty a:not(.btn):hover {
    color: var(--link-hover);
  }
}

/* As a list's only row, the list already sits where the sheet puts it. */
:is(ul, ol) > li.timeline-empty {
  margin-block: 0;
}

/* The last thing on a sheet (only hidden things after it, as a list's
   "load more"): the sheet's own padding is the space under it, as under a
   list's last row (no margin on top of it). A tight spot has no padding to
   sit on, so it keeps its gap (--empty-end). */
.timeline-empty:not(:has(~ :not([hidden]))) {
  margin-bottom: var(--empty-end, 0);
}

.post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 10px var(--stage-pad-x) 12px;
  margin-inline: calc(-1 * var(--stage-pad-x));
  border-bottom: 1px solid var(--line);
  -webkit-touch-callout: none;
}

.post-context {
  grid-column: 2;
}

.post-context > :last-child {
  margin-bottom: 0;
}

.post:has(> .post-context) > .post-gutter,
.post:has(> .post-context) > .post-main {
  grid-row: 2;
}

.post.is-pinned {
  background: #16080c;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .post.is-pinned:hover {
    background: #1c0b10;
  }
}

.post.is-profile-pinned {
  background: var(--card-2);
}

@media (hover: hover) and (pointer: fine) {
  .post.is-profile-pinned:hover {
    background: var(--card-2);
  }
}

.post.is-inactive {
  filter: none;
  pointer-events: auto;
}

/* The name's badges keep their colour: one colour wherever they are shown. */
.post.is-inactive .post-gutter,
.post.is-inactive .post-main > :not(.post-byline),
.post.is-inactive .post-byline > :not(.post-drop, .post-name),
.post.is-inactive .post-byline > .post-name > :not(.name-marks) {
  opacity: 0.42;
  filter: grayscale(0.35);
}

.post.is-inactive .post-actions,
.post.is-inactive .post-copy,
.post.is-inactive .post-reply,
.post.is-inactive .post-repost,
.post.is-inactive .post-like,
.post.is-inactive .post-views,
.post.is-inactive .post-bookmark {
  pointer-events: none;
}
.post.is-inactive .post-reply,
.post.is-inactive .post-repost,
.post.is-inactive .post-like,
.post.is-inactive .post-views,
.post.is-inactive .post-bookmark {
  color: var(--muted);
  opacity: 0.35;
}

.post.is-inactive .post-undelete,
.post.is-inactive .post-admin,
.post.is-inactive .post-menu,
.post.is-inactive .post-drop {
  pointer-events: auto;
  opacity: 1;
  filter: none;
}

.post:not(.is-inactive) .post-undelete,
.post-undelete[hidden],
.post-byline .post-admin[hidden] {
  display: none !important;
}

.post.is-inactive .post-menu > .menu-item:not(.post-undelete),
.post.is-inactive .post-menu > .menu-sep {
  display: none;
}

.post-menu.is-sheet.is-post-live .post-undelete,
.post-menu.is-floating.is-post-live .post-undelete {
  display: none;
}

.post-menu.is-sheet.is-post-deleted > .menu-item:not(.post-undelete),
.post-menu.is-sheet.is-post-deleted > .menu-sep,
.post-menu.is-floating.is-post-deleted > .menu-item:not(.post-undelete),
.post-menu.is-floating.is-post-deleted > .menu-sep {
  display: none;
}

.post.is-inactive .post-drop {
  isolation: isolate;
}

.post-pin-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 17px;
}

.post-pin-label .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: block;
}

.post-pin-label span {
  display: block;
  line-height: 17px;
}

.post.is-pinned .post-pin-label {
  color: #f4212e;
}

/* Pinned, Subscribers only and Moderated on one line, split by a dot. */
.post-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6px;
  margin: 0 0 4px;
}

.post-labels > .post-pin-label {
  margin: 0;
}

.post-labels > .post-pin-label + .post-pin-label::before {
  content: "·";
  color: var(--muted);
}

.post[data-href] {
  cursor: pointer;
}

/* A video on the Videos page keeps its background: under a swipe the
   hover would flash in late on each video as it slides past. */
@media (hover: hover) and (pointer: fine) {
  .post:not(.reel-slide):hover {
    background: var(--hover);
  }
}

.post-gutter {
  width: 40px;
  padding-top: var(--post-lift, 0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.post-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
  line-height: 0;
  align-self: start;
}

/* #36: conversation list — vertically center face vs name+preview */
.msg-row > .post-avatar {
  align-self: center;
}

.post-avatar .av-box {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 0;
}

/* The opened post, scrolled to on its page, keeps a little room above. */
.thread-chain > .post {
  scroll-margin-top: 8px;
}

.thread-chain {
  --thread-gap: 10px;
  /* The connector meets each face at the middle of its edge, so it touches
     a round and a square picture alike. */
  --thread-line-gap: 0px;
  --thread-face: 40px;
}

.thread-chain > :not(:last-child) {
  border-bottom: 0;
}

.thread-chain > .post:not(:last-child) {
  padding-bottom: var(--thread-gap);
}

.thread-chain > .post:not(:first-child) {
  padding-top: var(--thread-gap);
}

.thread-chain > :not(:last-child) .post-gutter {
  align-self: stretch;
}

.thread-chain > :not(:last-child) .post-gutter::after {
  content: "";
  position: absolute;
  top: calc(var(--thread-face) + var(--thread-line-gap));
  bottom: calc(var(--thread-gap) * -1);
  left: 50%;
  width: 2px;
  margin-inline-start: -1px;
  background: var(--hairline-strong);
}

/* The reply box draws no line of its own and sits right under the post. */
.thread-chain > .post:has(+ .composer) .post-gutter::after {
  bottom: calc(var(--thread-line-gap) - var(--thread-gap));
}

/* A moderated post's reply box waits hidden; the post ends the chain. */
[data-reply-for][hidden] {
  display: none;
}

.thread-chain > .post:has(+ .composer[hidden]) {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.thread-chain > .post:has(+ .composer[hidden]) .post-gutter::after {
  content: none;
}

.thread-chain > .post:not(:first-child) .post-gutter::before {
  content: "";
  position: absolute;
  top: calc(var(--thread-gap) * -1);
  height: calc(var(--thread-gap) - var(--thread-line-gap) + var(--post-lift, 0px));
  left: 50%;
  width: 2px;
  margin-inline-start: -1px;
  background: var(--hairline-strong);
}

/* A post with a line over it (Pinned, Subscribers only, a repost) has its
   face a row lower: the line into it runs from the post's top edge past
   that row to the face, drawn by the row itself (it knows its height,
   however many lines it wraps to), in the gutter's middle: 20 px into the
   40 px gutter, 8 px of gap before the row. */
.thread-chain > .post:not(:first-child) > .post-context {
  position: relative;
}

.thread-chain > .post:not(:first-child) > .post-context::before {
  content: "";
  position: absolute;
  top: calc(var(--thread-gap) * -1);
  bottom: calc(var(--thread-line-gap) - 8px - var(--post-lift, 0px));
  inset-inline-start: -28px;
  width: 2px;
  margin-inline-start: -1px;
  background: var(--hairline-strong);
}

.thread-chain > .post:not(:first-child):has(> .post-context) > .post-gutter::before {
  content: none;
}

.thread-chain .post:not(:last-child) .post-parent {
  display: none;
}

.thread-chain.has-parent .post-parent {
  display: none;
}

.reply-thread {
  border-bottom: 1px solid var(--line);
  margin-inline: calc(-1 * var(--stage-pad-x));
  padding-inline: var(--stage-pad-x);
}

.reply-thread .post {
  border-bottom: 0;
}

.reply-thread .thread-chain > :last-child {
  padding-bottom: 12px;
}

.thread-chain .composer.is-reply {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.post-main { min-width: 0; }

.post-byline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 20px;
  overflow: visible;
}

.post-handle,
.post-time {
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  flex: 0 0 auto;
  text-box: trim-both cap alphabetic;
}

.post-handle {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
}

.post-time {
  padding: 4px 0;
  margin: -4px 0;
}

.post-drop {
  position: relative;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.post-drop:has(.post-menu:not([hidden])),
.admin-drop:has(.admin-menu:not([hidden])),
.admin-drop:has(.admin-pass:not([hidden])),
.admin-drop:has(.admin-reset-copy:not([hidden])),
.post:has(.post-menu:not([hidden])),
.profile-head:has(.admin-menu:not([hidden])),
.profile-head:has(.admin-pass:not([hidden])),
.profile-head:has(.admin-reset-copy:not([hidden])) {
  position: relative;
  z-index: 8;
}

.post-admin {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .post-admin:hover { color: var(--fg); background: var(--hover); }
  /* A 32 px target for the mouse that takes the old 20 px of the line:
     the negative margins keep the icon where it was. */
  .post-admin {
    width: 32px;
    height: 32px;
    margin: -6px;
  }
}

.post-admin .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

/* A ⋯ that is a filled button (the Bookmarks folder menu) keeps the
   button's own ink: the muted dots vanished on its fill in the light
   theme (founder, 2026-11-17). */
.btn.post-admin,
.btn.post-admin:hover {
  color: var(--btn-fg);
}

.post-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 248px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 6px;
  box-shadow: none;
  z-index: var(--z-popup);
}

.post-menu .menu-item,
.admin-menu .menu-item,
.uni-more-menu .menu-item,
.ctx-menu .menu-item {
  gap: 8px; /* 64.2 */
}

.post-menu .menu-item {
  white-space: normal;
}

.post-menu[hidden] { display: none; }

/* The staff rows of an account the viewer may not act on: all there, all
   off, under a line that says so. The group is no box of its own. */
.menu-locked {
  display: contents;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.menu-locked:disabled .menu-item {
  opacity: 0.45;
  pointer-events: none;
}

.menu-locked-note {
  margin: 4px 10px 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}
.post-menu > .menu-item[hidden] { display: none; }
.post-menu > .menu-sep[hidden] { display: none; }
.post-menu > .menu-sep:has(+ .menu-sep),
.post-menu > .menu-sep:last-child {
  display: none;
}

.post-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  max-width: 72%;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.post-name > span:not(.name-marks):not(.badge-wrap) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.post-byline .post-name,
.quote-byline .post-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
}

.post-byline .post-name > span:not(.name-marks):not(.badge-wrap),
.quote-byline .post-name > span:not(.name-marks):not(.badge-wrap) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-byline .post-handle,
.quote-byline .post-handle {
  flex: 0 1 auto;
  min-width: 0;
  text-box: unset;
  overflow: hidden;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: ellipsis;
  line-height: var(--lh-20);
  padding: 2px 0;
}

.post-byline .post-time,
.quote-byline .post-time {
  margin-inline-start: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* The AI mark goes right with the time, just before it. */
.post-byline .post-ai,
.quote-byline .post-ai {
  margin-inline-start: auto;
}

.post-byline .post-ai + .post-time,
.quote-byline .post-ai + .post-time {
  margin-inline-start: 0;
}

/* The ⋯ button sits by the time (or Edited), the byline's own gap apart:
   its target is unchanged, and the mouse's wider one (6 px each side)
   ends where the time does, so neither takes the other's tap. */
.post-byline .post-drop,
.quote-byline .post-drop {
  flex: 0 0 auto;
  /* The time takes the free room; a second auto margin here would split
     it and leave the time halfway across. */
  margin-inline-start: 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .post-handle:hover,
  .post-time:hover,
  .post-edited:hover { color: var(--fg); }
}

.post-text {
  margin: 2px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.post-text.is-moderated {
  color: #9a8b6d;
  font-style: italic;
}

.post.is-mod-staff {
  background: var(--card);
}

.post.is-mod-staff .post-gutter,
.post.is-mod-staff .post-main > :not(.post-byline),
.post.is-mod-staff .post-byline > :not(.post-drop, .post-name),
.post.is-mod-staff .post-byline > .post-name > :not(.name-marks) {
  opacity: 0.78;
}

.post.is-mod-staff .post-drop {
  isolation: isolate;
}

.post.is-mod-hidden .post-photo,
.post.is-mod-hidden .post-embed,
.post.is-mod-hidden .post-poll,
.post.is-mod-hidden .quote-embed,
.post.is-mod-hidden .post-more,
.post.is-mod-hidden .post-sensitive {
  display: none !important;
}

.post-text.is-deleted {
  color: var(--muted);
  font-style: italic;
}

.post-text.is-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  max-height: calc(var(--lh-20) * 5);
}

/* Translate (src/translate.rs): a quiet link under the text; the
   translation takes the text's place, with a muted line saying from what. */
/* Where a post was made, when its author added it: a quiet line under the
   text, the pin and the town, on a map (founder, 2026-11-19). */
.post-place {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-decoration: none;
}
.post-place .icon {
  width: 17px;
  height: 17px;
  flex: none;
}
.post-place > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) {
  .post-place:hover {
    color: var(--fg);
    text-decoration: underline;
  }
}

.post-translate-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: start;
  align-items: center;
  gap: 4px 10px;
  margin: 6px 0 0;
}

.post-translate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin: 0 -6px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--text-13);
  line-height: var(--lh-16);
  cursor: pointer;
}

/* Centred on the icon by its capitals, as the action counts are. */
.post-translate-label {
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.post-translate .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.post-translate[aria-busy="true"] {
  opacity: 0.55;
  cursor: progress;
}

.post-translate[aria-busy="true"] .icon {
  animation: post-translate-spin 1s linear infinite;
}

@keyframes post-translate-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .post-translate[aria-busy="true"] .icon {
    animation: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .post-translate:hover {
    background: var(--hover);
    color: var(--link-hover);
  }
}

.post-translate-from {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.post-translate-from[hidden],
.post-translated[hidden],
.post-reveal > .post-text[hidden] {
  display: none;
}

/* A long post's "show more" in a list is a link to the post
   (.post-more-link); a short one's opens the text in place. */
.post-more-link {
  width: fit-content;
  text-decoration: none;
}

.post-more,
.post-more-link {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  color: var(--link);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .post-more:hover,
  .post-more-link:hover { color: var(--link-hover); }
}

.post-more[hidden] { display: none; }

.post-parent {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

/* "Replying to" is a line over the byline, so the face sits beside the
   name, as it does under a repost line, in the timeline and in every embed
   (a report, an appeal). A thread hides the line, and so drops the lift. */
.post:has(> .post-main > .post-parent) {
  --post-lift: calc(var(--lh-16) + 4px);
}

.thread-chain .post:not(:last-child),
.thread-chain.has-parent .post {
  --post-lift: 0px;
}

.post-parent a { color: var(--link); }
@media (hover: hover) and (pointer: fine) {
  .post-parent a:hover { color: var(--link-hover); }
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

/* On a touch screen a post's actions take a finger's height: a reach
   past the drawn circle (30px) to 44px, which the row's gap leaves free,
   so a tap beside the icon still lands on it. */
@media (pointer: coarse) {
  .post-actions :is(.post-reply, .post-repost, .post-like, .post-views, .post-copy, .post-bookmark, .post-drop > button) {
    position: relative;
  }

  .post-actions :is(.post-reply, .post-repost, .post-like, .post-views, .post-copy, .post-bookmark, .post-drop > button)::after {
    content: "";
    position: absolute;
    inset: -12px -6px;
  }
}

/* Four equal places, each button at the start of its own: a count that
   comes, goes or grows never moves the buttons beside it. */
.post-actions-left {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 300px;
}

/* The bookmark's count keeps room for two digits, so Copy beside it
   stays put. */
.post-actions-right .post-bookmark-n {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

/* The tip right beside the bookmark, Copy a step after the bookmark's
   count (which keeps room for two digits, so Copy does not move; founder,
   2026-11-16). */
.post-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}

.post-actions-right > .post-copy {
  margin-inline-start: 10px;
}

.post-actions-left > .post-drop {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0;
  line-height: 0;
}

.post-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
}

.post-reply .icon,
.post-repost .icon,
.post-like .icon,
.post-views .icon,
.post-copy .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: block;
  border-radius: 999px;
  padding: 6px;
  margin: -6px;
  box-sizing: content-box;
}

@media (hover: hover) and (pointer: fine) {
  .post-reply:hover { color: var(--link); }
}

@media (hover: hover) and (pointer: fine) {
  .post-reply:hover .icon {
    background: color-mix(in srgb, var(--link) 14%, transparent);
  }
}

/* #55.2 Inactive/off: same muted+opacity for reply/like/repost/bookmark/views */
.post-actions .post-reply.is-off,
.post-actions .post-repost.is-off,
.post-actions .post-like.is-off,
.post-actions .post-views.is-off,
.post-actions .post-copy.is-off,
.post-actions .post-bookmark.is-off,
.post-actions .post-reply:disabled,
.post-actions .post-repost:disabled,
.post-actions .post-like:disabled,
.post-actions .post-views:disabled,
.post-actions .post-copy:disabled,
.post-actions .post-bookmark:disabled {
  color: var(--muted);
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .post-reply.is-off:hover,
  .post-repost.is-off:hover,
  .post-like.is-off:hover {
    color: var(--muted);
  }
}

@media (hover: hover) and (pointer: fine) {
  .post-reply.is-off:hover .icon,
  .post-repost.is-off:hover .icon,
  .post-like.is-off:hover .icon,
  .post-views.is-off:hover .icon,
  .post-copy.is-off:hover .icon {
    background: none;
  }
}

.post-repost {
  --repost: #00ba7c;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
}

.post-repost .icon {
  overflow: visible;
  translate: 0 -0.5px;
}

@media (hover: hover) and (pointer: fine) {
  .post-repost:hover { color: var(--repost); }
}

@media (hover: hover) and (pointer: fine) {
  .post-repost:hover .icon {
    background: color-mix(in srgb, var(--repost) 16%, transparent);
  }
}

.post-repost.is-on { color: var(--repost); }

/* Inactive/off/disabled: muted like reply/like/views — never --repost green */
.post.is-inactive .post-repost,
.post.is-inactive .post-repost.is-on,
.post.is-inactive .post-repost:hover,
.post-repost.is-off,
.post-repost:disabled,
.post-repost.is-off:hover,
.post-repost:disabled:hover {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .post.is-inactive .post-repost:hover .icon,
  .post-repost.is-off:hover .icon,
  .post-repost:disabled:hover .icon {
    background: none;
  }
}

.post-repost-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.post-repost-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.post-repost-label .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.post-repost-who { font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .post-repost-who:hover { color: var(--fg); }
}

.quote-embed {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  min-width: 0;
}

.quote-embed[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .quote-embed:hover { background: var(--hover); }
}

.quote-gutter {
  display: flex;
  justify-content: center;
  padding-top: 1px;
}

.quote-main {
  min-width: 0;
}

.quote-embed.is-inactive {
  opacity: 0.42;
  filter: grayscale(0.35);
}

.post.is-inactive .quote-embed.is-inactive {
  opacity: 1;
  filter: none;
}

.post.is-inactive .quote-embed {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.quote-embed:not(:has(.quote-gutter)) {
  grid-template-columns: minmax(0, 1fr);
}

.quote-embed.is-compose {
  cursor: default;
  margin: 0 0 8px 52px;
}

@media (hover: hover) and (pointer: fine) {
  .quote-embed.is-compose:hover { background: transparent; }
}

.quote-byline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.quote-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 15px;
}

.quote-byline .post-name { max-width: none; }

.quote-text {
  margin: 4px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.quote-text.is-moderated {
  color: #9a8b6d;
  font-style: italic;
}

.quote-text.is-deleted {
  color: var(--muted);
  font-style: italic;
}

.notice-kind.is-repost { color: #00ba7c; }

.notice-kind.is-quote { color: #1d9bf0; }

.post-reply-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.composer.is-reply {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.composer.is-reply #reply {
  scroll-margin-top: 24px;
  scroll-margin-bottom: 96px;
}

.post-like {
  --like: #ff375f;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  overflow: visible;
  line-height: 0;
}

.post-like .icon {
  overflow: visible;
  transform-origin: 50% 55%;
  /* The heart is drawn from the sprite (`<use>`) and takes its fill from
     here. */
  transition: fill 160ms var(--ease), stroke 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .post-like:hover { color: var(--like); }
}

@media (hover: hover) and (pointer: fine) {
  .post-like:hover .icon {
    background: color-mix(in srgb, var(--like) 16%, transparent);
  }
}

.post-like.is-on {
  color: var(--like);
}

.post-like.is-on .icon {
  fill: currentColor;
  stroke: currentColor;
}

.post-like.is-pop .icon {
  animation: like-pop 460ms cubic-bezier(0.18, 1.4, 0.32, 1) both;
}

.post-like.is-pop::before,
.post-like.is-pop::after {
  content: "";
  position: absolute;
  inset-inline-start: 9px;
  top: 50%;
  pointer-events: none;
}

.post-like.is-pop::after {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1.5px solid var(--like);
  animation: like-ring 420ms ease-out both;
}

.post-like.is-pop::before {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--like);
  box-shadow: none;
  animation: like-sparks 500ms ease-out both;
}

@keyframes like-pop {
  0% { transform: scale(0.55); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes like-ring {
  0% { transform: scale(0.35); opacity: 0.85; }
  100% { transform: scale(2.15); opacity: 0; }
}

@keyframes like-sparks {
  0% { transform: scale(0.15); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .post-like.is-pop .icon,
  .post-like.is-pop::before,
  .post-like.is-pop::after { animation: none; }
}

.post-actions-right > .post-bookmark,
.post-actions-right > .post-tip {
  margin-inline-start: 0;
}

/* Tip the author, from the post (ui/tip): drawn as Bookmark, gold on hover. */
.post-tip {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.post-tip .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: block;
  border-radius: 999px;
  padding: 6px;
  margin: -6px;
  box-sizing: content-box;
}

@media (hover: hover) and (pointer: fine) {
  .post-tip:hover {
    color: var(--credit-text);
  }
}

.post-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.post-bookmark .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: block;
  border-radius: 999px;
  padding: 6px;
  margin: -6px;
  box-sizing: content-box;
}

@media (hover: hover) and (pointer: fine) {
  .post-bookmark:hover { color: var(--link); }
}
@media (hover: hover) and (pointer: fine) {
  .post-bookmark:hover .icon {
    background: color-mix(in srgb, var(--link) 14%, transparent);
  }
}
.post-bookmark.is-on {
  color: var(--link);
}
.post-bookmark.is-on .icon {
  fill: currentColor;
}
.post.is-inactive .post-bookmark {
  pointer-events: none;
  color: var(--muted);
}
.post.is-inactive .post-like.is-on,
.post.is-inactive .post-bookmark.is-on {
  color: var(--muted);
}
.post.is-inactive .post-like.is-on .icon {
  fill: currentColor;
}

.post-bookmark-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.post-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  min-width: 20px;
  margin-inline-start: 0;
  overflow: visible;
}

.post-copy .icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.post-copy .icon-check { display: none; }

@media (hover: hover) and (pointer: fine) {
  .post-copy:hover { color: var(--fg); }
}

@media (hover: hover) and (pointer: fine) {
  .post-copy:hover .icon {
    background: var(--hover);
  }
}

.post-copy.is-on { color: #1d9bf0; }

.post-copy.is-on .icon-copy { display: none; }

.post-copy.is-on .icon-check {
  display: block;
  animation: copy-pop 420ms cubic-bezier(0.18, 1.4, 0.32, 1) both;
}

.post-copy.is-on::after {
  content: none;
}

.post-copy-tip {
  white-space: nowrap;
  animation: copy-tip-float 1.5s var(--ease) both;
}

@keyframes copy-pop {
  0% { transform: scale(0.55); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes copy-tip {
  0% { opacity: 0; transform: translateX(50%) translateY(6px); }
  14% { opacity: 1; transform: translateX(50%) translateY(0); }
  72% { opacity: 1; transform: translateX(50%) translateY(0); }
  100% { opacity: 0; transform: translateX(50%) translateY(-4px); }
}

@keyframes copy-tip-float {
  0% { opacity: 0; transform: translateY(6px); }
  14% { opacity: 1; transform: translateY(0); }
  72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .post-copy.is-on .icon-check,
  .post-copy-tip { animation: none; }
}

.post-like-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
}

.post-views .icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

@media (hover: hover) and (pointer: fine) {
  .post-views:hover { color: var(--fg); }
}

@media (hover: hover) and (pointer: fine) {
  .post-views:hover .icon {
    background: var(--hover);
  }
}

.post-views-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

/* A count with nothing yet reads 0, on a post's card as under a video
   (founder, 2026-11-15/16). The count is empty, as the server and the live
   updates write it, so this covers both. */
:is(.post-like-n, .post-reply-n, .post-bookmark-n, .post-views-n, .post-repost-n):empty::before {
  content: "0";
}

body.has-engage {
  overflow: hidden;
}

.engage-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 24px;
}

.engage-back[hidden] { display: none; }

.engage {
  width: 600px;
  max-width: 100%;
  height: min(720px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}

.engage {
  --ask-pad-t: 0px;
  --ask-pad-x: 0px;
}

/* The sheet has no padding of its own (the tabs and the list run edge to
   edge), so its head carries a popup's. */
.engage > .ox-ask-head {
  padding: 20px 18px 0;
}

/* Only the list scrolls: the head, the tabs and the filter keep their
   height, and the list takes what is left from zero. With the list's own
   height as its basis, a long list shrank every row above it, which cut the
   title and the picked tab's underline (the tab row clips its height). */
.engage > .ox-ask-head,
.engage > .engage-tabs,
.engage > .engage-filter {
  flex: none;
}

.engage-list .person.is-private {
  margin-inline: 0;
  padding-inline: var(--list-pad-x);
  cursor: default;
}

.person.is-private .post-name,
.person.is-private .post-handle {
  pointer-events: none;
}

.avatar.is-private {
  color: var(--muted);
}

.avatar.is-private .icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.engage-private-n {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-variant-numeric: tabular-nums;
}

.engage-tabs {
  display: flex;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

/* A tab row that does not fit scrolls sideways (no bar), each tab keeps
   its label whole, and the edge with more fades (ui/tab_rows). */
.engage-tabs,
.profile-tabs {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.engage-tabs::-webkit-scrollbar,
.profile-tabs::-webkit-scrollbar {
  display: none;
}

.engage-tabs.is-cut-end {
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.engage-tabs.is-cut-start {
  mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
}

.engage-tabs.is-cut-start.is-cut-end {
  mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

/* A page's tabs stay at the top while its list scrolls under them
   (founder, 2026-12-01), on the page's ground. Their cut ends fade into
   that ground with a strip that stays at the row's edge: a mask let the
   list show through the fade. */
.profile-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}

.profile-tabs.is-cut-start::before,
.profile-tabs.is-cut-end::after {
  content: "";
  position: sticky;
  z-index: 1;
  flex: 0 0 32px;
  align-self: stretch;
  pointer-events: none;
}

.profile-tabs.is-cut-start::before {
  left: 0;
  margin-right: -32px;
  background: linear-gradient(to right, var(--bg), transparent);
}

.profile-tabs.is-cut-end::after {
  right: 0;
  margin-left: -32px;
  background: linear-gradient(to left, var(--bg), transparent);
}

.engage-tab,
.profile-tab {
  flex: 1 0 auto;
  scroll-snap-align: start;
}

/* A tab the viewer may not open (the Overview is the author's and staff's)
   is not there at all; its display would otherwise beat [hidden]. */
.engage-tab[hidden] {
  display: none;
}

.engage-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: var(--text-15);
  font-weight: 650;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .engage-tab:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

/* As the profile's tabs: the picked one bold and underlined. */
.engage-tab {
  position: relative;
}

.engage-tab.is-on {
  color: var(--fg);
}

.engage-tab.is-on::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  height: 3px;
  background: var(--fg);
  pointer-events: none;
}

.engage-tab > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 10px;
  white-space: nowrap;
}

.engage-tab .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.engage-tab .profile-tab-n {
  padding: 0;
  text-box: trim-both cap alphabetic;
}

.engage-tab.is-on > span {
  box-shadow: none;
}

.engage-tab.is-on .profile-tab-n {
  box-shadow: none;
}

.engage-filter {
  margin: 10px 16px 12px;
  flex: none;
  width: auto;
  height: 42px;
  border-radius: 999px;
}

/* Post stats > Overview: who the post reached. */
.reach {
  display: grid;
  gap: 18px;
  padding: 14px var(--list-pad-x) 18px;
}

.reach-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.reach-total {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.reach-total dt {
  color: var(--muted);
  font-size: 13px;
}

.reach-total dd {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.reach-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.reach-sec-head h3 {
  margin: 0;
  font-size: 16px;
}

.reach-sec-head span,
.reach-note {
  color: var(--muted);
  font-size: 14px;
}

.reach-note {
  margin: 0;
}

.reach-sec > .timeline-empty {
  --empty-gap: 0;
  --empty-min-h: 88px;
}

.reach-bars {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reach-bars li {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3.4em;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.reach-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reach-bar-label a {
  color: var(--link);
}

.reach-flag {
  margin-inline-end: 6px;
}

.reach-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--hover);
  overflow: hidden;
}

.reach-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--link);
}

.reach-bar-pct {
  text-align: end;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .reach-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.engage-list {
  --list-pad-x: 16px;
  --empty-gap: 12px;
  --empty-end: 12px;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.engage-list.people,
.engage-list.people::before {
  margin: 0;
}

.engage-list.people::before {
  display: none;
}

.engage-list .person[data-href] {
  margin-inline: 0;
  padding-inline: var(--list-pad-x);
}

@media (max-width: 800px) {
  .engage-back {
    padding: 0;
    place-items: stretch;
    background: var(--bg);
  }

  .engage {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.profile-tabs {
  display: flex;
  margin: 4px calc(-1 * var(--stage-pad-x)) 0;
  width: auto;
  max-width: none;
  border-bottom: 1px solid var(--line);
}

/* Every tab is bold, the picked one by its colour and underline: a tab
   that turned bold when picked grew, and the row moved as it was switched
   (founder, 2026-11-26: "can be always bold text so when switch it not
   change size"). */
.profile-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: var(--text-15);
  font-weight: 650;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .profile-tab:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

/* The selected tab is underlined (every tab is bold): in light theme the
   muted and the main text are too close to tell apart by colour alone. */
.profile-tab {
  position: relative;
}

.profile-tab.is-on {
  color: var(--fg);
}

.profile-tab.is-on::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  height: 3px;
  background: var(--fg);
  pointer-events: none;
}

/* The timeline's Latest, Popular and Organization share the row evenly,
   whatever their words (founder, 2026-11-29); a profile's tabs keep their
   own widths and scroll. */
.profile-tabs.is-even > .profile-tab {
  flex: 1 1 0;
  min-width: 0;
}

.profile-tab span {
  padding: 12px 12px 10px;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
}

.profile-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 12px 10px;
}

.profile-tab-label span {
  padding: 0;
}

.profile-tab-label .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.profile-tab.is-on span,
.profile-tab.is-on .profile-tab-label {
  box-shadow: none;
}

.profile-tab-n {
  padding: 0;
  color: var(--tab-n);
  font-weight: 400;
}

.profile-tab:hover .profile-tab-n,
.profile-tab.is-on .profile-tab-n {
  color: var(--tab-n);
}

.profile-tab.is-on .profile-tab-n {
  box-shadow: none;
}

.profile-tab.is-on .profile-tab-label span {
  box-shadow: none;
}

/* Profile sections: icon until selected, then icon plus the name.
   Each tab takes an equal share of the row so the whole cell is the hit target. */
.profile-kind-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-kind-tabs::-webkit-scrollbar {
  display: none;
}

/* All of them fit the row, never scrolling: the icons keep a tap's width
   and the open one gives way, its name cut short with an ellipsis (its
   count stays whole). */
.profile-kind-tabs .profile-tab {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 48px;
  padding-inline: 4px;
}

.profile-kind-tabs .profile-tab.is-on {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-kind-tabs .profile-tab.is-on .profile-tab-label,
.profile-kind-tabs .profile-tab.is-on .profile-tab-name {
  min-width: 0;
  max-width: 100%;
}

.profile-kind-tabs .profile-tab-word {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Clipped for the ellipsis: the box keeps the font's whole height, so a
     descender (g, y, p) is not cut, and gives the room back outside. */
  text-box: normal;
  padding-block: 0.2em;
  margin-block: -0.2em;
}

.profile-kind-tabs .profile-tab-n {
  flex: none;
}

.profile-kind-tabs .profile-tab-label {
  gap: 6px;
}

/* An icon alone fits its tap's width (with the label's side padding it
   was 46px in a 44px tab, and the row scrolled by a pixel). */
.profile-kind-tabs .profile-tab:not(.is-on) .profile-tab-label {
  padding-inline: 0;
}

.profile-kind-tabs .profile-tab-label > .icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}

.profile-kind-tabs .profile-tab-name {
  display: none;
  align-items: baseline;
  gap: 0;
  padding: 0;
  font-weight: 700;
}

.profile-kind-tabs .profile-tab.is-on .profile-tab-name {
  display: inline-flex;
}

.profile-kind-tabs .profile-tab.is-on span {
  box-shadow: none;
}

.profile-kind-tabs .profile-tab.is-on .profile-tab-label {
  box-shadow: none;
}

/* .profile-tab span trims the count's leading space, so the gap is explicit. */
.profile-kind-tabs .profile-tab-n {
  margin-inline-start: 0.3em;
}

.profile-kind-tabs .profile-tab-name .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  align-self: center;
  margin-inline-end: 4px;
}

.profile-kind-tabs .profile-tab-word,
.profile-kind-tabs .profile-tab-n {
  padding: 0;
}

.login-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#login-totp[hidden],
#login-account[hidden],
.guest-gate #login-account[hidden],
#login-slots[hidden],
#login-recovery-field[hidden],
#totp-confirm-field[hidden],
#totp-recovery-field[hidden],
#login-totp-field[hidden],
#totp-code-field[hidden],
#login-handle-field[hidden],
#login-password-field[hidden],
#login-submit[hidden],
#login-totp-go[hidden],
#login-totp-switch-wrap[hidden] {
  display: none;
}

.otp-switch {
  display: inline;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  text-align: start;
  width: auto;
}

@media (hover: hover) and (pointer: fine) {
  .otp-switch:hover {
    color: var(--link-hover);
  }
}

.totp-setup,
#totp-new-codes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.totp-setup > .field-note,
.totp-setup > .muted-actions,
.totp-setup > .field-note + .muted-actions,
.totp-setup > .field-note + .btn,
#totp-new-codes > .field-note,
#totp-new-codes > .muted-actions,
#totp-new-codes > .field-note + .muted-actions,
#totp-new-codes > .field-note + .btn,
.totp-qr,
.totp-codes,
.totp-secret {
  margin: 0;
}

.totp-qr {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
}

.totp-qr svg {
  display: block;
  width: 168px;
  height: 168px;
}

.totp-secret {
  margin: 0;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.totp-codes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.totp-codes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-15);
  letter-spacing: 0.04em;
  user-select: all;
  -webkit-user-select: all;
}

.login-slot strong {
  display: block;
  color: var(--fg);
  font-weight: 700;
}

.login-slot em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: var(--text-13);
}

.legal-agree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.legal-agree .check {
  align-items: flex-start;
}

.legal-agree .check a {
  color: var(--link);
}

@media (hover: hover) and (pointer: fine) {
  .legal-agree .check a:hover {
    color: var(--link-hover);
  }
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .check:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

.check input,
input[type="checkbox"]:not([role="switch"]) {
  --ox-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round' d='M3.15 8.35 6.55 11.7 12.85 4.7'/%3E%3C/svg%3E");
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--fg) 34%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  color: var(--bg);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .check input:hover,
  input[type="checkbox"]:not([role="switch"]):hover {
    border-color: color-mix(in srgb, var(--fg) 72%, transparent);
    background: var(--hover);
  }
}

.check input:checked,
input[type="checkbox"]:not([role="switch"]):checked {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.check input:checked::after,
input[type="checkbox"]:not([role="switch"]):checked::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--bg);
  -webkit-mask: var(--ox-check) center / contain no-repeat;
  mask: var(--ox-check) center / contain no-repeat;
  animation: check-pop 180ms var(--ease);
}

.check input:focus-visible,
input[type="checkbox"]:not([role="switch"]):focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.check input:disabled,
input[type="checkbox"]:not([role="switch"]):disabled {
  opacity: 0.4;
  cursor: default;
}

@keyframes check-pop {
  0% {
    transform: scale(0.72);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .choice:hover {
    background: var(--hover);
  }
}

.choice:has(input:checked) {
  background: var(--card);
}

/* A choice that cannot be made looks it: faded, no hover, no hand. */
.choice:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .choice:has(input:disabled):hover {
    background: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .choice:has(input:disabled:checked):hover {
    background: var(--card);
  }
}

/* A checkbox is the box and its words on the page's ground, lined up with
   the fields above it: no fill behind the row, checked or hovered (founder,
   2026-11-28: "dont need for these bg color"). A list of radio choices
   keeps its row fill: there it marks the one picked. */
.choice:has(> input[type="checkbox"]) {
  padding-inline: 0;
}

.choice:has(> input[type="checkbox"]),
.choice:has(> input[type="checkbox"]):has(input:checked) {
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .choice:has(> input[type="checkbox"]):hover {
    background: transparent;
  }
}

.choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 50%;
  background: var(--elevated);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.choice input[type="checkbox"] {
  border-radius: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .choice input:hover {
    border-color: var(--fg);
  }
}

.choice input:checked {
  border-color: var(--fg);
  background: var(--elevated);
}

.choice input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
}

.choice input:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.toggle-note {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.toggle-ctrl {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 26px;
}

.toggle-ctrl input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.toggle-ui {
  display: block;
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: var(--bubble-in);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  transform: translateX(0);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.toggle-ctrl input:checked + .toggle-ui {
  background: var(--fg);
  box-shadow: none;
}

.toggle-ctrl input:checked + .toggle-ui::after {
  transform: translateX(16px);
  background: var(--bg);
}

.toggle-ctrl input:focus-visible + .toggle-ui {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Private-gated toggles: dim label + switch together */
.toggle.is-dim,
.toggle:has(input:disabled) {
  opacity: 0.45;
  cursor: default;
}

.toggle.is-dim .toggle-copy,
.toggle:has(input:disabled) .toggle-copy {
  color: var(--muted);
}

.profile .timeline { margin-top: 0; }

.search {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  /* The site's one control height, as every form field. */
  height: var(--control-h);
  padding: 0 14px;
  background: var(--elevated-2);
  border: 1px solid transparent;
  border-radius: 999px;
}

/* Focused as a form field is: its border in the theme's focus color. */
.search-box:focus-within,
.search-box.is-on {
  background: var(--bg);
  border-color: var(--input-focus);
}

.search-box.is-off {
  opacity: 0.55;
  cursor: not-allowed;
}

.search-box.is-off input {
  cursor: not-allowed;
  color: var(--muted);
}

.search-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 18px;
}

.search-icon .icon {
  width: 19px;
  height: 19px;
}

.search-box:focus-within .search-icon {
  color: var(--link);
}

/* The box shows the focus (its border); the field in it has no ring. */
.search-box input:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: none;
}

.search-box input {
  flex: 1 1 auto;
  /* The whole box's height takes a tap, not the line of text alone. */
  align-self: stretch;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  user-select: text;
  -webkit-user-select: text;
}

.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--link);
  color: var(--bg);
  flex: 0 0 24px;
}

.search-clear .icon {
  width: 15px;
  height: 15px;
}

.search-clear[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .search-clear:hover { background: var(--link-hover); }
}

.search-panel {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  max-height: min(72vh, 440px);
  overflow: auto;
  z-index: calc(var(--z-popup) + 10);
}

.search-panel[hidden] { display: none; }

.search-hit,
.search-do,
.search-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: start;
  color: inherit;
}

.search-hit {
  gap: 8px;
  padding: 8px 14px;
}

.search-hit:hover,
.search-do:hover,
.search-recent-item:hover,
.search-hit.is-on,
.search-do.is-on,
.search-recent-item.is-on {
  background: var(--hover);
}

.search-hit .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

/* #55.14: search dropdown + handle-pick / compose @-suggest — clip, no scrollbar gutter */
.search-hit-id,
.search-hit-name,
.search-hit-handle {
  overflow: hidden;
  scrollbar-width: none;
}
.search-hit-id::-webkit-scrollbar,
.search-hit-name::-webkit-scrollbar,
.search-hit-handle::-webkit-scrollbar {
  display: none;
}

.search-hit-id {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding-bottom: 2px;
}

.search-hit-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  line-height: 19px;
}

.search-hit-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  line-height: 19px;
}

.search-hit-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
}

.search-hit-why {
  color: var(--muted);
  font-size: var(--text-13);
  /* Room under the last line: the block clips, and a 16px line cut the
     tail of a "g" (founder, 2026-11-14: "fogadhat"). */
  line-height: var(--lh-20);
  padding-bottom: 1px;
}

.search-hit.is-off,
.search-hit:disabled {
  opacity: 1;
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .search-hit.is-off:hover,
  .search-hit:disabled:hover {
    background: none;
  }
}

.handle-pick {
  position: relative;
  width: 100%;
  min-width: 0;
}

.handle-pick > input {
  width: 100%;
  box-sizing: border-box;
}

.handle-pick .handle-pick-panel {
  z-index: calc(var(--z-popup) + 20);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

/* In a popup whose body scrolls (an event's guests, a contact's account),
   the list is in the flow under the field, not over what follows:
   floating, the popup's own scroll box cut it off (founder, 2026-11-27:
   "the list not in front of elements"). */
.ox-ask-body .handle-pick .handle-pick-panel {
  position: static;
  margin-top: 6px;
  max-height: min(260px, 40vh);
}

.handle-pick-panel .search-hit {
  color: var(--fg);
}

.handle-pick-panel .search-hit.is-off {
  color: var(--muted);
}

.search-do .search-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--elevated-2);
}

.search-do-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 6px;
}

.search-recent-title {
  font-size: var(--text-15);
}

.search-recent-clear {
  color: var(--link);
  font-size: var(--text-13);
}

@media (hover: hover) and (pointer: fine) {
  .search-recent-clear:hover { color: var(--link-hover); }
}

.search-recent-q {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-forget {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
}

@media (hover: hover) and (pointer: fine) {
  .search-recent-forget:hover {
    background: var(--card-2);
  }
}

.search-recent-forget .icon {
  width: 15px;
  height: 15px;
}

.search-empty {
  --empty-gap: 10px;
  --empty-end: 10px;
  --empty-min-h: 88px;
  margin-inline: 10px;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.history-card .scheduled-body {
  white-space: pre-wrap;
}

.history-card.is-current {
  box-shadow: none;
}

/* An edit's change from the version before it. */
.history-removed,
.history-added {
  border-radius: 3px;
  padding: 0 1px;
}

.history-removed {
  color: var(--status-bad);
  background: color-mix(in srgb, var(--status-bad) 14%, transparent);
  text-decoration: line-through;
}

.history-added {
  color: var(--status-ok);
  background: color-mix(in srgb, var(--status-ok) 14%, transparent);
  text-decoration: none;
}

.post-label {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-14);
}

.post-label-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.post-label-kind {
  display: block;
  color: inherit;
  font-weight: 650;
}

/* b2 #31 / b3 #16: who added the context and when, top right. */
.post-label-by {
  flex: none;
  margin-inline-start: auto;
  font-size: var(--text-13);
  color: var(--muted);
  text-align: end;
  white-space: nowrap;
}

.post-label-who {
  color: var(--fg);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .post-label-who:hover {
    text-decoration: underline;
  }
}

/* Set like the time beside it, on the same line as the time and the menu. */
.post-edited {
  flex: 0 0 auto;
  padding: 4px 0;
  margin: -4px 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.search-advanced {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: var(--card-2, var(--card));
}

.search-advanced summary {
  cursor: pointer;
  color: var(--fg);
  font-size: var(--text-14);
  line-height: var(--lh-20);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}

.search-advanced summary::-webkit-details-marker { display: none; }

.search-advanced summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-end: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 120ms;
  flex: 0 0 auto;
}

.search-advanced[open] summary::after {
  transform: rotate(225deg);
}

.search-advanced-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.search-page-box {
  display: block;
  margin: 0 0 12px;
}

.search-sec {
  margin: 8px 0 4px;
}

.search-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 6px;
}

/* The list Search shows without words (Nearby organizations), named over
   it as a section is. */
.search-list-head {
  margin: 0;
  padding: 14px 0 10px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 650;
}

.search-sec-title {
  margin: 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.search-sec-more {
  color: var(--link);
  font-size: var(--text-13);
}

@media (hover: hover) and (pointer: fine) {
  .search-sec-more:hover { color: var(--link-hover); }
}

.search-page .timeline {
  margin-top: 0;
}

@media (max-width: 900px) {
  .aside { display: none; }
  .search-page-box { display: block; }
  .stage {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--lock-bar));
    min-height: calc(100dvh - var(--lock-bar));
  }
  .site-foot-mobile {
    display: block;
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: 28px;
  }
  .stage:has(.messages) .site-foot-mobile,
.stage:has(.founder-term) .site-foot-mobile,
.stage.is-founder-term .site-foot-mobile,
/* The PIN screen while it shows (Work keeps it, hidden, once unlocked). */
.stage:has(.msg-lock:not([hidden])) .site-foot-mobile,
.stage:has(.api-latency) .site-foot-mobile,
.stage:has(.ws-latency) .site-foot-mobile { display: none; }
}

@media (max-width: 800px) {
  body.app { justify-content: flex-start; }
  /* Beat inline LAYOUT_CSS (body.app > .rail) so the drawer is out of flow. */
  body.app > .rail,
  html.rail-min body.app > .rail {
    position: fixed;
    flex: 0 0 0;
    width: 0;
    min-width: 0;
  }
  body.app > .stage,
  .stage {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: var(--stage-pad-x) var(--stage-pad-x) 0;
    margin-inline-start: 0;
    transition: margin-inline-start 120ms ease-out;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll) transparent;
    min-height: 0;
    height: calc(100dvh - var(--lock-bar));
    max-height: calc(100dvh - var(--lock-bar));
  }
  body.has-tabbar.app > .stage,
  body.has-tabbar .stage {
    height: auto;
    max-height: none;
  }
  html.ios-pwa body.app > .stage,
  html.ios-pwa .stage {
    height: calc(var(--ios-shell-h, 100lvh) - var(--lock-bar));
    max-height: calc(var(--ios-shell-h, 100lvh) - var(--lock-bar));
  }
  html.ios-pwa body.has-tabbar.app > .stage,
  html.ios-pwa body.has-tabbar .stage {
    height: auto;
    max-height: none;
  }
  @media (hover: hover) and (pointer: fine) {
    body.app > .stage::-webkit-scrollbar,
    .stage::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    body.app > .stage::-webkit-scrollbar-track,
    .stage::-webkit-scrollbar-track {
      background: transparent;
    }
    body.app > .stage::-webkit-scrollbar-thumb,
    .stage::-webkit-scrollbar-thumb {
      background: var(--scroll);
      border-radius: 999px;
    }
  }
  body.app:not(.has-tabbar) > .stage,
  body:not(.has-tabbar) .stage {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* Messages/notes/term own an inner scroller. */
  body.app > .stage:has(.messages),
body.app > .stage:has(.founder-term) {
    overflow: hidden;
    scrollbar-gutter: auto;
  }
  .aside { display: none; }
  .metrics-glance,
.metrics-grid,
.node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.messages {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.msg-inbox {
  /* The list's side gutter and the room above its first row. Everything
     in the list reads them, so it moves as one; on a phone they are the
     page's own (sheets.css), as every other page starts. */
  --list-pad-x: 16px;
  --list-pad-top: 16px;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.msg-inbox-head {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--list-pad-top) var(--list-pad-x) 8px;
}

.msg-inbox-head h1 {
  margin: 0;
  font-size: var(--text-20);
  font-weight: 400;
}

.msg-inbox-head .e2ee-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  width: 100%;
}
.msg-inbox-head .e2ee-title h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.msg-inbox-title .e2ee-mark {
  flex: none;
}
.msg-inbox-head .e2ee-title .msg-inbox-more {
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.msg-search {
  position: relative;
  z-index: 12;
  width: 100%;
  max-width: none;
}

.msg-search .search-box,
.msg-find {
  display: flex;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.msg-find input {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.msg-search .search-panel {
  z-index: var(--z-popup);
  max-height: min(68vh, 520px);
  box-shadow: none;
}

.msg-search .search-recent-head,
.msg-search .search-sec-head {
  padding: 12px 14px 6px;
}

.msg-find { margin: 0; }

button.search-hit,
button.search-do,
button.search-recent-item {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.msg-hit-snip {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.search-hit mark,
.msg-hit-snip mark {
  background: rgba(29, 155, 240, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.msg-bubble.is-hit {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.5);
  animation: msg-hit-pulse 1.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .msg-bubble.is-hit {
    animation: none;
  }
}

/* A message is reached by Tab (its menu opens on Enter or the menu key). */
.msg-bubble[tabindex]:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.msg-bubble.is-photo-only.is-hit,
.msg-bubble.is-photo-only.is-reply-src {
  outline: none;
  box-shadow: none;
  animation: none;
}

.msg-bubble.is-photo-only.is-hit .msg-photo,
.msg-bubble.is-photo-only.is-reply-src .msg-photo {
  outline: 2px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.5);
  border-radius: 18px;
}

@keyframes msg-hit-pulse {
  0% { box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); }
}

.msg-inbox > .form-error {
  margin: 0 var(--list-pad-x) 8px;
}

.msg-inbox-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.msg-pins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 4px;
  padding: 4px 8px 12px;
}

.msg-pins[hidden] {
  display: none;
}

.msg-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 4px 6px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.msg-pin:hover,
.msg-pin.is-on {
  background: var(--hover);
}

.msg-pin-face {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.msg-pin-face .post-avatar,
.msg-pin-face .avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  font-size: 26px;
}

.msg-pin-face .nav-count {
  position: absolute;
  top: -2px;
  inset-inline-end: -4px;
  z-index: 2;
  margin: 0;
}

.msg-pin-face .post-avatar.has-live::after {
  width: 14px;
  height: 14px;
}

.msg-pin-name {
  display: block;
  max-width: 100%;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Both folders on one line, in the 300px list column and in the dock, in
   every language: the bar never wraps (`.seg.` outranks the shared row,
   which loads later). */
.seg:is(.msg-folder-seg, .chat-dock-folders) {
  flex-wrap: nowrap;
}

.msg-folder-seg {
  margin: 0 var(--list-pad-x) 10px;
}

:is(.msg-folder-seg, .chat-dock-folders) .seg-item {
  /* Messages and Message requests share the bar evenly, in the list
     column and in the dock; a label too long for its half ends in an
     ellipsis while its count stays whole. */
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px;
}

:is(.msg-folder-seg, .chat-dock-folders) .seg-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Room for the letters that hang below the line (g, q, y). */
  line-height: 1.3;
}

:is(.msg-folder-seg, .chat-dock-folders) .seg-n {
  flex: none;
}


.msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* b5 #4: Accept and Decline are the standard filled button, compact
   and aligned with the name column. */
.msg-request-actions {
  display: flex;
  gap: 8px;
  /* Under the name: past the gutter, the 40px face and the 8px gap. */
  padding: 0 var(--list-pad-x) 12px calc(var(--list-pad-x) + 48px);
}

.msg-request-actions .btn {
  flex: 1 1 0;
  max-width: 136px;
  height: 32px;
  padding: 0 14px;
  font-size: 15px;
}

.msg-request-actions .btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* A request row and its Accept/Decline buttons are one item: they hover and
   highlight together, with no gap between the row and the buttons. */
.msg-list > li:has(> .msg-request-actions) > .msg-row {
  padding-bottom: 8px;
}

.msg-list > li:has(> .msg-request-actions):hover,
.msg-list > li:has(> .msg-request-actions):has(> .msg-row.is-on) {
  background: var(--hover);
}

.msg-list > li:has(> .msg-request-actions) > .msg-row:hover,
.msg-list > li:has(> .msg-request-actions) > .msg-row.is-on {
  background: transparent;
}

.msg-list > li:has(.msg-row[data-pinned="1"]) {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .msg-inbox-body::-webkit-scrollbar,
  .msg-list::-webkit-scrollbar,
  .msg-scroll::-webkit-scrollbar {
    width: 8px;
  }

  .msg-inbox-body::-webkit-scrollbar-thumb,
  .msg-list::-webkit-scrollbar-thumb,
  .msg-scroll::-webkit-scrollbar-thumb {
    background: var(--scroll);
    border-radius: 999px;
  }

  .msg-inbox-body::-webkit-scrollbar-track,
  .msg-list::-webkit-scrollbar-track,
  .msg-scroll::-webkit-scrollbar-track {
    background: transparent;
  }
}

.msg-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px var(--list-pad-x);
}

.msg-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  align-self: center;
}

.msg-row-meta:empty {
  display: none;
}

.msg-row-meta .post-time {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 17px;
  text-box: unset;
}

.msg-row-face {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.msg-row-face .post-avatar,
.msg-row-face .avatar {
  width: 40px;
  height: 40px;
}

.msg-row-face .nav-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  margin: 0;
  z-index: 2;
}

.msg-row:hover,
.msg-row.is-on { background: var(--hover); }

.msg-row-main {
  min-width: 0;
  overflow: hidden;
}

.msg-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.msg-row-top .online-name {
  min-width: 0;
  overflow: hidden;
}

.msg-row-top .post-time {
  display: none;
}

.msg-row-preview {
  display: block;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.msg-row-preview.is-deleted {
  font-style: italic;
}

.msg-row-preview.is-typing {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: clip;
}

.msg-row-preview.is-typing .msg-typing-dots {
  gap: 3px;
  height: 13px;
}

.msg-row-preview.is-typing .msg-typing-dots span {
  width: 5px;
  height: 5px;
  background: var(--muted);
  animation-name: msg-inbox-typing-dot;
}

@keyframes msg-inbox-typing-dot {
  0%, 70%, 100% { transform: translateY(0); }
  35% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .msg-row-preview.is-typing .msg-typing-dots span {
    animation: none;
  }
}

.msg-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.msg-thread-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: auto;
  color: var(--muted);
  padding: 32px 28px;
  text-align: center;
  max-width: 360px;
}

.msg-thread-empty h2 {
  margin: 0;
  color: var(--fg);
  font-size: var(--text-31);
  line-height: var(--lh-36);
  font-weight: 400;
}

.msg-thread-empty p {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.msg-thread-empty[hidden] { display: none; }

/* No conversation open: the pane is hidden whole, its head and composer
   with it (its display below would otherwise show them). */
.msg-thread-on[hidden] {
  display: none;
}

.msg-thread-on {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.msg-thread-top {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
}

.msg-thread-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  flex: 0 0 60px;
  padding: 0 8px 0 12px;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  background: var(--glass-heavy);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

/* On a computer the row stood against the window's top edge, 12 px over
   the picture: it has the list's own room above it now, and its middle is
   level with the list's title (founder, 2026-12-01: "extend the before
   spacing"). A phone's head is the top bar and keeps its size. */
@media (min-width: 801px) {
  .msg-thread-head {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    flex-basis: 72px;
  }
}

.msg-status-line {
  margin: 0;
  padding: 6px 8px 8px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--glass-heavy);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-status-line[hidden] {
  display: none;
}

.msg-thread-on:has(.msg-status-line:not([hidden])) .msg-scroll {
  padding-top: 100px;
}

.msg-back,
.msg-more {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
}

.msg-back { display: none; }

.msg-more { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .msg-back:hover,
  .msg-more:hover { background: var(--hover); color: var(--fg); }
}

.msg-back .icon,
.msg-more .icon {
  width: 19px;
  height: 19px;
}

/* The name over the handle: it grows to hold both lines on a phone. */
.msg-head-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 2px 8px;
  border-radius: 12px;
}

button.msg-head-group {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.msg-group-members {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

.msg-group-member {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

/* b2 #55: the owner manages people on the member list. The row, not the
   link, takes the hover, so a row with the Owner tag or a Remove button is
   as wide as the others. The tag sits inside the link: a click on it opens
   the profile like the rest of the row. */
.msg-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 12px;
}

.msg-member-row:has(> .msg-member-remove) {
  padding-inline-end: 8px;
}

.msg-group-member > .msg-member-tag {
  margin-inline-start: auto;
}

@media (hover: hover) and (pointer: fine) {
  .msg-member-row:hover { background: var(--hover); }
}

.msg-member-row > .msg-group-member {
  flex: 1 1 auto;
}

.msg-member-tag,
.msg-member-remove {
  flex: 0 0 auto;
}

.btn.msg-member-remove {
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
}

/* b3 #3: members first, a rule, then the add section; the suggestions list
   overhangs the dialog (the member list scrolls instead of the dialog). */
.msg-members-ask.ox-ask {
  overflow: visible;
}

.msg-members-ask .msg-group-members {
  max-height: min(48dvh, 360px);
  overflow-y: auto;
}

.msg-member-sep {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.msg-member-add {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.msg-member-add .field {
  margin: 0;
}

.msg-member-add-btn {
  justify-self: end;
}

.msg-members-ask #msg-member-error {
  margin: 0 0 8px;
}

.msg-head-photo {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: visible;
  border-radius: 50%;
  z-index: 2;
}

.msg-head-photo .avatar,
.msg-head-photo img,
.msg-head-photo span {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px !important;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.msg-head-photo.has-live::after,
.msg-head-photo.has-seen::after {
  z-index: 4;
}

/* The name cuts itself with "…"; the block does not clip, so a badge
   taller than the name's line shows whole (founder, 2026-11-19: the
   verified mark was cut at its top). */
.msg-head-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  overflow: visible;
}

.msg-head-name {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 20px;
  overflow: visible;
  font-size: var(--text-15);
  line-height: 21px;
}

.msg-head-name > span:first-child {
  overflow-x: hidden;
  overflow-y: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 21px;
}

.msg-head-name .badge-mute,
.online-name .badge-mute,
.profile-name .badge-mute {
  color: var(--muted);
}

.msg-head-name .badge-block,
.online-name .badge-block,
.profile-name .badge-block {
  color: #f4212e;
}

.msg-head-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 21px;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: unset;
}

.msg-scroll {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-anchor: none;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
  padding: 72px 8px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.msg-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 32px 16px 28px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--line);
  align-self: stretch;
}

@media (hover: hover) and (pointer: fine) {
  .msg-intro:hover { background: transparent; }
}

.msg-intro-photo {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  margin-bottom: 8px;
  overflow: visible;
  border-radius: 50%;
  z-index: 3;
}

.msg-intro-photo .avatar,
.msg-intro-photo img,
.msg-intro-photo span {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px !important;
  box-sizing: border-box;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 26px;
  line-height: 1;
}

.msg-intro-photo.has-live::after {
  width: 14px;
  height: 14px;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 4;
}

.msg-intro-photo.has-seen::after {
  inset-inline-end: -4px;
  bottom: -2px;
  min-width: 22px;
  height: 16px;
  font-size: 11px;
  line-height: 15px;
  z-index: 4;
}

.msg-intro-photo .avatar.is-verified-business,
.msg-intro-photo img.is-verified-business,
.msg-intro-photo span.is-verified-business {
  border-radius: 12px;
}

.msg-intro-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--text-17);
  line-height: var(--lh-20);
  font-weight: 400;
  max-width: 100%;
}

.msg-intro-handle,
.msg-intro-joined {
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.msg-intro-bio {
  margin: 8px 0 0;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 420px;
}

.msg-stamp {
  align-self: center;
  margin: 14px 0 8px;
  translate: calc(var(--msg-gutter, 0px) / 2) 0;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 92%;
}

/* iOS's own long press (a link's preview) would take the press before
   the site's menu: a pinned conversation is a link too. */
.msg-bubble,
.msg-row,
.msg-pin,
.msg-head,
.msg-head-who {
  -webkit-touch-callout: none;
}

.msg-line {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-start;
  margin: 1px 0;
  overflow: visible;
}

.msg-line.is-in {
  padding-inline-start: 10px;
}

/* A message that is sent or comes in while its conversation is open
   rises into its place, from the side it is on. */
@keyframes msg-arrive {
  from {
    opacity: 0;
    transform: translateY(var(--msg-rise, 14px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* One motion with the lines over it, which glide up by as much
   (`chat_thread::place_line` sets how far): the same time and the same
   ease, coming to rest without a bounce. */
.msg-line.is-arriving {
  transform-origin: bottom left;
  animation: msg-arrive 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.msg-line.is-out.is-arriving {
  transform-origin: bottom right;
}

@media (prefers-reduced-motion: reduce) {
  .msg-line.is-arriving {
    animation: none;
  }
}

.msg-line.is-out {
  justify-content: flex-end;
  padding-inline-end: 10px;
}

.msg-line.is-in:has(.msg-reply-stack) {
  padding-inline-start: 20px;
}

.msg-line.is-out:has(.msg-reply-stack) {
  padding-inline-end: 20px;
}

.msg-read {
  align-self: flex-end;
  margin: 3px 18px 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  min-height: 16px;
  white-space: nowrap;
}

.msg-read.is-slot {
  visibility: hidden;
  pointer-events: none;
}

.msg-line:has(.is-start),
.msg-line:has(.is-solo) {
  margin-top: 8px;
}

.msg-stamp + .msg-line {
  margin-top: 0;
}

.msg-when {
  display: none;
}

/* A group: someone else's run carries their name over its first bubble
   and their face beside its last, so each message reads as theirs. */
.msg-scroll[data-kind="group"] .msg-line.is-in {
  padding-inline-start: 46px;
}

.msg-scroll .msg-line.has-from {
  margin-top: 22px;
}

.msg-from {
  position: absolute;
  top: -18px;
  inset-inline-start: 58px;
  max-width: calc(100% - 96px);
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-from-face {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--avatar-empty);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
}

.msg-from-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Group events belong to nobody's side. The left padding adds the
   scrollbar gutter (measured by chrome.js) so the row is centred on the
   pane, not on the pane minus the gutter. */
.msg-line.is-system {
  justify-content: center;
  padding: 0 16px 0 calc(16px + var(--msg-gutter, 0px));
}

.msg-system {
  margin: 10px auto;
  max-width: 28rem;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.msg-system-line + .msg-system-line {
  margin-top: 6px;
}

.msg-group-back[hidden],
.invite-mint-back[hidden] {
  display: none !important;
}

/* b3 #2: a wide dialog without the shared body scrolls (overflow: auto),
   which clipped the people suggestions under the dialog edge. The form is
   short; let the list overhang the dialog instead. */
.ox-ask.ox-ask-wide.msg-group-ask {
  overflow: visible;
}

.msg-group-ask .ox-ask-actions {
  margin-top: 0;
}

.msg-group-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  text-align: start;
}

.msg-group-form[hidden] {
  display: none !important;
}

.msg-group-form .field {
  width: 100%;
}

.msg-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.msg-group-chips:empty {
  display: none;
}

.msg-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2, var(--card));
  color: var(--fg);
  font-size: var(--text-13);
  line-height: 19px;
}

.msg-group-chip .avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 12px;
}

.msg-group-chip a {
  color: inherit;
}

.msg-bubble {
  position: relative;
  box-sizing: border-box;
  flex: none;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 7px 13px;
  border-radius: 18px;
  background: var(--bubble-in);
  color: var(--bubble-in-fg);
  font-size: 16px;
  line-height: 21px;
  overflow: visible;
  isolation: isolate;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.msg-bubble.is-mine {
  background: var(--bubble-out);
  color: var(--bubble-out-fg);
}

.msg-bubble:not(.is-mine).is-start {
  border-end-start-radius: 5px;
}

.msg-bubble:not(.is-mine).is-mid {
  border-start-start-radius: 5px;
  border-end-start-radius: 5px;
}

.msg-bubble:not(.is-mine).is-end {
  border-start-start-radius: 5px;
}

.msg-bubble.is-mine.is-start {
  border-end-end-radius: 5px;
}

.msg-bubble.is-mine.is-mid {
  border-start-end-radius: 5px;
  border-end-end-radius: 5px;
}

.msg-bubble.is-mine.is-end {
  border-start-end-radius: 5px;
}

.msg-bubble.is-end::after,
.msg-bubble.is-solo::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: inherit;
  pointer-events: none;
}

.msg-bubble.is-end::before,
.msg-bubble.is-solo::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 21px;
  /* The tail's curve is cut by a patch of what is behind the thread. */
  background: var(--msg-behind, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.msg-bubble:not(.is-mine).is-end::after,
.msg-bubble:not(.is-mine).is-solo::after {
  inset-inline-start: -6px;
  border-end-end-radius: 14px;
}

.msg-bubble:not(.is-mine).is-end::before,
.msg-bubble:not(.is-mine).is-solo::before {
  inset-inline-start: -10px;
  border-end-end-radius: 10px;
}

.msg-bubble.is-mine.is-end::after,
.msg-bubble.is-mine.is-solo::after {
  inset-inline-end: -6px;
  border-end-start-radius: 14px;
}

.msg-bubble.is-mine.is-end::before,
.msg-bubble.is-mine.is-solo::before {
  inset-inline-end: -10px;
  border-end-start-radius: 10px;
}

.msg-text,
.msg-reply-ref {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.msg-text {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.msg-post-link,
.msg-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  pointer-events: auto;
}

.msg-post-embed {
  min-width: 0;
  max-width: 100%;
}

.msg-post-embed:empty {
  display: none;
}

.msg-bubble .quote-embed {
  margin: 8px 0 2px;
  padding: 10px 12px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  white-space: normal;
  user-select: none;
}

.msg-bubble .quote-embed:first-child,
.msg-bubble > .msg-post-embed:first-child .quote-embed {
  margin-top: 2px;
}

.msg-bubble.is-mine .quote-embed {
  background: rgba(0, 0, 0, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .msg-bubble .quote-embed:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.msg-bubble .quote-text {
  color: inherit;
}

.msg-bubble .quote-byline .post-name,
.msg-bubble .quote-byline .post-handle,
.msg-bubble .quote-byline .post-time,
.msg-bubble .quote-byline .post-edited {
  color: inherit;
}

.msg-bubble .quote-byline .post-handle,
.msg-bubble .quote-byline .post-time,
.msg-bubble .quote-byline .post-edited {
  opacity: 0.72;
}

.msg-bubble.is-reacting {
  z-index: 6;
  transform: translate3d(0, var(--msg-lift, 0px), 0) scale(1.03);
  transform-origin: center center;
}

.msg-reply-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: max-content;
  max-width: min(76%, 420px);
  min-width: 0;
  overflow: visible;
}

.msg-reply-stack .msg-hold {
  max-width: 100%;
}

.msg-line.is-in .msg-reply-stack {
  align-items: flex-start;
}

.msg-line.is-out .msg-reply-stack {
  align-items: flex-end;
}

.msg-reply-ref {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 6px 11px;
  border: 0;
  border-radius: 13px;
  background: var(--bubble-in);
  color: var(--bubble-in-fg);
  font: inherit;
  font-size: 14px;
  line-height: 17px;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: visible;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.msg-reply-stack .msg-reply-ref::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: calc(50% + 14px);
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
}

.msg-line.is-in .msg-reply-stack .msg-reply-ref::after {
  inset-inline-start: -16px;
  border-inline-start: 1.5px solid #8e8e93;
  border-bottom: 1.5px solid #8e8e93;
  border-end-start-radius: 16px;
}

.msg-line.is-out .msg-reply-stack .msg-reply-ref::after {
  inset-inline-end: -16px;
  border-inline-end: 1.5px solid #8e8e93;
  border-bottom: 1.5px solid #8e8e93;
  border-end-end-radius: 16px;
}

.msg-reply-stack.is-mine-src .msg-reply-ref::after {
  border-color: var(--bubble-out);
}

.msg-reply-ref.has-media {
  padding: 3px 10px 3px 3px;
  min-height: 42px;
}

.msg-line.is-out .msg-reply-ref.has-media {
  flex-direction: row-reverse;
  padding: 3px 3px 3px 10px;
}

.msg-line.is-out .msg-reply-ref-copy {
  align-items: flex-end;
  text-align: end;
}

.msg-reply-stack.is-mine-src .msg-reply-ref {
  background: var(--bubble-out);
}

button.msg-reply-ref {
  cursor: pointer;
}

button.msg-reply-ref:hover {
  filter: brightness(1.08);
}

.msg-reply-ref-media {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
}

.msg-reply-ref-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-reply-ref-media .icon {
  width: 19px;
  height: 19px;
  display: block;
}

.msg-reply-ref-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 1px 0;
}

.msg-reply-ref-kind {
  font-size: 12px;
  font-weight: 650;
  line-height: 15px;
  letter-spacing: 0.01em;
  opacity: 0.78;
}

.msg-reply-ref-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding-bottom: 0.18em;
  line-height: 1.25;
}

.msg-reply-ref-copy.has-kind .msg-reply-ref-text {
  -webkit-line-clamp: 1;
  opacity: 0.92;
}

.msg-reply-ref.is-sensitive {
  opacity: 0.78;
}

.msg-reply-stack .msg-bubble {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.msg-reply-stack > .msg-bubble.is-photo-only:not(.is-sensitive),
.msg-reply-stack > .msg-bubble.is-photo-only.is-open {
  max-width: min(72vw, 260px);
}

.msg-reply-stack > .msg-bubble.is-poll {
  max-width: min(360px, 100%);
}

/* A reaction sits over the bubble's top corner and over the line above it:
   it takes no room, so reacting moves nothing and the thread keeps its
   scroll. */
.msg-line.has-reacts {
  position: relative;
  z-index: 2;
}

.msg-bubble.is-reply-src {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.45);
}

.msg-bubble.is-photo-only.is-reply-src {
  box-shadow: none;
}

.msg-bubble.is-reply-swipe,
.msg-reply-stack.is-reply-swipe {
  transition: none;
  transform: translate3d(calc(var(--reply-swipe, 0) * 44px), 0, 0);
}

.msg-reply-hint {
  position: absolute;
  top: 50%;
  inset-inline-start: 8px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background-color: rgba(142, 142, 147, 0.4);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M10 8V5L3 12l7 7v-3.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  opacity: var(--reply-swipe, 0);
  transform: scale(calc(0.72 + var(--reply-swipe, 0) * 0.28));
  pointer-events: none;
  z-index: 3;
}

.msg-line.is-swiping-reply.is-armed .msg-reply-hint {
  background-color: var(--bubble-out);
}

.ctx-layer {
  position: fixed;
  inset: auto;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  /* Just over the conversation dock, under toasts and dialogs. */
  z-index: calc(var(--z-toast) - 2);
  pointer-events: none;
}

.ctx-dim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  pointer-events: auto;
  cursor: default;
}

/* The dock message, copied above the dim so it stays lit. */
.ctx-ghost {
  position: fixed;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}

.user-menu,
.admin-menu,
.post-menu,
.uni-more-menu,
.foot-menu-pop,
.admin-pass,
.ctx-menu {
  background: var(--menu-glass);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(50px) saturate(1.9);
  -webkit-backdrop-filter: blur(50px) saturate(1.9);
}

.post-menu.compose-reply-from-menu {
  background: var(--elevated);
  border: 1px solid var(--hairline);
  min-width: max-content;
  width: max-content;
  max-width: min(92vw, 420px);
  z-index: calc(var(--z-modal) + 8);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.post-menu.compose-reply-from-menu.is-sheet {
  position: relative;
  inset-inline-start: auto;
  inset-inline-end: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}
.post-menu.compose-reply-from-menu.is-sheet,
.compose-reply-from-menu.is-sheet {
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  top: auto !important;
  bottom: auto !important;
}


/* Boosted posts: the composer's panel (the Schedule panel's box, header,
   and fields, above) and the Sponsored line. The Overview's stats filter
   is hidden even though its rule sets a display. */
.engage-filter[hidden] {
  display: none;
}

.compose-boost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compose-boost-grid .field,
.compose-boost-near,
.compose-boost-zone {
  margin: 0;
  min-width: 0;
}

.compose-boost-grid input:not([type="checkbox"]) {
  padding-inline-end: 12px;
  font: inherit;
  font-size: 16px;
}

.compose-boost-near,
.compose-boost-zone,
.compose-boost-countries-field,
.compose-boost-orgs-field {
  grid-column: 1 / -1;
}

.compose-boost-near:not([hidden]),
.compose-boost-zone:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

/* The town list spans the Country, Town, and km row under it. */
.compose-boost-near,
.compose-boost-countries-field {
  position: relative;
  min-width: 0;
}

.compose-boost-town-field {
  min-width: 0;
}

.compose-boost-towns,
.compose-boost-country-hits {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  z-index: calc(var(--z-modal) + 40);
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

/* The countries picked, as the poll's picked hour chip. */
.compose-boost-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compose-boost-chips:not(:empty) {
  margin-bottom: 6px;
}

/* The people picked for an event: apart from the field above them, as
   from what follows (founder, 2026-11-27: no spacing before them). */
.invite-picked:not(:empty) {
  margin-top: 10px;
}

/* "Guests see each other." with its question mark beside it. */
/* An event's guests in its details: a section of its own, the width of
   the facts, with the answers as tiles (a product key's facts' look) and
   the people as account rows. */
.cal-detail .report-fact.is-guests > dt,
.cal-detail .report-fact.is-guests > dd {
  grid-column: 1 / -1;
}

.cal-detail .report-fact.is-guests > dd {
  padding-top: 4px;
}

.cal-guest-tally {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 480px) {
  .cal-guest-tally {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cal-tally {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

.cal-tally-k {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cal-tally-n {
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.cal-guest-list {
  margin: 10px 0 0;
}

.cal-guest-list:empty {
  display: none;
}

.cal-guest-more {
  list-style: none;
  padding-top: 6px;
}

.invite-see-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.compose-boost-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 17px;
  cursor: pointer;
}

.compose-boost-chip-x {
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

/* The price, set apart as the poll's closing time is. */
.compose-boost-price {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
}

.compose-boost-price.is-error {
  color: var(--status-bad);
  font-weight: 400;
}

.post-sponsor > summary {
  cursor: pointer;
  list-style: none;
}

.post-sponsor > summary::-webkit-details-marker {
  display: none;
}

.post-sponsor-why {
  margin-inline-start: 6px;
  color: var(--link);
}

.post-sponsor-lines {
  margin: 2px 0 6px;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: var(--text-13);
}

/* Sponsored is gold, the Credits colour: paid reach. The explanation link
   stays a link. */
.post.is-sponsored .post-pin-label {
  color: var(--sponsor-gold);
}

.post.is-sponsored .post-pin-label .icon {
  color: inherit;
}

.reach-boost {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.reach-boost ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 520px) {
  .compose-boost-near:not([hidden]),
  .compose-boost-zone:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* On a phone the town has a row of its own: its list hangs under it,
     not under the km below, where the composer's tools would cover it. */
  .compose-boost-town-field {
    position: relative;
    grid-column: 1 / -1;
  }
}

/* Members (members.rs): the label on a members-only post, and what one
   shows someone who is not a member. */
/* An AI-generated post: a small mark by its time; its tip says why
   (the author's label, or made through MCP), never which app. */
.post-ai {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--muted);
  cursor: help;
}

.post-ai .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .post-ai:hover {
    color: var(--fg);
  }
}

.post-members-label .icon,
.post-close-friends-label .icon {
  width: 17px;
  height: 17px;
}

.post-members-lock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 6px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--fg);
}

.post-members-lock > .icon {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--muted);
}

.post-members-lock > p {
  flex: 1 1 160px;
  margin: 0;
  font-size: var(--text-15);
}

.post-members-lock > .btn {
  width: auto;
  flex: none;
}

.post-text.is-members {
  color: var(--muted);
  font-style: italic;
}

/* Boost: "Reach everyone" spans the grid; the targeting fields sit in the
   grid as before (the fieldset adds no box) and dim while it is on. */
.compose-boost-everyone-row {
  grid-column: 1 / -1;
}

.compose-boost-target {
  display: contents;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.compose-boost-target:disabled .field {
  opacity: 0.5;
}

/* Bookmarks: the row of folders, and the folder's own actions beside it.
   It sits in the column the posts do: the folders reach its edges. */
.bookmark-folders-bar {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  /* The folders start where other pages' first row does. */
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.bookmark-folders-bar .bookmark-folders {
  flex: 1 1 0;
  min-width: 0;
}

/* The folder menu ("…") sits at the row's end, a round button like the
   Work pages' menu. */
.bookmark-folder-drop {
  align-self: center;
}

.bookmark-folder-more.post-admin {
  height: var(--control-h);
}

.bookmark-folder-menu {
  min-width: 220px;
}

.folder-pick {
  max-height: min(48vh, 360px);
  overflow-y: auto;
  margin-bottom: 12px;
}

/* ---- Work: Tasks, Calendar, Notes ---- */
.work-page.settings-sheets {
  /* The footer below gives the room at the end, as on the other pages. */
  padding: 20px var(--stage-pad-x) 0;
}

/* A phone's stage has its side and top padding already: the page starts
   where the others do. */
@media (max-width: 800px) {
  .work-page.settings-sheets {
    padding-inline: 0;
    padding-top: 0;
  }
}
/* Each Work page's content is one bordered sheet, as the other pages
   group theirs (founder, 2026-12-02: "one big grouping element on each
   work page"; it was taken off on 2026-11-16). */
/* A phone: the sheet's padding is a phone's, so the views keep one row. */
@media (max-width: 800px) {
  .work-page > .work-sheet.admin-sheet {
    padding: 16px 12px;
  }
  .work-views > .seg-item {
    gap: 4px;
    padding-inline: 6px;
  }
}
.work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.work-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--text-24, 24px);
  font-weight: 700;
  line-height: 1.2;
}
/* End-to-end encrypted: the lock by the title (`.e2ee-mark`, as a
   conversation's), its words on hover, focus or touch. */
.work-title .e2ee-mark {
  flex: none;
}
.work-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-14, 14px);
}
.work-lead .icon {
  width: 17px;
  height: 17px;
  flex: none;
}
/* The plan's room under it: the words and a thin bar. */
.work-storage {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin: 0;
  font-size: var(--text-12, 12px);
  line-height: 1.2;
  text-align: end;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.work-storage[hidden] {
  display: none;
}
/* As wide as the words over it (founder, 2026-12-01: it was a stub of
   72 px under a longer line). */
.work-storage-meter {
  justify-self: stretch;
  min-width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.work-storage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
}
.work-storage.is-full .work-storage-meter span {
  background: #ff3b30;
}
/* A task on the Calendar: its box before its title, done ones struck. */
.is-task.is-done :is(.cal-chip-title, .cal-agenda-title),
.cal-allday-chip.is-task.is-done {
  text-decoration: line-through;
  opacity: 0.6;
}
.work-upsell {
  max-width: 440px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--card);
}
/* Messages' PIN screen, in the page's flow: nothing behind it to dim. */
.work-page .work-lock .msg-lock {
  position: static;
  padding: 24px 0;
  background: none;
}
.work-upsell p {
  margin: 0 0 14px;
}
/* The head of a Work page, the same on Calendar, Tasks, Notes and
   Contacts (founder, 2026-12-01: "make it consistent"; `work/menu.rs`
   `head`). First row: the lead (Today and the day between its arrows on a
   page with days, the views on one without), with the search's button and
   the menu at the row's end. Under it the views of a page with days, the
   search once it is opened, and the tags. */
.work-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.work-bar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.work-bar-top > :is(.seg, .work-day-nav) {
  flex: 1 1 auto;
  min-width: 0;
}
.work-bar-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.work-find-toggle[aria-expanded="true"] {
  background: var(--hover);
  color: var(--fg);
}
.work-find-row {
  display: flex;
}
.work-bar > .tag-bar {
  margin: 0;
}
/* Today, back, ahead, and what is shown: the Calendar's and Tasks' one
   switcher. The title has the room of a long one where it stands in the
   row, so nothing moves as the day changes. */
.work-day-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.work-day-title {
  min-width: 0;
  margin: 0 6px;
  overflow: hidden;
  font-size: 19px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: capitalize;
}
.work-step.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--control-h);
  min-width: var(--control-h);
  height: var(--control-h);
  padding: 0;
  border-radius: 50%;
}
.work-step .icon {
  width: 21px;
  height: 21px;
}
html[dir="rtl"] .work-step .icon {
  transform: scaleX(-1);
}
@media (max-width: 720px) {
  /* A phone: the title on a line of its own over Today and the arrows,
     the two buttons beside them. */
  .work-bar-top {
    align-items: end;
  }
  .work-day-nav .work-day-title {
    order: -1;
    flex: 1 1 100%;
    margin: 0 0 4px;
  }
}
.work-input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--control-h);
  padding: 0 14px;
  border: 1px solid var(--input-line);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
}
.work-input:focus {
  outline: none;
  border-color: var(--input-focus);
}

/* Event colours, with the shades drawn from them. */
.c-default { --ev: #7c8796; }
.c-red { --ev: #e5484d; }
.c-orange { --ev: #f76b15; }
.c-yellow { --ev: #d4a017; }
.c-green { --ev: #30a46c; }
.c-teal { --ev: #12a594; }
.c-blue { --ev: #0090ff; }
.c-purple { --ev: #8e4ec6; }
.c-pink { --ev: #d6409f; }

/* Tasks */
/* The day at a glance, under the head: how much is done, and its bar. */
.task-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.task-summary-count {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.task-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--status-ok);
  transition: width 0.3s var(--ease);
}
/* The invitations over the Calendar: the page's sheet in the dialog,
   without a frame of its own inside the dialog's. */
.invite-popup .invitations {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}
.invite-popup .invitations > .admin-sheet {
  padding: 0;
  border: 0;
  background: transparent;
}
/* The list's title is the dialog's. */
.invite-popup .invitations > .admin-sheet:not(.invite-sheet) > .rate-sheet-head {
  display: none;
}

/* A repeating task's last day: only while it repeats. */
.ox-ask:has(#work-t-repeat option[value="never"]:checked) .task-until {
  display: none;
}

/* Tags: one colour each, the same on Tasks, Calendar and Notes. */
.work-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.work-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ev) 16%, transparent);
  color: color-mix(in srgb, var(--ev) 55%, var(--fg));
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
  white-space: nowrap;
}
.work-tag > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-tag > i,
.tag-pick > i,
.tag-suggest-item > i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ev);
}
.work-tag-dots {
  display: inline-flex;
  gap: 3px;
  margin-inline-start: 5px;
  vertical-align: middle;
}
.work-tag-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg) 60%, transparent);
}
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 0 14px;
}
.tag-pick {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tag-pick .seg-n {
  font-size: 12px;
}
.tag-pick.is-on {
  border-color: var(--fg);
  color: var(--fg);
}
.tag-pick[class*=" c-"].is-on {
  border-color: var(--ev);
  background: color-mix(in srgb, var(--ev) 16%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .tag-pick:hover {
    color: var(--fg);
    background: var(--hover);
  }
}
.tag-pick:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* The tag field: picked tags and a box to type the next, with what there
   is to pick under it. */
.tag-field-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--line, var(--hairline));
  border-radius: 12px;
  background: var(--card-2, transparent);
  cursor: text;
}
.tag-field-box:focus-within {
  border-color: var(--fg);
}
.tag-field-box .work-tag {
  padding-inline-end: 2px;
  font-size: 14px;
  line-height: 26px;
}
/* The id in :not() outranks the site's input rules, whose :not() chains
   style every text field. */
.tag-field-box input.tag-input:not(#tag-input-plain),
.tag-field-box input.tag-input:not(#tag-input-plain):focus,
.tag-field-box input.tag-input:not(#tag-input-plain):focus-visible {
  flex: 1 1 120px;
  width: auto;
  min-width: 120px;
  height: 28px;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 4px;
  background: transparent;
  color: var(--fg);
  font-size: var(--text-15, 15px);
  line-height: 30px;
  outline: none;
}
.tag-x {
  all: unset;
  display: grid;
  place-items: center;
  /* The smallest target a finger or a shaky hand is given (WCAG 2.5.8). */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.tag-x:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, var(--ev) 26%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .tag-x:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--ev) 26%, transparent);
  }
}
.tag-suggest {
  display: grid;
  gap: 2px;
  max-height: 232px;
  overflow: auto;
  margin-top: 6px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--elevated, var(--bg));
}
.tag-suggest[hidden] {
  display: none;
}
.tag-suggest-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.tag-suggest-item > i {
  width: 9px;
  height: 9px;
}
.tag-suggest-item.is-active {
  background: var(--hover);
}
.tag-suggest-item.is-new {
  color: var(--muted);
}
.tag-suggest-item.is-new.is-active {
  color: var(--fg);
}
.tag-suggest-note {
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Manage tags. */
.tag-manage {
  display: grid;
  /* As wide as the sheet: an auto column grew to its widest row and the
     sheet scrolled sideways on a narrow phone (2026-11-20). */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.tag-manage > .field-note {
  margin: 0;
}
.tag-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
.tag-row {
  border-radius: 12px;
}
.tag-row.is-focus {
  background: var(--hover);
}
.tag-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 6px;
}
.tag-row-dot {
  all: unset;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ev);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bg) 30%, transparent);
}
.tag-row-dot:focus-visible,
.tag-row.is-picking .tag-row-dot {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ev);
}
.tag-row-name {
  min-width: 0;
  height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .tag-row-name:hover {
    border-color: var(--hairline);
  }
}
.tag-row-name:focus {
  border-color: var(--fg);
  outline: none;
}
.tag-row-delete {
  min-width: 32px;
  padding: 0 8px;
}
.tag-row-undo,
.tag-row.is-gone .tag-row-delete {
  display: none;
}
.tag-row.is-gone .tag-row-undo {
  display: inline-flex;
}
.tag-row.is-gone :is(.tag-row-name, .tag-row-dot) {
  opacity: 0.45;
  text-decoration: line-through;
  pointer-events: none;
}
.tag-row-colors {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 8px 10px 40px;
}
/* A tag's rule, under its name: its events are canceled during the picked
   tag's events. */
.tag-row-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 0 8px 10px 40px;
  color: var(--muted);
  font-size: 13px;
}
/* Any number of tags, each a chip with its colour: pressed ones cancel. */
.tag-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* No wider than its row: a tag with a long name made the sheet scroll
     sideways on a narrow phone; its chip is cut short instead. */
  min-width: 0;
  max-width: 100%;
}
.tag-rule-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-13);
  cursor: pointer;
}
.tag-rule-chip[aria-pressed="true"] {
  border-color: var(--link);
  background: color-mix(in srgb, var(--link) 14%, transparent);
  color: var(--fg);
}
.tag-row-rule .tag-rule-edit {
  min-height: 30px;
  height: auto;
  padding: 0 12px;
  font-size: var(--text-13);
}
.tag-rule-chips:empty {
  display: none;
}
.tag-rule-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--ev, var(--muted));
}
@media (pointer: coarse) {
  .tag-rule-chip {
    min-height: 36px;
  }
}
.tag-row.is-gone .tag-row-rule {
  display: none;
}
.tag-row.is-picking .tag-row-colors {
  display: flex;
}
.tag-new-row {
  display: flex;
  gap: 8px;
}
.tag-new-row .tag-new-name {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 480px) {
  .tag-row-colors {
    padding-inline-start: 6px;
  }
}
.task-group {
  margin-bottom: 18px;
}
.task-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.task-group.is-late .task-group-head {
  color: var(--status-bad);
}
.task-late-all {
  margin-inline-start: auto;
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.task-group-n {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--hairline);
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* A line between two tasks, straight across, as between two notes. */
.task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 6px 12px 10px;
}
.task-list > .task + .task {
  border-top: 1px solid var(--line);
}
/* The grip a task is dragged by: quiet until the row is pointed at. */
.task-grip {
  all: unset;
  box-sizing: border-box;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-inline-start: auto;
  border-radius: 8px;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  opacity: 0.55;
}
.task-grip .icon {
  width: 18px;
  height: 18px;
}
.task-grip:focus-visible {
  outline: 2px solid var(--focus);
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .task:hover .task-grip {
    opacity: 1;
  }
  .task-grip:hover {
    background: var(--hover);
  }
}
.task.is-dragging {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.task.is-dragging .task-grip {
  cursor: grabbing;
  opacity: 1;
}
.task.is-dragging + .task {
  border-top-color: transparent;
}
.task-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.task.is-high .task-check { border-color: var(--status-bad); }
.task.is-medium .task-check { border-color: var(--status-warn); }
.task.is-low .task-check { border-color: #0090ff; }
.task-check:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) {
  .task-check:hover::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border: 2px solid var(--muted);
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg);
  }
}
.task-check[aria-checked="true"] {
  border-color: var(--fg);
  background: var(--fg);
}
.task-check[aria-checked="true"]::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border: 2px solid var(--bg);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
.task-body {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.task-main {
  all: unset;
  display: grid;
  gap: 4px;
  min-width: 0;
  cursor: pointer;
}
.task-title {
  color: var(--fg);
  font-size: var(--text-15, 15px);
  overflow-wrap: anywhere;
}
.task.is-done .task-title {
  color: var(--muted);
  text-decoration: line-through;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-chip {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--hairline);
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  white-space: nowrap;
}
.task-chip.is-late,
.task-chip.is-high {
  color: var(--status-bad);
  background: color-mix(in srgb, var(--status-bad) 14%, transparent);
}
/* The warning colour leans to the text colour: 4.5:1 or more on its own
   tint (the light amber read 3.6:1). */
.task-chip.is-medium {
  color: color-mix(in srgb, var(--status-warn) 78%, var(--fg));
  background: color-mix(in srgb, var(--status-warn) 14%, transparent);
}
.task-chip.is-steps.is-complete {
  color: var(--status-ok);
}
.task-notes {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-steps {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  display: grid;
  gap: 4px;
}
.task-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.task-step.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}
.task-step-check {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.task-step-check[aria-checked="true"] {
  border-color: var(--fg);
  background: var(--fg);
}
.task-step-check[aria-checked="true"]::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border: 2px solid var(--bg);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
/* A Work page's file as it is stored, to read (ui/work.rs, `show_file`). */
.work-file {
  max-height: min(60vh, 520px);
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: start;
  user-select: text;
}
@media (hover: hover) and (pointer: fine) {
  .task:hover {
    background: var(--hover);
  }
}

/* The task sheet */
.task-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.task-pick {
  all: unset;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.task-pick:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.work-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-seg-item {
  position: relative;
  cursor: pointer;
}
.work-seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.work-seg-item span {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14px;
}
.work-seg-item input:checked + span {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.work-seg-item.is-high input:checked + span {
  border-color: var(--status-bad);
  background: var(--status-bad);
}
.work-seg-item.is-medium input:checked + span {
  border-color: var(--status-warn);
  background: var(--status-warn);
}
.work-seg-item input:focus-visible + span {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.work-steps {
  display: grid;
  gap: 6px;
}
.work-step-row,
.work-step-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-step-row .work-step-text,
.work-step-add .work-step-new {
  flex: 1 1 auto;
  min-width: 0;
}
.work-step-done {
  flex: none;
  width: 18px;
  height: 18px;
}
.work-step-remove {
  min-width: 32px;
  padding: 0 8px;
}
/* Delete on a line of its own at the end of the sheet; when the task was
   added is a quiet line under the sheet's title. */
.task-sheet-foot {
  display: flex;
  justify-content: flex-start;
  margin: 16px 0 0;
}
.task-added {
  margin: -6px 0 2px;
}

/* Calendar */
.cal-found-day {
  font-weight: 600;
}
.cal-grid {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.cal-weekdays,
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
/* A shared calendar's week view: the one row, tall enough for its day. */
.shared-calendar-grid.is-week .cal-day {
  min-height: 220px;
}

.cal-weekdays span {
  padding: 8px 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-transform: capitalize;
  border-bottom: 1px solid var(--hairline);
}
.cal-day {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 104px;
  padding: 6px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  min-width: 0;
}
.cal-week .cal-day:last-child {
  border-inline-end: 0;
}
.cal-week:last-child .cal-day {
  border-bottom: 0;
}
.cal-day.is-weekend {
  background: color-mix(in srgb, var(--card) 35%, transparent);
}
.cal-day.is-other {
  color: var(--muted);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.cal-day.is-other .cal-chips {
  opacity: 0.6;
}
.cal-day.is-picked {
  background: var(--hover);
  box-shadow: inset 0 0 0 1.5px var(--hairline-strong);
}
.cal-day:focus-visible {
  box-shadow: inset 0 0 0 2px var(--fg);
}
.cal-date {
  font-size: 14px;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.cal-day.is-today .cal-date {
  background: var(--fg);
  color: var(--bg);
}
.cal-chips {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cal-chip {
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ev) 18%, transparent);
  border-inline-start: 3px solid var(--ev);
  color: var(--fg);
  font-size: 12px;
  line-height: 17px;
  white-space: nowrap;
}
.cal-chip.is-allday {
  background: color-mix(in srgb, var(--ev) 32%, transparent);
}
.cal-chip-time {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cal-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip.is-tentative,
.cal-agenda-item.is-tentative,
.cal-block.is-tentative,
.cal-allday-chip.is-tentative {
  border-inline-start-style: dashed;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ev) 12%, transparent) 6px 10px);
}
.cal-chip.is-free,
.cal-block.is-free,
.cal-allday-chip.is-free {
  opacity: 0.7;
}
/* An event the account was invited to (Invitations): read-only, outlined;
   one not answered yet is fainter. */
.cal-chip.is-invited,
.cal-agenda-item.is-invited,
.cal-block.is-invited,
.cal-allday-chip.is-invited {
  outline: 1px dashed color-mix(in srgb, var(--ev) 60%, transparent);
  outline-offset: -1px;
}
.cal-chip.is-unanswered,
.cal-block.is-unanswered,
.cal-allday-chip.is-unanswered {
  opacity: 0.75;
}
.cal-more {
  color: var(--muted);
  font-size: 12px;
}
.cal-dots {
  display: none;
  gap: 3px;
  justify-content: center;
}
.cal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev);
}
.cal-day-panel {
  margin-top: 18px;
}
.cal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cal-day-head h3 {
  margin: 0;
  font-size: 17px;
  text-transform: capitalize;
}
.cal-agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cal-agenda-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ev, var(--muted)) 10%, var(--card));
  border-inline-start: 4px solid var(--ev, var(--muted));
}
button.cal-agenda-item {
  cursor: pointer;
}
button.cal-agenda-item:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.cal-agenda-item.is-free {
  opacity: 0.8;
}
/* One width, so the titles line up under each other. */
.cal-agenda-time {
  flex: 0 0 9rem;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.cal-agenda-what {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cal-agenda-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cal-agenda-where,
.cal-agenda-notes {
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
}
.cal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cal-tag {
  color: var(--muted);
  font-size: 13px;
}
.cal-agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.cal-agenda-date {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: capitalize;
}
.cal-agenda-day.is-today .cal-agenda-date {
  color: var(--status-bad);
}
.cal-goto {
  all: unset;
  cursor: pointer;
}
.cal-goto:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* The hour grid (week and day) */
.cal-time {
  --hour: 48px;
  --gutter: 56px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.cal-time-head,
.cal-allday,
.cal-hours-body {
  display: grid;
  grid-template-columns: var(--gutter) repeat(var(--cols), minmax(0, 1fr));
}
.cal-time-head {
  border-bottom: 1px solid var(--hairline);
}
.cal-col-head {
  all: unset;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 2px;
  cursor: pointer;
  border-inline-start: 1px solid var(--line);
}
.cal-col-wd {
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}
.cal-col-dn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
}
.cal-col-head.is-today .cal-col-dn {
  background: var(--fg);
  color: var(--bg);
}
.cal-col-head:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}
.cal-gutter {
  padding: 6px 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: end;
}
.cal-allday {
  border-bottom: 1px solid var(--hairline);
}
.cal-allday-cell {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 4px 3px;
  border-inline-start: 1px solid var(--line);
}
.cal-allday-chip {
  all: unset;
  box-sizing: border-box;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ev) 32%, transparent);
  border-inline-start: 3px solid var(--ev);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cal-scroll {
  max-height: min(68vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cal-hours-body {
  position: relative;
  height: calc(var(--hour) * 24);
}
.cal-hours {
  position: relative;
}
.cal-hour {
  position: absolute;
  inset-inline-end: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cal-col {
  position: relative;
  border-inline-start: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour));
  cursor: copy;
}
.cal-col.is-today {
  background-color: color-mix(in srgb, var(--hover) 60%, transparent);
}
.cal-block {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 18px;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid var(--bg);
  border-inline-start: 3px solid var(--ev);
  border-radius: 7px;
  background: color-mix(in srgb, var(--ev) 24%, var(--bg));
  color: var(--fg);
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
}
.cal-block:focus-visible {
  outline: 2px solid var(--fg);
  z-index: 3;
}
.cal-block-title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-block-time,
.cal-block-where {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* One line: the title keeps its room, the time gives way first. */
.cal-block.is-short {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 1px;
}
.cal-block.is-short .cal-block-title {
  flex: 0 1 auto;
  min-width: 0;
}
.cal-block.is-short .cal-block-time {
  flex: 0 1000 auto;
  min-width: 0;
}
.cal-block.is-short .cal-block-where {
  display: none;
}
.cal-now {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  height: 2px;
  background: var(--status-bad);
  pointer-events: none;
}
.cal-now::before {
  content: "";
  position: absolute;
  inset-inline-start: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-bad);
}
@media (hover: hover) and (pointer: fine) {
  .cal-block:hover,
  .cal-allday-chip:hover {
    filter: brightness(1.08);
    z-index: 2;
  }
  .cal-day:hover {
    background: var(--hover);
  }
  .cal-col-head:hover .cal-col-dn {
    background: var(--hover);
  }
  .cal-col-head.is-today:hover .cal-col-dn {
    background: var(--fg);
  }
}

/* An event's details */
.cal-detail {
  display: grid;
  gap: 12px;
}
.cal-detail-when {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  text-transform: capitalize;
}
/* Its menu (duplicate, cancel dates, delete) at the end of the line. */
.cal-detail-when > span {
  flex: 1 1 auto;
  min-width: 0;
}
.cal-detail-when > .work-more {
  margin-inline-start: auto;
}
.cal-detail-when .cal-dot {
  flex: none;
  width: 12px;
  height: 12px;
}
/* Its facts are the site's fact table (.report-facts); in the dialog it
   keeps two columns on a phone too, the labels short. */
.cal-detail .report-facts {
  grid-template-columns: minmax(6.5em, max-content) minmax(4em, 1fr);
}
@media (max-width: 560px) {
  .cal-detail .report-facts dt,
  .cal-detail .report-facts dd {
    padding: 9px 12px;
    border-top: 1px solid var(--line);
  }
  .cal-detail .report-facts dt {
    background: color-mix(in srgb, var(--fg) 3%, transparent);
  }
  .cal-detail .report-fact:first-child > dt,
  .cal-detail .report-fact:first-child > dd {
    border-top: 0;
  }
}
.cal-detail .report-fact.is-tags dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 7px;
}
.cal-detail .report-fact.is-canceled dd {
  color: var(--status-bad);
}

/* The event sheet */
/* Room for the picked colour's ring, which a scrolling sheet would cut. */
.cal-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px;
}
.cal-swatch {
  position: relative;
  cursor: pointer;
}
.cal-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cal-swatch span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ev);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bg) 30%, transparent);
}
.cal-swatch input:checked + span {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ev);
}
.cal-swatch input:focus-visible + span {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}
.ox-ask:has(#work-e-allday:checked) .work-time {
  display: none;
}
.ox-ask:has(#work-e-allday:checked) .cal-when {
  grid-template-columns: minmax(0, 1fr);
}
.ox-ask:has(#work-e-repeat option[value="never"]:checked) .cal-until {
  display: none;
}
/* The event sheet's cancel settings, as one box with its name on the
   edge (as the steps of Product keys are): the canceled dates and the tag
   that cancels it. */
.cal-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 10px 0 8px;
  padding: 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
}

.cal-group > legend {
  padding: 0 8px;
  color: var(--fg);
  font-size: var(--text-13);
  font-weight: 600;
}

.cal-group > .field {
  margin: 0;
}

.cal-skips {
  display: grid;
  gap: 8px;
}
.cal-skip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cal-skip-list .field-note {
  margin: 0;
}
.cal-skip-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 2px 2px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 15px;
}
.cal-skip-row span {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}
.cal-skip-remove {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  border-radius: 50%;
}
.cal-skip-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
@media (max-width: 480px) {
  .cal-skip-add {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cal-skip-add .cal-skip-add-btn {
    grid-column: 1 / -1;
  }
}

/* Work's menus: a ⋯ button, and a long press that is not a selection. */
.work-more {
  flex: none;
  min-width: 36px;
  padding: 0 8px;
}
.work-more .icon {
  width: 19px;
  height: 19px;
}
#work-page [data-menu],
.share-row {
  -webkit-touch-callout: none;
}
#work-page :is(.cal-block, .cal-allday-chip, .cal-agenda-item, .cal-day, .note-item) {
  -webkit-user-select: none;
  user-select: none;
}
.ctx-layer.is-top {
  z-index: calc(var(--z-modal) + 10);
}

@media (max-width: 720px) {
  /* The time over the title, where a column would squeeze it. */
  .cal-agenda-item {
    flex-direction: column;
    gap: 2px;
  }
  .cal-agenda-time {
    flex: none;
  }
  /* A page's tags in one row that scrolls sideways. */
  .tag-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .tag-bar::-webkit-scrollbar {
    display: none;
  }
  .tag-bar > * {
    flex: none;
  }
  .cal-day {
    min-height: 64px;
    padding: 4px;
  }
  .cal-chips {
    display: none;
  }
  .cal-dots {
    display: flex;
  }
  .cal-time {
    --gutter: 42px;
    --hour: 44px;
  }
  .cal-gutter,
  .cal-hour {
    font-size: 11px;
  }
  .cal-gutter {
    padding-inline-end: 4px;
    overflow-wrap: anywhere;
  }
  .cal-hour {
    inset-inline-end: 4px;
  }
  .cal-time:not(.is-day) .cal-block {
    padding-inline: 3px;
  }
  .cal-time:not(.is-day) .cal-block-time,
  .cal-time:not(.is-day) .cal-block-where {
    display: none;
  }
  .cal-col-dn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}
.shared-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.shared-calendar-updated {
  margin-top: 24px;
}
.share-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.share-what {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}
.share-new-head {
  margin: 16px 0 8px;
  font-size: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
/* The box lines up with the fields; the row's hover reaches past it. */
/* Its box lines up with the fields: no side padding, nothing wider than
   the form. */
.work-allday {
  margin: 4px 0;
  padding-inline: 0;
}

/* Notes */
/* Notes take the screen: the page is at least its height, the list and
   the editor fill what the heading leaves. */
.work-page[data-work="notes"] {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100dvh;
}
.work-page[data-work="notes"] > .work-sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.work-page[data-work="notes"] .work-app[data-state="ready"] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
/* The list fills the page; an open note is a sheet over it (founder,
   2026-11-17: no editing in place), so closing it leaves the list where
   it was. */
.notes {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
}
.note-side {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
/* The notes, a line between them (founder, 2026-12-01: "weird without
   separator"): the title with when it was last written at its end, two
   lines of what it says, its tags. */
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.note-list > li + li {
  border-top: 1px solid var(--line);
}
.note-item {
  all: unset;
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.note-item.is-on {
  background: var(--card);
}
.note-item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .note-item:hover {
    background: var(--hover);
  }
}
.note-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.note-item-title {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.note-item-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.note-item-snippet:empty {
  display: none;
}
.note-item-when {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.notes.is-editing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
}
.note-editor {
  position: fixed;
  z-index: 91;
  inset: 6vh 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(760px, calc(100vw - 32px));
  max-height: 88vh;
  margin-inline: auto;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* The site's dialog (menus.css, `.ox-ask`): its ground, line and
     corners, no shadow. */
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: none;
}
.note-editor-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.note-editor-bar > *,
.note-editor-bar > .field-note + .btn {
  margin-block: 0;
}
.note-saved {
  margin-inline-end: auto;
  min-width: 0;
}
.note-editor-bar > .note-back {
  margin: 0 -6px 0 0;
}
.note-back,
.note-mode {
  flex: none;
}
.note-title {
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  outline: none;
}
.note-tags .tag-field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.note-tags .tag-field-box {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
}
.note-tags .tag-field-box:focus-within {
  border-color: var(--hairline);
  padding-inline: 8px;
}
.note-item .work-tags {
  margin-top: 2px;
}
.note-body {
  flex: 1 1 auto;
  min-height: 40vh;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15, 15px);
  line-height: 1.55;
  outline: none;
}
/* A note drawn from its Markdown. */
.note-preview {
  flex: 1 1 auto;
  min-height: 45vh;
  min-width: 0;
  font-size: var(--text-15, 15px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.note-preview.is-empty {
  color: var(--muted);
}
.note-preview > :first-child {
  margin-top: 0;
}
.note-preview :is(p, ul, ol, blockquote, pre) {
  margin: 0 0 12px;
}
.note-preview :is(h3, h4, h5, h6) {
  margin: 18px 0 8px;
  line-height: 1.3;
}
.note-preview h3 {
  font-size: 21px;
}
.note-preview h4 {
  font-size: 18px;
}
.note-preview :is(h5, h6) {
  font-size: 16px;
}
.note-preview :is(ul, ol) {
  padding-inline-start: 22px;
}
.note-preview li + li {
  margin-top: 3px;
}
.note-preview .md-task {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-inline-start: -22px;
  list-style: none;
}
.note-preview .md-check {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fg);
  cursor: pointer;
  transform: translateY(2px);
}
.note-preview .md-check:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}
.note-preview blockquote {
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--hairline-strong, var(--hairline));
  color: var(--muted);
}
.note-preview code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--hover);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.note-preview pre {
  overflow-x: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hover);
}
.note-preview pre code {
  padding: 0;
  background: none;
}
.note-preview hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}
.note-preview a {
  color: var(--link);
}

@media (max-width: 700px) {
  /* On a phone the sheet is the whole screen, above the tab bar. */
  .note-editor {
    inset: 0;
    width: auto;
    max-height: none;
    padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* An occurrence that is over is dimmed (founder, 2026-11-17). */
:is(.cal-chip, .cal-agenda-item, .cal-allday-chip, .cal-block).is-past {
  opacity: 0.5;
}

/* A canceled occurrence stays in view, struck through and faded. */
:is(.cal-chip, .cal-agenda-item, .cal-allday-chip, .cal-block).is-canceled {
  opacity: 0.55;
}
.is-canceled :is(.cal-chip-title, .cal-agenda-title, .cal-block-title),
.cal-allday-chip.is-canceled {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-detail-row.is-canceled dd {
  color: #ff3b30;
}

/* Who can reply > Regions: the menu's second list. A row put away is
   gone (a menu row is a flex box, which the attribute alone does not
   hide); Regions has its arrow at the end, the way back its arrow first,
   turned round. */
.compose-reply-from-menu > [hidden] {
  display: none !important;
}

.compose-reply-from-menu .reply-sub-open > .nav-chev {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-inline-start: auto;
  color: var(--muted);
}

.compose-reply-from-menu .reply-sub-open.is-on::after {
  content: none;
}

.compose-reply-from-menu .reply-sub-back {
  color: var(--muted);
  font-weight: 600;
}

.compose-reply-from-menu .reply-sub-back > .nav-chev {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transform: rotate(180deg);
}

[dir="rtl"] .compose-reply-from-menu .reply-sub-back > .nav-chev {
  transform: none;
}

[dir="rtl"] .compose-reply-from-menu .reply-sub-open > .nav-chev {
  transform: rotate(180deg);
}

/* The regions' heading in the sheet of a post already posted. */
.reply-from-sheet .choice-head {
  margin: 10px 8px 2px;
  color: var(--muted);
  font-size: var(--text-13);
  font-weight: 600;
}

/* "Why am I seeing this?": the reasons, a line each. */
.why-sheet .why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.why-sheet .why-list > li {
  position: relative;
  padding-inline-start: 18px;
  line-height: var(--lh-20);
}

.why-sheet .why-list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--link);
}

/* ---- Work fills the screen ----
   Tasks, Calendar and Notes are tools: the page does not scroll, its body
   does, under a title and bars that stay put, and a view that scrolls of
   itself (a week's or a day's hours) takes all the room left, so there is
   one scroll, never one in another (founder, 2026-11-16). No footer. */
.stage:has(> .work-page) {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--lock-bar, 0px));
  overflow: hidden;
  padding-bottom: 0;
}

/* A desktop's page does not scroll behind Work. A phone's body is the
   app shell already (on iOS the shell's own height, which `100dvh` here
   overrode: the tasks ran under the tab bar, founder, 2026-11-16). */
@media (min-width: 801px) {
  body.app:has(> .stage > .work-page) {
    height: 100dvh;
    overflow: hidden;
  }
}

@media (max-width: 800px) {
  /* A phone's stage is the grid row above the tab bar already. */
  body.has-tabbar.app > .stage:has(> .work-page) {
    height: auto;
    overflow: hidden;
  }
}

.stage:has(> .work-page) > .site-foot-mobile {
  display: none;
}

.work-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.work-page > .work-sheet {
  flex: 1 1 auto;
  min-height: 0;
}

.work-page .work-app[data-state="ready"] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.work-page .work-app > :not(.work-body) {
  flex: none;
}

.work-body {
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: -4px;
  padding: 0 4px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* A week or a day: its hours scroll, in all the height there is. */
.work-body:is(.is-week, .is-day) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 12px;
}

.work-body:is(.is-week, .is-day) > .cal-time {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.work-body:is(.is-week, .is-day) .cal-time-head,
.work-body:is(.is-week, .is-day) .cal-allday {
  flex: none;
}

/* The month's scroll bar takes its width beside the grid: the bars over
   it end where the grid does (`--work-sb`, measured by the calendar). A
   week or a day keeps its bar inside its box: its weekday and all-day rows
   leave the same room as the hours under them, so the columns line up
   (founder, 2026-11-28). With overlay scroll bars both are 0. */
.work-page[data-work="calendar"] .work-app > :not(.work-body) {
  padding-inline-end: var(--work-sb, 0px);
}

.cal-time-head,
.cal-allday {
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.cal-scroll {
  scrollbar-gutter: stable;
}

.work-body:is(.is-week, .is-day) .cal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

/* Notes: the list scrolls in its column, the note in its own. */
.work-page[data-work="notes"] .notes {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 12px;
}

.work-page[data-work="notes"] .note-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.work-page[data-work="notes"] .note-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
}



/* The shared calendar a guest opens: one scroll, the page's own, with the
   month and its arrows pinned at the top of it as the page goes by. */
.work-page.shared-calendar {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 16px;
}

/* Each part keeps its height; the page scrolls (a column of flex items
   would squeeze the month to fit). */
.work-page.shared-calendar > * {
  flex: none;
}

.shared-calendar > .work-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-block: 8px;
  background: var(--bg);
}

/* Search > Use my location: the button and where the list is from. */
.nearby-here-row {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin: 12px 0;
}

.nearby-from-seg {
  width: 100%;
}

/* Both choices' icons the same size (founder, 2026-11-17). */
.nearby-from-seg .seg-item {
  gap: 6px;
}

.nearby-from-seg .seg-item .icon {
  flex: none;
  width: 19px;
  height: 19px;
}

.nearby-from {
  margin: 0;
}

/* Work > Contacts (founder, 2026-11-17): the list by letter, a card per
   contact, and a sheet with as many phones, emails and addresses as it
   has. */
.contacts-body {
  position: relative;
}
.contact-face {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--link) 18%, var(--card));
  color: var(--fg);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.contact-face.is-small {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.contact-face.is-large {
  width: 64px;
  height: 64px;
  font-size: 26px;
}
.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Pinned contacts: faces in rows of three above the list, as the pinned
   conversations are. */
.contact-pins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px 0 0;
  list-style: none;
}
.contact-pin-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 8px 4px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .contact-pin-open:hover {
    background: var(--hover);
  }
}
.contact-pin-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-13);
}
.contacts-letter {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 10px 4px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
}
.contact-main {
  all: unset;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.contact-main:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .contact-row:hover {
    background: var(--hover);
  }
}
.contact-what {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.contact-what strong,
.contact-sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.contact-sub {
  color: var(--muted);
  font-size: 14px;
}
.contact-star {
  margin-inline-start: 6px;
  color: #c9a227;
  font-size: 14px;
}
.contacts-soon {
  margin: 0 0 12px;
}
.contacts-soon h3 {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.contacts-soon ul {
  list-style: none;
  margin: 0;
  padding: 0 4px 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.contacts-soon-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
.contacts-soon-item > span:last-child {
  display: grid;
}
.contacts-soon-item.is-today {
  border-color: color-mix(in srgb, var(--link) 55%, transparent);
  background: color-mix(in srgb, var(--link) 10%, transparent);
}
.contacts-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px 0;
}
.contacts-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
/* The letters down the side, on a phone, to jump to one. */
.contacts-index {
  display: none;
}
@media (max-width: 700px) {
  .contacts-index {
    position: fixed;
    inset-inline-end: 0;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px;
    /* A finger on it slides along the letters; the page stays. */
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .contacts-index button {
    all: unset;
    display: block;
    min-width: 20px;
    padding: 1px 6px;
    color: var(--link);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
  }
  .contacts-index button.is-on {
    background: var(--link);
    color: var(--bg);
  }
  .contacts-body .contact-row {
    margin-inline-end: 18px;
  }
}

/* A contact's card, as a phone's contacts show one (founder, 2026-11-19):
   the face, the name and what they do in the middle; the ways to reach
   them as tiles across; the details and the card's own actions each in a
   grouped card. */
.contact-card {
  display: grid;
  gap: 16px;
}
.contact-ask .ox-ask-head {
  min-height: 0;
}
.contact-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-align: center;
}
.contact-card-name {
  margin: 6px 0 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.contact-card-sub {
  margin: 0;
  color: var(--muted);
}
.contact-card-sub:empty {
  display: none;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
  margin: 0;
}
.contact-action {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 60px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  background: var(--card-2, var(--card));
  border: 1px solid var(--line);
  color: var(--link);
  font-size: 14px;
  text-decoration: none;
}
.contact-action .icon {
  width: 22px;
  height: 22px;
}
.contact-lines,
.contact-card-rows {
  display: grid;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2, var(--card));
}
.contact-line {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-child {
  border-bottom: 0;
}
.contact-line dt {
  color: var(--muted);
  font-size: 14px;
  text-transform: capitalize;
}
.contact-line dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-line dd a {
  color: var(--link);
  text-decoration: none;
}
.contact-card-rows {
  padding: 0;
}
.contact-row-act {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--link);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.contact-row-act:last-child {
  border-bottom: 0;
}
.contact-row-act .icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.contact-row-act.is-danger {
  color: var(--danger, #ff453a);
}
@media (hover: hover) and (pointer: fine) {
  .contact-row-act:hover {
    background: var(--hover);
  }
}
.contact-notes h3 {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.contact-notes p {
  margin: 0 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* The sheet's lists of phones, emails, addresses and links. */
.contact-entry-list {
  display: grid;
  gap: 6px;
}
.contact-entry {
  display: grid;
  grid-template-columns: minmax(84px, 7.5rem) minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.contact-entry select,
.contact-entry input {
  min-width: 0;
}
.contact-entry.contact-address {
  grid-template-columns: minmax(0, 1fr);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-address-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.contact-address-head select {
  max-width: 10rem;
}
.contact-entry-remove {
  width: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 19px;
}
/* Add phone (and the others): a light row under its list, not a second
   button the size of a field. */
.contact-entries > .contact-entry-add {
  justify-self: start;
  width: max-content;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--link);
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .contact-entries > .contact-entry-add:hover {
    background: transparent;
    text-decoration: underline;
  }
}

/* Favorite in the contact sheet: a star with its word, filled when on. */
/* The names and, at their end, the favourite's star (founder, 2026-12-01:
   it was a pill of its own in the middle of the sheet). */
.contact-name-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.contact-name-row > .field-row {
  flex: 1 1 auto;
  min-width: 0;
}
.fav-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--control-h);
  width: var(--control-h);
  height: var(--control-h);
  padding: 0;
  border: 1px solid var(--input-line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-15);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.fav-toggle .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.fav-toggle[aria-pressed="true"] {
  color: #c9a227;
  border-color: color-mix(in srgb, #c9a227 55%, transparent);
  background: color-mix(in srgb, #c9a227 10%, transparent);
}
.fav-toggle[aria-pressed="true"] .icon,
.fav-toggle[aria-pressed="true"] .icon * {
  fill: currentColor;
}
/* On a light page the star's gold reads at 1.9:1: a darker gold there
   (the word at 4.5:1 or more, the star at 3:1 or more). */
html.theme-light .fav-toggle[aria-pressed="true"],
html.theme-light .fav-toggle[aria-pressed="true"]:hover {
  color: #7a5c00;
  border-color: color-mix(in srgb, #7a5c00 50%, transparent);
}
html.theme-light .contact-star {
  color: #8f6c00;
}
@media (hover: hover) and (pointer: fine) {
  .fav-toggle:hover {
    color: var(--fg);
    border-color: var(--muted);
  }
  .fav-toggle[aria-pressed="true"]:hover {
    color: #c9a227;
  }
}
.fav-toggle:focus-visible {
  outline: 2px solid var(--input-focus);
  outline-offset: 2px;
}

/* A sheet's Delete stands apart from the last field. */
.muted-actions.task-sheet-foot {
  margin-top: 16px;
}

/* The contact sheet: the name and the work each a pair of fields side by
   side on a phone too (they are short); the label beside a phone or an
   email narrower than its value. */
.contact-edit-ask .field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-edit-ask .contact-entry {
  grid-template-columns: minmax(84px, 30%) minmax(0, 1fr) auto;
}
.contact-edit-ask .contact-entries {
  padding-top: 4px;
}
/* A phone's number is a tel field, which the fields' common look leaves
   to the phone sign-up field: here it looks as its neighbours do. */
.contact-entry .contact-entry-value[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  height: var(--control-h);
  min-height: var(--control-h);
  padding: 0 12px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15);
  outline: none;
  transition: border-color 160ms var(--ease);
}
.contact-entry .contact-entry-value[type="tel"]:focus {
  border-color: var(--input-focus);
}

/* How to keep a share link on a phone. */
.share-setup {
  display: grid;
  gap: 10px;
}
.share-setup-row {
  display: grid;
  gap: 3px;
}
.share-setup-value {
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-setup-value code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--card);
  overflow-wrap: anywhere;
  font-size: 14px;
}

/* A shared contacts book or task list, as a guest reads it. */
.work-page.shared-book {
  overflow-y: auto;
  padding-bottom: 16px;
}
.work-page.shared-book > * {
  flex: none;
}
.shared-book-count {
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.shared-book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.shared-contact,
.shared-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.shared-contact-main {
  flex: 1 1 auto;
  min-width: 0;
}
.shared-contact-name {
  margin: 0;
  font-size: 17px;
}
.shared-contact-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.shared-contact-lines {
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}
.shared-contact-lines > div {
  display: grid;
  grid-template-columns: minmax(70px, 7rem) minmax(0, 1fr);
  gap: 8px;
}
.shared-contact-lines dt {
  color: var(--muted);
  font-size: 14px;
  text-transform: capitalize;
}
.shared-contact-lines dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.shared-contact-notes {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
/* A task's box on a shared list: drawn, so it takes the theme's colors. */
.shared-check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 6px;
  box-sizing: border-box;
}
.shared-check.is-small {
  width: 15px;
  height: 15px;
  margin: 0 8px 0 0;
  border-radius: 4px;
  vertical-align: -2px;
}
.shared-check.is-done {
  border-color: var(--link);
  background: var(--link);
}
.shared-check.is-done::after {
  content: "";
  width: 35%;
  height: 60%;
  margin-top: -12%;
  border: solid var(--btn-fg, #fff);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shared-task.is-done .shared-contact-name {
  color: var(--muted);
  text-decoration: line-through;
}
.shared-task-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
}

/* A conversation's back button with the unread conversations behind it
   (founder, 2026-11-17): the arrow, then the count, as on a phone's own
   apps; the button widens to hold it. */
.msg-back:has(.nav-count) {
  width: auto;
  flex: 0 0 auto;
  grid-auto-flow: column;
  gap: 2px;
  padding-inline: 4px 6px;
  border-radius: 18px;
}
.msg-back .nav-count {
  margin: 0;
}

/* A conversation's row opens the conversation wherever it is tapped
   (founder, 2026-11-17): its badges (the affiliate's, which links to that
   account, and the tips of the others) take no tap of their own there. */
.msg-row .name-marks,
.msg-row .name-marks * {
  pointer-events: none;
}

/* A shared calendar, contacts book or task list: its head is a column (the
   Work pages' head is one row, which squeezed the name, the owner, the
   words and the buttons side by side on a phone, 2026-11-18). */
.work-page:is(.shared-calendar, .shared-book) > .work-head {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.work-page:is(.shared-calendar, .shared-book) > .work-head > * {
  margin: 0;
}
/* Videos (/_/videos: ui_feed::video_reel, ui/reel.rs). One screen per
   video, snapped. On a wide screen the film is a 9:16 card with the
   actions beside it; on a phone it fills the screen above the tab bar and
   the actions sit over it, as in the apps people know. */

.videos-page {
  margin-inline: calc(-1 * var(--stage-pad-x, 0px));
}
/* The reel is the whole page: none of the page's own padding above or
   below it (body.app > .stage sets that padding). */
body.app > .stage:has(> .videos-page) {
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.reel-wrap {
  position: relative;
}

.reel {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  outline: none;
}
.reel::-webkit-scrollbar {
  display: none;
}
/* A touch screen (ui/reel.rs): the page moves the reel under the finger
   and eases it to the next video, so the browser's own touch scrolling
   and its momentum stay out of it. */
.reel.is-driven {
  touch-action: none;
}

.post.reel-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  margin: 0;
  padding: 16px 12px;
  box-sizing: border-box;
  border: 0;
  /* One video per swipe, however fast the flick. */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reel-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: calc(100% - 78px);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The poster, blurred, behind a film of another shape. */
.reel-backdrop {
  position: absolute;
  top: -10%;
  left: -10%;
  /* Drawn at a quarter of its size with a quarter of the blur, then scaled
     up: the same picture, a sixteenth of the blur's work as a slide
     scrolls in (a full-size blur made a phone's swipe lag, 2026-11-27). */
  width: 30%;
  height: 30%;
  object-fit: cover;
  filter: blur(7px) brightness(0.5) saturate(1.2);
  z-index: 0;
  transform: scale(4);
  transform-origin: 0 0;
  /* Its own layer, made once at that size, not again on every frame. */
  will-change: transform;
  backface-visibility: hidden;
}

.reel-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reel-paused,
.reel-burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.reel-paused {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 160ms ease, transform 160ms ease;
}
.reel-paused .icon {
  box-sizing: content-box;
  width: 34px;
  height: 34px;
  padding: 20px;
  border-radius: 50%;
  color: #fff;
  /* A plain shade, no blur: a blur over a playing film is drawn again on
     every frame, and a phone then drew the next slide's name and text late
     in a swipe (founder, 2026-11-25). */
  background: rgba(0, 0, 0, 0.5);
}
.reel-slide.is-paused .reel-paused {
  opacity: 1;
  transform: none;
}

/* A double tap: a heart over the film. */
.reel-burst {
  opacity: 0;
}
.reel-burst .icon {
  width: 104px;
  height: 104px;
  color: var(--like, #ff375f);
  fill: currentColor;
  stroke: currentColor;
}
.reel-frame.is-burst .reel-burst {
  animation: reel-burst 700ms ease-out both;
}
@keyframes reel-burst {
  0% { opacity: 0; transform: scale(0.4); }
  15% { opacity: 1; transform: scale(1.18); }
  30% { transform: scale(0.94); }
  45% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-18px) scale(1.06); }
}

.reel-sound {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  /* The size of the rail's buttons (founder, 2026-11-27: "sound on/off
     size should same size as reactions icon"): 26px in a 50px circle, and
     28px in 46px on a phone (below). */
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
}
.reel-sound .icon {
  width: 26px;
  height: 26px;
}
.reel-sound > span {
  display: inline-flex;
}
.reel-sound .reel-sound-on,
.reel-sound.is-on .reel-sound-off {
  display: none;
}
.reel-sound.is-on .reel-sound-on {
  display: inline-flex;
}

/* Who posted it and what they wrote, over the bottom of the film. Taps
   on the shade itself reach the film. */
.reel-info {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 3;
  padding: 64px 16px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 55%, transparent);
  pointer-events: none;
  /* Its own layer, drawn with the slide before it comes into view rather
     than once it is there. */
  transform: translateZ(0);
}
.reel-info > * {
  pointer-events: auto;
}
.reel-who {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  color: #fff;
  text-decoration: none;
}
.reel-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.reel-avatar .av-box,
.reel-avatar .av-box > * {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.reel-avatar .av-box > * {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.reel-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.reel-name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-weight: 700;
}
.reel-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reel-handle {
  font-size: 14px;
  opacity: 0.82;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .reel-who:hover .reel-name > span:first-child {
    text-decoration: underline;
  }
}
.reel-text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  cursor: pointer;
}
.reel-text.is-open {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
  max-height: 38vh;
  overflow-y: auto;
}
.reel-text a {
  color: #fff;
  font-weight: 650;
}

.reel-veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: default;
}
.reel-veil .icon {
  width: 34px;
  height: 34px;
}
.reel-veil p {
  margin: 0;
  font-weight: 600;
}
.reel-reveal {
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.reel-slide.is-sensitive .reel-video,
.reel-slide.is-sensitive .reel-backdrop {
  filter: blur(9px) brightness(0.6);
}
.reel-slide.is-sensitive .reel-info,
.reel-slide.is-sensitive .reel-sound {
  visibility: hidden;
}

.reel-progress {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.reel-progress span {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

/* The actions, beside the film. */
.reel-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  align-self: flex-end;
  padding-bottom: 6px;
}
.reel-rail .reel-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.reel-rail .reel-act .icon {
  /* It pops from its middle, so the ring around it stays centred. */
  transform-origin: 50% 50%;
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  flex-basis: auto;
  padding: 12px;
  margin: 0;
  border-radius: 50%;
  background: var(--hover);
  transition: transform 120ms ease, background-color 150ms ease;
}
/* The like's ring and sparks centre on the rail's round button (at the
   top of the column over the count), not on a timeline's small heart. */
.reel-rail .reel-act {
  position: relative;
}
/* The middle of the round button: 26px and 12px around it, 50px. */
.reel-rail .post-like.is-pop::before,
.reel-rail .post-like.is-pop::after {
  box-sizing: border-box;
  left: 50%;
  top: 25px;
}
.reel-rail .post-like.is-pop::after {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-width: 2px;
}
.reel-rail .post-like.is-pop::before {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
}
.reel-rail .reel-act:active .icon {
  transform: scale(0.9);
}
@media (hover: hover) and (pointer: fine) {
  .reel-rail .reel-act:hover .icon {
    background: var(--line);
  }
}
.reel-rail .post-like.is-on {
  color: var(--like);
}
.reel-rail .post-bookmark.is-on {
  color: var(--link);
}
.reel-rail .reel-act:disabled {
  opacity: 0.5;
  cursor: default;
}
.reel-rail .reel-act > span {
  min-height: 16px;
  font-variant-numeric: tabular-nums;
}
.reel-more {
  height: 1px;
}

.reel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  color: var(--muted);
  text-align: center;
}
.reel-empty .icon {
  width: 52px;
  height: 52px;
}
.reel-empty-title {
  margin: 6px 0 0;
  color: var(--fg);
  font-size: 21px;
  font-weight: 750;
}
.reel-empty-note {
  margin: 0;
}

/* A phone: the film fills the screen above the tab bar and the actions
   sit over it, in white. */
@media (max-width: 800px) {
  /* Between the top bar and the tab bar. */
  .reel {
    height: calc(100dvh - var(--tabbar-pad, 0px) - var(--topbar-h, 57px) + 1px);
  }
  .post.reel-slide {
    padding: 0;
    gap: 0;
  }
  .reel-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  /* The caption and the actions stand where they end up, at the foot of
     their own video, and come in with it (founder, 2026-11-30: "while
     scroll, video overlays not on the final position"). For half a day
     they stuck to the reel's foot instead, rising with the video's top
     edge: that hid that they were drawn late, which came from films being
     started while the reel moved. Nothing is started while it moves now
     (ui/reel.rs), and each keeps a layer of its own, so it is drawn with
     its video before the video comes in. */
  .reel-info {
    padding-inline-end: 80px;
    will-change: transform;
  }
  .reel-rail {
    position: absolute;
    /* A little in from the side (founder, 2026-11-14: 6px was too near
       the edge). */
    inset-inline-end: 14px;
    bottom: 96px;
    z-index: 4;
    gap: 10px;
    padding: 0;
    /* Over the film, as the caption: its own layer. */
    will-change: transform;
  }
  .reel-rail .reel-act,
  .reel-rail .post-like.is-on,
  .reel-rail .post-bookmark.is-on {
    color: #fff;
  }
  /* 28px and 9px around it, 46px: its middle. */
  .reel-rail .post-like.is-pop::before,
  .reel-rail .post-like.is-pop::after {
    top: 23px;
  }
  .reel-rail .post-like.is-pop::after {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }
  .reel-rail .post-like.is-on .icon {
    color: var(--like);
  }
  .reel-rail .reel-act .icon {
    width: 28px;
    height: 28px;
    padding: 9px;
    background: rgba(0, 0, 0, 0.46);
  }
  .reel-sound {
    width: 46px;
    height: 46px;
  }
  .reel-sound .icon {
    width: 28px;
    height: 28px;
  }
  /* The count is the number alone under its button, white over a faint
     dark outline (drawn under the letters, not a shadow) so it reads on a
     light film too; it keeps its height in the column. */
  .reel-rail .reel-act {
    gap: 3px;
  }
  .reel-rail .reel-act > span {
    flex: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: 0.01em;
    text-align: center;
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.32);
    paint-order: stroke fill;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-frame.is-burst .reel-burst {
    animation-duration: 1ms;
  }
  .reel-paused {
    transition: none;
  }
}

.post-menu.compose-reply-from-menu .menu-item {
  white-space: nowrap;
}

html.theme-light .post-menu.compose-reply-from-menu,
html[data-theme="light"] .post-menu.compose-reply-from-menu,
html.theme-light .compose-reply-from-menu,
html[data-theme="light"] .compose-reply-from-menu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.ctx-menu {
  position: absolute;
  min-width: 198px;
  border-radius: 14px;
  padding: 6px;
  overflow: hidden;
  z-index: calc(var(--z-popup) + 2);
  pointer-events: auto;
}

.ctx-menu .menu-item,
.uni-more-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px; /* 64.2 */
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  color: var(--fg);
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
}

@media (hover: hover) and (pointer: fine) {
  .ctx-menu .menu-item:hover,
  .uni-more-menu .menu-item:hover {
    background: var(--hover);
  }
}

.uni-more-menu .menu-item.is-off {
  opacity: 0.5;
  cursor: default;
}

.ctx-menu .menu-item.is-danger,
.uni-more-menu .menu-item.is-danger {
  color: #ff3b30;
}

.ctx-reacts {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 5px 7px;
  background: var(--menu-glass);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(50px) saturate(1.9);
  -webkit-backdrop-filter: blur(50px) saturate(1.9);
  z-index: calc(var(--z-popup) + 2);
  pointer-events: auto;
}

.ctx-react {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  text-align: center;
  font-variant-emoji: emoji;
  transition: transform 140ms var(--ease), background 140ms var(--ease);
}

.ctx-react:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.16);
}

.ctx-react.is-on {
  background: rgba(255, 255, 255, 0.16);
}

.ctx-react-more {
  color: var(--fg);
}

.ctx-react-more .icon {
  width: 26px;
  height: 26px;
}

/* Reaction emoji picker (chat). Solid like the reply-from menu so the grid reads. */
.emoji-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.32);
}

/* Beside the control that opened it, on a wide screen: no dimming, and
   placed by the picker itself (`chat_emoji::place_beside`). */
.emoji-back.is-anchored {
  display: block;
  padding: 0;
  background: transparent;
}

.emoji-back.is-anchored .emoji-pick {
  position: fixed;
}

.emoji-pick {
  display: flex;
  flex-direction: column;
  width: min(360px, 100%);
  height: min(420px, calc(100dvh - 32px));
  background: var(--elevated);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}

.emoji-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--hairline);
}

.emoji-search {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--input-line);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--fg);
  font-size: var(--text-15);
}

.emoji-search:focus {
  outline: none;
  border-color: var(--input-focus);
}

.emoji-tones {
  display: flex;
  gap: 2px;
}

.emoji-tone {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  font-variant-emoji: emoji;
}

.emoji-tone:hover,
.emoji-tone[aria-checked="true"] {
  background: var(--hover);
}

.emoji-tone[aria-checked="true"] {
  box-shadow: inset 0 0 0 1px var(--line);
}

.emoji-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 4px 8px 12px;
}

/* "Recently used" with its Clear at the end of the line. */
.emoji-cat.has-clear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emoji-clear {
  appearance: none;
  margin: 0;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--text-13);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .emoji-clear:hover {
    background: var(--hover);
    color: var(--link-hover);
  }
}

.emoji-cat {
  margin: 10px 4px 4px;
  font-size: var(--text-13);
  font-weight: 600;
  color: var(--muted);
}

.emoji-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
}

.emoji-cell {
  /* Only the cells in view are drawn: laying out all ~1,900 colour glyphs
     at once held the first opening for most of a second. */
  content-visibility: auto;
  contain-intrinsic-size: 40px 40px;
  /* A circle in the middle of its column: the hover is round. */
  width: 40px;
  height: 40px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-variant-emoji: emoji;
}

.emoji-cell:hover,
.emoji-cell:focus-visible {
  background: var(--hover);
  outline: none;
}

/* The key's place in the grid shows as a ring, not only a faint fill. */
.emoji-cell:focus-visible {
  box-shadow: inset 0 0 0 2px var(--link);
}

.emoji-empty {
  --empty-gap: 12px;
  --empty-end: 12px;
  margin-inline: 12px;
}

@media (max-width: 800px) {
  .emoji-back {
    place-items: end stretch;
    padding: 0;
  }

  .emoji-pick {
    width: 100%;
    height: min(60dvh, 460px);
    /* Above a keyboard the layer is the part of the screen it leaves. */
    max-height: 100%;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .emoji-top {
    gap: 6px;
    padding: 10px 10px 6px;
  }
}

/* A small phone, or a phone with its keyboard up: the search and the skin
   tones share one line, so the emoji keep most of the room. */
@media (max-width: 800px) and (max-height: 640px), (max-width: 360px) {
  .emoji-top {
    flex-direction: row;
    align-items: center;
  }

  .emoji-search {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
  }

  .emoji-tones {
    flex: none;
    gap: 0;
  }

  .emoji-tone {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }

  .emoji-cat {
    margin-top: 6px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .ctx-menu,
  .ctx-reacts {
    background: var(--elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.msg-hold {
  position: relative;
  display: block;
  flex: 0 1 auto;
  width: max-content;
  max-width: min(76%, 420px);
  min-width: 0;
  overflow: visible;
}

.msg-line.is-out .msg-hold {
  margin-inline-start: auto;
}

.msg-reacts {
  position: absolute;
  top: 0;
  bottom: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  z-index: 6;
  pointer-events: auto;
}

.msg-hold.is-in > .msg-reacts,
.msg-bubble:not(.is-mine) > .msg-reacts {
  inset-inline-end: 0;
  inset-inline-start: auto;
  transform: translate(42%, -42%);
}

.msg-hold.is-out > .msg-reacts,
.msg-bubble.is-mine > .msg-reacts {
  inset-inline-start: 0;
  inset-inline-end: auto;
  transform: translate(-42%, -42%);
}

.msg-hold.has-reacts,
.msg-bubble.has-reacts {
  isolation: auto;
  overflow: visible;
  z-index: 3;
}

/* b2 #43: the first reaction is a perfect circle with the emoji centred;
   the others are smaller circles tucked behind it, overlapping it.
   b5 #6: the disc is painted by .msg-react-emo (z-index 1 inside the
   chip), so the chip's own ::before/::after tail bubbles paint UNDER it.
   Before, the chip itself carried the fill and its pseudo-elements, which
   always paint above their element's background, drew their outline over
   the disc edge whatever z-index the chips had. */
.msg-react-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  color: var(--bubble-in-fg);
  font-variant-emoji: emoji;
  pointer-events: auto;
  cursor: default;
  overflow: visible;
}

/* b3 #17: later chips come later in the DOM and would paint over the main
   one; stack them explicitly behind it. */
.msg-react-chip:first-child {
  z-index: 3;
}

.msg-reacts > .msg-react-chip:nth-child(2) {
  z-index: 2;
}

.msg-react-chip + .msg-react-chip {
  z-index: 1;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  font-size: 13px;
}

.msg-react-chip + .msg-react-chip::before,
.msg-react-chip + .msg-react-chip::after {
  display: none;
}

.msg-react-chip::before,
.msg-react-chip::after {
  content: "";
  position: absolute;
  background: var(--bubble-in);
  border-radius: 50%;
  pointer-events: none;
}

.msg-react-chip::before {
  width: 7px;
  height: 7px;
}

.msg-react-chip::after {
  width: 4px;
  height: 4px;
}

.msg-hold.is-in .msg-react-chip::before,
.msg-bubble:not(.is-mine) > .msg-reacts .msg-react-chip::before {
  top: auto;
  bottom: -1px;
  inset-inline-start: auto;
  inset-inline-end: -2px;
}

.msg-hold.is-in .msg-react-chip::after,
.msg-bubble:not(.is-mine) > .msg-reacts .msg-react-chip::after {
  top: auto;
  bottom: -5px;
  inset-inline-start: auto;
  inset-inline-end: -6px;
}

.msg-hold.is-out .msg-react-chip::before,
.msg-bubble.is-mine > .msg-reacts .msg-react-chip::before {
  top: auto;
  bottom: -1px;
  inset-inline-start: -2px;
  inset-inline-end: auto;
}

.msg-hold.is-out .msg-react-chip::after,
.msg-bubble.is-mine > .msg-reacts .msg-react-chip::after {
  top: auto;
  bottom: -5px;
  inset-inline-start: -6px;
  inset-inline-end: auto;
}

.msg-react-chip.is-mine {
  color: var(--bubble-out-fg);
}

.msg-react-chip.is-mine .msg-react-emo,
.msg-react-chip.is-mine::before,
.msg-react-chip.is-mine::after {
  background: var(--bubble-out);
}

.msg-hold.is-in > .msg-reacts .msg-react-chip + .msg-react-chip,
.msg-bubble:not(.is-mine) > .msg-reacts .msg-react-chip + .msg-react-chip {
  margin-inline-start: -9px;
}

/* Mine sit on the left of the bubble, so the extra ones trail to the left. */
.msg-hold.is-out > .msg-reacts,
.msg-bubble.is-mine > .msg-reacts {
  flex-direction: row-reverse;
}

.msg-hold.is-out > .msg-reacts .msg-react-chip + .msg-react-chip,
.msg-bubble.is-mine > .msg-reacts .msg-react-chip + .msg-react-chip {
  margin-inline-end: -9px;
}

.msg-react-emo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  border-radius: 50%;
  background: var(--bubble-in);
}

.msg-react-n {
  position: absolute;
  z-index: 2;
  inset-inline-end: -5px;
  bottom: -5px;
  min-width: 14px;
  height: 14px;
  box-sizing: border-box;
  padding: 0 3px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
  text-align: center;
  background: var(--bubble-in);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.msg-react-chip.is-mine .msg-react-n {
  background: var(--bubble-out);
}

html.theme-light .msg-react-n {
  color: rgba(0, 0, 0, 0.55);
}

html.theme-light .msg-react-chip.is-mine .msg-react-n {
  color: rgba(255, 255, 255, 0.85);
}

.msg-bubble.is-fail {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.msg-bubble.is-deleted,
.msg-bubble.is-deleted.is-mine {
  /* b3 #4: flush with the bubble edges of its side, always one line */
  max-width: 100%;
  margin: 2px 0;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
  font-style: italic;
  text-align: start;
  border-radius: 0;
}

.msg-bubble.is-deleted.is-mine {
  text-align: end;
}

.msg-bubble.is-deleted::before,
.msg-bubble.is-deleted::after {
  display: none;
}

.msg-line:has(.is-deleted) {
  margin: 6px 0;
}

.msg-thread-on > .form-error {
  display: none;
}

.msg-typing {
  flex: 0 0 auto;
}

.msg-typing[hidden] {
  display: none;
}

#msg-on > .msg-typing {
  padding-inline-start: 18px;
  padding-inline-end: 8px;
  padding-bottom: 4px;
}

.msg-typing-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  padding: 10px 16px;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.msg-typing-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 16px;
}

.msg-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bubble-in-fg) 78%, transparent);
  animation: msg-typing-dot 1.2s infinite ease-in-out;
}

html.theme-light .msg-typing-dots span,
html[data-theme="light"] .msg-typing-dots span {
  background: color-mix(in srgb, var(--bubble-in-fg) 78%, transparent);
}

.msg-typing-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.msg-typing-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes msg-typing-dot {
  0%, 70%, 100% { transform: translateY(0); }
  35% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .msg-typing-dots span {
    animation: none;
  }
}

.msg-compose {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 0;
  background: var(--bg);
  flex-shrink: 0;
}

.msg-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}


.msg-reply-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 2px 4px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.msg-reply-bar[hidden] { display: none; }

.msg-reply-mark {
  width: 2px;
  flex: 0 0 2px;
  border-radius: 2px;
  background: var(--muted);
}

.msg-reply-bar.is-mine-src .msg-reply-mark {
  background: var(--bubble-out);
}

.msg-reply-media {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: auto 0;
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
  color: var(--muted);
  display: grid;
  place-items: center;
}

.msg-reply-media[hidden] { display: none; }

.msg-reply-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-reply-media img:not([src]) {
  display: none;
}

.msg-reply-media.is-photo:not(:has(img[src]))::before {
  content: "";
  width: 18px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-sizing: border-box;
  background: radial-gradient(circle at 6px 5px, currentColor 1.4px, transparent 1.6px);
}

.msg-reply-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.msg-reply-who {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
}

.msg-reply-bar.is-mine-src .msg-reply-who {
  color: #64d2ff;
}

.msg-reply-snip {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-reply-x {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .msg-reply-x:hover { color: var(--fg); }
}

.msg-reply-x .icon {
  width: 14px;
  height: 14px;
}

.msg-shot {
  position: relative;
  margin-inline-start: 44px;
  width: min(180px, 52%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.msg-shot img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.msg-shot-x {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 0;
  cursor: pointer;
}

.msg-shot-x .icon {
  width: 13px;
  height: 13px;
  display: block;
}

.msg-photo-btn,
.msg-voice-btn,
.msg-location-btn,
.msg-emoji-btn {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .msg-photo-btn:hover,
  .msg-poll-btn:hover,
  .msg-sensitive-btn:hover,
  .msg-voice-btn:hover,
  .msg-location-btn:hover,
  .msg-emoji-btn:hover {
    color: var(--fg);
  }
}

.msg-photo-btn .icon,
.msg-poll-btn .icon,
.msg-sensitive-btn .icon,
.msg-voice-btn .icon,
.msg-location-btn .icon,
.msg-emoji-btn .icon {
  width: 21px;
  height: 21px;
}

.msg-poll-btn {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

.msg-photo-btn.is-on,
.msg-poll-btn.is-on,
.msg-sensitive-btn.is-on,
.msg-voice-btn.is-on {
  color: var(--fg);
  background: var(--card);
}

.msg-sensitive-btn {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

.msg-bubble.is-sensitive {
  min-width: min(58vw, 188px);
}

.msg-sensitive {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.msg-bubble.is-sensitive:not(.is-open) > :not(.msg-sensitive) {
  display: none !important;
}

.msg-bubble.is-sensitive:not(.is-open) > .msg-sensitive {
  display: flex;
}

.msg-sensitive-title {
  font-weight: 650;
}

.msg-sensitive-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 17px;
}

.msg-poll-compose {
  margin-inline-start: 44px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--elevated);
}

.msg-poll-compose-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
}

.msg-poll-compose-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 21px;
  line-height: 30px;
  cursor: pointer;
}

.msg-poll-compose-opts {
  display: grid;
  gap: 6px;
}

.msg-poll-compose-row {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.msg-poll-compose-letter {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.msg-poll-compose-row input {
  min-width: 0;
  box-sizing: border-box;
  height: var(--control-h);
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.msg-poll-compose-row input:focus {
  border-color: var(--input-focus);
}

.msg-poll-compose-x {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 30px;
  cursor: pointer;
}

/* Add option: the next row, waiting. A "+" where the letter goes and a
   dashed field where the text goes, in the rows' own columns, so the
   poll grows where its options are (founder, 2026-11-19: a link under
   the rows read as an afterthought). */
.msg-poll-add {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 16px;
  text-align: start;
  cursor: pointer;
}

.msg-poll-add[hidden] {
  display: none;
}

.msg-poll-add + .compose-poll-multi-row {
  margin-top: 10px;
}

/* The plus is drawn, two bars on whole pixels: a "+" in the font sits
   where the font puts it, never quite in the middle of the circle. */
.msg-poll-add::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    linear-gradient(var(--link), var(--link)) center / 10px 2px no-repeat,
    linear-gradient(var(--link), var(--link)) center / 2px 10px no-repeat,
    color-mix(in srgb, var(--link) 16%, transparent);
}

.msg-poll-add > span {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px dashed color-mix(in srgb, var(--link) 45%, var(--input-line));
  border-radius: 10px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .msg-poll-add:hover > span {
    border-color: var(--link);
    background: color-mix(in srgb, var(--link) 8%, transparent);
  }
}

.msg-poll-add:active > span {
  background: color-mix(in srgb, var(--link) 12%, transparent);
}

.msg-poll-add:focus-visible {
  outline: none;
}

.msg-poll-add:focus-visible > span {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.compose-poll-when {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.compose-poll-when-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.compose-poll-when-at {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
}

.msg-bubble.is-poll {
  min-width: min(72vw, 248px);
  max-width: min(82%, 360px);
  padding: 10px 12px 12px;
  white-space: normal;
}

.msg-poll-q {
  margin: 0;
  font-weight: 650;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg-poll-choices {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.msg-poll-opt {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
}

.msg-bubble.is-mine .msg-poll-opt {
  background: rgba(0, 0, 0, 0.16);
}

.msg-poll-opt:disabled {
  cursor: default;
}

.msg-poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pct, 0) * 1%);
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.msg-poll-letter {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 650;
}

.msg-poll-opt.is-on {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.msg-poll-opt.is-on .msg-poll-letter {
  background: #fff;
  color: var(--bubble-out);
}

.msg-bubble:not(.is-mine) .msg-poll-opt.is-on .msg-poll-letter {
  color: #1c1c1e;
}

.msg-poll-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.msg-poll-n {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* A photo in a message. Its width is the fitted width the page code works
   out (--photo-w, at most 260px), never more than the room there is; its
   height follows from the photo's own proportions (aspect-ratio, set with
   it), so the photo is never cut and never pushes out of its bubble. */
.msg-photo {
  display: block;
  box-sizing: border-box;
  width: min(var(--photo-w, 260px), 100%);
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  cursor: zoom-in;
  -webkit-touch-callout: none;
  user-select: none;
}

.msg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Same edge as the text: theirs on the left, mine on the right. */
.msg-line.is-in .msg-hold:has(.msg-photo),
.msg-line.is-in .msg-reply-stack:has(.msg-photo) {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.msg-line.is-out .msg-hold:has(.msg-photo),
.msg-line.is-out .msg-reply-stack:has(.msg-photo) {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.msg-line .msg-hold:has(.msg-photo) {
  width: fit-content;
  max-width: 100%;
}

/* A bubble narrower than its holder (a poll with a photo: the photo widens
   the holder, the poll caps the bubble) keeps to its sender's side. */
.msg-hold.is-out > .msg-bubble {
  margin-inline-start: auto;
}

.msg-hold.is-in > .msg-bubble {
  margin-inline-end: auto;
}

/* With a caption the bubble is as wide as its photo and its padding; a
   narrow photo still leaves the caption room to read. */
.msg-bubble.is-photo:not(.is-photo-only):not(.is-poll) {
  width: max(calc(var(--photo-w, 260px) + 26px), 190px);
  max-width: 100%;
}

/* DM social embeds (FB/IG/X): align to sender — mine flex-end, theirs flex-start. */

.msg-bubble.is-photo .msg-text {
  display: none;
}

.msg-bubble.is-photo .msg-photo + .msg-text:not(:empty),
.msg-bubble.is-photo .msg-photo + .msg-poll-q:not(:empty) {
  display: block;
  margin-top: 6px;
}

.msg-bubble.is-poll.is-photo .msg-photo {
  max-width: 100%;
}

.msg-bubble.is-photo-only:not(.is-sensitive),
.msg-bubble.is-photo-only.is-open,
.msg-bubble.is-mine.is-photo-only:not(.is-sensitive),
.msg-bubble.is-mine.is-photo-only.is-open,
.msg-bubble:not(.is-mine).is-photo-only:not(.is-sensitive),
.msg-bubble:not(.is-mine).is-photo-only.is-open {
  display: block;
  width: var(--photo-w, 260px);
  max-width: 100%;
  padding: 0;
  background: transparent;
  /* The bubble's own corners: a photo in a run takes the run's tighter
     inner corners, as a text does. */
  line-height: 0;
  font-size: 0;
  white-space: normal;
}

.msg-bubble.is-photo-only:not(.is-sensitive)::before,
.msg-bubble.is-photo-only:not(.is-sensitive)::after,
.msg-bubble.is-photo-only.is-open::before,
.msg-bubble.is-photo-only.is-open::after,
.msg-bubble.is-mine.is-photo-only:not(.is-sensitive)::before,
.msg-bubble.is-mine.is-photo-only:not(.is-sensitive)::after,
.msg-bubble.is-mine.is-photo-only.is-open::before,
.msg-bubble.is-mine.is-photo-only.is-open::after,
.msg-bubble.is-mine.is-photo-only.is-end::before,
.msg-bubble.is-mine.is-photo-only.is-end::after,
.msg-bubble.is-mine.is-photo-only.is-solo::before,
.msg-bubble.is-mine.is-photo-only.is-solo::after,
.msg-bubble:not(.is-mine).is-photo-only.is-end::before,
.msg-bubble:not(.is-mine).is-photo-only.is-end::after,
.msg-bubble:not(.is-mine).is-photo-only.is-solo::before,
.msg-bubble:not(.is-mine).is-photo-only.is-solo::after {
  content: none;
  display: none;
}

.msg-bubble.is-photo-only:not(.is-sensitive) .msg-photo,
.msg-bubble.is-photo-only.is-open .msg-photo {
  width: 100%;
  border-radius: inherit;
  background: var(--card);
  line-height: 0;
}

/* Embed-only DM: transparent bubble parity with is-photo-only (51.1). */
.msg-bubble.is-embed-only:not(.is-sensitive),
.msg-bubble.is-embed-only.is-open,
.msg-bubble.is-mine.is-embed-only:not(.is-sensitive),
.msg-bubble.is-mine.is-embed-only.is-open,
.msg-bubble:not(.is-mine).is-embed-only:not(.is-sensitive),
.msg-bubble:not(.is-mine).is-embed-only.is-open {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: min(92%, 320px);
  padding: 0;
  background: transparent;
  border-radius: 18px;
  line-height: 0;
  font-size: 0;
  white-space: normal;
}

.msg-bubble.is-embed-only:not(.is-sensitive)::before,
.msg-bubble.is-embed-only:not(.is-sensitive)::after,
.msg-bubble.is-embed-only.is-open::before,
.msg-bubble.is-embed-only.is-open::after,
.msg-bubble.is-mine.is-embed-only:not(.is-sensitive)::before,
.msg-bubble.is-mine.is-embed-only:not(.is-sensitive)::after,
.msg-bubble.is-mine.is-embed-only.is-open::before,
.msg-bubble.is-mine.is-embed-only.is-open::after,
.msg-bubble.is-mine.is-embed-only.is-end::before,
.msg-bubble.is-mine.is-embed-only.is-end::after,
.msg-bubble.is-mine.is-embed-only.is-solo::before,
.msg-bubble.is-mine.is-embed-only.is-solo::after,
.msg-bubble:not(.is-mine).is-embed-only.is-end::before,
.msg-bubble:not(.is-mine).is-embed-only.is-end::after,
.msg-bubble:not(.is-mine).is-embed-only.is-solo::before,
.msg-bubble:not(.is-mine).is-embed-only.is-solo::after {
  content: none;
  display: none;
}

.msg-bubble.is-embed-only .post-embed,
.msg-bubble.is-embed-only .msg-link-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

.msg-bubble.is-embed-only iframe {
  pointer-events: none;
}

.msg-line:has(.is-emoji-only) {
  margin-top: 8px;
  margin-bottom: 8px;
}

.msg-line:has(.is-start):has(.is-emoji-only),
.msg-line:has(.is-solo):has(.is-emoji-only) {
  margin-top: 12px;
}

.msg-bubble.is-emoji-only,
.msg-bubble.is-mine.is-emoji-only,
.msg-bubble:not(.is-mine).is-emoji-only {
  width: max-content;
  max-width: none;
  padding: 6px 0;
  background: transparent;
  border-radius: 0;
  line-height: 1;
  isolation: auto;
}

.msg-bubble.is-emoji-only::before,
.msg-bubble.is-emoji-only::after,
.msg-bubble.is-mine.is-emoji-only::before,
.msg-bubble.is-mine.is-emoji-only::after,
.msg-bubble.is-mine.is-emoji-only.is-end::before,
.msg-bubble.is-mine.is-emoji-only.is-end::after,
.msg-bubble.is-mine.is-emoji-only.is-solo::before,
.msg-bubble.is-mine.is-emoji-only.is-solo::after,
.msg-bubble:not(.is-mine).is-emoji-only.is-end::before,
.msg-bubble:not(.is-mine).is-emoji-only.is-end::after,
.msg-bubble:not(.is-mine).is-emoji-only.is-solo::before,
.msg-bubble:not(.is-mine).is-emoji-only.is-solo::after {
  content: none;
  display: none;
}

.msg-bubble.is-emoji-only .msg-text {
  display: block;
  font-size: 68px;
  line-height: 1.05;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.msg-bubble.is-emoji-only[data-emoji="2"] .msg-text {
  font-size: 51px;
}

.msg-bubble.is-emoji-only[data-emoji="3"] .msg-text {
  font-size: 38px;
}

.msg-reply-stack > .msg-bubble.is-emoji-only {
  max-width: none;
}

.msg-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}

.msg-compose textarea {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  width: 100%;
  resize: none;
  margin: 0;
  min-height: 36px;
  height: 36px;
  max-height: 120px;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: var(--text-15);
  line-height: 21px;
  outline: none;
  font-variant-emoji: emoji;
  color: var(--fg);
  caret-color: var(--fg);
  scrollbar-width: none;
}

.msg-compose textarea::-webkit-scrollbar {
  display: none;
}

.msg-compose textarea::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.msg-compose textarea:focus {
  border-color: #636366;
  outline: none;
}

.msg-send {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-self: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--scroll);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0.4;
  pointer-events: none;
}

.msg-send.is-ready {
  background: #0a84ff;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .msg-send:hover {
    background: #0a84ff;
  }
}

.msg-send svg {
  width: 16px;
  height: 16px;
  display: block;
}

.msg-compose[hidden] { display: none; }

.msg-lock {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  z-index: var(--z-modal);
}

html.theme-light .msg-lock,
html[data-theme="light"] .msg-lock {
  background: rgba(40, 36, 28, 0.28);
}

/* The page code sets this (and `inert`) with the lock (chat_keys.rs
   `gate_lock`). A `:has()` twin of it cost every change on any page half
   its style work: its right-hand `:not()` matched nearly every element
   (2026-11-18: a post's menu, 74 ms to 38 ms at 6x on the live home). */
.messages.is-pin-locked > :not(.msg-lock) {
  pointer-events: none;
}

.msg-lock[hidden] { display: none; }

/* The PIN step of signing in (src/ui_auth.rs), in the sign-in card in
   place of its form: the screen sits in its place, not over the page. */
/* The PIN step stands in place of the sign-in form: the card keeps its
   brand and the step, nothing else. */
.gate-card.is-pin-step > :not(.gate-brand):not(.pin-step) {
  display: none !important;
}

.pin-step {
  position: relative;
  margin-top: 20px;
}

.pin-step .msg-lock {
  position: relative;
  inset: auto;
  display: block;
  background: none;
}

/* The step's card is the usual one (founder, 2026-12-01: it stood on the
   page with no ground of its own). */
.pin-step .msg-lock-card {
  width: 100%;
}

.pin-step-out {
  display: flex;
  justify-content: center;
}

.pin-step-out .btn-text {
  margin: 4px 0 0;
  padding: 8px 16px;
  color: var(--link);
}

/* The keys could not be asked for: no PIN to enter yet. */
.msg-lock[data-retry] .pin-pad {
  display: none;
}

.msg-lock[data-retry] .btn {
  margin-top: 16px;
}

.msg-lock-card {
  width: min(360px, calc(100% - 32px));
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.msg-lock-card h2 {
  margin: 0 0 8px;
  font-size: var(--text-20);
  font-weight: 400;
}

.msg-lock-card .btn {
  width: 100%;
}

.msg-lock-card .field-note { margin-bottom: 4px; }

.pin-pad {
  position: relative;
  margin: 22px 0 16px;
  min-height: 40px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.pin-dot {
  width: 28px;
  height: 28px;
  border: 2.5px solid #6e767d;
  border-radius: 50%;
  box-sizing: border-box;
}

.pin-dot.is-on {
  background: var(--fg);
  border-color: var(--fg);
}

.pin-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 17px;
}

.btn-text {
  display: block;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  cursor: pointer;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: center;
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .btn-text:hover { color: var(--link-hover); }
}

.btn-text[hidden] { display: none; }

.invite-mint .invite-form {
  margin-top: 4px;
}

.invite-form,
.invite-edit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.invite-edit {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.invite-edit[hidden] { display: none; }

/* As far from the tabs as every other sheet's filter box. */
.invite-keys .search-box {
  margin: 0 0 12px;
}

.invite-keys > .settings-sub {
  margin: 0 0 14px;
}

.invite-keys > .invite-list {
  margin: 0 0 32px;
}

/* Last in its sheet (Settings > Invites, Jobs): the sheet's own padding
   closes it, as under every other group (founder, 2026-11-26: the space
   after the keys was not the same as in other groupings). */
.invite-keys > .invite-list:last-child {
  margin-bottom: 0;
}

.invite-keys > .invite-list + .settings-sub,
.invite-keys > .timeline-empty + .settings-sub {
  margin-top: 8px;
}

/* Side by side only while the date's three boxes fit their half: in a
   narrower sheet (or a longer language) they ran under Max uses
   (founder, 2026-11-13). */
.invite-limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr));
  gap: 14px 18px;
}

.invite-limit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-form > .form-error,
.invite-form > .btn,
.invite-edit > .invite-actions {
  align-self: flex-start;
}

.invite-form .invite-unlimited,
.invite-edit .invite-unlimited {
  min-height: 36px;
}

.invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* b6 #9: a collapsed batch list must really hide (display:flex beat [hidden]). */
.invite-list[hidden] {
  display: none;
}

/* b3 #33: a bulk batch keeps its keys together under one header. */
.invite-batch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.invite-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-batch-export {
  flex: 0 0 auto;
  text-decoration: none;
}

.invite-card {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid #3a2d18;
  background:
    linear-gradient(180deg, rgba(201, 137, 58, 0.1), transparent 46%),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.015) 3px,
      rgba(255, 255, 255, 0.015) 4px
    ),
    #090909;
  box-shadow: inset 0 0 0 1px #16110a;
  overflow: hidden;
}

/* b6 #8: the ticket edge clips itself to the card's rounded corners, so it
   keeps its shape when the card stops clipping for an open menu. */
.invite-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000, #000) left / 3px 100% no-repeat;
  mask: linear-gradient(#000, #000) left / 3px 100% no-repeat;
  background: linear-gradient(180deg, var(--credit-hi), var(--credit-mid) 48%, var(--credit-lo));
}

.invite-label {
  margin: 0 0 4px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 15px;
}

.invite-code {
  margin: 0 88px 10px 0;
  color: var(--fg);
  font-size: 21px;
  line-height: 28px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.invite-note {
  margin: 0 0 10px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Its buttons share the row, as every action line's do. */
.invite-actions > .btn {
  flex: 1 1 0;
  min-width: fit-content;
}

.invite-grant-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.invite-kind .choice {
  min-height: 40px;
  padding: 6px 10px;
}

.invite-kind .invite-affiliate {
  margin-top: 10px;
}

.invite-kind .invite-affiliate[hidden] {
  display: none !important;
}

.invite-plan[hidden],
.invite-plan .choice[hidden] {
  display: none !important;
}

#rates-form {
  gap: 16px;
}

.admin-sheet,
.rate-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.admin-sheet[hidden],
.rate-sheet[hidden] {
  display: none;
}

.admin-sheet-head h2,
.rate-sheet-head h2 {
  margin: 0 0 6px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.admin-sheet-head p,
.rate-sheet-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 19px;
}

/* More about the head's topic, folded under one line (Settings > Handle):
   the line opens it in place, its chevron turning. */
.head-more {
  margin-top: 4px;
}

.head-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.head-more > summary::-webkit-details-marker {
  display: none;
}

.head-more > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-inline-end: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms var(--ease);
}

.head-more[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.head-more > p {
  margin: 2px 0 8px;
}

@media (pointer: coarse) {
  .head-more > summary {
    min-height: 44px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .head-more > summary:hover {
    text-decoration: underline;
  }
}

/* A second paragraph in a head is a paragraph, not the next line. */
.admin-sheet-head p + p,
.rate-sheet-head p + p {
  margin-top: 6px;
}

.admin-sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}

.admin-sheet-title h2 {
  margin: 0;
}

.admin-sheet-title:has(.mail-badge) {
  width: 100%;
  flex-wrap: nowrap;
}

.admin-sheet-title .mail-badge {
  flex-shrink: 0;
  margin-inline-start: auto;
  white-space: nowrap;
}

.rate-k {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rate-window {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* A window is a row of choices (.seg), each a radio in its label. */
.rate-pick {
  position: relative;
}

.rate-pick input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rate-pick:has(input:focus-visible) {
  outline: 1px solid var(--fg);
  outline-offset: -2px;
}

.rate-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rate-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  background: var(--card);
}

.rate-tile input[type="number"] {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
}

.rate-qty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rate-qty input[type="number"] {
  width: 140px;
  max-width: 100%;
  height: 48px;
  padding: 10px 12px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
}

.rate-qty-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.rate-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.rate-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 0;
}

.rate-foot .btn {
  width: 100%;
}

.rate-reset {
  border-color: #5a3e14;
  background:
    linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.78));
  box-shadow: none;
}

.rate-reset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rate-reset-btn {
  align-self: flex-start;
}

.rate-reset-row .form-ok,
.rate-reset-row .form-error {
  margin: 0;
}

@media (max-width: 520px) {
  .rate-tiles {
    grid-template-columns: 1fr;
  }
}

.invite-card:target {
  border-color: var(--fg);
}

.invite-card.is-dead {
  border-color: var(--line);
  opacity: 0.78;
}

.invite-card.is-dead::before {
  background: var(--muted);
}

.invite-card.is-dead .invite-code {
  color: var(--muted);
}

.invite-card.is-dead::after {
  content: "EXPIRED";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  color: #8a3a3a;
  letter-spacing: 0.2em;
  font-size: 12px;
  line-height: 1;
  border: 1px solid #8a3a3a;
  padding: 4px 7px;
  transform: rotate(-8deg);
  pointer-events: none;
}

.invite-keys .invite-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
}

.invite-keys .invite-card.is-dead::after {
  content: none;
}

.invite-keys .invite-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.invite-keys .invite-code {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(13px, 3.5vw, 18px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-state {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0;
  text-transform: none;
}

.invite-state.is-dead {
  color: var(--muted);
}

/* b5 #14: what a key does, as labeled facts. */
.invite-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}

.invite-info > div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}

.invite-info > div.is-wide {
  grid-column: 1 / -1;
}

.invite-info dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.invite-info dd {
  margin: 2px 0 0;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.invite-key-uses {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.invite-batch-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.invite-batch-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform 0.15s ease;
}

.invite-batch-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.invite-batch-title {
  font-weight: 650;
}

.invite-batch-sub {
  color: var(--muted);
  font-size: 14px;
}

.invite-keys-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invite-mint {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The key menu must not be clipped by the card while it is open. */
.invite-card:has(> .invite-top .uni-more-menu:not([hidden])) {
  overflow: visible;
  z-index: 3;
}

/* b6 #8: "Copy Registration Link" stays on one line. */
.invite-card .uni-more-menu .menu-item {
  white-space: nowrap;
}


.invite-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.invite-step > legend {
  padding: 0 6px;
  font-weight: 650;
}

.invite-keys .invite-actions {
  margin: 0;
}

.invite-input {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.gate:has(.invite-pass) {
  width: 400px;
}

.invite-pass-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-pass {
  margin: 0;
}

.invite-pass .invite-code {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow-x: auto;
}

.session-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-card,
.session-card.is-current {
  padding: 14px 14px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  background: var(--hover);
}

.session-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-kind {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
}

.session-kind .icon {
  width: 21px;
  height: 21px;
}

.session-title {
  min-width: 0;
  flex: 1 1 auto;
}

.session-name {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.session-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.session-status.is-live {
  color: var(--fg);
}

.session-tools {
  display: flex;
  flex-flow: row-reverse wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.session-tools .session-revoke,
.session-tools .session-pill {
  flex: 0 0 auto;
}

.passkey-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.passkey-list[hidden] {
  display: none;
}

.passkey-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.passkey-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
}

.passkey-mark .icon {
  width: 21px;
  height: 21px;
}

.passkey-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.passkey-name,
.passkey-meta {
  margin: 0;
  overflow-wrap: anywhere;
}

.passkey-name {
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.passkey-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 21px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.passkey-meta::-webkit-scrollbar {
  display: none;
}

/* Edit dialog label with the "n of 2" edits-used chip on the right. */
.post-edit-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.passkey-count {
  flex: none;
  margin-inline-start: auto;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  font-variant-numeric: tabular-nums;
}

.passkey-add[hidden],
#passkey-full[hidden] {
  display: none;
}

.passkey-remove-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  margin-inline-start: auto;
}

.passkey-remove-password {
  width: min(180px, 100%);
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.passkey-remove-password:focus,
.passkey-remove-password:focus-visible {
  border-color: var(--input-focus);
  outline: none;
}

.passkey-remove-password[hidden] {
  display: none;
}

.passkey-remove {
  flex: 0 0 auto;
}

.passkey-add {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passkey-add .field,
.passkey-add .form-error,
.passkey-add .form-ok,
.passkey-add .field-note {
  margin: 0;
}

#login-account .btn,
#login-account .passkey-login {
  width: 100%;
}

.login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.login-or::before,
.login-or::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--line);
}

.session-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font-size: 13px;
  line-height: 1;
}

.session-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 14px 0 0;
}

.session-facts div {
  min-width: 0;
}

.session-facts dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
}

.session-facts dd {
  margin: 2px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.session-ip {
  grid-column: 1 / -1;
}

.session-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 19px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.session-sheet-list {
  min-height: 0;
  margin-top: 12px;
}

#session-page .muted-actions {
  margin-top: 4px;
}

@media (max-width: 640px) {
  /* The name keeps room for itself; Sign out and "Current session" go to
     a line of their own under it where the three do not fit one (they
     squeezed the name to "Edge…" and the label lay over "active now" in
     Hungarian on a 320px phone; seen 2026-11-21). */
  .session-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .session-title {
    flex: 1 1 110px;
    min-width: 0;
  }

  .session-tools {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    margin-inline-start: auto;
  }

  .session-tools .session-pill {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .session-facts {
    grid-template-columns: 1fr;
  }

  .invite-limits {
    grid-template-columns: 1fr;
  }

  .invite-pass .invite-code,
  .invite-input {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 800px) {
  .stage.is-wide,
body.has-wide-stage .stage,
.stage:has(.messages),
.stage:has(.founder-term),
.stage.is-founder-term {
    padding: 0;
    width: auto;
    max-width: none;
  }

  /* #53.12/#54.4 Mobile: lock height only for messages/notes/founder-term — not api/ws-latency. */
  .stage:has(.messages),
body.has-wide-stage .stage:has(.messages),
.stage:has(.founder-term),
.stage.is-founder-term,
body.has-wide-stage .stage.is-founder-term {
    height: calc(100dvh - var(--lock-bar));
    overflow: hidden;
  }

  /* #55.4/#57.4/#68/#71 Mobile: sticky chrome + results scroller.
     Other pages sit margin-top: --ox-nav-full and padding-top: 8px.
     This stage is .is-wide, so the same gap is padding. */
  body.has-wide-stage .stage:has(.api-latency),
  body.has-wide-stage .stage:has(.ws-latency),
  .stage:has(.api-latency),
  .stage:has(.ws-latency) {
    height: calc(100dvh - var(--lock-bar));
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    /* The page's own gutter above, as every page (it had 8px). */
    padding-top: calc(var(--ox-nav-full) + var(--stage-pad-x));
    padding-inline: var(--stage-pad-x);
    padding-bottom: 16px;
    width: auto;
    max-width: none;
  }
  .stage:has(.api-latency) > .site-foot-mobile,
  .stage:has(.ws-latency) > .site-foot-mobile {
    display: none;
  }
  .stage:has(.founder-term),
  .stage.is-founder-term,
  body.has-wide-stage .stage.is-founder-term {
    /* Top chrome cleared in the tabbar/term block; keep side/bottom gutters only here. */
    padding: 12px 16px;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--ox-nav, 56px) + 12px);
  }
  .messages { grid-template-columns: 1fr; }
  .messages.is-thread .msg-inbox { display: none; }
  .messages:not(.is-thread) .msg-thread { display: none; }
  .messages.is-thread.is-swipe-back {
    display: block;
  }
  .messages.is-thread.is-swipe-back .msg-inbox {
    display: flex;
    position: fixed;
    /* Under the top bar the swipe shows (sheets.css), where the list sits
       once the swipe ends. */
    z-index: 58;
    top: calc(var(--vv-top, 0px) + env(safe-area-inset-top, 0px) + var(--ox-nav, 56px));
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: auto;
    height: calc(var(--vv-height, 100dvh) - env(safe-area-inset-top, 0px) - var(--ox-nav, 56px));
    border-inline-end: 0;
    pointer-events: none;
    background: var(--bg);
    transform: translate3d(calc((var(--swipe-p, 0) - 1) * 30%), 0, 0);
    will-change: transform;
  }
  .messages.is-swipe-settle .msg-inbox {
    transition: transform var(--swipe-ms, 280ms) var(--ease-ios);
  }
  .msg-back { display: grid; }
  /* Document scroll-lock while mobile thread open so focus cannot shove
     the layout viewport. Shell still uses page-relative VV (scrollY+offsetTop). */
  html.msg-thread-lock,
  html.msg-thread-lock body.app {
    overflow: hidden !important;
    overscroll-behavior: none;
    height: 100%;
    height: 100dvh;
  }
  html.msg-thread-lock body.app {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    top: 0;
    touch-action: none;
  }
  html.msg-thread-lock #msg-scroll,
  html.msg-thread-lock .msg-compose {
    touch-action: pan-y;
    overscroll-behavior: none;
  }
  /* Notes fill the stage like the messages inbox. Do not position:fixed the
     whole .notes — that stacked a second nav and trapped document scroll. */
  
  
  
  /* #msg-on = sole positioned layer: page-relative VV
     (top = scrollY + offsetTop, height = vv.height minus tabbar pad when idle). */
  .messages.is-thread #msg-on,
  #msg-on:not([hidden]) {
    position: fixed;
    top: var(--vv-top, 0px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    max-width: none;
    /* JS already ends the shell at the tab bar or the keyboard. */
    height: var(--vv-height, 100dvh);
    max-height: var(--vv-height, 100dvh);
    margin: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    box-sizing: border-box;
    min-height: 0;
    transform: none;
  }
  /* iOS interactive pop: the conversation itself tracks the finger.
     transform:none above must not cancel this. */
  .messages.is-thread.is-swipe-back #msg-on {
    transform: translate3d(calc(var(--swipe-p, 0) * 100%), 0, 0);
    box-shadow: none;
    will-change: transform;
    transition: none;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .messages.is-thread.is-swipe-back #msg-on,
  .messages.is-thread.is-swipe-back #msg-on * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .messages.is-thread.is-swipe-back #msg-on .msg-thread-head {
    background: var(--bg);
  }
  .messages.is-thread.is-swipe-settle #msg-on {
    transition: transform var(--swipe-ms, 280ms) var(--ease-ios);
  }
  .messages.is-thread .msg-thread-on {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  /* All chrome in-flow inside the shell: .msg-thread-top | #msg-scroll | .msg-compose.
     NEVER position:fixed on the header (no layout-fixed / VV mix). */
  .messages.is-thread .msg-thread-top,
  #msg-on:not([hidden]) > .msg-thread-top {
    position: relative !important;
    top: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    flex-shrink: 0;
    z-index: 20;
    transform: none !important;
  }
  .messages.is-thread .msg-thread-head,
  #msg-on:not([hidden]) .msg-thread-head {
    position: relative !important;
    top: auto !important;
    flex-shrink: 0;
    z-index: 6;
    transform: none !important;
  }
  .messages.is-thread #msg-scroll,
  .messages.is-thread .msg-scroll {
    flex: 1 1 auto;
    min-height: 0;
    /* Header in-flow; only a small gap above bubbles. */
    padding-top: 12px;
    /* Idle: clear last bubble + .msg-read above compose/tabbar. */
    padding-bottom: 24px;
    overscroll-behavior-y: contain;
  }
  /* Looking chip pulls 28px into #msg-scroll; give last bubble + .msg-read room. */
  #msg-on:has(#msg-looking:not([hidden])) #msg-scroll {
    padding-bottom: 44px;
  }
  .messages.is-thread .msg-thread-on:has(.msg-status-line:not([hidden])) .msg-scroll {
    padding-top: 12px;
  }
  .messages.is-thread #msg-on > .msg-compose,
  .messages.is-thread #msg-on > .msg-looking,
  .messages.is-thread #msg-on > .msg-typing {
    flex-shrink: 0;
  }
  /* The field and its buttons are the last row. A photo or poll scrolls
     above them and cannot push that row off the bottom edge. */
  .messages.is-thread #msg-on > .msg-compose,
  #msg-on:not([hidden]) > .msg-compose {
    flex: 0 0 auto;
    margin-top: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .messages.is-thread #msg-on #msg-poll-compose,
  #msg-on:not([hidden]) #msg-poll-compose {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(220px, 34dvh);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .messages.is-thread .msg-compose-row,
  #msg-on:not([hidden]) .msg-compose-row {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    background: var(--bg);
  }
  .messages.is-thread .msg-shot img,
  #msg-on:not([hidden]) .msg-shot img {
    max-height: 120px;
  }
  /* Floating layout-viewport back leaves the VV; use in-header .msg-back. */
  body:has(.messages.is-thread) .nav-back-btn,
  body:has(#msg-on:not([hidden])) .nav-back-btn {
    display: none !important;
  }
  /* Mobile thread: in-header back must stay visible+tappable. */
  .messages.is-thread .msg-back,
  #msg-on:not([hidden]) .msg-back,
  html.rail-min:has(.messages.is-thread) .msg-back,
  html.rail-min:has(#msg-on:not([hidden])) .msg-back {
    display: grid;
  }
  html.rail-min:has(.messages.is-thread) .messages.is-thread .msg-thread-head {
    padding-inline-start: env(safe-area-inset-left, 0px);
  }

  html.msg-kb,
  html.msg-kb body.app {
    overflow: hidden !important;
  }
  /* Only the band the keyboard covers. A full-viewport layer sits above
     .stage (z-index 1) and hides the thread. --kb-cover-top is the top of
     that band, set from the visual viewport. */
  #ox-kb-cover {
    display: none;
  }

  html.msg-kb #ox-kb-cover,
  html:has(.compose-back.is-kb) #ox-kb-cover {
    display: block;
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: var(--kb-cover-top, 100lvh);
    bottom: -24px;
    background: var(--bg);
    z-index: 200;
    pointer-events: none;
  }

  html.msg-kb body.app::after,
  html:has(.compose-back.is-kb) body.app::after {
    content: "";
    position: fixed;
    inset-inline-start: -8px;
    inset-inline-end: -8px;
    top: var(--kb-cover-top, 100lvh);
    bottom: -12px;
    width: auto;
    height: auto;
    background: var(--bg);
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    z-index: 45;
  }
  html.msg-kb body.app > .stage,
  html:has(.compose-back.is-kb) body.app > .stage {
    border-inline-start-color: transparent;
    border-inline-end-color: transparent;
  }
  /* todo8: messages/notes fill the visual viewport; safe-area on chrome only */
  html:has(.messages) {
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    scrollbar-gutter: auto;
  }
  body.app:has(.messages) {
    height: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .stage:has(.messages) {
    height: 100%;
    max-height: 100%;
  }
  .messages {
    padding-bottom: 0;
  }
  .msg-compose {
    padding-bottom: 12px;
  }
  /* Thread, keyboard closed: the shell clears the tab bar via --tabbar-pad;
     12px floor only. Without a tab bar the home indicator's inset too
     (WebKit 217754 keeps that inset with the keyboard open, so it goes
     with `msg-kb`). */
  html:not(.msg-kb) .messages.is-thread .msg-compose,
  html:not(.msg-kb) #msg-on:not([hidden]) .msg-compose {
    padding-bottom: 12px;
  }
  html:not(.msg-kb) body:not(.has-tabbar) .messages.is-thread .msg-compose,
  html:not(.msg-kb) body:not(.has-tabbar) #msg-on:not([hidden]) .msg-compose {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  /* Keyboard open: the composer sits on it. */
  html.msg-kb .msg-compose,
  html.msg-kb .messages.is-thread .msg-compose {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  /* 16px keeps iOS from treating the field as a zoom target and dropping the keyboard. */
  .msg-compose textarea {
    font-size: 17px;
  }
  html:not(.msg-kb) body:not(.has-tabbar) .messages:not(.is-thread) .msg-compose:not(:focus-within) {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  
  
  html:not(.rail-min) .rail-sheet {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  /* Search still pins the stage to the visual viewport via --msg-vv-*. */
  html.msg-kb .stage:has(.search-page) {
    position: fixed;
    top: var(--msg-vv-top, 0px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    max-width: none;
    height: var(--msg-vv-height, 100dvh);
    margin: 0;
    padding: 0;
    z-index: 60;
  }
  html.msg-kb body.has-lockdown .stage:has(.search-page) {
    top: calc(var(--lock-bar, 0px) + var(--msg-vv-top, 0px));
    height: calc(var(--msg-vv-height, 100dvh) - var(--lock-bar, 0px));
    max-height: calc(var(--msg-vv-height, 100dvh) - var(--lock-bar, 0px));
  }
  /* Search chrome must live in the visual viewport, not above the keyboard. */
  html.msg-kb .stage:has(.search-page) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px var(--stage-pad-x, 16px) 0;
    box-sizing: border-box;
  }
  html.msg-kb .stage:has(.search-page) .search-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  html.msg-kb .stage:has(.search-page) .search-page-box {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 0 12px;
    background: var(--bg);
  }
  /* Lock-bar peers track the visual viewport with the stage. */
  html.msg-kb body.has-lockdown .lockdown-banner {
    top: var(--msg-vv-top, 0px);
  }
  html.msg-kb .nav-back-btn {
    display: none !important;
  }
  /* Keep chrome aligned if anything still uses the floating controls. */
  html.msg-kb.rail-min body.app > .rail {
    top: calc(var(--lock-bar, 0px) + var(--msg-vv-top, 0px));
    z-index: 300;
  }
  .msg-when {
    display: block;
    position: absolute;
    inset-inline-start: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    min-width: 44px;
    padding: 0 6px 0 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-align: end;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    opacity: 0;
  }
  .msg-scroll.is-peek-time .msg-when {
    opacity: 1;
  }
  .msg-scroll {
    --msg-shift: 0px;
  }
  .msg-scroll.is-peek-time .msg-line,
  .msg-scroll.is-peek-time .msg-read {
    transform: translate3d(var(--msg-shift), 0, 0);
  }
  .msg-scroll.is-peek-settle .msg-line,
  .msg-scroll.is-peek-settle .msg-read {
    transition: transform 380ms var(--ease-ios);
  }
  body.has-sub-stage .stage,
  .stage:has(.sub-page) {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    height: auto;
    padding: 28px 22px env(safe-area-inset-bottom, 0px);
  }
}

.status-hero {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.status-hero.is-ok {
  border-color: #1d3a28;
  background: linear-gradient(180deg, rgba(61, 154, 95, 0.12), transparent 70%), var(--card);
}

.status-hero.is-warn {
  border-color: #3a3218;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), transparent 70%), var(--card);
}

.status-hero.is-bad {
  border-color: #3a1a18;
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.12), transparent 70%), var(--card);
}

.status-hero.is-deploy {
  border-color: #1a3358;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.12), transparent 70%), var(--card);
}

.status-kicker,
.legal-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-headline,
.legal-title {
  margin: 0;
  font-size: var(--text-31);
  line-height: var(--lh-36);
  font-weight: 400;
}

.status-checked,
.legal-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.status-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.status-fold {
  border-top: 1px solid var(--line);
}

.status-fold:first-child {
  border-top: 0;
}

.status-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 12px;
  column-gap: 12px;
  align-items: start;
  padding: 14px 16px;
}

/* #59.1: first-column category icon (old dot slot); optical align to title line. */
.status-item > .icon {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--muted);
}

/* #59.1: title/hint only — no leading icon inside .status-title. */
.status-title {
  display: block;
  min-width: 0;
}

.status-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.status-fold > details > summary.status-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 12px;
  column-gap: 12px;
  align-items: start;
  cursor: pointer;
  list-style: none;
}

.status-fold > details > summary.status-item::-webkit-details-marker,
.status-fold > details > summary.status-item::marker {
  display: none;
  content: "";
}

.status-fold > details > summary.status-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-inline-end: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  justify-self: end;
}

.status-fold > details[open] > summary.status-item::after {
  transform: rotate(-135deg);
  margin-top: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .status-fold > details > summary.status-item:hover {
    background: var(--hover);
  }
}

.status-item-chart {
  padding: 0 16px 16px;
}

.status-item-chart .status-history-summary {
  margin: 0 0 10px;
  text-align: start;
}

/* #59.1/#59.4: first-column category icon colored by row tone; ok = lighter #7dcea0. */
.status-item.is-ok > .icon { color: #7dcea0; }
.status-item.is-warn > .icon { color: var(--status-warn); }
.status-item.is-bad > .icon { color: var(--status-bad); }
.status-item.is-deploy > .icon { color: var(--status-deploy); }

.status-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.status-name {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.status-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  white-space: pre-line;
}

.status-backup {
  width: calc(100% - 62px);
  margin: 2px 16px 14px 46px;
  border-collapse: collapse;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.status-backup th,
.status-backup td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: baseline;
  font-weight: 450;
}

.status-backup th {
  color: var(--muted);
  width: 46%;
  padding-inline-end: 12px;
}

.status-state {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  margin-top: 2px;
}

/* #58.4/#59.4: ok state text + icon share lighter #7dcea0. */
.status-item.is-ok .status-state { color: #7dcea0; }
.status-item.is-warn .status-state { color: var(--status-warn); }
.status-item.is-bad .status-state { color: var(--status-bad); }
.status-item.is-deploy .status-state { color: var(--status-deploy); }

.status-history {
  margin-top: 18px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.status-history-kicker {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.status-history-summary {
  margin: 0;
  color: var(--status-ok);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.status-history-summary.is-collecting {
  color: var(--muted);
}

.status-chart-frame {
  position: relative;
  display: block;
}

/* Y labels overlay the plot. The gutter is shared with the time row. */
.status-chart-plot {
  --status-gutter: 134px;
  min-width: 0;
}

.status-chart-box {
  position: relative;
  padding-inline-start: var(--status-gutter);
}

.status-chart-y {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 124px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
  text-align: end;
  pointer-events: none;
}

.status-chart-y span {
  position: absolute;
  inset-inline-end: 0;
  inset-inline-start: 0;
  display: block;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  transform: translateY(-50%);
}

.status-chart-y span:nth-child(1) { top: calc(100% * 16 / 216); }
.status-chart-y span:nth-child(2) { top: calc(100% * 74 / 216); }
.status-chart-y span:nth-child(3) { top: calc(100% * 132 / 216); }
.status-chart-y span:nth-child(4) { top: calc(100% * 190 / 216); }

.status-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 216;
  overflow: visible;
}

.status-chart-grid {
  stroke: #222;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.status-fill {
  opacity: 0.22;
}

.status-fill.is-ok { fill: #3d9a5f; }
.status-fill.is-deploy { fill: #0a84ff; }
.status-fill.is-warn { fill: #c9a227; }
.status-fill.is-bad { fill: #ff3b30; }

.status-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.status-line.is-ok { stroke: #3d9a5f; }
.status-line.is-deploy { stroke: #0a84ff; }
.status-line.is-warn { stroke: #c9a227; }
.status-line.is-bad { stroke: #ff3b30; }

.status-ribbon {
  stroke: none;
}

.status-ribbon.is-ok { fill: #3d9a5f; }
.status-ribbon.is-deploy { fill: #0a84ff; }
.status-ribbon.is-warn { fill: #c9a227; }
.status-ribbon.is-bad { fill: #ff3b30; }
.status-ribbon.is-void { fill: #1c1c1c; }

.status-chart-x {
  position: relative;
  height: 16px;
  margin-top: 2px;
  margin-inline-start: var(--status-gutter);
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
}

.status-chart-x span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.status-chart-x span:nth-child(1) {
  inset-inline-start: 0;
}

.status-chart-x span:nth-child(2) {
  left: 50%;
  transform: translateX(-50%);
}

.status-chart-x span:nth-child(3) {
  inset-inline-end: 0;
}

.status-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.status-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-legend li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71767b;
}

.status-legend .is-ok::before { background: #3d9a5f; }
.status-legend .is-deploy::before { background: #0a84ff; }
.status-legend .is-warn::before { background: #c9a227; }
.status-legend .is-bad::before { background: #ff3b30; }

.status-oncall {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.status-version-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 12px 0 0;
}

.status-version-facts dt {
  color: var(--muted);
  font-size: var(--text-13);
}

.status-version-facts dd {
  margin: 2px 0 0;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.status-version-facts code {
  font: inherit;
}

.status-oncall-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.status-oncall-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .status-oncall-card:hover {
    border-color: var(--hairline-strong);
  }
}

.status-oncall-person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .status-oncall-person:hover .user-name-text,
  .status-oncall-person:hover .post-name span:first-child {
    text-decoration: none;
  }
}

.status-oncall-card .post-avatar,
.status-oncall-card .post-avatar img,
.status-oncall-card .post-avatar span {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.status-oncall-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-oncall-copy .post-name {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  font-size: var(--text-15);
  line-height: 19px;
}

.status-oncall-copy .post-name > span:first-child {
  overflow-x: hidden;
  overflow-y: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 19px;
}

.status-oncall-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-oncall-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-oncall-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--elevated);
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .status-oncall-chip:hover {
    border-color: var(--fg);
  }
}

.status-oncall-chip.is-redacted {
  color: var(--muted);
  cursor: default;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .status-oncall-chip.is-redacted:hover {
    border-color: var(--hairline);
  }
}

.status-oncall-chip.is-redacted span {
  letter-spacing: 0.08em;
}

.status-oncall-chip .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--muted);
}

.status-oncall-chip span {
  min-width: 0;
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-transform: none;
}

.msg-looking {
  /* Sit above the compose field — not over the send control. */
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  align-self: flex-start;
  z-index: 4;
  width: max-content;
  max-width: max-content;
  margin: -28px 0 6px 14px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

.msg-looking[hidden] { display: none; }

.msg-looking-pic {
  position: relative;
  display: block;
  height: 28px;
  flex: 0 0 auto;
  /* The names are in its title. */
  pointer-events: auto;
}

/* One face per person, overlapping, with a count after three. */
.msg-looking-face {
  display: flex;
  align-items: center;
}

.msg-looking-one,
.msg-looking-one span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--avatar-empty);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--bg);
}

.msg-looking-one + .msg-looking-one {
  margin-inline-start: -9px;
}

.msg-looking-one img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--avatar-empty);
}

.msg-looking-more {
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
}

.msg-looking-mark {
  position: absolute;
  inset-inline-end: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 0 0 2px var(--bg);
  z-index: 2;
}

.msg-looking-mark .icon {
  width: 10px;
  height: 10px;
}

@media (max-width: 560px) {
  .status-chart-plot {
    --status-gutter: 0px;
  }

  .status-chart-y {
    display: none;
  }

  

  .status-history-summary {
    text-align: start;
  }
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.legal-body h2 {
  margin: 18px 0 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

/* A part of a section (the transparency report's Notices, Decisions...). */
.legal-body h3.legal-sub {
  margin: 8px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 650;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.legal-body h2 {
  scroll-margin-top: 16px;
}

.legal-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-inline-start: 22px;
}

.legal-toc a {
  color: var(--link);
}

/* A link in a page's text reads as one, not as the muted text around it. */
.legal-body a,
.legal-contact a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .legal-body a:hover,
  .legal-contact a:hover {
    color: var(--link-hover);
  }
}

@media (hover: hover) and (pointer: fine) {
  .legal-toc a:hover {
    color: var(--link-hover);
  }
}

/* Footnotes: a small number by the heading and a link at the section's
   end, both to the note under the last section; the note links back. */
.legal-note-mark {
  margin-inline-start: 2px;
  font-size: var(--text-13);
  line-height: 0;
}

.legal-note-mark a,
.legal-note-link a,
.legal-note-back {
  color: var(--link);
}

.legal-note-link {
  font-size: var(--text-13);
}

.legal-notes {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

.legal-notes-title {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: var(--text-15);
  font-weight: 650;
}

.legal-notes ol {
  margin: 0;
  padding-inline-start: 20px;
}

.legal-notes li {
  scroll-margin-top: calc(var(--topbar-h, 0px) + 16px);
}

.legal-notes li:target {
  color: var(--fg);
}

.legal-notes p {
  margin: 0 0 4px;
}

@media (hover: hover) and (pointer: fine) {
  .legal-note-mark a:hover,
  .legal-note-link a:hover,
  .legal-note-back:hover {
    color: var(--link-hover);
  }
}

.legal-toc {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-toc-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding-inline-start: 22px;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.legal-contact {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.legal-contact a {
  color: var(--link);
}

@media (hover: hover) and (pointer: fine) {
  .legal-contact a:hover {
    color: var(--link-hover);
  }
}

/* The new-group popup is in the page from the start, so it has its own
   backdrop class: a hidden `.ox-ask-back` would block pull-to-refresh and
   other "is a popup open" checks. It looks the same. */
.ox-ask-back,
.msg-group-back,
.invite-mint-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 24px;
}

.ox-ask {
  width: min(420px, 100%);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  /* The head reads these: a base that draws it as a full-width bar pulls
     it out to the box's edges by them. */
  --ask-pad-t: 20px;
  --ask-pad-x: 18px;
  padding: var(--ask-pad-t) var(--ask-pad-x) 16px;
  box-shadow: none;
}

/* A dialog is at most the screen's height: its title and its buttons stay
   in view, and only what is between them scrolls. The few dialogs built
   another way keep their own layout. */
.ox-ask:has(> .ox-ask-body) {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
}

.ox-ask:has(> .ox-ask-body) > :is(.ox-ask-head, .ox-ask-actions) {
  flex: none;
}

/* The room at the sides keeps a field's focus ring inside the scroll. */
.ox-ask > .ox-ask-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Out to the box's sides, the words kept in by as much: the scrollbar
     is then at the popup's edge, not a gutter's width inside it. */
  margin-inline: calc(-1 * var(--ask-pad-x));
  padding-inline: var(--ask-pad-x);
  padding-bottom: 2px;
}

.ox-ask p {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

/* `.ox-ask p` above would zero a note's gap under a field (post edit). */
.ox-ask-body > .field-note:not(:first-child) {
  margin-top: 8px;
}

.ox-ask .ground-error {
  margin-top: 10px;
}

.ox-ask .ground-rule.is-invalid,
.ox-ask .ground-law.is-invalid {
  border-color: #ff3b30;
}

.ox-ask-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* One row of equal buttons, whatever a button brings from the page it
   was borrowed from (the wallet's full-width Send, a form's top margin). */
.ox-ask .ox-ask-actions > .btn {
  flex: 0 0 auto;
  width: auto;
  height: var(--control-h);
  margin: 0;
}

.ox-ask-actions > [hidden] {
  display: none;
}

.cookie-bar {
  position: fixed;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.cookie-bar p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.cookie-bar a {
  color: var(--link);
}

@media (hover: hover) and (pointer: fine) {
  .cookie-bar a:hover {
    color: var(--link-hover);
  }
}

.post-embed {
  margin: 10px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

/* FB/IG must not inherit the 16:9 clip box from .post-embed */

/* Ancestors must not clip FB/IG full-height growth */

.post-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.msg-link-card {
  display: flex;
  margin: 8px 0 0;
  max-width: min(420px, 100%);
  text-decoration: none;
  color: inherit;
}

/* Fixed-size horizontal OG link preview (posts + chat). */
.post-embed.post-embed-card,
.post-embed-card,
.msg-link-card {
  aspect-ratio: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: min(100%, 420px);
  max-width: min(100%, 420px);
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .post-embed-card:hover {
    background: var(--hover);
    border-color: var(--hairline-strong, var(--hairline));
  }
}

html.theme-light .post-embed-card {
  border-color: color-mix(in srgb, var(--line) 88%, #000 12%);
  box-shadow: 0 0 0 1px color-mix(in srgb, #000 4%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .post-embed-card:hover {
    border-color: color-mix(in srgb, var(--line) 70%, #000 30%);
    background: color-mix(in srgb, var(--hover) 85%, #fff);
  }
}

html:not(.theme-light) .post-embed-card {
  border-color: color-mix(in srgb, var(--line) 80%, #fff 20%);
}

@media (hover: hover) and (pointer: fine) {
  html:not(.theme-light) .post-embed-card:hover {
    border-color: color-mix(in srgb, var(--line) 55%, #fff 45%);
    background: color-mix(in srgb, var(--hover) 90%, #fff 4%);
  }
}

.post-embed-card-thumb {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--hover) 70%, var(--card));
  overflow: hidden;
}

.post-embed-card-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: var(--hover);
}

.post-embed-card-img.is-favicon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

.post-embed-card-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-transform: uppercase;
  user-select: none;
}

.post-embed-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.post-embed-card-title {
  margin: 0;
  font-size: var(--text-15);
  font-weight: 700;
  line-height: 21px;
  color: var(--fg);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-embed-card-host {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: lowercase;
  min-width: 0;
}

.post-embed-card-host > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.post-embed-card-favicon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--hover);
}

.post-embed-card.is-compact .post-embed-card-title {
  font-weight: 600;
  -webkit-line-clamp: 1;
}

/* Fit widget to column so html overflow-x cannot shear the right border. */

.post-media {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
}

.post-media[data-n="2"],
.post-media[data-n="3"],
.post-media[data-n="4"] {
  grid-template-columns: 1fr 1fr;
}

.post-media .post-photo,
.post-media .post-video {
  margin: 0;
}

.post-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
}

.compose-shot-n {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
}

.post-photo {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}

.post-photo img {
  display: block;
  width: 100%;
  /* With its `width` and `height` (the store keeps them, schema 19) the
     picture has its shape before it loads, and nothing under it moves. */
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.post-photo.is-quote {
  margin-top: 8px;
  border-radius: 12px;
}

.post-photo.is-quote img {
  max-height: 220px;
}

.post-reveal {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post.is-sensitive:not(.is-open) .post-reveal > :not(.post-sensitive),
.quote-embed.is-sensitive:not(.is-open) .post-reveal > :not(.post-sensitive) {
  display: none !important;
}

.post.is-sensitive:not(.is-open) .post-reveal > .post-sensitive,
.quote-embed.is-sensitive:not(.is-open) .post-reveal > .post-sensitive {
  display: flex;
}

.post-sensitive {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.post-sensitive-title {
  font-weight: 650;
}

.post-sensitive-hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
}

.post-poll {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.post-poll.is-quote {
  margin-top: 8px;
}

.post-poll-opt {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
}

.post-poll.is-quote .post-poll-opt,
.post-poll[data-vote="0"] .post-poll-opt {
  cursor: default;
}

.post-poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pct, 0) * 1%);
  background: var(--hover);
  pointer-events: none;
}

.post-poll-letter {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--card-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.post-poll-opt.is-on {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.72);
}

.post-poll-opt.is-on .post-poll-letter {
  background: #fff;
  color: #1c1c1e;
}

.post-poll-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.post-poll-n {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.post-poll-when {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
}

.post-poll.is-quote .post-poll-when {
  font-size: 13px;
}

.post-poll.is-closed .post-poll-when {
  font-weight: 650;
}

.quote-embed > p:empty,
.quote-embed .quote-text:empty {
  display: none;
}

body:not([data-cdn="1"]) .compose-photo-btn,
body:not([data-cdn="1"]) .msg-photo-btn,
body:not([data-cdn="1"]) .msg-voice-btn {
  display: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
  /* Every touch is the lightbox's own (ui/lightbox): a drag up or down
     closes it, two fingers zoom, a zoomed photo moves with one. The page
     does not zoom (its viewport), and its pan-y on a phone left a pinch
     here nothing to do. */
  touch-action: none;
}

.media-lightbox.is-zoomed img {
  cursor: grab;
}

.media-lightbox img {
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.media-lightbox[hidden] {
  display: none !important;
}

.media-lightbox img {
  max-width: min(100%, 920px);
  max-height: min(100dvh - 48px, 920px);
  object-fit: contain;
  border-radius: 12px;
}

.media-lightbox-tools {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.media-lightbox-dl,
.media-lightbox-x {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.media-lightbox-dl .icon,
.media-lightbox-x .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  display: block;
  flex: none;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .media-lightbox-dl:hover,
  .media-lightbox-x:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  @view-transition { navigation: none; }
}

.av-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.av-box .avatar,
.av-box .profile-photo {
  position: relative;
}

/* b6 #13: the small thought bubbles are the outer span's pseudo elements,
   which always paint over their own element's background. The main bubble
   is drawn by the inner text span (z-index 1), so the small ones sit behind
   it, as with message reactions. */
.status-bubble {
  position: absolute;
  inset-inline-start: calc(100% - 6px);
  top: 2px;
  z-index: 3;
  width: max-content;
  max-width: min(240px, calc(100vw - 120px));
}

.status-bubble-text {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 12px 10px;
  border-radius: 18px 18px 18px 6px;
  background: var(--elevated);
  color: var(--fg);
  font-size: var(--text-13);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
}

.status-bubble::before,
.status-bubble::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--elevated);
  border-radius: 50%;
}

.status-bubble::before {
  width: 10px;
  height: 10px;
  inset-inline-start: -4px;
  bottom: -2px;
}

.status-bubble::after {
  width: 6px;
  height: 6px;
  inset-inline-start: -10px;
  bottom: -6px;
}

/* Rows touch; each is ruled under it (profile.css). */
.people {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* What is not a row keeps the room the list's gap gave it. */
.people > .settings-sub {
  margin: 18px 0 6px;
}

.people > .field-note,
.people > .people-head .field-note {
  margin: 4px 0 12px;
}

.people > .people-head {
  margin-bottom: 12px;
}

.people > .people-head h1 {
  margin: 0;
}

.uni-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.uni-head > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uni-head .settings-sub {
  margin: 0;
}

.uni-head .field-note {
  margin: 0;
}

.uni-more {
  position: relative;
}

.uni-more-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  border-radius: 14px;
  padding: 6px;
  overflow: hidden;
  z-index: var(--z-popup);
}

.uni-more-menu[hidden] { display: none; }

/* The time left on a Repost item that waits out the pause after a post. */
.menu-item > .post-repost-wait {
  margin-inline-start: auto;
  color: var(--muted);
}

/* Voice messages (ui/chat_voice): the recording under way above the
   composer, and the player in a bubble. */
.msg-voice-btn.is-on {
  color: var(--status-bad);
}

.msg-voice-rec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: 44px;
  box-sizing: border-box;
  height: 50px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
  font-size: 15px;
}

.msg-voice-rec[hidden] {
  display: none;
}

.msg-voice-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--status-bad);
  animation: msg-voice-blink 1.2s ease-in-out infinite;
}

@keyframes msg-voice-blink {
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg-voice-dot {
    animation: none;
  }
}

.msg-voice-time {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.msg-voice-hint {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-voice-rec .msg-shot-x {
  position: static;
  flex: none;
}

/* Stop keeps the recording in the bar; it plays there before it is sent. */
.msg-voice-stop {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--status-bad);
  cursor: pointer;
}

.msg-voice-stop-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}

.msg-voice-kept {
  flex: 1 1 auto;
  min-width: 0;
}

.msg-voice-kept .msg-voice {
  min-width: 0;
  min-height: 32px;
  padding: 0;
}

.msg-voice-kept .msg-voice-play {
  width: 32px;
  height: 32px;
}

.msg-voice-rec [hidden] {
  display: none;
}

.msg-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 2px 0;
}

.msg-voice-play {
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.msg-voice-play .icon {
  width: 19px;
  height: 19px;
  color: var(--bg);
}

.msg-voice.is-loading .msg-voice-play {
  opacity: 0.5;
}

.msg-voice-track {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 25%, transparent);
  overflow: hidden;
}

.msg-voice-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: currentColor;
}

.msg-voice-dur {
  flex: none;
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

/* Founder > Top queries: each statement on its own, wrapped, with its
   figures under it. */
.queries-totals {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.queries-since {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.queries-order {
  margin: 16px 0 12px;
}

.queries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queries-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.queries-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.queries-rank {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: var(--text-13);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.queries-share {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.queries-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}

.queries-bar > span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--link);
}

.queries-pct {
  flex: 0 0 auto;
  min-width: 44px;
  text-align: end;
  font-size: var(--text-13);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.queries-sql,
.queries-sql code {
  display: block;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

code.queries-sql,
details.queries-sql {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
}

details.queries-sql > summary {
  cursor: pointer;
  list-style: none;
}

details.queries-sql > summary::-webkit-details-marker {
  display: none;
}

details.queries-sql[open] > summary {
  display: none;
}

.queries-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.queries-facts > div {
  min-width: 0;
}

.queries-facts > .is-wide {
  grid-column: 1 / -1;
}

.queries-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.queries-facts dd {
  margin: 2px 0 0;
  font-size: var(--text-15);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {

  .queries-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Conversations docked at the bottom right (wide screens only): the
   Messages button with its list, and a window per open conversation
   beside it, the newest nearest. Bubbles and lines are Messages' own. */
.chat-dock {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 0;
  /* Above the stage (it rises to 160 while a menu is open) and above
     the phone rail (210). The message menu's layer sits just over this,
     and toasts and dialogs stay above both. */
  z-index: calc(var(--z-toast) - 4);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.chat-dock[hidden] {
  display: none;
}

/* Covers the page while the list or the new-message panel is open, so
   that panel reads as the thing in front. The windows and the column
   sit above it. */
.chat-dock-shade {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  cursor: default;
}

.chat-dock-shade[hidden] {
  display: none;
}

.chat-dock-wins,
.chat-dock-rail {
  position: relative;
  z-index: 1;
}

@media (max-width: 1099px) {
  .chat-dock {
    display: none;
  }
}

.chat-dock > *,
.chat-dock-wins > * {
  pointer-events: auto;
}

.chat-dock-wins {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

/* The column at the right edge: the heads of minimized conversations,
   New message, and the Messages button at the bottom. */
.chat-dock-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  pointer-events: none;
}

.chat-dock-rail > *,
.chat-dock-heads > * {
  pointer-events: auto;
}

.chat-dock-heads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.chat-dock-launch {
  position: relative;
  display: flex;
}

/* A round button of the column: a head, "+N", New message, Messages. */
.chat-dock-face {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--elevated);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.chat-dock-face[hidden] {
  display: none;
}

.chat-dock-face .icon {
  width: 23px;
  height: 23px;
}

@media (hover: hover) and (pointer: fine) {
  .chat-dock-face:hover {
    border-color: var(--hairline-strong);
  }
}

.chat-dock-face-open .chat-dock-avatar {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  font-size: var(--text-17);
}

/* An organization is a rounded square. The head is that shape, so the
   square is not sitting inside the round button. */
.chat-dock-face-open:has(.is-verified-business) {
  border-radius: 10px;
}

.chat-dock-face-open .chat-dock-avatar.is-verified-business {
  border-radius: 8px;
}

.chat-dock-face-open > .chat-dock-unread {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

.chat-dock-head-item {
  position: relative;
}

/* A head's close button shows on hover or keyboard focus. */
.chat-dock-face-x {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--elevated);
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s;
}

.chat-dock-face-x .icon {
  width: 13px;
  height: 13px;
}

.chat-dock-head-item:hover .chat-dock-face-x,
.chat-dock-head-item:focus-within .chat-dock-face-x {
  opacity: 1;
}

.chat-dock-toggle {
  width: 52px;
  height: 52px;
}

.chat-dock-toggle > .chat-dock-toggle-icon {
  display: block;
  grid-area: 1 / 1;
  width: 26px;
  height: 26px;
}

/* The unread count sits on the button's corner, over its edge, as the
   menu's counts do: not a piece of the button's content. */
.chat-dock-toggle > .chat-dock-badge {
  position: absolute;
  top: -7px;
  inset-inline-end: -5px;
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .chat-dock-toggle:hover {
    border-color: var(--hairline-strong);
  }
}

.chat-dock-badge,
.chat-dock-unread,
.chat-dock-row-n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--status-bad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  /* The digits sit in the middle of the disc: the line box is the digits'
     own height (cap height to baseline), not the font's ascent and descent,
     which put them a pixel or two high. */
  line-height: 1;
  text-box: trim-both cap alphabetic;
  text-align: center;
}

.chat-dock-badge[hidden],
.chat-dock-unread[hidden] {
  display: none;
}

.chat-dock-list {
  position: absolute;
  /* Over the open conversations, which come after it on the page. */
  z-index: 3;
  inset-inline-end: calc(100% + 12px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 340px;
  max-height: min(520px, calc(100vh - 120px));
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--elevated);
  overflow: hidden;
}

.chat-dock-list[hidden] {
  display: none;
}

/* The panels' heads read as every other popup's (`.ox-ask-head`): the
   title at the same size and weight, its tools at the right. */
.chat-dock-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

/* Their buttons are a popup's close button (`.ox-ask-x`): the same size,
   colour and place, centred on the title's line. */
.chat-dock-list-head .chat-dock-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: calc((var(--lh-24) - 36px) / 2) -8px calc((var(--lh-24) - 36px) / 2) 0;
  color: var(--fg);
}

.chat-dock-list-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.chat-dock-all {
  color: var(--link);
  font-size: var(--text-13);
  text-decoration: none;
}

.chat-dock-rows {
  --empty-gap: 12px;
  --empty-end: 6px;
  --list-pad-x: 12px;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.chat-dock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .chat-dock-row:hover {
    background: var(--hover);
  }
}

.chat-dock-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.chat-dock-row-text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.chat-dock-row-text strong,
.chat-dock-row-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-dock-row-text strong {
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.chat-dock-row-line {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.chat-dock-row.is-unread .chat-dock-row-line {
  color: var(--fg);
  font-weight: 700;
}

/* A window: a bar when minimized, the thread over a composer when open. */
.chat-dock-win {
  /* The conversation's colours as on Messages (founder, 2026-11-25: "the
     colors are not the same as on conversation page"): the page's own
     background behind the thread, so its bubbles are drawn as there. */
  --msg-behind: var(--bg);
  display: flex;
  flex-direction: column;
  /* A definite width. As a shrink-to-fit flex item the window would
     otherwise collapse to the min-content of its bubbles, and a bubble
     with overflow-wrap: anywhere then wraps after a few letters. */
  flex: 0 0 340px;
  width: 340px;
  min-width: 340px;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  overflow: hidden;
}

/* Minimized, a window is its head in the column. */
.chat-dock-win.is-min {
  display: none;
}

.chat-dock-head {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 52px;
  padding: 6px 4px 6px 4px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background-color 0.15s;
}

/* The head of a window is Messages' head (`.msg-head-who`), smaller. */
.chat-dock-who {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  color: var(--fg);
}

.chat-dock-who .msg-head-who {
  min-height: 40px;
  padding: 2px 4px;
  color: inherit;
  text-decoration: none;
}

.chat-dock-who .msg-head-handle {
  overflow: hidden;
  font-size: 13px;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* A window's unread count sits on the picture's corner, not in the line. */
.chat-dock-who > .chat-dock-unread {
  position: absolute;
  top: 0;
  inset-inline-start: 24px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 12px;
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
  z-index: 5;
}

/* Something came in while the window was not being looked at. The link
   colour is a light tint on several seasons, so white text on it
   disappeared. The button pair is a fill and a foreground that stay
   readable on every theme. */
.chat-dock-win.is-unseen .chat-dock-head {
  background: var(--btn);
  border-bottom-color: var(--btn);
}

.chat-dock-win.is-unseen .chat-dock-head,
.chat-dock-win.is-unseen .chat-dock-who,
.chat-dock-win.is-unseen .chat-dock-head .msg-head-who,
.chat-dock-win.is-unseen .chat-dock-head .msg-head-name,
.chat-dock-win.is-unseen .chat-dock-head .msg-head-handle,
.chat-dock-win.is-unseen .chat-dock-head .chat-dock-icon {
  color: var(--btn-fg);
}

.chat-dock-win.is-unseen .chat-dock-who > .chat-dock-unread {
  box-shadow: 0 0 0 2px var(--btn);
}

.chat-dock-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

/* A taller target than the 30 px it draws: the band above and below
   takes the click too, without moving anything. Not sideways: the
   buttons sit side by side, and a wider one would take its neighbour's
   clicks. */
.chat-dock-icon::after {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.chat-dock-icon .icon {
  width: 19px;
  height: 19px;
}

@media (hover: hover) and (pointer: fine) {
  .chat-dock-icon:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

.chat-dock-icon[aria-expanded="true"] {
  background: var(--hover);
  color: var(--fg);
}

.chat-dock-status {
  padding: 4px 12px 6px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* A window's search: the field under the head, the hits under it. */
.chat-dock-find-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 10px 0;
  padding: 0 4px 0 12px;
  height: 36px;
}

.chat-dock-find-bar[hidden],
.chat-dock-find-hits[hidden],
.chat-dock-gate[hidden],
.chat-dock-make-name[hidden],
.chat-dock-make-go[hidden],
.chat-dock-make-count[hidden],
.chat-dock-pins[hidden] {
  display: none;
}

.chat-dock-find-bar .search-icon .icon {
  width: 17px;
  height: 17px;
}

.chat-dock-find-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15);
  outline: none;
}

.chat-dock-find-hits {
  max-height: 180px;
  margin: 6px 0 0;
  padding: 2px 6px 6px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
}

.chat-dock-hit {
  width: 100%;
  min-height: 0;
  padding: 6px 8px;
  text-align: start;
}

.chat-dock-find-none {
  margin: 6px 8px;
  color: var(--muted);
  font-size: var(--text-13);
}

.chat-dock-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 440px;
  max-height: calc(100vh - 140px);
  min-height: 0;
}

/* Messages' scroll, narrower: nothing in it is wider than the window. */
.chat-dock-scroll.msg-scroll {
  padding: 10px 4px 6px;
  overflow-x: hidden;
  scrollbar-gutter: auto;
}

/* The lifted copy lives in the menu layer. Scaling the original bubble
   here reflowed every other message in the window. */
.chat-dock .msg-bubble.is-reacting {
  transform: none;
}

/* The faces of "viewing now" come up over the end: the last message and
   its receipt keep clear of them. */
.chat-dock-body:has(.chat-dock-looking:not([hidden])) .chat-dock-scroll.msg-scroll {
  padding-bottom: 34px;
}

.chat-dock-scroll .msg-line,
.chat-dock-scroll .msg-link-card,
.chat-dock-scroll .msg-photo,
.chat-dock-scroll img,
.chat-dock-scroll video {
  max-width: 100%;
}

/* The hold is as wide as its text, up to the window. min(100%, max-content)
   keeps a short message short and stops a long one collapsing to the
   width of a few letters. */
.chat-dock-scroll .msg-hold,
.chat-dock-scroll .msg-reply-stack {
  width: fit-content;
  max-width: min(260px, 100%);
  min-width: min(100%, max-content);
}

.chat-dock-scroll .msg-bubble {
  width: auto;
  max-width: 100%;
}

/* A voice message's player keeps its clock inside the narrower bubble. */
.chat-dock-scroll .msg-bubble.is-voice {
  max-width: min(260px, 84%);
}

.chat-dock-scroll .msg-voice {
  min-width: 0;
  width: 200px;
  max-width: 100%;
}

.chat-dock-scroll .msg-voice-dur {
  flex: 0 0 auto;
}

.chat-dock-note {
  margin: 24px 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: center;
}

.chat-dock-lock {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 28px 12px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: center;
}

.chat-dock-lock p {
  margin: 0;
}

.chat-dock-pin-input {
  width: 160px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--input-bg, transparent);
  color: var(--fg);
  font: inherit;
  font-size: 21px;
  letter-spacing: 0.3em;
  text-align: center;
}

/* "Viewing now" sits over the end of the thread, above the composer, as
   on Messages; its faces are ringed in the window's colour. */
.chat-dock-looking.msg-looking {
  margin-inline-start: 10px;
}

.chat-dock-looking .msg-looking-one,
.chat-dock-looking .msg-looking-one span {
  box-shadow: 0 0 0 2px var(--bg);
}

/* What stands in for the composer: a request, a block, why not. */
.chat-dock-gate {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: center;
}

.chat-dock-gate p {
  margin: 0;
}

/* Messages' composer in a window. */
.chat-dock-compose.msg-compose {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.msg-compose .msg-compose-row {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 4px;
}

/* Both composers (the Messages page's and a window's): the photo, poll,
   sensitive and voice actions sit in a menu to the left of the field; Emoji
   stays beside Send. */
.msg-compose .msg-tools {
  display: flex;
  position: relative;
  flex: 0 0 auto;
  align-self: flex-end;
  order: 0;
}

/* The menu's button: a round button the size of Emoji beside it, its three
   dots in the middle of it. */
.msg-compose .msg-tools-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  /* A round button, like Send at the other end of the row. */
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--hover);
  color: var(--fg);
  line-height: 0;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.msg-compose .msg-tools-btn .icon {
  display: block;
  width: 23px;
  height: 23px;
}

@media (hover: hover) and (pointer: fine) {
  .msg-compose .msg-tools-btn:hover {
    border-color: var(--muted);
  }
}

.msg-compose .msg-tools.is-open > .msg-tools-btn {
  border-color: #0a84ff;
  color: #0a84ff;
}

/* A bigger target than the 32 px it draws: the ring around it takes the
   tap too, without moving anything. */
.msg-compose .msg-tools-btn {
  position: relative;
}

.msg-compose .msg-tools-btn::after,
.msg-more::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.msg-more {
  position: relative;
}

/* The composer's tools open as the site's other menus do: the same glass,
   edge, corners and rows (`.ctx-menu`, `.menu-item`). */
.msg-tools-pop {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--menu-glass);
  backdrop-filter: blur(50px) saturate(1.9);
  -webkit-backdrop-filter: blur(50px) saturate(1.9);
}

html.theme-light .msg-tools-pop {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.1);
}

.msg-compose .msg-tools-pop {
  display: none;
  position: absolute;
  z-index: 6;
  inset-inline-start: 0;
  bottom: calc(100% + 6px);
  width: max-content;
  min-width: 198px;
  max-width: min(280px, calc(100vw - 24px));
}

.msg-compose .msg-tools.is-open > .msg-tools-pop {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.msg-compose .msg-input-wrap {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

/* Emoji inside the field, at its right end: a round button that keeps to
   the last line as the field grows; the text wraps before it. */
.msg-compose .msg-input-wrap > .msg-emoji-btn {
  position: absolute;
  inset-inline-end: 3px;
  bottom: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) {
  .msg-compose .msg-input-wrap > .msg-emoji-btn:hover {
    background: var(--hover);
  }
}

.msg-compose .msg-input-wrap > textarea {
  padding-inline-end: 38px;
}

.msg-compose .msg-send {
  order: 3;
  margin-inline-start: 0;
}

.msg-compose .msg-tools-pop .msg-photo-btn,
.msg-compose .msg-tools-pop .msg-poll-btn,
.msg-compose .msg-tools-pop .msg-sensitive-btn,
.msg-compose .msg-tools-pop .msg-voice-btn,
.msg-compose .msg-tools-pop .msg-location-btn {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: start;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 12px;
  white-space: nowrap;
}

/* A row lights up under the pointer, as a menu's rows do. */
@media (hover: hover) and (pointer: fine) {
  .msg-tools-pop :is(.msg-photo-btn, .msg-poll-btn, .msg-sensitive-btn, .msg-voice-btn, .msg-location-btn):hover {
    background: var(--hover);
  }

  html.theme-light .msg-tools-pop :is(.msg-photo-btn, .msg-poll-btn, .msg-sensitive-btn, .msg-voice-btn, .msg-location-btn):hover {
    background: rgba(0, 0, 0, 0.06);
  }
}

.msg-compose .msg-tools-pop .icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}

/* A tool that is on, in the menu: its icon in the link colour and the
   menus' check at the end of its row, not a filled row (two on at once ran
   together into one block; founder, 2026-11-16). */
.msg-compose .msg-tools-pop .is-on {
  background: transparent;
}

.msg-compose .msg-tools-pop .is-on .icon {
  color: var(--link);
}

.msg-compose .msg-tools-pop .is-on::after {
  content: "";
  /* In place, not the touch area the bar's buttons draw with it (a row of
     the menu is its own target). */
  position: static;
  inset: auto;
  width: 8px;
  height: 4px;
  margin-inline-start: auto;
  margin-inline-end: 2px;
  padding-inline-start: 0;
  flex: 0 0 auto;
  /* The text's colour, whatever the tool's own (recording is red). */
  border-inline-start: 1.8px solid var(--fg);
  border-bottom: 1.8px solid var(--fg);
  transform: rotate(-45deg) translateY(-2px);
}

.msg-compose .msg-tool-label {
  display: inline;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: 21px;
}

.chat-dock-compose .msg-shot,
.chat-dock-compose .msg-place,
.chat-dock-compose .msg-poll-compose {
  margin-inline-start: 0;
}

/* A window is itself the raised fill, so the poll being written there is a
   step lighter than it (or darker on a light page), with a firmer edge, as
   a card on a sheet. The letters and fields keep their own fills. */
.chat-dock-compose .msg-poll-compose {
  max-height: 200px;
  overflow-y: auto;
  border-color: var(--hairline-strong);
  background: color-mix(in srgb, var(--fg) 6%, var(--elevated));
}

.chat-dock-compose .msg-poll-compose-letter {
  background: var(--elevated);
}

.chat-dock-compose .msg-voice-rec {
  flex-wrap: nowrap;
  width: 100%;
  margin-inline-start: 0;
  height: auto;
  min-height: 44px;
}

/* The pinned conversations, as faces over the list. */
.chat-dock-pins {
  display: flex;
  gap: 4px;
  padding: 8px 10px 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.chat-dock-pin.chat-dock-row {
  display: grid;
  flex: 0 0 64px;
  justify-items: center;
  gap: 4px;
  width: 64px;
  padding: 4px 2px;
}

.chat-dock-pin-face {
  position: relative;
  display: grid;
}

.chat-dock-pin-face .chat-dock-row-n {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  box-shadow: 0 0 0 2px var(--elevated);
}

.chat-dock-pin-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-dock-row-name {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.chat-dock-row-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* New message and New group, made in the dock. */
.chat-dock-make-form {
  display: grid;
  gap: 12px;
  padding: 12px 16px 16px;
}

.chat-dock-make-form .field {
  margin: 0;
}

.chat-dock-make-chips:empty {
  display: none;
}

.chat-dock-make-go {
  justify-self: end;
}

/* The suggestions open above the field. The sheet is pinned to the bottom
   of the screen, so a list under the field is cut off and looks like typing
   found nobody. */
.chat-dock-make {
  overflow: visible;
}

.chat-dock-make-form {
  overflow: visible;
}

.chat-dock-make .handle-pick-panel {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: auto;
  bottom: calc(100% + 6px);
  max-height: min(260px, 42vh);
  margin-top: 0;
  z-index: 5;
  overflow-y: auto;
}

/* The presence host of a head's and a list row's picture: its size, so
   Messages' dot sits on its corner. */
.chat-dock-face-av.post-avatar {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  align-self: center;
}

.chat-dock-row-av.post-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-self: center;
}

.chat-dock-face-av.has-live::after,
.chat-dock-row-av.has-live::after,
.chat-dock-who .msg-head-photo.has-live::after {
  border-color: var(--elevated);
}

/* The message field's row: the tools button and Send stand 8px from the
   sides, as far as the row stands under the messages (founder,
   2026-11-14: 18px, then 12px, were too far in on a phone). The window of
   a docked conversation keeps its own sides. */
.messages .msg-compose:not(.chat-dock-compose) {
  padding-inline: 8px;
}

/* On a phone the message field and the round buttons at its ends are a
   finger's size (founder, 2026-11-15: hard to hit at 36px). */
@media (max-width: 800px) and (pointer: coarse) {
  .msg-compose textarea {
    min-height: 44px;
    height: 44px;
    padding: 11px 16px;
    border-radius: 22px;
    font-size: 16px;
  }

  .msg-compose .msg-input-wrap > textarea {
    padding-inline-end: 50px;
  }

  .msg-compose .msg-tools-btn,
  .msg-send {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .msg-compose .msg-tools-btn .icon,
  .msg-send svg {
    width: 26px;
    height: 26px;
  }

  /* The emoji button fills the field's height, as large as a finger
     wants it (founder, 2026-11-16). */
  .msg-compose .msg-input-wrap > .msg-emoji-btn {
    inset-inline-end: 2px;
    bottom: 2px;
    width: 40px;
    height: 40px;
  }

  .msg-compose .msg-input-wrap > .msg-emoji-btn .icon {
    width: 28px;
    height: 28px;
  }
}

/* A location in a message: a card that opens the place in Google Maps
   (ui/chat_location.rs). Its own colours, so it reads in a sent bubble and
   a received one alike. */
/* A message's info and a conversation's stats (ui/chat_info.rs): the
   site's fact tables, a member under its name, a share as a bar. */
.msg-info,
.msg-stats {
  display: grid;
  gap: 12px;
}

.msg-info .report-facts,
.msg-stats .report-facts {
  grid-template-columns: minmax(6.5em, max-content) minmax(4em, 1fr);
}

@media (max-width: 560px) {
  .msg-info .report-facts dt,
  .msg-info .report-facts dd,
  .msg-stats .report-facts dt,
  .msg-stats .report-facts dd {
    padding: 9px 12px;
    border-top: 1px solid var(--line);
  }

  .msg-info .report-facts dt,
  .msg-stats .report-facts dt {
    background: color-mix(in srgb, var(--fg) 3%, transparent);
  }

  .msg-info .report-fact:first-child > dt,
  .msg-info .report-fact:first-child > dd,
  .msg-stats .report-fact:first-child > dt,
  .msg-stats .report-fact:first-child > dd {
    border-top: 0;
  }
}

.msg-info-head {
  margin: 4px 0 0;
  font-size: var(--text-15, 15px);
}

.msg-info-members,
.msg-stats-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msg-info-who {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.msg-info-who span,
.msg-stats-who span,
.msg-info-off,
.msg-info-acc,
.msg-stats-share,
.msg-stats-left {
  color: var(--muted);
}

.msg-info-place {
  display: block;
  font-variant-numeric: tabular-nums;
}

.msg-info-acc {
  display: block;
  font-size: var(--text-13);
}

.msg-info-map {
  display: inline-block;
  margin-top: 4px;
  color: var(--link);
}

.msg-info-note {
  margin: 0;
}

.msg-stats-row {
  display: grid;
  gap: 6px;
}

.msg-stats-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.msg-stats-who {
  min-width: 0;
  overflow-wrap: anywhere;
}

.msg-stats-n {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.msg-stats-bar {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  overflow: hidden;
}

.msg-stats-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--link);
}

.msg-stats-share {
  font-size: var(--text-13);
}

.msg-place-ask p {
  margin: 0 0 10px;
}

.msg-place-ask ul {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding-inline-start: 20px;
}

.msg-location {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "pin copy" "open open";
  align-items: center;
  gap: 8px 10px;
  min-width: 220px;
  max-width: 280px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--elevated);
  color: var(--fg);
  text-decoration: none;
}

/* The pin stands by the first line, "Location", as an icon by several
   lines does elsewhere (founder, 2026-11-16). */
.msg-location-pin {
  grid-area: pin;
  align-self: start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--link) 18%, transparent);
  color: var(--link);
}

.msg-location-pin .icon {
  width: 23px;
  height: 23px;
}

.msg-location-copy {
  grid-area: copy;
  align-self: start;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.msg-location-copy strong {
  font-size: var(--text-15);
  font-weight: 600;
}

.msg-location-where,
.msg-location-acc {
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
}

.msg-location-open {
  grid-area: open;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--link);
  font-size: var(--text-14, 14px);
  font-weight: 600;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .msg-location:hover .msg-location-open {
    background: color-mix(in srgb, var(--fg) 14%, transparent);
  }
}

/* In a message it is the bubble's content, as any message's is: the
   bubble's own colours and place (founder, 2026-11-16), no box of its own. */
.msg-bubble .msg-location {
  min-width: 200px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
}

/* A held press opens the message's menu, not the phone's link preview. */
.msg-bubble .msg-location {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.msg-bubble .msg-location-pin {
  background: color-mix(in srgb, currentColor 16%, transparent);
  color: inherit;
}

.msg-bubble :is(.msg-location-where, .msg-location-acc) {
  color: inherit;
  opacity: 0.78;
}

.msg-bubble .msg-location-open {
  background: color-mix(in srgb, currentColor 16%, transparent);
  color: inherit;
}

/* Waiting to be sent: above the field, where an attached photo waits. */
.msg-place {
  position: relative;
  margin-inline-start: 44px;
  width: min(280px, calc(100% - 44px));
}

.msg-place[hidden] {
  display: none;
}

.msg-place .msg-location {
  max-width: none;
  padding-inline-end: 44px;
}

.msg-place-wait {
  margin: 0;
  padding: 14px 44px 14px 14px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--elevated);
  color: var(--muted);
  font-size: var(--text-14, 14px);
}


/* The Help pages' switcher over a legal page (founder, 2026-11-17): the
   page's own name with a chevron, one line on any screen; the documents
   open as a menu under it, the one shown marked. */
.help-docs {
  margin: 0 0 18px;
}
.help-docs-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.help-docs-btn > .icon {
  flex: none;
  width: 23px;
  height: 23px;
  color: var(--muted);
}
/* The chevron points down: the list opens under it. */
.help-docs-btn > .icon:last-child {
  width: 19px;
  height: 19px;
  transform: rotate(90deg);
}
.help-docs-text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
}
.help-docs-kicker {
  color: var(--muted);
  font-size: var(--text-13);
}
.help-docs-text strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) {
  .help-docs-btn:hover {
    background: var(--hover);
  }
}
.help-docs-menu {
  inset-inline: 0;
  min-width: 0;
}
.help-docs-menu .menu-item.is-on {
  font-weight: 650;
  color: var(--link);
}

/* A dropdown lifted to the top layer (`menus::to_front`): the browser's
   popover frame, colours and centring give way to the menu's own rules,
   which all outrank this one (founder, 2026-11-29: menus always in front). */
:where(.is-front[popover]) {
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
  width: auto;
  height: auto;
}

/* A menu is as wide as its longest line, up to a limit. One anchored at
   its button's end was laid out in the button's own width, so a line
   longer than the menu's least width broke in two ("Munka meghirdetése";
   founder, 2026-12-01: "fix context menus width"). A sheet (a phone) has
   the screen's width. */
:is(.post-menu, .admin-menu, .uni-more-menu, .ctx-menu):not(.is-sheet) {
  width: max-content;
  max-width: min(calc(100vw - 24px), 380px);
}
.report-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.report-tag.is-open {
  color: #8ecdff;
  background: color-mix(in srgb, #1d9bf0 18%, transparent);
}

.report-tag.is-progress {
  color: #e2b340;
  background: color-mix(in srgb, #c9852a 20%, transparent);
}

.report-tag.is-done {
  color: var(--status-ok, #7dcea0);
  background: color-mix(in srgb, var(--status-ok, #3d9a5f) 20%, transparent);
}

.report-tag.is-refused {
  color: var(--status-bad, #ff8a80);
  background: color-mix(in srgb, var(--status-bad, #ff8a80) 18%, transparent);
}

.report-tag.is-kind {
  color: var(--muted);
  font-weight: 600;
}

.ox-ask-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
}

.ox-ask-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.ox-ask-x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  /* Top right, centred on the title's first line; the icon lines up with
     the text's right edge, and the circle stays inside the box's padding. */
  margin: calc((var(--lh-24) - 36px) / 2) -8px calc((var(--lh-24) - 36px) / 2) 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .ox-ask-x:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

.ox-ask-x .icon {
  width: 19px;
  height: 19px;
}

#note-filter {
  display: flex;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.ox-ask-wide {
  width: min(520px, 100%);
  max-height: min(80dvh, 640px);
}

/* Built without the shared body (New Product Key): it scrolls whole. */
.ox-ask-wide:not(:has(> .ox-ask-body)) {
  overflow: auto;
}

.ox-ask-input,
.ox-ask .field {
  margin-top: 12px;
}

.ox-ask .field input,
.ox-ask-input {
  width: 100%;
}

.ox-ask .toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  min-height: 32px;
  width: 100%;
  box-sizing: border-box;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}
.ox-ask .toggle-ctrl {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 26px;
}
.ox-ask .toggle-ctrl input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ox-ask .toggle-ui {
  display: block;
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: var(--bubble-in);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.ox-ask .toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  transform: translateX(0);
}
.ox-ask .toggle-ctrl input:checked + .toggle-ui {
  background: var(--fg);
  box-shadow: none;
}
.ox-ask .toggle-ctrl input:checked + .toggle-ui::after {
  transform: translateX(16px);
  background: var(--bg);
}

.ox-people {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ox-people li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.ox-people li + li {
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .uni-head {
    flex-direction: column;
    gap: 12px;
  }

  /* A head whose end is a "…" menu keeps it in the top right corner. */
  .uni-head:has(> .uni-more:last-child) {
    flex-direction: row;
  }
}

.report-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Two filter rows over one list stack, with no title over either. */
.seg-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Choices that do not fit on one line wrap onto the next, every one in
   reach. The corners are half of one line's height: a pill on one line, a
   rounded box on two. */
/* One height for every row, whatever a choice is (a link, a button, a
   label with a radio) and whatever the browser gives a button. */
.seg {
  box-sizing: border-box;
  display: flex;
  /* In a column of controls (the Wallet's filters) it would be squeezed
     to one line's height as it wraps, its second line hanging out. */
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 36px;
  /* Not shrunk, but never wider than where it stands: its choices go on
     to a second line (the server logs' window ran off a phone in German). */
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-2);
}

/* A choice is a link or a button; both look the same. */
/* A choice still working (Search's Use my location): it pulses, its label
   kept. */
.seg-item.is-busy {
  animation: seg-busy 1.1s ease-in-out infinite;
}

@keyframes seg-busy {
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seg-item.is-busy {
    animation: none;
    opacity: 0.7;
  }
}

/* A row on more than one line: the choices that share a line read from the
   left; one alone on its line keeps the middle (ui/seg.rs). Nothing here
   may change a choice's size: the page reads the lines from the layout,
   and a size that follows them moves a choice to another line and back
   (a Hungarian row on Limited accounts shook, 2026-11-19, with 4px more
   padding on all but the one alone). The 4px is drawn, not laid out. */
.seg[data-wrapped] > .seg-item:not([data-alone]) {
  justify-content: flex-start;
  text-align: start;
}

.seg[data-wrapped] > .seg-item:not([data-alone]) > * {
  translate: 4px 0;
}

.seg-item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  box-sizing: border-box;
  /* It fills the row's height inside its 3px padding, so a fill keeps the
     same 3px from the row's edge above, below and at the ends. */
  align-self: stretch;
  height: auto;
  /* 28px from its own line and padding, not from a min-height: a row that
     wraps sizes each line by its choices' own height, and a min-height on
     a stretched choice let the second line hang out of the row. */
  min-height: 28px;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  /* A step brighter than --muted: on the default dark theme --muted on
     --card-2 falls under 4.5:1. */
  color: color-mix(in srgb, var(--muted) 75%, var(--fg));
  font: inherit;
  font-size: var(--text-13);
  line-height: 19px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

/* The choice under the pointer gets a soft fill; the picked one the same
   fill twice, so the two never look alike. */
@media (hover: hover) and (pointer: fine) {
  .seg-item:hover {
    color: var(--fg);
    background: var(--hover);
  }
}

/* A fill (hover or picked) follows the row: round only where the row is,
   on the outer side of its first and last choice; square on the inner
   side and on every choice between. */
.seg > .seg-item {
  border-radius: 0;
}

/* 14px: the row's 18px corner less its border and padding, so the
   curves run parallel. */
.seg > .seg-item:first-child {
  border-radius: 14px 0 0 14px;
}

.seg > .seg-item:last-child {
  border-radius: 0 14px 14px 0;
}

.seg > .seg-item:only-child {
  border-radius: 14px;
}

/* Once the page has measured the row (ui/seg.rs): round exactly the
   corners a choice shares with the row, whichever line it fell on. */
.seg[data-shaped] > .seg-item {
  border-radius: 0;
}

.seg[data-shaped] > .seg-item[data-corners~="tl"] {
  border-start-start-radius: 14px;
}

.seg[data-shaped] > .seg-item[data-corners~="tr"] {
  border-start-end-radius: 14px;
}

.seg[data-shaped] > .seg-item[data-corners~="bl"] {
  border-end-start-radius: 14px;
}

.seg[data-shaped] > .seg-item[data-corners~="br"] {
  border-end-end-radius: 14px;
}

.seg-item:is(.is-on, [aria-selected="true"], [aria-pressed="true"], :has(> input:checked)) {
  color: var(--fg);
  background: linear-gradient(var(--hover), var(--hover)), var(--hover);
}

/* Every choice in a sheet or panel, tabs too, is the same pill row as the
   wallet's All / Received / Sent: the picked one filled. The page-level
   tabs (Timeline, a profile, its follow lists, Search) are .profile-tabs. */

/* How many the choice holds, in brackets as on the profile tabs: "All (11)".
   The brackets are drawn here, so a count the page updates keeps them. */
.seg-n {
  color: var(--tab-n);
  font-variant-numeric: tabular-nums;
}

.seg-n::before {
  content: "(";
}

.seg-n::after {
  content: ")";
}

/* One case card for reports, appeals, context notes, a person's cases and
   limited accounts: the tags and the time on top, the facts table, then
   any actions, the same spacing everywhere. A card that opens its case
   (`data-href`) takes the pointer and a hover. */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-anchor: none;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 2.5%, transparent);
  box-shadow: none;
}

.report-card[data-href] {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .report-card[data-href]:hover {
    background: color-mix(in srgb, var(--fg) 5%, transparent);
  }
}

.report-card > .muted-actions,
.report-card > .report-card-actions {
  margin: 0;
}

.report-card-top,
.report-sheet-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.report-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.report-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-inline-start: auto;
  text-align: end;
}

.report-time {
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
}

/* #30: on a card in a list, the text is one line with an ellipsis (the
   case opens it whole); the cell's padding keeps descenders, accents and
   emoji inside the clip. */
.report-facts dd.report-card-body,
.report-fact.is-wide dd.report-card-body {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.report-none {
  color: var(--muted);
}

.report-act-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 2.5%, transparent);
}
.report-act-group + .report-act-group {
  margin-top: 4px;
}
.report-act-title {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 650;
}
.report-act-group .admin-lock {
  margin: 0;
}
.report-act-group .muted-actions {
  margin: 0;
}
.report-detail .report-actions {
  gap: 16px;
}

.report-detail .report-body {
  margin: 0;
  white-space: pre-wrap;
}

/* Facts about a case (reports, context, spam, accounts, cases): a table of
   label and value, one line between rows; a long value (an address, an
   email) wraps in its cell instead of running out. A phone stacks each
   label over its value. */
/* An event's or a task's two reminders: one under the other in the
   field, each as wide as it. */
.remind-pair {
  display: grid;
  gap: 6px;
}

/* Settings > Calendar: the four default reminders, two beside each other
   (events, then tasks), one under the other on a phone. */
.remind-defaults {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

@media (max-width: 560px) {
  .remind-defaults {
    grid-template-columns: minmax(0, 1fr);
  }
}

.report-facts {
  margin: 0;
  display: grid;
  /* The value keeps room of its own: a long label once took the whole
     row and its figure was cut away; the label wraps instead. */
  grid-template-columns: minmax(8em, max-content) minmax(5em, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.report-fact {
  display: contents;
}

.report-facts dt,
.report-facts dd {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.report-fact:first-child > dt,
.report-fact:first-child > dd {
  border-top: 0;
}

.report-facts dt {
  color: var(--muted);
  font-size: var(--text-13);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.report-facts dd {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.report-fact.is-wide dd {
  white-space: pre-wrap;
}

@media (max-width: 560px) {
  .report-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-facts dd {
    padding-top: 2px;
    border-top: 0;
  }

  .report-facts dt {
    padding-bottom: 2px;
    background: none;
  }
}

.transparency-facts {
  margin: 0 0 18px;
}

.transparency-downloads {
  flex-direction: column;
  align-items: stretch;
}

/* A long label (a language with long words, a phone) goes on to a
   second line inside its button. */
.transparency-downloads > .btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: var(--control-h);
  padding-block: 6px;
  justify-content: center;
  white-space: normal;
  text-align: center;
  text-box: normal;
  line-height: var(--lh-20);
}

.report-embed {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.report-embed:has(.post-menu:not([hidden])) {
  overflow: visible;
  position: relative;
  z-index: 30;
}

.report-embed .post {
  margin-inline: 0;
  padding: 10px 12px 12px;
  border-bottom: 0;
}

@media (max-width: 640px) {
  .report-when {
    align-items: flex-start;
    margin-inline-start: 0;
    text-align: start;
    width: 100%;
  }
}

.online-face .av-box {
  display: block;
}

.mcp-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
  overflow: visible;
}

.mcp-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.mcp-row:first-child {
  border-start-start-radius: 16px;
  border-start-end-radius: 16px;
}

.mcp-row:last-child {
  border-bottom: 0;
  border-end-start-radius: 16px;
  border-end-end-radius: 16px;
}

.mcp-row:has(.post-copy.is-on) {
  z-index: 3;
}

.mcp-k {
  color: var(--muted);
  font-size: var(--text-13);
}

.mcp-v {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.mcp-code {
  display: block;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-13);
  line-height: 1.4;
  color: var(--fg);
}

/* #78.20–21: "No token yet" matches other mcp-v lines; endpoints same size */
.mcp-v > .field-note {
  margin: 0;
  font-size: var(--text-13);
  line-height: 1.4;
  color: var(--fg);
  display: flex;
  align-items: center;
  min-height: 1.4em;
}

.mcp-v {
  font-size: var(--text-13);
  line-height: 1.4;
}

.mcp-v > .post-copy {
  flex: 0 0 auto;
  margin-inline-start: 0;
  z-index: 1;
}

/* The icon is 20px; a finger gets a 44px target around it. */
.mcp-v > .post-copy::before {
  content: "";
  position: absolute;
  inset: -12px;
}

.mcp-secret {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.08);
}

.mcp-secret-label {
  margin: 0 0 10px;
  font-size: var(--text-13);
}

.mcp-secret-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mcp-secret-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--fg);
  background: var(--input-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  caret-color: var(--fg);
}

#mcp-token.mcp-secret-input {
  color: var(--fg);
  background: var(--input-bg);
  caret-color: var(--fg);
}

.mcp-config-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
  overflow: auto;
}

.mcp-config {
  margin: 0;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mcp-connected {
  margin-top: 22px;
}

.mcp-connected > .settings-sub {
  margin-bottom: 6px;
}

.mcp-connected > .field-note {
  margin-top: 0;
}

.mcp-connector-list {
  margin-top: 10px;
}

.mcp-connector .session-kind {
  color: var(--fg);
}

.credit {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credit-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 231, 168, 0.28), transparent 42%),
    radial-gradient(circle at 88% 120%, rgba(212, 162, 74, 0.18), transparent 46%),
    linear-gradient(165deg, #1a140c 0%, #0c0905 58%, #070604 100%);
  border: 1px solid var(--credit-line);
  box-shadow: none;
}

.credit-disc {
  pointer-events: none;
  position: absolute;
  inset-inline-end: -18px;
  top: -28px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 244, 214, 0.55), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(90, 58, 14, 0.55), transparent 42%),
    conic-gradient(from 210deg, #f3d48a, #8a5c18, #ffe7a8, #6a4a16, #d4a24a, #f3d48a);
  box-shadow:
    inset 0 0 0 10px rgba(20, 14, 6, 0.35),
    inset 0 0 0 12px rgba(255, 231, 168, 0.28);
  opacity: 0.42;
}

/* A price change ahead for the plan this wallet pays. */
.credit-plan-ahead {
  display: block;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-decoration: none;
}

.credit-plan-ahead strong {
  color: var(--fg);
  font-weight: 500;
}

.credit-kicker {
  margin: 0;
  color: var(--credit-text);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credit-balance {
  margin: 6px 0 0;
  color: var(--credit-text-hot);
  font-size: 47px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.credit-unit {
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--credit-text);
}

.credit-send {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.credit-send.credit-check {
  padding: 0;
  border: none;
  background: none;
  gap: 10px;
}

.check-paper {
  --check-ink: #1c2a44;
  --check-line: #6d86ad;
  --check-mute: #4a5d78;
  position: relative;
  overflow: visible;
  /* The ruled frame runs 8px outside the writing (4px under the foot), on
     every width: it follows the padding. */
  --check-pad-t: 18px;
  --check-pad-r: 20px;
  --check-pad-b: 14px;
  --check-pad-l: 26px;
  padding: var(--check-pad-t) var(--check-pad-r) var(--check-pad-b) var(--check-pad-l);
  color: var(--check-ink);
  border-radius: 8px;
  border: 1px solid #c9b48a;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 10px,
      rgba(90, 130, 110, 0.035) 10px 11px
    ),
    radial-gradient(ellipse at 88% 12%, rgba(212, 162, 74, 0.16), transparent 36%),
    radial-gradient(ellipse at 12% 88%, rgba(90, 130, 160, 0.1), transparent 42%),
    linear-gradient(180deg, #f7f1de 0%, #efe4c8 58%, #e8d7b0 100%);
  box-shadow: none;
}

.check-paper::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: calc(var(--check-pad-t) - 8px) calc(var(--check-pad-r) - 8px) calc(var(--check-pad-b) - 4px) calc(var(--check-pad-l) - 8px);
  border: 1px solid rgba(109, 134, 173, 0.28);
  border-radius: 4px;
}

.check-mark {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(-14deg);
  color: rgba(180, 140, 60, 0.09);
  font-size: clamp(48px, 12vw, 84px);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.check-top,
.check-pay,
.check-words,
.check-foot,
.check-micr {
  position: relative;
  z-index: 1;
}

.check-pay {
  z-index: 3;
}

.check-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.check-bank-name {
  margin: 0;
  font-size: 19px;
  line-height: 23px;
  letter-spacing: 0.02em;
}

.check-bank-sub {
  margin: 2px 0 0;
  color: var(--check-mute);
  font-size: 13px;
  line-height: 17px;
}

.check-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.check-date span:first-child,
.check-label,
.check-sign-label,
.check-words-unit {
  color: var(--check-mute);
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.check-date-val {
  min-width: 11rem;
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--check-line);
  font-size: 15px;
  line-height: 19px;
  text-align: end;
}

.check-pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.check-payee,
.check-memo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.check-payee .check-label,
.check-memo .check-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.check-paper input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 0 6px;
  color: var(--check-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--check-line);
  border-radius: 0;
  font-size: 17px;
  line-height: 23px;
  letter-spacing: 0.01em;
  color-scheme: light;
  caret-color: var(--check-ink);
}

.check-paper input:focus,
.check-paper input:focus-visible {
  border-bottom-color: var(--check-ink);
}

.check-amt {
  display: flex;
  align-items: stretch;
  min-width: 9.5rem;
  border: 2px solid var(--check-ink);
  background: rgba(255, 255, 255, 0.38);
}

.check-amt-mark {
  display: grid;
  place-items: center;
  width: 28px;
  color: var(--check-ink);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-inline-end: 1px solid var(--check-ink);
}

.check-amt input {
  width: 8.5rem;
  padding: 8px 10px;
  border: none;
  font-size: 19px;
  line-height: 23px;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.check-amt input:focus,
.check-amt input:focus-visible {
  border: none;
}

/* The amount's box shows the focus as the lines do theirs (a keyboard
   left no mark on it; 2026-11-20). */
.check-amt:focus-within {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--check-ink) 45%, transparent);
}

.check-words {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 36px;
  margin-top: 14px;
  border-bottom: 1px solid var(--check-line);
}

.check-words-val {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 22px;
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 21px;
  font-style: italic;
  overflow-wrap: anywhere;
}

.check-words-unit {
  flex: 0 0 auto;
  margin: 0 0 6px;
  color: var(--check-ink);
  font-weight: 400;
}

.check-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(11rem, 0.85fr);
  gap: 22px;
  align-items: end;
  margin-top: 16px;
}

.check-memo .field-wait {
  color: var(--check-mute);
  letter-spacing: 0.04em;
  text-transform: none;
}

.check-memo .field-wait.is-low {
  color: var(--check-ink);
}

.check-sign {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.check-sign-btn {
  display: grid;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--check-ink);
  text-align: start;
  background: transparent;
  border: 0;
  overflow: hidden;
  cursor: pointer;
}

.check-sign-name {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0.08em 2px 0.34em 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Segoe Script", "Apple Chancery", "Snell Roundhand", "Palatino Linotype", cursive;
  font-size: 30px;
  line-height: 1;
}

.check-sign-rule {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 0;
  display: block;
  height: 1px;
  margin: 0 0 0.58em;
  background: var(--check-ink);
  pointer-events: none;
}

.check-sign-btn:hover .check-sign-name,
.check-sign-btn:focus-visible .check-sign-name {
  color: #0f1a30;
}

.check-sign-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.check-sign-label {
  margin-top: 6px;
}

.check-micr {
  margin: 16px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(28, 42, 68, 0.22);
  color: #161616;
  font-family: ui-monospace, "OCR A Std", "OCR A", "Courier New", monospace;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

/* The account id and the handle are always a line each. */
.check-micr > span {
  display: block;
}

.credit-check .handle-pick .handle-pick-panel {
  color: var(--fg);
  color-scheme: dark;
}

.credit-check .form-error,
.credit-check .form-ok {
  margin: 0 4px;
}

@media (max-width: 640px) {
  .check-paper {
    --check-pad-t: 16px;
    --check-pad-r: 14px;
    --check-pad-b: 12px;
    --check-pad-l: 20px;
  }

  .check-top {
    flex-direction: column;
    gap: 12px;
  }

  .check-date {
    align-items: flex-start;
    width: 100%;
  }

  .check-date-val {
    min-width: 0;
    width: 100%;
    text-align: start;
  }

  .check-pay,
  .check-foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .check-amt {
    width: 100%;
    min-width: 0;
  }

  .check-amt input {
    width: 100%;
  }
}

.credit-send > .settings-sub {
  margin: 0;
}

.credit-send > .field-note {
  margin: 0 0 2px;
}

.credit-send #credit-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.btn.credit-send-btn {
  margin-top: 8px;
  width: 100%;
  background: var(--credit-text);
  color: var(--credit-btn-fg);
  border-color: var(--credit-text);
}

@media (hover: hover) and (pointer: fine) {
  .btn.credit-send-btn:hover {
    color: var(--credit-btn-fg);
    background: var(--credit-text-hot);
    border-color: var(--credit-text-hot);
  }
}

.ox-ask.wallet-confirm {
  border: 1px solid var(--credit-line);
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 231, 168, 0.22), transparent 42%),
    radial-gradient(circle at 88% 118%, rgba(212, 162, 74, 0.14), transparent 48%),
    linear-gradient(165deg, #1a140c 0%, #0c0905 58%, #070604 100%);
  box-shadow: none;
}

.ox-ask.wallet-confirm .ox-ask-body {
  text-align: center;
}

.ox-ask.wallet-confirm .wallet-confirm-amt {
  margin: 0;
  color: var(--credit-text-hot);
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.ox-ask.wallet-confirm .wallet-confirm-unit {
  margin: 6px 0 0;
  color: var(--credit-text);
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-confirm-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 20px 0 0;
}

.wallet-confirm-to {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px 8px 8px;
  text-align: start;
  border-radius: 999px;
  border: 1px solid rgba(212, 162, 74, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.wallet-confirm-av {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.wallet-confirm-av .avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 15px;
}

.wallet-confirm-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.wallet-confirm-who strong {
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.wallet-confirm-who span {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
}

.wallet-confirm-memo {
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(212, 162, 74, 0.2);
  text-align: start;
}

.ox-ask.wallet-confirm .wallet-confirm-memo-k {
  margin: 0 0 4px;
  color: var(--credit-text);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ox-ask.wallet-confirm .wallet-confirm-memo-v {
  margin: 0;
  color: var(--credit-text-hot);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.ox-ask.wallet-confirm .wallet-confirm-pass {
  margin-top: 28px;
}

.ox-ask.wallet-confirm .wallet-confirm-pass .ox-ask-input {
  margin-top: 0;
}

.wallet-confirm-pass {
  text-align: start;
}

.wallet-confirm-pass.is-bad input {
  border-color: #8b1a1a;
}

.ox-ask.wallet-confirm .wallet-confirm-warn {
  margin: 10px 0 0;
  text-align: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
}

.credit-tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.credit-tx-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.credit-tx-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.credit-tx-filter {
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: var(--control-h);
  background: var(--card-2);
  border: 1px solid var(--line);
}

.credit-tx-refine {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.credit-history .credit-tx-filter:focus-within,
.credit-history .credit-tx-filter.is-on {
  background: var(--bg);
  border-color: var(--hairline-strong);
}

/* Start and end side by side, as the Wallet's stats range has them
   (founder, 2026-11-27). */
.credit-tx-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.credit-tx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
}

/* A row about something opens it, as a linked staff-log row does. */
.credit-tx[data-href] {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .credit-tx[data-href]:hover {
    background: var(--hover);
  }
}

.credit-tx-list > .credit-tx:first-child,
.credit-tx-list > .timeline-empty + .credit-tx {
  border-top: 0;
}

.credit-tx-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.credit-tx-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 7.5ch;
}

.credit-tx-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.credit-tx-who:hover .credit-tx-name,
a.credit-tx-who:focus-visible .credit-tx-name,
a.credit-tx-note:hover,
a.credit-tx-note:focus-visible {
  color: var(--fg);
}

.credit-tx-name {
  min-width: 0;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.credit-tx-handle {
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
}

.credit-tx-amt {
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.credit-tx.is-in .credit-tx-amt {
  color: #7dcea0;
}

.credit-tx.is-out .credit-tx-amt {
  color: var(--credit-text);
}

.credit-tx.is-mint .credit-tx-amt {
  color: var(--fg);
}

/* Credits a job locks or unlocks: no payment, so said in the muted ink,
   the amount too (light and dark). */
.credit-tx.is-lock .credit-tx-amt,
html.theme-light .credit-tx.is-lock .credit-tx-amt,
html[data-theme="light"] .credit-tx.is-lock .credit-tx-amt {
  color: var(--muted);
}

.credit-tx-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 19px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.credit-tx-time {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 0.02em;
  text-align: end;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .credit-tx-dates {
    width: 100%;
    flex: 1 1 100%;
  }
}

body.no-plan-post .compose-back {
  display: none !important;
}

/* #55.9 No-plan-post: dim once. Nested .post-repost lives inside .post-drop —
   parent×child both at 0.35 stacked ~0.12 (darker than sibling .post-reply).
   Parent drop dims; child repost stays opacity:1 (same #54.1 pattern).
   Frozen path (sibling .post-repost, no nest) still dims once via .post-repost. */
body.no-plan-post .post-reply,
body.no-plan-post .post-repost,
body.no-plan-post .post-repost.is-on,
body.no-plan-post .post-actions-left > .post-drop {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
  color: var(--muted);
}
body.no-plan-post .post-actions-left > .post-drop > .post-repost,
body.no-plan-post .post-actions-left > .post-drop > .post-repost.is-on {
  opacity: 1;
}
body.no-plan-post .post-repost.is-on {
  color: var(--muted);
}

.sub-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.btn.sub-ghost {
  color: var(--uni-text);
  border-color: var(--uni-line);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn.sub-ghost:hover {
    color: var(--uni-text-hot);
    background: var(--uni-wash);
    border-color: var(--uni-mid);
  }
}

.sub-notice {
  margin: 0;
  padding: 14px var(--card-pad-x);
  border-radius: 16px;
  border: 1px solid var(--uni-line);
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.12), rgba(110, 84, 24, 0.08)),
    #0a0804;
  color: var(--uni-text);
  line-height: 1.45;
}

.sub-notice a {
  color: var(--uni-text-hot);
}

.sub-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 16px var(--card-pad-x);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .sub-app:hover {
    border-color: var(--hairline-strong);
    background: var(--card-2);
  }
}

/* Credits are no money: a warning over the plans, with the Terms. */
.sub-credits-note {
  display: grid;
  gap: 6px;
  padding: 14px var(--card-pad-x);
  border: 1px solid color-mix(in srgb, var(--status-warn, #b26a00) 50%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--status-warn, #b26a00) 8%, var(--card));
}

.sub-credits-note strong {
  font-size: var(--text-17);
  line-height: var(--lh-20);
}

.sub-credits-note a {
  justify-self: start;
  color: var(--link);
}

.sub-app-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sub-app-copy strong {
  color: var(--fg);
  font-size: var(--text-17);
  line-height: var(--lh-20);
  font-weight: 400;
}

.sub-app-copy span {
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.sub-app-go {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn);
  color: var(--btn-fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .sub-app:hover .sub-app-go {
    background: var(--btn-hover);
    border-color: var(--btn-hover-line);
    color: var(--btn-hover-fg);
  }
}

/* Four plans a row and Organization on a row of its own (founder,
   2026-11-14): a card is wide enough for its plan's lines in every
   language. Organization lists what it adds in columns. */
.sub-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sub-card.is-org {
  grid-column: 1 / -1;
}

.sub-card.is-org .sub-card-actions {
  align-self: flex-start;
  min-width: min(100%, 240px);
}

.sub-card.is-org .sub-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: 18px;
}

.sub-card {
  --sub-hi: var(--uni-hi);
  --sub-mid: var(--uni-mid);
  --sub-lo: var(--uni-lo);
  --sub-text: var(--uni-text);
  --sub-text-hot: var(--uni-text-hot);
  --sub-line: var(--uni-line);
  --sub-wash: var(--uni-wash);
  --sub-bar: var(--uni-metal);
  --sub-btn: var(--uni-metal-btn);
  --sub-btn-fg: #16120a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 12px 14px;
  border: 1px solid var(--sub-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--sub-wash), rgba(8, 6, 3, 0.08)),
    linear-gradient(160deg, #16120a, #0a0804);
  box-shadow: none;
  min-height: 100%;
}

.sub-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--sub-bar);
}

.sub-card.is-free {
  --sub-hi: #e8ecf2;
  --sub-mid: #8b919c;
  --sub-lo: #3a3f48;
  --sub-text: #c5cad3;
  --sub-text-hot: #eef1f6;
  --sub-line: rgba(165, 174, 188, 0.42);
  --sub-wash: rgba(165, 174, 188, 0.12);
  --sub-bar: linear-gradient(90deg, #6d7480, #e8ecf2, #9aa3b0);
  --sub-btn: linear-gradient(180deg, #e8ecf2 0, #c9cfd8 6px, #a8b0bc calc(100% - 6px), #6d7480 100%);
  --sub-btn-fg: #14161a;
}

.sub-card.is-starter {
  --sub-hi: #f0c49a;
  --sub-mid: #b56a32;
  --sub-lo: #5c3514;
  --sub-text: #e4b48a;
  --sub-text-hot: #f6d3b0;
  --sub-line: rgba(181, 106, 50, 0.5);
  --sub-wash: rgba(181, 106, 50, 0.16);
  --sub-bar: linear-gradient(90deg, #8a4e1e, #e0a36a, #5c3514);
  --sub-btn: linear-gradient(180deg, #f0c49a 0, #d8935a 6px, #c47a3a calc(100% - 6px), #6e3f16 100%);
  --sub-btn-fg: #1a1008;
}

.sub-card.is-plus {
  --sub-hi: #f0d0a8;
  --sub-mid: #c4894a;
  --sub-lo: #6a4820;
  --sub-text: #e8c49a;
  --sub-text-hot: #ffe2b8;
  --sub-line: rgba(196, 137, 74, 0.5);
  --sub-wash: rgba(196, 137, 74, 0.16);
  --sub-bar: linear-gradient(90deg, #8a6230, #f0d0a8, #6a4820);
  --sub-btn: linear-gradient(180deg, #f6dcb4 0, #e0b47a 6px, #d4a05a calc(100% - 6px), #7a5220 100%);
  --sub-btn-fg: #181008;
}

.sub-card.is-pro {
  --sub-hi: #f3e2a0;
  --sub-mid: #c9a227;
  --sub-lo: #6e5418;
  --sub-text: #e6d392;
  --sub-text-hot: #f4e4a6;
  --sub-line: rgba(184, 146, 46, 0.5);
  --sub-wash: rgba(184, 146, 46, 0.16);
  --sub-bar: var(--uni-metal);
  --sub-btn: linear-gradient(180deg, #f6e7b0 0, #e4c86a 6px, #c9a227 50%, #b8922e calc(100% - 6px), #6e5418 100%);
  --sub-btn-fg: #16120a;
}

.sub-card.is-organization {
  --sub-hi: #fff6d2;
  --sub-mid: #e0c56a;
  --sub-lo: #8a6a22;
  --sub-text: #f4e8b8;
  --sub-text-hot: #fff8dc;
  --sub-line: rgba(232, 208, 120, 0.55);
  --sub-wash: rgba(246, 231, 176, 0.2);
  --sub-bar: linear-gradient(90deg, #b8922e, #fff6d2, #8a6a22);
  --sub-btn: linear-gradient(180deg, #fff6d2 0, #f0dc96 6px, #e8d080 50%, #c9a840 calc(100% - 6px), #8a6a22 100%);
  --sub-btn-fg: #16120a;
}

.sub-card.is-current {
  border-color: var(--sub-hi);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sub-mid) 55%, transparent);
}

.sub-card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--sub-text-hot);
  letter-spacing: -0.02em;
}

.sub-card-price {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 5px;
  margin: 2px 0 0;
  color: var(--sub-text);
  white-space: nowrap;
}

.sub-card-price strong {
  color: var(--sub-text-hot);
  font-size: 17px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.sub-card-price span {
  font-size: 12px;
}

/* A price change still to come, and the next payment on the plan's own card. */
.sub-card-ahead {
  margin: 4px 0 0;
  color: var(--sub-text);
  font-size: 12px;
  line-height: 1.4;
}

/* Sold out: a small mark under the price, and the plan's own subscriber
   told it cannot be taken again once left. */
/* The name leaves room for the badge, in any language. */
.sub-card:has(> .sub-card-sold) > h3 {
  padding-inline-end: 96px;
}

/* In the card's top corner, beside the name: it takes no line, so every
   card's list starts at the same height. */
.sub-card-sold {
  position: absolute;
  top: 18px;
  inset-inline-end: 14px;
  width: fit-content;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #ff3b30;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sub-sold-note {
  color: #ff3b30;
}

.sub-card-list {
  list-style: none;
  margin: 2px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sub-card-list li {
  display: flex;
  /* The mark stands at the first line of a text that wraps. */
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: color-mix(in srgb, var(--fg) 88%, var(--sub-text));
  /* A long line in another language wraps inside its card. */
  overflow-wrap: anywhere;
}

.sub-card-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--sub-mid);
  flex: 0 0 auto;
}

.sub-card-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  min-height: 20px;
}

.sub-card-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--sub-text-hot);
  cursor: default;
}

.sub-card-flag .icon {
  width: 19px;
  height: 19px;
}

.sub-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.sub-card .btn,
.sub-card-current {
  position: relative;
  z-index: 2;
  margin-top: 0;
  pointer-events: auto;
}

/* A plan's buttons take the card's width and wrap a label that does not fit
   (a wide base face, a long language). A button's gradient keeps its dark
   bevel to the last 6px, under the text's padding, so the label reads on
   its middle. */
.sub-card :is(.sub-choose, .sub-keep, .sub-cancel) {
  height: auto;
  padding: 6px 8px;
  line-height: var(--lh-20);
  text-box: normal;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
}

.sub-card .sub-choose,
.sub-card .sub-keep {
  width: 100%;
  min-height: var(--control-h);
  cursor: pointer;
  background: var(--sub-btn);
  color: var(--sub-btn-fg);
  border-color: var(--sub-mid);
  box-shadow: none;
}

.sub-card .sub-choose:hover,
.sub-card .sub-keep:hover {
  color: var(--sub-btn-fg);
  background: var(--sub-btn);
  border-color: var(--sub-hi);
  filter: none;
  box-shadow: none;
}

.sub-card .sub-cancel {
  width: 100%;
  min-height: var(--control-h);
  cursor: pointer;
}

.sub-card-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 12px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--sub-line);
  color: var(--sub-text-hot);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--sub-mid) 16%, transparent);
}

.sub-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sub-notes li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 12px 18px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.sub-notes li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.sub-notes strong {
  color: var(--fg);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.sub-notes span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sub-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sub-pay-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "note amt" "when amt";
  gap: 2px 16px;
  padding: 14px 2px;
  border-top: 1px solid rgba(184, 146, 46, 0.16);
}

.sub-pay-note {
  grid-area: note;
  white-space: pre-line;
  color: var(--uni-text-hot);
}

.sub-pay-amt {
  grid-area: amt;
  align-self: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: end;
}

.sub-pay-list li.is-in .sub-pay-amt {
  color: #7dcea0;
}

.sub-pay-list li.is-out .sub-pay-amt {
  color: #f0d7a0;
}

.sub-pay-when {
  grid-area: when;
  color: color-mix(in srgb, var(--uni-text) 62%, var(--muted));
  font-size: 14px;
}

.sub-confirm-facts {
  display: grid;
  width: 100%;
  margin: 20px 0 0;
  padding: 2px 0;
  border-top: 1px solid rgba(212, 162, 74, 0.22);
  border-bottom: 1px solid rgba(212, 162, 74, 0.22);
  text-align: start;
}

.sub-confirm-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 162, 74, 0.12);
}

.sub-confirm-facts > div:first-child {
  border-top: 0;
}

.sub-confirm-facts dt {
  margin: 0;
  color: var(--credit-text);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sub-confirm-facts dd {
  margin: 0;
  color: var(--credit-text-hot);
  font-size: 15px;
  line-height: 19px;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.sub-confirm-bill {
  width: 100%;
  margin: 14px 0 0;
  text-align: start;
}

.sub-confirm-bill-k {
  margin: 0 0 8px;
  color: var(--credit-text);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sub-confirm-math {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--uni-line);
  border-radius: 12px;
  background: rgba(20, 14, 6, 0.55);
  color: var(--uni-text);
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}

.ox-ask.wallet-confirm.sub-confirm .wallet-confirm-pass {
  margin-top: 18px;
}

.ox-ask.wallet-confirm.sub-confirm .sub-confirm-error {
  margin: 12px 0 0;
  color: #ff8a80;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.sub-sessions {
  display: grid;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  text-align: start;
}

.sub-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name out" "when out";
  align-items: center;
  column-gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 162, 74, 0.12);
}

.sub-session:first-child {
  border-top: 0;
}

.sub-session-name {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  color: var(--credit-text-hot);
  font-size: 15px;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-session-when {
  grid-area: when;
  color: var(--credit-text);
  font-size: 13px;
  line-height: 17px;
}

.sub-session-out {
  grid-area: out;
}

@media (max-width: 1100px) {
  .sub-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  
}

@media (max-width: 820px) {
  

  

  .sub-tiers {
    grid-template-columns: 1fr;
  }

  /* One card a row: the tiers line up with the cards above them. */
  .sub-card {
    padding-inline: var(--card-pad-x);
  }

  .sub-notes li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sub-app {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  :root,
  html {
    --stage-pad-x: 12px;
    --text-31: 27px;
    --lh-36: 32px;
    --ox-nav: 56px;
    --ox-nav-top: calc(env(safe-area-inset-top, 0px) + var(--lock-bar) + var(--ios-vv-top, 0px));
    --ox-nav-full: calc(var(--ox-nav-top) + var(--ox-nav));
  }

  body.app {
    overflow-x: hidden;
  }

  /* The stage is the scrollport, so top padding scrolls away under the fixed bar.
     Margin keeps the scrollport itself below the frosted nav. Body padding already
     accounts for the lockdown bar. */
  body.app > .stage,
  .stage:has(.profile),
  .stage:has(.feed),
  .stage:has(.dash),
  .stage:has(.settings),
  .stage:has(.sub-page),
  .stage:has(.people),
  .stage:has(.status),
  .stage:has(#status-page),
  .stage:has(.legal),
  .stage:has(.panel) {
    margin-top: calc(env(safe-area-inset-top, 0px) + var(--ios-vv-top, 0px) + var(--ox-nav, 56px));
    padding: var(--stage-pad-x) var(--stage-pad-x) env(safe-area-inset-bottom, 0px);
    max-width: none;
    width: auto;
  }

  /* Notifications start right at the top bar's line: no gap, and no line
     of their own above the first one. */
  body.app > .stage:has(> .feed > .notices) {
    padding-top: 0;
  }

  .feed > .notices::before {
    display: none;
  }

  body.has-sub-stage .stage,
  body.app.has-sub-stage > .stage {
    margin-top: calc(env(safe-area-inset-top, 0px) + var(--ios-vv-top, 0px) + var(--ox-nav, 56px));
    padding: var(--stage-pad-x) var(--stage-pad-x) env(safe-area-inset-bottom, 0px);
    max-width: none;
    width: auto;
  }

  body.app > .stage:has(.messages),
  body.app > .stage:has(.founder-term),
  body.app > .stage.is-founder-term,
  body.app > .stage.is-wide,
  body.has-wide-stage > .stage,
  .stage.is-wide,
  body.has-wide-stage .stage,
  .stage:has(.messages),
  .stage:has(.founder-term),
  .stage.is-founder-term {
    margin-top: 0;
    padding: 0;
  }

  /* The other wide pages (Metrics, Top queries, Logs, Maintenance,
     Deployments) clear the top bar as every page does: the scrollport
     starts below the bar, so its scrollbar never runs under it. Padding
     inside the scrollport put the bar over the scrollbar. (The latency
     pages do not scroll as a whole: their results do, below their tools.) */
  body.has-wide-stage > .stage:not(:has(.messages)):not(:has(.founder-term)):not(.is-founder-term):not(:has(.api-latency)):not(:has(.ws-latency)) {
    margin-top: calc(env(safe-area-inset-top, 0px) + var(--ios-vv-top, 0px) + var(--ox-nav, 56px));
    padding: var(--stage-pad-x);
  }

  /* The cover meets the top bar: it reaches over the stage's top padding
     as it does over its sides (a strip of page showed above it). */
  .profile-banner,
  .profile-banner-edit {
    margin-top: calc(-1 * var(--stage-pad-x));
  }

  /* #57.4/#68/#71: re-assert latency edge pad after the wide-stage wipe.
     These pages are full-height and do not scroll as a whole (their
     results do), so clearance stays padding. */
  body.app > .stage.is-wide:has(.api-latency),
  body.app > .stage.is-wide:has(.ws-latency),
  body.has-wide-stage .stage:has(.api-latency),
  body.has-wide-stage .stage:has(.ws-latency),
  .stage:has(.api-latency),
  .stage:has(.ws-latency) {
    margin-top: 0;
    /* The page's own gutter above, as every page (it had 8px). */
    padding-top: calc(var(--ox-nav-full) + var(--stage-pad-x));
    padding-inline: var(--stage-pad-x);
    padding-bottom: 16px;
  }

  body.app > .stage:has(.founder-term),
  body.app > .stage.is-founder-term,
  .stage:has(.founder-term),
  .stage.is-founder-term,
  body.has-wide-stage .stage.is-founder-term {
    /* Top chrome cleared in the tabbar/term block; keep side/bottom gutters only here. */
    margin-top: 0;
    padding: 12px 16px;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--ox-nav, 56px) + 12px);
  }

  form,
  input,
  textarea,
  select,
  .field,
  .field-row,
  .panel,
  .feed,
  .profile,
  .settings,
  img,
  table,
  pre {
    max-width: 100%;
  }

  #note-filter,
  #note-sort,
  .msg-find,
  .msg-search {
    width: 100%;
    max-width: none;
  }

  #note-filter input,
  .msg-find input {
    max-width: none;
  }

  .metrics-glance,
.metrics-grid,
.node-grid,
.node-facts,
.rate-tiles,
.pace-panel,
.credit-tx-dates,
.mcp-row {
    max-width: 100%;
  }

  .metrics-grid,
  .node-grid,
  .pace-panel,
  .mcp-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .panel.people {
    max-width: 100%;
  }

  

  

  
}

/* mobile back swipe: previous page is a real snapshot, not an empty slab */
#ox-swipe-prev {
  display: none;
}

@media (max-width: 800px) {
  html.is-history-swipe {
    overflow: hidden;
    background: var(--bg);
  }

  #ox-swipe-prev {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
  }

  html.is-history-swipe #ox-swipe-prev {
    display: block;
    transform: translate3d(calc((var(--swipe-p, 0) - 1) * 30%), 0, 0);
    transition: none;
  }

  html.is-history-swipe #ox-swipe-prev::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: calc((1 - var(--swipe-p, 0)) * 0.16);
    pointer-events: none;
    z-index: 2;
  }

  #ox-swipe-prev .stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    z-index: 1 !important;
    will-change: auto !important;
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #ox-swipe-prev .stage * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.is-history-swipe body > .stage {
    position: relative;
    z-index: 4;
    transform: translate3d(calc(var(--swipe-p, 0) * 100%), 0, 0);
    box-shadow: none;
    will-change: transform;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }

  html.is-history-swipe body.app::before,
  html.is-history-swipe body.has-tabbar .mobile-tabbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  html.is-history-swipe body > .stage * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.is-history-settle #ox-swipe-prev,
  html.is-history-settle body > .stage {
    transition: transform var(--swipe-ms, 280ms) var(--ease-ios);
  }

  

  @media (prefers-reduced-motion: reduce) {
    html.is-history-settle body > .stage,
html.is-history-settle #ox-swipe-prev,
.messages.is-swipe-settle .msg-inbox,
.messages.is-swipe-settle #msg-on {
      transition: none;
    }
  }

  html.is-history-swipe .rail,
  html.is-history-swipe .rail-toggle,
  html.is-history-swipe .nav-back-btn,
  html.is-history-swipe .rail-scrim {
    visibility: hidden;
  }

  html {
    overflow: hidden;
    scrollbar-gutter: auto;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    scroll-padding-top: var(--ox-nav-full);
  }

  html.is-history-swipe {
    overflow: hidden;
  }

  body {
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  html,
  html.rail-min {
    --rail: var(--rail-full);
  }

  input,
  textarea,
  select {
    font-size: 17px;
  }

  .post img,
  .post video,
  .post-embed,
  .quote-embed {
    max-width: 100%;
  }

  .quote-embed.is-compose {
    margin-inline-start: 0;
  }

  body.app > .rail {
    position: fixed;
    inset-inline-start: 0;
    top: var(--lock-bar);
    width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    min-width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    height: calc(env(safe-area-inset-top, 0px) + var(--ox-nav));
    z-index: 210;
    transform: none;
    transition: none;
    padding: 0;
    pointer-events: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    border: 0;
  }

  .rail-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-inline-start: 0;
    top: var(--lock-bar);
    width: var(--rail-full);
    min-width: var(--rail-full);
    height: calc(100dvh - var(--lock-bar));
    z-index: 200;
    transform: translate3d(0, 0, 0);
    transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--ox-nav));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    pointer-events: auto;
    box-shadow: none;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
  }

  html.rail-min .rail-sheet {
    transform: translate3d(-100%, 0, 0);
    pointer-events: none;
    box-shadow: none;
  }

  html.rail-min body.app > .rail {
    transform: none;
    pointer-events: none;
    overflow: visible;
    width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    min-width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    height: calc(env(safe-area-inset-top, 0px) + var(--ox-nav));
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  html.rail-min .rail-nav,
  html.rail-min .rail-end,
  html.rail-min .nav-link,
  html.rail-min .user,
  html.rail-min .rail-post,
  html.rail-min .rail-group.is-open > .rail-sub,
  html.rail-min .rail-group.is-open > .rail-sub .nav-link {
    width: auto;
    min-width: 0;
    margin-inline: 0;
    justify-content: flex-start;
  }

  html.rail-min .rail-nav {
    padding: 0 12px;
  }

  html.rail-min .rail-end {
    padding: 8px 12px 8px;
  }

  html.rail-min .nav-link,
  html.rail-min .user,
  html.rail-min .rail-post {
    gap: 12px;
    padding-inline-start: 11px;
    padding-inline-end: 11px;
  }

  html.rail-min .rail-nav > a.nav-link,
  html.rail-min .rail-nav > span.nav-link,
  html.rail-min .rail-nav .rail-group > .nav-group,
  html.rail-min .rail-nav .rail-group > span.nav-link {
    gap: 10px;
    padding: 0 8px;
    width: 100%;
  }

  html.rail-min .nav-label,
  html.rail-min .nav-chev,
  html.rail-min .user .user-meta,
  html.rail-min .rail-post-label {
    display: flex;
  }

  html.rail-min .rail-post-label {
    display: block;
  }

  html.rail-min .rail-post {
    width: 100%;
    height: 36px;
    min-width: 0;
    margin-top: 8px;
    border-radius: 999px;
    overflow: hidden;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  html.rail-min .rail-post-plus {
    display: none;
  }

  html.rail-min .rail-group.is-open > .rail-sub {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 2px 16px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html.rail-min .rail-group.is-open > .rail-sub .nav-link {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    margin-inline: 0;
    padding: 0 11px;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 12px;
  }

  html.rail-min .rail-group.is-open > .rail-sub .icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    opacity: 1;
  }

  html.rail-min .nav-link {
    position: relative;
    overflow: hidden;
  }

  html.rail-min .nav-link .nav-count {
    position: static;
    top: auto;
    inset-inline-start: auto;
    margin-inline-start: auto;
    z-index: auto;
  }

  html.rail-min .nav-link .nav-count {
    min-width: 18px;
    height: 18px;
    padding: 0 3px 1px;
    font-size: 11px;
  }

  

  /* The menu's top row (base.css) gives way: each button is pinned to the
     top bar on its own. */
  .rail-top {
    display: contents;
  }

  html .rail-toggle,
  html.rail-min .rail-toggle,
  html .nav-back-btn:not([hidden]),
  html.rail-min .nav-back-btn:not([hidden]) {
    position: fixed;
    inset-inline-start: 0;
    top: var(--lock-bar);
    width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    min-width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    max-width: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    min-height: calc(env(safe-area-inset-top, 0px) + var(--ox-nav));
    height: calc(env(safe-area-inset-top, 0px) + var(--ox-nav));
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    flex: 0 0 auto;
    pointer-events: auto;
    z-index: 210;
    background: transparent;
    color: var(--fg);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* The stage is the scrollport and has its gutter above the page: a
     page's tabs stay at the bar's line, over that gutter, not under it
     (the list showed in the strip between). */
  body.app > .stage .profile-tabs {
    top: calc(-1 * var(--stage-pad-x));
  }

  /* The bar's middle: the site's mark, home. */
  html .top-logo {
    position: fixed;
    top: calc(var(--ox-nav-top) + (var(--ox-nav) - 48px) / 2);
    left: 50%;
    z-index: 209;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    transform: translateX(-50%);
    -webkit-tap-highlight-color: transparent;
  }
  html .top-logo img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  /* A conversation's head takes the bar. */
  html:has(.messages.is-thread) .top-logo {
    display: none;
  }

  html .rail-toggle::before,
  html.rail-min .rail-toggle::before,
  html .nav-back-btn::before,
  html.rail-min .nav-back-btn::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: -20px;
    bottom: 0;
  }

  html .rail-toggle .icon,
  html.rail-min .rail-toggle .icon,
  html .nav-back-btn .icon,
  html.rail-min .nav-back-btn .icon {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + (var(--ox-nav) / 2));
    inset-inline-start: calc(env(safe-area-inset-left, 0px) + (var(--ox-nav) / 2));
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  html .rail-toggle .icon-rail {
    display: none;
  }

  html.rail-min .rail-toggle .icon-menu {
    display: block;
  }

  html:not(.rail-min) .rail-toggle .icon-x {
    display: block;
  }

  html .rail-toggle:hover,
  html.rail-min .rail-toggle:hover,
  html .nav-back-btn:hover,
  html.rail-min .nav-back-btn:hover {
    background: transparent;
    color: var(--fg);
  }

  html .rail-toggle:active,
  html.rail-min .rail-toggle:active,
  html .nav-back-btn:active,
  html.rail-min .nav-back-btn:active {
    background: transparent;
    transform: none;
    opacity: 0.45;
  }

  html .nav-back-btn:not([hidden]),
  html.rail-min .nav-back-btn:not([hidden]) {
    display: grid;
  }

  html.rail-min.is-nav-back .rail-toggle,
html.rail-min:has(.messages.is-thread) .rail-toggle {
    display: none;
  }

  /* A page the menu links to, come to from another page: the menu's
     button stays, Back beside it (founder, 2026-11-30). */
  html.rail-min.is-nav-back.is-nav-both .rail-toggle {
    display: flex;
  }

  html.is-nav-both .nav-back-btn:not([hidden]),
  html.rail-min.is-nav-both .nav-back-btn:not([hidden]) {
    inset-inline-start: calc(env(safe-area-inset-left, 0px) + var(--ox-nav));
    width: var(--ox-nav);
    min-width: var(--ox-nav);
    max-width: var(--ox-nav);
  }

  html.is-nav-both .nav-back-btn .icon,
  html.rail-min.is-nav-both .nav-back-btn .icon {
    inset-inline-start: calc(var(--ox-nav) / 2);
  }
  

  /* Dedicated #ox-nav-line draws the hairline so ios-pwa / standalone
     (which hide this blur bar) still get a 1px var(--line) under the nav. */
  html body.app::before {
    content: "";
    position: fixed;
    /* top:0 when --lock-bar is 0; stay below lockdown banner when lock-bar > 0.
       --ios-vv-top tracks visualViewport.offsetTop on iOS PWA hard refresh. */
    top: calc(var(--lock-bar) + var(--ios-vv-top, 0px));
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: calc(env(safe-area-inset-top, 0px) + var(--ox-nav));
    /* Opaque: a see-through bar showed the page scrolling under it (charts
       and cards on Metrics most of all), on every page. */
    background: var(--bg);
    border-bottom: 0;
    pointer-events: none;
    z-index: 155;
  }

  #ox-nav-line {
    display: block;
    position: fixed;
    top: calc(var(--ox-nav-top) + var(--ox-nav));
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 1px;
    background: var(--line);
    pointer-events: none;
    z-index: 156;
  }

  /* Thread / editor / compose / engage own their chrome edge. */
  html:has(.messages.is-thread) #ox-nav-line,
body.auth #ox-nav-line {
    display: none;
  }

  /* iOS standalone blurs whatever sits under the status bar. Pseudo-elements
     are invisible to that sampler, so a real opaque box (#ox-status-chip)
     owns the strip, and the bar's fill starts below it: without it the
     page scrolled under a see-through bar. */
  html.ios-pwa body.app::before {
    top: calc(var(--lock-bar) + var(--ios-vv-top, 0px) + env(safe-area-inset-top, 0px));
    height: var(--ox-nav);
  }

  html.ios-pwa .messages.is-thread .msg-thread-head {
    background: var(--bg);
    background-color: var(--bg);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 0;
    box-shadow: none;
  }

  html.ios-pwa #ox-status-chip {
    display: block;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    /* iOS 26/27 samples one point 4px under the top. A box under 11px, or a
       pseudo-element, is ignored, so the scroll-edge blur stays. */
    height: max(11px, env(safe-area-inset-top, 0px));
    min-height: 11px;
    background-color: var(--bg);
    z-index: 2147483646;
    pointer-events: none;
    opacity: 1;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html.ios-pwa body::after {
    content: none;
    display: none;
  }
  #ox-status-chip {
    display: none;
  }

  /* Inside the page's 12px gutter only: at 28px it lay over the left of
     every control at the edge (the message composer's menu button took
     a tap on its right half only, and a miss let the keyboard go;
     founder, 2026-11-15). The edge swipe itself is held by the touch
     listeners (ui/touch.rs), which watch the outer 32px. */
  #ox-edge-guard {
    position: fixed;
    inset-inline-start: 0;
    top: calc(env(safe-area-inset-top, 0px) + var(--ox-nav, 56px));
    bottom: 0;
    width: 10px;
    z-index: 80;
    touch-action: pan-y;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body::after {
    content: "";
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: env(safe-area-inset-top, 0px);
    /* no fill — ::before is the one continuous frosted layer (safe-area + nav) */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    z-index: 400;
  }

  /* #66: only thread owns top chrome — conversation list keeps frosted nav. */
  /* A popup keeps the top bar in view, the keyboard up or not. */
  html:has(.messages.is-thread) body.app::before {
    display: none;
  }

  /* A swipe back to the list shows the list's top bar under the
     conversation as it slides away, as the list will have it: it came only
     once the swipe ended (founder, 2026-11-27: "top menu added with
     delay"). Under the conversation (60), over the list (58). */
  html:has(.messages.is-thread.is-swipe-back) body.app::before {
    display: block;
    z-index: 59;
  }
  html:has(.messages.is-thread.is-swipe-back) #ox-nav-line {
    display: block;
    z-index: 59;
  }
  html.rail-min:has(.messages.is-thread.is-swipe-back) .rail-toggle {
    display: flex;
    z-index: 59;
  }
  /* It comes in with the list, as a phone's own does (founder,
     2026-11-27: "swipe the header menu too"): faded in with the swipe's
     progress, the menu button from the leading edge with the list. */
  html:has(.messages.is-thread.is-swipe-back) body.app::before,
  html:has(.messages.is-thread.is-swipe-back) #ox-nav-line {
    opacity: clamp(0, var(--swipe-p, 0), 1);
  }
  html.rail-min:has(.messages.is-thread.is-swipe-back) .rail-toggle {
    opacity: clamp(0, var(--swipe-p, 0), 1);
    transform: translate3d(calc((var(--swipe-p, 0) - 1) * 48px), 0, 0);
  }
  /* The season's scene (the lights and the frost along the top) is the
     list's: it comes in with the list, as its bar does, instead of standing
     still while all else slides (founder, 2026-11-27). */
  html:has(.messages.is-thread.is-swipe-back) body > .theme-fx {
    opacity: clamp(0, var(--swipe-p, 0), 1);
    transform: translate3d(calc((var(--swipe-p, 0) - 1) * 30%), 0, 0);
  }
  html:has(.messages.is-swipe-settle) body > .theme-fx,
  html:has(.messages.is-swipe-settle) body.app::before,
  html:has(.messages.is-swipe-settle) #ox-nav-line,
  html.rail-min:has(.messages.is-swipe-settle) .rail-toggle {
    transition:
      opacity var(--swipe-ms, 280ms) var(--ease-ios),
      transform var(--swipe-ms, 280ms) var(--ease-ios);
  }

  .msg-inbox-head {
    background: var(--bg);
  }

  .msg-back,
.msg-more {
    width: var(--ox-nav);
    height: var(--ox-nav);
    flex-basis: var(--ox-nav);
    -webkit-tap-highlight-color: transparent;
  }

  
  

  .stage.is-founder-term,
  .stage:has(.founder-term),
  body.has-wide-stage .stage.is-founder-term {
    /* Match term block: safe-area + nav only (lock-bar already on body). */
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--ox-nav, 56px) + 12px);
  }

  /* #66 HARD: list shell clears frosted nav/safe-area via --ox-nav-full.
     Keep 61.3 (no Messages title, no L/R borders) and 63.3 clearance intent.
     Head keeps content pad only — nav clearance lives on .msg-inbox shell. */
  /* On a phone the list starts where every page does: the page's own
     gutter at the sides and above (it had 16px of its own, the pages 12). */
  .msg-inbox {
    --list-pad-x: var(--stage-pad-x);
    --list-pad-top: var(--stage-pad-x);
  }

  .msg-inbox-head {
    flex: 0 0 auto;
  }

  /* The title goes (the tab bar names the page); its menu stays, at the
     search's end: the whole row was hidden, and with it the only way to
     start a group (founder, 2026-12-01). */
  .msg-inbox-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 4px;
  }

  .msg-inbox-head .e2ee-title {
    display: contents;
  }

  .msg-inbox-head .e2ee-title h1 {
    display: none;
  }

  .msg-inbox-head .e2ee-title .msg-inbox-more {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .msg-inbox-head .msg-search {
    grid-column: 1;
    grid-row: 1;
  }

  .stage:has(.messages:not(.is-thread)) {
    border-inline-start: 0;
    border-inline-end: 0;
  }

  .messages:not(.is-thread) .msg-inbox {
    border-inline-end: 0;
    padding-top: var(--ox-nav-full);
  }

  

  

  .messages.is-thread .msg-thread-head {
    /* Content row ≥40px below top inset; pad + size paired (never both under-pad and under-size). */
    --msg-head-inset-top: env(safe-area-inset-top, 0px);
    --msg-head-row: max(40px, var(--ox-nav));
    height: calc(var(--msg-head-inset-top) + var(--msg-head-row) + 1px);
    min-height: calc(var(--msg-head-inset-top) + var(--msg-head-row) + 1px);
    max-height: none;
    flex: 0 0 auto;
    flex-basis: auto;
    gap: 0;
    align-items: center;
    padding-top: var(--msg-head-inset-top);
    padding-inline-start: calc(var(--ox-nav) + env(safe-area-inset-left, 0px));
    padding-inline-end: 4px;
    box-sizing: border-box;
    overflow: visible;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
  }

  /* Nudge who-card left. Keep a little air between e2ee, search, and the menu. */
  .messages.is-thread .msg-thread-head .msg-head-who {
    margin-inline-end: auto;
    padding-inline-start: 2px;
    padding-inline-end: 4px;
    gap: 8px;
  }

  .messages.is-thread .msg-thread-head .e2ee-mark.is-icon,
  .messages.is-thread .msg-thread-head .msg-more {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    box-sizing: border-box;
    margin: 0 0 0 8px;
  }

  /* Founder: hide under-header status_text stray on mobile thread. */
  .messages.is-thread .msg-status-line,
  .messages.is-thread #msg-status {
    display: none !important;
  }

  

  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 180;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  /* The drawer opens over the popups that were open (the menu button
     stays in view above them): they go under its scrim until it closes. */
  .is-under-drawer {
    z-index: 170 !important;
  }

  html:not(.rail-min) .rail-scrim:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  html.rail-dragging {
    overflow: hidden;
  }

  html.rail-dragging .rail-sheet {
    transition: none;
    pointer-events: auto;
    will-change: transform;
    box-shadow: none;
  }

  html.rail-dragging .rail-scrim {
    display: block;
    opacity: var(--rail-drag, 0);
    pointer-events: auto;
    transition: none;
  }

  html.rail-dragging .rail-toggle,
  html.rail-dragging .nav-back-btn {
    opacity: 0;
    pointer-events: none;
  }

  html.rail-min .rail-toggle .icon {
    transform: translate(-50%, -50%);
  }

  @media (prefers-reduced-motion: reduce) {
    .rail-sheet,
    .rail-scrim {
      transition: none;
    }
  }

  .stage,
.stage.is-wide,
body.has-wide-stage .stage,
.stage:has(.messages),
.stage:has(.founder-term),
.stage.is-founder-term,
body.has-sub-stage .stage,
.stage:has(.sub-page) {
    margin-inline-start: 0;
  }
}

/* mobile-popups: full-screen overlays, not confirm/prompt alerts */
@media (max-width: 800px) {
  html:has(.compose-back:not([hidden])),
  body:has(.compose-back:not([hidden])),
  body:has(.engage-back:not([hidden])),
  body:has(.ox-ask-back:has(.ox-ask-wide)) {
    overflow: hidden;
  }

  html:has(.compose-back:not([hidden])) body.app > .stage,
  html:has(.compose-back:not([hidden])) .stage {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
  }

  .compose-back {
    padding: 0;
    place-items: stretch;
    background: var(--bg);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .compose {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  }

  /* Edge to edge (a page without the tab bar): with the keyboard up it
     starts below the top bar, with no status strip to clear. Under the
     tab bar the composer is a card that stays as it is (base.css). */
  body:not(.has-tabbar) .compose-back.is-kb .compose {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  body:not(.has-tabbar) .compose-back.is-kb .compose-bar {
    padding-bottom: 4px;
  }

  .compose-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .compose-form textarea {
    flex: 1 1 auto;
    min-height: 160px;
  }

  .ox-ask-back:has(.ox-ask-wide) {
    padding: 0;
    place-items: stretch;
    background: var(--bg);
  }

  .ox-ask-wide {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    --ask-pad-t: max(16px, env(safe-area-inset-top, 0px));
    --ask-pad-x: 16px;
    padding: var(--ask-pad-t) var(--ask-pad-x) max(16px, env(safe-area-inset-bottom, 0px));
  }

  .ox-ask-wide .ox-ask-head {
    flex: none;
  }

  .ox-ask-wide .ox-ask-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  /* New Product Key is not inside .ox-ask-body, so the form itself scrolls. */
  .invite-mint-back:not([hidden]) {
    padding: 0;
    place-items: stretch;
    background: var(--bg);
    overflow: hidden;
  }

  body:has(.invite-mint-back:not([hidden])) {
    overflow: hidden;
  }

  .invite-mint-ask > .invite-mint {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ox-ask-wide .ox-ask-actions {
    flex: none;
    margin-top: 12px;
    padding-top: 12px;
  }

  .ox-ask-back {
    padding: max(16px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px));
    align-items: stretch;
    place-items: end center;
    overflow: auto;
  }

  .ox-ask-back:has(.ox-ask:not(.ox-ask-wide)) {
    place-items: center;
    align-items: center;
  }

  .ox-ask-back:has(input):has(.ox-ask:not(.ox-ask-wide)) {
    place-items: start center;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
  }

  .ox-ask:not(.ox-ask-wide) {
    width: 100%;
    max-width: none;
    max-height: min(80dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
  }

  .ox-ask:not(.ox-ask-wide):not(:has(> .ox-ask-body)) {
    overflow: auto;
  }

  .wallet-confirm-meta,
  .wallet-confirm-to,
  .wallet-confirm-memo {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .wallet-confirm-to {
    border-radius: 14px;
  }

  .profile-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }

  /* Over the phone's top bar and its menu button (210): they lay over
     the viewer's Download and Close (founder, 2026-12-01). Under the
     toasts and the dialogs. */
  .media-lightbox {
    z-index: 215;
    padding: max(24px, env(safe-area-inset-top, 0px)) 24px max(24px, env(safe-area-inset-bottom, 0px));
  }

  .media-lightbox-tools {
    top: max(16px, env(safe-area-inset-top, 0px));
    inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
  }

  .compose-photo-btn::after,
  .compose-poll-btn::after,
  .compose-sensitive-btn::after,
  .compose-schedule-btn::after,
  .compose-boost-btn::after,
  .compose-audience-btn::after,
  .compose-ai-btn::after,
  .compose-reply-who::after,
  .msg-photo-btn::after,
  .msg-poll-btn::after,
  .msg-sensitive-btn::after,
  .msg-voice-btn::after,
  .msg-location-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
  }
}

@view-transition {
  navigation: none;
}

body.app > .stage {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--lock-bar, 0px));
}

@media (max-width: 800px) {
  /* Later than the full-viewport min-height above. The stage is the scrollport,
     so it has to be the band under the fixed nav (and above the tabbar), not a
     full-screen box shifted down. Messages and the founder terminal keep their
     own height. */
  body.app > .stage:not(.is-wide):not(.is-founder-term):not(:has(.messages)):not(:has(.founder-term)) {
    margin-top: calc(env(safe-area-inset-top, 0px) + var(--ios-vv-top, 0px) + var(--ox-nav, 56px));
    min-height: 0;
    height: auto;
    max-height: none;
  }
}

.site-foot-mobile {
  margin-top: auto;
}

.home-fresh, .profile-fresh, .notice-fresh { width: 100%; }
.feed:has(.home-fresh article) .timeline-empty,
.feed:has(.profile-fresh article) .timeline-empty,
.feed:has(.notice-fresh article) .timeline-empty { display: none; }
.post-video-wait { margin: 12px 0; color: var(--muted, #8b98a5); }

.timeline > .live-new,
.btn.live-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 10px auto 12px;
  box-shadow: none;
  font-weight: 600;
}

.online-sep {
  height: 1px;
  margin: 8px 4px;
  background: var(--hairline);
}

/* Help > Staff: the same cards as a list on a sheet, a row each, with the
   room of a person row; here before away, a line between. */
.staff-list {
  gap: 2px;
  margin: 0 -8px;
}

.staff-list .online-card {
  gap: 12px;
  padding: 10px 8px;
  color: var(--fg);
  text-decoration: none;
}

.staff-list .online-card .avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

/* The face is as large as its photo here, so the online dot and the
   "last seen" mark sit on the photo's edge, not inside it (founder,
   2026-11-14: the face was 40px round a 48px photo). */
.staff-list .online-face {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.staff-list .online-name > span:first-child {
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.staff-list .online-handle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.staff-list .online-sep {
  margin: 6px 8px;
}

/* Away is dimmed: the face, the name and the handle, not the badges. A
   badge is the same colour wherever it is shown. */
.online-card.is-offline :is(.online-face, .online-name > :not(.name-marks), .online-handle) {
  opacity: 0.48;
}

.online-card.is-offline:hover :is(.online-face, .online-name > :not(.name-marks), .online-handle) {
  opacity: 0.72;
}

/* Admin > On-call: the addresses on a level, each with its ×, and the
   field that adds one. */
.oncall-emails {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* The field and its button on one line, the button at the field's foot. */
.oncall-email-add {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.oncall-email-add .field {
  flex: 1 1 auto;
  min-width: 0;
}

.oncall-email-list:not(:empty) {
  margin-top: 12px;
}

.oncall-email .session-title {
  overflow-wrap: anywhere;
}

/* The software's stage on the status page: a quiet mark by the version. */
.status-stage {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: var(--text-13);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-oncall-grid {
  display: grid;
  gap: 10px;
}

.status-oncall-level {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-oncall-card.is-empty {
  color: var(--muted);
  border-style: dashed;
  background: transparent;
}

.status-oncall-vacant {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

@media (min-width: 801px) {
  .compose {
    overflow: hidden;
  }

  /* Four lines tall, and the rest of a long post scrolls in it (it was
     hidden, out of reach; founder, 2026-11-29). */
  .compose-form textarea#compose-text {
    height: calc((var(--lh-24) * 4) + 16px);
    min-height: calc((var(--lh-24) * 4) + 16px);
    max-height: calc((var(--lh-24) * 4) + 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* A composer taller than the window (photos, a poll, a short window)
     scrolls in its backdrop; one that fits stays in the middle. Centred
     by the grid, its top went out of reach above the window. */
  .compose-back {
    overflow-y: auto;
    place-items: start center;
  }

  .compose-back > .compose {
    margin-block: auto;
  }
}

@media (max-width: 800px) {
  .compose {
    overflow: hidden;
  }

  .compose-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
  }

  .compose-row {
    flex: 1 1 auto;
    min-height: 96px;
    align-items: stretch;
  }

  .compose-form textarea#compose-text {
    height: 100%;
    min-height: 96px;
    max-height: none;
    overflow: auto;
  }

  /* One line on a phone: the tools give way (narrower) before Post would
     drop under them. No scrolling: the reply menu opens out of them. */
  .compose-bar {
    flex: none;
    flex-wrap: nowrap;
    gap: 8px;
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    z-index: 5;
  }

  .compose-tools {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 0;
  }

  /* Four tools and More, each a finger's 44px with room between them
     (founder, 2026-11-19: eight 32px icons edge to edge were hard to
     hit); the rarer tools are rows in More's menu on every width
     (feed.css). */
  .compose-tools {
    gap: 4px;
  }

  /* They give way to a long Post ("Közzététel"): at a fixed 44px each
     the row ran under the button, and More stood against it (founder,
     2026-12-01). The bar's gap keeps Post as far from More's dots as the
     tools are from each other. */
  .compose-bar:has(.compose-tools) {
    gap: 14px;
  }

  .compose-tools > :is(button, .compose-reply-from) {
    flex: 0 1 44px;
    min-width: 32px;
  }

  .compose-tools :is(.compose-photo-btn, .compose-poll-btn, .compose-schedule-btn, .compose-more-btn, .compose-reply-who) {
    width: 100%;
    height: 44px;
    max-width: 44px;
  }

  /* The count leaves the row of tools on a phone, where it crowded Post
     (founder, 2026-11-15): it sits over Post, at the field's lower edge,
     and shows once something is written. (The bar is sticky, so it is
     what the count is placed against.) */
  .compose-bar .compose-count {
    position: absolute;
    inset-inline-end: 4px;
    bottom: calc(100% + 2px);
    flex: none;
    font-size: 13px;
  }

  .compose-bar .compose-count.is-unused {
    visibility: hidden;
  }

  .compose-bar .compose-submit {
    flex: none;
    padding-inline: 16px;
  }

  .compose-schedule,
  .compose-boost,
  .composer .compose-poll,
  .compose-form .compose-poll,
  .compose-form .compose-shot {
    margin-inline-start: 0;
  }
}

.avatar:not(.is-photo),
.profile-photo.is-fallback,
span.avatar,
span.profile-photo {
  border: 0;
  background-clip: padding-box;
  box-shadow: none;
  overflow: hidden;
}

/* Home-screen app: iOS 26/27 blurs the status edge unless a real fixed box
   taller than 10px owns it, so the top bar's fill starts below that box. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body.app::before {
    top: calc(var(--lock-bar) + var(--ios-vv-top, 0px) + env(safe-area-inset-top, 0px));
    height: var(--ox-nav);
  }

  #ox-status-chip {
    display: block !important;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    height: env(safe-area-inset-top, 0px);
    min-height: 0;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    z-index: 2147483646;
    pointer-events: none;
    opacity: 1;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body::after {
    content: none !important;
    display: none !important;
  }
}

.online-name > span:first-child,
.online-handle,
.profile-name-text,
.profile-handle span,
.user-name-text,
.msg-head-name {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.msg-row-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 21px;
}

.msg-head-name > span:first-child {
  line-height: 21px;
  padding-bottom: 1px;
}

.look-theme {
  display: flex;
  justify-content: flex-start;
  align-self: flex-start;
  width: max-content;
}

.look-theme .theme-switch {
  width: max-content;
  flex: 0 0 auto;
}

.site-bug {
  margin: 0;
}

.site-bug {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

/* b6 #1: dimmed by color, not opacity, so the theme animation never shows
   through the text. */
.site-bug.is-disabled {
  color: color-mix(in srgb, var(--muted) 40%, var(--bg));
  pointer-events: none;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .site-bug:hover {
    color: var(--fg);
  }
}

.profile-tag-extra {
  margin-inline-start: 4px;
  color: var(--muted);
  font-weight: 500;
}

.ox-live-debug {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
  z-index: 420;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background-color: var(--fg);
  color: var(--bg);
  border: 0;
  box-shadow: none;
  font: 600 13px/23px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center;
  pointer-events: none;
}

/* #48/#72 HTTP/WS performance: each route is a stacked row, not a wide table. */
.api-latency > .admin-sheet:last-child:has(.api-lat-list),
.ws-latency > .admin-sheet:last-child:has(.api-lat-list) {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
/* The period, the sort and its direction: three choices in a row, on a
   phone too. */
.api-lat-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.api-lat-controls .field {
  min-width: 0;
  margin: 0;
}
.api-lat-controls select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.api-lat-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 14px 16px 18px;
}
.api-lat-row + .api-lat-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.api-lat-id {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.api-lat-method {
  flex: 0 0 auto;
  margin-top: 1px;
  min-width: 3.4rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 17px;
  text-align: center;
}
.api-lat-method.is-get,
.api-lat-method.is-out {
  background: color-mix(in srgb, var(--status-ok) 20%, transparent);
  color: color-mix(in srgb, var(--status-ok) 72%, var(--fg));
}
.api-lat-method.is-post {
  background: color-mix(in srgb, var(--link) 22%, transparent);
  color: color-mix(in srgb, var(--link) 72%, var(--fg));
}
.api-lat-method.is-head {
  background: color-mix(in srgb, #a855f7 24%, transparent);
  color: color-mix(in srgb, #a855f7 72%, var(--fg));
}
.api-lat-method.is-put {
  background: color-mix(in srgb, var(--status-warn) 24%, transparent);
  color: color-mix(in srgb, var(--status-warn) 72%, var(--fg));
}
.api-lat-method.is-patch {
  background: color-mix(in srgb, #f97316 24%, transparent);
  color: color-mix(in srgb, #f97316 72%, var(--fg));
}
.api-lat-method.is-delete {
  background: color-mix(in srgb, var(--status-bad) 22%, transparent);
  color: color-mix(in srgb, var(--status-bad) 72%, var(--fg));
}
.api-lat-method.is-options {
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  color: var(--muted);
}
.api-lat-method.is-in {
  background: color-mix(in srgb, var(--status-deploy) 22%, transparent);
  color: color-mix(in srgb, var(--status-deploy) 72%, var(--fg));
}

.api-lat-path {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: 19px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.api-lat-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 10px 0 0;
}
.api-lat-stat {
  min-width: 0;
}
.api-lat-stat dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}
.api-lat-stat dd {
  margin: 1px 0 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 19px;
  overflow-wrap: anywhere;
}
.api-lat-stat.is-sort dt {
  color: var(--fg);
}
.api-lat-stat.is-warn dd {
  color: var(--status-warn);
}
.api-lat-stat.is-bad dd {
  color: var(--status-bad);
}
@media (max-width: 800px) {
  .api-lat-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sched-cal { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* #78.9 Analytics groups on separate lines */
.settings-sheets .sched-cal {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}
.settings-sheets .sched-cal > .sched-day {
  width: 100%;
}

.sched-day { display: flex; flex-direction: column; gap: 2px; min-width: 88px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sched-day-n { font-weight: 700; }
.account-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.account-tools .btn { margin: 0; }
.admin-sheet > form:not(.search-box):not(.field-inline):not(.role-invite):not(.list-filter):not(.credit-send):not(.api-lat-controls):not([hidden]),
.rate-sheet > form:not(.search-box):not(.field-inline):not(.role-invite):not(.list-filter):not(.credit-send):not(.api-lat-controls):not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 0;
}
.locked-sheet .rate-sheet-head .report-card-tags {
  margin-top: 4px;
}
.locked-appeal-title {
  margin: 4px 0 -4px;
  font-size: var(--text-15);
  font-weight: 700;
}
.appeal-facts .user-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}
.appeal-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.appeal-decide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.appeal-group {
  margin: 0;
  font-weight: 650;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}
.scheduled-card.is-deleted { opacity: 0.55; }
.account-tools.account-actions { flex-direction: column; align-items: stretch; }
.account-tools.account-actions .btn { justify-content: flex-start; gap: 10px; }
.account-tools.account-actions .btn .icon { width: 19px; height: 19px; flex: 0 0 auto; }

/* #77.5 Account overview: one grouping per line; wrap long client strings */
#account-overview .account-overview-facts .report-fact dd {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
}
#account-overview .account-overview-client {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#account-overview .account-overview-client-line {
  display: block;
}

#status-page .status-oncall {
  margin-top: 1.5rem;
}

.quiet-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field > select#maintain-tz {
  box-sizing: border-box;
  width: 100%;
  height: var(--control-h);
  min-height: var(--control-h);
  max-height: var(--control-h);
  padding: 0 28px 0 12px;
}

/* #80/#81: guest / locked chrome — inactive except Log out */
.mobile-tabbar.is-guest .tabbar-link.is-disabled,
body.is-locked-shell .mobile-tabbar .tabbar-link,
body.is-locked-shell .rail .nav-link:not(.nav-group) {
  pointer-events: none;
  opacity: 0.45;
  cursor: default;
}
body.is-locked-shell .rail .nav-group {
  pointer-events: auto;
  cursor: pointer;
}
body.is-locked-shell .rail a.nav-link,
body.is-locked-shell .rail-post {
  pointer-events: none;
  cursor: default;
}
body.is-locked-shell .rail-post {
  opacity: 0.45;
}
body.is-locked-shell .user-menu > :not(form),
body.is-locked-shell .user-menu > hr,
body.is-locked-shell .user-menu button.menu-item:not([type="submit"]),
body.is-locked-shell .user-menu a.menu-item,
body.is-locked-shell .user-menu .menu-item.is-disabled,
body.is-locked-shell .user-menu [data-status],
body.is-locked-shell .user-menu #status-text-btn {
  pointer-events: none;
  opacity: 0.45;
  cursor: default;
}
body.is-locked-shell .user-menu form[action="/_/logout"],
body.is-locked-shell .user-menu form[action="/_/logout"] .menu-item {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}
body.is-locked-shell .site-bug {
  pointer-events: none;
  opacity: 0.38;
  cursor: default;
}
body.is-locked-shell .site-foot-switch,
body.is-locked-shell .site-foot-switch * {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}
body.is-locked-shell .aside-suggest .profile-follow {
  pointer-events: none;
  opacity: 0.45;
  cursor: default;
}

.admin-open {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-open li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.admin-open li + li {
  border-top: 1px solid var(--line);
}

.admin-open a {
  color: inherit;
  text-decoration: none;
}

.admin-open-n {
  font-variant-numeric: tabular-nums;
}

/* The photo, the name and what follows sit as in every other account row:
   8px between photo and name, all centred on the photo. */
.deletion-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.deletion-card-who {
  flex: 1 1 auto;
  min-width: 0;
}
.deletion-card .muted-actions {
  margin-top: 12px;
}

/* Code Activation and the founder's activation codes */
.activation-sheet {
  display: grid;
  gap: 16px;
}

.activation-sheet > .admin-sheet-head {
  margin-bottom: 0;
}

.activation-sheet.is-editing {
  border-color: color-mix(in srgb, var(--link) 45%, var(--line));
}

/* Code and Credits side by side; Starts and Ends one under the other, so
   the month names fit. */
.activation-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
}

.activation-window {
  display: grid;
  gap: 12px;
}

.activation-fields .field,
.activation-window .field {
  margin: 0;
}

.activation-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.activation-actions {
  padding-top: 4px;
}

.activation-actions .btn {
  min-width: 112px;
}

.activation-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.activation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 160ms var(--ease);
}

.activation-card.is-editing {
  border-color: color-mix(in srgb, var(--link) 55%, var(--line));
}

.activation-card-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activation-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.activation-card-head .activation-code {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: var(--text-15);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.activation-card-when {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.activation-card-side {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: end;
}

.activation-card-amount {
  font-size: var(--text-15);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.activation-card-uses {
  color: var(--muted);
  font-size: var(--text-13);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .activation-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .activation-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .activation-card > .activation-admin-edit {
    grid-column: 1 / -1;
  }
}

.activation-status {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  vertical-align: 1px;
}
.activation-status.is-active { color: var(--status-ok); border-color: color-mix(in srgb, var(--status-ok) 40%, transparent); }
.activation-status.is-scheduled { color: var(--status-deploy); border-color: color-mix(in srgb, var(--status-deploy) 40%, transparent); }
.activation-reward {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 22px 16px 18px;
  border: 1px solid color-mix(in srgb, var(--status-ok) 35%, var(--line));
  border-radius: 16px;
  background: var(--card);
  text-align: center;
  overflow: hidden;
}
.activation-reward[hidden] { display: none; }
.activation-reward-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--status-ok);
  background: color-mix(in srgb, var(--status-ok) 14%, transparent);
}
.activation-reward-coin .icon { width: 30px; height: 30px; }
.activation-reward-amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--status-ok);
}
.activation-reward-text { color: var(--muted); }
.activation-reward .btn { margin-top: 6px; }
.activation-reward-burst {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.activation-reward-burst span {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--status-ok);
  opacity: 0;
}
.activation-reward-burst span:nth-child(even) { background: var(--status-warn); }
.activation-reward.is-playing .activation-reward-coin { animation: activation-pop 520ms cubic-bezier(.2, 1.4, .4, 1) both; }
.activation-reward.is-playing .activation-reward-amount { animation: activation-rise 480ms 120ms ease-out both; }
.activation-reward.is-playing .activation-reward-burst span { animation: activation-burst 700ms 80ms ease-out both; }
.activation-reward-burst span:nth-child(1) { --dx: 0px; --dy: -46px; }
.activation-reward-burst span:nth-child(2) { --dx: 33px; --dy: -33px; }
.activation-reward-burst span:nth-child(3) { --dx: 46px; --dy: 0px; }
.activation-reward-burst span:nth-child(4) { --dx: 33px; --dy: 33px; }
.activation-reward-burst span:nth-child(5) { --dx: 0px; --dy: 46px; }
.activation-reward-burst span:nth-child(6) { --dx: -33px; --dy: 33px; }
.activation-reward-burst span:nth-child(7) { --dx: -46px; --dy: 0px; }
.activation-reward-burst span:nth-child(8) { --dx: -33px; --dy: -33px; }
@keyframes activation-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes activation-rise {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes activation-burst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .activation-reward.is-playing .activation-reward-coin,
  .activation-reward.is-playing .activation-reward-amount,
  .activation-reward.is-playing .activation-reward-burst span { animation: none; }
}
html.theme-light .activation-reward-amount,
html[data-theme="light"] .activation-reward-amount,
html.theme-light .activation-status.is-active,
html[data-theme="light"] .activation-status.is-active { color: #1b6b42; }

/* ---- Analytics charts (b2 #57): inline SVG, colors from the theme ---- */
.an-sheet {
  --an-line: var(--accent, var(--link));
  /* X's like pink and repost green read the same in every theme; replies
     take the theme's accent. */
  --an-likes: #f91880;
  --an-replies: var(--accent, var(--link));
  --an-reposts: #00ba7c;
  --an-quotes: #9b7bff;
  position: relative;
}

html.theme-light .an-sheet {
  --an-likes: #d6125a;
  --an-reposts: #00875a;
  --an-quotes: #6b46d6;
}

.an-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* The period is a row of choices as everywhere else (.seg), as wide as
   its choices beside the title. */
.an-period {
  flex: 0 1 auto;
}

/* Any days of the past: the range's first and last day, side by side
   under the title on every width. */
.an-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.an-period-opt:focus-visible,
.an-chart:focus-visible {
  outline: 2px solid var(--an-line);
  outline-offset: 2px;
}

/* The period's figures: one table, so every label, total and change
   stands in its own column whatever the length of a label. */
.an-stats {
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  overflow: hidden;
}

.an-stats th,
.an-stats td {
  height: 42px;
  box-sizing: border-box;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  text-align: end;
  vertical-align: middle;
  white-space: nowrap;
}

.an-stats thead th {
  height: 34px;
}

.an-stats thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.an-stats th:first-child {
  width: 100%;
  text-align: start;
  white-space: normal;
  /* A long name gives way before the figures do: in Hungarian, Russian,
     Urdu, Bengali and Dutch the Change column was pushed off a 320px
     phone (swept in 26 languages, 2026-11-21). */
  overflow-wrap: anywhere;
}

.an-stats tbody th {
  color: var(--fg-dim);
  font-size: var(--text-15);
  font-weight: 400;
}

.an-stat-n {
  font-size: var(--text-17);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.an-stats td:last-child {
  min-width: 72px;
}

/* The figures sit in columns of their own. */
.an-stats :is(th, td):not(:first-child) {
  border-inline-start: 1px solid var(--line);
}

.an-delta {
  min-height: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.an-delta.is-flat { font-weight: 400; }
.an-delta.is-up { color: var(--status-ok); }
.an-delta.is-down { color: var(--status-bad); }

html.theme-light .an-delta.is-up { color: #1a7f37; }
html.theme-light .an-delta.is-down { color: #c0362c; }

.an-card {
  margin: 0 0 12px;
  padding: 12px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.an-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0 0 8px;
}

.an-card-head h3 {
  margin: 0;
  font-size: var(--text-15);
  font-weight: 700;
}

.an-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 13px;
}

.an-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.an-key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: currentColor;
}

.an-key.is-cur::before { background: var(--an-line); }
.an-key.is-prev::before { height: 0; border-top: 2px dashed var(--muted); border-radius: 0; background: none; }
.an-key.is-likes::before { background: var(--an-likes); }
.an-key.is-replies::before { background: var(--an-replies); }
.an-key.is-reposts::before { background: var(--an-reposts); }
.an-key.is-quotes::before { background: var(--an-quotes); }

.an-chart {
  position: relative;
  min-height: 200px;
  border-radius: 8px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.an-svg { display: block; max-width: 100%; height: auto; overflow: visible; }

.an-grid { stroke: var(--line); stroke-width: 1; }
.an-axis { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.an-line { fill: none; stroke: var(--an-line); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.an-prev { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.8; }
.an-stop-top { stop-color: var(--an-line); stop-opacity: 0.28; }
.an-stop-end { stop-color: var(--an-line); stop-opacity: 0; }
.an-guide { stroke: var(--hairline-strong); stroke-width: 1; }
.an-dot { fill: var(--bg); stroke: var(--an-line); stroke-width: 2.5; }
.an-seg.is-likes { fill: var(--an-likes); }
.an-seg.is-replies { fill: var(--an-replies); }
.an-seg.is-reposts { fill: var(--an-reposts); }
.an-seg.is-quotes { fill: var(--an-quotes); }
.an-bar { transition: opacity 120ms var(--ease); }
.an-bar.is-dim { opacity: 0.35; }

/* An empty chart: the placeholder over the plot. */
.an-empty {
  position: absolute;
  inset: 8px 8px 32px 48px;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}

.an-break {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 4px 0 6px;
  list-style: none;
}

.an-break-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  font-size: var(--text-13);
}

/* A name longer than its column goes on to a second line, where it ran
   under the bar ("Republications", "Ripubblicazioni"). */
.an-break-label {
  color: var(--fg-dim);
  min-width: 0;
  overflow-wrap: anywhere;
}

.an-break-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--hover);
  overflow: hidden;
}

.an-break-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--an-line);
  transition: width 400ms var(--ease);
}

.an-break-row.is-likes i { background: var(--an-likes); }
.an-break-row.is-replies i { background: var(--an-replies); }
.an-break-row.is-reposts i { background: var(--an-reposts); }
.an-break-row.is-quotes i { background: var(--an-quotes); }

.an-break-n {
  text-align: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.an-tip {
  position: absolute;
  z-index: 5;
  min-width: 150px;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--elevated);
  color: var(--fg);
  box-shadow: none;
  font-size: 13px;
  pointer-events: none;
}

.an-tip-date { margin: 0 0 4px; color: var(--muted); font-weight: 600; }

.an-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 19px;
}

.an-tip-row b { font-variant-numeric: tabular-nums; }
.an-tip-row.is-likes span::before,
.an-tip-row.is-replies span::before,
.an-tip-row.is-reposts span::before,
.an-tip-row.is-quotes span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 6px;
  border-radius: 2px;
}
.an-tip-row.is-likes span::before { background: var(--an-likes); }
.an-tip-row.is-replies span::before { background: var(--an-replies); }
.an-tip-row.is-reposts span::before { background: var(--an-reposts); }
.an-tip-row.is-quotes span::before { background: var(--an-quotes); }

.an-sheet.is-loading .an-chart svg { opacity: 0.5; }

@media (max-width: 640px) {
  .an-stats th,
  .an-stats td { padding: 9px 10px; }
  .an-stats td:last-child { min-width: 0; }
  .an-break-row { grid-template-columns: 84px minmax(0, 1fr) 48px; gap: 8px; }
  .an-chart { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .an-break-bar i,
  .an-bar { transition: none; }
}

/* Founder > Logs ---------------------------------------------------------- */

.logs-page {
  --log-error: var(--status-bad);
  --log-warn: var(--status-warn);
  --log-info: var(--link);
  --log-debug: var(--muted);
  --log-trace: var(--hairline-strong);
}

.logs-levels {
  display: grid;
}

/* One row per service: its name, the level (applied when picked), and
   other crates (applied when left). */
.logs-level {
  display: grid;
  grid-template-columns: 120px auto minmax(140px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.logs-level:first-child {
  border-top: 0;
}

.logs-level[aria-busy="true"] .logs-level-pick {
  opacity: 0.6;
}

.logs-level-note {
  margin: 8px 0 0;
}

.logs-level-name {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.logs-level-pick .seg-item {
  position: relative;
  cursor: pointer;
}

/* The radio stays for the keyboard; the label is what shows. */
.logs-level-pick input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  appearance: none;
  cursor: pointer;
}

.logs-level-pick .seg-item:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.logs-level-extra {
  min-width: 0;
  height: var(--control-h);
  padding: 0 10px;
  border: 1px solid var(--input-line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}

.logs-filter {
  display: grid;
  gap: 10px;
}

.logs-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.logs-filter-row > .field {
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
}

.logs-filter-q {
  flex: 3 1 260px !important;
}

.logs-filter-service {
  flex: 1 1 160px;
}

.logs-more-filters > summary {
  width: max-content;
  color: var(--link);
  font-size: 15px;
  cursor: pointer;
}

.logs-more-filters[open] > summary {
  margin-bottom: 8px;
}

.logs-filter-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.logs-filter-levels legend {
  width: 100%;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.logs-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.logs-level-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.logs-level-chip.is-on {
  border-color: var(--hairline-strong);
  color: var(--fg);
}

.logs-level-chip:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.logs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--log-trace);
}

.logs-dot.is-error { background: var(--log-error); }
.logs-dot.is-warn { background: var(--log-warn); }
.logs-dot.is-info { background: var(--log-info); }
.logs-dot.is-debug { background: var(--log-debug); }

.logs-window {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.logs-window-line {
  color: var(--muted);
  font-size: 14px;
}

.logs-refresh {
  margin-inline-start: auto;
}

/* The chart: plain bars over a baseline, the top count above it and the
   window's start and end under it. A bar brightens under the pointer. */
.logs-chart-box {
  display: grid;
  gap: 4px;
  margin: 0;
}

.logs-axis-top,
.logs-axis {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.logs-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.logs-chart {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 120px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px solid var(--hairline-strong);
}

.logs-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column-reverse;
  min-width: 0;
  background: none;
}

.log-bar {
  display: block;
  width: 100%;
  flex: none;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .logs-col:hover .log-bar {
    opacity: 1;
  }

  .logs-col:hover {
    outline: 1px solid var(--hairline-strong);
    outline-offset: 1px;
  }
}

.log-bar.is-error { background: var(--log-error); }
.log-bar.is-warn { background: var(--log-warn); }
.log-bar.is-info { background: var(--log-info); }
.log-bar.is-debug { background: var(--log-debug); }
.log-bar.is-trace { background: var(--log-trace); }

.logs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.logs-list > li {
  border-bottom: 1px solid var(--line);
}

.log-row > summary {
  display: grid;
  /* The level badge (11 px) fits its longest name (`--level-ch`, set by the
     page for its language), on every row alike. */
  grid-template-columns: calc(var(--level-ch, 7) * 0.62em + 20px) 210px 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

.log-row > summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .log-row > summary:hover {
    background: var(--hover);
  }
}

.log-level {
  justify-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
}

.log-row.is-error .log-level { color: var(--log-error); }
.log-row.is-warn .log-level { color: var(--log-warn); }
.log-row.is-info .log-level { color: var(--log-info); }
.log-row.is-debug .log-level { color: var(--log-debug); }
.log-row.is-trace .log-level { color: var(--muted); }

.log-time,
.log-service {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.log-message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.log-row[open] .log-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-detail {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
  padding: 0 4px 10px;
  font-size: 14px;
}

.log-detail dt {
  color: var(--muted);
}

.log-detail dd {
  margin: 0;
  min-width: 0;
}

.log-detail pre,
.log-detail code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Newest on the left, Older on the right, under the list. */
.logs-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.logs-pager .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logs-pager-older {
  margin-inline-start: auto;
}

/* Admin > Maintenance and Deployments: one row a backup set, a restore,
   a release or a version change. Its time or name and its state head the
   row; its facts follow as label and value, the labels in one column so
   each value starts at the same place in every row; a backup's parts are
   a list of their own (mark, name, size at the right); its actions share
   the row's width evenly. The page never scrolls sideways. */
.ops-list {
  display: grid;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.ops-row {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.ops-row + .ops-row {
  border-top: 1px solid var(--line);
}

.ops-row.is-live {
  background: color-mix(in srgb, var(--status-ok) 6%, var(--card));
}

.ops-row.is-pruned > :not(.ops-head) {
  opacity: 0.6;
}

.ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ops-name {
  min-width: 0;
  font-weight: 650;
  font-size: var(--text-15);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ops-head > .mail-badge {
  flex: none;
}

.ops-facts {
  display: grid;
  grid-template-columns: minmax(7.5em, max-content) minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

/* Maintenance's labels are all short (Type, Version, Backup, Status): the
   values sit just past them, at one place in every row. */
.maintenance-page .ops-facts {
  grid-template-columns: 4.5em minmax(0, 1fr);
  column-gap: 10px;
}

.ops-facts > div {
  display: contents;
}

.ops-facts dt {
  color: var(--muted);
}

.ops-facts dd {
  margin: 0;
  min-width: 0;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ops-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  --ops-tone: var(--muted);
}

.ops-state::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ops-tone);
}

.ops-state.is-ok { --ops-tone: var(--status-ok); }
.ops-state.is-warn { --ops-tone: var(--status-warn, #c9852a); }
.ops-state.is-bad { --ops-tone: var(--status-bad); }

/* A backup's parts: one line each in a quiet box, the size aligned. */
.ops-parts {
  display: grid;
  margin: 0;
  padding: 4px 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--fg) 3%, var(--card));
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

.ops-part {
  --part-tone: var(--muted);
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
}

.ops-part + .ops-part {
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.ops-part.is-ok { --part-tone: var(--status-ok); }
.ops-part.is-bad { --part-tone: var(--status-bad); }
.ops-part.is-running { --part-tone: var(--link); }

.ops-part.is-none {
  color: var(--muted);
}

.ops-part-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--part-tone);
}

.ops-part.is-none .ops-part-mark {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--muted);
}

.ops-part.is-running .ops-part-mark {
  animation: backup-pulse 1.2s ease-in-out infinite;
}

.ops-part-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-part-size {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.ops-part-note {
  grid-column: 2 / -1;
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ops-note {
  margin: 0;
  font-size: var(--text-13);
  overflow-wrap: anywhere;
}

.ops-note.is-muted {
  color: var(--muted);
}

/* The actions share the row: side by side while each has room for its
   label, one under the other on a narrow screen. */
.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-actions > .btn {
  flex: 1 1 120px;
  justify-content: center;
}

/* Deployments and Maintenance as tables: one row a release, a version
   change, a backup or a restore, under its columns' names. On a phone each
   row is a card again, every value beside its column's name and the
   actions sharing the card's width; the page never scrolls sideways. */
.ops-table-wrap {
  margin: 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-13);
}

.ops-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  text-align: start;
  white-space: nowrap;
}

.ops-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.ops-table .ops-row {
  display: table-row;
  padding: 0;
}

.ops-table .ops-row + .ops-row {
  border-top: 0;
}

.ops-table .ops-row + .ops-row td {
  border-top: 1px solid var(--line);
}

.ops-table .ops-name {
  font-weight: 600;
  white-space: nowrap;
}

.ops-table .ops-name-cell .ops-note {
  margin: 6px 0 0;
}

.ops-table .ops-note-cell {
  color: var(--muted);
}

.ops-table .ops-parts {
  min-width: 220px;
  margin: 0;
}

.ops-table .ops-actions-cell {
  width: 1%;
}

/* The actions stack in the last column, so the table keeps its width. */
.ops-table .ops-actions {
  flex-direction: column;
  align-items: stretch;
}

.ops-table .ops-actions > .btn {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .ops-table-wrap {
    overflow: visible;
  }

  .ops-table,
  .ops-table tbody,
  .ops-table td {
    display: block;
  }

  .ops-table thead {
    display: none;
  }

  .ops-table .ops-row {
    display: grid;
    gap: 10px;
    padding: 16px;
  }

  .ops-table .ops-row + .ops-row {
    border-top: 1px solid var(--line);
  }

  .ops-table .ops-row + .ops-row td {
    border-top: 0;
  }

  .ops-table td {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 10px;
    padding: 0;
  }

  .ops-table td::before {
    content: attr(data-label);
    color: var(--muted);
  }

  .ops-table td > * {
    justify-self: start;
  }

  /* A bar fills its cell (founder, 2026-12-01: the CDN's share bars
     stood at their smallest on a phone). */
  .ops-table td > .ops-parts,
  .ops-table td > .cdn-share {
    justify-self: stretch;
  }

  .ops-table td.ops-name-cell,
  .ops-table td.ops-actions-cell {
    display: block;
    width: auto;
  }

  .ops-table td.ops-name-cell::before,
  .ops-table td.ops-actions-cell::before {
    content: none;
  }

  .ops-table td:empty {
    display: none;
  }

  .ops-table .ops-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ops-table .ops-actions > .btn {
    flex: 1 1 120px;
  }
}

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

.backup-live {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--link) 40%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--link) 8%, var(--card));
}

.backup-live-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--link);
  animation: backup-pulse 1.2s ease-in-out infinite;
}

.backup-live-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.backup-live-line {
  margin: 0;
  font-weight: 600;
}

@keyframes backup-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-part.is-running .ops-part-mark,
  .backup-live-dot {
    animation: none;
  }
}

/* Admin > Incidents: one row an event, a coloured mark down its left
   side (outage, degraded, resolved, a new version), its title and time on
   one line, then what it was about and who was emailed. */
/* What is going on now: a card in the tone of the worst part, the parts
   that are not operational with their notes, and the month's count. */
.incident-now {
  --incident-tone: var(--status-ok);
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--incident-tone) 45%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--incident-tone) 9%, var(--card));
}

.incident-now.is-outage {
  --incident-tone: var(--status-bad);
}

.incident-now.is-degraded {
  --incident-tone: var(--status-warn);
}

.incident-now-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.incident-now-title {
  font-weight: 650;
  font-size: var(--text-17, 17px);
}

.incident-now-month {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: var(--text-13);
}

.incident-now-line {
  margin: 0;
  color: var(--fg);
  font-size: var(--text-13);
}

.incident-now-parts {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.incident-now-part {
  --incident-tone: var(--status-ok);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--card);
  border-inline-start: 3px solid var(--incident-tone);
}

.incident-now-part.is-outage {
  --incident-tone: var(--status-bad);
}

.incident-now-part.is-degraded {
  --incident-tone: var(--status-warn);
}

.incident-now-name {
  font-weight: 650;
}

.incident-now-state {
  justify-self: end;
  color: color-mix(in srgb, var(--incident-tone) 75%, var(--fg));
  font-weight: 600;
  font-size: var(--text-13);
}

.incident-now-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: var(--text-13);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.incident-history-head {
  margin: 4px 0 10px;
  font-size: var(--text-15);
  font-weight: 650;
}

.incident-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--incident-tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--incident-tone) 22%, transparent);
}

.incident-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.incident-row {
  --incident-tone: var(--status-ok);
}

.incident-row.is-outage {
  --incident-tone: var(--status-bad);
}

.incident-row.is-degraded {
  --incident-tone: var(--status-warn);
}

.incident-row.is-deploy {
  --incident-tone: var(--link);
}

.incident-row {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px 12px 0;
}

.incident-row + .incident-row {
  border-top: 1px solid var(--line);
}

.incident-mark {
  align-self: stretch;
  border-radius: 0 4px 4px 0;
  background: var(--incident-tone);
}

.incident-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.incident-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}

.incident-title {
  font-weight: 650;
  font-size: var(--text-15);
}

.incident-when {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
}

.incident-detail {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.incident-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}

.incident-part {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-12);
  color: var(--fg-dim);
}

.incident-mail {
  margin: 2px 0 0;
}

.incident-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* Settings > Sign-in with OperantX: the copy buttons beside the issuer,
   the endpoints and the issued client. One icon at a time: copy, then the
   check once copied (`post::show_copied_tip` sets is-on). */
.oidc-copy {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .oidc-copy:hover {
    background: var(--hover);
    color: var(--fg);
  }
}

.oidc-copy .icon {
  width: 19px;
  height: 19px;
}

.oidc-copy .icon-check { display: none; }
.oidc-copy.is-on { color: #1d9bf0; }
.oidc-copy.is-on .icon-copy { display: none; }

.oidc-copy.is-on .icon-check {
  display: block;
  animation: copy-pop 420ms cubic-bezier(0.18, 1.4, 0.32, 1) both;
}

.oidc-first {
  color: var(--fg);
  font-weight: 550;
}

.pod-log {
  margin: 12px 0 0;
  max-height: 28rem;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: var(--text-13);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .logs-level {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .log-row > summary {
    grid-template-columns: calc(var(--level-ch, 7) * 0.62em + 20px) minmax(0, 1fr);
  }

  .log-row > summary .log-service {
    display: none;
  }

  .log-row > summary .log-message {
    grid-column: 1 / -1;
  }
}

/* Tipping from a post (ui/tip): who it is for, a few amounts as chips, an
   amount of one's own, a note, and the password. */
/* The payment sheet centers its amount; this one reads left to right. */
/* Tip: who gets it, a big amount, the ready amounts in one row. */
.tip-meta {
  margin: 0 0 18px;
}

.tip-amount-field {
  display: block;
  margin: 0 auto;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(212, 162, 74, 0.28);
  cursor: text;
}

.tip-amount-field:focus-within {
  border-bottom-color: var(--credit-text-hot);
}

.tip-amount-field.is-bad {
  border-bottom-color: #8b1a1a;
}

.ox-ask.wallet-confirm .tip-amount {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--credit-text-hot);
  font: inherit;
  font-size: clamp(36px, 10vw, 48px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  text-align: center;
  caret-color: var(--credit-text-hot);
}

.ox-ask.wallet-confirm .tip-amount::placeholder {
  /* The quiet text colour: 4.5:1 on the popup (the faint gold was 2:1). */
  color: var(--muted);
}

.tip-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.tip-preset {
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid rgba(212, 162, 74, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--credit-text-hot);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .tip-preset:hover {
    border-color: var(--credit-text-hot);
  }
}

.tip-preset.is-on {
  border-color: var(--credit-text-hot);
  background: var(--credit-text-hot);
  color: #120d06;
}

/* The light theme: a light chip with dark figures, and the chosen one
   dark with light figures (founder, 2026-11-17: hard to read). */
html.theme-light .tip-preset,
html[data-theme="light"] .tip-preset {
  border-color: var(--credit-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--credit-text-hot);
}

html.theme-light .tip-preset.is-on,
html[data-theme="light"] .tip-preset.is-on {
  border-color: var(--credit-text-hot);
  background: var(--credit-text-hot);
  color: var(--credit-btn-fg);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]):not(.theme-dark) .tip-preset {
    border-color: var(--credit-line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--credit-text-hot);
  }

  html:not([data-theme="dark"]):not(.theme-dark) .tip-preset.is-on {
    border-color: var(--credit-text-hot);
    background: var(--credit-text-hot);
    color: var(--credit-btn-fg);
  }
}

.tip-sheet .field {
  text-align: start;
}

.tip-sheet .field.is-bad input {
  border-color: #8b1a1a;
}

.ox-ask.wallet-confirm.tip-sheet .wallet-confirm-pass {
  margin-top: 12px;
}

/* Subscribe and a raised price: the price big, what it buys under it. */
.members-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
}

.members-price strong {
  color: var(--credit-text-hot);
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.05;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.members-price span {
  color: var(--credit-text);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ox-ask.wallet-confirm .members-note {
  margin: 0;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: start;
}

.ox-ask.wallet-confirm.members-sheet .wallet-confirm-pass {
  margin-top: 18px;
}

/* Settings > Subscribers. */
.members-count,
.members-wait,
.members-plan {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

.members-wait {
  margin-top: -6px;
  color: var(--fg);
}

.members-plan a {
  color: var(--link);
}

.members-rules {
  margin: 16px 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

.members-rules li + li {
  margin-top: 6px;
}

.members-line {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

/* The tips a post brought, in its Overview. */
.reach-tips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--fg);
  font-size: 15px;
}

.reach-tips .icon {
  width: 19px;
  height: 19px;
  color: var(--credit-text);
}

/* Account overview: other accounts seen from the same addresses. */
.shared-ip-note {
  margin: 0 0 10px;
}

.shared-ip-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shared-ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.shared-ip-who {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 6px;
  min-width: 0;
  color: var(--fg);
  text-decoration: none;
}

.shared-ip-name {
  font-weight: 650;
}

.shared-ip-handle,
.shared-ip-addrs {
  color: var(--muted);
  font-size: var(--text-13);
  overflow-wrap: anywhere;
}

.shared-ip-addrs {
  font-variant-numeric: tabular-nums;
}

/* Right to left (Arabic, Persian, Urdu, Hebrew): the sides are logical
   throughout, so the page turns with `dir`. What moves by a sign turns
   here: the phone's drawer hides off the right edge, and the arrows that
   point back point the other way. */
@media (max-width: 800px) {
  html[dir="rtl"].rail-min .rail-sheet {
    transform: translate3d(100%, 0, 0);
  }
}

html[dir="rtl"] :is(.nav-back-btn, #msg-back, .msg-back, .chat-dock-back) .icon {
  scale: -1 1;
}

/* Admin > Visitors: a bar under each line's name, as long as its visitors
   against the longest line's. */
.visit-table .ops-name-cell {
  width: 60%;
}

.visit-flag {
  margin-inline-end: 6px;
}

/* A day's name in the week's table leads to that day. */
.visit-table .ops-name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 30%, transparent);
  text-underline-offset: 3px;
}

/* The Visitors page's time: the audit log's range selector, with its
   Show button on the custom days' line. */
.visit-time { margin: 0 0 12px; }
.visit-time #visitors-time-go { align-self: end; }

/* On a phone a line is its name and bar, then its two numbers side by
   side, each under its own label: a label of any length in any language
   has its own line and never runs into the number (founder, 2026-11-14:
   "Oldalmegtekintések" sat on its count). */
@media (max-width: 800px) {
  .visit-table .ops-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .visit-table td.ops-name-cell {
    grid-column: 1 / -1;
    width: auto;
  }

  .visit-table td:not(.ops-name-cell) {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .visit-table td:not(.ops-name-cell)::before {
    font-size: var(--text-13);
    overflow-wrap: anywhere;
  }
}

.visit-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--accent);
  min-width: 2px;
}

/* ---- Admin > Maintenance (founder, 2026-11-13: "make it user friendly,
   on desktop and phone too", "please make table views", "table per
   entry") ----
   The window: its start and its end side by side where there is room.
   Each backup is a small table of its own, on every screen: a name and
   its value a line (when, state, kind, version: two pairs side by side
   where there is room, one under the other on a phone), its parts as a
   row of chips, and its downloads and Restore side by side under them.
   As one wide table a row was five lines of parts and four stacked
   buttons tall, and the buttons ran off the side. */
.maintenance-page .quiet-range {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.maintenance-page .quiet-range > .field {
  flex: 1 1 280px;
  min-width: 0;
}

.maintenance-page .ops-table-wrap:has(> #maintain-sets) {
  overflow: visible;
  border: 0;
  background: none;
}

.maintenance-page #maintain-sets,
.maintenance-page #maintain-sets tbody {
  display: block;
}

/* The columns' names are beside each value; the head stays for a screen
   reader. */
.maintenance-page #maintain-sets thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.maintenance-page #maintain-sets .ops-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.maintenance-page #maintain-sets .ops-row + .ops-row {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

/* A cell: the column's name, then its value. */
.maintenance-page #maintain-sets td {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: auto;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.maintenance-page #maintain-sets td::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: var(--text-13);
}

.maintenance-page #maintain-sets td > * {
  justify-self: start;
}

.maintenance-page #maintain-sets td:empty {
  display: none;
}

/* When it was taken heads the table, with any note under it. */
.maintenance-page #maintain-sets td.ops-name-cell {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.maintenance-page #maintain-sets td.ops-name-cell .ops-note {
  grid-column: 2;
  margin: 0;
}

.maintenance-page #maintain-sets .ops-name {
  font-size: var(--text-15, 15px);
  white-space: normal;
}

/* The version (the last of the three after When, alone on its line), the
   parts and the buttons take the table's whole width. */
.maintenance-page #maintain-sets td:nth-child(4),
.maintenance-page #maintain-sets td:has(> .ops-parts),
.maintenance-page #maintain-sets td.ops-actions-cell {
  grid-column: 1 / -1;
}

.maintenance-page #maintain-sets td:has(> .ops-parts) {
  align-items: start;
}

.maintenance-page #maintain-sets td:has(> .ops-parts)::before {
  padding-top: 5px;
}

.maintenance-page #maintain-sets td > .ops-parts {
  justify-self: stretch;
}

.maintenance-page #maintain-sets .ops-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.maintenance-page #maintain-sets .ops-part,
.maintenance-page #maintain-sets .ops-part + .ops-part {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 3%, var(--card));
}

.maintenance-page #maintain-sets .ops-part-size:empty {
  display: none;
}

.maintenance-page #maintain-sets .ops-part-note {
  margin: 0;
}

.maintenance-page #maintain-sets td.ops-actions-cell {
  display: block;
  border-bottom: 0;
}

.maintenance-page #maintain-sets td.ops-actions-cell::before {
  content: none;
}

/* The buttons side by side, each as wide as the next; one alone takes
   the line. */
.maintenance-page #maintain-sets .ops-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.maintenance-page #maintain-sets .ops-actions > .btn {
  flex: 1 1 22%;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .maintenance-page #maintain-sets .ops-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .maintenance-page #maintain-sets .ops-actions > .btn {
    flex: 1 1 40%;
  }
}

/* Admin > Visitors: the map over the countries' table. A country with no
   visit is a quiet shape; one with visits takes the link color, the
   stronger the more it sent. */
.visit-map-box {
  margin: 4px 0 14px;
}

.visit-map {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 2%, var(--card));
}

.visit-land {
  fill: color-mix(in srgb, var(--fg) 12%, transparent);
  stroke: var(--card);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.visit-land.is-on {
  fill: var(--link);
  cursor: default;
}

/* The card of the country under the pointer (ui/visit_map.rs): the
   charts' card, beside the pointer. */
.visit-tip {
  position: fixed;
  z-index: var(--z-tip);
  min-width: 170px;
  max-width: 260px;
  padding: 10px 12px;
  font-size: var(--text-13);
}

.visit-tip-name {
  display: flex;
  align-items: center;
  margin: 0 0 6px;
  font-size: var(--text-15);
  font-weight: 650;
  line-height: var(--lh-20);
}

.visit-tip-none {
  margin: 0;
  color: var(--muted);
}

.visit-tip .an-tip-row {
  line-height: var(--lh-20);
}

.visit-tip .an-tip-row span {
  color: var(--muted);
}

/* The country under the pointer stands out. */
@media (hover: hover) and (pointer: fine) {
  .visit-land:hover {
    fill: color-mix(in srgb, var(--fg) 30%, transparent);
  }

  .visit-land.is-on:hover {
    fill: var(--link-hover);
    fill-opacity: 1 !important;
  }
}

/* ---- Work > Learn (founder, 2026-11-14): campuses as cards, courses and
   steps as lists with their progress, a lesson as a page of text, a
   checkpoint or an exam as a form of questions, the toplist. ---- */
.learn-stats {
  margin-bottom: 14px;
}

/* The last two weeks: a bar a day against the busiest day. */
.learn-days {
  margin: 0;
}

.learn-days-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 64px;
  padding: 8px 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 2%, var(--card));
}

.learn-day {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.learn-day > span {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--link);
}

.learn-days > .field-note {
  margin: 6px 0 0;
}

/* A page's head: its words, and the ⋯ menu at the top right. */
.learn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.learn-head-text {
  min-width: 0;
}

.learn-head > .uni-more {
  flex: none;
  margin-top: -4px;
}

.learn-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
}

/* A campus's or a course's picture; its first letter on its own colour
   without one. */
.learn-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--art-hue, 210) 55% 42%), hsl(calc(var(--art-hue, 210) + 40) 60% 28%));
  color: #fff;
}

.learn-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-art-letter {
  font-size: 36px;
  font-weight: 700;
  opacity: 0.9;
}

/* Campuses as cards: the picture on top, the whole card a link. */
.learn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.learn-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .learn-card:hover {
    border-color: color-mix(in srgb, var(--link) 50%, var(--line));
  }
}

.learn-card:active {
  transform: scale(0.99);
}

.learn-card-art {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.learn-card-body {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.learn-card-title {
  font-size: var(--text-17, 17px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.learn-card-text,
.learn-row-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.learn-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.learn-card-meta .learn-flag {
  margin-inline-start: 0;
}

/* A campus's or a course's own page: its picture as a banner. */
.learn-hero {
  overflow: hidden;
}

.learn-hero-art {
  aspect-ratio: 4 / 1;
  margin: -20px -20px 4px;
  border-radius: 0;
}

@media (max-width: 800px) {
  .learn-hero-art {
    aspect-ratio: 21 / 9;
  }
}

.learn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.learn-actions {
  margin-top: 12px;
}

.learn-flag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-12, 12px);
  font-weight: 600;
  line-height: 19px;
  vertical-align: middle;
  white-space: nowrap;
}

.learn-step-meta > .learn-flag:first-child {
  margin-inline-start: 0;
}

.learn-flag.is-daily {
  border-color: color-mix(in srgb, var(--link) 55%, var(--line));
  color: var(--link);
}

.learn-flag.is-done {
  border-color: color-mix(in srgb, var(--status-ok, #2f7a46) 60%, var(--line));
  color: var(--status-ok, #2f7a46);
}

.learn-flag.is-exam {
  border-color: color-mix(in srgb, #c9a227 60%, var(--line));
  color: #c9a227;
}

.learn-list,
.learn-steps,
.learn-top {
  list-style: none;
  margin: 0;
  padding: 0;
}

.learn-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* A course or a step: the whole row is what a tap opens. */
.learn-row,
.learn-step {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.learn-row-hit,
.learn-step-hit {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  a.learn-row-hit:hover,
  a.learn-step-hit:hover {
    background: color-mix(in srgb, var(--fg) 5%, transparent);
  }
}

a.learn-row-hit:active,
a.learn-step-hit:active {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.learn-row-art {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.learn-row-art .learn-art-letter {
  font-size: 28px;
}

.learn-row-main {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.learn-row-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.learn-row-line > .learn-flag {
  margin-inline-start: 0;
}

.learn-row-main > .learn-progress {
  justify-self: stretch;
}

.learn-row-main .learn-bar {
  flex: 0 1 160px;
  width: auto;
  min-width: 80px;
}

.learn-row.is-closed .learn-row-hit {
  opacity: 0.6;
}

/* Admin > Learn's lists: a row of words and its controls. */
.learn-manage .learn-row,
.learn-manage .learn-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

/* Admin > Learn: a picture in its form. */
.learn-picture-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.learn-picture-art {
  flex: none;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.learn-picture-art .learn-art-letter {
  font-size: 26px;
}

.learn-picture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learn-picture-actions .btn {
  gap: 6px;
}

.learn-row:first-child,
.learn-step:first-child,
.learn-top-row:first-child {
  border-top: 0;
}

.learn-row-main,
.learn-step-main {
  flex: 1 1 auto;
  min-width: 0;
}

.learn-row-title {
  color: var(--fg);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .learn-manage a.learn-row-title:hover {
    text-decoration: underline;
  }
}

.learn-step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.learn-step-main > .learn-step-meta {
  display: flex;
}

.learn-step-n {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: var(--text-13);
  font-weight: 650;
}

.learn-step.is-done .learn-step-n {
  border-color: var(--status-ok, #2f7a46);
  background: var(--status-ok, #2f7a46);
  color: #fff;
}

.learn-step.is-current .learn-step-n {
  border-color: var(--link);
  color: var(--link);
}

.learn-step.is-locked .learn-row-title {
  color: var(--muted);
}

.learn-step-moves {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.learn-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.learn-bar {
  display: block;
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  overflow: hidden;
}

.learn-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--link);
}

.learn-row.is-done .learn-bar-fill {
  background: var(--status-ok, #2f7a46);
}

.learn-progress-n {
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The bar across the card, the count beside it (founder, 2026-11-19). */
.learn-course-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.learn-course-progress > .learn-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.learn-course-progress .learn-bar {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

/* A lesson reads as a page: a measure a line can be read in. */
.learn-body {
  max-width: 68ch;
  font-size: var(--text-16, 16px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.learn-body h3 {
  margin: 22px 0 8px;
  font-size: var(--text-19, 19px);
  line-height: 1.3;
}

.learn-body p {
  margin: 0 0 14px;
  white-space: pre-line;
}

.learn-body ul {
  margin: 0 0 14px;
  padding-inline-start: 22px;
}

.learn-quiz {
  display: grid;
  gap: 14px;
  max-width: 68ch;
  margin-top: 8px;
}

.learn-question {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.learn-question > legend {
  padding: 0 6px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.learn-question > .field-note {
  margin: 0;
}

.learn-top-place {
  flex: 0 0 32px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: center;
}

.learn-top-row:nth-child(-n + 3) .learn-top-place {
  color: #c9a227;
}

.learn-top-row > .person {
  flex: 1 1 auto;
  min-width: 0;
}

.learn-top-row.is-own {
  background: color-mix(in srgb, var(--link) 8%, transparent);
}

.learn-form textarea {
  font-family: inherit;
}

.learn-form #learn-step-questions {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-13);
}

@media (max-width: 800px) {
  .learn-row,
  .learn-step {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .learn-row > .learn-progress {
    flex: 1 0 100%;
  }

  .learn-row .learn-bar {
    flex: 1 1 auto;
    width: auto;
  }

  .learn-days-bars {
    height: 52px;
  }
}

/* ---- Wallet stats: the sums, two charts and the breakdowns, in the
   Analytics charts' look. Received is green and spent violet in every
   theme; each also says which it is in the legend and its tip. ---- */
.ws-sheet {
  --ws-in: var(--an-reposts);
  --ws-out: var(--an-quotes);
}

.ws-wait {
  min-height: 180px;
  border-radius: 12px;
  background: var(--hover);
  color: var(--muted);
  font-size: var(--text-13);
}

.ws-wait.is-failed {
  display: grid;
  place-items: center;
  min-height: 80px;
  background: none;
}

.ws-sheet[aria-busy="true"] > :not(header):not(.ws-wait) { opacity: 0.55; }

.ws-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.ws-tiles > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.ws-tiles dt {
  color: var(--muted);
  font-size: 13px;
}

.ws-tiles dd {
  margin: 2px 0 0;
  font-size: var(--text-17, 17px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .ws-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The ranges on a line of their own, each on one line. */
  .ws-sheet .an-head {
    flex-direction: column;
    align-items: stretch;
  }
  /* They share one line where they fit, and go on to a second where a
     language's names are long. */
  .ws-sheet .an-period {
    min-width: 0;
  }
  .ws-sheet .an-period-opt {
    padding-inline: 8px;
  }
  /* The chart is drawn 640 wide and shown at about half of that: its
     numbers are set larger so they read, and every other name goes. */
  .ws-svg .an-axis { font-size: 20px; }
  .ws-svg .ws-x-alt { display: none; }
}

.ws-chart { min-height: 0; }
.ws-svg { width: 100%; }
.ws-in { fill: var(--ws-in); }
.ws-out { fill: var(--ws-out); }
.ws-hit { fill: transparent; }
.ws-dot { fill: var(--card); stroke: var(--an-line); stroke-width: 2; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .ws-col:hover .ws-dot { opacity: 1; }
  .ws-col:hover .ws-hit { fill: var(--hover); }
}
.an-key.is-in::before { background: var(--ws-in); }
.an-key.is-out::before { background: var(--ws-out); }
.ws-break.is-in i { background: var(--ws-in); }
.ws-break.is-out i { background: var(--ws-out); }
.ws-break .an-break-row { grid-template-columns: minmax(96px, 160px) minmax(0, 1fr) minmax(56px, auto); }

/* ---- A listed network (a public VPN or a datacenter): the mark under
   About's country. ---- */
.about-net {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-13);
}

.about-net[hidden] { display: none; }
.about-net .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--warn, #c98a00); }

/* A step's progress bar keeps clear of the line of marks over it. */
.learn-lesson .learn-course-progress { margin-top: 10px; }

/* Learn's move buttons: the chevron turned up and down. */
.learn-up,
.learn-down {
  display: grid;
  place-items: center;
}
.learn-up > .icon { transform: rotate(-90deg); }
.learn-down > .icon { transform: rotate(90deg); }

/* Settings > Muted conversations: the post each starts from, Unmute under
   it. */
.muted-thread-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.muted-thread {
  display: grid;
  justify-items: stretch;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.muted-thread > .post {
  width: 100%;
  border-bottom: 0;
}

.muted-thread-unmute {
  width: 100%;
}

.muted-thread-older {
  justify-self: start;
  margin-top: 14px;
}

/* A row of many choices (five and more) on a phone: two columns of one
   width, an odd last one across both, rather than lines of uneven widths
   (founder, 2026-11-16). The fills keep their corners (ui/seg.rs). */
@media (max-width: 800px) {
  .seg:has(> .seg-item:nth-child(5)):not(.is-short) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seg:has(> .seg-item:nth-child(5)):not(.is-short) > .seg-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .seg:has(> .seg-item:nth-child(5)) > .seg-item {
    white-space: normal;
  }
}

/* A row of short choices (the Credits stats' 7d 30d 90d 1y All) stays one
   line on a phone (founder, 2026-11-17: as a grid it read as a puzzle). */
.seg.is-short {
  flex-wrap: nowrap;
}

.seg.is-short > .seg-item {
  padding-inline: 6px;
}

/* Learn needs no footer (founder, 2026-11-16). */
.stage:has(> .learn-page) > .site-foot-mobile {
  display: none;
}

/* A step fills the screen, as Work does: its card scrolls, and the pager
   under it stays put. A phone's stage is the row above the tab bar. */
.stage:has(> .learn-page.is-step) {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--lock-bar, 0px));
  overflow: hidden;
  padding-bottom: 0;
}

@media (min-width: 801px) {
  body.app:has(> .stage > .learn-page.is-step) {
    height: 100dvh;
    overflow: hidden;
  }
}

@media (max-width: 800px) {
  body.has-tabbar.app > .stage:has(> .learn-page.is-step) {
    height: auto;
  }
}

.learn-page.is-step {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0;
}

.learn-page.is-step > .learn-lesson {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Learn: the pager between a course's steps. */
.learn-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: none;
  padding: 12px 0 14px;
}

.learn-pager-link {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.learn-pager-link.is-after {
  grid-column: 2;
  text-align: end;
}

/* A lesson's Next completes it: a button drawn as the links are. */
button.learn-pager-link {
  appearance: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.learn-pager-link.is-off {
  opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) {
  :is(a, button).learn-pager-link:hover {
    border-color: color-mix(in srgb, var(--link) 50%, var(--line));
  }
}

.learn-pager-dir {
  color: var(--muted);
  font-size: var(--text-13);
}

.learn-pager-title {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Work > Jobs (founder, 2026-11-16) ---- */
/* ---- Jobs and Invites on Admin > Product keys' design (founder,
   2026-11-25: "we already have design for product keys. reuse."): its
   head, search box, tabs and key cards (`invite-keys`, `invite-card`,
   `invite-info`, menus.css). What follows is only what a job adds. ---- */
.btn.btn-gold {
  background: var(--credit-text);
  border-color: var(--credit-text);
  color: var(--credit-btn-fg);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .btn.btn-gold:hover {
    background: var(--credit-text-hot);
    border-color: var(--credit-text-hot);
    color: var(--credit-btn-fg);
  }
}

.invite-keys-head p + p {
  margin-top: 4px;
}

.invite-keys-head a {
  color: var(--link);
}

/* As far from the tabs as the search box is. */
.jobs-sheet > .seg {
  margin: 0 0 12px;
}

.jobs-filters {
  margin: 0 0 14px;
}

.jobs-filters > .search-advanced {
  margin-top: 0;
}

/* A job on the list: a card of a job board (founder, 2026-11-30). What it
   pays is the card's figure, in the Credits gold; its facts are chips; who
   posted it is one line at the foot. The whole card is its title's link. */
.job-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .job-card:hover {
    border-color: var(--credit-line, var(--hairline-strong));
    background: color-mix(in srgb, var(--fg) 4%, transparent);
  }
}

.job-card:active {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

.job-card.is-settled {
  opacity: 0.82;
}

.job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-card-top > .learn-flag {
  margin-inline-start: 0;
}

.job-card-pay {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: var(--credit-text-hot);
}

.job-card-pay .icon {
  align-self: center;
  width: 20px;
  height: 20px;
  flex: none;
}

.job-card-pay strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.job-card-pay span {
  color: var(--credit-text);
  font-size: var(--text-13);
  font-weight: 600;
}

.job-chips,
.jobs-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.jobs-summary {
  margin-top: 6px;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-20);
}

.job-chip .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

.job-chip dt {
  color: var(--muted);
}

.job-chip dd {
  margin: 0;
}

.job-chip.is-gold,
.job-chip.is-gold .icon {
  color: var(--credit-text-hot);
}

/* Who posted it: the account row on one line, under a rule, at the foot
   of the card whatever its height. */
.job-card-by {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.job-card .job-person {
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 0;
  border: 0;
  gap: 10px;
}

.job-card .job-person .post-avatar,
.job-card .job-person .av-box,
.job-card .job-person .avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 13px;
}

.job-card .job-person .role-id {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
}

.job-card .job-person-note {
  display: inline;
}

@media (hover: hover) and (pointer: fine) {
  .job-card:hover .job-key-title {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.job-key-title {
  min-width: 0;
  color: var(--fg);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.job-key-title::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* The person's own links stay above the card's link. */
.job-card .job-person,
.job-card .info-tip {
  position: relative;
  z-index: 1;
}

/* A person in a fact tile: the site's account row, a little tighter. */
.invite-info .job-person {
  padding: 2px 0 0;
  border: 0;
  gap: 10px;
}

.job-person-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.job-key-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.invite-info dd.job-key-reward {
  color: var(--credit-text-hot);
  font-weight: 600;
}

/* Who posted it (or joined with an invite): their face, name and record. */
.job-key-who,
.invite-joined {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--fg);
  text-decoration: none;
}

.job-card-name {
  font-weight: 600;
}

.job-card-record,
.job-facts-note {
  color: var(--muted);
  font-size: 13px;
}

.job-facts-note {
  display: block;
}

.invite-face {
  flex: none;
  width: 24px;
  height: 24px;
}

.invite-face .av-box,
.invite-face .avatar {
  display: grid;
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 11px;
}

/* A job's own page: its facts, then what it asks, then what can be done.
   The head is its title, then its state beside its ⋯ menu. */
.job-sheet .invite-keys-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.job-sheet .invite-keys-head .invite-state {
  margin-top: 4px;
}

.job-sheet .job-facts {
  margin: 0 0 16px;
}

.job-sheet .job-body {
  margin: 0 0 16px;
}

.job-cannot {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.job-cannot a {
  color: var(--link);
}

.job-actions:empty {
  display: none;
}

/* An invite's link, readable and selectable in its tile. */
.invite-link-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  user-select: all;
  -webkit-user-select: all;
}

.learn-flag.job-state.is-done {
  border-color: color-mix(in srgb, var(--status-ok, #2f7a46) 60%, var(--line));
  color: var(--status-ok, #2f7a46);
}

.learn-flag.job-state.is-disputed,
.learn-flag.job-state.is-failed {
  border-color: color-mix(in srgb, #ff3b30 55%, var(--line));
  color: #ff3b30;
}

.job-post-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 520px) {
  .job-post-pair {
    grid-template-columns: 1fr;
  }
}

/* Why an account cannot post, with its one way forward. */
/* Posting a job, in its popup. */
.job-post {
  display: grid;
  gap: 12px;
}

.job-post > .field-note {
  margin: 0;
}

.job-post > .form-error {
  margin: 0;
}

.job-note {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.job-note p {
  margin: 0;
}

.job-note.is-dispute {
  border-color: color-mix(in srgb, #ff3b30 45%, var(--line));
}

.job-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.job-form > .btn {
  justify-self: start;
}

.job-more {
  margin-top: 14px;
}

/* What opens a form is a button, as every other control that does
   (founder, 2026-12-01: a grey word behind a triangle). */
.job-more > summary {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: var(--control-h);
  padding: 0 16px;
  border: 1px solid var(--input-line);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.job-more > summary::-webkit-details-marker {
  display: none;
}

.job-more[open] > summary {
  background: var(--hover);
}

@media (hover: hover) and (pointer: fine) {
  .job-more > summary:hover {
    background: var(--hover);
  }
}

/* A person named on a job's card, in the line's own size. */
.admin-job-name {
  color: var(--fg);
  font-weight: 650;
  text-decoration: none;
}

/* The settings, two to a row; one under the other where there is no
   room for two. */
.job-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
  /* The fields of a row stand level, whether a label takes one line or two. */
  align-items: end;
}

.job-set-grid .rate-qty input[type="number"] {
  width: 100%;
}

.admin-jobs .locked-appeal-title {
  margin: 20px 0 6px;
}

.admin-jobs .rate-sheet-head + .locked-appeal-title {
  margin-top: 4px;
}

/* A tappable (i) beside what it explains, in place of a paragraph
   (app/i/jobs.rs `tip`; a tap shows its note, ui/hints.rs). */
.info-tip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-inline-start: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  vertical-align: middle;
  cursor: help;
}

.info-tip .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .info-tip:hover {
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 8%, transparent);
  }
}

.label-tip {
  display: inline-flex;
  align-items: center;
}

/* Jobs: joining the program, or why the reader was removed. */
.jobs-program {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
}

.jobs-program-text {
  min-width: 0;
}

.jobs-program h3,
.jobs-program p {
  margin: 0;
}

.jobs-program h3 {
  display: flex;
  align-items: center;
  font-size: var(--text-17, 17px);
}

.jobs-program p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.jobs-program.is-removed {
  display: grid;
  border-color: color-mix(in srgb, var(--status-bad) 45%, var(--line));
}

.jobs-program-state {
  color: var(--muted);
}

.jobs-filters-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jobs-filter-n {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.jobs-filter-actions {
  display: flex;
  gap: 8px;
}

.jobs-filter-actions > .btn {
  flex: 1 1 0;
}

/* Room under the last card, as every page has. */
.settings-sheets.learn-page {
  padding-bottom: 24px;
}

/* The wallet's total and locked balances under the available one. */
.credit-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.credit-parts > div {
  display: flex;
  gap: 6px;
}

.credit-parts dt,
.credit-parts dd {
  margin: 0;
}

.credit-parts dd {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.admin-job-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-job,
.admin-job-reports {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-job p {
  margin: 4px 0;
}

.admin-job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-job-reasons {
  margin: 6px 0 10px;
  padding-inline-start: 18px;
}


/* The release or incident an on-call notice opened the page at (founder,
   2026-11-28): marked, with room above it when the page scrolls to it. */
.ops-row.is-target > td,
.incident-row.is-target {
  background: color-mix(in srgb, var(--accent, var(--fg)) 10%, transparent);
}

.incident-row.is-target {
  border-radius: 12px;
}

#is-target {
  scroll-margin-top: 96px;
}

/* Admin > Site > CDN: its figures and its files are tables, as the other
   admin pages' (founder, 2026-11-29: not the product key's cards). A file's
   picture (or its kind's icon) leads its row. */
/* Stats and Files, as the page's two views; the filter row of Server
   logs; the place in the list beside the pager, which keeps its buttons
   in place (one that leads nowhere is shown off). */
/* The two views, across the row as the Jobs tabs are. */
.cdn-views {
  width: 100%;
  margin: 0 0 14px;
}

.cdn-filter {
  margin: 0 0 12px;
}

/* One line on a computer: the search takes what the two pickers leave. */
.cdn-filter .logs-filter-row > .field {
  flex: 1 1 140px;
  max-width: 220px;
}

.cdn-filter .logs-filter-row > .logs-filter-q {
  flex: 1 1 280px !important;
  max-width: none;
}

.cdn-filter select {
  width: 100%;
}

/* Stats: the service's state, then its figures as tables under their
   headings; traffic and uploads side by side where there is room. */
.cdn-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 16px;
  color: var(--muted);
}

.cdn-status > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.cdn-status strong {
  color: var(--fg);
  font-weight: 650;
}

.cdn-status.is-ok > i {
  background: var(--status-ok, #2f9e5b);
}

.cdn-status.is-bad > i {
  background: #ff3b30;
}

.cdn-block {
  min-width: 0;
  margin: 0 0 16px;
}

.cdn-h {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  font-weight: 600;
}

.cdn-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 16px;
}

.cdn-storage th:nth-child(4) {
  width: 38%;
}

.cdn-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cdn-share .learn-bar {
  flex: 1 1 auto;
  width: auto;
  min-width: 40px;
}

.cdn-share-n {
  flex: 0 0 38px;
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.cdn-total .ops-name,
.cdn-total .cdn-value {
  font-weight: 700;
}

.cdn-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 10px;
}

.cdn-bar.is-foot {
  margin: 12px 0 0;
}

.cdn-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* First, previous, next, last: one joined control. */
.cdn-pager {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  overflow: hidden;
}

.cdn-step {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  color: var(--fg);
}

.cdn-step + .cdn-step {
  border-inline-start: 1px solid var(--line);
}

.cdn-step .icon {
  width: 18px;
  height: 18px;
}

.cdn-step.is-off {
  color: color-mix(in srgb, var(--muted) 45%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  a.cdn-step:hover {
    background: var(--hover);
  }
}

a.cdn-step:active {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.cdn-value {
  font-weight: 700;
}

.cdn-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 10px;
}

.cdn-bar.is-foot {
  justify-content: flex-end;
  margin: 12px 0 0;
}

.cdn-count {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cdn-value {
  font-weight: 600;
  white-space: nowrap;
}

.cdn-value.is-ok {
  color: var(--ok, #3fb950);
}

.cdn-value.is-bad {
  color: var(--danger, #f85149);
}

.cdn-file-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cdn-file {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.cdn-file .ops-note {
  margin: 2px 0 0;
  color: var(--muted);
}

.cdn-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-2);
}

.cdn-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdn-thumb.is-icon .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

/* Six columns across the wide stage, each cell on as many lines as it
   needs: the whole row fits with no sideways scrolling (founder,
   2026-11-29). The key wraps whole, its kind and type under it. */
.cdn-table {
  table-layout: fixed;
}

.cdn-table th:nth-child(1) {
  width: 34%;
}

.cdn-table th:nth-child(2) {
  width: 9%;
}

.cdn-table th:nth-child(3) {
  width: 10%;
}

.cdn-table th:nth-child(4) {
  width: 14%;
}

.cdn-table th:nth-child(5) {
  width: 14%;
}

.cdn-table td {
  overflow-wrap: anywhere;
}

.cdn-file-cell {
  align-items: flex-start;
  min-width: 0;
}

/* The key on one line, cut with an ellipsis; its hint holds it whole. */
.cdn-table .cdn-key {
  display: block;
  font-size: var(--text-13);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdn-table .invite-state {
  display: inline-block;
  border-radius: 12px;
  white-space: normal;
}

.cdn-uses {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.cdn-uses a {
  color: var(--link);
  text-decoration: none;
}

.cdn-uses a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Seasonal themes (b2 #58). Generated by scripts/seasons.py; edit the
   palettes there. Default keeps the base variables. */
html[data-season="spring"] {
  --bg: #100d11;
  --fg: #f7eef3;
  --fg-dim: #c9c1c6;
  --muted: #b4a3ae;
  --tab-n: #b4a3ae;
  --link: #f5a3c7;
  --link-hover: #fbd0e2;
  --accent: #f5a3c7;
  --accent-fg: #ffffff;
  --accent-soft: rgba(245, 163, 199, 0.14);
  --season-touch: #93d69c;
  --season-touch-2: #f7d9a8;
  --btn: #a8366b;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #8a2c58;
  --btn-sheen: #b65683;
  --season-line: linear-gradient(90deg, #f5a3c7, #93d69c);
  --season-sky: radial-gradient(ellipse 72% 46% at 6% 0%, rgba(245, 163, 199, 0.17), transparent 72%), radial-gradient(ellipse 60% 42% at 100% 2%, rgba(245, 163, 199, 0.13), transparent 72%), radial-gradient(ellipse 100% 32% at 50% 100%, rgba(147, 214, 156, 0.11), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #2c282c;
  --hover: rgba(245, 163, 199, 0.07);
  --glass: rgba(16, 13, 17, 0.82);
  --glass-heavy: rgba(16, 13, 17, 0.93);
  --input-bg: #100d11;
  --input-line: #6c676b;
  --input-focus: #f5a3c7;
  --card: #18131a;
  --card-2: #161218;
  --elevated: #221b25;
  --elevated-2: #1d1720;
  --hairline: #373337;
  --hairline-strong: #4e4a4e;
  --scroll: #593d4b;
  --bubble-in: #221b25;
  --bubble-in-fg: #f7eef3;
  --bubble-out: #a8366b;
  --bubble-out-fg: #ffffff;
  --selection: rgba(245, 163, 199, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #2e2930 0%, #18131a 46%, #141016 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M12 20.6v-7.4%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M7.2 5.4c-.3 4.6 1.6 7.8 4.8 7.8s5.1-3.2 4.8-7.8l-2.7 2.1L12 4.2 9.9 7.5z%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M12 17.8c-2.7.1-4.6-1.2-5.4-3.4 2.6-.2 4.5.9 5.4 3.4zM12 19.2c1.4-2.2 3.2-3 5.4-2.6-.9 2-2.8 2.9-5.4 2.6z%22 stroke=%22currentColor%22 stroke-width=%221.4%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="spring"],
html[data-theme="light"][data-season="spring"] {
  --bg: #fdf8f9;
  --fg: #2a1820;
  --fg-dim: #54454b;
  --muted: #6b5060;
  --tab-n: #6b5060;
  --link: #a8285f;
  --link-hover: #821c48;
  --accent: #a8285f;
  --accent-fg: #ffffff;
  --accent-soft: rgba(168, 40, 95, 0.12);
  --season-touch: #3f8a4c;
  --season-touch-2: #e39ab8;
  --btn: #a8285f;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #8a214e;
  --btn-sheen: #b64a79;
  --season-line: linear-gradient(90deg, #a8285f, #3f8a4c);
  --season-sky: radial-gradient(ellipse 72% 46% at 6% 0%, rgba(168, 40, 95, 0.2), transparent 72%), radial-gradient(ellipse 60% 42% at 100% 2%, rgba(168, 40, 95, 0.16), transparent 72%), radial-gradient(ellipse 100% 32% at 50% 100%, rgba(63, 138, 76, 0.16), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #d9d2d4;
  --hover: rgba(168, 40, 95, 0.08);
  --glass: #fdf8f9;
  --glass-heavy: #fdf8f9;
  --input-bg: #ffffff;
  --input-line: #91868a;
  --input-focus: #a8285f;
  --card: #f8ecf1;
  --card-2: #f9eff3;
  --elevated: #ffffff;
  --elevated-2: #f8ecf1;
  --hairline: #d3cbce;
  --hairline-strong: #a49a9e;
  --scroll: #b8507c;
  --bubble-in: #f8ecf1;
  --bubble-in-fg: #2a1820;
  --bubble-out: #a8285f;
  --bubble-out-fg: #ffffff;
  --selection: rgba(168, 40, 95, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7a45;
  --status-warn: #886812;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #e3d7dc 0%, #f8ecf1 46%, #faf2f5 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="spring"] {
    --bg: #fdf8f9;
    --fg: #2a1820;
    --fg-dim: #54454b;
    --muted: #6b5060;
    --tab-n: #6b5060;
    --link: #a8285f;
    --link-hover: #821c48;
    --accent: #a8285f;
    --accent-fg: #ffffff;
    --accent-soft: rgba(168, 40, 95, 0.12);
    --season-touch: #3f8a4c;
    --season-touch-2: #e39ab8;
    --btn: #a8285f;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #8a214e;
    --btn-sheen: #b64a79;
    --season-line: linear-gradient(90deg, #a8285f, #3f8a4c);
    --season-sky: radial-gradient(ellipse 72% 46% at 6% 0%, rgba(168, 40, 95, 0.2), transparent 72%), radial-gradient(ellipse 60% 42% at 100% 2%, rgba(168, 40, 95, 0.16), transparent 72%), radial-gradient(ellipse 100% 32% at 50% 100%, rgba(63, 138, 76, 0.16), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #d9d2d4;
    --hover: rgba(168, 40, 95, 0.08);
    --glass: #fdf8f9;
    --glass-heavy: #fdf8f9;
    --input-bg: #ffffff;
    --input-line: #91868a;
    --input-focus: #a8285f;
    --card: #f8ecf1;
    --card-2: #f9eff3;
    --elevated: #ffffff;
    --elevated-2: #f8ecf1;
    --hairline: #d3cbce;
    --hairline-strong: #a49a9e;
    --scroll: #b8507c;
    --bubble-in: #f8ecf1;
    --bubble-in-fg: #2a1820;
    --bubble-out: #a8285f;
    --bubble-out-fg: #ffffff;
    --selection: rgba(168, 40, 95, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7a45;
    --status-warn: #886812;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #e3d7dc 0%, #f8ecf1 46%, #faf2f5 100%);
    color-scheme: light;
  }
}
html[data-season="summer"] {
  --bg: #07121a;
  --fg: #eef7fa;
  --fg-dim: #c0c9cd;
  --muted: #95adb8;
  --tab-n: #95adb8;
  --link: #5fd3e3;
  --link-hover: #a6e9f2;
  --accent: #5fd3e3;
  --accent-fg: #ffffff;
  --accent-soft: rgba(95, 211, 227, 0.14);
  --season-touch: #f6c453;
  --season-touch-2: #ff9e7a;
  --btn: #0e7083;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #0b5c6b;
  --btn-sheen: #2b8192;
  --season-line: linear-gradient(90deg, #5fd3e3, #f6c453);
  --season-sky: radial-gradient(ellipse 64% 56% at 100% 0%, rgba(246, 196, 83, 0.07), transparent 72%), radial-gradient(ellipse 70% 44% at 0% 0%, rgba(95, 211, 227, 0.1), transparent 72%), radial-gradient(ellipse 110% 34% at 50% 100%, rgba(255, 158, 122, 0.13), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #232d35;
  --hover: rgba(95, 211, 227, 0.07);
  --glass: rgba(7, 18, 26, 0.82);
  --glass-heavy: rgba(7, 18, 26, 0.93);
  --input-bg: #07121a;
  --input-line: #636e74;
  --input-focus: #5fd3e3;
  --card: #0c1b24;
  --card-2: #0b1922;
  --elevated: #13252f;
  --elevated-2: #10202a;
  --hairline: #2e3940;
  --hairline-strong: #455056;
  --scroll: #23505a;
  --bubble-in: #13252f;
  --bubble-in-fg: #eef7fa;
  --bubble-out: #0e7083;
  --bubble-out-fg: #ffffff;
  --selection: rgba(95, 211, 227, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #233139 0%, #0c1b24 46%, #0a161f 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M7 14.4a5 5 0 0 1 10 0%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M12 4.6v2M6 7.4l1.3 1.3M18 7.4l-1.3 1.3M3.6 14.4h1.6M18.8 14.4h1.6%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M3.8 18.4c1.37 0 1.37-1.1 2.74-1.1s1.37 1.1 2.74 1.1 1.37-1.1 2.74-1.1 1.37 1.1 2.74 1.1 1.37-1.1 2.74-1.1 1.37 1.1 2.7 1.1%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="summer"],
html[data-theme="light"][data-season="summer"] {
  --bg: #fffaf1;
  --fg: #13242a;
  --fg-dim: #424f52;
  --muted: #4a5a5f;
  --tab-n: #4a5a5f;
  --link: #0a6878;
  --link-hover: #064d5a;
  --accent: #0a6878;
  --accent-fg: #ffffff;
  --accent-soft: rgba(10, 104, 120, 0.12);
  --season-touch: #e0921a;
  --season-touch-2: #ef7b5c;
  --btn: #0a6878;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #085562;
  --btn-sheen: #31808e;
  --season-line: linear-gradient(90deg, #0a6878, #a88732);
  --season-sky: radial-gradient(ellipse 64% 56% at 100% 0%, rgba(224, 146, 26, 0.3), transparent 72%), radial-gradient(ellipse 70% 44% at 0% 0%, rgba(10, 104, 120, 0.1), transparent 72%), radial-gradient(ellipse 110% 34% at 50% 100%, rgba(239, 123, 92, 0.12), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #d7d6cf;
  --hover: rgba(10, 104, 120, 0.08);
  --glass: #fffaf1;
  --glass-heavy: #fffaf1;
  --input-bg: #ffffff;
  --input-line: #848b8a;
  --input-focus: #0a6878;
  --card: #fbf0dc;
  --card-2: #fcf2e1;
  --elevated: #ffffff;
  --elevated-2: #fbf0dc;
  --hairline: #d0cfc9;
  --hairline-strong: #9ca09d;
  --scroll: #317f8b;
  --bubble-in: #fbf0dc;
  --bubble-in-fg: #13242a;
  --bubble-out: #0a6878;
  --bubble-out-fg: #ffffff;
  --selection: rgba(10, 104, 120, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7a45;
  --status-warn: #886912;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #e4dcca 0%, #fbf0dc 46%, #fdf5e6 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="summer"] {
    --bg: #fffaf1;
    --fg: #13242a;
    --fg-dim: #424f52;
    --muted: #4a5a5f;
    --tab-n: #4a5a5f;
    --link: #0a6878;
    --link-hover: #064d5a;
    --accent: #0a6878;
    --accent-fg: #ffffff;
    --accent-soft: rgba(10, 104, 120, 0.12);
    --season-touch: #e0921a;
    --season-touch-2: #ef7b5c;
    --btn: #0a6878;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #085562;
    --btn-sheen: #31808e;
    --season-line: linear-gradient(90deg, #0a6878, #a88732);
    --season-sky: radial-gradient(ellipse 64% 56% at 100% 0%, rgba(224, 146, 26, 0.3), transparent 72%), radial-gradient(ellipse 70% 44% at 0% 0%, rgba(10, 104, 120, 0.1), transparent 72%), radial-gradient(ellipse 110% 34% at 50% 100%, rgba(239, 123, 92, 0.12), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #d7d6cf;
    --hover: rgba(10, 104, 120, 0.08);
    --glass: #fffaf1;
    --glass-heavy: #fffaf1;
    --input-bg: #ffffff;
    --input-line: #848b8a;
    --input-focus: #0a6878;
    --card: #fbf0dc;
    --card-2: #fcf2e1;
    --elevated: #ffffff;
    --elevated-2: #fbf0dc;
    --hairline: #d0cfc9;
    --hairline-strong: #9ca09d;
    --scroll: #317f8b;
    --bubble-in: #fbf0dc;
    --bubble-in-fg: #13242a;
    --bubble-out: #0a6878;
    --bubble-out-fg: #ffffff;
    --selection: rgba(10, 104, 120, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7a45;
    --status-warn: #886912;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #e4dcca 0%, #fbf0dc 46%, #fdf5e6 100%);
    color-scheme: light;
  }
}
html[data-season="autumn"] {
  --bg: #140e0a;
  --fg: #f8ede3;
  --fg-dim: #cac0b8;
  --muted: #baa390;
  --tab-n: #baa390;
  --link: #f2a462;
  --link-hover: #f8c99c;
  --accent: #f2a462;
  --accent-fg: #ffffff;
  --accent-soft: rgba(242, 164, 98, 0.14);
  --season-touch: #dc5a3c;
  --season-touch-2: #e6b84a;
  --btn: #9a4a1c;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #7e3d17;
  --btn-sheen: #a9653e;
  --season-line: linear-gradient(90deg, #f2a462, #dc5a3c);
  --season-sky: radial-gradient(ellipse 70% 46% at 100% 0%, rgba(230, 184, 74, 0.13), transparent 72%), radial-gradient(ellipse 70% 46% at 0% 0%, rgba(220, 90, 60, 0.12), transparent 72%), radial-gradient(ellipse 110% 32% at 50% 100%, rgba(242, 164, 98, 0.11), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #2f2924;
  --hover: rgba(242, 164, 98, 0.07);
  --glass: rgba(20, 14, 10, 0.82);
  --glass-heavy: rgba(20, 14, 10, 0.93);
  --input-bg: #140e0a;
  --input-line: #716963;
  --input-focus: #f2a462;
  --card: #1d1510;
  --card-2: #1b130e;
  --elevated: #281d16;
  --elevated-2: #221913;
  --hairline: #3b342f;
  --hairline-strong: #524a45;
  --scroll: #5b3e26;
  --bubble-in: #281d16;
  --bubble-in-fg: #f8ede3;
  --bubble-out: #9a4a1c;
  --bubble-out-fg: #ffffff;
  --selection: rgba(242, 164, 98, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #332b25 0%, #1d1510 46%, #18120d 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M5.2 18.8C4.6 10.6 9.6 5.4 18.9 4.9c.2 9.2-4.9 14.3-13.7 13.9z%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M4 20l9.6-9.6M9.4 14.6l-.2-3.4M11.6 12.4l3.2.2%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="autumn"],
html[data-theme="light"][data-season="autumn"] {
  --bg: #fcf6ee;
  --fg: #2a1c13;
  --fg-dim: #54483f;
  --muted: #69513f;
  --tab-n: #69513f;
  --link: #a2441a;
  --link-hover: #7a3410;
  --accent: #a2441a;
  --accent-fg: #ffffff;
  --accent-soft: rgba(162, 68, 26, 0.12);
  --season-touch: #bf4a22;
  --season-touch-2: #c8891e;
  --btn: #9e4519;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #823914;
  --btn-sheen: #ae633e;
  --season-line: linear-gradient(90deg, #a2441a, #bf4a22);
  --season-sky: radial-gradient(ellipse 70% 46% at 100% 0%, rgba(200, 137, 30, 0.2), transparent 72%), radial-gradient(ellipse 70% 46% at 0% 0%, rgba(191, 74, 34, 0.13), transparent 72%), radial-gradient(ellipse 110% 32% at 50% 100%, rgba(162, 68, 26, 0.15), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #d8d1c9;
  --hover: rgba(162, 68, 26, 0.08);
  --glass: #fcf6ee;
  --glass-heavy: #fcf6ee;
  --input-bg: #ffffff;
  --input-line: #8f857c;
  --input-focus: #a2441a;
  --card: #f5e9d9;
  --card-2: #f7ecde;
  --elevated: #ffffff;
  --elevated-2: #f5e9d9;
  --hairline: #d2cac2;
  --hairline-strong: #a49a92;
  --scroll: #ae5b36;
  --bubble-in: #f5e9d9;
  --bubble-in-fg: #2a1c13;
  --bubble-out: #9e4519;
  --bubble-out-fg: #ffffff;
  --selection: rgba(162, 68, 26, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7844;
  --status-warn: #846512;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #e1d5c5 0%, #f5e9d9 46%, #f8f0e4 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="autumn"] {
    --bg: #fcf6ee;
    --fg: #2a1c13;
    --fg-dim: #54483f;
    --muted: #69513f;
    --tab-n: #69513f;
    --link: #a2441a;
    --link-hover: #7a3410;
    --accent: #a2441a;
    --accent-fg: #ffffff;
    --accent-soft: rgba(162, 68, 26, 0.12);
    --season-touch: #bf4a22;
    --season-touch-2: #c8891e;
    --btn: #9e4519;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #823914;
    --btn-sheen: #ae633e;
    --season-line: linear-gradient(90deg, #a2441a, #bf4a22);
    --season-sky: radial-gradient(ellipse 70% 46% at 100% 0%, rgba(200, 137, 30, 0.2), transparent 72%), radial-gradient(ellipse 70% 46% at 0% 0%, rgba(191, 74, 34, 0.13), transparent 72%), radial-gradient(ellipse 110% 32% at 50% 100%, rgba(162, 68, 26, 0.15), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #d8d1c9;
    --hover: rgba(162, 68, 26, 0.08);
    --glass: #fcf6ee;
    --glass-heavy: #fcf6ee;
    --input-bg: #ffffff;
    --input-line: #8f857c;
    --input-focus: #a2441a;
    --card: #f5e9d9;
    --card-2: #f7ecde;
    --elevated: #ffffff;
    --elevated-2: #f5e9d9;
    --hairline: #d2cac2;
    --hairline-strong: #a49a92;
    --scroll: #ae5b36;
    --bubble-in: #f5e9d9;
    --bubble-in-fg: #2a1c13;
    --bubble-out: #9e4519;
    --bubble-out-fg: #ffffff;
    --selection: rgba(162, 68, 26, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7844;
    --status-warn: #846512;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #e1d5c5 0%, #f5e9d9 46%, #f8f0e4 100%);
    color-scheme: light;
  }
}
html[data-season="winter"] {
  --bg: #080d16;
  --fg: #eef4fb;
  --fg-dim: #c0c6cd;
  --muted: #99a9bd;
  --tab-n: #99a9bd;
  --link: #8ec8ff;
  --link-hover: #c2e0ff;
  --accent: #8ec8ff;
  --accent-fg: #ffffff;
  --accent-soft: rgba(142, 200, 255, 0.14);
  --season-touch: #cfe8ff;
  --season-touch-2: #9fb8d8;
  --btn: #2c5f9e;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #244e82;
  --btn-sheen: #4c77ad;
  --season-line: linear-gradient(90deg, #8ec8ff, #cfe8ff);
  --season-sky: radial-gradient(ellipse 84% 38% at 26% 0%, rgba(142, 200, 255, 0.17), transparent 72%), radial-gradient(ellipse 62% 32% at 88% 4%, rgba(159, 184, 216, 0.13), transparent 72%), radial-gradient(ellipse 110% 28% at 50% 100%, rgba(207, 232, 255, 0.1), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #242931;
  --hover: rgba(142, 200, 255, 0.07);
  --glass: rgba(8, 13, 22, 0.82);
  --glass-heavy: rgba(8, 13, 22, 0.93);
  --input-bg: #080d16;
  --input-line: #666c74;
  --input-focus: #8ec8ff;
  --card: #0e1622;
  --card-2: #0c141f;
  --elevated: #162030;
  --elevated-2: #121b29;
  --hairline: #2f343d;
  --hairline-strong: #464b54;
  --scroll: #334961;
  --bubble-in: #162030;
  --bubble-in-fg: #eef4fb;
  --bubble-out: #2c5f9e;
  --bubble-out-fg: #ffffff;
  --selection: rgba(142, 200, 255, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #242c38 0%, #0e1622 46%, #0b121c 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M12 20.6V3.4M4.6 16.3l14.8-8.6M4.6 7.7l14.8 8.6M10.1 5.2 12 7.1l1.9-1.9M5.1 10.2l2.7-.6-.7-2.7M7.1 17.1l.7-2.6-2.7-.7M13.9 18.8 12 16.9l-1.9 1.9M18.9 13.8l-2.7.7.7 2.6M16.9 6.9l-.7 2.7 2.7.6%22 stroke=%22currentColor%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="winter"],
html[data-theme="light"][data-season="winter"] {
  --bg: #f5f8fc;
  --fg: #122033;
  --fg-dim: #3f4b5b;
  --muted: #4a596c;
  --tab-n: #4a596c;
  --link: #1d5ca6;
  --link-hover: #134580;
  --accent: #1d5ca6;
  --accent-fg: #ffffff;
  --accent-soft: rgba(29, 92, 166, 0.12);
  --season-touch: #5f9fd8;
  --season-touch-2: #9bb7d4;
  --btn: #1d5ca6;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #184b88;
  --btn-sheen: #4176b4;
  --season-line: linear-gradient(90deg, #1d5ca6, #4d8cca);
  --season-sky: radial-gradient(ellipse 84% 38% at 26% 0%, rgba(29, 92, 166, 0.14), transparent 72%), radial-gradient(ellipse 62% 32% at 88% 4%, rgba(155, 183, 212, 0.2), transparent 72%), radial-gradient(ellipse 110% 28% at 50% 100%, rgba(95, 159, 216, 0.22), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #ced3da;
  --hover: rgba(29, 92, 166, 0.08);
  --glass: #f5f8fc;
  --glass-heavy: #f5f8fc;
  --input-bg: #ffffff;
  --input-line: #818a95;
  --input-focus: #1d5ca6;
  --card: #e8eff7;
  --card-2: #ebf1f8;
  --elevated: #ffffff;
  --elevated-2: #e8eff7;
  --hairline: #c8cdd4;
  --hairline-strong: #969da8;
  --scroll: #4075b4;
  --bubble-in: #e8eff7;
  --bubble-in-fg: #122033;
  --bubble-out: #1d5ca6;
  --bubble-out-fg: #ffffff;
  --selection: rgba(29, 92, 166, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7a45;
  --status-warn: #856713;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #d3dae3 0%, #e8eff7 46%, #eef4fa 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="winter"] {
    --bg: #f5f8fc;
    --fg: #122033;
    --fg-dim: #3f4b5b;
    --muted: #4a596c;
    --tab-n: #4a596c;
    --link: #1d5ca6;
    --link-hover: #134580;
    --accent: #1d5ca6;
    --accent-fg: #ffffff;
    --accent-soft: rgba(29, 92, 166, 0.12);
    --season-touch: #5f9fd8;
    --season-touch-2: #9bb7d4;
    --btn: #1d5ca6;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #184b88;
    --btn-sheen: #4176b4;
    --season-line: linear-gradient(90deg, #1d5ca6, #4d8cca);
    --season-sky: radial-gradient(ellipse 84% 38% at 26% 0%, rgba(29, 92, 166, 0.14), transparent 72%), radial-gradient(ellipse 62% 32% at 88% 4%, rgba(155, 183, 212, 0.2), transparent 72%), radial-gradient(ellipse 110% 28% at 50% 100%, rgba(95, 159, 216, 0.22), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #ced3da;
    --hover: rgba(29, 92, 166, 0.08);
    --glass: #f5f8fc;
    --glass-heavy: #f5f8fc;
    --input-bg: #ffffff;
    --input-line: #818a95;
    --input-focus: #1d5ca6;
    --card: #e8eff7;
    --card-2: #ebf1f8;
    --elevated: #ffffff;
    --elevated-2: #e8eff7;
    --hairline: #c8cdd4;
    --hairline-strong: #969da8;
    --scroll: #4075b4;
    --bubble-in: #e8eff7;
    --bubble-in-fg: #122033;
    --bubble-out: #1d5ca6;
    --bubble-out-fg: #ffffff;
    --selection: rgba(29, 92, 166, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7a45;
    --status-warn: #856713;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #d3dae3 0%, #e8eff7 46%, #eef4fa 100%);
    color-scheme: light;
  }
}
html[data-season="christmas"] {
  --bg: #06110c;
  --fg: #f6f1e6;
  --fg-dim: #c6c4ba;
  --muted: #a9b1a1;
  --tab-n: #a9b1a1;
  --link: #ff8d8d;
  --link-hover: #ffc0b8;
  --accent: #ff8d8d;
  --accent-fg: #ffffff;
  --accent-soft: rgba(255, 141, 141, 0.14);
  --season-touch: #e8c35e;
  --season-touch-2: #55b47f;
  --btn: #a3202f;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #861a27;
  --btn-sheen: #b24450;
  --season-line: linear-gradient(90deg, #ff8d8d, #e8c35e);
  --season-sky: radial-gradient(ellipse 58% 44% at 4% 100%, rgba(232, 195, 94, 0.14), transparent 72%), radial-gradient(ellipse 70% 42% at 0% 0%, rgba(85, 180, 127, 0.13), transparent 72%), radial-gradient(ellipse 70% 42% at 100% 0%, rgba(255, 141, 141, 0.09), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #232c26;
  --hover: rgba(255, 141, 141, 0.07);
  --glass: rgba(6, 17, 12, 0.82);
  --glass-heavy: rgba(6, 17, 12, 0.93);
  --input-bg: #06110c;
  --input-line: #6b6f68;
  --input-focus: #ff8d8d;
  --card: #0c1b14;
  --card-2: #0a1812;
  --elevated: #13261c;
  --elevated-2: #102018;
  --hairline: #2f3731;
  --hairline-strong: #474d47;
  --scroll: #563935;
  --bubble-in: #13261c;
  --bubble-in-fg: #f6f1e6;
  --bubble-out: #a3202f;
  --bubble-out-fg: #ffffff;
  --selection: rgba(255, 141, 141, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #233029 0%, #0c1b14 46%, #091610 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M12 4.4l4.2 5.4h-2.1l3.6 4.8h-2.3l3.3 4.4H5.3l3.3-4.4H6.3l3.6-4.8H7.8z%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M12 19v2%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%2212%22 cy=%222.9%22 r=%221.1%22 fill=%22currentColor%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="christmas"],
html[data-theme="light"][data-season="christmas"] {
  --bg: #fbf8f1;
  --fg: #1a1f19;
  --fg-dim: #474a44;
  --muted: #545a4e;
  --tab-n: #545a4e;
  --link: #a3192e;
  --link-hover: #7a0f1f;
  --accent: #a3192e;
  --accent-fg: #ffffff;
  --accent-soft: rgba(163, 25, 46, 0.12);
  --season-touch: #1f6b3f;
  --season-touch-2: #b8902a;
  --btn: #a3192e;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #861426;
  --btn-sheen: #b23e4f;
  --season-line: linear-gradient(90deg, #a3192e, #1f6b3f);
  --season-sky: radial-gradient(ellipse 58% 44% at 4% 100%, rgba(31, 107, 63, 0.18), transparent 72%), radial-gradient(ellipse 70% 42% at 0% 0%, rgba(184, 144, 42, 0.13), transparent 72%), radial-gradient(ellipse 70% 42% at 100% 0%, rgba(163, 25, 46, 0.1), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #d5d3cc;
  --hover: rgba(163, 25, 46, 0.08);
  --glass: #fbf8f1;
  --glass-heavy: #fbf8f1;
  --input-bg: #ffffff;
  --input-line: #868781;
  --input-focus: #a3192e;
  --card: #f2ebdd;
  --card-2: #f4eee2;
  --elevated: #ffffff;
  --elevated-2: #f2ebdd;
  --hairline: #cecdc6;
  --hairline-strong: #9c9d96;
  --scroll: #b9515f;
  --bubble-in: #f2ebdd;
  --bubble-in-fg: #1a1f19;
  --bubble-out: #a3192e;
  --bubble-out-fg: #ffffff;
  --selection: rgba(163, 25, 46, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7a45;
  --status-warn: #836612;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #dcd7c9 0%, #f2ebdd 46%, #f6f2e7 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="christmas"] {
    --bg: #fbf8f1;
    --fg: #1a1f19;
    --fg-dim: #474a44;
    --muted: #545a4e;
    --tab-n: #545a4e;
    --link: #a3192e;
    --link-hover: #7a0f1f;
    --accent: #a3192e;
    --accent-fg: #ffffff;
    --accent-soft: rgba(163, 25, 46, 0.12);
    --season-touch: #1f6b3f;
    --season-touch-2: #b8902a;
    --btn: #a3192e;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #861426;
    --btn-sheen: #b23e4f;
    --season-line: linear-gradient(90deg, #a3192e, #1f6b3f);
    --season-sky: radial-gradient(ellipse 58% 44% at 4% 100%, rgba(31, 107, 63, 0.18), transparent 72%), radial-gradient(ellipse 70% 42% at 0% 0%, rgba(184, 144, 42, 0.13), transparent 72%), radial-gradient(ellipse 70% 42% at 100% 0%, rgba(163, 25, 46, 0.1), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #d5d3cc;
    --hover: rgba(163, 25, 46, 0.08);
    --glass: #fbf8f1;
    --glass-heavy: #fbf8f1;
    --input-bg: #ffffff;
    --input-line: #868781;
    --input-focus: #a3192e;
    --card: #f2ebdd;
    --card-2: #f4eee2;
    --elevated: #ffffff;
    --elevated-2: #f2ebdd;
    --hairline: #cecdc6;
    --hairline-strong: #9c9d96;
    --scroll: #b9515f;
    --bubble-in: #f2ebdd;
    --bubble-in-fg: #1a1f19;
    --bubble-out: #a3192e;
    --bubble-out-fg: #ffffff;
    --selection: rgba(163, 25, 46, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7a45;
    --status-warn: #836612;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #dcd7c9 0%, #f2ebdd 46%, #f6f2e7 100%);
    color-scheme: light;
  }
}
html[data-season="halloween"] {
  --bg: #0e0a14;
  --fg: #f4eef8;
  --fg-dim: #c6c0ca;
  --muted: #ad9fbb;
  --tab-n: #ad9fbb;
  --link: #ff9f45;
  --link-hover: #ffc58c;
  --accent: #ff9f45;
  --accent-fg: #ffffff;
  --accent-soft: rgba(255, 159, 69, 0.14);
  --season-touch: #a77bf0;
  --season-touch-2: #efe2b8;
  --btn: #b45309;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #944407;
  --btn-sheen: #b85d18;
  --season-line: linear-gradient(90deg, #ff9f45, #a77bf0);
  --season-sky: radial-gradient(ellipse 50% 50% at 94% 26%, rgba(167, 123, 240, 0.22), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(255, 159, 69, 0.14), transparent 72%), radial-gradient(ellipse 60% 40% at 0% 0%, rgba(167, 123, 240, 0.1), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #2a252f;
  --hover: rgba(255, 159, 69, 0.07);
  --glass: rgba(14, 10, 20, 0.82);
  --glass-heavy: rgba(14, 10, 20, 0.93);
  --input-bg: #0e0a14;
  --input-line: #6c6771;
  --input-focus: #ff9f45;
  --card: #17111e;
  --card-2: #150f1c;
  --elevated: #211929;
  --elevated-2: #1c1524;
  --hairline: #35313b;
  --hairline-strong: #4c4852;
  --scroll: #5b3a24;
  --bubble-in: #211929;
  --bubble-in-fg: #f4eef8;
  --bubble-out: #b45309;
  --bubble-out-fg: #ffffff;
  --selection: rgba(255, 159, 69, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #2d2734 0%, #17111e 46%, #120e19 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M12 7.4c-4.5 0-7 2.6-7 6.1s2.5 6.1 7 6.1 7-2.6 7-6.1-2.5-6.1-7-6.1z%22 stroke=%22currentColor%22 stroke-width=%221.6%22/%3E%3Cpath d=%22M12 7.4c-1.9 1.6-2.6 3.8-2.6 6.1s.7 4.5 2.6 6.1M12 7.4c1.9 1.6 2.6 3.8 2.6 6.1s-.7 4.5-2.6 6.1%22 stroke=%22currentColor%22 stroke-width=%221.4%22/%3E%3Cpath d=%22M12 7.4c-.1-1.6.6-2.9 2.2-3.6%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="halloween"],
html[data-theme="light"][data-season="halloween"] {
  --bg: #fbf6f0;
  --fg: #221a27;
  --fg-dim: #4d464f;
  --muted: #5e5264;
  --tab-n: #5e5264;
  --link: #a54700;
  --link-hover: #7d3500;
  --accent: #a54700;
  --accent-fg: #ffffff;
  --accent-soft: rgba(165, 71, 0, 0.12);
  --season-touch: #6b3fa0;
  --season-touch-2: #3d2a52;
  --btn: #a84a00;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #8a3d00;
  --btn-sheen: #b2601f;
  --season-line: linear-gradient(90deg, #a54700, #6b3fa0);
  --season-sky: radial-gradient(ellipse 50% 50% at 94% 26%, rgba(107, 63, 160, 0.16), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(165, 71, 0, 0.15), transparent 72%), radial-gradient(ellipse 60% 40% at 0% 0%, rgba(107, 63, 160, 0.08), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #d6d1ce;
  --hover: rgba(165, 71, 0, 0.08);
  --glass: #fbf6f0;
  --glass-heavy: #fbf6f0;
  --input-bg: #ffffff;
  --input-line: #8a8487;
  --input-focus: #a54700;
  --card: #f3e9de;
  --card-2: #f5ece2;
  --elevated: #ffffff;
  --elevated-2: #f3e9de;
  --hairline: #d0cac8;
  --hairline-strong: #a09a9c;
  --scroll: #af5c1d;
  --bubble-in: #f3e9de;
  --bubble-in-fg: #221a27;
  --bubble-out: #a84a00;
  --bubble-out-fg: #ffffff;
  --selection: rgba(165, 71, 0, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7844;
  --status-warn: #846513;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #ded4cc 0%, #f3e9de 46%, #f7f0e7 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="halloween"] {
    --bg: #fbf6f0;
    --fg: #221a27;
    --fg-dim: #4d464f;
    --muted: #5e5264;
    --tab-n: #5e5264;
    --link: #a54700;
    --link-hover: #7d3500;
    --accent: #a54700;
    --accent-fg: #ffffff;
    --accent-soft: rgba(165, 71, 0, 0.12);
    --season-touch: #6b3fa0;
    --season-touch-2: #3d2a52;
    --btn: #a84a00;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #8a3d00;
    --btn-sheen: #b2601f;
    --season-line: linear-gradient(90deg, #a54700, #6b3fa0);
    --season-sky: radial-gradient(ellipse 50% 50% at 94% 26%, rgba(107, 63, 160, 0.16), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(165, 71, 0, 0.15), transparent 72%), radial-gradient(ellipse 60% 40% at 0% 0%, rgba(107, 63, 160, 0.08), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #d6d1ce;
    --hover: rgba(165, 71, 0, 0.08);
    --glass: #fbf6f0;
    --glass-heavy: #fbf6f0;
    --input-bg: #ffffff;
    --input-line: #8a8487;
    --input-focus: #a54700;
    --card: #f3e9de;
    --card-2: #f5ece2;
    --elevated: #ffffff;
    --elevated-2: #f3e9de;
    --hairline: #d0cac8;
    --hairline-strong: #a09a9c;
    --scroll: #af5c1d;
    --bubble-in: #f3e9de;
    --bubble-in-fg: #221a27;
    --bubble-out: #a84a00;
    --bubble-out-fg: #ffffff;
    --selection: rgba(165, 71, 0, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7844;
    --status-warn: #846513;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #ded4cc 0%, #f3e9de 46%, #f7f0e7 100%);
    color-scheme: light;
  }
}
html[data-season="matrix"] {
  --bg: #020904;
  --fg: #d9ffe2;
  --fg-dim: #aeceb6;
  --muted: #86b391;
  --tab-n: #86b391;
  --link: #4dff88;
  --link-hover: #a8ffc4;
  --accent: #4dff88;
  --accent-fg: #ffffff;
  --accent-soft: rgba(77, 255, 136, 0.14);
  --season-touch: #25e36a;
  --season-touch-2: #c4ffd8;
  --btn: #0d7a35;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #0b642b;
  --btn-sheen: #258749;
  --season-line: linear-gradient(90deg, #4dff88, #25e36a);
  --season-sky: radial-gradient(ellipse 90% 38% at 50% 0%, rgba(77, 255, 136, 0.09), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(37, 227, 106, 0.06), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #1c271f;
  --hover: rgba(77, 255, 136, 0.07);
  --glass: rgba(2, 9, 4, 0.82);
  --glass-heavy: rgba(2, 9, 4, 0.93);
  --input-bg: #020904;
  --input-line: #56695b;
  --input-focus: #4dff88;
  --card: #06110a;
  --card-2: #050f08;
  --elevated: #0b1b10;
  --elevated-2: #08160d;
  --hairline: #27332a;
  --hairline-strong: #3c4b40;
  --scroll: #1a582e;
  --bubble-in: #0b1b10;
  --bubble-in-fg: #d9ffe2;
  --bubble-out: #0d7a35;
  --bubble-out-fg: #ffffff;
  --selection: rgba(77, 255, 136, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #1b2920 0%, #06110a 46%, #040d07 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M5.6 3.8v3.4M5.6 10.4v2.2M5.6 15.8v4.4M12 3.8v5.4M12 12.4v2M12 17.6v2.6M18.4 3.8v2M18.4 9.2v4.4M18.4 16.8v3.4%22 stroke=%22currentColor%22 stroke-width=%221.8%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="matrix"],
html[data-theme="light"][data-season="matrix"] {
  --bg: #f2f9f3;
  --fg: #0a2212;
  --fg-dim: #384d3f;
  --muted: #435d4b;
  --tab-n: #435d4b;
  --link: #0b6f2e;
  --link-hover: #074f20;
  --accent: #0b6f2e;
  --accent-fg: #ffffff;
  --accent-soft: rgba(11, 111, 46, 0.12);
  --season-touch: #1b9a46;
  --season-touch-2: #71c991;
  --btn: #0b6f2e;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #095b26;
  --btn-sheen: #32864f;
  --season-line: linear-gradient(90deg, #0b6f2e, #1b9a46);
  --season-sky: radial-gradient(ellipse 90% 38% at 50% 0%, rgba(11, 111, 46, 0.08), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(27, 154, 70, 0.07), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #cbd4cd;
  --hover: rgba(11, 111, 46, 0.08);
  --glass: #f2f9f3;
  --glass-heavy: #f2f9f3;
  --input-bg: #ffffff;
  --input-line: #7c8b80;
  --input-focus: #0b6f2e;
  --card: #e3f1e6;
  --card-2: #e7f3e9;
  --elevated: #ffffff;
  --elevated-2: #e3f1e6;
  --hairline: #c4cec6;
  --hairline-strong: #919f95;
  --scroll: #2b824a;
  --bubble-in: #e3f1e6;
  --bubble-in-fg: #0a2212;
  --bubble-out: #0b6f2e;
  --bubble-out-fg: #ffffff;
  --selection: rgba(11, 111, 46, 0.24);
  --sponsor-gold: #8a6110;
  --status-ok: #1f7a45;
  --status-warn: #856712;
  --status-bad: #c62828;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #cddcd1 0%, #e3f1e6 46%, #eaf5ec 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="matrix"] {
    --bg: #f2f9f3;
    --fg: #0a2212;
    --fg-dim: #384d3f;
    --muted: #435d4b;
    --tab-n: #435d4b;
    --link: #0b6f2e;
    --link-hover: #074f20;
    --accent: #0b6f2e;
    --accent-fg: #ffffff;
    --accent-soft: rgba(11, 111, 46, 0.12);
    --season-touch: #1b9a46;
    --season-touch-2: #71c991;
    --btn: #0b6f2e;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #095b26;
    --btn-sheen: #32864f;
    --season-line: linear-gradient(90deg, #0b6f2e, #1b9a46);
    --season-sky: radial-gradient(ellipse 90% 38% at 50% 0%, rgba(11, 111, 46, 0.08), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(27, 154, 70, 0.07), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #cbd4cd;
    --hover: rgba(11, 111, 46, 0.08);
    --glass: #f2f9f3;
    --glass-heavy: #f2f9f3;
    --input-bg: #ffffff;
    --input-line: #7c8b80;
    --input-focus: #0b6f2e;
    --card: #e3f1e6;
    --card-2: #e7f3e9;
    --elevated: #ffffff;
    --elevated-2: #e3f1e6;
    --hairline: #c4cec6;
    --hairline-strong: #919f95;
    --scroll: #2b824a;
    --bubble-in: #e3f1e6;
    --bubble-in-fg: #0a2212;
    --bubble-out: #0b6f2e;
    --bubble-out-fg: #ffffff;
    --selection: rgba(11, 111, 46, 0.24);
    --sponsor-gold: #8a6110;
    --status-ok: #1f7a45;
    --status-warn: #856712;
    --status-bad: #c62828;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #cddcd1 0%, #e3f1e6 46%, #eaf5ec 100%);
    color-scheme: light;
  }
}
html[data-season="cultist"] {
  --bg: #0a0808;
  --fg: #efe5da;
  --fg-dim: #c1b9b0;
  --muted: #a8998d;
  --tab-n: #a8998d;
  --link: #ee6a50;
  --link-hover: #f6a594;
  --accent: #ee6a50;
  --accent-fg: #ffffff;
  --accent-soft: rgba(238, 106, 80, 0.14);
  --season-touch: #e8a24a;
  --season-touch-2: #7c1f17;
  --btn: #8c1d18;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #731814;
  --btn-sheen: #9e413d;
  --season-line: linear-gradient(90deg, #ee6a50, #e8a24a);
  --season-sky: radial-gradient(ellipse 46% 40% at 92% 16%, rgba(238, 106, 80, 0.15), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(232, 162, 74, 0.11), transparent 72%), radial-gradient(ellipse 60% 40% at 0% 0%, rgba(124, 31, 23, 0.1), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #252321;
  --hover: rgba(238, 106, 80, 0.07);
  --glass: rgba(10, 8, 8, 0.82);
  --glass-heavy: rgba(10, 8, 8, 0.93);
  --input-bg: #0a0808;
  --input-line: #68635e;
  --input-focus: #ee6a50;
  --card: #130f0e;
  --card-2: #110d0c;
  --elevated: #1c1615;
  --elevated-2: #181212;
  --hairline: #312e2c;
  --hairline-strong: #484441;
  --scroll: #53271f;
  --bubble-in: #1c1615;
  --bubble-in-fg: #efe5da;
  --bubble-out: #8c1d18;
  --bubble-out-fg: #ffffff;
  --selection: rgba(238, 106, 80, 0.32);
  --sponsor-gold: #d4a24a;
  --status-ok: #34c759;
  --status-warn: #e2b340;
  --status-bad: #ff8a80;
  --credit-text: #f0d7a0;
  --avatar-empty: linear-gradient(160deg, #292422 0%, #130f0e 46%, #0e0c0b 100%);
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M12 3.2c-3.9 1.4-6.2 4.9-6.2 9.4 0 3-.7 5.4-2 7.6h16.4c-1.3-2.2-2-4.6-2-7.6 0-4.5-2.3-8-6.2-9.4z%22 stroke=%22currentColor%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M12 8.4c-2 0-3.3 1.8-3.3 4 0 1.8.8 3.3 1.9 4.1h2.8c1.1-.8 1.9-2.3 1.9-4.1 0-2.2-1.3-4-3.3-4z%22 fill=%22currentColor%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
html.theme-light[data-season="cultist"],
html[data-theme="light"][data-season="cultist"] {
  --bg: #f6f0e7;
  --fg: #22160f;
  --fg-dim: #4c423a;
  --muted: #625447;
  --tab-n: #625447;
  --link: #982218;
  --link-hover: #701810;
  --accent: #982218;
  --accent-fg: #ffffff;
  --accent-soft: rgba(152, 34, 24, 0.12);
  --season-touch: #a8681a;
  --season-touch-2: #5a3424;
  --btn: #8c1d18;
  --btn-fg: #ffffff;
  --btn-line: transparent;
  --btn-hover: #731814;
  --btn-sheen: #9e413d;
  --season-line: linear-gradient(90deg, #982218, #a8681a);
  --season-sky: radial-gradient(ellipse 46% 40% at 92% 16%, rgba(152, 34, 24, 0.1), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(168, 104, 26, 0.12), transparent 72%), radial-gradient(ellipse 60% 40% at 0% 0%, rgba(90, 52, 36, 0.06), transparent 72%);
  --btn-hover-line: transparent;
  --btn-hover-fg: #ffffff;
  --line: #d2cbc2;
  --hover: rgba(152, 34, 24, 0.08);
  --glass: #f6f0e7;
  --glass-heavy: #f6f0e7;
  --input-bg: #fffcf7;
  --input-line: #887f77;
  --input-focus: #982218;
  --card: #ece2d3;
  --card-2: #eee6d8;
  --elevated: #fffcf7;
  --elevated-2: #ece2d3;
  --hairline: #ccc4bc;
  --hairline-strong: #9d948c;
  --scroll: #ae5148;
  --bubble-in: #ece2d3;
  --bubble-in-fg: #22160f;
  --bubble-out: #8c1d18;
  --bubble-out-fg: #ffffff;
  --selection: rgba(152, 34, 24, 0.24);
  --sponsor-gold: #865e10;
  --status-ok: #1f7442;
  --status-warn: #7e6012;
  --status-bad: #bf2727;
  --credit-text: #5c4818;
  --avatar-empty: linear-gradient(160deg, #d8cebf 0%, #ece2d3 46%, #f1e9dd 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"])[data-season="cultist"] {
    --bg: #f6f0e7;
    --fg: #22160f;
    --fg-dim: #4c423a;
    --muted: #625447;
    --tab-n: #625447;
    --link: #982218;
    --link-hover: #701810;
    --accent: #982218;
    --accent-fg: #ffffff;
    --accent-soft: rgba(152, 34, 24, 0.12);
    --season-touch: #a8681a;
    --season-touch-2: #5a3424;
    --btn: #8c1d18;
    --btn-fg: #ffffff;
    --btn-line: transparent;
    --btn-hover: #731814;
    --btn-sheen: #9e413d;
    --season-line: linear-gradient(90deg, #982218, #a8681a);
    --season-sky: radial-gradient(ellipse 46% 40% at 92% 16%, rgba(152, 34, 24, 0.1), transparent 72%), radial-gradient(ellipse 110% 30% at 50% 100%, rgba(168, 104, 26, 0.12), transparent 72%), radial-gradient(ellipse 60% 40% at 0% 0%, rgba(90, 52, 36, 0.06), transparent 72%);
    --btn-hover-line: transparent;
    --btn-hover-fg: #ffffff;
    --line: #d2cbc2;
    --hover: rgba(152, 34, 24, 0.08);
    --glass: #f6f0e7;
    --glass-heavy: #f6f0e7;
    --input-bg: #fffcf7;
    --input-line: #887f77;
    --input-focus: #982218;
    --card: #ece2d3;
    --card-2: #eee6d8;
    --elevated: #fffcf7;
    --elevated-2: #ece2d3;
    --hairline: #ccc4bc;
    --hairline-strong: #9d948c;
    --scroll: #ae5148;
    --bubble-in: #ece2d3;
    --bubble-in-fg: #22160f;
    --bubble-out: #8c1d18;
    --bubble-out-fg: #ffffff;
    --selection: rgba(152, 34, 24, 0.24);
    --sponsor-gold: #865e10;
    --status-ok: #1f7442;
    --status-warn: #7e6012;
    --status-bad: #bf2727;
    --credit-text: #5c4818;
    --avatar-empty: linear-gradient(160deg, #d8cebf 0%, #ece2d3 46%, #f1e9dd 100%);
    color-scheme: light;
  }
}
/* The color strip on each option of the Look page's theme picker:
   page, accent, and the second color, in the mode the page is in. */
.season-swatch[data-season-swatch="spring"] { --sw-1: #100d11; --sw-2: #f5a3c7; --sw-3: #93d69c; }
html.theme-light .season-swatch[data-season-swatch="spring"],
html[data-theme="light"] .season-swatch[data-season-swatch="spring"] { --sw-1: #fdf8f9; --sw-2: #a8285f; --sw-3: #3f8a4c; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="spring"] { --sw-1: #fdf8f9; --sw-2: #a8285f; --sw-3: #3f8a4c; }
}
.season-swatch[data-season-swatch="summer"] { --sw-1: #07121a; --sw-2: #5fd3e3; --sw-3: #f6c453; }
html.theme-light .season-swatch[data-season-swatch="summer"],
html[data-theme="light"] .season-swatch[data-season-swatch="summer"] { --sw-1: #fffaf1; --sw-2: #0a6878; --sw-3: #e0921a; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="summer"] { --sw-1: #fffaf1; --sw-2: #0a6878; --sw-3: #e0921a; }
}
.season-swatch[data-season-swatch="autumn"] { --sw-1: #140e0a; --sw-2: #f2a462; --sw-3: #dc5a3c; }
html.theme-light .season-swatch[data-season-swatch="autumn"],
html[data-theme="light"] .season-swatch[data-season-swatch="autumn"] { --sw-1: #fcf6ee; --sw-2: #a2441a; --sw-3: #bf4a22; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="autumn"] { --sw-1: #fcf6ee; --sw-2: #a2441a; --sw-3: #bf4a22; }
}
.season-swatch[data-season-swatch="winter"] { --sw-1: #080d16; --sw-2: #8ec8ff; --sw-3: #cfe8ff; }
html.theme-light .season-swatch[data-season-swatch="winter"],
html[data-theme="light"] .season-swatch[data-season-swatch="winter"] { --sw-1: #f5f8fc; --sw-2: #1d5ca6; --sw-3: #5f9fd8; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="winter"] { --sw-1: #f5f8fc; --sw-2: #1d5ca6; --sw-3: #5f9fd8; }
}
.season-swatch[data-season-swatch="christmas"] { --sw-1: #06110c; --sw-2: #ff8d8d; --sw-3: #e8c35e; }
html.theme-light .season-swatch[data-season-swatch="christmas"],
html[data-theme="light"] .season-swatch[data-season-swatch="christmas"] { --sw-1: #fbf8f1; --sw-2: #a3192e; --sw-3: #1f6b3f; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="christmas"] { --sw-1: #fbf8f1; --sw-2: #a3192e; --sw-3: #1f6b3f; }
}
.season-swatch[data-season-swatch="halloween"] { --sw-1: #0e0a14; --sw-2: #ff9f45; --sw-3: #a77bf0; }
html.theme-light .season-swatch[data-season-swatch="halloween"],
html[data-theme="light"] .season-swatch[data-season-swatch="halloween"] { --sw-1: #fbf6f0; --sw-2: #a54700; --sw-3: #6b3fa0; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="halloween"] { --sw-1: #fbf6f0; --sw-2: #a54700; --sw-3: #6b3fa0; }
}
.season-swatch[data-season-swatch="matrix"] { --sw-1: #020904; --sw-2: #4dff88; --sw-3: #25e36a; }
html.theme-light .season-swatch[data-season-swatch="matrix"],
html[data-theme="light"] .season-swatch[data-season-swatch="matrix"] { --sw-1: #f2f9f3; --sw-2: #0b6f2e; --sw-3: #1b9a46; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="matrix"] { --sw-1: #f2f9f3; --sw-2: #0b6f2e; --sw-3: #1b9a46; }
}
.season-swatch[data-season-swatch="cultist"] { --sw-1: #0a0808; --sw-2: #ee6a50; --sw-3: #e8a24a; }
html.theme-light .season-swatch[data-season-swatch="cultist"],
html[data-theme="light"] .season-swatch[data-season-swatch="cultist"] { --sw-1: #f6f0e7; --sw-2: #982218; --sw-3: #a8681a; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="cultist"] { --sw-1: #f6f0e7; --sw-2: #982218; --sw-3: #a8681a; }
}
/* Seasonal themes: the pickers, the Auto table and the quiet seasonal touches
   (b2 #58, #60, #61). Palettes live in seasons.css. Every touch keys off a
   named season, so Default looks exactly as before. */

/* ---- Picker: footer segmented control and the Look page grid ---- */
.season-switch {
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.season-switch::-webkit-scrollbar {
  display: none;
}

.season-opt {
  appearance: none;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.season-opt .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (hover: hover) and (pointer: fine) {
  .season-opt:hover {
    color: var(--fg);
  }
}

.season-opt.is-on {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  color: var(--accent, var(--fg));
}

.season-opt:focus-visible {
  outline: 2px solid var(--accent, var(--fg));
  outline-offset: 1px;
}

html.theme-light .season-switch {
  border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

html.theme-light .season-opt.is-on {
  background: var(--elevated, #fff);
  box-shadow: none;
}

/* Look page: a calm grid of named swatches, the looks, then the seasons
   under their heading. */
.look-season {
  margin: 4px 0 0;
}

.look-k {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  font-weight: 600;
}

/* The footer's two lines: each its own segmented control, sized to its
   options. */
.foot-looks-pop .season-switch {
  width: max-content;
}

.season-switch.is-full {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.season-switch.is-full .season-opt {
  flex-direction: column;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 84px;
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
}

.season-switch.is-full .season-opt .icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .season-switch.is-full .season-opt:hover {
    border-color: var(--hairline-strong);
  }
}

.season-switch.is-full .season-opt.is-on {
  border-color: var(--accent, var(--fg));
  box-shadow: inset 0 0 0 1px var(--accent, var(--fg));
  background: var(--card);
}

.season-switch.is-full .season-opt.is-on .icon {
  color: var(--accent, var(--fg));
}

.season-name {
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: center;
}

/* A strip of the option's colors (scripts/seasons.py writes them per
   season); Default shows the classic look. */
.season-swatch {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--hairline);
}
.season-swatch i {
  flex: 1;
}
.season-swatch i:nth-child(1) { background: var(--sw-1); }
.season-swatch i:nth-child(2) { background: var(--sw-2); }
.season-swatch i:nth-child(3) { background: var(--sw-3); }
.season-swatch[data-season-swatch="default"] { --sw-1: #000; --sw-2: #16181c; --sw-3: #1d9bf0; }
html.theme-light .season-swatch[data-season-swatch="default"],
html[data-theme="light"] .season-swatch[data-season-swatch="default"] { --sw-1: #fff; --sw-2: #ebebf0; --sw-3: #0a5ebd; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .season-swatch[data-season-swatch="default"] { --sw-1: #fff; --sw-2: #ebebf0; --sw-3: #0a5ebd; }
}

/* Each option's own tint, so the grid previews the seasons. Light pages
   take the deeper tint, which keeps the icons at 3:1 or better. */
[data-season-opt="spring"],
[data-season-tint="spring"] { --tint: #4fae78; --tint-light: #2f7d50; }
[data-season-opt="summer"],
[data-season-tint="summer"] { --tint: #2aa7bd; --tint-light: #13788a; }
[data-season-opt="autumn"],
[data-season-tint="autumn"] { --tint: #d0763a; --tint-light: #b0561d; }
[data-season-opt="winter"],
[data-season-tint="winter"] { --tint: #5d9ee6; --tint-light: #2f6db5; }
[data-season-opt="christmas"],
[data-season-tint="christmas"] { --tint: #d0434f; --tint-light: #b3273a; }
[data-season-opt="halloween"],
[data-season-tint="halloween"] { --tint: #e07a1f; --tint-light: #b65a0b; }
.season-switch.is-full [data-season-opt] .icon,
[data-season-tint] { color: var(--tint); }
html.theme-light .season-switch.is-full [data-season-opt] .icon,
html.theme-light [data-season-tint] { color: var(--tint-light); }

html.theme-light .season-switch.is-full {
  border: 0;
  background: none;
}

html.theme-light .season-switch.is-full .season-opt.is-on {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--accent, var(--fg));
}

@media (max-width: 560px) {
  .season-switch.is-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- The Auto table ---- */
.season-auto {
  margin: 20px 0 0;
}

.season-auto-head {
  margin: 0 0 8px;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 600;
}

.season-table {
  width: 100%;
  margin: 0 0 10px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.season-table th,
.season-table td {
  padding: 10px 14px;
  text-align: start;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}

.season-table thead th {
  border-top: 0;
  background: var(--card);
  color: var(--muted);
  font-size: var(--text-13);
  font-weight: 500;
}

.season-table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.season-table tbody th > span {
  vertical-align: middle;
}

.season-table td {
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.season-row-icon {
  display: inline-flex;
  margin-inline-end: 8px;
}

.season-row-icon .icon {
  width: 19px;
  height: 19px;
}

.season-now {
  display: none;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-fg);
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
}

/* Default's --btn is black on black; give the badge the plain chip look. */
html:not([data-season]) .season-now,
html[data-season=""] .season-now {
  background: var(--fg);
  color: var(--bg);
}

.season-row.is-now > * {
  background: var(--accent-soft, var(--hover));
}

.season-row.is-now .season-now {
  display: inline-block;
}

@media (max-width: 480px) {
  .season-table th,
  .season-table td {
    padding: 9px 10px;
  }
  .season-table tbody th {
    white-space: normal;
  }
}

/* ---- Seasonal touches ---- */

/* A hairline ribbon of the season's two colors along the top edge. It is
   the page's own ::after: body::before is the phone's top bar, and taking
   it shrank that bar to this ribbon. */
html[data-season]:not([data-season=""])::after {
  content: "";
  position: fixed;
  inset: env(safe-area-inset-top, 0px) 0 auto;
  height: 2px;
  z-index: var(--z-tip);
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, var(--season-touch) 38%, var(--season-touch-2) 50%, var(--season-touch) 62%, var(--accent) 82%, transparent 100%);
  opacity: 0.85;
}

/* A page with no top bar (sign-in and the other guest pages) on a phone
   with a status bar: iOS 26 lays its scroll-edge blur over the strip just
   under the status bar, and the wire of lights and the bulbs' upper halves
   that hang from this ribbon were lost in it (founder, 2026-12-02: "on ios
   top the christmas theme bulbs still trimmed in half"). The ribbon, and
   the lights and the frost that hang from it (ui/fx.rs measures it), sit
   12px lower there; with no status bar the extra is nothing. */
html:has(> body.auth)[data-season]:not([data-season=""])::after {
  top: calc(env(safe-area-inset-top, 0px) + min(env(safe-area-inset-top, 0px), 12px));
}

/* Christmas: the ribbon is a candy stripe of its three colors. */
html[data-season="christmas"]::after {
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--season-touch) 18px 36px, var(--season-touch-2) 36px 54px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

/* The phone's top bar ends in the season's colors instead of a plain line. */
html[data-season]:not([data-season=""]) #ox-nav-line {
  background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--season-touch) 55%, var(--line)) 30%, color-mix(in srgb, var(--accent) 55%, var(--line)) 70%, var(--line) 100%);
}

/* Every "nothing here yet": the tray takes the season's second color and
   the dashed edge a trace of it. */
html[data-season]:not([data-season=""]) .timeline-empty {
  border-color: color-mix(in srgb, var(--season-touch) 30%, var(--hairline));
}

html[data-season]:not([data-season=""]) .timeline-empty::before {
  background: var(--season-touch);
  opacity: 0.8;
}

/* The menu's Post button, and the composer's Post and Reply as the same
   (founder, 2026-11-27: with a theme on, the two Post buttons did not
   match), are the season's filled button. */
html[data-season]:not([data-season=""]) :is(.rail-post, .compose-submit) {
  /* The fill is the color, the sheen a layer over it. */
  background-color: var(--btn);
  background-image: linear-gradient(135deg, var(--btn-sheen), var(--btn) 62%);
  border-color: var(--btn);
  color: var(--btn-fg);
}

@media (hover: hover) and (pointer: fine) {
  html[data-season]:not([data-season=""]) :is(.rail-post, .compose-submit:not(:disabled)):hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    color: var(--btn-hover-fg);
  }
}

/* The send button of a conversation is the own bubble's color. */
html[data-season]:not([data-season=""]) .msg-send.is-ready {
  background-color: var(--bubble-out);
  background-image: linear-gradient(135deg, var(--btn-sheen), var(--bubble-out) 62%);
  color: var(--bubble-out-fg);
}

@media (hover: hover) and (pointer: fine) {
  html[data-season]:not([data-season=""]) .msg-send:hover {
    background: var(--bubble-out);
  }
}

/* The season's sky behind the page (scripts/seasons.py writes it for each
   season and mode): it shows beside the columns, under the scene, and as a
   trace through the dark columns' glass. */
html[data-season]:not([data-season=""]) body {
  background: var(--season-sky), var(--bg);
  background-attachment: fixed;
}

/* A glow of the accent at the top of the main column; it scrolls away
   with the top of the page. Not on a phone: there the stage is clear and
   each block of the page is filled (base.css), and a glow on the first
   block showed as a tinted box behind a card's corners (the status
   page, 2026-11-13). */
html[data-season]:not([data-season=""]) .stage {
  background-image: radial-gradient(ellipse 120% 240px at 50% 0, color-mix(in srgb, var(--accent) 8%, transparent), transparent 100%);
  background-repeat: no-repeat;
}

/* Messages: the conversation's head and its field are filled with the page
   color, and the stage between them let the sky through its glass, so
   the three did not match (founder, 2026-11-13). The stage is the page
   color there, with no glow. */
html[data-season]:not([data-season=""]) .stage:has(.messages) {
  background-color: var(--bg);
  background-image: none;
}

html[data-season]:not([data-season=""]) .msg-thread-head {
  background: var(--bg);
}

/* The picked tab's underline runs from the accent to the season's second
   color. */
html[data-season]:not([data-season=""]) .profile-tab.is-on::after,
html[data-season]:not([data-season=""]) .engage-tab.is-on::after {
  background: var(--season-line);
}

/* The home-screen app paints the status strip plain --bg; a wash under the
   top bar beside it reads as a cut bar. */
html.ios-pwa[data-season]:not([data-season=""]) body {
  background: var(--bg);
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  html[data-season]:not([data-season=""]) body {
    background: var(--bg);
  }
}

/* Accent where the eye lands: the current menu item, tabs, focus, selection. */
html[data-season]:not([data-season=""]) .nav-link.is-active {
  background-color: var(--accent-soft);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--bg) 55%, transparent));
}

html[data-season]:not([data-season=""]) .nav-link.is-active .icon {
  color: var(--accent);
}

html[data-season]:not([data-season=""]) .profile-tab.is-on span,
html[data-season]:not([data-season=""]) .profile-tab.is-on .profile-tab-label {
  box-shadow: none;
}

html[data-season]:not([data-season=""]) .profile-tab.is-on .profile-tab-n,
html[data-season]:not([data-season=""]) .profile-tab.is-on .profile-tab-label span {
  box-shadow: none;
}

html[data-season]:not([data-season=""]) ::selection {
  background: var(--selection);
}

html[data-season]:not([data-season=""]) :focus-visible {
  outline-color: var(--accent);
}

html[data-season]:not([data-season=""]) {
  accent-color: var(--accent);
  caret-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .season-opt {
    transition: none;
  }
  /* The sign-in fog drifts; hold it still (every theme, Default included). */
  body.auth.has-wash::before,
  body.auth.has-wash::after {
    animation: none;
  }
}

/* The sign-in page at / and the other gate pages: the fog wash takes the
   season's colors, and filled buttons follow the palette in light mode too. */
html[data-season]:not([data-season=""]) body.auth.has-wash,
html.theme-light[data-season]:not([data-season=""]) body.auth,
html.theme-light[data-season]:not([data-season=""]) body.auth.has-wash {
  background: var(--bg);
}

html[data-season]:not([data-season=""]) body.auth.has-wash::before,
html.theme-light[data-season]:not([data-season=""]) body.auth.has-wash::before {
  background:
    radial-gradient(ellipse 78% 64% at 36% 32%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 74%),
    radial-gradient(ellipse 70% 58% at 76% 64%, color-mix(in srgb, var(--season-touch) 9%, transparent) 0%, transparent 76%),
    radial-gradient(ellipse 64% 54% at 16% 78%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 74%),
    var(--bg);
}

html[data-season]:not([data-season=""]) body.auth.has-wash::after,
html.theme-light[data-season]:not([data-season=""]) body.auth.has-wash::after {
  background:
    radial-gradient(ellipse 68% 56% at 64% 36%, color-mix(in srgb, var(--season-touch) 8%, transparent) 0%, transparent 76%),
    radial-gradient(ellipse 58% 50% at 24% 58%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 76%);
  mix-blend-mode: normal;
  opacity: 0.8;
}

html.theme-light[data-season]:not([data-season=""]) .gate .btn,
html.theme-light[data-season]:not([data-season=""]) .fail-card .btn {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-fg);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light[data-season]:not([data-season=""]) .gate .btn:hover,
  html.theme-light[data-season]:not([data-season=""]) .fail-card .btn:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    color: var(--btn-fg);
  }
}

html.theme-light[data-season]:not([data-season=""]) .pace-fact {
  background: var(--elevated);
}

html.theme-light[data-season]:not([data-season=""]) body.auth.is-pace:not(.has-wash) {
  background:
    radial-gradient(ellipse 58% 46% at 50% 18%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 64%),
    var(--bg);
}

/* ---- Components that hard-code the default blue or grays (b2 #58) ---- */
html[data-season]:not([data-season=""]) {
  accent-color: var(--accent);
}

html[data-season]:not([data-season=""]) .post-copy.is-on,
html[data-season]:not([data-season=""]) .notice-kind.is-quote,
html[data-season]:not([data-season=""]) .notice-kind.is-follow,
html[data-season]:not([data-season=""]) .notice-kind.is-mention,
html[data-season]:not([data-season=""]) .notice-kind.is-staff {
  color: var(--link);
}

html[data-season]:not([data-season=""]) .profile-edit-hero input[type="range"] {
  accent-color: var(--accent);
}

html[data-season]:not([data-season=""]) .report-tag.is-open {
  color: var(--link);
  background: var(--accent-soft);
}

html[data-season]:not([data-season=""]) .report-card.is-open {
  box-shadow: none;
}

/* Status charts: the grid and the empty slots follow the palette. */
html[data-season]:not([data-season=""]) .status-chart-grid {
  stroke: var(--hairline);
}

html[data-season]:not([data-season=""]) .status-ribbon.is-void {
  fill: var(--card-2);
}

/* An empty profile header gets the season's colors and a faint mark in the
   corner instead of a flat gray block. */
html[data-season]:not([data-season=""]) div.profile-banner,
html[data-season]:not([data-season=""]) .profile-banner-img.is-empty {
  position: relative;
  background:
    radial-gradient(120% 160% at 88% -20%, color-mix(in srgb, var(--season-touch) 26%, transparent), transparent 62%),
    radial-gradient(90% 140% at 0% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 64%),
    linear-gradient(135deg, var(--card), var(--elevated-2));
}

html[data-season]:not([data-season=""]) div.profile-banner::after,
html[data-season]:not([data-season=""]) .profile-banner-img.is-empty::after {
  content: "";
  position: absolute;
  inset-inline-end: 7%;
  bottom: 18%;
  width: 15%;
  aspect-ratio: 1;
  max-width: 84px;
  background: var(--season-touch);
  opacity: 0.18;
  -webkit-mask: var(--season-mark) center / contain no-repeat;
  mask: var(--season-mark) center / contain no-repeat;
  pointer-events: none;
}

/* Behind every column, above the page background. The body is its own
   layer so a negative z-index stays above that background. The canvas also
   keeps a layer of its own: after a soft visit, scrolling to a chapter was
   dropping it until a full reload. */
body:has(> .theme-fx) {
  isolation: isolate;
}

/* It starts below a phone's status strip: the strip is a solid fill over
   anything under it, and the wire of lights along the top edge was cut in
   half there. */
.theme-fx {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  inset-inline-start: 0;
  width: 100vw;
  height: calc(100vh - env(safe-area-inset-top, 0px));
  pointer-events: none;
  z-index: -1;
  transform: translateZ(0);
}

/* On a phone the scene ends at the tab bar's top edge: its ground (the
   drift, the grass, the leaves, the tree) lay under the bar and never
   showed. */
@media (max-width: 800px) {
  /* A canvas does not stretch between top and bottom: its height is set. */
  body.has-tabbar > .theme-fx {
    height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--tabbar-pad));
  }
}

/* The front layer: a few soft flakes and petals beside the columns, and the
   Christmas lights and the winter frost along the top edge. Above the rail
   (40), below bars, menus, sheets, the conversation dock and dialogs. What
   moves on either layer is drawn only beside the columns, never over them
   (ui/fx/scene.rs), so it never covers text. Under reduced motion the
   scene is drawn once and holds still. */
.theme-fx-front {
  z-index: 45;
}

/* A menu open in the main column lifts that column over everything beside
   it (base.css, 160), and with it over this layer: the lights and the
   frost along the top went out above the column while the menu was open
   (founder, 2026-11-13). The layer goes one above it for that long; it
   takes no click, and draws along the top edge and beside the columns
   only. */
body:has(> .stage .post-menu:not([hidden])) > .theme-fx-front,
body:has(> .stage .admin-menu:not([hidden])) > .theme-fx-front,
body:has(> .stage .admin-pass:not([hidden])) > .theme-fx-front,
body:has(> .stage .admin-reset-copy:not([hidden])) > .theme-fx-front,
body:has(> .stage .search-panel:not([hidden])) > .theme-fx-front {
  z-index: 161;
}

/* b6 #1: the footer switches were see-through tints, so falling snow and
   leaves showed through them while the opaque status chip hid it. Every
   footer control now sits on a solid fill mixed from the page color. */
html:not(.theme-light) .site-foot :is(.theme-switch, .lang-switch, .season-switch) {
  background-color: color-mix(in srgb, var(--fg) 5%, var(--bg));
}

html:not(.theme-light) .site-foot :is(.theme-opt, .season-opt).is-on {
  background-color: color-mix(in srgb, var(--fg) 14%, var(--bg));
}

html.theme-light .site-foot :is(.theme-switch, .lang-switch, .season-switch) {
  background-color: color-mix(in srgb, var(--fg) 7%, var(--bg));
}

/* Guest pages (sign-in, register, reset, verify): the page behind the
   form, the gap around it, and the footer used a fixed black or white
   wash, so they did not follow the theme. The page is the theme
   background and the form is the theme card. */
body.auth,
body.auth.has-wash,
html.theme-light body.auth,
html.theme-light body.auth.has-wash,
html.theme-dark body.auth.has-wash,
html[data-theme="light"] body.auth.has-wash,
html[data-theme="dark"] body.auth.has-wash,
html[data-season] body.auth.has-wash {
  background: var(--bg);
}

body.auth.has-wash::before,
html.theme-light body.auth.has-wash::before,
html.theme-dark body.auth.has-wash::before,
html[data-theme="light"] body.auth.has-wash::before,
html[data-theme="dark"] body.auth.has-wash::before,
html[data-season] body.auth.has-wash::before {
  background: var(--bg);
  filter: none;
  animation: none;
}

body.auth.has-wash::after,
html.theme-light body.auth.has-wash::after,
html.theme-dark body.auth.has-wash::after,
html[data-season] body.auth.has-wash::after {
  display: none;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) body.auth,
  html:not([data-theme="dark"]) body.auth.has-wash {
    background: var(--bg);
  }

  html:not([data-theme="dark"]) body.auth.has-wash::before {
    background: var(--bg);
    filter: none;
    animation: none;
  }

  html:not([data-theme="dark"]) body.auth.has-wash::after {
    display: none;
  }

  html:not([data-theme="dark"]) .guest-gate .admin-sheet,
  html:not([data-theme="dark"]) .guest-gate .rate-sheet {
    background: var(--card);
    color: var(--fg);
  }
}

.guest-gate .admin-sheet,
.guest-gate .rate-sheet,
html.theme-light .guest-gate .admin-sheet,
html.theme-light .guest-gate .rate-sheet,
html[data-theme="light"] .guest-gate .admin-sheet,
html[data-theme="light"] .guest-gate .rate-sheet {
  background: var(--card);
  color: var(--fg);
}

.guest-gate .site-foot,
.guest-gate .gate-brand,
.guest-gate .gate-card,
.guest-gate form {
  background: transparent;
}

/* The scene canvas is the guest background. The wash is an opaque fill at
   the same depth, so with a scene it covers every pixel the canvas used to
   leave clear: the middle of the page and the footer. */
html[data-season]:not([data-season=""]) body.auth:has(> .theme-fx).has-wash::before,
html[data-season]:not([data-season=""]) body.auth:has(> .theme-fx).has-wash::after,
html.theme-light[data-season]:not([data-season=""]) body.auth:has(> .theme-fx).has-wash::before,
html.theme-light[data-season]:not([data-season=""]) body.auth:has(> .theme-fx).has-wash::after,
html.theme-light body.auth:has(> .theme-fx).has-wash::before,
html.theme-light body.auth:has(> .theme-fx).has-wash::after,
html:not([data-theme="dark"]) body.auth:has(> .theme-fx).has-wash::before,
html:not([data-theme="dark"]) body.auth:has(> .theme-fx).has-wash::after,
body.auth:has(> .theme-fx).has-wash::before,
body.auth:has(> .theme-fx).has-wash::after {
  content: none;
  display: none;
  background: none;
  animation: none;
}

.guest-gate :is(.theme-opt, .season-opt).is-on,
html.theme-light .guest-gate :is(.theme-opt, .season-opt).is-on {
  background: color-mix(in srgb, var(--fg) 14%, var(--bg));
  color: var(--fg);
  box-shadow: none;
}

.guest-gate .site-foot :is(.theme-switch, .lang-switch, .season-switch),
html.theme-light .guest-gate .site-foot :is(.theme-switch, .lang-switch, .season-switch) {
  background-color: color-mix(in srgb, var(--fg) 7%, var(--bg));
}
