/* Чат и Работа (v2, 29.09): переключатель режимов, поле ввода (покой → фокус), меню «+», разговор и ход задачи,
   разделы «Работы». Грамматика — v2.css (DESIGN.md): поверхность — градиент и тень, статус — цветом и формой,
   движение мягкой кривой, reduced motion — всё стоит. Процентов хода нет. */

/* --- Шапка: ☰ · Чат | Работа · здоровье ----------------------------------------------------------------------- */
.v-top { justify-content: space-between; }
.v-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 172px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.v-seg__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 6px);
  border-radius: 19px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -8px rgba(110, 100, 255, 0.7);
  transition: transform 420ms var(--v-soft);
}
.v-seg__thumb[data-at="work"] { transform: translateX(calc(100% + 6px)); }
.v-seg__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--v-fg-2);
  transition: color 200ms;
}
.v-seg__item .ph { display: none; }
.v-seg__item[aria-selected="true"] { color: var(--v-fg); }
.v-seg__item:active { transform: scale(0.97); }

/* --- Поле ввода: покой — строка; фокус — место для формулировки, «+», подсказка, отправка --------------------------- */
.v-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-areas: "att att att" "plus field send";
  align-items: center;
  column-gap: 4px;
  padding: 5px;
  border-radius: 28px;
  background-color: rgba(36, 37, 54, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-radius 260ms var(--v-soft), box-shadow 260ms var(--v-soft), padding 260ms var(--v-soft);
}
.v-composer__att { grid-area: att; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 6px; }
.v-composer__att:empty { display: none; }
.v-composer__field {
  grid-area: field;
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 11px 4px;
  border: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  background: transparent;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.012em;
  caret-color: var(--v-blue-text);
  white-space: pre-wrap;
}
.v-composer__field::placeholder { color: var(--v-fg-2); }
.v-composer__plus, .v-composer__send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  transition: transform 120ms var(--v-soft), background-color 160ms;
}
.v-composer__plus { grid-area: plus; color: var(--v-fg); background: rgba(255, 255, 255, 0.08); }
.v-composer__plus .ph { width: 22px; height: 22px; transition: transform 320ms var(--v-soft); }
.v-composer__plus[aria-expanded="true"] .ph { transform: rotate(45deg); }
.v-composer__plus:active { transform: scale(0.92); }
.v-composer__send {
  grid-area: send;
  color: #0B0B0F;
  background: radial-gradient(circle at center, #F5F5F7 17px, rgba(245, 245, 247, 0) 17.5px);
}
.v-composer__send .ph { width: 18px; height: 18px; }
.v-composer__send:active { transform: scale(0.9); }
.v-composer__send:disabled { color: #8E90A6; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 17px, rgba(255, 255, 255, 0) 17.5px); transform: none; }
.v-composer__hint { grid-area: hint; display: none; padding-left: 8px; font-size: 13px; line-height: 18px; color: var(--v-fg-3); }

.v-dock[data-state="focus"] .v-composer {
  grid-template-areas: "att att att" "field field field" "plus hint send";
  row-gap: 6px;
  padding: 8px;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(124, 150, 255, 0.35), 0 20px 50px -18px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.v-dock[data-state="focus"] .v-composer__field { min-height: 66px; padding: 8px 10px 4px; overflow-y: auto; }
.v-dock[data-state="focus"] .v-composer__hint { display: block; }

/* Главная отходит назад, пока формулируешь: темнеет и чуть уходит вглубь; тап по ней — свернуть ввод. */
.v-compose-scrim { position: fixed; inset: 0; z-index: 9; width: 100%; background: rgba(4, 5, 12, 0.66); opacity: 0;
  pointer-events: none; transition: opacity 320ms var(--v-soft); }
[data-composing="true"][data-surface="home"] .v-compose-scrim { opacity: 1; pointer-events: auto; }
.v-main { transition: transform 420ms var(--v-soft); transform-origin: 50% 30%; }
[data-composing="true"][data-surface="home"] .v-main { transform: scale(0.965) translateY(-10px); }
[data-composing="true"] .v-dock { background: linear-gradient(to top, rgba(6, 7, 18, 0.98) 70%, rgba(6, 7, 18, 0)); }

/* Вложения: фишка с типом; крестик — полная зона касания 44. */
.v-att {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 36px;
  padding-left: 10px;
  border-radius: 18px;
  background: rgba(124, 150, 255, 0.14);
  border: 1px solid rgba(124, 150, 255, 0.22);
  color: #DCE3FF;
  font-size: 14px;
  line-height: 18px;
}
.v-att > .ph { width: 16px; height: 16px; color: var(--v-blue-text); }
.v-att__text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-att__kind { color: #AEB9EA; }
.v-att__x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -4px -4px -4px -10px; color: #C9CFF0; }
.v-att__x .ph { width: 14px; height: 14px; }
.v-att--static { padding-right: 12px; }

/* --- Меню «+» над полем -------------------------------------------------------------------------------------- */
.v-sheet {
  margin: 0 0 8px;
  padding: 10px;
  border-radius: 26px;
  background-color: #14152A;
  background-image: linear-gradient(180deg, #1B1C36, #121325);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: v-sheet-in 320ms var(--v-soft);
}
.v-sheet__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-sheet__tile {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 78px;
  padding: 12px 6px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  text-align: center;
  transition: transform 120ms var(--v-soft), background-color 160ms;
}
.v-sheet__tile-ic .ph { width: 26px; height: 26px; color: #C7CEFF; }
.v-sheet__tile:active, .v-sheet__row:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.09); }
.v-sheet__list { display: grid; gap: 2px; margin-top: 8px; }
.v-sheet__list--scroll { max-height: min(44vh, 360px); overflow-y: auto; margin-top: 4px; }
.v-sheet__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 6px 10px 6px 6px;
  border-radius: 16px;
  text-align: left;
  transition: transform 120ms var(--v-soft), background-color 160ms;
}
.v-sheet__row:disabled { opacity: 0.45; }
.v-sheet__row > .ph { width: 16px; height: 16px; color: var(--v-fg-3); }
.v-sheet__row-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); }
.v-sheet__row-ic .ph { width: 20px; height: 20px; color: #C7CEFF; }
.v-sheet__row-ic--proj .ph { color: var(--pc); }
.v-sheet__row-text { display: grid; flex: 1; min-width: 0; font-size: 16px; line-height: 21px; }
.v-sheet__row-text > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-sheet__row-note { font-size: 13px; line-height: 17px; color: var(--v-fg-3); }
.v-sheet__head { display: flex; align-items: center; gap: 4px; }
.v-sheet__back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; }
.v-sheet__back .ph { width: 20px; height: 20px; }
.v-sheet__title { font-size: 17px; line-height: 22px; font-weight: 650; }
.v-sheet__form { display: flex; gap: 8px; margin-top: 6px; }
.v-sheet__field {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  outline: none;
  font-size: 16px;
}
.v-sheet__field:focus { border-color: rgba(124, 150, 255, 0.6); }
.v-sheet__add { height: 48px; padding: 0 16px; border-radius: 16px; background: #F5F5F7; color: #0B0B0F; font-size: 15px; font-weight: 650; }
.v-sheet__note, .v-sheet__empty { padding: 10px 6px 4px; font-size: 13px; line-height: 18px; color: var(--v-fg-3); }

/* --- Разговор ---------------------------------------------------------------------------------------------------- */
.v-thread { display: grid; gap: 14px; padding-top: 14px; }
.v-thread__head { display: grid; gap: 4px; padding: 0 4px 4px; }
.v-thread__proj { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--v-fg-3); }
.v-thread__proj .ph { width: 16px; height: 16px; }
.v-thread__title { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.022em; }
.v-thread__demo { font-size: 12px; line-height: 16px; color: var(--v-fg-3); }

.v-msg { justify-self: end; display: grid; justify-items: end; gap: 6px; max-width: 86%; }
.v-msg__text {
  padding: 12px 16px;
  border-radius: 22px 22px 6px 22px;
  background-image: linear-gradient(180deg, #2C2E57, #232448);
  border: 1px solid rgba(160, 170, 255, 0.14);
  font-size: 17px;
  line-height: 23px;
  overflow-wrap: anywhere;
}
.v-msg__att { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.v-msg__at { font-size: 12px; line-height: 16px; color: var(--v-fg-3); }

.v-think { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 15px; line-height: 20px; }
.v-think .ph { width: 18px; height: 18px; color: #B9B2FF; animation: v-halo 1.2s var(--v-soft) infinite alternate; }
.v-think span, .v-step[data-state="active"] .v-step__label > span:first-child {
  background: linear-gradient(90deg, var(--v-blue-text) 0%, #FFFFFF 45%, var(--v-blue-text) 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--v-blue-text);                /* смысл и контраст — цвет; блик — заливкой текста */
  -webkit-text-fill-color: transparent;
  animation: v-sweep 2.2s linear infinite;
}

/* «Как ALEX понял задачу» */
.v-und { padding: 18px 18px 6px; }
.v-und__head { display: flex; align-items: center; gap: 10px; }
.v-und__spark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px;
  background: linear-gradient(135deg, #8B7CFF, #5B8CFF); box-shadow: 0 6px 18px -6px rgba(139, 124, 255, 0.9); }
.v-und__spark .ph { width: 16px; height: 16px; color: #FFFFFF; }
.v-und__eyebrow { font-size: 15px; line-height: 20px; font-weight: 600; color: #CFCAFF; }
.v-und__goal { margin: 12px 0 10px; font-size: 21px; line-height: 27px; font-weight: 700; letter-spacing: -0.02em; }
.v-und__row { display: grid; gap: 2px; }
.v-und__k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--v-fg-3); }
.v-und__k .ph { width: 14px; height: 14px; }
.v-und__v { font-size: 15px; line-height: 21px; color: var(--v-fg-2); }
.v-und__plan { display: grid; gap: 8px; margin: 14px 0; counter-reset: none; }
.v-und__plan li { display: flex; gap: 10px; font-size: 15px; line-height: 21px; }
.v-und__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.07); font-size: 12px; line-height: 22px; font-weight: 700; color: var(--v-fg-2); }
.v-und__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.v-fact { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; line-height: 18px; font-weight: 600; }
.v-fact .ph { width: 15px; height: 15px; color: #BFC5F2; }
.v-fact[data-tone="ok"] { color: var(--v-green-text); }
.v-fact[data-tone="ok"] .ph { color: var(--v-green-text); }
.v-fact[data-tone="wait"] { color: var(--v-amber-text); }
.v-fact[data-tone="wait"] .ph { color: var(--v-amber-text); }
.v-und__cap { display: flex; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--v-fg-2); }
.v-und__cap .ph { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--v-fg-3); }
.v-und__limits { display: grid; gap: 4px; margin-top: 12px; }
.v-und__limits li { position: relative; padding-left: 14px; font-size: 13px; line-height: 18px; color: var(--v-fg-2); }
.v-und__limits li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--v-fg-3); }

.v-tech { margin-top: 10px; border-top: 1px solid var(--v-line); }
.v-tech__sum, .v-log__sum {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  line-height: 18px;
  color: var(--v-fg-2);
  cursor: pointer;
  list-style: none;
}
.v-tech__sum::-webkit-details-marker, .v-log__sum::-webkit-details-marker { display: none; }
.v-tech__sum .ph, .v-log__sum .ph { width: 16px; height: 16px; color: var(--v-fg-3); }
.v-tech__sum > .ph:last-child, .v-log__sum > .ph:last-child { margin-left: auto; transition: transform 260ms var(--v-soft); }
details[open] > .v-tech__sum > .ph:last-child, details[open] > .v-log__sum > .ph:last-child { transform: rotate(180deg); }
.v-tech__facts { display: grid; gap: 10px; padding: 2px 0 12px; }
.v-tech__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 18px; }
.v-tech__facts dt { color: var(--v-fg-3); }
.v-tech__facts dd { margin: 0; color: var(--v-fg-2); overflow-wrap: anywhere; }
.v-tech__h { font-size: 13px; line-height: 18px; color: var(--v-fg-3); margin-bottom: 6px; }
.v-tech__note { display: flex; gap: 6px; align-items: center; padding: 10px 0 12px; font-size: 12px; line-height: 16px; color: var(--v-fg-3); }
.v-tech__note .ph { width: 14px; height: 14px; }
.v-code {
  max-height: 260px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font: 11.5px/16px var(--v-mono);
  color: #C9CBDD;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Ход задачи: шаги с правдивыми состояниями, кадры и доказательства на месте, команды — свёрнуты. */
.v-run { display: grid; gap: 12px; padding: 4px 2px 0; }
.v-run__head { display: flex; align-items: center; gap: 10px; }
.v-run__live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--v-blue-text); }
.v-run__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--v-blue); box-shadow: 0 0 8px var(--v-blue); animation: v-halo 1s ease-in-out infinite alternate; }
.v-steps { display: grid; }
.v-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; animation: v-open 420ms var(--v-soft); }
.v-step:not(:last-child)::before { content: ''; position: absolute; left: 13.5px; top: 28px; bottom: 2px; width: 1px; background: rgba(255, 255, 255, 0.1); }
.v-step__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.v-step__mark .ph { width: 15px; height: 15px; }
.v-step[data-state="done"] .v-step__mark { background: rgba(74, 222, 128, 0.13); color: var(--v-green-text); }
.v-step[data-state="waiting"] .v-step__mark { background: rgba(255, 181, 71, 0.15); color: var(--v-amber-text); }
.v-step[data-state="blocked"] .v-step__mark { background: rgba(255, 181, 71, 0.15); color: var(--v-amber-text); border-radius: 8px; }
.v-step[data-state="failed"] .v-step__mark { background: rgba(255, 107, 107, 0.15); color: var(--v-red-text); border-radius: 8px; }
.v-step[data-state="active"] .v-step__mark { background: rgba(124, 150, 255, 0.14); }
.v-step[data-state="active"] .v-step__mark i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--v-blue); box-shadow: 0 0 10px var(--v-blue); }
.v-step[data-state="active"] .v-step__mark i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--v-blue); animation: v-ping 1.6s var(--v-soft) infinite; }
.v-step__body { display: grid; gap: 6px; min-width: 0; padding-top: 3px; }
.v-step__label { display: flex; align-items: baseline; gap: 10px; font-size: 16px; line-height: 21px; font-weight: 600; }
.v-step__label > span:first-child { flex: 1; min-width: 0; }
.v-step__at { flex: none; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--v-fg-3); }
.v-step[data-state="waiting"] .v-step__label, .v-step[data-state="blocked"] .v-step__label { color: var(--v-amber-text); }
.v-step__detail { font-size: 14px; line-height: 19px; color: var(--v-fg-2); overflow-wrap: anywhere; }
.v-step__art { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.v-shot {
  position: relative;
  display: block;
  width: min(100%, 210px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0B0C18;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.95);
  transition: transform 160ms var(--v-soft);
}
.v-shot:active { transform: scale(0.98); }
.v-shot img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: top; }
.v-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 18px 10px 8px;
  background: linear-gradient(to top, rgba(6, 7, 18, 0.96) 40%, rgba(6, 7, 18, 0)); font-size: 12px; line-height: 16px; color: #E6E7F2; text-align: left; }
.v-shot__cap .ph { width: 14px; height: 14px; flex: none; }
.v-ev { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px 6px 10px; border-radius: 16px;
  background: rgba(74, 222, 128, 0.07); border: 1px solid rgba(74, 222, 128, 0.16); font-size: 13px; line-height: 18px; color: #CFF5DD; }
.v-ev .ph { width: 15px; height: 15px; color: var(--v-green-text); flex: none; }
.v-log { border-radius: 14px; }
.v-log .v-code { margin-bottom: 4px; }
.v-outcome { display: grid; gap: 8px; padding: 16px; }
.v-outcome__head { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 650; color: var(--v-green-text); }
.v-outcome[data-ok="false"] .v-outcome__head { color: var(--v-red-text); }
.v-outcome__head .ph { width: 20px; height: 20px; }
.v-outcome__text { font-size: 16px; line-height: 22px; }
.v-note[data-tone="blocked"] .ph { color: var(--v-amber); }

/* Кадр во весь экран */
.v-lightbox { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 12px;
  padding: calc(var(--safe-top) + 56px) 16px calc(var(--safe-bottom) + 24px); animation: v-fade 240ms var(--v-soft); }
.v-lightbox__bg { position: absolute; inset: 0; width: 100%; background: rgba(2, 3, 10, 0.97); }
.v-lightbox__img { position: relative; max-width: 100%; max-height: 74vh; border-radius: 20px; box-shadow: 0 30px 80px -20px #000; }
.v-lightbox__cap { position: relative; font-size: 14px; line-height: 19px; color: var(--v-fg-2); }
.v-lightbox__x { position: absolute; top: calc(var(--safe-top) + 6px); right: 12px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.1); }

/* --- Работа ------------------------------------------------------------------------------------------------------ */
.v-work { padding-top: 16px; }
.v-work__h { margin: 0 4px 16px; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; }
.v-work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v-work__cell--wide { grid-column: span 2; }
.v-work__tile {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-height: 148px;
  padding: 16px;
  border-radius: 24px;
  text-align: left;
  transition: transform 120ms var(--v-soft);
}
.v-work__tile:active { transform: scale(0.97); }
.v-work__ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); }
.v-work__ic .ph { width: 22px; height: 22px; color: #C7CEFF; }
.v-work__title { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 22px; font-weight: 650; }
.v-work__title .v-drawer__count { margin-left: 0; }
.v-work__note { font-size: 13px; line-height: 18px; color: var(--v-fg-2); }
.v-work__st { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--v-fg-3); }
.v-work__tile[data-st="next"] .v-work__st { color: var(--v-blue-text); }
.v-work__tile[data-st="plan"] { background-image: none; background-color: rgba(255, 255, 255, 0.025); border-style: dashed; box-shadow: none; }
.v-work__cell--wide .v-work__tile { min-height: 0; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.v-work__cell--wide .v-work__ic { grid-row: span 3; margin: 0; }
.v-work__cell--wide .v-work__st { margin-top: 2px; }

.v-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; padding: 0 8px 0 4px;
  font-size: 15px; line-height: 20px; color: var(--v-blue-text); }
.v-back .ph { width: 18px; height: 18px; transform: rotate(180deg); }

/* --- Стенд: эмуляция клавиатуры iOS (?kb=) ----------------------------------------------------------------------- */
.stand-kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: linear-gradient(180deg, #2B2C31, #1F2024);
  border-top: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.stand-kb::after { content: 'клавиатура iOS'; position: absolute; top: 45%; left: 0; right: 0; text-align: center;
  font: 13px/1 -apple-system, system-ui, sans-serif; color: rgba(255, 255, 255, 0.35); }

@keyframes v-sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes v-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-composing="true"][data-surface="home"] .v-main { transform: none; }
  .v-think span, .v-step[data-state="active"] .v-step__label > span:first-child { animation: none; background: none; -webkit-text-fill-color: currentColor; }
}
