/* Flocktive landing. Onest is served from here (OFL, fonts/OFL.txt): no request to Google, so no visitor IP leaves for it. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: one 1120px column. Rule from canvas «Flocktive — версия 2»: colour lives only in a section's header plate,
   bodies are white lists; mint = Сегодня, sky = Календарь, lilac = Люди, butter = Клуб, plain = Я; red text = debt only.
   App type scale 12·16·20·24·32; landing adds two display sizes (48, 64) for hero and section titles only. */
:root {
  --c-ground: #ffffff;
  --c-plain: #f3f2ec;
  --c-surface: #ffffff;
  --c-line: #e4e4dc;
  --c-shade: rgba(16, 35, 28, 0.07);
  --c-shadow: rgba(16, 35, 28, 0.12);
  --c-ink: #10231c;
  --c-ink-2: #33463e;
  --c-muted: #56655e;
  --c-danger: #a8321c;
  --c-forest: #0f5c45;
  --c-on-primary: #ffffff;
  --c-mint: #bfebd3;
  --c-sky: #c3e2fa;
  --c-lilac: #ddd0fa;
  --c-butter: #ffe08a;
  --c-coral: #ffc2b4;
  --c-phone: #10231c;
  --f: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-block: 28px;
  --r-inner: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --c-ground: #0d1310;
    --c-plain: #18201c;
    --c-surface: #232e28;
    --c-line: #33403a;
    --c-shade: rgba(230, 238, 233, 0.09);
    --c-shadow: rgba(0, 0, 0, 0.45);
    --c-ink: #e6eee9;
    --c-ink-2: #bfcbc4;
    --c-muted: #96a59d;
    --c-danger: #ff9d88;
    --c-forest: #8fd9b2;
    --c-on-primary: #0b2a1f;
    --c-mint: #1e3a2e;
    --c-sky: #1d3245;
    --c-lilac: #3a3357;
    --c-butter: #403614;
    --c-coral: #45261f;
    --c-phone: #000000;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --c-ground: #0d1310;
  --c-plain: #18201c;
  --c-surface: #232e28;
  --c-line: #33403a;
  --c-shade: rgba(230, 238, 233, 0.09);
  --c-shadow: rgba(0, 0, 0, 0.45);
  --c-ink: #e6eee9;
  --c-ink-2: #bfcbc4;
  --c-muted: #96a59d;
  --c-danger: #ff9d88;
  --c-forest: #8fd9b2;
  --c-on-primary: #0b2a1f;
  --c-mint: #1e3a2e;
  --c-sky: #1d3245;
  --c-lilac: #3a3357;
  --c-butter: #403614;
  --c-coral: #45261f;
  --c-phone: #000000;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body {
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--c-forest);
  outline-offset: 2px;
  border-radius: 12px;
}
main > section {
  padding-block: 72px;
}

/* real screens from the canvas «Flocktive — версия 2», scaled into frames */
.shot {
  position: relative;
  width: 100%;
  aspect-ratio: 390/844;
  overflow: hidden;
  border-radius: 42px;
  background: var(--c-ground);
}
.shot > .rd {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px !important;
  height: 844px !important;
  transform-origin: top left;
}
.shot .c-body {
  min-height: 0;
  overflow: hidden;
}
.shot .c-body > * {
  flex-shrink: 0;
}
.shot .c-tgpill {
  visibility: hidden;
}
.shot a,
.shot button,
.shot input {
  pointer-events: none;
}
.phone.real {
  aspect-ratio: auto;
}
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) 20px
    max(16px, env(safe-area-inset-left, 0px));
  margin: 0 auto;
  max-width: 1152px;
}
.gallery figure {
  margin: 0;
  flex: none;
  width: 240px;
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
}
.gallery .frame {
  background: var(--c-phone);
  border-radius: 40px;
  padding: 8px;
}
.gallery .shot {
  border-radius: 32px;
}
.gallery figcaption {
  display: grid;
  gap: 2px;
  padding: 0 4px;
}
.gallery figcaption b {
  font-size: 16px;
}
.gallery figcaption span {
  font-size: 12px;
  color: var(--c-muted);
}
.sec-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 760px;
}
.sec-sub {
  font-size: 20px;
  color: var(--c-ink-2);
  max-width: 46ch;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 16px/1 var(--f);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-line {
  background: transparent;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* header */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--c-ground);
}
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--c-ground) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}
.brand svg {
  width: 30px;
  height: 21px;
  color: var(--c-forest);
}
.lang {
  display: flex;
  background: var(--c-plain);
  border-radius: 999px;
  padding: 4px;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--c-ink-2);
  font: 600 12px var(--f);
  min-width: 44px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: 0 1px 3px var(--c-shadow);
}
@media (max-width: 560px) {
  .bar .btn-line {
    display: none;
  }
}

/* hero */
.hero {
  padding-block: 48px 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-text {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c-plain);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-2);
}
.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--c-ink-2);
  max-width: 36ch;
}
.cta-block {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.micro {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
}
@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero .phone {
    justify-self: center;
  }
}

/* objection strip */
.objections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) {
  .objections {
    grid-template-columns: 1fr;
  }
}
.obj {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--r-inner);
  background: var(--c-plain);
}
.obj svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  stroke: var(--c-forest);
}
.obj b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.obj span {
  font-size: 16px;
  color: var(--c-muted);
}

/* phone (Telegram frame, v2 screen rule) */
.phone {
  width: min(340px, 100%);
  max-width: 100%;
  aspect-ratio: 340/700;
  background: var(--c-phone);
  border-radius: 52px;
  padding: 11px;
  box-shadow: 0 30px 60px -24px var(--c-shadow);
}
.screen {
  height: 100%;
  background: var(--c-ground);
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 16px;
}
.plate {
  border-radius: var(--r-block);
  padding: 20px;
  display: grid;
  gap: 6px;
}
.plate .date {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-2);
}
.plate h4 {
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.plate .hchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.plate .hchip {
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-shade);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0 4px;
}
.rows li + li {
  border-top: 1px solid var(--c-line);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 0;
}
.row .time {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 46px;
}
.row .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.row .t {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .s {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .warn {
  color: var(--c-danger);
  font-weight: 600;
}
.rbtn {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c-plain);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.rbtn.go {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
/* Telegram chat mock: the integration, shown once */
.chat {
  background: var(--c-plain);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 12px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.chat-head b {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.chat-head small {
  font-size: 12px;
  color: var(--c-muted);
}
.chat-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-mint);
  display: grid;
  place-items: center;
  flex: none;
}
.chat-av svg {
  width: 22px;
  height: 15px;
  color: var(--c-forest);
}
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
}
.bubble {
  max-width: 85%;
  background: var(--c-surface);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
  display: grid;
  gap: 8px;
  box-shadow: 0 1px 1px var(--c-shadow);
}
.bubble.mine {
  align-self: flex-end;
  background: var(--c-mint);
  border-radius: 18px 18px 6px 18px;
}
.ibtn {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-shade);
}
.chat-open {
  margin: 0 12px 22px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--c-forest);
  color: var(--c-on-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.mint {
  background: var(--c-mint);
}
.sky {
  background: var(--c-sky);
}
.lilac {
  background: var(--c-lilac);
}
.butter {
  background: var(--c-butter);
}
.plain {
  background: var(--c-plain);
}

/* benefits: each one is an app screen in miniature — coloured header plate, white rows */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}
.ben {
  border: 1px solid var(--c-line);
  border-radius: 32px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ben .plate {
  gap: 10px;
}
.ben .sect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-2);
}
.ben .sect svg {
  width: 16px;
  height: 16px;
}
.ben p.how {
  font-size: 16px;
  color: var(--c-ink-2);
}
.ben .rows {
  padding: 0 14px 6px;
}

/* roles */
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .roles {
    grid-template-columns: 1fr;
  }
  .roles .phone {
    justify-self: center;
  }
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 24px;
}
.seg button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  color: var(--c-ink);
  font: 600 16px var(--f);
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--c-ink);
  color: var(--c-ground);
  box-shadow: none;
}
.role-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
}
.role-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid var(--c-line);
}
.role-list li:last-child {
  border-bottom: 1px solid var(--c-line);
}
.role-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--c-forest);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  border: 1px solid var(--c-line);
  border-radius: var(--r-block);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.step::before {
  counter-increment: s;
  content: counter(s);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-forest);
  color: var(--c-on-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}
.step p {
  color: var(--c-ink-2);
}

/* compare */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r-block);
  border: 1px solid var(--c-line);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 16px;
}
th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
}
thead th.us {
  color: var(--c-ink);
  background: var(--c-mint);
}
td.us {
  font-weight: 600;
  background: color-mix(in srgb, var(--c-mint) 35%, transparent);
}
td:first-child {
  font-weight: 600;
}
td:not(:first-child):not(.us) {
  color: var(--c-muted);
}

/* trust */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 760px) {
  .trust {
    grid-template-columns: 1fr;
  }
}
.tr {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--r-block);
  background: var(--c-plain);
}
.tr .ic {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-surface);
  display: grid;
  place-items: center;
}
.tr .ic svg {
  width: 22px;
  height: 22px;
}
.tr h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.tr p {
  color: var(--c-ink-2);
}

/* faq */
.faq {
  display: grid;
  max-width: 800px;
  border-top: 1px solid var(--c-line);
}
details {
  border-bottom: 1px solid var(--c-line);
}
summary {
  cursor: pointer;
  list-style: none;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
summary::-webkit-details-marker {
  display: none;
}
summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.2s;
}
details[open] summary svg {
  transform: rotate(180deg);
}
details p {
  padding-bottom: 20px;
  color: var(--c-ink-2);
  max-width: 62ch;
}
@media (prefers-reduced-motion: reduce) {
  summary svg {
    transition: none;
  }
}

/* final */
.final {
  background: var(--c-mint);
  border-radius: 36px;
  padding: 56px 48px;
  display: grid;
  gap: 20px;
  justify-items: start;
  position: relative;
  overflow: hidden;
}
.final p {
  color: var(--c-ink-2);
  font-size: 20px;
  max-width: 40ch;
}
.final .big-mark {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 340px;
  height: 236px;
  color: var(--c-ink);
  opacity: 0.07;
}
@media (max-width: 600px) {
  .final {
    padding: 36px 20px;
  }
}
footer {
  padding-block: 24px 48px;
  font-size: 12px;
  color: var(--c-muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* ---- canvas CSS: flock.css + layout-v2.css ---- */
/* Flocktive design system — direction C «Стая»: warm solid colour blocks, Onest, forest-green actions.
   ONE stylesheet for every artboard. Root: <div class="rd rd-c"> (add .is-dark for the dark theme).
   Every colour goes through a token; .rd-c.is-dark overrides tokens only.
   Catalogue for designers: SYSTEM.md. */

/* ======================================================================
   1. TOKENS — light
   ====================================================================== */

.rd-c {
  /* colour: grounds and surfaces */
  --c-ground: #ffffff; /* screen background */
  --c-plain: #f3f2ec; /* quiet fill: plain blocks, fields, pills */
  --c-surface: #ffffff;
  --c-on-block: #ffffff; /* white buttons and chips on colour blocks */
  --c-selected: var(--c-ink); /* active pill, active weekday */
  --c-on-selected: var(--c-on-ink); /* raised: cards/buttons on colour blocks, sheet, nav, dock */
  --c-line: #e4e4dc; /* borders and dividers on white/plain */
  --c-rule: rgba(16, 35, 28, 0.14); /* hairlines inside colour blocks */
  /* colour: text */
  --c-ink: #10231c;
  --c-ink-2: #33463e;
  --c-muted: #56655e;
  --c-danger: #a8321c;
  /* colour: action */
  --c-forest: #0f5c45; /* primary fill, active states, marks */
  --c-on-primary: #ffffff; /* text/icon on --c-forest */
  --c-on-ink: #ffffff; /* text/icon on an --c-ink fill (active pill, count, toast) */
  --c-on-ink-accent: #bfebd3; /* action text on an --c-ink fill (toast «Отменить») */
  /* colour: blocks (meaning: mint = ok/today, butter = attention, sky = info, coral = problem, lilac = people) */
  --c-mint: #bfebd3;
  --c-mint-deep: #a2dcbd;
  --c-butter: #ffe08a;
  --c-sky: #c3e2fa;
  --c-coral: #ffc2b4;
  --c-lilac: #ddd0fa;
  /* colour: overlays and effects */
  --c-shade: rgba(16, 35, 28, 0.07); /* translucent Telegram pills */
  --c-shadow: rgba(16, 35, 28, 0.12); /* the only shadow: active segment */
  --c-scrim: #4c5a54; /* screen behind a bottom sheet */
  --c-on-scrim: rgba(255, 255, 255, 0.72); /* dimmed title behind a sheet */
  --c-knob: #ffffff; /* switch knob when off */
  --c-skeleton: #e2e1d8; /* skeleton shapes */
  /* radii */
  --r-block: 28px;
  --r-inner: 20px;
  --r-pill: 999px;
  /* spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 28px;
  /* type */
  --t-xs: 13px;
  --t-s: 15px;
  --t-m: 17px;
  --t-l: 22px;
  --t-xl: 34px;
  --t-num: 44px;
  --font: 'Onest', 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;

  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--t-s);
  line-height: 1.3;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 0;
}

/* ======================================================================
   2. TOKENS — dark
   Contrast (WCAG 2.x relative luminance, computed by redesign/contrast.mjs; text needs 4.5:1, text >= 24px 3:1):
     ink #e6eee9      on ground #0d1310 15.90 · plain #18201c 14.08 · surface #232e28 11.90
     ink-2 #bfcbc4    on ground 11.23 · plain 9.95 · surface 8.41
     muted #96a59d    on ground 7.31 · plain 6.47 · surface 5.47
     danger #ff9d88   on ground 9.33 · plain 8.26 · surface 6.99 · coral 6.73
     ink              on mint #1e3a2e 10.45 · butter #403614 10.12 · sky #1d3245 11.15 · coral #45261f 11.46 · lilac #2e2944 11.72
     ink-2            on mint 7.39 · butter 7.15 · sky 7.87 · coral 8.10 · lilac 8.28
     muted            on mint 4.80 · butter 4.65 · sky 5.12 · coral 5.27 · lilac 5.38
     on-primary #0b2a1f on forest #8fd9b2 9.33
     on-ink #0d1310   on ink 15.90 · on-ink-accent #0f5c45 on ink 6.74
     on-scrim (rgba .66) on scrim #060907 7.52
     forest as mark/text on ground 11.39 · on surface 8.53
     No dark pair is below 4.5:1.
   ====================================================================== */

.rd-c.is-dark {
  --c-ground: #0d1310;
  --c-plain: #18201c;
  --c-surface: #232e28;
  --c-on-block: rgba(230, 238, 233, 0.16);
  --c-selected: #3d4c45;
  --c-on-selected: #e6eee9;
  --c-line: #33403a;
  --c-rule: rgba(230, 238, 233, 0.16);
  --c-ink: #e6eee9;
  --c-ink-2: #bfcbc4;
  --c-muted: #96a59d;
  --c-danger: #ff9d88;
  --c-forest: #8fd9b2;
  --c-on-primary: #0b2a1f;
  --c-on-ink: #0d1310;
  --c-on-ink-accent: #0f5c45;
  --c-mint: #1e3a2e;
  --c-mint-deep: #2a5040;
  --c-butter: #403614;
  --c-sky: #1d3245;
  --c-coral: #45261f;
  --c-lilac: #3a3357;
  --c-shade: rgba(230, 238, 233, 0.09);
  --c-shadow: rgba(0, 0, 0, 0.45);
  --c-scrim: #151c18;
  --c-on-scrim: rgba(230, 238, 233, 0.66);
  --c-knob: #bfcbc4;
  --c-skeleton: #2a3530;
  color-scheme: dark;
}

/* ======================================================================
   3. RESET
   ====================================================================== */

.rd-c *,
.rd-c *::before,
.rd-c *::after {
  box-sizing: border-box;
}
:where(.rd-c) :where(button) {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
:where(.rd-c) :where(p, h1, h2, h3, ul, ol, li) {
  margin: 0;
  padding: 0;
  font: inherit;
  list-style: none;
}
:where(.rd-c) :where(a) {
  color: inherit;
  text-decoration: none;
}
:where(.rd-c) :where(svg) {
  display: block;
  flex: none;
}
:where(.rd-c) :where(input) {
  font: inherit;
  color: inherit;
  margin: 0;
}

/* ======================================================================
   4. FRAME — safe area, Telegram row, body, nav, dock, sheet, floating button
   ====================================================================== */

.rd-c .c-safe {
  height: 54px;
  flex: none;
}
/* Telegram's own button row (we never put our buttons here) */
.rd-c .c-tg {
  position: relative;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-3);
}
.rd-c .c-tgpill {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--c-shade);
  color: var(--c-ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rd-c .c-tgpill-dots {
  width: 44px;
  padding: 0;
}
.rd-c .c-tgmid {
  position: absolute;
  left: 96px;
  right: 96px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
}
.rd-c .c-tgmid-title {
  font-size: var(--t-m);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rd-c .c-mark {
  color: var(--c-forest);
}

.rd-c .c-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4) var(--s-6);
}
.rd-c .c-body-inner {
  padding-bottom: 50px; /* 34 safe area + 16 */
}
.rd-c .c-body-fab {
  padding-bottom: 76px; /* room so the floating button covers nothing */
}

/* bottom navigation of tab roots */
/* a rounded pill floating over the screen (D-320): 12 from the sides, 8 over the 34 safe area;
   a hairline ring and a soft shadow lift it off the ground in both themes */
.rd-c .c-nav {
  margin: auto var(--s-3) 42px;
  flex: none;
  display: flex;
  padding: 4px;
  background: var(--c-surface);
  border-radius: var(--r-pill);
  box-shadow:
    0 0 0 1px var(--c-line),
    0 8px 24px var(--c-shadow);
}
/* a tab: the icon in a small capsule that fills when active, the word under it */
.rd-c .c-nav a {
  flex: 1 1 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rd-c .c-nav a > svg {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
}
.rd-c .c-nav a.is-active {
  color: var(--c-ink);
  font-weight: 700;
}
.rd-c .c-nav a.is-active > svg {
  background: var(--c-forest);
  color: var(--c-on-primary);
}

/* sticky action dock at the bottom of a full screen (our own main action) */
.rd-c .c-dock {
  margin-top: auto;
  flex: none;
  padding: var(--s-3) var(--s-4) 46px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  display: flex;
  gap: var(--s-2);
}
.rd-c .c-dock-center {
  align-items: center;
}
/* composer in a dock: field grows, round send button */
.rd-c .c-compose {
  align-items: center;
}

/* bottom sheet: used INSTEAD of a separate form screen.
   Artboard root gets .c-sheet-board; first child .c-under is the dimmed screen behind (title only). */
.rd-c.c-sheet-board {
  background: var(--c-scrim);
}
.rd-c .c-under {
  flex: none;
  height: 150px;
  padding: 98px var(--s-5) 0;
  color: var(--c-on-scrim);
  font-size: var(--t-l);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.rd-c .c-sheet {
  flex: 1 1 auto;
  background: var(--c-surface);
  border-radius: var(--r-block) var(--r-block) 0 0;
  padding: var(--s-3) var(--s-4) 50px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.rd-c .c-grab {
  align-self: center;
  width: 40px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--c-line);
  flex: none;
}
.rd-c .c-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 var(--s-1);
}

/* the one primary action of a tab root, floating above the navigation (put it on a .c-round) */
.rd-c .c-fab {
  position: absolute;
  right: var(--s-4);
  bottom: 114px; /* floating nav 60 + 42 under it + 12 */
}

/* ======================================================================
   5. TYPE
   ====================================================================== */

.rd-c .c-h1 {
  font-size: var(--t-xl);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.rd-c .c-h2 {
  font-size: var(--t-l);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.rd-c .c-title {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.rd-c .c-kicker {
  font-size: var(--t-s);
  font-weight: 700;
  color: var(--c-ink-2);
}
.rd-c .c-strong {
  font-size: var(--t-m);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.rd-c .c-sub {
  font-size: var(--t-s);
  color: var(--c-ink-2);
}
.rd-c .c-small {
  font-size: var(--t-xs);
  color: var(--c-ink-2);
}
.rd-c .c-muted {
  color: var(--c-muted);
}
.rd-c .c-num {
  font-size: var(--t-num);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.rd-c .c-b {
  font-weight: 700;
  color: var(--c-ink);
}
.rd-c .c-name {
  font-size: var(--t-m);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.rd-c .c-amt {
  font-size: var(--t-m);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.rd-c .c-note-text {
  font-size: var(--t-m);
  line-height: 1.35;
  color: var(--c-ink);
}

/* home greeting */
.rd-c .c-hello {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-1) var(--s-3);
}
.rd-c .c-date {
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.rd-c .c-hero-time {
  font-size: var(--t-num);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
/* time column of an agenda row */
.rd-c .c-time {
  width: 68px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}
.rd-c .c-time-from {
  font-size: var(--t-l);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
/* fees: month and total */
.rd-c .c-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-1) 0 var(--s-2);
}
.rd-c .c-month-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.rd-c .c-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.rd-c .c-total-num {
  font-size: 68px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.rd-c .c-total-of {
  font-size: var(--t-l);
  font-weight: 700;
  color: var(--c-ink-2);
  letter-spacing: -0.02em;
}
.rd-c .c-owed {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-align: right;
}
.rd-c .c-owed-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
}

/* ======================================================================
   6. SURFACES — blocks, cards, tiles
   ====================================================================== */

.rd-c .c-block {
  position: relative;
  border-radius: var(--r-block);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
}
.rd-c .c-mint {
  background: var(--c-mint);
}
.rd-c .c-butter {
  background: var(--c-butter);
}
.rd-c .c-sky {
  background: var(--c-sky);
}
.rd-c .c-coral {
  background: var(--c-coral);
}
.rd-c .c-lilac {
  background: var(--c-lilac);
}
.rd-c .c-plain {
  background: var(--c-plain);
}

/* block whose last row already gives the bottom air (settings group) */
.rd-c .c-group {
  padding-bottom: var(--s-2);
}
/* one-line attention strip on a block: text left, one button right */
.rd-c .c-strip {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
}
/* half-width block in a .c-grid2 (parent home, club) */
.rd-c .c-half {
  padding: 18px;
  gap: var(--s-2);
  justify-content: flex-start;
}
.rd-c .c-half-num {
  font-size: var(--t-xl);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.rd-c .c-half-foot {
  margin-top: auto;
}
/* club tab: a large tile with an icon, a name and one live number (on a .c-half) */
.rd-c .c-bigtile {
  min-height: 140px;
  color: var(--c-ink);
}
.rd-c .c-bigtile-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-s);
  font-weight: 700;
}
.rd-c .c-bigtile-num {
  margin-top: auto;
}
/* big decorative flock in a block corner */
.rd-c .c-flock {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--c-mint-deep);
  pointer-events: none;
}
/* the line right after the mark leaves room for it: a long club name wraps before the mark (D-320) */
.rd-c .c-flock + * {
  padding-right: 84px;
  overflow-wrap: break-word;
}

/* white note inside a colour block */
.rd-c .c-note {
  background: var(--c-surface);
  border-radius: var(--r-inner);
  padding: 14px var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* number + label inside a block */
.rd-c .c-stat {
  border-radius: var(--r-inner);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rd-c .c-stat-num {
  font-size: var(--t-xl);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.rd-c .c-stat-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-ink-2);
}
/* plain card: text and one trailing control (role, place, schedule rule) */
.rd-c .c-card {
  border-radius: var(--r-block);
  background: var(--c-plain);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.rd-c .c-card-tall {
  min-height: 84px;
}
/* debtor card (fees, requests) */
.rd-c .c-debtor {
  border-radius: var(--r-block);
  background: var(--c-plain);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
/* person / thing id card in a block */
.rd-c .c-idcard {
  align-items: flex-start;
  gap: var(--s-4);
}
/* action tiles under an id card */
.rd-c .c-tiles {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--s-2);
}
.rd-c .c-tile {
  min-height: 76px;
  border-radius: var(--r-inner);
  background: var(--c-plain);
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  white-space: nowrap;
}
.rd-c .c-tile-primary {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
/* sections */
.rd-c .c-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-4);
}
.rd-c .c-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--s-1);
}
/* title row of a tab root: big title left, the one primary action right */
/* a heading with its button: 12 under it plus the body gap keep 24 px to the next control,
   so the button is not hit instead of the switch below it */
.rd-c .c-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-1) var(--s-3);
}
/* a person row: the card link, then «Позвонить» with whom under it */
.rd-c .c-prow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.rd-c .c-prow > .c-tap {
  flex: 1 1 auto;
  min-width: 0;
}
.rd-c .c-call {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 72px;
  min-height: 56px;
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--t-xs);
  font-weight: 600;
}
.rd-c .c-call > svg {
  box-sizing: content-box;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-mint);
  color: var(--c-forest);
}
.rd-c .c-call-who {
  color: var(--c-ink-2);
  font-weight: 500;
}
.rd-c .c-name-2 {
  display: flex;
  flex-direction: column;
}
/* day heading inside a list screen */
.rd-c .c-day-head {
  padding: var(--s-3) var(--s-1) 0;
}
/* closing row of a screen: quiet action left, main right */
.rd-c .c-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-3);
}

/* ======================================================================
   7. BUTTONS
   Rule: ONE forest-filled (.c-btn-primary) action per screen or sheet.
   Repeated row actions use .c-btn-tonal (on white/plain) or .c-btn-white (on a colour block).
   ====================================================================== */

.rd-c .c-btn {
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-size: var(--t-s);
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.rd-c .c-btn-primary {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.rd-c .c-btn-white {
  background: var(--c-on-block);
  color: var(--c-ink);
}
.rd-c .c-btn-line {
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: inset 0 0 0 2px var(--c-line);
}
.rd-c .c-btn-quiet {
  color: var(--c-ink-2);
  font-weight: 600;
  padding: 0 var(--s-3);
}
.rd-c .c-btn-danger {
  color: var(--c-danger);
  font-weight: 600;
  padding: 0 var(--s-3);
}
.rd-c .c-btn-big {
  min-height: 56px;
  font-size: var(--t-m);
}
.rd-c .c-btn-wide {
  width: 100%;
}
.rd-c .c-btn-fixed {
  width: 108px;
  padding: 0;
}
.rd-c .c-btn-sm {
  min-height: 44px;
  padding: 0 var(--s-4);
}
.rd-c .c-btn-tonal {
  background: var(--c-mint);
  color: var(--c-ink);
}
.rd-c .c-btn-danger-fill {
  background: var(--c-coral);
  color: var(--c-ink);
}
/* a button that takes the rest of its row (.c-btn is flex: none) */
.rd-c .c-btn.c-btn-fill {
  flex: 1 1 0;
}
/* yes / no answer pair */
.rd-c .c-answer {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.rd-c .c-answer .c-btn {
  min-height: 56px;
  padding: 0 var(--s-3);
}

/* round icon buttons */
.rd-c .c-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rd-c .c-round-primary {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.rd-c .c-round-plain {
  background: var(--c-plain);
  color: var(--c-ink);
}
/* quiet icon-only button (edit, remove a row) */
.rd-c .c-iconbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--c-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rd-c .c-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-s);
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ======================================================================
   8. FORM CONTROLS
   ====================================================================== */

/* form: label above, filled field, one hint line at most */
.rd-c .c-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.rd-c .c-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rd-c .c-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-ink-2);
  padding: 0 var(--s-1);
}
.rd-c .c-input,
.rd-c .c-select,
.rd-c .c-area {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  border-radius: var(--r-inner);
  background: var(--c-plain);
  padding: 0 var(--s-4);
  font-size: var(--t-m);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  text-align: left;
}
/* multi-line field; on a <textarea> */
.rd-c .c-area {
  min-height: 96px;
  padding: 14px var(--s-4);
  align-items: flex-start;
  line-height: 1.35;
}
.rd-c textarea.c-area {
  display: block;
  resize: none;
  font-family: inherit;
  margin: 0;
}
.rd-c .c-input::placeholder,
.rd-c textarea.c-area::placeholder {
  color: var(--c-muted);
  opacity: 1;
}
.rd-c .c-field.is-error .c-input,
.rd-c .c-field.is-error .c-select,
.rd-c .c-field.is-error .c-area {
  box-shadow: inset 0 0 0 2px var(--c-danger);
}
.rd-c .c-hint {
  font-size: var(--t-xs);
  color: var(--c-muted);
  padding: 0 var(--s-1);
}
.rd-c .c-field.is-error .c-hint {
  color: var(--c-danger);
  font-weight: 600;
}
.rd-c .c-hint-count {
  text-align: right;
}
.rd-c .c-hint-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}
.rd-c .c-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
/* fields and pills placed on a colour or plain block turn surface-white */
.rd-c .c-on-color .c-pill {
  background: var(--c-surface);
}
.rd-c .c-on-color .c-pill.is-active {
  background: var(--c-ink);
}
.rd-c .c-on-color .c-input {
  background: var(--c-surface);
}
.rd-c .c-compose .c-input {
  border-radius: var(--r-pill);
  padding: 0 var(--s-5);
}

/* big editable amount of a sheet */
.rd-c .c-amount {
  border-radius: var(--r-block);
  background: var(--c-plain);
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
}
.rd-c .c-amount input {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: var(--t-num);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}

/* switch */
.rd-c .c-switch {
  width: 52px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--c-line);
  position: relative;
  flex: none;
}
.rd-c .c-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-knob);
}
.rd-c .c-switch.is-on {
  background: var(--c-forest);
}
.rd-c .c-switch.is-on::after {
  left: 23px;
  background: var(--c-on-primary);
}
/* a row with a title, optional one-line summary and a switch / chevron / value */
.rd-c .c-opt {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  text-align: left;
}

/* checkbox row (consent): a 44px target with a round forest tick, text beside */
.rd-c .c-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: 0 var(--s-1);
}
.rd-c .c-checkbox {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rd-c .c-checkbox span {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--c-plain);
  box-shadow: inset 0 0 0 2px var(--c-line);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rd-c .c-checkbox[aria-checked='true'] span {
  background: var(--c-forest);
  box-shadow: none;
  color: var(--c-on-primary);
}
.rd-c .c-check-text {
  padding-top: 11px;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--c-ink);
}

/* single-choice round mark at the end of a row */
.rd-c .c-pick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--c-line);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rd-c .c-pick.is-on {
  background: var(--c-forest);
  box-shadow: none;
  color: var(--c-on-primary);
}

/* segmented switch (2–3 options, one row) */
.rd-c .c-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--c-plain);
}
.rd-c .c-seg button {
  min-height: 44px;
  border-radius: var(--r-pill);
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--c-ink-2);
  text-align: center;
  white-space: nowrap;
}
.rd-c .c-seg button.is-active {
  background: var(--c-surface);
  color: var(--c-ink);
  font-weight: 700;
  box-shadow: 0 1px 2px var(--c-shadow);
}
/* options that differ a lot in length */
.rd-c .c-seg-fit {
  grid-auto-flow: row;
  grid-template-columns: auto auto;
}
.rd-c .c-seg-fit button {
  padding: 0 var(--s-3);
}
/* compact three-step control at the end of an access row */
.rd-c .c-seg3 {
  width: 222px;
  flex: none;
}
.rd-c .c-seg3 button {
  font-size: var(--t-xs);
}
/* fees filter: three equal buttons */
.rd-c .c-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  padding-top: var(--s-2);
}
.rd-c .c-filter .c-btn {
  padding: 0 var(--s-2);
  background: var(--c-plain);
  font-weight: 600;
}
.rd-c .c-filter .c-btn.is-active {
  background: var(--c-forest);
  color: var(--c-on-primary);
  font-weight: 700;
}

/* filter pills: ONE horizontally scrolling row that bleeds to the screen edge.
   A pill cut at the right edge is the intended "there is more" affordance. */
/* with a mouse a row of pills shows a thin scroll bar, fades where more pills are,
   and stops short of the page's own scroll bar on the right */
@media (hover: hover) and (pointer: fine) {
  .rd-c .c-pills {
    scrollbar-width: thin;
    margin-right: 0;
    padding-bottom: 6px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
}
.rd-c .c-pills {
  --bleed: var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--bleed));
  padding: 0 var(--bleed);
  scroll-padding: 0 var(--bleed);
}
.rd-c .c-pills::-webkit-scrollbar {
  display: none;
}
.rd-c .c-block .c-pills {
  --bleed: var(--s-5);
}
.rd-c .c-pills > * {
  flex: none;
}
.rd-c .c-pill {
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-plain);
  font-size: var(--t-s);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rd-c .c-pill.is-active {
  background: var(--c-selected);
  color: var(--c-on-selected);
  font-weight: 700;
}
.rd-c .c-pills-tight {
  gap: 6px;
}
.rd-c .c-pills-tight .c-pill {
  padding: 0 var(--s-3);
}
.rd-c .c-pill-plus {
  width: 44px;
  padding: 0;
  justify-content: center;
}
/* quick pills: three equal choices under a field */
.rd-c .c-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.rd-c .c-quick .c-pill {
  padding: 0;
  justify-content: center;
  font-size: var(--t-xs);
}

/* quantity stepper (two .c-round around a number) */
.rd-c .c-step {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}
.rd-c .c-step-num {
  min-width: 32px;
  text-align: center;
  font-size: var(--t-l);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* weekday toggles: 7 round buttons in a row */
.rd-c .c-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.rd-c .c-weekdays button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-plain);
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--c-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rd-c .c-weekdays button.is-active {
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-weight: 700;
}

/* search */
.rd-c .c-search {
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--c-plain);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--s-5);
  color: var(--c-muted);
}
.rd-c .c-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--t-m);
  color: var(--c-ink);
}
.rd-c .c-search input::placeholder {
  color: var(--c-muted);
  opacity: 1;
}

/* ======================================================================
   9. LISTS AND ROWS
   ====================================================================== */

/* list of rows inside a colour block, separated by hairlines */
.rd-c .c-list {
  display: flex;
  flex-direction: column;
}
.rd-c .c-list > li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 0;
  border-top: 1px solid var(--c-rule);
}
.rd-c .c-list > li:last-child {
  padding-bottom: 0;
}
/* one row look for every list (D-320): a row that is a button carries its own padding */
.rd-c .c-list > li:has(> .c-tap),
.rd-c .c-list-tight > li {
  padding: 0;
}
/* the tappable row itself (a link or a button) */
.rd-c .c-tap {
  width: 100%;
  min-height: 56px;
  padding-block: 10px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-align: left;
}
/* home news lines */
.rd-c .c-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-c .c-news li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
/* trailing time + unread dot of a row */
.rd-c .c-when {
  flex: none;
  align-self: flex-start;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  color: var(--c-muted);
}

/* fold rows: a title, a summary at the right, a chevron */
.rd-c .c-fold {
  display: flex;
  flex-direction: column;
  padding: 0 var(--s-1);
}
.rd-c .c-fold > li {
  border-top: 1px solid var(--c-line);
}
.rd-c .c-fold > li:first-child {
  border-top: 0;
}
.rd-c .c-fold .c-tap {
  justify-content: space-between;
}
.rd-c .c-fold-sum {
  margin-left: auto;
  font-size: var(--t-s);
  color: var(--c-muted);
  text-align: right;
}
.rd-c .c-chev {
  color: var(--c-muted);
}

/* plain list on white (people, items, threads): avatar/icon, two lines, trailing */
.rd-c .c-rows {
  display: flex;
  flex-direction: column;
  padding: 0 var(--s-1);
}
.rd-c .c-rows > li {
  border-top: 1px solid var(--c-line);
}
.rd-c .c-rows > li:first-child {
  border-top: 0;
}
.rd-c .c-rows .c-tap {
  min-height: 64px;
  padding: 8px 0;
}
/* row that is not a link: avatar, two lines, trailing control */
.rd-c .c-static {
  min-height: 64px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
/* access row: area name (+ scope choice) left, .c-seg3 right */
.rd-c .c-access {
  padding: 6px 0;
}
.rd-c .c-scope {
  min-height: 44px;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-align: left;
}
.rd-c .c-scope-val {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-ink-2);
}
/* consequence lines of a confirmation sheet: small icon, one line of text */
.rd-c .c-consequences {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-1) var(--s-1) var(--s-2);
}
.rd-c .c-consequences > li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--c-ink);
}
.rd-c .c-consequences svg {
  color: var(--c-ink-2);
}

/* person rows with attendance toggles */
.rd-c .c-people {
  display: flex;
  flex-direction: column;
}
.rd-c .c-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-3);
  padding: 10px var(--s-1);
  border-top: 1px solid var(--c-line);
}
.rd-c .c-person:first-child {
  border-top: 0;
}
.rd-c .c-togs {
  display: flex;
  gap: var(--s-2);
  flex: none;
}
.rd-c .c-tog {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-plain);
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rd-c .c-tog.is-yes {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.rd-c .c-tog.is-no {
  background: var(--c-coral);
  color: var(--c-ink);
}
/* full-width coral line under a person (e.g. "absent 3 times") */
/* a warning written on a row's own line, e.g. a run of misses (D-320) */
.rd-c .c-warn-text {
  color: var(--c-danger);
  font-weight: 600;
}
.rd-c .c-alert {
  flex: 0 0 100%;
  margin-top: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-inner);
  background: var(--c-coral);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-s);
  font-weight: 700;
}

/* week strip: 7 day cells, the selected one forest, a dot under days with events */
.rd-c .c-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-1);
}
.rd-c .c-week-day {
  min-height: 72px;
  border-radius: var(--r-inner);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rd-c .c-week-num {
  font-size: var(--t-m);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.rd-c .c-week-dot {
  width: 6px;
  height: 6px;
  margin-top: 2px;
  border-radius: 50%;
  background: transparent;
}
.rd-c .c-week-day.has-events .c-week-dot {
  background: var(--c-forest);
}
.rd-c .c-week-day.is-active {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.rd-c .c-week-day.is-active .c-week-num {
  color: var(--c-on-primary);
}
.rd-c .c-week-day.is-active .c-week-dot {
  background: var(--c-on-primary);
}

/* chat */
.rd-c .c-chat {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.rd-c .c-bubble {
  align-self: flex-start;
  max-width: 292px;
  padding: 10px var(--s-4);
  border-radius: var(--r-inner);
  background: var(--c-plain);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--t-m);
  line-height: 1.3;
}
.rd-c .c-bubble-me {
  align-self: flex-end;
  background: var(--c-mint);
}
.rd-c .c-bubble time {
  align-self: flex-end;
  font-size: var(--t-xs);
  color: var(--c-ink-2);
}
.rd-c .c-chat-note {
  align-self: center;
  padding: var(--s-2) 0;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-ink-2);
  text-align: center;
}

/* ======================================================================
   10. SMALL PARTS
   ====================================================================== */

/* avatar */
.rd-c .c-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-lilac);
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-s);
  font-weight: 800;
  letter-spacing: -0.01em;
  flex: none;
}
.rd-c .c-av-me {
  width: 48px;
  height: 48px;
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.rd-c .c-av-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.rd-c .c-av-xl {
  width: 84px;
  height: 84px;
  background: var(--c-surface);
  font-size: 30px;
  letter-spacing: -0.03em;
}
/* avatar on a lilac block */
.rd-c .c-av-white {
  background: var(--c-surface);
}
/* avatar stack: overlapping avatars ringed with the colour they sit on */
.rd-c .c-avs {
  display: flex;
  align-items: center;
  flex: none;
}
.rd-c .c-avs .c-av {
  border: 2px solid var(--c-plain);
}
.rd-c .c-avs .c-av + .c-av {
  margin-left: -6px;
}
.rd-c .c-lilac .c-avs .c-av {
  background: var(--c-surface);
  border-color: var(--c-lilac);
}
.rd-c .c-mint .c-avs .c-av {
  border-color: var(--c-mint);
}
.rd-c .c-butter .c-avs .c-av {
  border-color: var(--c-butter);
}
.rd-c .c-sky .c-avs .c-av {
  border-color: var(--c-sky);
}
.rd-c .c-coral .c-avs .c-av {
  border-color: var(--c-coral);
}
/* "+N" as one more avatar */
.rd-c .c-av-more {
  background: var(--c-surface);
  color: var(--c-ink-2);
}
/* "+N" as text after the stack */
.rd-c .c-avs-more {
  margin-left: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-ink-2);
}

/* chip: non-tappable label */
.rd-c .c-chip {
  min-height: 28px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-on-block);
  color: var(--c-ink);
  font-size: var(--t-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.rd-c .c-chip-plain {
  background: var(--c-plain);
}
.rd-c .c-chip-coral {
  background: var(--c-coral);
}
.rd-c .c-chip-mint {
  background: var(--c-mint);
}
.rd-c .c-chip-butter {
  background: var(--c-butter);
}
.rd-c .c-chip-line {
  box-shadow: inset 0 0 0 1.5px var(--c-line);
}
.rd-c .c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* count badge */
.rd-c .c-count {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-size: var(--t-s);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* icon tile */
.rd-c .c-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-plain);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rd-c .c-icon-xl {
  width: 84px;
  height: 84px;
  border-radius: var(--r-inner);
  background: var(--c-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* status marks */
.rd-c .c-ok {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-mint);
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rd-c .c-dot-new {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-forest);
  flex: none;
}

/* progress bar */
.rd-c .c-bar {
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  overflow: hidden;
}
.rd-c .c-bar span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--c-forest);
}

/* steps: 5 segments */
.rd-c .c-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.rd-c .c-steps span {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
}
.rd-c .c-steps span.is-done {
  background: var(--c-forest);
  box-shadow: none;
}

/* attendance dots: filled = came, ring = missed */
.rd-c .c-dots {
  display: flex;
  gap: 8px;
}
.rd-c .c-dots span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-forest);
}
.rd-c .c-dots span.is-miss {
  background: transparent;
  box-shadow: inset 0 0 0 2.5px var(--c-forest);
}

/* ======================================================================
   11. FEEDBACK — toast, inline error, empty state, skeleton, offline banner
   ====================================================================== */

/* toast: dark pill above the nav/dock, one undo action */
.rd-c .c-toast {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 6px 6px 6px var(--s-5);
  border-radius: var(--r-inner);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-size: var(--t-s);
  font-weight: 600;
}
.rd-c .c-toast-text {
  flex: 1 1 0;
  min-width: 0;
}
.rd-c .c-toast-action {
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  color: var(--c-on-ink-accent);
  font-weight: 700;
  flex: none;
}
/* placement over a screen: bottom, above the nav */
.rd-c .c-toast-float {
  position: absolute;
  left: var(--s-4);
  right: var(--s-4);
  bottom: 114px;
}

/* inline error under a field (pair with .c-field.is-error) */
.rd-c .c-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 0 var(--s-1);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-danger);
}
.rd-c .c-error svg {
  margin-top: 1px;
}

/* empty state: icon, title, one sentence, one action */
.rd-c .c-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-block);
  background: var(--c-plain);
  text-align: center;
}
.rd-c .c-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c-mint);
  color: var(--c-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}
.rd-c .c-empty .c-btn {
  margin-top: var(--s-3);
}

/* skeleton: grey shapes in the place of rows while loading */
.rd-c .c-skel {
  display: block;
  border-radius: var(--r-pill);
  background: var(--c-skeleton);
  animation: c-skel-pulse 1.4s ease-in-out infinite;
}
.rd-c .c-skel-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}
.rd-c .c-skel-line {
  height: 14px;
  width: 70%;
}
.rd-c .c-skel-line-sm {
  height: 10px;
  width: 45%;
}
.rd-c .c-skel-chip {
  width: 56px;
  height: 28px;
  flex: none;
}
@keyframes c-skel-pulse {
  50% {
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-c .c-skel {
    animation: none;
  }
}

/* offline banner: butter strip under the Telegram row, one retry action */
.rd-c .c-offline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border-radius: var(--r-inner);
  background: var(--c-butter);
  color: var(--c-ink);
}
.rd-c .c-offline-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: var(--t-xs);
  color: var(--c-ink-2);
}
.rd-c .c-offline-text b {
  font-size: var(--t-s);
  font-weight: 700;
  color: var(--c-ink);
}

/* ======================================================================
   12. UTILITIES
   ====================================================================== */

.rd-c .c-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.rd-c .c-between {
  justify-content: space-between;
}
.rd-c .c-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rd-c .c-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.rd-c .c-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.rd-c .c-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-2);
}
.rd-c .c-grow {
  flex: 1 1 0;
  min-width: 0;
}
/* one line, cut with an ellipsis */
.rd-c .c-clip {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-c .c-nowrap {
  white-space: nowrap;
  flex: none;
}
.rd-c .c-center {
  align-self: center;
}
.rd-c .c-start {
  align-self: flex-start;
}
.rd-c .c-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* dark: fields inside a sheet sit one step above the sheet, not below it */
.rd-c.is-dark .c-sheet {
  --c-plain: #2c3833;
}

/* ---------- merged from the rollout of the remaining screens ---------- */
/* Flocktive «Стая» — extra parts from group A (entry, home, messages). Tokens only; to be merged into flock.css. */

/* icon tile on a plain or colour block (the plain .c-icon would vanish there) */
.rd-c .c-icon-surface {
  background: var(--c-surface);
}

/* numbered step of a «С чего начать» list */
.rd-c .c-stepno {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: var(--t-s);
  font-weight: 800;
}
/* a step that waits for the one before it: ring instead of fill, quieter title */
.rd-c .c-step-off .c-stepno {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--c-rule);
  color: var(--c-ink-2);
}
.rd-c .c-step-off,
.rd-c .c-step-off .c-strong {
  color: var(--c-ink-2);
}
/* flock-extra-c.css — parts missing from flock.css (group c: fees, documents, access). Tokens only. */

/* big amount field in the error state: the same red ring as .c-input */
.rd-c .c-field.is-error .c-amount {
  box-shadow: inset 0 0 0 2px var(--c-danger);
}

/* small «differs from its area» mark in fine permission rows */
.rd-c .c-dot-diff {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-butter);
  box-shadow: inset 0 0 0 1.5px var(--c-rule);
  flex: none;
}

/* Choice pills inside a form or sheet wrap; only list filters scroll (UX.md 16, D-275) */
.rd-c :is(.c-form, .c-sheet) .c-pills {
  flex-wrap: wrap;
  overflow: visible;
  margin: 0;
  padding: 0;
}

/* Keyboard focus: a forest ring on every field and button (no outline removal without a replacement) */
.rd-c :is(.c-input, .c-select, .c-area, .c-search input, .c-amount input):focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--c-forest);
}
.rd-c :is(button, a):focus-visible {
  outline: 2px solid var(--c-forest);
  outline-offset: 2px;
}

/* Version 2 screen rule, loaded after flock.css.
   Screen = header plate + (named lists | form).
   List   = title (+ count) + rows. Nothing else.
   Row    = [lead] [title / sub] [end]; one look for every list. */

/* 1. Header plate: the first thing under Telegram's button row; the only colour on the screen */
.rd-c .v-head {
  position: relative;
  border-radius: var(--r-block);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
}
.rd-c .v-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.rd-c .v-head-actions .c-btn-wide {
  flex: 1 1 100%;
}
/* totals in the header are chips: a tint of the header colour and smaller type,
   so they never look like the white buttons next to them */
.rd-c .v-head .c-chip {
  min-height: 24px;
  padding: 2px 10px;
  background: var(--c-shade);
  font-size: 12px;
}

/* 2a. Named list: a title row (title and count only), then the rows */
.rd-c .v-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding-top: var(--s-4);
}
.rd-c .v-list-head {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-1);
}
.rd-c .v-list-title {
  font-size: var(--t-m);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.rd-c .v-list-count {
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--c-muted);
}

/* 2b. Form: named groups of fields, titled like lists; Save sits in the dock under the form */
.rd-c .v-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-4);
}

/* 3. The one row.
   lead: icon | time | nothing. No avatars or initials anywhere.
   text: title (one line) over sub (one line, quieter).
   end:  chevron | value + chevron | button | toggle | status chip — exactly one. */
.rd-c .v-rows {
  display: flex;
  flex-direction: column;
  padding: 0 var(--s-1);
}
.rd-c .v-rows > li + li {
  border-top: 1px solid var(--c-line);
}
.rd-c .v-row {
  width: 100%;
  min-height: 64px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.rd-c .v-lead {
  flex: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-c .v-time {
  font-size: var(--t-m);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rd-c .v-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rd-c .v-title,
.rd-c .v-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-c .v-title {
  font-size: var(--t-m);
  line-height: 1.25;
  font-weight: 600;
}
.rd-c .v-sub {
  font-size: var(--t-xs);
  line-height: 1.3;
  color: var(--c-muted);
}
.rd-c .v-warn {
  color: var(--c-danger);
  font-weight: 600;
}
.rd-c .v-end {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.rd-c .v-value {
  font-size: var(--t-s);
  color: var(--c-muted);
}
.rd-c .v-chev {
  color: var(--c-muted);
}

/* 2c. List controls: search, filters, a week — they belong to their list, between its title and its rows */
.rd-c .v-list-ctrl {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-1) var(--s-2);
}
.rd-c .v-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

/* 4. Buttons. Nine kinds (screens-v2 §4), by place:
   header: main (.c-btn-primary .c-btn-big .c-btn-wide, one, last) and ordinary (.c-btn-white .c-btn-sm);
   row end: row button (.v-rowbtn), icon (.c-iconbtn), toggle (.c-togs);
   form end: danger (.c-btn-danger) — red text, opens a confirmation sheet. */
.rd-c .c-btn.v-rowbtn {
  position: relative;
  min-height: var(--h-40);
  padding: 0 var(--s-4);
  background: var(--c-plain);
  color: var(--c-ink);
  font-size: var(--t-s);
}
/* 40 px to the eye, 44 px to the finger */
.rd-c .c-btn.v-rowbtn::before {
  content: '';
  position: absolute;
  inset: -4px 0;
}

/* 5. Form groups: read first, edit on «Изменить»; each group has its own «Сохранить» */
.rd-c .v-form-act {
  margin-left: auto;
}
/* One form field, both modes: label on top, value in a 48 px box at the same place.
   Reading: the box has no fill. Editing: the box is a grey input. Only the fill changes. */
.rd-c .v-fields {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: 0 var(--s-1);
}
.rd-c .v-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.rd-c .v-field-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rd-c .v-field-box {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-inner);
  display: flex;
  align-items: center;
  background: transparent;
  font-family: inherit;
  font-size: var(--t-m);
  font-weight: 400;
  color: var(--c-ink);
}
.rd-c input.v-field-box {
  background: var(--c-plain);
}
.rd-c .v-field-empty {
  color: var(--c-muted);
}
.rd-c .v-field-hint {
  font-size: var(--t-xs);
  color: var(--c-muted);
  padding: 0 var(--s-4);
}
.rd-c .v-form-save {
  margin-top: var(--s-1);
}
.rd-c .c-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* 6. Two switches, one family: a 32 px pill track, green means «yes».
   Switch (.c-switch): two states, on / off — always has an answer.
   Mark (.c-togs in a row): three states — ✓ / ✕ / not marked yet.
   Not marked = an empty dashed track, so it reads as «fill me in». */
.rd-c :is(.v-end, .v-field-box) .c-togs {
  position: relative;
  gap: 0;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--c-line);
}
.rd-c :is(.v-end, .v-field-box) .c-togs .c-tog {
  position: relative;
  width: 44px;
  height: 28px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-muted);
}
.rd-c :is(.v-end, .v-field-box) .c-togs .c-tog svg {
  width: 18px;
  height: 18px;
}
/* 28 px to the eye, 44 px to the finger */
.rd-c :is(.v-end, .v-field-box) .c-togs .c-tog::before {
  content: '';
  position: absolute;
  inset: -8px 0;
}
.rd-c :is(.v-end, .v-field-box) .c-togs .c-tog.is-yes {
  background: var(--c-forest);
  color: var(--c-on-primary);
}
.rd-c :is(.v-end, .v-field-box) .c-togs .c-tog.is-no {
  background: var(--c-coral);
  color: var(--c-ink);
}
.rd-c :is(.v-end, .v-field-box) .c-togs:not(:has(.is-yes)):not(:has(.is-no)) {
  padding: 0;
  background: transparent;
  border: 2px dashed var(--c-muted);
}
.rd-c :is(.v-end, .v-field-box) .c-togs:not(:has(.is-yes)):not(:has(.is-no)) .c-tog {
  color: var(--c-ink);
}

/* a status chip in a row end is neutral: colour lives only in the header */
.rd-c .v-end .c-chip.v-chip-done {
  background: var(--c-plain);
  color: var(--c-ink);
}

/* 7. States: each lives in its own part of the screen and looks like it */
/* loading: placeholder bars in the header and rows of the same size */
.rd-c .v-skel {
  display: block;
  height: 14px;
  border-radius: var(--r-pill);
  background: var(--c-rule);
}
.rd-c .v-rows .v-skel,
.rd-c .v-list-head .v-skel {
  background: var(--c-skeleton);
}
.rd-c .v-skel-title {
  height: 30px;
  width: 60%;
}
/* an empty list of data: one quiet row */
.rd-c .v-row-empty .v-title {
  font-weight: 400;
  color: var(--c-muted);
}
/* no connection: the only thing above the header */
.rd-c .v-offline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--h-48);
  padding: 0 var(--s-2) 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-size: var(--t-s);
  font-weight: 600;
}
.rd-c .v-offline button {
  min-height: var(--h-40);
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  color: var(--c-on-ink-accent);
  font-weight: 700;
}
/* field and group errors */
.rd-c .v-field.is-error input.v-field-box {
  box-shadow: inset 0 0 0 2px var(--c-danger);
}
.rd-c .v-field.is-error .v-field-hint,
.rd-c .v-form-error {
  color: var(--c-danger);
  font-weight: 600;
}
.rd-c .v-form-error {
  font-size: var(--t-xs);
  padding: 0 var(--s-4);
}
/* done: a toast over the bottom menu for 5 s, with «Отменить» */
.rd-c .v-toast {
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 112px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 var(--s-2) 0 var(--s-4);
  border-radius: var(--r-inner);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-size: var(--t-s);
  font-weight: 600;
}
.rd-c .v-toast button {
  min-height: var(--h-48);
  padding: 0 var(--s-4);
  color: var(--c-on-ink-accent);
  font-weight: 700;
}

/* 8. Sheets: the screen rules, compact. Head is a colour plate with ✕ (see below), one main button at the bottom. */
.rd-c .v-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 var(--s-1);
}
.rd-c .v-sheet-title {
  font-size: var(--t-l);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.rd-c .v-sheet-sub {
  margin-top: 4px;
  font-size: var(--t-s);
  color: var(--c-ink-2);
}
.rd-c .v-sheet-main {
  margin-top: auto;
}
/* a field box that holds an input plus a suffix (sum + currency) or a switch */
.rd-c div.v-field-box.is-edit {
  background: var(--c-plain);
  gap: var(--s-2);
}
.rd-c div.v-field-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
}
.rd-c .v-field-suffix {
  color: var(--c-muted);
}
.rd-c .v-field-box .c-togs {
  margin-left: auto;
}
.rd-c .v-field .c-pills {
  padding: 0;
}

/* sheet body scrolls, the main button stays pinned under it */
.rd-c .v-sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.rd-c .v-sheet-main {
  flex: none;
}
/* choice: options as full-width rows inside the field box, ✓ on the chosen one */
.rd-c .v-choice {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-inner);
  background: var(--c-plain);
  overflow: hidden;
}
.rd-c .v-choice button {
  min-height: 52px;
  padding: 0 var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-m);
  text-align: left;
}
.rd-c .v-choice button + button {
  border-top: 1px solid var(--c-line);
}
.rd-c .v-choice button[aria-checked='true'] {
  font-weight: 600;
}
.rd-c .v-choice button svg {
  color: var(--c-forest);
}

/* a sheet with a scrolling body: the sheet itself may shrink, so only the body scrolls */
.rd-c .c-sheet:has(.v-sheet-scroll) {
  min-height: 0;
  gap: var(--s-3);
}
/* the pinned footer: a hairline over it shows the body runs on underneath */
.rd-c .v-sheet-foot {
  flex: none;
  margin: 0 calc(-1 * var(--s-4));
  padding: var(--s-3) var(--s-4) 0;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
}

/* 9. Design-system boards (canvas only): 800 px wide reference sheets */
.rd-c.v-ds {
  padding: 48px;
  gap: 32px;
}
.rd-c .v-ds-h1 {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.rd-c .v-ds-h2 {
  font-size: var(--t-l);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.rd-c .v-ds-note {
  font-size: var(--t-s);
  color: var(--c-ink-2);
}
.rd-c .v-ds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rd-c .v-ds-sw {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rd-c .v-ds-chip {
  height: 72px;
  border-radius: var(--r-inner);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.rd-c .v-ds-name {
  font-size: var(--t-s);
  font-weight: 700;
}
.rd-c .v-ds-meta {
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.rd-c .v-ds-table {
  display: flex;
  flex-direction: column;
}
.rd-c .v-ds-tr {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  border-top: 1px solid var(--c-line);
}
.rd-c .v-ds-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rd-c .v-ds-phone {
  width: 358px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rd-c .v-ds-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

/* the icon tile follows the radius scale (20), not 14 */
.rd-c .v-lead .c-icon {
  border-radius: var(--r-inner);
}

/* 10. Type scale on a 4 px step: 12 · 16 · 20 · 24 · 32 (owner's choice).
   The old flock.css tokens are remapped onto it, so every part follows. */
.rd-c {
  --t-12: 12px;
  --t-16: 16px;
  --t-20: 20px;
  --t-24: 24px;
  --t-32: 32px;
  --t-xs: var(--t-12);
  --t-s: var(--t-16);
  --t-m: var(--t-16);
  --t-l: var(--t-24);
  --t-xl: var(--t-32);
}
.rd-c .v-list-title {
  font-size: var(--t-20);
}
.rd-c .v-head .c-chip {
  font-size: var(--t-12);
}

/* 11. Height scale on an 8 px step: 24 · 32 · 40 · 48 · 56 · 64 (owner's choice).
   24 chip · 32 switch · 40 row button (44 to the finger) · 48 ordinary button, icon, field,
   choice option, search, filter pill, toast, bottom-menu tab · 56 main button and «Сохранить» · 64 list row */
.rd-c {
  --h-24: 24px;
  --h-32: 32px;
  --h-40: 40px;
  --h-48: 48px;
  --h-56: 56px;
  --h-64: 64px;
}
.rd-c .c-btn.v-rowbtn {
  min-height: var(--h-40);
}
.rd-c .c-btn.v-rowbtn::before {
  inset: -2px 0;
}
.rd-c .c-btn-sm,
.rd-c .c-iconbtn,
.rd-c .c-round {
  min-height: var(--h-48);
}
.rd-c .c-iconbtn {
  width: var(--h-48);
  height: var(--h-48);
}
.rd-c .c-icon {
  width: var(--h-48);
  height: var(--h-48);
}
.rd-c .v-field-box,
.rd-c .v-choice button,
.rd-c .v-toast,
.rd-c .c-search,
.rd-c .c-pill {
  min-height: var(--h-48);
}
.rd-c .c-search {
  height: var(--h-48);
}
.rd-c .c-nav a {
  height: var(--h-48);
}
.rd-c .v-head .c-chip {
  min-height: var(--h-24);
}

/* 12. The last parts brought onto the scales */
.rd-c .c-chip {
  min-height: var(--h-24);
  padding: 0 var(--s-3);
  font-size: var(--t-12);
}
.rd-c .c-week-day {
  min-height: var(--h-64);
}

/* 13. Fixes from the visual check */
/* filters wrap onto a second line instead of running off the screen */
.rd-c .v-list-ctrl .c-pills {
  flex-wrap: wrap;
  overflow: visible;
  margin: 0;
  padding: 0;
}
/* a field reads as one unit: the label starts where the value starts */
.rd-c .v-field-label {
  padding: 0 var(--s-4);
}
/* reference sheets: text wraps inside the board */
.rd-c.v-ds > * {
  max-width: 100%;
  min-width: 0;
}
.rd-c .v-ds-note {
  white-space: normal;
}

/* the reference board counts its padding inside its 800 px */
.rd-c.v-ds {
  box-sizing: border-box;
}

/* 14. Sheet kinds: choice (a list, tap = chosen and closed), confirmation (red main, ✕ to refuse), conflict */
.rd-c .v-btn-danger-main {
  background: var(--c-danger);
  color: var(--c-on-primary);
}
.rd-c .v-row .v-check {
  color: var(--c-forest);
}
/* a sheet is as tall as its content, at most 90% of the screen; the dimmed screen above takes the rest */
.rd-c.c-sheet-board .c-under {
  flex: 1 1 auto;
  min-height: 84px;
}
.rd-c.c-sheet-board .c-sheet {
  flex: 0 1 auto;
  max-height: 90%;
  min-height: 0;
}

/* choice field 6–30: shows the value and an arrow, opens the options in place */
.rd-c .v-field-select {
  justify-content: space-between;
  text-align: left;
  font: inherit;
  color: var(--c-ink);
  cursor: pointer;
}
.rd-c .v-field-arrow {
  flex: 0 0 auto;
  color: var(--c-muted);
}
.rd-c .v-field-drop {
  margin-top: var(--s-2);
  padding: var(--s-2) 0 var(--s-1);
  border-radius: var(--r-inner);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.rd-c .v-field-drop .c-search {
  margin: 0 var(--s-2) var(--s-1);
}
.rd-c .v-field-drop .v-field-hint {
  padding: var(--s-1) var(--s-4) var(--s-2);
}
/* a form's danger action: red text, last in the group */
.rd-c .v-form-danger {
  min-height: var(--h-48);
}
/* sheet: 20 px between the header and the block (12 gap + 8) */
.rd-c .v-sheet-scroll {
  padding-top: var(--s-2);
}
/* a choice field in edit mode has the same grey box as a text field */
.rd-c .v-field-select.is-edit {
  background: var(--c-plain);
}
/* the opened choice field: no frame — search, then the options as plain choice rows */
.rd-c .v-field-drop {
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.rd-c .v-field-drop .c-search {
  margin: 0;
}
/* the sheet header is a plate in the colour of the section the sheet opened from, like a screen header; ✕ sits on it in white */
.rd-c .v-sheet-head {
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--r-block);
}
.rd-c .v-sheet-head .c-round {
  background: var(--c-surface);
}
/* bottom inset: the menu and a sheet's main button stand the same distance above the screen edge.
   In the app: max(var(--tg-viewport-safe-area-inset-bottom) + 8px, 12px); on the canvas the boards are iPhone-sized, 34 + 8. */
.rd-c {
  --s-bottom: 42px;
}
.rd-c .c-nav {
  margin-bottom: var(--s-bottom);
}
.rd-c .c-sheet {
  padding-bottom: var(--s-bottom);
}
/* long text in a field: wraps; the box grows with it */
.rd-c .v-field-box.v-field-multi {
  display: block;
  padding-top: 14px;
  padding-bottom: 14px;
  line-height: 1.4;
  white-space: normal;
}
.rd-c textarea.v-field-box.v-field-area {
  display: block;
  padding: 14px var(--s-4);
  line-height: 1.4;
  resize: none;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-plain);
}
/* a cancelled event stays in the list, struck through */
.rd-c .v-row.is-cancelled .v-title {
  text-decoration: line-through;
  color: var(--c-muted);
}
/* long fields (300+ characters) show «N / limit» on the hint line, at the right */
.rd-c .v-field-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
}
.rd-c .v-field-count {
  flex: none;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
/* type-ahead: up to 5 matching rows right under the field */
.rd-c .v-typeahead {
  margin-top: var(--s-2);
}
/* interaction states (DS «Состояния»): pressed one step darker, keyboard focus a 2 px green ring, waiting for the server — «…» and no taps */
.rd-c .c-btn-primary.is-pressed {
  background: #0a4636;
}
.rd-c .c-btn-white.is-pressed {
  background: var(--c-plain);
}
.rd-c .c-btn.v-rowbtn.is-pressed {
  background: var(--c-line);
}
.rd-c .v-row.is-pressed {
  background: var(--c-plain);
  border-radius: var(--r-inner);
}
.rd-c .is-focus,
.rd-c :focus-visible {
  outline: 2px solid var(--c-forest);
  outline-offset: 2px;
}
.rd-c .is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.rd-c input.v-field-box:disabled {
  opacity: 0.4;
}
.rd-c .v-row.is-disabled {
  opacity: 0.4;
}
@media (prefers-reduced-motion: reduce) {
  .rd-c *,
  .rd-c *::before,
  .rd-c *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* bottom menu (§3a): no shadow — a hairline ring parts it from the screen; a red dot marks a section that needs action */
.rd-c .c-nav {
  box-shadow: 0 0 0 1px var(--c-line);
}
.rd-c .c-nav a {
  position: relative;
}
.rd-c .c-nav-dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 12px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-danger);
  box-shadow: 0 0 0 2px var(--c-surface);
}
/* on a coloured plate secondary text is text.secondary (ink-2): muted on lilac is 4.23 : 1, below AA */
.rd-c .v-head .c-date,
.rd-c .v-sheet-head .c-date,
.rd-c .v-sheet-head .c-sub {
  color: var(--c-ink-2);
}
