/* 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. */

/* ---------- 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;
  /* 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;
  --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;
  --peach: #b8431c;
  --mint: #14784a;
  --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;
  --action: #6247f2;
  --action-ink: #f3f1f8;
}
/* ---------- 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: #ff7d5c;
  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 h3 {
  font: 600 17px/1 var(--display);
  letter-spacing: -0.01em;
}
.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 {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 3px;
}
.drow.dim {
  opacity: 0.6;
}
.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: 700 14px/1 var(--display);
  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);
}
.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 ---------- */
.pill {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  padding: 7px 9px;
  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.you {
  --c: var(--peach);
}
.pill.ok {
  --c: var(--mint);
}
.pill.wait {
  --c: var(--amber);
}
.pill.risk {
  --c: var(--rose);
}
.pill.info {
  --c: var(--violet-ink);
}
.pill.blue {
  --c: var(--cobalt);
}
.pip {
  font: 600 11px/1 var(--mono);
  color: #fff;
  background: #e8603a;
  border-radius: 999px;
  padding: 4px 7px;
  flex: none;
}
.who {
  font: 500 11px/1 var(--mono);
  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);
}
.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;
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}
.seg span,
.seg a {
  font: 500 13px/1 var(--ui);
  color: var(--ink-3);
  padding: 10px 14px;
  border-radius: 999px;
}
.seg .on {
  background: var(--fill-2);
  color: var(--ink);
}
.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;
}
.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;
}
.cos .chip.on {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.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: #fff;
  background: #e8603a;
  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: 700 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: 500 11px/1 var(--mono);
  color: var(--ink);
  white-space: nowrap;
}
.rng-x {
  display: flex;
  justify-content: space-between;
  font: 500 11px/1 var(--mono);
  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: 500 12px/1 var(--mono);
  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: linear-gradient(180deg, #8e78ff, 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: #ff7d5c;
}
.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: #ff7d5c;
}

/* ---------- operator review ---------- */
.proposal {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--violet) 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;
  position: relative;
}
.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);
}
.cos .side a.on {
  background: var(--fill);
  color: var(--ink);
}
.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);
}
.due {
  display: inline-flex;
  align-items: center;
  font: 600 12px/1 var(--ui);
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--peach);
  background: color-mix(in srgb, var(--peach) 14%, transparent);
}
.due.late {
  color: var(--rose);
  background: color-mix(in srgb, var(--rose) 14%, transparent);
}
.due.soft {
  color: var(--ink-2);
  background: var(--fill);
}
.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: 500 10px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.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;
}
.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). */
.head .title {
  flex: 1 1 260px;
  min-width: 0;
}
.head .title .ptitle {
  margin: 0;
}
.head + .seg {
  margin-top: 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack > .card,
.cols > .card {
  margin: 0;
}
.narrow {
  max-width: 760px;
  margin-top: 22px;
}
.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;
}
.ck .sev {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 6px;
}
.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;
}
.sec-h .h3 {
  font: 600 17px/1 var(--display);
  letter-spacing: -0.01em;
}
.r .why {
  color: var(--ink-2);
  margin-top: 4px;
}
.log {
  max-width: 760px;
}
.head .seg a {
  text-decoration: none;
}
/* `.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 .seg .soon {
  opacity: 0.6;
}
.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);
}
.override legend {
  padding: 0;
  font: 600 14px/1.3 var(--ui);
  color: var(--ink);
}
.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;
}
.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;
}
.onb form > .muted,
.onb .field + .muted,
.onb input.field + .muted {
  margin-top: 8px;
}
.onb form > .checks {
  margin-top: 20px;
}
.onb .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. */
.onb .field.pick select {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}
.onb .flabel.sm {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.onb .cats {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  min-width: 0;
}
.onb .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. */
.onb .field.pick:not(:has(option[value="other"]:checked)) + .flabel.sm,
.onb .field.pick:not(:has(option[value="other"]:checked)) + .flabel.sm + .field,
.onb .field.pick:not(:has(option[value="other"]:checked)) + .flabel.sm + .field + .muted {
  display: none;
}
.onb .docs + .label {
  margin-top: 18px;
}
.onb .cats .chips {
  margin-top: 8px;
}
.onb .chip.pick {
  position: relative;
  cursor: pointer;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
}
.onb .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. */
.onb .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;
}
.onb .chip.pick input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.onb .chip.pick input:checked + span::before {
  content: "\2713\00a0";
}
.onb .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;
}
.onb .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 18px;
}
.onb .check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--violet);
}
.onb .field input {
  flex: 1;
  min-width: 0;
  height: 50px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}
.onb .field:focus-within {
  outline: 2px solid var(--violet-ink);
  outline-offset: 2px;
}
.onb .field input:focus-visible {
  outline: none;
}
.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;
}
/* ---------- staff pages: invite a creator, early access requests (ADR 0041, ADR 0043) ---------- */
.staffnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 4px;
  font: 500 13px/1.3 var(--ui);
}
.staffnav a {
  color: var(--ink-2);
}
.staffnav a.on {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.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;
}
.creatorws .head .btn {
  flex: none;
  display: inline-flex;
  padding: 0 18px;
}

/* ---------- motion between pages ---------- */
/* A page fades in. Cross-document view transitions were tried and left out: under headless
   Chromium the transition layer kept the page from taking taps after a form's redirect. */
.topbar {
  display: none;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lay {
    animation: 0.22s ease both page-in;
  }
}

/* ---------- phone: the sidebar becomes a bottom tab bar ---------- */
@media (max-width: 820px) {
  .cos.web {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 15;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .topbar .brandline {
    padding: 0;
  }
  .topbar .lockup img {
    width: 120px;
  }
  .topbar form {
    margin: 0;
  }
  .topbar .linkbtn {
    min-height: 44px;
    padding: 0 4px;
    font: 500 13px/1 var(--ui);
    color: var(--ink-2);
    text-decoration: none;
  }
  .side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    flex: none;
    max-width: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .side .brandline,
  .side .classic,
  .side .me,
  .side form,
  .side .soon {
    display: none;
  }
  .side a {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 6px 2px;
    border-radius: 14px;
    font: 500 11px/1.1 var(--ui);
    text-align: center;
  }
  .side .count {
    position: absolute;
    top: 4px;
    left: calc(50% + 6px);
    margin: 0;
    padding: 2px 5px;
    border-radius: 999px;
    background: var(--violet-2);
    color: #fff;
    font-size: 10px;
  }
  .main {
    flex: 1 1 auto;
    width: 100%;
    padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
  }
  .tbl-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

/* 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;
}

/* ---------- 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: #b8431c;
  --mint: #14784a;
  --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;
  --action: #6247f2;
  --action-ink: #f3f1f8;
}
.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;
}
}
