:root {
  --bg: #07070b;
  --card: #101017;
  --card2: #15151e;
  --card3: #1b1b26;
  --line: #24242f;
  --line-soft: #1c1c26;
  --text: #f4f4f8;
  --dim: #8d8d9e;
  --dim2: #5c5c6d;
  --accent: #7b5cff;
  --accent-strong: #6a48ff;
  --accent-soft: rgba(123, 92, 255, 0.16);
  --cyan: #22d3ee;
  --ok: #33d69f;
  --err: #ff6b6b;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Один шаг отступов на всё приложение: секции, строки, кнопки. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: padding-bottom 0.2s var(--ease);
}
/* Запас под нижнюю панель рендера — один раз и с безопасной зоной. */
body.hasBar { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }

.halo {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 60vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(50% 50% at 30% 20%, rgba(123, 92, 255, 0.28), transparent 70%),
    radial-gradient(45% 45% at 80% 0%, rgba(34, 211, 238, 0.14), transparent 70%);
  filter: blur(10px);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--s4) var(--s6);
}

/* ---------------- Шапка ------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s1) 0 var(--s4);
}

.logo {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #9a7dff, #5b37f0 55%, #221446);
  box-shadow: 0 10px 28px rgba(106, 72, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.logo svg { width: 24px; height: 24px; }

.titles { flex: 1; min-width: 0; }

.gearBtn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #14141c;
  color: var(--dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.gearBtn svg { width: 20px; height: 20px; }
.gearBtn:hover { color: #fff; border-color: #33334a; }
.gearBtn[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(123, 92, 255, 0.6);
  background: rgba(123, 92, 255, 0.14);
}

.settingsPanel {
  border-color: rgba(123, 92, 255, 0.32);
  box-shadow: 0 22px 50px -30px rgba(123, 92, 255, 0.8);
}
.settingsSection + .settingsSection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.titles h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.tagline {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.chip {
  flex: none;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8a8ff;
  background: var(--accent-soft);
  border: 1px solid rgba(123, 92, 255, 0.32);
  padding: var(--s1) var(--s2);
  border-radius: 999px;
  animation: pop 0.25s var(--ease);
}
.chip.busy { color: #9adfee; background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.3); }
.chip.ok { color: #06231a; background: var(--ok); border-color: transparent; }

/* ---------------- Сетка ---------------------------------------------- */

.columns {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.col { display: contents; }

#cardSource { order: 1; }
#cardPreview { order: 2; }
#cardSetup { order: 3; }
#cardHistory { order: 4; }
#cardResult { order: 5; }

@media (min-width: 900px) {
  .columns {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: var(--s6);
  }
  .col { display: block; }
  .colSide { position: sticky; top: var(--s6); }
  .col > .card { order: 0; }
  /* Внутри колонки промежутки держат сами карточки. */
  .col > .card + .card { margin-top: var(--s5); }
}

.cardPanel { padding-top: var(--s4); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 40%), var(--card);
  border: 1px solid var(--border, #232331);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: rise 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card:last-child { margin-bottom: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cardHead {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
  min-width: 0;
}
.cardHead h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  flex: 1;
}
.step {
  width: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--s2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  background: #1e1e29;
  border: 1px solid var(--line);
  flex: none;
}
.step.ok {
  width: auto;
  padding: 0 8px;
  color: #06231a;
  background: var(--ok);
  border-color: transparent;
}
.cardNote {
  font-size: 11px;
  color: var(--dim2);
  letter-spacing: 0.02em;
}
.badge {
  font: 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--dim);
  background: #1a1a24;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s1) var(--s2);
  flex: none;
}

.hint, .meta, .foot { color: var(--dim); }
.hint { margin: 0 0 var(--s3); font-size: 12.5px; line-height: 1.5; }
.meta { margin: var(--s2) 0 0; font-size: 12.5px; line-height: 1.5; }
.foot {
  margin: var(--s5) 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dim2);
  text-align: center;
}
.error {
  margin: 12px 0 0;
  color: var(--err);
  font-size: 13px;
  white-space: pre-wrap;
}
.warn {
  margin: 8px 0 0;
  color: #f3b96a;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------------- Кнопки --------------------------------------------- */

.row {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  align-items: center;
}
.row + .row { margin-top: var(--s2); }
.row.center { justify-content: center; }
.grow { flex: 1 1 auto; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #22222e, #1a1a24);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 15px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  transition: transform 0.12s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease), opacity 0.16s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn:hover { border-color: #313142; }
.btn:active { transform: scale(0.975); }
.btn.ghost { background: transparent; color: var(--dim); box-shadow: none; }
.btn.small { min-height: 38px; padding: var(--s2) var(--s3); font-size: 13px; border-radius: 11px; }
.btn.primary {
  background: linear-gradient(180deg, #8a6bff, var(--accent-strong));
  border-color: #6a48ff;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(106, 72, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.big { width: 100%; padding: 15px 16px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.linkBtn {
  appearance: none;
  border: 0;
  background: none;
  color: #9c8bff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 var(--s1);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s;
}
.linkBtn:hover { color: #b8a8ff; }

/* ---------------- Загрузка ------------------------------------------- */

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s5) var(--s4) var(--s5);
  border-radius: 16px;
  border: 1px dashed #2c2c3c;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(123, 92, 255, 0.12), transparent 70%),
    #0c0c12;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.drop.over {
  border-color: rgba(123, 92, 255, 0.65);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(123, 92, 255, 0.22), transparent 70%),
    #0d0d15;
}

.arc {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
}
.arcOrbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(123, 92, 255, 0.35);
}
.arcOrbit::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(34, 211, 238, 0.75);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.arcIcon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #cbbcff;
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.42), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(123, 92, 255, 0.3);
}
.arcIcon svg { width: 22px; height: 22px; }

.dropTitle {
  margin: 4px 0 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.dropSub {
  margin: 0 0 var(--s4);
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.45;
  max-width: 34ch;
}
/* Ссылки под кнопками: каждая на своей строке, с воздухом. */
.drop .linkBtn { margin-top: var(--s2); }
/* Две кнопки загрузки — пополам, одной ширины и высоты. */
.drop .row.center { width: 100%; }
.drop .row.center .btn { flex: 1 1 0; }

.sourceLoaded {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #0d0d14;
  border: 1px solid var(--line-soft);
}
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px rgba(51, 214, 159, 0.9);
}
.sourceLoadedText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sourceLoadedText strong {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sourceLoadedText span {
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paste { margin-top: 12px; }
.paste textarea {
  width: 100%;
  height: 132px;
  resize: vertical;
  background: #0b0b11;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 10px;
}
.paste textarea:focus { outline: none; border-color: #4b3aa8; }

/* ---------------- Поля ----------------------------------------------- */

.field { margin-bottom: var(--s3); }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim2);
  margin-bottom: var(--s2);
}
select, input[type="number"] {
  width: 100%;
  appearance: none;
  background: #0b0b11;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  min-height: 46px;
  transition: border-color 0.15s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%238d8d9e' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select:focus, input[type="number"]:focus { outline: none; border-color: #4b3aa8; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.grid2 > * { min-width: 0; }
.grid2:last-of-type { margin-bottom: 0; }

/* ---------------- Вкладки источника ---------------------------------- */

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s1);
  padding: var(--s1);
  background: #0b0b11;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: var(--s4);
}

@media (min-width: 480px) {
  .tabs { grid-template-columns: repeat(4, 1fr); }
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: var(--s2) var(--s2);
  min-height: 40px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.tab:focus-visible {
  box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.55);
}
.tab[aria-selected="true"] {
  background: #1e1e2a;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.field textarea,
.field input[type="text"],
.field input[type="url"],
.field input[type="password"] {
  width: 100%;
  appearance: none;
  background: #0b0b11;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  min-height: 46px;
  transition: border-color 0.15s;
}
.field input[type="password"] {
  letter-spacing: 0.08em;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.45;
}
.field textarea:focus,
.field input[type="text"]:focus,
.field input[type="url"]:focus,
.field input[type="password"]:focus {
  outline: none;
  border-color: #4b3aa8;
}

/* ---------------- Соотношения --------------------------------------- */

.ratios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.ratio {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #0b0b11;
  border-radius: 13px;
  padding: var(--s3) var(--s1) var(--s2);
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font: inherit;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s, transform 0.12s;
}
.ratio:active { transform: scale(0.97); }
.ratio .ratioBox {
  display: block;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  opacity: 0.75;
}
.ratioLabel { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.ratio[aria-checked="true"] {
  color: #fff;
  border-color: rgba(123, 92, 255, 0.75);
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.22), rgba(123, 92, 255, 0.06));
  box-shadow: 0 8px 20px -14px rgba(123, 92, 255, 1), inset 0 1px 0 rgba(255,255,255,0.08);
}
.ratio[aria-checked="true"] .ratioBox { opacity: 1; border-color: #b8a8ff; }

/* ---------------- Студия --------------------------------------------- */

.sceneField {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #0d0d14;
  margin-bottom: 10px;
  transition: opacity 0.15s;
}
.sceneField.off { opacity: 0.5; }
.sceneField input[type="text"],
.sceneField textarea {
  width: 100%;
  background: #0b0b11;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  margin-top: 8px;
}
.sceneField textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.45;
}
.sceneField input[type="text"]:focus,
.sceneField textarea:focus { outline: none; border-color: #4b3aa8; }
.sceneField .grid2 { margin: 0; }
.sceneField .grid2 input { margin-top: 0; }

.sceneLabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim2);
}

.tick { display: inline-flex; flex: none; }
.tick input {
  appearance: none;
  width: 22px;
  height: 20px;
  margin: 0;
  border-radius: 6px;
  border: 1px solid #33334a;
  background: #0b0b11;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.tick input:checked {
  background: linear-gradient(180deg, #8a6bff, var(--accent-strong));
  border-color: #6a48ff;
}
.tick input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.tick i { display: none; }

.accentRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--dim);
}
.accentRow input[type="color"] {
  width: 38px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b11;
}

.modelPill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 10px var(--s3);
  border-radius: 12px;
  border: 1px solid rgba(123, 92, 255, 0.28);
  background: rgba(123, 92, 255, 0.1);
  color: #cfc2ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: var(--s3);
  text-align: left;
}
.modelPill span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modelPill .chev { opacity: 0.65; font-size: 16px; }
.modelPill span.empty { color: #f3b96a; }

.provBadge.small {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 10px;
}

.more {
  margin: 0 0 var(--s3);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #0b0b11;
}
.more summary {
  cursor: pointer;
  padding: var(--s3);
  font-size: 13px;
  font-weight: 600;
  color: #cfcfe0;
  list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "›";
  float: right;
  transform: rotate(90deg);
  transition: transform 0.15s;
  opacity: 0.6;
}
.more[open] summary::after { transform: rotate(-90deg); }
.moreBody { padding: 0 var(--s3) var(--s3); margin: 0; }

.soundSection {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}
.sectionHead {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: var(--s3);
  min-width: 0;
}
.sectionHead h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  flex: none;
  white-space: nowrap;
}
.sectionHead .meta {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: right;
}

.historyRow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.historyRow .histItem {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.styleGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.styleCard {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #0b0b11;
  border-radius: 12px;
  padding: 8px 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s, transform 0.12s;
}
.styleCard:active { transform: scale(0.97); }
.styleCard[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(123, 92, 255, 0.75);
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.18), rgba(123, 92, 255, 0.04));
  box-shadow: 0 8px 20px -14px rgba(123, 92, 255, 1);
}
.styleSwatch {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.styleSwatch.noir {
  background: linear-gradient(135deg, #08080a 44%, #e8ff6a 45%, #e8ff6a 55%, #08080a 56%);
}
.styleSwatch.neon {
  background: linear-gradient(135deg, #0a0716 44%, #22d3ee 45%, #7b5cff 64%, #0a0716 65%);
}
.styleSwatch.paper {
  background: linear-gradient(135deg, #f4efe4 44%, #e2452b 45%, #e2452b 55%, #f4efe4 56%);
}
.styleSwatch.mint {
  background: linear-gradient(135deg, #06231c 44%, #b6ff5c 45%, #22d3ee 64%, #06231c 65%);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #0b0b11;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.segBtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.segBtn[aria-pressed="true"] {
  background: #1e1e2a;
  color: #fff;
}

/* ---------------- Провайдеры ----------------------------------------- */

.providerLine {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #b8a8ff;
  background: rgba(123, 92, 255, 0.1);
  border: 1px solid rgba(123, 92, 255, 0.28);
}
.providerLine span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.providerLine.empty {
  color: #f3b96a;
  background: rgba(243, 185, 106, 0.08);
  border-color: rgba(243, 185, 106, 0.3);
}

#generateStatus.bad {
  color: #ffb3b3;
}

.providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

#setupHint { margin: 0 0 12px; }

.provRow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3);
  border-radius: 14px;
  background: #0d0d14;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.provRow:hover { border-color: #33334a; }
.provRow.active {
  border-color: rgba(123, 92, 255, 0.65);
  background: rgba(123, 92, 255, 0.1);
}
.provRow:focus-visible { box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.5); }

.provRadio {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #3a3a4d;
}
.provRow.active .provRadio { border-color: #8a6bff; }
.provRow.active .provRadio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #8a6bff;
}

.provIcon {
  appearance: none;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.provIcon:hover { color: #fff; border-color: rgba(123, 92, 255, 0.5); background: rgba(123, 92, 255, 0.1); }
.provIcon.danger:hover { color: var(--err); border-color: rgba(255, 107, 107, 0.45); background: rgba(255, 107, 107, 0.1); }

.provChip {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b8a8ff;
  background: rgba(123, 92, 255, 0.14);
  border: 1px solid rgba(123, 92, 255, 0.3);
  border-radius: 999px;
  padding: 4px 8px;
}

.provConfirm {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.35);
  font-size: 12.5px;
  line-height: 1.4;
  color: #ffc9c9;
}
.provConfirm span { flex: 1 1 100%; }

.btn.danger {
  background: linear-gradient(180deg, #ff7a7a, #e5484d);
  border-color: #e5484d;
  color: #fff;
}

.provStatusRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--dim);
}
.provStatusDot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #4a4a5c;
}
.provStatusDot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(51, 214, 159, 0.8);
}
.provStatusDot.warn {
  background: #f3b96a;
  box-shadow: 0 0 10px rgba(243, 185, 106, 0.7);
}

.providerFormBox {
  margin-top: var(--s4);
  padding: var(--s4);
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 55%),
    #0c0c12;
}

.providersEmpty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s4);
  border-radius: 14px;
  border: 1px dashed #2c2c3c;
  background: #0b0b11;
}
.providersEmpty strong { font-size: 13.5px; }
.providersEmpty span {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.45;
}
.providersEmpty .btn { margin-top: 0; }
.provInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.provInfo strong {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.provInfo span {
  font-size: 11.5px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provTitle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.providerFormHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.providerFormTitle {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.keyRow {
  display: flex;
  gap: var(--s2);
  align-items: stretch;
  flex-wrap: wrap;
}
.keyRow input { flex: 1 1 100%; min-width: 0; }
.keyBtn {
  flex: 1 1 0;
  min-height: 46px;
  white-space: nowrap;
  padding: var(--s2) var(--s3);
  font-size: 13px;
}

.checkResult {
  margin: var(--s3) 0 0;
  padding: var(--s3);
  border-radius: 11px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dim);
  background: #14141d;
  border: 1px solid var(--line);
}
.checkResult.good {
  color: #9ff0cf;
  background: rgba(51, 214, 159, 0.1);
  border-color: rgba(51, 214, 159, 0.42);
}
.checkResult.bad {
  color: #ffb3b3;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.42);
}
.checkResult.warn {
  color: #f6cf9a;
  background: rgba(243, 185, 106, 0.1);
  border-color: rgba(243, 185, 106, 0.42);
}
.checkResult.busy {
  color: #b8a8ff;
  border-color: rgba(123, 92, 255, 0.45);
}

.modelChips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.modelChip {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  color: #cfcfe0;
  background: #17171f;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: var(--s1) var(--s2);
  transition: border-color 0.15s, background 0.15s;
}
.modelChip:hover {
  border-color: rgba(123, 92, 255, 0.6);
  background: rgba(123, 92, 255, 0.12);
}

.provBadge {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cfc2ff;
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.35), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(123, 92, 255, 0.3);
}

.formMessage {
  margin: var(--s2) 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #ffb3b3;
}

/* ---------------- Дорожки звука -------------------------------------- */

.tracks {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.tracks:empty { display: none; }

.track {
  padding: var(--s3);
  border-radius: 12px;
  background: #0d0d14;
  border: 1px solid var(--line-soft);
}
.trackHead {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
}
.trackHead strong {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trackFields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s3);
  align-items: center;
}
.trackFields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dim2);
}
.trackFields input[type="number"] {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 13px;
}
.trackFields input[type="range"] { width: 100%; }

/* ---------------- Озвучка -------------------------------------------- */

.voices {
  margin-top: var(--s2);
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0b0b11;
}

.voiceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  width: 100%;
  padding: var(--s3);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.voiceRow:last-child { border-bottom: 0; }
.voiceRow strong { font-weight: 600; }
.voiceRow span { color: var(--dim2); font-size: 11.5px; flex: none; }
.voiceRow[aria-pressed="true"] {
  color: #fff;
  background: rgba(123, 92, 255, 0.16);
}

.narration {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}
.narrationInfo {
  margin: 0 0 var(--s2);
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.5;
}
.narration textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  margin-bottom: var(--s3);
}
.narration .row { gap: var(--s2); }
.narration .btn { flex: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin: var(--s2) 0 var(--s3);
  padding: var(--s3);
  border-radius: 12px;
  background: #0b0b11;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dim);
  cursor: pointer;
}
.check input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 6px;
  border: 1px solid #33334a;
  background: #0b0b11;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check input:checked {
  background: linear-gradient(180deg, #8a6bff, var(--accent-strong));
  border-color: #6a48ff;
}
.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------------- История версий ------------------------------------- */

.history {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.histItem {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2);
  border-radius: 13px;
  background: #0d0d14;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.histItem:hover {
  border-color: #33334a;
  background: #101017;
}
.histThumb {
  height: 46px;
  width: auto;
  min-width: 26px;
  flex: none;
  border-radius: 7px;
  border: 1px solid #262636;
  background: #000 center / cover no-repeat;
}
.histMeta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.histMeta strong {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.histMeta span {
  font-size: 11.5px;
  color: var(--dim);
}
.histDel {
  appearance: none;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.histDel:hover {
  color: var(--err);
  border-color: rgba(255, 107, 107, 0.4);
}

.linkBtn.tiny {
  font-size: 12.5px;
  min-height: 28px;
  padding: 0 var(--s1);
  margin-left: var(--s1);
}

/* ---------------- Превью --------------------------------------------- */

.stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: var(--s3) 0;
  overflow: hidden;
}
.frameBox {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  border: 1px solid #262636;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 1);
  max-width: 100%;
}
.frameBox iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  display: block;
  background: #000;
  transform-origin: top left;
}

.scrub {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
}
.iconBtn {
  appearance: none;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #23232f, #1a1a24);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s;
}
.iconBtn:active { transform: scale(0.95); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 28px;
  background: transparent;
  min-width: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: #262634;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.25), 0 3px 8px rgba(0, 0, 0, 0.6);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #262634;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.time {
  flex: none;
  min-width: 54px;
  text-align: right;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--dim);
}

/* ---------------- Результат ------------------------------------------ */

.resultVideo {
  width: 100%;
  border-radius: 14px;
  background: #000;
  border: 1px solid var(--line);
  max-height: 62vh;
  display: block;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: var(--s3) 0 0;
}
.chipItem {
  font-size: 12px;
  color: #cfcfe0;
  background: #1a1a24;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: var(--s1) var(--s3);
}
#cardResult .row { margin-top: var(--s3); }

/* ---------------- Нижняя панель -------------------------------------- */

.actionBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 16, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line-soft);
  animation: barUp 0.25s var(--ease);
}
@keyframes barUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.actionInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.actionInfo strong {
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actionInfo span {
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actionBar .btn { flex: none; padding-left: 22px; padding-right: 22px; }

/* ---------------- Оверлей рендера ------------------------------------ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade 0.2s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.overlayCard {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #17171f, #0e0e14);
  border: 1px solid #2a2a38;
  border-radius: 22px;
  padding: var(--s4);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 1);
  animation: popIn 0.25s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.overlayFrame {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid #24243a;
  display: grid;
  place-items: center;
  min-height: 150px;
  max-height: 42vh;
}
.overlayFrame canvas {
  display: block;
  max-width: 100%;
  max-height: 42vh;
  width: auto;
  height: auto;
}

.overlayBody { padding: var(--s4) 0 0; }
.overlayTitle {
  margin: 0 0 var(--s3);
  font-size: 14px;
  font-weight: 600;
}
.overlayMeta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s2);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--dim);
  min-height: 16px;
}
.overlayBody .btn { width: 100%; margin-top: var(--s4); }

.barTrack {
  height: 8px;
  border-radius: 999px;
  background: #22222e;
  overflow: hidden;
}
.barFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.18s linear;
}

/* ---------------- Тост ----------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(28, 28, 38, 0.96);
  border: 1px solid #33334a;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  animation: toastIn 0.22s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- Мелкие экраны -------------------------------------- */

@media (max-width: 360px) {
  .grid2 { grid-template-columns: 1fr; }
  .btn { font-size: 13.5px; padding: 10px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ---------------- Настройки как отдельный экран ------------------------- */

.settingsPanel {
  position: fixed;
  inset: 0;
  z-index: 80;
  margin: 0;
  padding: 0 var(--s4) calc(32px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #08080d, #07070b 45%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetIn 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
  box-shadow: none;
}

.settingsPanel .cardHead {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 calc(var(--s4) * -1);
  padding: calc(var(--s4) + env(safe-area-inset-top)) var(--s4) var(--s3);
  background: #08080d;
  border-bottom: 1px solid var(--line-soft);
}

.settingsPanel .cardHead h2 { font-size: 22px; letter-spacing: -0.03em; }
.settingsPanel .settingsSection { border-top: 0; margin-top: var(--s5); }
.settingsPanel .settingsSection + .settingsSection {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
}
.settingsPanel .sectionHead h3 { font-size: 15px; }
.settingsPanel .providers { margin-top: var(--s3); }
.settingsPanel .providerFormBox { margin-top: var(--s4); }

body.sheetOpen { overflow: hidden; }

/* Панель рендера принадлежит главному экрану: в настройках она висела поверх
   панели и съедала нижние поля, хотя .wrap с настройками держит свой слой. */
body.sheetOpen .actionBar { display: none; }

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}


/* Шаг «1 / 3» и шапка настроек описаны выше — здесь только то, что зависит
   от размера экрана. */
@media (max-width: 560px) {
  .moreBody .grid2,
  .settingsPanel .grid2 {
    grid-template-columns: 1fr;
  }
}


/* ---------------- Обратная связь, прогресс и раскладка ----------------- */

.btn, .linkBtn, .modelPill, .tab, .ratio, .iconBtn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Все кнопки в блоке «Дорожки» — во всю ширину, ничего не слипается. */
.soundSection .row .btn,
.soundSection .row .linkBtn {
  flex: 1 1 100%;
}
/* Под фиолетовой кнопкой свечение: обычный шаг строк его не перекрывает. */
.soundSection .row + .row { margin-top: var(--s3); }

.genBar {
  margin-top: var(--s3);
  height: 6px;
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.18);
  overflow: hidden;
}

.genBar i {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #2563eb, #06b6d4);
  animation: genSlide 1.15s ease-in-out infinite;
}

@keyframes genSlide {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .genBar i { animation-duration: 2.4s; }
}


/* Шапка не должна прыгать и наезжать на узком экране. */
.top { flex-wrap: nowrap; }
.titles h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chip {
  flex: none;
  max-width: 92px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .titles h1 { font-size: 18px; }
  .tagline { font-size: 11.5px; }
  .chip { max-width: 64px; padding-left: 8px; padding-right: 8px; }
  .logo { width: 42px; height: 42px; border-radius: 13px; }
}
