/* «Дауыс» — студия в «Дала 2.0», как портал кабинетов (mobileapp/apps/portal/src/design/global.css). Цвета и радиусы —
   только переменные из dala.css (генератор dauys/deploy/dala-css.py из design-tokens.json); здесь — форма. */
:root {
  --display: "Geologica", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --brand-word: "Righteous", "Geologica", system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(15 26 44 / 6%), 0 10px 28px rgb(15 26 44 / 7%);
  --shadow-up: 0 -1px 0 var(--border-decorative);
  --sidebar: 264px;
  --tabbar: 76px;
  --globy-from: #8F6DF7; --globy-to: #5B2FD6; --globy-eye: #FFFFFF; --globy-shade: #180646; --globy-shade-alpha: 0.38;
  --brand-ink: #2A1270;
  --sky-ink: var(--action-edge); /* текст на небесной подложке */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow: 0 0 0 1px var(--border-decorative);
    --globy-from: #FFFFFF; --globy-to: #CFC3F2; --globy-eye: #2A1478; --globy-shade: #341E78; --globy-shade-alpha: 0.3;
    --brand-ink: #FFFFFF;
    --sky-ink: var(--action-primary); /* ребро неба на тёмной подложке — 2,9:1 */
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --shadow: 0 0 0 1px var(--border-decorative);
  --globy-from: #FFFFFF; --globy-to: #CFC3F2; --globy-eye: #2A1478; --globy-shade: #341E78; --globy-shade-alpha: 0.3;
  --brand-ink: #FFFFFF;
  --sky-ink: var(--action-primary);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--surface-canvas); color: var(--text-primary); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--action-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.main:focus { outline: none; } /* фокус переносится сюда при переходе — рамка не нужна */
.boot { padding: 40px; color: var(--text-secondary); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--text-secondary); }
.small { font: 400 14px/20px var(--text); }
.num { font-variant-numeric: tabular-nums; }

/* ——— Globy и знак ——— */
.globy { display: block; overflow: visible; }
.globy__body, .globy__eyes { transform-origin: 0 0; }
.globy__body--pose { transform: rotate(-135deg) scale(1.03, 0.973) rotate(135deg); }
.globy--live .globy__body { animation: globy-breath 3s ease-in-out infinite alternate; }
.globy--live .globy__eyes { animation: globy-blink 4860ms linear infinite; }
@keyframes globy-breath { from { transform: rotate(-135deg) scale(1, 1) rotate(135deg); } to { transform: rotate(-135deg) scale(1.035, 0.9685) rotate(135deg); } }
@keyframes globy-blink {
  0%, 53.5% { transform: translateY(-35.87px) scaleY(1) translateY(35.87px); }
  54.94% { transform: translateY(-35.87px) scaleY(0.1) translateY(35.87px); }
  57.2%, 96.3% { transform: translateY(-35.87px) scaleY(1) translateY(35.87px); }
  97.74% { transform: translateY(-35.87px) scaleY(0.1) translateY(35.87px); }
  100% { transform: translateY(-35.87px) scaleY(1) translateY(35.87px); }
}
.brand { display: inline-flex; align-items: center; font: 400 30px/1.1 var(--brand-word); color: var(--brand-ink); text-decoration: none; padding: 4px 10px 0; }
/* Связка «знак Globy + globalos», как у портала (пакет Globy 23.10): D = высота «l» + 0,026 кегля, зазор до «g» — 0,25 D. */
.brand-lockup { display: inline-flex; align-items: baseline; letter-spacing: -0.02em; text-transform: lowercase; }
.brand-lockup__mark { width: 0.746em; height: 0.746em; margin-right: 0.187em; flex: none; position: relative; top: 0.026em; }
.brand-lockup__mark .globy { width: 100%; height: 100%; }
/* Имя «daus (beta) by globalos» (владелец 26.10): слово daus Righteous + пилюля beta, под ним by globalos. */
.brand-lockup { align-items: baseline; }
.brand-lockup__text { display: inline-flex; flex-direction: column; }
.brand-lockup__word { display: inline-flex; align-items: center; }
.brand-beta { margin-left: 8px; letter-spacing: 0; text-transform: none; }
.brand-by { font: 500 13px/1.2 var(--text); letter-spacing: 0; text-transform: none; color: var(--text-secondary); margin-top: 2px; }
.phone-head .brand-by { font-size: 11px; }
.brand-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 13px/1.3 var(--text); color: var(--text-secondary); padding: 4px 10px 14px; }
.brand-sub b { font: 700 15px/1.2 var(--display); color: var(--text-primary); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 12px/1 var(--text); background: var(--mascot-bubble); color: var(--mascot-accent); white-space: nowrap; vertical-align: middle; }

/* ——— Типографика ——— */
h1 { font: 700 28px/34px var(--display); letter-spacing: -0.01em; margin: 0 0 4px; }
h2 { font: 600 22px/28px var(--display); margin: 0; }
h3 { font: 600 16px/22px var(--text); margin: 0; }
.lead { margin: 0; color: var(--text-secondary); max-width: 72ch; font: 400 16px/24px var(--text); }

/* ——— Раскладка ——— */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.page { display: flex; flex-direction: column; gap: 24px; max-width: 1180px; }

/* ——— Каркас: боковое меню; на телефоне — шапка и нижнее меню ——— */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex-shrink: 0; background: var(--surface-content); box-shadow: 1px 0 0 var(--border-decorative); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-small); background: transparent; color: var(--text-secondary); font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.nav-item:hover { background: var(--surface-subtle); color: var(--text-primary); }
.nav-item[aria-current="page"] { background: var(--action-container); color: var(--sky-ink); }
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; border-radius: var(--r-control); background: var(--surface-subtle); min-width: 0; }
.who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.who b { font: 600 14px/1.3 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font: 400 12px/1.3 var(--text); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { flex: 1 1 auto; min-width: 0; padding: 32px clamp(16px, 3vw, 40px) 56px; }
.tabbar, .phone-head { display: none; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding: 4px 16px calc(var(--tabbar) + 32px); }
  .phone-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; margin-bottom: 8px; }
  .phone-head .brand { font-size: 26px; padding: 0; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface-content); box-shadow: var(--shadow-up); z-index: 20; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: var(--text-secondary); text-decoration: none; font: 600 12px/1.1 var(--text); text-align: center; }
  .tab__icon { width: 56px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
  .tab[aria-current="page"] { color: var(--action-primary); }
  .tab[aria-current="page"] .tab__icon { background: var(--action-container); }
  h1 { font-size: 26px; line-height: 32px; }
}
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text-primary); cursor: pointer; }
.icon-btn:hover { background: var(--surface-subtle); }

/* ——— Кнопки: ребро снизу, при нажатии кнопка опускается на ребро. .btn — вторичная, .primary/.accent — главное действие ——— */
.btn { --edge: var(--border-control); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--border-control); border-radius: var(--r-control); background: var(--surface-content); color: var(--text-primary); font: 600 16px/1.2 var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--edge); transform: translateY(0); transition: transform 90ms ease, box-shadow 90ms ease; white-space: nowrap; }
.btn:hover { color: var(--text-primary); filter: brightness(1.02); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.btn.primary, .btn.accent { --edge: var(--action-edge); border: 0; background: var(--action-primary); color: var(--on-action-primary); box-shadow: 0 4px 0 var(--edge); }
.btn.primary:hover, .btn.accent:hover { color: var(--on-action-primary); filter: brightness(1.04); }
.btn.primary:active, .btn.accent:active { box-shadow: 0 1px 0 var(--edge); }
.btn.danger { --edge: var(--status-error); color: var(--status-error); border-color: var(--status-error); }
.btn.danger:hover { color: var(--status-error); }
.btn.quiet { border: 0; background: transparent; color: var(--action-primary); box-shadow: none; padding: 0 12px; }
.btn.quiet:hover { background: var(--action-container); color: var(--sky-ink); }
.btn.quiet:active { transform: none; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; box-shadow: 0 3px 0 var(--edge); }
.btn.quiet.sm { box-shadow: none; padding: 0 10px; }
.btn.block { width: 100%; }
.btn[disabled] { background: var(--surface-subtle); color: var(--text-disabled); border: 1.5px dashed var(--border-control); box-shadow: none; cursor: progress; transform: none; filter: none; }

/* ——— Карточки ——— */
.card { background: var(--surface-content); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card.sky { background: var(--action-container); box-shadow: none; }
.card.subtle { background: var(--surface-subtle); box-shadow: none; }
.card.err { background: var(--status-error-container); color: var(--status-error); box-shadow: none; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ——— Поля ——— */
textarea, input[type=text], input[type=password], select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--border-control); border-radius: var(--r-control); background: var(--surface-content); color: var(--text-primary); font: 400 16px/1.4 var(--text); }
textarea { padding: 14px 16px; min-height: 104px; resize: vertical; line-height: 1.6; }
textarea.editor { min-height: 240px; font-size: 17px; line-height: 27px; border-radius: var(--r-card); padding: 18px 20px; }
select { width: auto; min-height: 40px; padding: 0 36px 0 12px; appearance: none; background: var(--surface-content) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A879C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
::placeholder { color: var(--text-disabled); opacity: 1; }
label.field { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.3 var(--text); color: var(--text-secondary); }
label.field.inline { flex-direction: row; align-items: center; gap: 8px; }
label.field > input, label.field > select { color: var(--text-primary); font-weight: 400; }
input[type=range] { width: 100%; accent-color: var(--action-primary); }
.hint { font: 400 13px/1.4 var(--text); color: var(--text-disabled); }

/* ——— Переключатель и метки ——— */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-subtle); max-width: 100%; overflow-x: auto; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: 600 15px/1 var(--text); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface-content); color: var(--text-primary); box-shadow: 0 1px 3px rgb(15 26 44 / 15%); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font: 600 13px/1 var(--text); white-space: nowrap; background: var(--surface-subtle); color: var(--text-secondary); }
.chip.kk { background: var(--subject-geography-container); color: var(--subject-geography-ink); }
.chip.ru { background: var(--action-container); color: var(--sky-ink); }
.chip.mixed { background: var(--mascot-bubble); color: var(--mascot-accent); }
.chip.off { background: var(--status-error-container); color: var(--status-error); }

/* ——— Голоса ——— */
.voice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-control); border-radius: var(--r-control); background: var(--surface-content); cursor: pointer; text-align: left; box-shadow: 0 3px 0 var(--surface-edge); }
.voice[aria-checked="true"] { border-color: var(--action-primary); background: var(--action-container); box-shadow: 0 3px 0 var(--action-edge); }
.voice b { font: 600 16px/1.3 var(--text); }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--action-primary); color: var(--on-action-primary); font: 700 17px/1 var(--display); }

/* ——— Результат и записи ——— */
.result { display: flex; flex-direction: column; gap: 12px; }
audio { width: 100%; height: 44px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 400 14px/20px var(--text); color: var(--text-secondary); }
.rate { display: flex; flex-wrap: wrap; gap: 8px; }
.rate button { --edge: var(--border-control); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border-control); background: var(--surface-content); color: var(--text-primary); font: 600 14px/1 var(--text); cursor: pointer; box-shadow: 0 2px 0 var(--edge); }
.rate button:active { transform: translateY(2px); box-shadow: none; }
.rate button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; opacity: .55; }
.rate button.good::before { background: var(--mint); opacity: 1; }
.rate button.dry::before { background: var(--sun); opacity: 1; }
.rate button.error::before { background: var(--repeat-fill); opacity: 1; }
.rate button[aria-pressed="true"].good { --edge: var(--mint-edge); background: var(--status-success-container); border-color: var(--mint-edge); color: var(--status-success); }
.rate button[aria-pressed="true"].dry { --edge: var(--sun-edge); background: var(--status-hint-container); border-color: var(--sun-edge); color: var(--status-hint); }
.rate button[aria-pressed="true"].error { --edge: var(--repeat-edge); background: var(--repeat-container); border-color: var(--repeat-accent); color: var(--repeat-text); }
.list { display: flex; flex-direction: column; gap: 12px; }
.item-row { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface-content); box-shadow: var(--shadow); min-width: 0; }
.item-row .text { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 16px/24px var(--text); }
.item-row .text.clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.counts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.counts span { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; font: 600 12px/1 var(--text); }
.counts .g { background: var(--status-success-container); color: var(--status-success); }
.counts .d { background: var(--status-hint-container); color: var(--status-hint); }
.counts .e { background: var(--repeat-container); color: var(--repeat-text); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 24px; border-radius: var(--r-card); background: var(--surface-content); box-shadow: var(--shadow); color: var(--text-secondary); }
.empty .globy { width: 64px; height: 64px; }

/* ——— Таблицы ——— */
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--r-card); background: var(--surface-content); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font: 400 15px/22px var(--text); }
th { text-align: left; font: 600 13px/18px var(--text); color: var(--text-secondary); padding: 12px 16px; border-bottom: 1px solid var(--border-decorative); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border-decorative); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.invites { display: flex; flex-direction: column; gap: 8px; }
.invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: var(--r-control); background: var(--surface-subtle); }
.invite-row > :first-child { font-weight: 600; min-width: 160px; }

/* ——— Сводка и расход ——— */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface-content); box-shadow: var(--shadow); min-width: 0; }
.stat .v { font: 700 30px/1.15 var(--display); font-variant-numeric: tabular-nums; color: var(--text-primary); }
.stat .v.ok { font-size: 22px; color: var(--status-success); }
.stat .v.bad { font-size: 22px; color: var(--status-error); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 16px; border-radius: var(--r-card); background: var(--surface-content); box-shadow: var(--shadow); }
.bars span { flex: 1; min-width: 3px; border-radius: 4px 4px 0 0; background: var(--action-container); }
.bars span.today { background: var(--action-primary); }

/* ——— Код и секреты ——— */
.code { border-radius: var(--r-card); background: #0A1120; color: #EEF2FA; overflow: hidden; }
.code .tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid #26324A; }
.code .tabs button { border: 0; background: transparent; color: #A9B4C8; min-height: 40px; padding: 0 14px; cursor: pointer; border-bottom: 2px solid transparent; font: 600 14px/1 var(--text); }
.code .tabs button[aria-selected="true"] { color: #FFFFFF; border-bottom-color: #5AA2FF; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.7 var(--mono); }
.secret { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-control); background: var(--status-hint-container); color: var(--status-hint); }
.secret code { font-family: var(--mono); color: var(--text-primary); overflow-wrap: anywhere; }

/* ——— Вход ——— */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--surface-canvas); }
.auth .card { width: min(440px, 100%); padding: clamp(24px, 5vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.auth .brand { font-size: 40px; padding: 0; }
.auth__globy { width: 72px; height: 72px; }
.auth__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.err { color: var(--status-error); font: 500 14px/1.4 var(--text); min-height: 1.2em; }
.err:not(:empty)::before { content: "! "; font-weight: 700; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-control); background: var(--text-primary); color: var(--surface-canvas); font: 600 15px/1.3 var(--text); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
#toast.show { opacity: 1; }
@media (max-width: 900px) { #toast { bottom: calc(var(--tabbar) + 20px); } }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .globy--live .globy__body, .globy--live .globy__eyes, .spinner { animation: none; }
  #toast, .btn { transition: none; }
}

/* ——— Голоса, свой голос, словарь (страницы холста, 26.10) ——— */
.beta-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 6px; border-radius: var(--r-control); background: var(--mascot-bubble); color: var(--text-primary); font: 400 13px/1.35 var(--text); }
.beta-card b { font: 600 14px/1.3 var(--text); color: var(--mascot-accent); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font: 400 15px/1.4 var(--text); color: var(--text-primary); }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--action-primary); }
.check b { font-weight: 600; }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .variants { grid-template-columns: minmax(0, 1fr); } }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.sample { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sample audio { flex: 1; min-width: 0; }
.mark { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font: 600 13px/1 var(--text); white-space: nowrap; background: var(--surface-subtle); color: var(--text-secondary); }
.mark::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.mark.done { background: var(--status-success-container); color: var(--status-success); }
.mark.checking { background: var(--status-hint-container); color: var(--status-hint); }
.mark.error { background: var(--status-error-container); color: var(--status-error); }
.t-warm { color: var(--repeat-text); }
.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.steps__item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-small); background: var(--surface-subtle); color: var(--text-secondary); font: 600 14px/1.2 var(--text); }
.steps__item[data-state="done"] { background: var(--status-success-container); color: var(--status-success); }
.steps__item[data-state="current"] { background: var(--action-container); color: var(--sky-ink); }
.steps__num { width: 22px; height: 22px; border-radius: 999px; background: var(--surface-content); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.btn.rec.on { --edge: var(--repeat-edge); background: var(--repeat-fill); color: var(--on-repeat-fill); }
details > summary { cursor: pointer; color: var(--action-primary); min-height: 32px; display: flex; align-items: center; }
.chip-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border-control); background: var(--surface-content); color: var(--text-primary); font: 600 14px/1 var(--text); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--action-container); border-color: var(--action-primary); color: var(--sky-ink); }
.lex-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto auto auto; gap: 12px; align-items: end; }
@media (max-width: 1100px) { .lex-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lex-form > .row { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lex-form { grid-template-columns: minmax(0, 1fr); } }
.stat b { font: 600 16px/1.3 var(--text); }
.lex-form select { min-height: 48px; width: 100%; }
