/* Creator OS web app: the early access design canvas, carried to the web.
   Tokens and components below the faces are docs/design/early-access-reference/cos.css with two
   changes: the phone frame's fixed width is gone, and light mode follows the system setting (see
   "light mode, from the system" at the end). Web-only additions come after "web app". Change a
   token or a component in the canvas first, then here, so iOS and web stay in step.
   Design system v2 (Seth, 2026-11-30 and 2026-12-01; the Sennet Core design system) wins over the
   canvas where they differ: light peach and mint are a step darker, the display face is Bricolage
   600 for every display role, status pills use the reading face with a leading shape, and there is
   one view switcher, one filter chip and two section header levels. */

/* ---------- faces, self-hosted (fonts/README.md) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

/* ---------- tokens: dark (default) ---------- */
.cos {
  --bg: #0a0a11;
  --surface: #14141e;
  --surface-2: #1b1b28;
  --line: rgba(255, 255, 255, 0.07);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-2: rgba(255, 255, 255, 0.13);
  --ink: #f3f1f8;
  --ink-2: #b9b6c8;
  --ink-3: #8e8aa3;
  --violet: #7b61ff;
  --violet-2: #6247f2;
  --violet-ink: #b3a3ff;
  --cobalt: #4f8bff;
  --peach: #ff9f7f;
  --mint: #7fd8a6;
  --amber: #f2c46d;
  --rose: #ff8494;
  --aurora-a: rgba(255, 159, 127, 0.3);
  --aurora-b: rgba(123, 97, 255, 0.38);
  --aurora-c: rgba(79, 139, 255, 0.14);
  --glass: rgba(28, 28, 40, 0.62);
  --glass-line: rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow: none;
  --logo-bg: #232336;
  --knob: #fff;
  /* Text on a peach badge or count (an unread pip, the Queue count): the one "something is new for
     you" signal, so it shares the your-move colour (design system v2, decision 7). */
  --on-peach: #0a0a11;
  /* A highlighted card edge: violet on dark grounds, violet ink on light ones, never lilac. */
  --accent-edge: var(--violet);
  /* Sennet Cue v1 (docs/design/brand/README.md): the primary action is lilac with charcoal text in
     dark mode and deeper violet with ivory text in light mode. */
  --action: #b3a3ff;
  --action-ink: #0a0a11;
  /* The lit tab in the phone's glass tab bar (canvas `.tab.on`). */
  --tab-on-ink: #fff;
  --tab-on-bg: linear-gradient(180deg, rgba(142, 120, 255, 0.42), rgba(98, 71, 242, 0.24));
  --tab-on-edge: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  /* Motion: one curve that settles without a bounce, and the length of a hover or press. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.14s;
  --display: "Bricolage Grotesque", "SF Pro Display", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --r-card: 26px;
  --r-row: 22px;
  --r-tile: 20px;
  --r-field: 16px;
  --gutter: 20px;
  --sec: 36px;
  --gap: 10px;
}
/* ---------- tokens: light ---------- */
.cos[data-mode="light"] {
  --bg: #f7f4fa;
  --surface: #ffffff;
  --surface-2: #f1edf8;
  --line: rgba(30, 20, 60, 0.09);
  --fill: rgba(30, 20, 60, 0.06);
  --fill-2: rgba(30, 20, 60, 0.14);
  --ink: #16131f;
  --ink-2: #4b475e;
  --ink-3: #6c6880;
  --violet-ink: #4b32d9;
  --cobalt: #2458d6;
  /* A step darker than the canvas (#b8431c, #14784a) so a 12px status pill passes 4.5:1 on the
     page and on a card (Seth, 2026-12-01; Sennet Core wins over cos.css here). */
  --peach: #a03915;
  --mint: #0f6640;
  --amber: #855600;
  --rose: #b4233a;
  --aurora-a: rgba(255, 186, 160, 0.75);
  --aurora-b: rgba(184, 168, 255, 0.8);
  --aurora-c: rgba(170, 200, 255, 0.35);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 12px 30px rgba(60, 40, 140, 0.14);
  --shadow: 0 1px 2px rgba(30, 20, 60, 0.04), 0 10px 30px rgba(60, 40, 140, 0.06);
  --logo-bg: #eeeaf8;
  --on-peach: #ffffff;
  --accent-edge: var(--violet-ink);
  --action: #6247f2;
  --action-ink: #f3f1f8;
  --tab-on-ink: #4b32d9;
  --tab-on-bg: linear-gradient(180deg, rgba(142, 120, 255, 0.28), rgba(142, 120, 255, 0.14));
  --tab-on-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* ---------- tokens: operator app (cooler aurora so the two apps are never confused) ---------- */
.cos[data-app="op"] {
  --aurora-a: rgba(79, 139, 255, 0.34);
  --aurora-b: rgba(88, 200, 170, 0.24);
  --aurora-c: rgba(123, 97, 255, 0.16);
}
.cos[data-app="op"][data-mode="light"] {
  --aurora-a: rgba(160, 196, 255, 0.8);
  --aurora-b: rgba(160, 232, 208, 0.7);
  --aurora-c: rgba(196, 184, 255, 0.35);
}

/* ---------- base ---------- */
.cos {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.cos * {
  box-sizing: border-box;
}
.cos a {
  color: inherit;
  text-decoration: none;
}
.cos button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}
.cos h1,
.cos h2,
.cos h3,
.cos p,
.cos figure {
  margin: 0;
}
.cos svg {
  display: block;
}
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ic.sm {
  width: 16px;
  height: 16px;
}
.aurora {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 0%, var(--aurora-a), transparent 70%),
    radial-gradient(55% 60% at 88% 4%, var(--aurora-b), transparent 72%),
    radial-gradient(70% 50% at 50% 30%, var(--aurora-c), transparent 75%);
}
.aurora.soft {
  opacity: 0.55;
}
.pad {
  position: relative;
  flex: 1 0 auto;
  padding: 64px var(--gutter) 12px;
}
.pad.center {
  text-align: center;
}

/* ---------- type ---------- */
.lede {
  font: 600 30px/1.12 var(--display);
  letter-spacing: -0.02em;
  margin-top: 28px;
  text-wrap: balance;
}
.lede em {
  font-style: normal;
  color: var(--peach);
}
.ptitle {
  font: 600 30px/1.1 var(--display);
  letter-spacing: -0.02em;
}
.h2 {
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.sub {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 10px;
}
.muted {
  color: var(--ink-3);
  font-size: 13px;
}
.label {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- headers ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: block;
  background: radial-gradient(circle at 35% 30%, #5d6bff, #1b1d3a 70%);
  box-shadow: 0 0 0 2px var(--fill-2);
}
.avatar.sm {
  width: 36px;
  height: 36px;
}
.avatar.xl {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}
.avatar.op {
  background: radial-gradient(circle at 35% 30%, #ffb79c, #6a3a2a 75%);
}
.avatar.c2 {
  background: radial-gradient(circle at 35% 30%, #7fd8a6, #16412c 75%);
}
.avatar.c3 {
  background: radial-gradient(circle at 35% 30%, #f2c46d, #5a3b0c 75%);
}
.avatar.c4 {
  background: radial-gradient(circle at 35% 30%, #ff8494, #5a1626 75%);
}
.hello {
  flex: 1;
  min-width: 0;
}
.hello small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.hello b {
  font: 600 18px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.ibtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  color: var(--ink);
  border: 1px solid var(--glass-line);
  background: var(--fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cos[data-mode="light"] .ibtn {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(60, 40, 140, 0.1);
}
.ibtn .badge {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 2px var(--bg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 44px;
}
.nav .t {
  flex: 1;
  min-width: 0;
  font: 600 17px/1.2 var(--display);
}
.nav .t small {
  display: block;
  font: 400 12px/1.3 var(--ui);
  color: var(--ink-3);
}

/* ---------- sections, gems ---------- */
.sec {
  margin-top: var(--sec);
  position: relative;
}
.sec.tight {
  margin-top: 20px;
}
.sec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sec-h :is(h2, h3) {
  font: 600 17px/1 var(--display);
  letter-spacing: -0.01em;
}
/* Level 2 (decision 3): a settings or reference group, headed by the mono label. */
.sec-h.l2 {
  margin-bottom: 10px;
}
.sec-h :is(h2, h3).label {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.08em;
}
/* An illustrated icon (decision 8): the iOS artwork at the gem's size, decorative. */
.art {
  width: 26px;
  height: 26px;
  flex: none;
}
.art.lg {
  width: 40px;
  height: 40px;
}
.sec-h .count {
  margin-left: auto;
  font: 500 12px/1 var(--mono);
  color: var(--ink-3);
}
.gem {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}
.gem svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gem.lg {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.gem.lg svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.gem.peach {
  background: linear-gradient(150deg, #ffc2a8, #ff7d5c);
}
.gem.violet {
  background: linear-gradient(150deg, #b3a3ff, #6a4df5);
}
.gem.cobalt {
  background: linear-gradient(150deg, #9cc0ff, #3d72f0);
}
.gem.mint {
  background: linear-gradient(150deg, #b6f5cf, #34b874);
}
.gem.amber {
  background: linear-gradient(150deg, #ffe0a3, #e8a23a);
}
.gem.rose {
  background: linear-gradient(150deg, #ffb3bd, #e8475e);
}
.gem.ink {
  background: linear-gradient(150deg, #5a5870, #2a2838);
}

/* ---------- surfaces ---------- */
.card {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.card.flush {
  padding: 4px 18px;
}
.list {
  display: grid;
  gap: var(--gap);
}
.drow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-row);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.g {
  flex: 1;
  min-width: 0;
}
.drow b,
.r b {
  display: block;
  font: 600 15px/1.25 var(--ui);
}
.drow p,
.r p,
.r .sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 3px;
}
.r .sub {
  display: block;
}
.drow.dim {
  background: transparent;
  box-shadow: none;
}
.drow.dim b {
  color: var(--ink-2);
}
.r {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.r:first-child {
  border-top: 0;
}
.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.kv:first-child {
  border-top: 0;
}
.kv span {
  color: var(--ink-3);
}
.kv b {
  font-weight: 600;
  text-align: right;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--logo-bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 600 14px/1 var(--display);
  flex: none;
}
/* A connected platform (decision 6): its line glyph on a round neutral tile, never the square
   brand tile, so it cannot read as a brand's logo. */
.platform {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.logo.lg {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 19px;
}
.logo.white {
  background: #f3f1f8;
  color: #0a0a11;
}
.amt {
  font: 600 16px/1 var(--display);
  flex: none;
}
.chev {
  color: var(--ink-3);
  flex: none;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
/* On the creator's Home and Finance, an odd tile out takes the whole row instead of leaving a hole
   beside it. */
.home .tiles > :last-child:nth-child(odd),
.money .tiles > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.tile {
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.tile .v {
  font: 600 22px/1 var(--display);
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.tile .v .c,
.big .c,
.amount .c {
  color: var(--ink-3);
  font-size: 0.55em;
}
.tile small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 6px;
}

/* ---------- status ---------- */
/* The one status pill (design system v2, decision 4): the reading face, a 13% tint and a leading
   shape per tone, so status is shape plus text. The shape is a same-origin SVG mask filled with the
   pill's colour (CSP allows img-src 'self' only). Neutral (no tone, for Soon and Later) has no
   shape. A due date is a pill with the clock, toned by how close it is. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 12px/1 var(--ui);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
  color: var(--c, var(--ink-2));
  background: color-mix(in srgb, var(--c, var(--ink-2)) 13%, transparent);
}
.pill:is(.you, .ok, .wait, .risk, .prog, .info, .due)::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: -2px;
  background: currentColor;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.pill.you {
  --c: var(--peach);
  --shape: url("/icons/pill-you.svg");
}
.pill.ok {
  --c: var(--mint);
  --shape: url("/icons/pill-ok.svg");
}
.pill.wait {
  --c: var(--amber);
  --shape: url("/icons/pill-clock.svg");
}
.pill.risk {
  --c: var(--rose);
  --shape: url("/icons/pill-risk.svg");
}
.pill.prog {
  --c: var(--cobalt);
  --shape: url("/icons/pill-progress.svg");
}
.pill.info {
  --c: var(--violet-ink);
  --shape: url("/icons/pill-info.svg");
}
.pill.due {
  --shape: url("/icons/pill-clock.svg");
}
/* Late keeps the risk shape, as iOS DueTag does: the clock says "due", the mark says "past it". */
.pill.due.risk {
  --shape: url("/icons/pill-risk.svg");
}
/* A pill inside a mono eyebrow keeps the reading face's case and spacing. */
.label .pill {
  text-transform: none;
  letter-spacing: 0;
}
.pip {
  font: 500 11px/1 var(--mono);
  color: var(--on-peach);
  background: var(--peach);
  border-radius: 999px;
  padding: 4px 7px;
  flex: none;
}
.who {
  font: 600 12px/1 var(--ui);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--ink-3));
  flex: none;
}
.dot.v {
  --c: var(--violet);
}
.dot.a {
  --c: var(--amber);
}
.dot.m {
  --c: var(--mint);
}
.dot.p {
  --c: var(--peach);
}
.dot.r {
  --c: var(--rose);
}
.track {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.track i {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--fill);
}
.track i.on {
  background: var(--violet);
}
.track i.now {
  background: linear-gradient(
    90deg,
    var(--violet),
    color-mix(in srgb, var(--violet) 30%, transparent)
  );
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--c, var(--violet));
}
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-tile);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--c, var(--violet-ink)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--violet-ink)) 24%, transparent);
}
.note b {
  color: var(--ink);
  font-weight: 600;
}
.note .ic {
  color: var(--c, var(--violet-ink));
  margin-top: 1px;
}
.note.warn {
  --c: var(--amber);
}
.note.risk {
  --c: var(--rose);
}
.note.ok {
  --c: var(--mint);
}

/* ---------- controls ---------- */
.btn {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 15px/1 var(--ui);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.cos .btn.primary {
  background: var(--action);
  color: var(--action-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px color-mix(in srgb, var(--action) 35%, transparent);
}
.cos .btn.ghost {
  background: var(--fill);
  color: var(--ink);
}
.cos .btn.danger {
  background: color-mix(in srgb, var(--rose) 14%, transparent);
  color: var(--rose);
}
.cos .btn.ok {
  background: color-mix(in srgb, var(--mint) 16%, transparent);
  color: var(--mint);
}
.cos .btn:disabled {
  background: var(--fill);
  color: var(--ink-3);
  box-shadow: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.btn.sm {
  flex: none;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.dock {
  position: relative;
  margin-top: auto;
  padding: 20px var(--gutter) 34px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
}
.dock .actions {
  margin-top: 0;
}
.dock .muted {
  text-align: center;
}
/* The one view switcher (design system v2, decision 2): two or three lists on one page, as a
   full-width track whose lit option is the thumb, with a count on each option. `viewSwitcher()` in
   shell.ts draws it and refuses a fourth option. The thumb slides between pages in the same
   view transition as the sidebar highlight. Narrowing one list is `.chips`, never this. */
.seg {
  display: flex;
  width: 100%;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}
.seg > span,
.seg > a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  font: 500 14px/1 var(--ui);
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
}
.seg .n {
  font: 500 12px/1 var(--mono);
  color: var(--ink-2);
}
.seg .on {
  background: var(--fill-2);
  color: var(--ink);
  font-weight: 600;
  view-transition-name: seg-thumb;
}
.seg .on .n {
  color: var(--violet-ink);
}
/* An option with no page yet: shown, marked Soon, and not a link. */
.seg .soon {
  opacity: 0.6;
}
.cos[data-mode="light"] .seg .on {
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 20, 60, 0.12);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* The one filter chip (decision 2): narrows a list, with its count. `filterChips()` draws them. */
.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 500 13px/34px var(--ui);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip .n {
  margin-left: 6px;
  font: 500 12px/1 var(--mono);
  color: var(--ink-3);
}
.cos .chip.on {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.cos .chip.on .n {
  color: inherit;
  opacity: 0.75;
}
.flabel {
  display: block;
  font: 500 13px/1.3 var(--ui);
  color: var(--ink-2);
  margin: 18px 0 8px;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r-field);
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 500 15px/1.3 var(--ui);
}
.cos input.field::placeholder {
  color: var(--ink-3);
}
.field .ic {
  color: var(--ink-3);
}
.field .end {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
}
.toggle {
  width: 50px;
  height: 30px;
  border-radius: 15px;
  background: var(--fill-2);
  position: relative;
  flex: none;
  display: block;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.cos .toggle.on {
  background: var(--violet);
}
.toggle.on::after {
  left: 23px;
}
.steps {
  display: flex;
  gap: 6px;
}
.steps i {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--fill-2);
}
.steps i.on {
  background: var(--violet);
}

/* ---------- offer card (Your move) ---------- */
.offer {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.cover {
  height: 150px;
  position: relative;
  background:
    radial-gradient(60% 80% at 70% 30%, rgba(79, 139, 255, 0.85), transparent 70%),
    radial-gradient(50% 70% at 20% 80%, rgba(123, 97, 255, 0.7), transparent 70%),
    linear-gradient(160deg, #141a3d, #0c0c18);
}
.cover.warm {
  background:
    radial-gradient(60% 80% at 75% 25%, rgba(255, 159, 127, 0.8), transparent 70%),
    radial-gradient(50% 70% at 15% 85%, rgba(123, 97, 255, 0.7), transparent 70%),
    linear-gradient(160deg, #2a1730, #0c0c18);
}
.cover.short {
  height: 118px;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 12, 22, 0.82));
}
.cover .tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.cover .tag.r {
  left: auto;
  right: 16px;
}
.cover .brand {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.cover .brand b {
  display: block;
  font: 600 16px/1.2 var(--display);
}
.cover .brand small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}
.offer-body {
  padding: 16px 18px 18px;
}
.amount {
  font: 600 34px/1 var(--display);
  letter-spacing: -0.02em;
}
.deliv {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 8px;
}

/* ---------- home shortcuts ---------- */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.sc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 12px;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  font: 500 12px/1.1 var(--ui);
  color: var(--ink-2);
  text-align: center;
}
.sc em {
  position: absolute;
  top: 8px;
  right: 9px;
  font: 500 10px/1 var(--mono);
  font-style: normal;
  color: var(--ink-3);
}
.sc em.hot {
  color: var(--on-peach);
  background: var(--peach);
  border-radius: 999px;
  padding: 3px 6px;
}
.faces {
  display: flex;
}
.faces span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  display: grid;
  place-items: center;
  font: 600 10px/1 var(--display);
  color: #0a0a11;
}
.faces span:first-child {
  margin-left: 0;
}
.more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  font: 600 13px/1 var(--ui);
  color: var(--ink-2);
}

/* ---------- money card: stays dark in both modes, it anchors the page ---------- */
.cos .snap {
  --ink: #f3f1f8;
  --ink-2: #b9b6c8;
  --ink-3: #9a96ae;
  --line: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-2: rgba(255, 255, 255, 0.13);
  --mint: #7fd8a6;
  --cobalt: #4f8bff;
  --amber: #f2c46d;
  display: block;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, #151528, #10101a);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  overflow: hidden;
  position: relative;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(30, 20, 80, 0.22);
}
.cos[data-mode="light"] .snap .seg .on {
  background: var(--fill-2);
  box-shadow: none;
}
.snap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.big {
  font: 600 40px/1 var(--display);
  letter-spacing: -0.025em;
  margin-top: 12px;
}
.chart {
  margin: 14px -18px 0;
  width: calc(100% + 36px);
  height: auto;
}
.ranges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.ranges span {
  font: 500 12px/1 var(--mono);
  color: var(--ink-3);
  padding: 8px 11px;
  border-radius: 999px;
}
.ranges span.on {
  background: var(--fill-2);
  color: var(--ink);
}
.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin: 8px -18px -16px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.exp-row b {
  font: 600 16px/1 var(--display);
  color: var(--ink);
}
.exp-row .c {
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- score, estimate, timeline ---------- */
.scorebox {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font: 600 24px/1 var(--display);
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%),
    conic-gradient(var(--c, var(--violet)) calc(var(--p, 50) * 1%), var(--fill) 0);
}
.ring.sm {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.rng {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--fill);
  margin: 34px 0 10px;
}
.rng .est {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cobalt), var(--violet));
}
.rng .mk {
  position: absolute;
  top: -7px;
  width: 4px;
  height: 22px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
}
.rng .mk span {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 12px/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.rng-x {
  display: flex;
  justify-content: space-between;
  font: 600 12px/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 30px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.fact:first-child {
  border-top: 0;
}
.fact em {
  font: 600 12px/1 var(--ui);
  font-style: normal;
  color: var(--ink-2);
  text-align: right;
}
.tl .e {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  position: relative;
}
.tl .e::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl .e:last-child {
  padding-bottom: 0;
}
.tl .e:last-child::before {
  display: none;
}
.tl .d {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fill-2);
  border: 4px solid var(--surface);
}
.tl .d.on {
  background: var(--violet);
}
.tl .d.now {
  background: var(--violet);
  border-color: color-mix(in srgb, var(--violet) 35%, var(--surface));
}
.tl b {
  display: block;
  font: 600 14px/1.3 var(--ui);
}
.tl small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 2px;
}
.tl p {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 4px;
}
.tl .e.todo b {
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- chat ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 20px 20px 20px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  align-self: flex-start;
  box-shadow: var(--shadow);
}
.cos .bubble.me {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--violet-2);
  border-color: transparent;
  color: #fff;
}
.stamp {
  align-self: center;
  font: 500 11px/1 var(--mono);
  color: var(--ink-3);
  margin: 10px 0 4px;
}
.ref {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--fill);
  font-size: 13px;
  color: var(--ink-2);
  max-width: 78%;
}
.composer {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- calendar ---------- */
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.cal span {
  font: 500 11px/1 var(--mono);
  color: var(--ink-3);
  padding: 6px 0;
}
.cal i {
  font: 500 14px/40px var(--ui);
  font-style: normal;
  height: 40px;
  border-radius: 12px;
  position: relative;
  color: var(--ink-2);
}
.cal i.off {
  color: var(--ink-3);
  opacity: 0.45;
}
.cos .cal i.today {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.cal i.ev::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--c, var(--violet));
}
.cal i.ev.p {
  --c: var(--peach);
}
.cal i.ev.m {
  --c: #34b874;
}
.cal i.ev.b {
  --c: var(--cobalt);
}

/* ---------- sheet (shown open on a dimmed screen) ---------- */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.sheet {
  position: relative;
  margin: auto 8px 8px;
  border-radius: 34px;
  padding: 10px 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
.grabber {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  margin: 0 auto 16px;
  background: var(--fill-2);
}

/* ---------- glass tab bar ---------- */
.cos.bar-only {
  background: transparent;
  overflow: visible;
}
.tabwrap {
  position: relative;
  margin-top: auto;
  padding: 26px 18px 26px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--bg) 88%, transparent) 45%
  );
}
.tabbar {
  height: 66px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  padding: 0 8px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--glass-shadow);
}
.tab {
  width: 62px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  position: relative;
}
.tab svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cos .tab.on {
  color: #fff;
  background: linear-gradient(180deg, rgba(142, 120, 255, 0.42), rgba(98, 71, 242, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cos[data-mode="light"] .tab.on {
  color: #4b32d9;
  background: linear-gradient(180deg, rgba(142, 120, 255, 0.28), rgba(142, 120, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.tab .me {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d6bff, #1b1d3a 70%);
  box-shadow: 0 0 0 2px var(--fill-2);
}
.tab .me.op {
  background: radial-gradient(circle at 35% 30%, #ffb79c, #6a3a2a 75%);
}
.tab .tdot {
  position: absolute;
  top: 11px;
  right: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach);
}

/* ---------- operator review ---------- */
.proposal {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent-edge) 40%, var(--line));
  padding: 18px;
  box-shadow: var(--shadow);
}
.quote {
  border-radius: 16px;
  background: var(--fill);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.quote b {
  color: var(--ink);
  font-weight: 600;
}
.checks {
  display: grid;
  gap: 10px;
}
.ck {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
}
.ck .ic {
  margin-top: 1px;
}
.ck.pass .ic {
  color: var(--mint);
}
.ck.flag .ic {
  color: var(--amber);
}
.ck.fail .ic {
  color: var(--rose);
}
.ck b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- web ---------- */
.cos.web {
  width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  overflow: visible;
}
.side {
  flex: 1 1 220px;
  max-width: 264px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* The sidebar stays in view while a long page scrolls. */
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}
.side a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font: 500 14px/1 var(--ui);
  color: var(--ink-2);
  position: relative;
  isolation: isolate;
}
.cos .side a.on {
  color: var(--ink);
}
/* The lit item's highlight (canvas `.side a.on`), drawn by its own element so it can slide. */
.side .hl {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--fill);
}
.side .count {
  margin-left: auto;
  font: 500 11px/1 var(--mono);
  color: var(--ink-3);
}
.main {
  flex: 999 1 560px;
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 36px) 40px;
  position: relative;
}
.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}
.cols > * {
  flex: 1 1 340px;
  min-width: 0;
}
.cols > .wide {
  flex: 2 1 460px;
}
.tbl-wrap {
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.tbl th {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 10px 12px;
}
.tbl td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr.sel td {
  background: var(--fill);
}

/* ---------- score colors, green to red ---------- */
.cos {
  --lime: #b7db6b;
  --orange: #ff9a57;
}
.cos[data-mode="light"] {
  --lime: #4c7a0f;
  --orange: #b4530a;
}
.s5 {
  --c: var(--mint);
}
.s4 {
  --c: var(--lime);
}
.s3 {
  --c: var(--amber);
}
.s2 {
  --c: var(--orange);
}
.s1 {
  --c: var(--rose);
}
.cos .ring {
  color: var(--c, var(--ink));
}
.ring.xs {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.cover .ring {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  --surface: #12121f;
  --fill: rgba(255, 255, 255, 0.2);
  --mint: #7fd8a6;
  --lime: #b7db6b;
  --amber: #f2c46d;
  --orange: #ff9a57;
  --rose: #ff8494;
}
/* ---------- what matters in a card: amount and due date ---------- */
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cos .meta .amt {
  font: 600 16px/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* ADR 0085 decision 1: the line that opens every operator page of a simulation workspace. */
.simmark {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  font: 500 13px/1.4 var(--ui);
  color: var(--ink-2);
}
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--peach) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--peach) 38%, transparent);
}
.callout b {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1.2 var(--ui);
}
.cos .flabel {
  margin: 18px 0 8px;
}
.delta {
  font: 600 13px/1 var(--ui);
  color: var(--mint);
  margin-top: 10px;
}
.delta span {
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- web app (additions for pages the canvas draws only on the phone) ---------- */
body {
  margin: 0;
}
.cos.page {
  min-height: 100vh;
  overflow: visible;
}
.cos :focus-visible {
  outline: 2px solid var(--violet-ink);
  outline-offset: 2px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}
.side .brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 20px;
}
/* The outlined Sennet lockup, one image per theme. 132px keeps it above the 120px minimum. */
.lockup {
  display: block;
}
.lockup img {
  display: block;
  width: 132px;
  height: auto;
}
.lockup .brand-light {
  display: none;
}
.cos[data-mode="light"] .lockup .brand-dark {
  display: none;
}
.cos[data-mode="light"] .lockup .brand-light {
  display: block;
}
.side .soon {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font: 500 14px/1 var(--ui);
  color: var(--ink-3);
  opacity: 0.7;
}
.side .soon em {
  margin-left: auto;
  font: 600 11px/1 var(--ui);
  font-style: normal;
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-2) 13%, transparent);
}
.side .me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 0;
}
.side .me b {
  display: block;
  font: 600 13px/1.3 var(--ui);
}
.side .me p {
  font-size: 12px;
}
.side form {
  padding: 6px 12px 0;
}
.side .linkbtn {
  font: 500 12px/1 var(--ui);
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.side .classic {
  font-size: 12px;
  color: var(--ink-3);
  min-height: 32px;
}
.lay {
  position: relative;
}
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.head .ptitle {
  flex: 1 1 260px;
}
.chips a.chip {
  display: inline-block;
}
.lead {
  margin-top: 8px;
  font-size: 14px;
}
.tbl a.rowlink {
  display: block;
  font: 600 15px/1.25 var(--ui);
}
.tbl tr.sel a.rowlink {
  color: var(--ink);
}
.tbl td.nowrap {
  white-space: nowrap;
}
.proposal .top2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.proposal .h2 {
  margin-top: 12px;
}
.proposal .pills {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.proposal .kvs {
  margin-top: 12px;
}
.proposal .quote {
  margin-top: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.proposal .checks {
  margin-top: 16px;
}
/* ADR 0051: what the system read in an inbound deal's email. */
.proposal .reading {
  margin-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.proposal .reading-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.proposal .reading > .label {
  display: block;
  margin-top: 14px;
}
.proposal .reading .quote {
  margin-top: 8px;
  white-space: normal;
}
.proposal .reading-empty,
.proposal .reading-source {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}
.proposal .actions {
  flex-wrap: wrap;
}
.proposal .actions .btn.primary {
  flex: 1 1 100%;
}
.proposal .foot {
  margin-top: 12px;
}
.proposal .note {
  margin-top: 14px;
}
.cos a.btn {
  text-decoration: none;
}
.cos textarea.field {
  min-height: 180px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
  font: 500 14px/1.5 var(--ui);
}
.cos input.field,
.cos textarea.field {
  outline-offset: 2px;
}
.form-issues {
  margin-top: 14px;
}
/* The Queue's tally tiles (last 7 days), laid out as on the canvas. */
.tally {
  margin-top: 20px;
}
.tally h2.label {
  margin: 0 0 10px;
}
.tally .tiles {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
/* Deal workspace (web layout of ODeal.html). */
.deal-contract .r .g {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contract-paste {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.contract-paste input.field,
.contract-paste textarea.field {
  width: 100%;
}
.contract-paste .btn {
  justify-self: start;
}
.contract-paste p {
  margin: 0;
}
.head .title {
  flex: 1 1 260px;
  min-width: 0;
}
.head .title .ptitle {
  margin: 0;
}
.head + .seg,
.head + .chips {
  margin-top: 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack > .card,
.cols > .card {
  margin: 0;
}
.narrow {
  max-width: 760px;
  margin-top: 22px;
}
.prospect-fields {
  min-inline-size: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.prospect-fields legend {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.prospect-fields details {
  margin-block: 18px;
}
.prospect-fields summary {
  cursor: pointer;
}
.prospect-entry .actions {
  flex-wrap: wrap;
}
.cos .prospect-entry button.btn {
  padding-inline: 18px;
}
.card h2.label {
  margin: 0 0 6px;
}
.msg {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.msg:first-of-type {
  border-top: 0;
}
.msg .top2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.msg .kvs {
  margin-top: 6px;
}
.msg .quote {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.narrow .foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
/* The score ring's fill, in steps of five, since the page carries no inline style. */
.ring.p0 {
  --p: 0;
}
.ring.p5 {
  --p: 5;
}
.ring.p10 {
  --p: 10;
}
.ring.p15 {
  --p: 15;
}
.ring.p20 {
  --p: 20;
}
.ring.p25 {
  --p: 25;
}
.ring.p30 {
  --p: 30;
}
.ring.p35 {
  --p: 35;
}
.ring.p40 {
  --p: 40;
}
.ring.p45 {
  --p: 45;
}
.ring.p50 {
  --p: 50;
}
.ring.p55 {
  --p: 55;
}
.ring.p60 {
  --p: 60;
}
.ring.p65 {
  --p: 65;
}
.ring.p70 {
  --p: 70;
}
.ring.p75 {
  --p: 75;
}
.ring.p80 {
  --p: 80;
}
.ring.p85 {
  --p: 85;
}
.ring.p90 {
  --p: 90;
}
.ring.p95 {
  --p: 95;
}
.ring.p100 {
  --p: 100;
}
.empty {
  padding: 28px 18px;
  text-align: center;
}
.empty .h2 {
  margin-bottom: 8px;
}
.notice {
  margin-top: 18px;
}
/* A flag's severity is a status pill (decision 4), not a mono label. */
.ck .sev {
  margin-left: 6px;
  vertical-align: 1px;
}
.ck p {
  color: var(--ink-3);
  margin-top: 3px;
}

/* ---------- sign-in ---------- */
.signin {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 12vh 20px 40px;
  position: relative;
}
.signin .brand-tile {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  margin-bottom: 22px;
}
.signin .lede {
  margin-top: 0;
}
.signin form {
  margin-top: 24px;
}
.signin .actions {
  margin-top: 22px;
}
.signin .alt {
  margin-top: 18px;
}
.signin .alt a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.r .why {
  color: var(--ink-2);
  margin-top: 4px;
}
.log {
  max-width: 760px;
}
/* `.cos button{font:inherit}` outranks `.btn`, so a <button class="btn"> needs its face again */
.cos button.btn {
  font: 600 15px/1 var(--ui);
}
.cos textarea.field.short {
  min-height: 96px;
}
.cos textarea.field.tall {
  min-height: 260px;
}
/* ---------- creator Home (WCreator) ---------- */
.home .gap {
  margin-top: 32px;
}
.home h1.lede {
  max-width: 720px;
  margin-top: 8px;
}
.home .tiles + .lead {
  margin-top: 12px;
}
/* ---------- creator Deals (CDeals) ---------- */
.deals {
  max-width: 820px;
}
.deals .seg {
  margin-top: 18px;
}
.deals .sortnote {
  margin-top: 14px;
}
/* ---------- operator creator workspace (OCreator) ---------- */
.creatorws {
  max-width: 820px;
}
.creatorws .note {
  margin-top: 16px;
}
.creatorws .tiles {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.creatorws a.tile {
  color: inherit;
  text-decoration: none;
  display: block;
}
.creatorws .sec-h .pill {
  margin-left: auto;
}
.creatorws .foot {
  margin-top: 12px;
}
/* ---------- creator Finance (CFinance) ---------- */
.money {
  max-width: 820px;
}
.money .tiles {
  margin-top: 18px;
}
.tile.late .label {
  color: var(--rose);
}
/* ---------- creator Calendar (CCalendar) ---------- */
.calendar {
  max-width: 820px;
}
.calendar .month {
  margin-top: 18px;
}
.calhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calhead h2 {
  font: 600 17px/1 var(--display);
  margin: 0;
}
.calnav {
  display: flex;
  gap: 4px;
}
/* Outranks the light-mode .ibtn rule, which the server also copies into the system-mode query. */
.cos[data-mode] .calhead .calnav .ibtn {
  border: 0;
  box-shadow: none;
}
.calendar .legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.dot.b {
  --c: var(--cobalt);
}
/* ---------- creator deal (CDealActive) ---------- */
.cdeal {
  max-width: 820px;
}
.cdeal .card {
  margin-top: 10px;
}
.cdeal .next {
  margin-top: 18px;
}
.cdeal .next .h2 {
  margin-top: 12px;
}
.cdeal .next .muted {
  margin-top: 8px;
  font-size: 14px;
}
.cdeal .card.flush > .cardlabel {
  padding-top: 14px;
}
.cdeal .cardlabel + .kv {
  border-top: 0;
}
.cdeal .card:not(.flush) > .cardlabel {
  margin-bottom: 16px;
}
.cdeal .kv .ring {
  display: inline-grid;
  vertical-align: middle;
}
/* ---------- creator offer (CDealOffer) ---------- */
.offerpage {
  max-width: 820px;
}
.offerpage .card,
.offerpage .note {
  margin-top: 10px;
}
.offerpage .head + .card {
  margin-top: 18px;
}
.offerpage .amount {
  font: 600 40px/1 var(--display);
  margin-top: 14px;
}
.offerpage .short {
  margin-top: 16px;
}
.offerpage .fine {
  font-size: 13px;
  margin-top: 8px;
}
.offerpage .decide .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.offerpage .risk {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.offerpage .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 14px;
}
/* ADR 0042: the override a flagged reply needs before it can be approved. */
.override {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
/* Decision 3 has no plain bold header: the legend takes the level 2 label, as the prospect form's do. */
.override legend {
  padding: 0;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.override .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
}
.override .muted {
  margin-top: 8px;
  font-size: 13px;
}
/* `.cos button` resets padding, and this button does not stretch in a row like the two above. */
.cos .offerpage .risk button.btn {
  margin-top: 12px;
  padding: 0 18px;
}
/* The Decision log's Download CSV stands alone in its card: `.cos button` reset its padding too. */
.cos .dlform button.btn {
  padding: 0 18px;
}
.offerpage .decide > .flabel:first-of-type {
  margin-top: 0;
}
.offerpage .back,
.cdeal .back {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink-2);
}
.offerpage .cardlabel + .kv,
.offerpage .cardlabel + .r {
  border-top: 0;
}
.offerpage .card.flush > .cardlabel {
  padding-top: 14px;
}
/* ---------- creator score and estimate (CScore) ---------- */
.scorepage {
  max-width: 820px;
}
.scorepage .card,
.scorepage .note {
  margin-top: 10px;
}
.scorepage .head + .card {
  margin-top: 18px;
}
.scorepage .cardlabel {
  margin: 18px 0 4px;
}
.scorepage .top2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.scorepage .back {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink-2);
}
.bar i.lv-high {
  width: 90%;
  --c: var(--mint);
}
.bar i.lv-medium {
  width: 60%;
  --c: var(--amber);
}
.bar i.lv-low {
  width: 30%;
  --c: var(--rose);
}
.bar i.lv-unknown {
  width: 0;
}
/* ---------- creator contract check (CContract) ---------- */
.contractpage {
  max-width: 820px;
}
.contractpage .head + .card {
  margin-top: 18px;
}
.contractpage .h2 + .muted {
  margin-top: 8px;
}
.contractpage .list {
  margin-top: 10px;
}
.contractpage .flag {
  font-weight: 600;
  margin-top: 10px;
}
.contractpage .flag + .muted {
  margin-top: 4px;
}
.contractpage .fine {
  font-size: 13px;
  margin-top: 14px;
}
.contractpage .back {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink-2);
}
/* ---------- creator content (CContent) ---------- */
.contentpage {
  max-width: 820px;
}
.contentpage .card {
  margin-top: 10px;
}
.contentpage .head + .card {
  margin-top: 18px;
}
.contentpage .next .h2 {
  margin-top: 12px;
}
.contentpage .next .muted {
  margin-top: 6px;
}
.contentpage .back {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink-2);
}
/* ---------- creator onboarding (COnbInvite, COnbOperator, COnbEmail, COnbRates, COnbReady) ---------- */
.onb {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 8vh 20px 48px;
  position: relative;
}
.onb .brand-tile {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.onb .ptitle {
  margin-top: 26px;
}
.onb .card,
.onb .note {
  margin-top: 18px;
}
.onb .card .label + .checks {
  margin-top: 12px;
}
.onb .card .checks + .label {
  margin-top: 20px;
}
:is(.onb, .limitsform) form > .muted,
:is(.onb, .limitsform) .field + .muted,
:is(.onb, .limitsform) input.field + .muted {
  margin-top: 8px;
}
:is(.onb, .limitsform) form > .checks {
  margin-top: 20px;
}
:is(.onb, .limitsform) .actions {
  margin-top: 24px;
}
/* The Terms step's two documents, and its tick. */
.onb .docs {
  margin-top: 6px;
}
.onb .docs .r {
  color: inherit;
  text-decoration: none;
}
.onb .docs .ver {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 4px;
}
.onb .check.agree {
  margin-top: 16px;
}
.onb .actions + .muted {
  margin-top: 12px;
  text-align: center;
}
/* The Rates step's days pickers and category chips, working with the script off. */
:is(.onb, .limitsform) .field.pick select {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}
:is(.onb, .limitsform) .flabel.sm {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
:is(.onb, .limitsform) .cats {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  min-width: 0;
}
:is(.onb, .limitsform) .cats legend {
  margin-top: 0;
  padding: 0;
}
/* The typed days field shows only with "Another number". Without :has support the rule is dropped and it stays. */
:is(.onb, .limitsform) .field.pick:not(:has(option[value="other"]:checked)) + .flabel.sm,
:is(.onb, .limitsform) .field.pick:not(:has(option[value="other"]:checked)) + .flabel.sm + .field,
:is(.onb, .limitsform)
  .field.pick:not(:has(option[value="other"]:checked))
  + .flabel.sm
  + .field
  + .muted {
  display: none;
}
.onb .docs + .label {
  margin-top: 18px;
}
:is(.onb, .limitsform) .cats .chips {
  margin-top: 8px;
}
:is(.onb, .limitsform) .chip.pick {
  position: relative;
  cursor: pointer;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
}
:is(.onb, .limitsform) .chip.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
/* The pill is the span after the checkbox, so its state needs no :has. A tick says "on" without colour. */
:is(.onb, .limitsform) .chip.pick span {
  display: block;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 500 13px/34px var(--ui);
  color: var(--ink-2);
  white-space: nowrap;
}
:is(.onb, .limitsform) .chip.pick input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
:is(.onb, .limitsform) .chip.pick input:checked + span::before {
  content: "\2713\00a0";
}
:is(.onb, .limitsform) .chip.pick input:focus-visible + span {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.onb .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.onb .who .avatar {
  width: 60px;
  height: 60px;
}
.onb .who .h2 {
  margin-top: 6px;
}
.onb .addr {
  display: flex;
  align-items: center;
  gap: 14px;
}
.onb .addr .h2 {
  margin-top: 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.signin form .note {
  margin-top: 18px;
}
.onb .addr .g {
  flex: 1;
  min-width: 0;
}
.onb .tl {
  margin-top: 4px;
}
.onb a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:is(.onb, .limitsform) .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 18px;
}
:is(.onb, .limitsform) .check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--violet);
}
:is(.onb, .limitsform) .field input {
  flex: 1;
  min-width: 0;
  height: 50px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}
:is(.onb, .limitsform) .field:focus-within {
  outline: 2px solid var(--violet-ink);
  outline-offset: 2px;
}
:is(.onb, .limitsform) .field input:focus-visible {
  outline: none;
}
/* Your limits (creator-limits.ts): the onboarding Rates form in the app shell, saved after asking. */
.limitsform form > .ask {
  margin-top: 22px;
}
.limitsform form > .muted + .muted {
  margin-top: 4px;
}
.signin .field.code {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* ---------- staff: early access requests (ADR 0041) ---------- */
.rq p {
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.rq .h2 {
  margin-top: 10px;
}
.rq .label .pill {
  margin-left: 6px;
}
.rq .rq-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  white-space: pre-wrap;
}
.rq code {
  font: 500 12px/1.4 var(--mono);
}
.rq .actions {
  flex-wrap: wrap;
  align-items: flex-start;
}
/* A button in its own form is not a flex child, so it sizes to its words. */
.rq .actions .btn {
  flex: none;
  display: inline-flex;
  padding: 0 18px;
}
.rq-del summary {
  list-style: none;
  cursor: pointer;
}
.rq-del summary::-webkit-details-marker {
  display: none;
}
.rq-del form {
  margin-top: 10px;
}
.rq-back {
  margin-top: 18px;
}
/* ---------- creator Team page (`CTeam.html`) ---------- */
.team > * + * {
  margin-top: var(--gap);
}
.team > .sec {
  margin-top: var(--sec);
}
.person .pname {
  font: 600 18px/1.2 var(--display);
}
.person .scorebox {
  align-items: flex-start;
}
.team .rose {
  color: var(--rose);
}
/* A change that asks first: the row opens to say what happens, and only its button posts. */
.ask > summary {
  list-style: none;
  cursor: pointer;
}
.ask > summary::-webkit-details-marker {
  display: none;
}
.ask > summary.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 14px/1.3 var(--ui);
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ask > summary.btn {
  display: inline-flex;
}
.ask > p {
  margin-top: 8px;
}
.ask .actions .btn {
  flex: none;
}
.person .ask {
  margin-top: 10px;
}
.note .ask {
  margin-top: 10px;
}
.note .g p {
  margin-top: 2px;
}
.ask .flabel:first-of-type {
  margin-top: 14px;
}

/* ---------- staff pages: invite a creator, early access requests (ADR 0041, ADR 0043) ---------- */
/* The staff pages' links are drawn as the one chip style (decision 2 retires underline tabs). */
.staffnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font: 500 13px/1.3 var(--ui);
}
.staffnav > a {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 500 13px/34px var(--ui);
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
}
/* Outranks `.onb a:not(.btn)`, which underlines links on the onboarding column the staff pages use. */
.onb .staffnav > a {
  text-decoration: none;
}
.cos .staffnav > a.on {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.staffnav form {
  margin-left: 8px;
}
.staffnav .linkbtn {
  font: 500 13px/1.3 var(--ui);
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.staff .label + .sub {
  margin-top: 8px;
}
.staff .ptitle.sm {
  margin-top: 36px;
  font-size: 22px;
}
.invform .flabel:first-of-type {
  margin-top: 0;
}
/* The code is selected whole with one tap, so it can be copied with the script off. */
.invcode .code {
  margin-top: 10px;
  font: 600 22px/1.3 var(--mono);
  letter-spacing: 0.06em;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}
/* ADR 0067: the invite email exactly as it will be sent, line breaks kept. */
.staff .mailtext {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  font: 400 14px/1.55 var(--ui);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.staff .actions.pair form {
  flex: 1;
  display: flex;
}
/* ADR 0078: the staff page's recent changes. */
.staff .eventlist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.mailcard .label:not(:first-child) {
  margin-top: 14px;
}
.creatorws .head .btn {
  flex: none;
  display: inline-flex;
  padding: 0 18px;
}

/* ---------- back button in a page head (canvas `.nav`) ---------- */
.head .up + .title {
  flex-basis: 180px;
}
/* The head of a Queue review (canvas `.nav` on the review boards): back to the list, what is under
   review, and a skip to the next. A phone shows it; a wide screen has the list beside the review. */
.rnav {
  display: none;
}

/* ---------- hover and press ---------- */
/* Every control answers a pointer or a finger at once. Colour changes always run; anything that
   moves is in the motion block below, so it stops under `prefers-reduced-motion`. */
.cos a,
.cos button,
.cos summary {
  -webkit-tap-highlight-color: transparent;
}
.side a,
.side .hl,
.btn,
.chip,
.seg a,
.ibtn,
.back,
.more,
.linkbtn,
a.drow,
a.tile,
a.r b,
a.r .chev,
.tbl a.rowlink {
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    color var(--t-fast) ease,
    box-shadow var(--t-fast) ease,
    filter var(--t-fast) ease,
    opacity var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out);
}
/* The link a page switch started from lights up before the next page arrives (app.js). */
.cos .side a.going {
  color: var(--ink);
}
@media (hover: hover) {
  .side a:hover {
    color: var(--ink);
  }
  .side a:not(.on):hover {
    background: color-mix(in srgb, var(--fill) 55%, transparent);
  }
  .btn:hover {
    filter: brightness(1.08);
  }
  .cos .btn.ghost:hover,
  .ibtn:hover {
    background: var(--fill-2);
    filter: none;
  }
  .chip:not(.on):hover,
  .seg a:not(.on):hover {
    color: var(--ink);
  }
  .chip:not(.on):hover,
  a.drow:hover,
  a.tile:hover {
    border-color: var(--fill-2);
  }
  a.drow:hover,
  a.tile:hover {
    background: var(--surface-2);
  }
  /* A pill keeps its tint over the row's resting surface, so every tone stays at 4.5:1 or better
     (cobalt over surface-2 measured 4.38). */
  a.drow:hover .pill,
  a.tile:hover .pill {
    background: color-mix(in srgb, var(--c, var(--ink-2)) 13%, var(--surface));
  }
  a.r:hover b {
    color: var(--violet-ink);
  }
  a.r:hover .chev,
  .more:hover,
  .back:hover {
    color: var(--ink);
  }
}

/* ---------- motion ---------- */
.topbar {
  display: none;
}
/* While the next page is on its way (app.js sets `data-loading` when it takes a moment), a thin
   bar runs along the top. */
.cos.page.web::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--peach));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.cos.page.web[data-loading]::before {
  opacity: 1;
  transform: scaleX(0.7);
}
@keyframes loading {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.92);
  }
}
/* A page's blocks rise into place one after another, on a load and on an in-place switch. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* The highlight of the lit sidebar or tab bar item slides to the next one during a switch. */
.side .hl {
  view-transition-name: nav-hl;
}
/* A switch never blocks a tap: the transition layer lets the pointer through. */
::view-transition {
  pointer-events: none;
}
/* Pseudo-elements of the document root do not see `.cos`'s tokens, so the curve is written out. */
::view-transition-group(*) {
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.2s;
}
@media (prefers-reduced-motion: no-preference) {
  .lay > :not(:only-child),
  .lay > :only-child > * {
    animation: 0.42s var(--ease-out) backwards rise;
    animation-delay: calc(var(--n, 0) * 45ms);
  }
  .lay > :nth-child(2),
  .lay > :only-child > :nth-child(2) {
    --n: 1;
  }
  .lay > :nth-child(3),
  .lay > :only-child > :nth-child(3) {
    --n: 2;
  }
  .lay > :nth-child(4),
  .lay > :only-child > :nth-child(4) {
    --n: 3;
  }
  .lay > :nth-child(5),
  .lay > :only-child > :nth-child(5) {
    --n: 4;
  }
  .lay > :nth-child(n + 6),
  .lay > :only-child > :nth-child(n + 6) {
    --n: 5;
  }
  .cos.page.web[data-loading]::before {
    animation: 4s cubic-bezier(0.1, 0.7, 0.1, 1) both loading;
  }
  .btn:active {
    transform: scale(0.97);
  }
  .chip:active,
  .ibtn:active,
  .seg a:active {
    transform: scale(0.95);
  }
  a.drow:active,
  a.tile:active {
    transform: scale(0.985);
  }
  a.r:hover .chev {
    transform: translateX(2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- phone: the canvas shell (aurora to the top, glass tab bar) ---------- */
@media (max-width: 820px) {
  .cos.web {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  /* The lockup and Log out sit on the aurora and scroll away with the page, as the canvas screens'
     own headers do. */
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: absolute;
    inset: 0 0 auto;
    z-index: 15;
    padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 0;
  }
  .topbar .brandline {
    padding: 0;
  }
  .topbar .lockup img {
    width: 120px;
  }
  .topbar form {
    margin: 0;
  }
  .topbar .linkbtn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-line);
    background: var(--glass);
    font: 500 13px/1 var(--ui);
    color: var(--ink-2);
    text-decoration: none;
  }
  /* The glass tab bar (canvas `.tabbar`): a floating pill of icons. Each link keeps its name for
     assistive technology; only the drawn label is hidden. */
  .side {
    position: fixed;
    inset: auto 18px calc(14px + env(safe-area-inset-bottom));
    z-index: 20;
    flex: none;
    align-self: auto;
    max-width: 440px;
    height: 66px;
    margin-inline: auto;
    overflow: visible;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    padding: 0 8px;
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    background: var(--glass);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      var(--glass-shadow);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
  }
  /* The page fades out under the tab bar (canvas `.tabwrap`). */
  .cos.page.web::after {
    content: "";
    position: fixed;
    inset: auto 0 0;
    z-index: 19;
    height: calc(112px + env(safe-area-inset-bottom));
    background: linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--bg) 88%, transparent) 55%
    );
    pointer-events: none;
  }
  .side .brandline,
  .side .classic,
  .side .me,
  .side form,
  .side .soon {
    display: none;
  }
  .side a {
    flex: 0 1 62px;
    justify-content: center;
    gap: 0;
    height: 50px;
    min-height: 0;
    padding: 0;
    border-radius: 999px;
    color: var(--ink-3);
  }
  .side a .ic {
    width: 24px;
    height: 24px;
  }
  .side .lb {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cos .side a.on,
  .cos .side a.going {
    color: var(--tab-on-ink);
  }
  .side a:not(.on):hover {
    background: none;
  }
  .side .hl {
    background: var(--tab-on-bg);
    box-shadow: var(--tab-on-edge);
  }
  /* A count becomes the canvas's dot, and only where it means something is waiting: the
     operator's Queue. The creator's Deals count is a total, so it draws nothing here. */
  .side .count {
    display: none;
  }
  .cos[data-app="op"] .side .count {
    display: block;
    position: absolute;
    top: 11px;
    right: 15px;
    width: 7px;
    height: 7px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    background: var(--peach);
    color: transparent;
    font-size: 0;
  }
  .main {
    flex: 1 1 auto;
    width: 100%;
    padding: calc(76px + env(safe-area-inset-top)) var(--gutter)
      calc(120px + env(safe-area-inset-bottom));
  }
  .tbl-wrap {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .side a:active {
    transform: scale(0.92);
  }
}

/* ---------- phone: the Queue as the canvas draws it (OQueue, then a review screen) ---------- */
@media (max-width: 820px) {
  /* The type filters run off the edge and scroll, as on the board, instead of wrapping. */
  .head .chips,
  .head + .chips {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .head .chips::-webkit-scrollbar,
  .head + .chips::-webkit-scrollbar {
    display: none;
  }
  .head .chips .chip,
  .head + .chips .chip {
    flex: none;
  }
  /* The list and the review are two screens: the list until a decision is opened, then the
     review alone with a way back. */
  .queue:not(.picked) > .review,
  .queue.picked > .wide {
    display: none;
  }
  .rnav {
    display: flex;
    margin-bottom: 14px;
  }
  /* The review's head sits where the list's title was. */
  .queue.picked {
    margin-top: 0;
  }
  /* The list's own head steps aside for the review's. The page title stays for a screen reader;
     the filters and the count belong to the list, so they go. */
  .head.listonly {
    min-height: 0;
    margin: 0;
  }
  .head.listonly .ptitle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .head.listonly .chips,
  .lead.listonly {
    display: none;
  }
  /* The table reads as rows: the decision, then who and what under it, and the wait at the end. */
  .queue .tbl-wrap {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .queue .tbl,
  .queue .tbl tbody {
    display: block;
    min-width: 0;
  }
  .queue .tbl thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .queue .tbl tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 6px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .queue .tbl tr:first-child {
    border-top: 0;
  }
  .queue .tbl td,
  .queue .tbl tr.sel td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
  }
  .queue .tbl td:nth-child(1) {
    grid-column: 1 / 3;
    font-size: 15px;
  }
  .queue .tbl td:nth-child(2),
  .queue .tbl td:nth-child(3) {
    grid-row: 2;
    color: var(--ink-3);
    font-size: 13px;
  }
  .queue .tbl td:nth-child(3)::before {
    content: "· ";
  }
  .queue .tbl td:nth-child(4) {
    grid-column: 3;
    grid-row: 1 / 3;
    padding-left: 8px;
  }
}

/* The page shell takes focus after an in-place page swap (app.js) so a screen reader starts at the
   new page. It is not a control, so it shows no focus ring. */
.main:focus {
  outline: none;
}

/* ---------- messages (ADR 0046, CMessages and CChat) ---------- */
.msgs {
  margin-top: 20px;
}
.msgs + .fine {
  margin-top: 16px;
}
.msgs .drow .label {
  margin-left: 6px;
}
.nav .t .ptitle {
  font: inherit;
  margin: 0;
}
.filter {
  margin: 12px 0 0;
}
.chat {
  margin-top: 14px;
}
.bubble .who {
  display: block;
  font: 600 12px/1.3 var(--ui);
  color: var(--ink-3);
  margin-bottom: 2px;
}
.bubble .text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble .when {
  display: block;
  margin-top: 4px;
  font: 500 10px/1 var(--mono);
}
.cos .ref.me {
  align-self: flex-end;
}
.ref b {
  color: var(--ink);
  font-weight: 600;
}
.msgform {
  margin-top: 16px;
  padding-inline: 0;
}
.msgform .attach {
  display: flex;
  align-items: center;
  gap: 10px;
}
.msgform .attach .flabel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}
.msgform .attach select.field {
  flex: 1;
  min-width: 0;
  min-height: 40px;
}
.cos .msgform textarea.field {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border-radius: 24px;
  resize: vertical;
}
/* Outranks the light-mode .ibtn rule, as the calendar arrows do. */
.cos[data-mode] .ibtn.send {
  background: var(--violet);
  color: #fff;
  border-color: transparent;
}
/* MS-1 (ADR 0070 decision 6): one person's run of messages sits close, under one name and one
   time; each bubble's own time shows beside it on hover. */
.chat .bubble {
  position: relative;
}
.chat .bubble.cont {
  margin-top: -5px;
  border-top-left-radius: 6px;
}
.cos .chat .bubble.me.cont {
  border-top-left-radius: 20px;
  border-top-right-radius: 6px;
}
.chat .bubble:not(.end) .when {
  position: absolute;
  top: 50%;
  margin-top: -5px;
  inset-inline-start: calc(100% + 8px);
  white-space: nowrap;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity var(--t-fast) ease;
}
.chat .bubble.me:not(.end) .when {
  inset-inline: auto calc(100% + 8px);
}
.chat .bubble:hover .when,
.chat .bubble:focus-within .when {
  opacity: 1;
}
.bubble .text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat .unread {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  font: 600 11px/1 var(--mono);
  color: var(--violet-ink);
}
.chat .unread::before,
.chat .unread::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
/* Send states: Delivered under the newest own message; sending and failed wait in the outbox
   that /app.js fills. */
.chat .state,
.outbox .state {
  align-self: flex-end;
  margin: -4px 4px 0;
  font: 500 11px/1.3 var(--ui);
  color: var(--ink-3);
  text-align: end;
}
.outbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.outbox:empty {
  display: none;
}
.outbox .out {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outbox .sending {
  opacity: 0.65;
}
.cos .outbox .failed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
}
@media (prefers-reduced-motion: no-preference) {
  .chat .arrive,
  .outbox .out {
    animation: 0.22s var(--ease-out) backwards rise;
  }
}
/* MS-2 (ADR 0070 decisions 2 to 4): reactions as chips under a bubble, a React button at the
   bubble's top corner that opens the six, and the line saying who is typing. Canvas tokens only. */
.chat .rx {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -4px;
  align-self: flex-start;
}
.chat .rx.me {
  align-self: flex-end;
}
.chat .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}
.chat .chip b {
  font: 600 11px/1 var(--mono);
  color: var(--ink-3);
}
.cos .chat .chip.own {
  border-color: var(--violet);
}
/* The button sits on the bubble's inner corner; the picker hangs from the bubble itself and
   opens toward the inside of the conversation, so every choice stays on screen beside a short
   message. */
.chat .react summary {
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  list-style: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast) ease;
}
.chat .bubble.me .react summary {
  inset-inline: -10px auto;
}
.chat .react summary::-webkit-details-marker {
  display: none;
}
.chat .react summary .ic {
  width: 14px;
  height: 14px;
}
.chat .bubble:hover .react summary,
.chat .react summary:focus-visible,
.chat .react[open] summary {
  opacity: 1;
}
@media (hover: none) {
  .chat .react summary {
    opacity: 0.7;
  }
}
.chat .react form {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 18px);
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.chat .bubble.me .react form {
  inset-inline: auto 0;
}
.chat .react form button {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.chat .react form button:hover,
.chat .react form button:focus-visible,
.chat .react form button[aria-pressed="true"] {
  background: var(--fill-2);
}
.chat .react form button.off {
  padding: 0 10px;
  font: 500 12px/1 var(--ui);
  color: var(--ink-2);
}
.typing {
  margin: 8px 4px 0;
  font: 500 12px/1.3 var(--ui);
  color: var(--ink-3);
}
/* ---------- operator Tasks (OTasks, ADR 0047) ---------- */
.drow .tick {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 2px solid var(--fill-2);
  flex: none;
  display: grid;
  place-items: center;
  color: var(--mint);
}
.drow .tick.on {
  border-color: var(--mint);
}
.drow.task b {
  overflow-wrap: anywhere;
}
.head + .seg + .lead {
  margin-top: 14px;
}
.taskpage .nav .ptitle {
  overflow-wrap: anywhere;
}
.taskpage > .card,
.taskpage > .note,
.taskpage > form.card {
  margin-top: 14px;
}
.taskpage .detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.taskpage .card > p.detail {
  margin-bottom: 10px;
}
.taskform .flabel:first-of-type {
  margin-top: 0;
}
.tasklog {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.tasklog li {
  font-size: 13px;
}
.tasklog .detail {
  margin-top: 4px;
  color: var(--ink-2);
}
.taskpage > details.card {
  margin-top: 14px;
}
.taskpage details.card > summary {
  cursor: pointer;
  font: 600 15px/1.3 var(--ui);
  min-height: 24px;
}
.taskpage details[open] > summary {
  margin-bottom: 14px;
}
.taskpage .sec .label {
  margin-bottom: 10px;
}
.list + .fine,
.sec + .fine {
  margin-top: 14px;
}
/* Private deal notes on the operator's deal page (ADR 0052, canvas `ODeal`). */
.dnotes {
  display: block;
}
/* Amber means waiting or out of range (decision 7), so the eyebrow is not amber. ink-3 on the
   note's amber tint is 4.27:1 in light, so the label steps up to ink-2. */
.dnotes h2.label {
  color: var(--ink-2);
}
.dn-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.dn-list li + li {
  margin-top: 12px;
}
.dn-text {
  margin-top: 8px;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.dn-list .muted,
.dn-empty {
  margin-top: 6px;
}
.dnotes form {
  margin-top: 12px;
}
.dnotes textarea.field {
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  resize: vertical;
  font: 500 14px/1.5 var(--ui);
}
.dn-error {
  margin-top: 8px;
  color: var(--rose);
}
.dnotes .actions {
  margin-top: 10px;
}
.dnotes .actions .btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 22px;
}
/* Connected accounts (ADR 0032): the Team section, and the step before TikTok. */
.accounts > .ask {
  margin-top: 10px;
}
.accounts .r form {
  flex: none;
}
.accountsconnect > * + * {
  margin-top: 16px;
}
.accountsconnect > .muted {
  margin-top: 14px;
}
.accountsconnect .card .label + .scope {
  margin-top: 10px;
}
.scope + .label {
  margin-top: 18px;
}
.scope {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.scope li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 400 15px/1.4 var(--ui);
  color: var(--ink);
}
.scope li .ic {
  flex: none;
  margin-top: 2px;
  color: var(--violet-ink);
}
.scope.never li {
  color: var(--ink-2);
}
.scope.never li .ic {
  color: var(--ink-3);
}

/* Problem and idea reports (ADR 0057). */
.side .report-entry {
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.onb > .report-entry,
.topbar .report-entry {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 600 12px/1.3 var(--ui);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reports {
  width: min(100%, 650px);
  display: grid;
  gap: 14px;
}
.reports h1,
.reports h2,
.reports p,
.report-list {
  margin: 0;
}
.reports h2 {
  margin-bottom: 10px;
}
.report-form,
.report-expected {
  display: grid;
  gap: 8px;
}
.report-form {
  padding: 18px;
}
.report-expected {
  margin-top: 6px;
}
.report-form:not(:has(option[value="bug"]:checked)) .report-expected {
  display: none;
}
.report-form select.field,
.report-form textarea.field {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}
.report-form textarea.field {
  resize: vertical;
}
.report-form .btn {
  justify-self: start;
  min-height: 44px;
  margin-top: 8px;
  padding-inline: 18px;
}
.report-confirmation,
.report-row {
  padding: 14px 18px;
}
.report-error {
  font-weight: 600;
}
.report-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.report-row .report-text {
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .side .report-entry {
    display: none;
  }
  .topbar:has(.report-entry) .linkbtn {
    white-space: nowrap;
    padding-inline: 12px;
  }
}

/* Media kit on the web app (ADR 0064, WCKitWeb): the kit's controls beside a small copy of what
   brands see. The copy follows the public page's tiles in kit.css, at the board's mini size. */
.kitweb > .cols {
  margin-top: 14px;
}
.kitweb .cols > * > * + * {
  margin-top: 14px;
}
.kitweb .wide > .label {
  display: block;
  margin-bottom: 10px;
}
.kitweb .kitlink {
  font: 600 17px/1.3 var(--ui);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.kitweb .toggle {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.kitweb details.ask > summary {
  display: flex;
  align-items: center;
}
.kitweb details.ask > form {
  padding: 0 0 12px;
}
/* The operator's held update (OKit3): the live kit's numbers beside the update's, a flagged row
   in amber, as kit.css draws them on the boards. */
.kitweb .diffs {
  margin-top: 10px;
}
.kitweb .diff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 72px;
  gap: 8px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.kitweb .diff:first-child {
  border-top: 0;
}
.kitweb .diff em {
  font: 500 12px/1 var(--mono);
  font-style: normal;
  color: var(--ink-3);
  text-align: right;
}
.kitweb .diff b {
  font: 600 14px/1 var(--ui);
  text-align: right;
}
.kitweb .diff.flag b {
  color: var(--amber);
}
.kitweb .diff.head {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kitweb .diff.head em,
.kitweb .diff.head b {
  font: inherit;
  color: inherit;
}
.kitweb .card > .label {
  display: block;
  margin: 14px 0 10px;
}
.kitweb .card > .label:first-child {
  margin-top: 0;
}
.kitweb details.ask > summary.btn {
  display: inline-flex;
  list-style: none;
}
.kitweb details.ask > summary.btn::-webkit-details-marker {
  display: none;
}
.kitweb details.ask[open] > form {
  margin-top: 10px;
}
.kitweb .decide {
  flex-wrap: wrap;
}
.kitweb .decide > * {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kitweb .decide details[open] {
  flex-basis: 100%;
}
.kitweb .decide + .muted {
  margin-top: 10px;
}
@media (max-width: 820px) {
  .kitweb .tbl .kcreator,
  .kitweb .tbl .kstate {
    display: none;
  }
  .kitweb .tbl {
    min-width: 0;
  }
}
.kitpreview {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 18px;
}
.kitpreview .kitwho {
  display: flex;
  gap: 12px;
  align-items: center;
}
.kitpreview .kphoto {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  flex: none;
  display: grid;
  place-items: center;
  font: 600 18px/1 var(--display);
  color: var(--bg);
  background: linear-gradient(135deg, var(--peach), var(--violet));
}
/* --violet has no light value, and page-coloured initials on it are under 4.5:1; end on violet 2. */
.cos[data-mode="light"] .kitpreview .kphoto {
  background: linear-gradient(135deg, var(--peach), var(--violet-2));
}
.kitpreview .nm {
  font: 600 20px/1.1 var(--display);
  letter-spacing: -0.02em;
}
.kitpreview .kitwho p {
  margin-top: 3px;
}
.kitpreview .bio {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.kitpreview .kstats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.kitpreview .kstat {
  padding: 12px 14px;
  border-radius: var(--r-tile);
  --c: var(--mint);
  background:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--c) 28%, transparent),
      transparent 60%
    ),
    var(--glass);
  border: 1px solid var(--glass-line);
}
.kitpreview .kstat.lead {
  --c: var(--peach);
}
.kitpreview .kstat .v {
  font: 600 22px/1 var(--display);
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.kitpreview .kstat .v .c {
  font-size: 0.5em;
  color: var(--ink-3);
  margin-left: 2px;
}
.kitpreview .kstat .src {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-3);
}
.kitpreview .kvideos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.kitpreview .kvid {
  position: relative;
  aspect-ratio: 9 / 12;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--violet), var(--bg));
}
.kitpreview .kvid.p2 {
  background: linear-gradient(160deg, var(--peach), var(--bg));
}
.kitpreview .kvid.p3 {
  background: linear-gradient(160deg, var(--mint), var(--bg));
}
.kitpreview .kvid .views {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font: 600 14px/1 var(--display);
  color: #fff;
}
.kitedit .card + .card {
  margin-top: 14px;
}
.kitedit .svc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}
.kitedit .svc .check {
  flex: 1 1 220px;
}
.kitedit .svc .price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 220px;
}
.kitedit .svc .price .field {
  width: 110px;
}
.kitweb .ask .danger {
  color: var(--rose);
}
.kitedit .card > .label {
  display: block;
  margin-bottom: 10px;
}

/* ADR 0075 (CS-2b): a contract's signature and date fields, one compact row each. */
.signing-field {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-row);
}
.signing-field legend {
  padding: 0 4px;
  font-size: 12px;
  color: var(--ink-2);
}
.signing-field .flabel {
  margin-top: 0;
}
.signing-field .field {
  min-width: 0;
}
.deal-signing form,
.signing-send p,
.signing-fields {
  margin-top: 12px;
}
@media (max-width: 820px) {
  .signing-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }
}

/* Profile photos (PP-2): the person's own photo sits over the colour orb, which shows through the
   clear pixel served when there is no upload. */
.avatar {
  overflow: hidden;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cos .side a.me {
  color: var(--ink);
  font: inherit;
  min-height: 0;
}
.mephoto {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
}
.photo-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.photo-card form {
  width: 100%;
  text-align: left;
}
.photo-crop canvas {
  display: block;
  width: 240px;
  height: 240px;
  margin: 8px auto;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 0 0 2px var(--fill-2);
}
.photo-crop input[type="range"] {
  width: 100%;
}

/* Other people's photos (PP-4): the same orb, with their photo over it when the reader may see it.
   The note byline's 22 px orb is the size `CContract.html` uses beside a line of text. */
.avatar.xs {
  width: 22px;
  height: 22px;
  box-shadow: none;
}
.dn-by {
  display: flex;
  align-items: center;
  gap: 8px;
}
.offerpage .card.why {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.offerpage .card.why .g {
  flex: 1;
  min-width: 0;
}

/* ---------- light mode, from the system (generated from the light rules above) ---------- */
@media (prefers-color-scheme: light){
.cos[data-mode="system"] {
  --bg: #f7f4fa;
  --surface: #ffffff;
  --surface-2: #f1edf8;
  --line: rgba(30, 20, 60, 0.09);
  --fill: rgba(30, 20, 60, 0.06);
  --fill-2: rgba(30, 20, 60, 0.14);
  --ink: #16131f;
  --ink-2: #4b475e;
  --ink-3: #6c6880;
  --violet-ink: #4b32d9;
  --cobalt: #2458d6;
  
  --peach: #a03915;
  --mint: #0f6640;
  --amber: #855600;
  --rose: #b4233a;
  --aurora-a: rgba(255, 186, 160, 0.75);
  --aurora-b: rgba(184, 168, 255, 0.8);
  --aurora-c: rgba(170, 200, 255, 0.35);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 12px 30px rgba(60, 40, 140, 0.14);
  --shadow: 0 1px 2px rgba(30, 20, 60, 0.04), 0 10px 30px rgba(60, 40, 140, 0.06);
  --logo-bg: #eeeaf8;
  --on-peach: #ffffff;
  --accent-edge: var(--violet-ink);
  --action: #6247f2;
  --action-ink: #f3f1f8;
  --tab-on-ink: #4b32d9;
  --tab-on-bg: linear-gradient(180deg, rgba(142, 120, 255, 0.28), rgba(142, 120, 255, 0.14));
  --tab-on-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.cos[data-app="op"][data-mode="system"] {
  --aurora-a: rgba(160, 196, 255, 0.8);
  --aurora-b: rgba(160, 232, 208, 0.7);
  --aurora-c: rgba(196, 184, 255, 0.35);
}
.cos[data-mode="system"] .ibtn {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(60, 40, 140, 0.1);
}
.cos[data-mode="system"] .seg .on {
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 20, 60, 0.12);
}
.cos[data-mode="system"] .snap .seg .on {
  background: var(--fill-2);
  box-shadow: none;
}
.cos[data-mode="system"] .tab.on {
  color: #4b32d9;
  background: linear-gradient(180deg, rgba(142, 120, 255, 0.28), rgba(142, 120, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.cos[data-mode="system"] {
  --lime: #4c7a0f;
  --orange: #b4530a;
}
.cos[data-mode="system"] .lockup .brand-dark {
  display: none;
}
.cos[data-mode="system"] .lockup .brand-light {
  display: block;
}
.cos[data-mode="system"] .kitpreview .kphoto {
  background: linear-gradient(135deg, var(--peach), var(--violet-2));
}
}
