/* In-app tutorial cards (composer + quote-review).
   Visual spec: docs/design/tutorial-cards/reference.html — rebuilt here, not pasted.
   Violet maps to --accent (#6244f2). App --ink / --review / --category are a
   different hex than this spec, so those plates stay local to the tutorial. */

.tut-root {
  --tut-violet: var(--accent);
  --tut-ink: #16151c;
  --tut-ink-2: #2e2c38;
  --tut-muted: #5e5c6b;
  --tut-muted-2: #6e6c7a;
  --tut-faint: #8a8896;
  --tut-line: #e4e3ea;
  --tut-line-2: #ecebf0;
  --tut-visual: #f7f5ff;
  --tut-tile: #efecfe;
  --tut-chip: #e4defd;
  --tut-chip-ink: #3b2aa6;
  --tut-dash: #b7aaf7;
  --tut-orange: #e8762b;
  --tut-orange-bg: #fff1e6;
  --tut-orange-text: #b4500f;
  --tut-orange-line: #f5c9a6;
  --tut-magenta: #d24ba0;
  --tut-magenta-bg: #fcebf5;
  --tut-magenta-text: #a2337a;
  --tut-magenta-line: #f3c6e2;
  --tut-green: #1f9d55;
  --tut-green-line: #bfe5cf;
  --tut-note-bg: #fffcf0;
  --tut-note-border: #f1e2a8;
  --tut-note-tile: #fcf0c4;
  --tut-pip-off: #d9d6e6;
  --tut-shadow: 0 24px 64px rgba(22, 21, 28, 0.28);
  --tut-sheet-shadow: 0 -12px 40px rgba(22, 21, 28, 0.24);
  font-family: var(--font-ui);
  color: var(--tut-ink);
}

.tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 930;
  background: rgba(22, 21, 28, 0.55);
}

.tut-card {
  position: fixed;
  z-index: 950;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  color: var(--tut-ink);
  border-radius: 16px;
  box-shadow: var(--tut-shadow);
  max-height: calc(100dvh - 24px);
  /* Visible so the pointer diamond can sit outside the card. The body scrolls. */
  overflow: visible;
}

.tut-root[data-page="composer"][data-step="1"] .tut-card { width: 560px; }
.tut-root[data-page="review"][data-step="1"] .tut-card { width: 480px; }
.tut-root[data-page="review"][data-step="2"] .tut-card { width: 460px; }
.tut-root[data-page="review"][data-step="3"] .tut-card {
  width: 620px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tut-root[data-page="composer"] .tut-card {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tut-root[data-page="review"]:not(.is-placed) .tut-card {
  visibility: hidden;
}

.tut-arrow {
  display: none;
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--tut-visual);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}

.tut-root.is-placed[data-arrow="up"] .tut-arrow,
.tut-root.is-placed[data-arrow="left"] .tut-arrow,
.tut-root.is-placed[data-arrow="down"] .tut-arrow {
  display: block;
}

.tut-root[data-arrow="up"] .tut-arrow {
  top: -7px;
  transform: rotate(45deg);
}

.tut-root[data-arrow="left"] .tut-arrow {
  left: -7px;
  transform: rotate(45deg);
}

.tut-root[data-arrow="down"] .tut-arrow {
  bottom: -7px;
  background: var(--surface-raised);
  transform: rotate(45deg);
}

.tut-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.tut-visual {
  position: relative;
  background: var(--tut-visual);
  border-radius: 16px 16px 0 0;
  padding: 20px 24px;
}

.tut-grab {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--tut-pip-off);
  margin: 0 auto 12px;
}

.tut-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: var(--surface-raised);
  color: #4a4857;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 3px rgba(22, 21, 28, 0.12);
  cursor: pointer;
}

.tut-close:hover { color: var(--tut-ink); }

.tut-body {
  padding: 18px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tut-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--tut-ink);
}

.tut-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tut-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--tut-tile);
  color: var(--tut-violet);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-ico svg { width: 16px; height: 16px; }

.tut-ico--orange {
  background: var(--tut-orange-bg);
  color: var(--tut-orange-text);
}

.tut-point-copy {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tut-ink-2);
}

.tut-point-copy strong { font-weight: 700; color: var(--tut-ink); }

.tut-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tut-ink-2);
}

.tut-lead strong { font-weight: 700; color: var(--tut-ink); }

.tut-orange-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--tut-orange);
  box-shadow: 0 0 0 4px rgba(232, 118, 43, 0.2);
}

.tut-ch svg { color: var(--tut-faint); }

.tut-sub {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #4a4857;
}

.tut-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--tut-faint);
  flex-shrink: 0;
  margin-top: 7px;
}

.tut-sub-ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #f1f0f5;
  color: #4a4857;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-sub-ico svg { width: 14px; height: 14px; }

.tut-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 24px 20px;
  flex-shrink: 0;
}

.tut-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tut-pip {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--tut-pip-off);
}

.tut-pip.is-on { background: var(--tut-violet); }

.tut-count {
  font-size: 13px;
  color: var(--tut-muted-2);
  margin-left: 4px;
}

.tut-next {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--tut-violet);
  color: var(--ink-inverse);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tut-next:hover { background: var(--accent-hover); }

.tut-foot--solo { justify-content: flex-end; }

.tut-help-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Shared header-button geometry. The document pill also carries a bottom
   margin and rem height from .doc-details-pill; this rule wins so the two
   controls share one box. */
.tut-help-row > .tut-hdr-btn {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cmp-head .tut-help-row {
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
.qr-head > .tut-help-row { flex-shrink: 0; }

.tut-help {
  appearance: none;
  border: 1px solid transparent;
  background: #F1EEFE;
  color: #4A2FD6;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease;
}

.tut-help:hover { background: #E7E2FD; }
.tut-help:active { background: #DCD5FC; }
.tut-help:focus-visible {
  outline: 2px solid #6244F2;
  outline-offset: 2px;
}

.tut-help-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6244F2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Lifted anchors sit above the dim. The white frame is a separate element
   (.tut-frame) so its radius follows the target in every browser. */
.tut-lift { z-index: 940 !important; }
.tut-lift-rel { position: relative; }

.tut-frame {
  position: fixed;
  z-index: 945;
  box-sizing: border-box;
  border: 2px solid #fff;
  background: transparent;
  pointer-events: none;
}

body.tut-open { overflow: hidden; }

/* ---- composer card 1 visual ---- */

.tut-split {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding-right: 36px;
}

.tut-pane {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tut-pane--doc {
  /* Description stays one line at 13px; this pane keeps its content width. */
  min-width: auto;
  border: 1.5px dashed var(--tut-dash);
  background-color: #fbfaff;
  background-image:
    linear-gradient(rgba(98, 68, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 68, 242, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
}

.tut-pane--chat {
  border: 1px solid var(--tut-line);
  background: var(--surface-raised);
  row-gap: 0;
}

.tut-pane--chat .tut-sample {
  margin-top: 8px;
}

.tut-pane-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tut-mini-ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--tut-tile);
  color: var(--tut-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tut-mini-ico svg { width: 16px; height: 16px; }

.tut-pane-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tut-pane-name {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--tut-ink);
}

.tut-pane-desc {
  font-size: 13px;
  line-height: 1.2;
  color: var(--tut-muted);
  white-space: nowrap;
}

.tut-illu { width: 100%; height: 112px; display: block; }
.tut-illu-phone { display: none; }

.tut-or {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tut-or-line {
  flex-grow: 1;
  width: 1px;
  background: var(--tut-line);
}

.tut-or-mark {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  border: 1px solid var(--tut-line);
  background: var(--surface-raised);
  font-size: 12px;
  color: var(--tut-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-sample {
  box-sizing: border-box;
  border: 1px solid var(--tut-line);
  border-radius: 8px;
  background: #fafafc;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--tut-ink);
}

/* Decorative miniature of Generar. Not a control. */
.tut-gen {
  margin-top: 10px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #efecfe;
  color: #4a2fd6;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  flex-shrink: 0;
}

.tut-gen svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
}

.tut-hl {
  background: var(--tut-chip);
  color: var(--tut-chip-ink);
  font-weight: 700;
  border-radius: 4px;
  padding: 0 3px;
  white-space: nowrap;
}

.tut-caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  background: var(--tut-violet);
  margin-left: 2px;
  vertical-align: -2px;
}

.tut-hint {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--tut-muted);
}

.tut-hint svg { flex-shrink: 0; margin-top: 1px; }

/* ---- composer card 2 visual ---- */

.tut-learn {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-right: 36px;
  align-items: center;
}

.tut-quote,
.tut-rates {
  min-width: 0;
  box-sizing: border-box;
  background: var(--surface-raised);
  border-radius: 12px;
}

.tut-quote {
  flex: 1.2 1 0;
  border: 1px solid var(--tut-line);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(22, 21, 28, 0.06);
}

.tut-quote-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 10px 7px;
  border-bottom: 1px solid var(--tut-line-2);
  font-size: 12.5px;
  font-weight: 700;
}

.tut-quote-top strong { font-weight: 800; font-variant-numeric: tabular-nums; }

.tut-ch {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  font-size: 11.5px;
  color: var(--tut-ink);
}

.tut-ch-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--tut-violet);
  flex-shrink: 0;
}

.tut-ch-name {
  font-weight: 650;
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tut-ch-amt {
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tut-ch-rule { border-top: 1px solid var(--tut-line-2); }

.tut-partida {
  border-top: 1px solid var(--tut-line-2);
  background: #fafafc;
  padding: 7px 8px 8px 21px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tut-partida-name {
  font-size: 11px;
  color: var(--tut-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tut-partida-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--tut-muted);
  white-space: nowrap;
}

.tut-price-box {
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1.5px solid var(--tut-violet);
  background: var(--surface-raised);
  color: var(--tut-ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.tut-tick {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--tut-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tut-partida-total {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  color: var(--tut-ink);
  font-variant-numeric: tabular-nums;
}

.tut-flow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--surface-raised);
  border: 1.5px solid #cfc6fb;
  box-sizing: border-box;
  color: var(--tut-violet);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-flow--down { display: none; }

.tut-rates {
  flex: 1.1 1 0;
  border: 1px solid #dcd5fc;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tut-rates-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 5px;
  font-size: 12px;
  font-weight: 700;
}

.tut-rates-head .tut-mini-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.tut-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--tut-ink-2);
}

.tut-rate.is-new { background: var(--tut-tile); }

.tut-rate-name {
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tut-badge-new {
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid #cfc6fb;
  color: #4a2fd6;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.tut-rate-amt {
  font-weight: 650;
  color: var(--tut-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tut-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--tut-line-2);
  border-radius: 10px;
  background: var(--surface-raised);
  padding: 9px 12px 8px;
}

.tut-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}

.tut-chart-tag { font-size: 10.5px; font-weight: 400; color: var(--tut-faint); }

.tut-chart-plot {
  position: relative;
  height: 50px;
  margin-top: 2px;
}

.tut-chart-line,
.tut-chart-fill {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 23px;
  height: 2px;
  border-radius: 1px;
}

.tut-chart-line { background: var(--tut-line); }
.tut-chart-fill { background: linear-gradient(90deg, #d9d2fc, var(--tut-violet)); }

.tut-chart-pt {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tut-chart-pt--1 { left: 10px; }
.tut-chart-pt--2 { left: calc(10px + (100% - 20px) * 0.3333); }
.tut-chart-pt--3 { left: calc(10px + (100% - 20px) * 0.6667); }
.tut-chart-pt--4 { left: calc(100% - 10px); }

.tut-chart-pct {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--tut-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tut-chart-pct.is-last { color: var(--tut-violet); }

.tut-chart-knob {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  background: var(--surface-raised);
  border: 2px solid var(--tut-violet);
}

.tut-chart-knob.is-last { background: var(--tut-violet); }

.tut-chart-n {
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  color: #4a4857;
  font-variant-numeric: tabular-nums;
}

.tut-chart-cap {
  font-size: 11px;
  color: var(--tut-muted-2);
  text-align: center;
}

.tut-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--tut-note-bg);
  border: 1px solid var(--tut-note-border);
  padding: 10px 12px;
}

.tut-note-ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tut-note-tile);
  color: var(--tut-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-note-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tut-note-title {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
  color: var(--tut-ink);
}

.tut-note-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tut-muted);
}

/* ---- review card visuals ---- */

.tut-math {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 36px;
}

.tut-math-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.tut-math-label { font-size: 12px; color: var(--tut-muted); }

.tut-math-val {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1.5px solid var(--tut-line);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tut-math-val--total {
  border-color: var(--tut-dash);
  font-weight: 700;
}

.tut-math-op {
  font-size: 18px;
  color: var(--tut-faint);
  padding-top: 22px;
}

.tut-demo-wrap {
  border-top: 1px dashed var(--tut-pip-off);
  padding-top: 14px;
  margin-top: 14px;
}

.tut-revrow {
  position: relative;
  box-sizing: border-box;
  height: 52px;
  background: var(--surface-raised);
  border: 1.5px solid var(--tut-orange-line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 12px;
}

.tut-revcode { font-size: 12px; color: var(--tut-faint); flex-shrink: 0; }

.tut-revname {
  flex-grow: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--tut-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tut-revqty {
  font-size: 12px;
  color: var(--tut-orange-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.tut-revtotal {
  font-size: 13px;
  font-weight: 650;
  color: var(--tut-ink);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tut-revmk {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.tut-revdot {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--tut-orange);
  box-shadow: 0 0 0 5px rgba(232, 118, 43, 0.18);
}

.tut-revcheck {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--tut-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.tut-revtip {
  position: absolute;
  right: 44px;
  top: 50%;
  margin-top: -13px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--tut-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
  opacity: 0;
}

.tut-revcursor {
  position: absolute;
  right: 5px;
  top: 24px;
  width: 26px;
  height: 26px;
  pointer-events: none;
  transform-origin: 9px 2px;
  opacity: 0;
}

.tut-ind-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 36px;
}

.tut-ind {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--tut-line);
  border-radius: 10px;
  padding: 8px 10px;
}

.tut-ind--zero { border-color: var(--tut-magenta-line); }

.tut-ind-badge {
  flex-shrink: 0;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--tut-magenta-bg);
  color: var(--tut-magenta-text);
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
}

.tut-ind-name {
  flex-grow: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--tut-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tut-ind-price {
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1.5px solid #dcdbe3;
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 650;
  color: var(--tut-ink);
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.tut-ind-price--zero {
  border-color: var(--tut-magenta);
  color: var(--tut-magenta-text);
}

.tut-ind-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-ind-mark--bang { background: var(--tut-magenta); }
.tut-ind-mark--ok { background: var(--tut-ink); }

.tut-ind-down {
  align-self: center;
  color: var(--tut-faint);
  display: flex;
}

/* ---- animation (reference keyframes) ---- */

.tut-revcursor { animation: tutCursor 4.8s ease-in-out infinite; }
.tut-revdot { animation: tutDot 4.8s step-end infinite; }
.tut-revcheck { animation: tutCheck 4.8s step-end infinite; }
.tut-revqty { animation: tutQty 4.8s step-end infinite; }
.tut-revtip { animation: tutTip 4.8s step-end infinite; }
.tut-revrow { animation: tutRow 4.8s step-end infinite; }

@keyframes tutCursor {
  0% { opacity: 0; transform: translate(-150px, 30px); }
  10% { opacity: 1; transform: translate(-150px, 30px); }
  38% { transform: translate(0, 0); }
  45% { transform: translate(0, 0) scale(0.8); }
  50% { transform: translate(0, 0) scale(1); }
  84% { opacity: 1; transform: translate(0, 0); }
  96% { opacity: 0; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(-150px, 30px); }
}
@keyframes tutDot {
  0% { opacity: 1; }
  45% { opacity: 0; }
  97% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes tutCheck {
  0% { opacity: 0; }
  45% { opacity: 1; }
  97% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes tutQty {
  0% { color: #b4500f; }
  45% { color: #6e6c7a; }
  97% { color: #b4500f; }
  100% { color: #b4500f; }
}
@keyframes tutTip {
  0% { opacity: 0; }
  28% { opacity: 1; }
  45% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes tutRow {
  0% { border-color: #f5c9a6; }
  45% { border-color: #bfe5cf; }
  97% { border-color: #f5c9a6; }
  100% { border-color: #f5c9a6; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-revcursor,
  .tut-revtip,
  .tut-revdot { animation: none; opacity: 0; }
  .tut-revcheck { animation: none; opacity: 1; }
  .tut-revqty { animation: none; color: #6e6c7a; }
  .tut-revrow { animation: none; border-color: #bfe5cf; }
}

/* Review card 2: price types itself in. Timings stay on the t2* names. */
.tut-card .t2-field{animation:t2Field 6.4s linear infinite}
.tut-card .t2-s{opacity:0}
.tut-card .t2-s0{animation:t2S0 6.4s linear infinite}
.tut-card .t2-s1{animation:t2S1 6.4s linear infinite}
.tut-card .t2-s2{animation:t2S2 6.4s linear infinite}
.tut-card .t2-s3{animation:t2S3 6.4s linear infinite}
.tut-card .t2-s4{animation:t2S4 6.4s linear infinite}
.tut-card .t2-s5{animation:t2S5 6.4s linear infinite}
.tut-card .t2-bang{animation:t2Bang 6.4s linear infinite}
.tut-card .t2-check{opacity:0;animation:t2Check 6.4s linear infinite}
.tut-card .t2-row{animation:t2Row 6.4s linear infinite}
.tut-card .t2-blink{animation:t2Blink .9s step-end infinite}
@keyframes t2Field{0%,29.9%{border-color:#D24BA0;box-shadow:0 0 0 0 rgba(98,68,242,0)}31%,62%{border-color:#6244F2;box-shadow:0 0 0 3px rgba(98,68,242,0.18)}65%,92%{border-color:#DCDBE3;box-shadow:0 0 0 0 rgba(98,68,242,0)}97%,100%{border-color:#D24BA0;box-shadow:0 0 0 0 rgba(98,68,242,0)}}
@keyframes t2S0{0%,29.9%{opacity:1}30%,94.9%{opacity:0}95%,100%{opacity:1}}
@keyframes t2S1{0%,29.9%{opacity:0}30%,39.9%{opacity:1}40%,100%{opacity:0}}
@keyframes t2S2{0%,39.9%{opacity:0}40%,45.9%{opacity:1}46%,100%{opacity:0}}
@keyframes t2S3{0%,45.9%{opacity:0}46%,51.9%{opacity:1}52%,100%{opacity:0}}
@keyframes t2S4{0%,51.9%{opacity:0}52%,61.9%{opacity:1}62%,100%{opacity:0}}
@keyframes t2S5{0%,61.9%{opacity:0}62%,94.9%{opacity:1}95%,100%{opacity:0}}
@keyframes t2Bang{0%,61.9%{opacity:1;transform:scale(1)}62%{opacity:0;transform:scale(.6)}94.9%{opacity:0;transform:scale(.6)}95%,100%{opacity:1;transform:scale(1)}}
@keyframes t2Check{0%,61.9%{opacity:0;transform:scale(.6)}62%{opacity:1;transform:scale(.6)}65%,94.9%{opacity:1;transform:scale(1)}95%,100%{opacity:0;transform:scale(.6)}}
@keyframes t2Row{0%,61.9%{border-color:#F3C6E2}65%,92%{border-color:#E4E3EA}97%,100%{border-color:#F3C6E2}}
@keyframes t2Blink{0%{opacity:1}50%{opacity:0}}
@media (prefers-reduced-motion: reduce){.tut-card .t2-s0,.tut-card .t2-s1,.tut-card .t2-s2,.tut-card .t2-s3,.tut-card .t2-s4,.tut-card .t2-bang{animation:none;opacity:0}.tut-card .t2-s5,.tut-card .t2-check{animation:none;opacity:1;transform:none}.tut-card .t2-field{animation:none;border-color:#DCDBE3}.tut-card .t2-row{animation:none;border-color:#E4E3EA}}

.t2-phone { display: none; }
.t2-desk { padding-right: 36px; }

.t2-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #F3C6E2;
  border-radius: 12px;
  padding: 12px 12px 12px 14px;
  box-sizing: border-box;
}

.t2-chip {
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: #FCEBF5;
  color: #A2337A;
  font-size: 12.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.t2-col {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.t2-name {
  font-size: 14px;
  color: #16151C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t2-meta {
  font-size: 12px;
  color: #6E6C7A;
}

.t2-field {
  position: relative;
  width: 104px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #D24BA0;
  background: #fff;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  box-sizing: border-box;
}

.t2-s {
  position: absolute;
  right: 10px;
  top: 0;
  height: 33px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.t2-s0 { color: #A2337A; }
.t2-s1,
.t2-s5 { color: #16151C; }

.t2-sel {
  background: #D9D2FC;
  border-radius: 3px;
  padding: 0 2px;
}

.t2-blink {
  display: inline-block;
  width: 1.5px;
  height: 17px;
  background: #6244F2;
  margin-left: 1px;
}

.t2-status {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.t2-bang,
.t2-check {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.t2-bang { background: #D24BA0; }
.t2-check { background: #16151C; }

.t2-bang svg,
.t2-check svg { width: 12px; height: 12px; }

.t2-cap {
  margin-top: 10px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #5E5C6B;
}

.t2-adef {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px dashed #CFCDD9;
  color: #4A4857;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Phone: composer 768px and quote-review 48rem are the same breakpoint
   (rem in media queries uses the initial 16px root). */
@media (max-width: 768px) {
  .tut-card {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--tut-sheet-shadow);
    max-height: calc(100dvh - 12px);
  }

  .tut-root[data-page="review"] .tut-card {
    max-height: var(--tut-sheet-max, calc(100dvh - 12px));
  }

  .tut-arrow { display: none !important; }

  .tut-visual {
    border-radius: 20px 20px 0 0;
    padding: 22px 20px 16px;
  }

  .tut-grab { display: block; }

  .tut-body { padding: 16px 20px 10px; gap: 10px; }

  .tut-title { font-size: 20px; }

  .tut-point-copy,
  .tut-lead { font-size: 14px; }

  .tut-foot--solo { justify-content: flex-start; }

  .tut-sub { font-size: 12px; }

  .tut-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .tut-dots { justify-content: center; }

  .tut-next {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
  }

  .tut-split { flex-direction: column; gap: 8px; }

  .tut-or {
    flex-direction: row;
    align-self: center;
    margin: -4px 0;
  }

  .tut-or-line { display: none; }

  .tut-illu-desk { display: none; }
  .tut-illu-phone { display: block; height: 84px; }

  .tut-desk { display: none !important; }

  .tut-learn {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    padding-right: 0;
  }

  .tut-quote,
  .tut-rates { flex: 0 0 auto; width: 100%; }

  .tut-flow--side { display: none; }

  .tut-flow--down {
    display: flex;
    align-self: center;
    width: 26px;
    height: 26px;
    border-radius: 13px;
    margin: 0;
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1.5px solid #CFC6FB;
    color: #6244F2;
  }

  .tut-note-title { font-size: 12px; }
  .tut-note-body { font-size: 11.5px; }

  .tut-math { gap: 6px; }

  .qr-head .tut-help-row { width: 100%; }
  .qr-head .tut-help-row .doc-details-pill {
    flex: 1 1 auto;
    max-width: none;
    margin-bottom: 0;
  }

  .qr-head .tut-help {
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
  }

  .qr-head .tut-help-label { display: none; }

  .qr-head .tut-help-mark {
    width: 20px;
    height: 20px;
  }

  .t2-desk { display: none; }
  .t2-phone { display: block; }

  .t2-label {
    height: 26px;
    padding-right: 40px;
    font-size: 12px;
    font-weight: 600;
    color: #6E6C7A;
    display: flex;
    align-items: center;
  }

  .t2-phone .t2-row {
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(22, 21, 28, 0.06);
  }

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

  .t2-phone .t2-name {
    font-size: 15px;
    font-weight: 600;
  }

  .t2-line2 {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #F1F0F5;
    padding-top: 10px;
    min-width: 0;
  }

  .t2-phone .t2-meta {
    flex-grow: 1;
    min-width: 0;
    font-size: 13px;
    color: #5E5C6B;
  }

  .t2-phone .t2-field {
    width: 112px;
    height: 40px;
    font-size: 16px;
  }

  .t2-phone .t2-s { height: 37px; }

  .t2-phone .t2-status { width: 26px; height: 26px; }

  .t2-phone .t2-bang,
  .t2-phone .t2-check { border-radius: 13px; }

  .t2-phone .t2-cap {
    white-space: nowrap;
    font-size: 12px;
    gap: 8px;
    margin-top: 10px;
    padding: 0 2px;
    justify-content: flex-start;
  }
}
