/* The ring on a bubble while its file goes up (uploadRing.tsx). Dark disc, white arc: reads on a picture, a lime bubble and a white one. */
.up-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: rgba(10, 16, 13, 0.62);
  color: #fff;
}
.up-ring > svg {
  position: absolute;
  inset: 0;
}
.up-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 3;
}
.up-arc {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear;
}
@media (prefers-reduced-motion: no-preference) {
  .up-ring:not(.up-failed) > svg {
    animation: up-spin 2.4s linear infinite;
  }
}
@keyframes up-spin {
  to {
    transform: rotate(360deg);
  }
}
.up-x,
.up-retry {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.up-give {
  position: absolute;
  top: -7px;
  right: -9px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #101a15;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.up-pct {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(10, 16, 13, 0.62);
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
/* over the middle of a picture or a video: nothing in the bubble changes size */
.up-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(10, 16, 13, 0.22);
}
/* over a document's icon */
.gd-row {
  position: relative;
}
.up-doc {
  position: absolute;
  left: 2px;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
}
/* a picture in a bubble opens the viewer */
.gm-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Task cards (Card.tsx, fields.tsx, ToDo.tsx). Big targets, dark words on white: a building site, dusty hands, bright sun. */

/* ── To do on the Tasks tab ── */
.cd-todo {
  padding: 4px 16px 6px;
}
.cd-todo .tk-gh {
  padding: 10px 2px 8px;
}
.cd-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow1);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.cd-row[data-state="sent"] {
  opacity: 0.6;
}
.cd-row > .ico {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink3);
}
.cd-verb {
  flex: none;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 99px;
  background: #d4e85c;
  color: #0b3d2e;
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}
.cd-rt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-rt b {
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-rt span {
  font-size: 0.82rem;
  color: var(--ink2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-starts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cd-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line2);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
}
.cd-start .ico {
  width: 18px;
  height: 18px;
  color: #0b3d2e;
}

/* ── the card ── */
.cd {
  padding: 4px 16px 24px;
}
.cd h2 {
  margin: 6px 0 4px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cd-help {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink2);
}
/* What the giver wrote with the task, on the card the person opens. */
.cd-brief {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  white-space: pre-wrap;
}
.cd-brief span {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink2);
}
/* A calm line: something could not be done, nothing is wrong with the person's answers. */
.cd-calm {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
}
.cd-sub {
  margin: 16px 0 8px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink2);
}
.cd-fine {
  margin: 8px 2px 0;
  font-size: 0.82rem;
  color: var(--ink2);
}
.cd-why {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(217, 75, 61, 0.1);
  color: #9c2f24;
  font-size: 0.92rem;
  font-weight: 600;
}
.cd-dots {
  display: flex;
  gap: 5px;
  margin: 4px 0 10px;
}
.cd-dots i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--line2);
}
.cd-dots i[data-on] {
  background: #0b3d2e;
}

/* taps */
.cd-taps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cd-tap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--line2);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
}
.cd-tap .ico {
  width: 18px;
  height: 18px;
}
.cd-tap[data-on] {
  border-color: #0b3d2e;
  background: #0b3d2e;
  color: #fff;
}
.cd-taps-big {
  flex-direction: column;
}
.cd-taps-big .cd-tap {
  width: 100%;
  min-height: 60px;
  font-size: 1.08rem;
}
.cd-taps-big .cd-tap[data-kind="pass"][data-on] {
  background: #d4e85c;
  border-color: #d4e85c;
  color: #0b3d2e;
}
.cd-taps-big .cd-tap[data-kind="issue"][data-on] {
  background: #b2392c;
  border-color: #b2392c;
}

/* the number pad */
.cd-pad {
  margin-bottom: 12px;
}
.cd-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow1);
  margin-bottom: 10px;
}
.cd-num b {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cd-num span {
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--ink2);
}
.cd-num small {
  font-size: 0.95rem;
  color: var(--ink2);
}
.cd-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cd-key {
  height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow1);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cd-key:active {
  background: var(--bg2);
}
.cd-key .ico {
  width: 24px;
  height: 24px;
}

/* ticks */
.cd-ticks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cd-tick {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow1);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  text-align: left;
}
.cd-box {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--line2);
  display: grid;
  place-items: center;
}
.cd-tick[data-on] .cd-box {
  background: #0b3d2e;
  border-color: #0b3d2e;
  color: #d4e85c;
}
.cd-box .ico {
  width: 18px;
  height: 18px;
}

/* words */
.cd-words textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 2px solid var(--line2);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.cd-words textarea:focus {
  outline: none;
  border-color: #0b3d2e;
}
.cd-mic {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 99px;
  background: #0b3d2e;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cd-mic .ico {
  width: 22px;
  height: 22px;
  color: #d4e85c;
}
.cd-mic[data-live] {
  background: #b2392c;
}
.cd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink2);
}
.cd-field input {
  height: 52px;
  padding: 0 14px;
  border: 2px solid var(--line2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

/* check and send */
.cd-said {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow1);
  overflow: hidden;
}
.cd-said li + li {
  border-top: 1px solid var(--line);
}
.cd-said button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.cd-said span {
  flex: none;
  width: 34%;
  font-size: 0.86rem;
  color: var(--ink2);
}
.cd-said b {
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 650;
}
.cd-said .ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink3);
}

/* the foot */
.cd-foot {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cd-go {
  flex: 1;
  height: 58px;
  border: 0;
  border-radius: 99px;
  background: #0b3d2e;
  color: #fff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 750;
}
.cd-go:disabled {
  opacity: 0.4;
}
.cd-back {
  flex: none;
  width: 110px;
  height: 58px;
  border: 2px solid var(--line2);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

/* sent, saved or not sent */
.cd-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 8px 16px;
}
.cd-done-ic {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: #d4e85c;
  color: #0b3d2e;
}
.cd-done[data-state="waiting"] .cd-done-ic,
.cd-done[data-state="sending"] .cd-done-ic {
  background: var(--bg2);
  color: var(--ink2);
}
.cd-done[data-state="failed"] .cd-done-ic {
  background: rgba(217, 75, 61, 0.14);
  color: #b2392c;
}
.cd-done-ic .ico {
  width: 34px;
  height: 34px;
}
.cd-done b {
  font-size: 1.4rem;
  font-weight: 800;
}
.cd-done p {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--ink2);
}
.cd-done .cd-go {
  width: 100%;
  flex: none;
}
.cd-fix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: left;
}
.cd-fix span {
  flex: none;
  padding: 8px 14px;
  border-radius: 99px;
  background: #b2392c;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
}

/* A small tag on a tap: a material named at the gate, waiting for the office. */
.cd-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink2);
  font-size: 0.74rem;
  font-weight: 650;
}
.cd-tap[data-on] .cd-tag {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}
.cd-wide {
  width: 100%;
  margin-top: 10px;
}
/* Goods in to confirm: the facts as plain lines, the reason box, Reject. */
.cd-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
}
.cd-arrival {
  font-weight: 650;
}
.cd-field textarea {
  padding: 12px 14px;
  border: 2px solid var(--line2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.cd-go.cd-no {
  background: #9c2f24;
}
.cd-brief .cd-tag {
  align-self: flex-start;
  margin: 6px 0 0;
}

/* Haulage (cards/Haulage.tsx): a decision row inside the sheet, not the sheet's own foot. */
.cd-foot.cd-inline {
  padding: 10px 0 0;
  background: none;
  border-top: 0;
}
.cd-haulage .cd-tag {
  margin-left: 6px;
}

/* Contractors (cards/Measured.tsx): a choice of plots or of how it was measured, and a materials or cap flag. */
.cd-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cd-seg button {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--line2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}
.cd-seg button[data-on] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card);
}
.cd-flag {
  margin-top: 8px;
}
.cd-measured .cd-tag,
.cd-account .cd-tag {
  margin-left: 6px;
}

/* A yes or no under a field (haulage: "the supplier brought it at its own cost", 2026-10-24.4). */
.cd-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 10px;
  font-size: 14px;
  line-height: 1.35;
}
.cd-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--ink, currentColor);
}
/* Vettar One 1.6 task rows (behind VITE_TASK_ROWS=on). No side stripes, no pale fills: colour only the verb label, the dot and "You". */
No side stripes, no pale fills: colour only the verb label, the figure's dot and "You". */
.tasks {
  padding: 6px 16px 4px;
}
.tk-group {
  margin-top: 14px;
}
.tk-gh {
  display: flex;
  justify-content: space-between;
  margin: 0 6px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink3);
}
.tk-list {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 22px;
  box-shadow: var(--shadow1);
  overflow: hidden;
}
.tk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  padding: 0 14px 0 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tk-row:first-child {
  border-top: 0;
}
.tk-verb {
  flex: none;
  min-width: 64px;
  padding: 5px 7px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg2);
  color: var(--ink2);
}
.tk-verb[data-v="approve"],
.tk-verb[data-v="confirm"] {
  background: var(--lime);
  color: var(--forest);
}
.tk-verb[data-v="wait"],
.tk-verb[data-v="read"] {
  color: var(--ink3);
}
.tk-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tk-t b {
  font-weight: 620;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-chain {
  font-size: 0.76rem;
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-chain i {
  font-style: normal;
  opacity: 0.7;
}
.tk-chain em {
  font-style: normal;
}
.tk-chain em[data-me] {
  color: var(--acc);
  font-weight: 750;
}
.tk-fig {
  flex: none;
  max-width: 34%;
  font-weight: 720;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
}
.tk-dot[data-t="look"] {
  background: var(--amber);
}
.tk-dot[data-t="grey"] {
  background: var(--ink3);
}
.tk-empty {
  margin-top: 14px;
  padding: 26px 16px;
  border-radius: 22px;
  background: var(--card);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink2);
}
.tk-empty b {
  color: var(--ink);
}
.tk-msgs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 16px 0 2px;
}
.tk-m {
  max-width: 92%;
  padding: 7px 12px;
  border-radius: 15px;
  background: var(--bg2);
  color: var(--ink);
  font-size: 0.86rem;
}
.tk-m small {
  font-size: 0.74rem;
  color: var(--ink3);
}
.tk-m-me {
  align-self: flex-end;
  background: var(--mine);
  color: var(--mineInk);
}
.tk-m-sys {
  align-self: center;
  max-width: 100%;
  padding: 1px 4px;
  background: none;
  color: var(--ink3);
  font-size: 0.8rem;
  text-align: center;
}
.tk-ghost {
  height: 46px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 620;
  font-size: 0.92rem;
}
.tk-ghost[data-on] {
  color: var(--acc);
}
/* Vettar One 1.6: tick to select, the one-line peek, and the conversation as a sheet */
.tk-rw {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.tk-rw:first-child {
  border-top: 0;
}
.tk-rw .tk-row {
  border-top: 0;
  flex: 1;
  min-width: 0;
}
.tk-rw[data-tick] .tk-row {
  padding-left: 8px;
}
.tk-tick {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line2);
  background: var(--card);
  color: #fff;
  display: grid;
  place-items: center;
}
.tk-tick .ico {
  width: 15px;
  height: 15px;
}
.tk-rw[data-sel] .tk-tick {
  background: var(--forest);
  border-color: var(--forest);
}
.tk-list:has(.tk-rw[data-sel]) {
  overflow: visible;
}
.tk-rw[data-sel] {
  z-index: 1;
  margin: 0 5px;
  border-radius: 16px;
  border-top-color: transparent;
  background: var(--card);
  box-shadow: 0 3px 14px rgba(11, 61, 46, 0.22), 0 0 0 1px var(--cardBorder);
}
.tk-rw[data-sel] + .tk-rw {
  border-top-color: transparent;
}
.tk-rw[data-sel] .tk-t b {
  font-weight: 800;
}
.tk-selbar {
  flex: none;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tk-selrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tk-selrow b {
  font-size: 0.98rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.tk-clear {
  padding: 8px 16px;
  min-height: 38px;
}
.tk-selbar .hold {
  flex: none;
  min-height: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tk-rw[data-sel] .tk-tick {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--forest);
  }
}
:root[data-theme="dark"] .tk-rw[data-sel] .tk-tick {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--forest);
}
.tk-row:active {
  background: var(--bg2);
}
/* while rows are ticked the selection bar takes the place of the chat bar */
.app:has(> .tk-selbar) > .dock {
  display: none;
}
/* The full screen media viewer (mediaViewer.tsx). Always dark, edge to edge. Under the sheets (2000), over the chat's pages. */
.mv {
  --mv-bar: 62px;
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: #000;
  color: #fff;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.mv-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  touch-action: none;
  will-change: transform;
}
.mv-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  -webkit-user-drag: none;
}
.mv-wait {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: mv-spin 0.9s linear infinite;
}
@keyframes mv-spin {
  to {
    transform: rotate(360deg);
  }
}
.mv-fail {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.mv-fail p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.mv-fail button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #101a15;
  font: inherit;
  font-weight: 700;
  padding: 9px 20px;
}

/* the top bar: back, who and when, star, forward, menu */
.mv-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px 22px 4px;
  background: linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
  transition: opacity 0.22s ease;
}
.mv-b {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}
.mv-b .ico {
  width: 22px;
  height: 22px;
}
.mv-off {
  opacity: 0.45;
}
.mv-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: 2px;
}
.mv-who b {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mv-who span {
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.mv-menu {
  position: absolute;
  right: 10px;
  top: calc(env(safe-area-inset-top, 0px) + 52px);
  z-index: 6;
  width: 220px;
  padding: 6px;
  border-radius: 16px;
  background: #232725;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}
.mv-menu button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
}
.mv-menu button:active {
  background: rgba(255, 255, 255, 0.1);
}
.mv-menu button[data-danger] {
  color: #ff7b72;
}
.mv-menu .ico {
  width: 20px;
  height: 20px;
}
.mv-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* the middle: play and pause */
.mv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(20, 24, 22, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.22s ease;
}
.mv-play .ico {
  width: 34px;
  height: 34px;
}
.mv-play[data-hide],
.mv-top[data-hide],
.mv-bottom[data-hide] {
  opacity: 0;
  pointer-events: none;
}

/* the bottom: caption, the chip, seek, speed, Reply and the reactions */
.mv-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
  transition: opacity 0.22s ease;
}
.mv-cap {
  margin: 0;
  max-height: 4.6em;
  overflow: auto;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mv-chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.mv-chip .ico {
  width: 16px;
  height: 16px;
}
.mv-seekrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mv-time {
  flex: none;
  min-width: 38px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
}
.mv-time:last-of-type {
  text-align: end;
}
.mv-seek {
  flex: 1;
  min-width: 0;
  height: 30px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
  cursor: pointer;
}
.mv-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.32) var(--p, 0%));
}
.mv-seek::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
}
.mv-seek::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: #fff;
}
.mv-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.mv-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.mv-rate {
  flex: none;
  height: 28px;
  min-width: 46px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.mv-reply {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mv-replybtn {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
}
.mv-replybtn .ico {
  width: 18px;
  height: 18px;
}
.mv-e {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.mv-e[data-on] {
  background: rgba(255, 255, 255, 0.22);
}
.mv-e .ico {
  width: 24px;
  height: 24px;
}
.mv-picker {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.5);
}
.mv-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 12px 10px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-radius: 22px 22px 0 0;
  background: rgba(34, 38, 36, 0.98);
}
.mv-grid .mv-e {
  width: 100%;
}
.mv-toast {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
  z-index: 8;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(240, 244, 241, 0.96);
  color: #101a15;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.mv-toast button {
  margin-left: 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .mv-top,
  .mv-bottom,
  .mv-play {
    transition: none;
  }
}
/* A quoted message (quote.tsx): in a sent bubble (.gb-q) and in the bar above the composer (.gr-bar). */
.gb-q[data-rich] {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.gr-q .qt-line {
  color: var(--ink2);
  opacity: 1;
}
.qt-main {
  flex: 1;
  min-width: 0;
  display: block;
}
.gb-q .qt-main > b,
.gr-q .qt-main > b {
  display: block;
}
.qt-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6px;
  font-style: normal;
  font-size: 0.84rem;
  opacity: 0.85;
}
.qt-line > .ico {
  width: 14px;
  height: 14px;
  flex: none;
}
.qt-line > i {
  flex: 1;
  min-width: 0;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qt-line > small {
  flex-basis: 100%;
  padding-left: 20px;
  font-size: 0.74rem;
  opacity: 0.8;
}
.qt-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  align-self: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(16, 26, 21, 0.16);
}
.qt-thumb img,
.qt-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Today and This week on the Tasks tab (todayboard.tsx). One17's own section look: the small heading, white rows with the
   soft shadow, the same tokens in light and dark. No side stripes, no pale fills; colour only on dots, the ring and the
   picked day. Nothing animates in, so a copy kept on the phone opens without a flash. */

.tb17-wrap {
  display: flex;
  flex-direction: column;
}
.tb17 .wp-card {
  margin: 10px 0 0;
  border: 0;
  border-radius: 18px;
  animation: none;
}
.tb17-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow1);
  padding: 14px 16px 8px;
  color: var(--ink);
}
.tb17-th {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb17-th > div:first-child {
  flex: 1;
  min-width: 0;
}
.tb17-count {
  flex: none;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
}
.tb17-none {
  padding: 12px 0 8px;
  font-size: 0.88rem;
  color: var(--ink2);
}
.tb17-empty {
  padding-bottom: 14px;
}
.tb17-empty .wp-ts {
  margin-top: 4px;
  font-size: 0.88rem;
}
.tb17-empty .wp-ways {
  margin-top: 14px;
}
.tb17-ask {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
}

/* a plot's jobs, the plot said once */
.tb17-plot {
  margin-top: 10px;
}
.tb17-plot + .tb17-plot,
.tb17-plot + .wp-off {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.tb17-ph {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink3);
}
.tb17-ph b {
  font-weight: 700;
}
.tb17-ph span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}
.tb17-plot .wp-pl {
  border-top: 0;
  padding: 8px 0 6px;
}
.tb17-card .wp-off {
  margin-top: 4px;
}
.tb17-card .wp-stale {
  margin-top: 8px;
}

/* This week: six small days, the picked one filled */
.tb17-days {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.tb17-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 62px;
  padding: 8px 0 6px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.tb17-day small {
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--ink2);
}
.tb17-day b {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tb17-day i {
  font-style: normal;
  min-height: 1em;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}
.tb17-day[data-today] b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tb17-day[aria-pressed="true"] {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--accOn);
}
.tb17-day[aria-pressed="true"] small,
.tb17-day[aria-pressed="true"] i {
  color: var(--accOn);
  opacity: 0.8;
}
.tb17-dh {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink2);
}

/* a person who covers several sites picks one */
.tb17-sites {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 16px 2px;
  scrollbar-width: none;
}
.tb17-sites::-webkit-scrollbar {
  display: none;
}
.tb17-site {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
}
.tb17-site[aria-pressed="true"] {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--accOn);
}

/* a flag in the list: the Home deck's card, no taller than it needs */
.tb17 .dcard-inline {
  margin-top: 10px;
}
/* SETUP WITH REMY (SetupChat.tsx, SetupShell.tsx): the approved prototype in the app's own look. Light only, as the
   One17 shell. Quick replies are 48 px pills; nothing here is red. */

/* ── the chat ── */
.su-scroll {
  display: flex;
  flex-direction: column;
}
.su-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-bottom: 8px;
}
.su-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.su-msg {
  animation: su-rise 0.25s ease-out both;
}
.su-msg .remy-text b {
  font-weight: 650;
}
@keyframes su-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── the bar while a step is open ── */
.su-dock {
  position: relative;
}
.su-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 4px 10px;
}
.su-q {
  flex: none;
  height: 48px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: su-rise 0.25s ease-out both;
  cursor: pointer;
}
.su-q[data-main] {
  background: var(--forest);
  color: #fff;
  border-color: transparent;
}
.su-q:disabled {
  color: var(--ink3);
  background: var(--bg);
  cursor: default;
}
.su-q .ico {
  width: 18px;
  height: 18px;
}
.su-q:not(:disabled):active {
  transform: scale(0.96);
}
.su-bar .bar-field input[data-kind="code"] {
  text-transform: uppercase;
}
.su-bar .bar-field input[data-kind="code"]::placeholder {
  text-transform: none;
}
.su-bar .bar-field input[data-kind="otp"] {
  letter-spacing: 0.18em;
}
.su-bar .bar-field input[data-kind="otp"]::placeholder {
  letter-spacing: normal;
}

/* Saved: a small moment over the bar when something is kept. */
.su-saved {
  position: absolute;
  left: 50%;
  top: -52px;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 99px;
  background: var(--card);
  box-shadow: 0 2px 4px rgba(16, 26, 21, 0.05), 0 12px 32px rgba(16, 26, 21, 0.1);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 5;
}
.su-saved[data-on] {
  opacity: 1;
  transform: translate(-50%, 0);
}
.su-saved-i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
}
.su-saved-i .ico {
  width: 13px;
  height: 13px;
}

/* ── the Setup pill in the title row ── */
.su-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 99px;
  background: var(--card);
  box-shadow: var(--shadow1);
  border: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}
.su-ring {
  transform: rotate(-90deg);
  flex: none;
}
.su-trk {
  stroke: var(--line);
}
.su-val {
  stroke: var(--forest);
  transition: stroke-dashoffset 0.28s ease-out;
}
.su-pill[data-tick] {
  animation: su-pop 0.3s ease-out;
}
.su-pill[data-done] {
  animation: su-pop 0.3s ease-out, su-fade 0.3s ease-in 1.9s forwards;
}
@keyframes su-pop {
  0% {
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes su-fade {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* ── the list behind the pill ── */
.su-list {
  padding: 4px 22px calc(22px + env(safe-area-inset-bottom, 0px));
}
.su-list h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.su-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 10px;
}
.su-prog > span:last-child {
  font-size: 0.88rem;
  color: var(--ink2);
  font-weight: 600;
}
.su-thin {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.su-thin b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--forest);
  transition: width 0.28s ease-out;
}
.su-li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-top: 1px solid var(--line);
}
.su-prog + .su-li {
  border-top: 0;
}
.su-st {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.su-st[data-ok] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--forest);
}
.su-st .ico {
  width: 15px;
  height: 15px;
}
.su-li-t {
  flex: 1;
  min-width: 0;
}
.su-li-t b {
  display: block;
  font-weight: 600;
}
.su-li-t span {
  font-size: 0.86rem;
  color: var(--ink2);
}
.su-tag {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--ink2);
  background: var(--line);
  border-radius: 99px;
  padding: 4px 10px;
}
.su-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 99px;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  margin-top: 20px;
  cursor: pointer;
}

/* ── a tab that needs a business ── */
.su-lock {
  margin: 28px 16px 0;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 2px 4px rgba(16, 26, 21, 0.05), 0 12px 32px rgba(16, 26, 21, 0.1);
  padding: 28px 22px;
  text-align: center;
}
.su-lock-ic {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #eef5c6;
  color: var(--forest);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.su-lock-ic .ico {
  width: 28px;
  height: 28px;
}
.su-lock h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.su-lock p {
  margin: 8px 0 0;
  color: var(--ink2);
}

/* ── the shell of an account with no business yet ── */
.su-me {
  padding: 0;
  border: 0;
  background: none;
}
.su-prof {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 24px;
}
.su-prof-av {
  width: 84px;
  height: 84px;
  font-size: 1.8rem;
}
.su-prof b {
  font-size: 1.25rem;
  margin-top: 12px;
  color: var(--ink);
}
.su-prof span:not(.su-prof-av) {
  color: var(--ink2);
  font-size: 0.92rem;
}
.su-srow {
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .su-msg,
  .su-q,
  .su-pill[data-tick] {
    animation: none;
  }
  .su-pill[data-done] {
    animation: su-fade 0.01s linear 1.9s forwards;
  }
}
