/* Логомастер — дизайн-система в духе Apple HIG */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-tint: rgba(0, 113, 227, 0.08);
  --hairline: rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --checker: #e8e8ed;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #161617;
    --surface: #1d1d1f;
    --ink: #f5f5f7;
    --ink-2: #86868b;
    --accent: #0a84ff;
    --accent-hover: #2492ff;
    --accent-tint: rgba(10, 132, 255, 0.14);
    --hairline: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.65);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --checker: #2c2c2e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #161617;
  --surface: #1d1d1f;
  --ink: #f5f5f7;
  --ink-2: #86868b;
  --accent: #0a84ff;
  --accent-hover: #2492ff;
  --accent-tint: rgba(10, 132, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.65);
  --nav-bg: rgba(22, 22, 23, 0.72);
  --checker: #2c2c2e;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 52px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { letter-spacing: -0.022em; }

button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

/* ── Навигация ─────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-mark { width: 24px; height: 24px; border-radius: 6px; }

.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

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

.btn-primary {
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 11px 24px;
  font-size: 15px; font-weight: 500;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-secondary {
  background: var(--bg-alt); color: var(--ink);
  border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--hairline);
  transition: background 0.25s, transform 0.25s var(--ease);
}
.btn-secondary:hover:not(:disabled) { background: var(--hairline); }
.btn-secondary:active { transform: scale(0.97); }
.btn-secondary:disabled { opacity: 0.55; cursor: default; }

.btn-ghost {
  color: var(--accent); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: background 0.25s;
}
.btn-ghost:hover { background: var(--accent-tint); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink-2); transition: background 0.25s, color 0.25s;
}
.btn-icon:hover:not(:disabled) { background: var(--bg-alt); color: var(--ink); }
.btn-icon:disabled { opacity: 0.35; cursor: default; }

.link-arrow {
  color: var(--accent); text-decoration: none; font-size: 17px;
}
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ── Hero ──────────────────────────────────────────────────── */

.hero { text-align: center; padding: 110px 22px 64px; }

.hero h1 {
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.03;
}

.hero-sub {
  margin: 22px auto 0; max-width: 620px;
  font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; color: var(--ink-2);
}

.hero-cta {
  margin-top: 34px;
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
}

.continue-chip {
  margin-top: 30px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 14px; font-weight: 500;
  transition: background 0.25s;
}
.continue-chip:hover { background: var(--hairline); }

/* ── Витрина ───────────────────────────────────────────────── */

.showcase { overflow: hidden; padding: 22px 0 10px; }

.showcase-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 46s linear infinite;
}
.showcase:hover .showcase-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(calc(-50% - 9px)); }
}

.showcase-card {
  width: 258px; height: 148px; flex-shrink: 0;
  border-radius: 20px; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 30px;
  box-shadow: var(--shadow-sm);
}
.showcase-card svg { width: 100%; height: 100%; }

/* ── Секции ────────────────────────────────────────────────── */

.features, .how, .saved { padding: 88px 22px; }
.features h2, .how h2, .saved h2, .create h2 {
  text-align: center; font-size: clamp(32px, 5vw, 48px); font-weight: 700;
}
.section-sub { text-align: center; color: var(--ink-2); margin-top: 10px; font-size: 16px; }

.feature-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}

.feature-card {
  background: var(--bg-alt); border-radius: 26px; padding: 34px 30px;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.how-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.how-step { text-align: center; padding: 10px 18px; }
.how-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  font-size: 19px; font-weight: 600; margin-bottom: 16px;
}
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ── Мастер ────────────────────────────────────────────────── */

.create { padding: 40px 22px 110px; }

.wizard {
  max-width: 660px; margin: 40px auto 0;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 42px clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-md);
}
.wizard h2 { margin-bottom: 30px; }

.wiz-field { margin-bottom: 24px; }
.wiz-field > label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px;
}
.wiz-field em { font-style: normal; font-weight: 400; color: var(--ink-2); }

.wiz-field input[type="text"], .text-input {
  width: 100%; padding: 13px 16px; font-size: 16px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--bg-alt); color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.wiz-field input[type="text"]:focus, .text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-tint);
}
/* Поле временно недоступно (напр. сервис оплаты не отвечает) — это должно быть ВИДНО,
   иначе человек тыкает в живое на вид поле и думает, что сломалось. */
.wiz-field input[type="text"]:disabled, .text-input:disabled {
  opacity: 0.5; cursor: not-allowed;
}

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid button {
  padding: 8px 15px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--hairline); color: var(--ink);
  transition: all 0.2s;
}
.chip-grid button:hover { border-color: var(--accent); color: var(--accent); }
.chip-grid button.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

#btn-generate { margin-top: 8px; }

.shake { animation: shake 0.4s; border-color: #ff3b30 !important; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ── Результаты ────────────────────────────────────────────── */

#screen-results { padding: 40px 0 90px; }

.results-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 28px;
}
.results-head h2 { font-size: clamp(26px, 4vw, 36px); }
.results-head .section-sub { text-align: left; }
.results-actions { display: flex; gap: 10px; }

.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}

.variant-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  padding: 11% 13%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.variant-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md); }
.variant-card svg { width: 100%; height: 100%; }

.reveal-card { animation: cardIn 0.55s var(--ease) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
}

.skeleton {
  background: linear-gradient(100deg, var(--bg-alt) 40%, var(--hairline) 50%, var(--bg-alt) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border: none;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.saved-card { cursor: pointer; }
.saved-del {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 12px;
  opacity: 0; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.saved-card:hover .saved-del,
.saved-card:focus-within .saved-del,
.saved-del:focus-visible { opacity: 1; }
/* На таче hover нет — крестик виден всегда */
@media (hover: none) {
  .saved-del { opacity: 1; }
}

/* ── Редактор ──────────────────────────────────────────────── */

#screen-editor { min-height: calc(100vh - 52px); display: flex; flex-direction: column; }

.editor-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(22px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 52px; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.editor-actions { display: flex; align-items: center; gap: 8px; }

.editor-body {
  flex: 1;
  display: grid; grid-template-columns: 1fr 370px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}

.editor-stage { padding: 26px; min-width: 0; }

.editor-canvas {
  margin-top: 14px;
  border-radius: 24px; border: 1px solid var(--hairline);
  min-height: 400px; height: 46vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6% 9%;
  transition: background 0.3s;
}
.editor-canvas svg { width: 100%; height: 100%; }
.editor-canvas.checker {
  background-image:
    repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%);
  background-size: 18px 18px;
}

/* Мокапы */

.mockups {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.mockup label {
  display: block; text-align: center; margin-top: 9px;
  font-size: 12px; color: var(--ink-2);
}

.mockup-card {
  aspect-ratio: 17 / 10;
  border-radius: 12px; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.mockup-card .mockup-logo {
  width: 62%; height: 52%;
  display: flex; align-items: center; justify-content: center;
}
.mockup-card .mockup-logo svg { width: 100%; height: 100%; }
.mockup-card label { margin-top: 0; position: relative; top: calc(50% + 12px); display: none; }

.mockup-avatar-wrap {
  aspect-ratio: 17 / 10;
  background: var(--bg-alt); border-radius: 12px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.mockup-avatar { width: 46px; height: 46px; flex-shrink: 0; }
.mockup-avatar svg { width: 100%; height: 100%; display: block; }
.mockup-msg { flex: 1; }
.mockup-msg i {
  display: block; height: 9px; border-radius: 5px; background: var(--hairline);
}
.mockup-msg i + i { margin-top: 7px; width: 62%; }

.mockup-site {
  aspect-ratio: 17 / 10;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.site-chrome {
  display: flex; gap: 4px; padding: 6px 8px;
  background: var(--bg-alt); border-bottom: 1px solid var(--hairline);
}
.site-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
}
.site-logo { height: 20px; display: flex; align-items: center; }
.site-logo svg { height: 100%; width: auto; max-width: 90px; }
.site-nav { display: flex; gap: 6px; }
.site-nav i { width: 16px; height: 5px; border-radius: 3px; background: var(--hairline); }
.site-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
}
.site-hero b { width: 55%; height: 10px; border-radius: 5px; background: var(--hairline); }
.site-hero u { width: 38%; height: 7px; border-radius: 4px; background: var(--hairline); opacity: 0.7; }
.site-hero-btn { width: 52px; height: 16px; border-radius: 8px; margin-top: 3px; }

/* Панель настроек */

.editor-panel {
  border-left: 1px solid var(--hairline);
  padding: 20px 20px 40px;
  overflow-y: auto;
  max-height: calc(100vh - 52px - 55px);
  position: sticky; top: 107px;
}

.tabs {
  display: flex; background: var(--bg-alt); border-radius: 11px; padding: 3px;
  margin-bottom: 20px;
}
.tabs button {
  flex: 1; padding: 8px 4px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all 0.2s;
}
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.ctl-label {
  display: block; font-size: 13px; font-weight: 600;
  margin: 20px 0 9px; color: var(--ink);
}
.tab-pane > .ctl-label:first-child { margin-top: 4px; }

.segmented {
  display: flex; background: var(--bg-alt); border-radius: 10px; padding: 3px; gap: 2px;
}
.segmented button {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 7px 8px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  transition: all 0.2s;
}
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented svg { width: 30px; height: 18px; }

.seg-layout svg { width: 36px; height: 20px; }

/* Слайдеры */

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--hairline);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  margin-top: -7.5px;
}
input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 2px; background: var(--hairline);
}
input[type="range"]::-moz-range-thumb {
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

/* Переключатели */

.ctl-switch {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; margin: 18px 0 4px; cursor: pointer; user-select: none;
}
.ctl-switch input { display: none; }
.ctl-switch span {
  width: 38px; height: 23px; border-radius: 999px;
  background: var(--hairline); position: relative; flex-shrink: 0;
  transition: background 0.25s;
}
.ctl-switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}
.ctl-switch input:checked + span { background: #34c759; }
.ctl-switch input:checked + span::after { transform: translateX(15px); }

/* Знак */

.mono-row { display: flex; gap: 8px; align-items: stretch; }
.mono-row input {
  width: 64px; text-align: center; font-size: 16px; font-weight: 600;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink); outline: none;
}
.mono-row input:focus { border-color: var(--accent); }
.mono-row .segmented { flex: 1; }
.mono-row .segmented svg { width: 20px; height: 20px; }

.select {
  width: 100%; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink); outline: none;
  margin-bottom: 10px;
}
.select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-tint);
}

.icon-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px;
}
.icon-grid button {
  aspect-ratio: 1; border-radius: 10px;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all 0.15s;
}
.icon-grid button:hover { border-color: var(--accent); }
.icon-grid button.active { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.icon-grid svg { width: 24px; height: 24px; }
.no-icon { font-size: 17px; color: var(--ink-2); }

/* Шрифты */

.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.font-list button {
  padding: 11px 8px; border-radius: 10px; font-size: 15px;
  border: 1px solid var(--hairline); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all 0.15s;
}
.font-list button:hover { border-color: var(--accent); }
.font-list button.active { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }

/* Цвета */

.palette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.palette-grid button {
  aspect-ratio: 1; border-radius: 10px;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; gap: 3px;
  transition: all 0.15s;
}
.palette-grid button.active { box-shadow: 0 0 0 2px var(--accent); }
.palette-grid i { width: 9px; height: 9px; border-radius: 50%; display: block; }

.color-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; font-size: 14px;
}
.color-row input[type="color"] {
  -webkit-appearance: none; appearance: none;
  width: 42px; height: 28px; border: 1px solid var(--hairline);
  border-radius: 8px; padding: 0; background: none; cursor: pointer;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.color-row input[type="color"]::-moz-color-swatch { border: none; border-radius: 6px; }

/* ── Модал экспорта ────────────────────────────────────────── */

.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn { from { opacity: 0; } }

.modal-card {
  position: relative;
  background: var(--surface); border-radius: 24px;
  padding: 28px; width: min(540px, 94vw);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } }

.modal-close { position: absolute; top: 16px; right: 16px; font-size: 14px; }
.modal-card h3 { font-size: 22px; margin-bottom: 16px; }

.export-preview {
  border-radius: 16px; border: 1px solid var(--hairline);
  height: 150px; display: flex; align-items: center; justify-content: center;
  padding: 4% 8%; margin-bottom: 12px;
}
.export-preview svg { width: 100%; height: 100%; }

.export-status { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; min-height: 18px; }

.export-list { margin-bottom: 18px; }
.export-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
}
.export-row:last-child { border-bottom: none; }
.export-row b { display: block; font-size: 14px; font-weight: 600; }
.export-row span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.export-row .btn-secondary { padding: 7px 16px; font-size: 13px; }

/* ── Тост ──────────────────────────────────────────────────── */

.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 300;
  transform: translate(-50%, 16px);
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-md);
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Появление при прокрутке ───────────────────────────────── */

.reveal { opacity: 0; transform: translateY(26px); transition: all 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .showcase-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 980px) {
  .editor-body { grid-template-columns: 1fr; }
  .editor-panel {
    border-left: none; border-top: 1px solid var(--hairline);
    position: static; max-height: none;
  }
  .editor-canvas { height: 38vh; min-height: 300px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  /* 🔴 В шапке телефона прибавился чип кошелька, а полоса высотой 52px не переносится и
     не прокручивается: содержимое стало шире экрана, и «Создать логотип» плющило. Ни один
     элемент не имеет права сжиматься ниже своей подписи — поэтому режем ВОЗДУХ (отступы
     и зазоры), а надписи оставляем целыми. */
  .nav { gap: 12px; padding: 0 14px; }
  .nav-actions { gap: 7px; min-width: 0; }
  .nav-actions .btn-primary, .nav-actions .btn-secondary { flex: 0 0 auto; white-space: nowrap; padding: 9px 15px; }
  .nav-brand { flex: 0 1 auto; min-width: 0; }
  .nav-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wal-chip { flex: 0 0 auto; height: 32px; padding: 0 11px 0 9px; }
  .hero { padding-top: 70px; }
  .results-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .mockups { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .icon-grid { grid-template-columns: repeat(6, 1fr); }
  .palette-grid { grid-template-columns: repeat(8, 1fr); }
  .results-head { flex-direction: column; align-items: stretch; }

  /* Топбар редактора не должен вылезать за экран */
  .editor-topbar { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .editor-actions { gap: 5px; flex-wrap: wrap; }
  .editor-topbar .btn-ghost { padding: 8px 8px; font-size: 14px; }
  .editor-topbar .btn-primary, .editor-topbar .btn-secondary { padding: 8px 14px; font-size: 13px; }
}

/* Тач-цели: на устройствах без точного указателя — минимум ~44px */
@media (pointer: coarse) {
  .chip-grid button { min-height: 44px; padding: 10px 16px; }
  .tabs button, .segmented button { min-height: 40px; }
  .color-row input[type="color"] { width: 52px; height: 36px; }
  .ctl-switch { min-height: 44px; }
  .font-list button { min-height: 44px; }
}

/* ═══ Кнопки-ссылки (одинаковый вид для <a> и <button>) ═══════ */
a.btn-primary, a.btn-secondary, a.btn-ghost {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ═══ Документы: юр-страницы, тарифы, контакты ═══════════════ */

.doc { max-width: 780px; margin: 0 auto; padding: 84px 22px 40px; }
.doc-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-size: 15px; font-weight: 500;
  margin-bottom: 22px;
}
.doc-back:hover { text-decoration: underline; }
.doc-head { margin-bottom: 30px; }
.doc-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.08; }
.doc-lead { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.doc-meta { margin-top: 14px; color: var(--ink-2); font-size: 14px; }

.doc-body { font-size: 16px; line-height: 1.65; color: var(--ink); }
.doc-body h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 24px; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--accent); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body strong { font-weight: 600; }
.doc-body hr { border: none; border-top: 1px solid var(--hairline); margin: 34px 0; }

.doc-note {
  margin: 22px 0; padding: 16px 18px; border-radius: 14px;
  background: var(--bg-alt); border: 1px solid var(--hairline);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.doc-note strong { color: var(--ink); }

/* ── Тарифы ──────────────────────────────────────────────── */

.tariffs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px; margin-top: 38px;
}
.tariff {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 24px; padding: 30px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.tariff.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.tariff.soon { opacity: 0.9; }
.tariff-badge {
  align-self: flex-start; font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-tint);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.tariff-badge.gray { color: var(--ink-2); background: var(--bg-alt); }
.tariff h3 { font-size: 20px; font-weight: 700; }
.tariff-price { margin: 14px 0 2px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.tariff-price small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.tariff-sub { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; margin-bottom: 20px; min-height: 34px; }
.tariff ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.tariff li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 15px; line-height: 1.4; }
.tariff li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.tariff li.muted { color: var(--ink-2); }
.tariff li.muted::before { content: "○"; color: var(--ink-2); font-weight: 400; }

/* ── Контакты ────────────────────────────────────────────── */

.contact-card {
  margin-top: 30px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 24px;
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-row { display: flex; align-items: center; gap: 15px; padding: 12px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--hairline); }
.contact-ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-row .contact-txt { flex: 1; min-width: 0; }
.contact-row b { display: block; font-size: 15px; }
.contact-row .contact-txt span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.contact-row a { color: var(--accent); text-decoration: none; font-size: 16px; font-weight: 500; word-break: break-word; }
.contact-row a:hover { text-decoration: underline; }

/* ── Общий подвал сайта ──────────────────────────────────── */

.site-footer { border-top: 1px solid var(--hairline); margin-top: 40px; padding: 48px 22px 40px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 30px 64px; justify-content: space-between;
}
.footer-brand { max-width: 320px; }
.footer-brand .fb-top { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; }
.footer-brand .fb-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand p { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-col a { display: block; color: var(--ink); text-decoration: none; font-size: 14.5px; margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-note {
  max-width: 1120px; margin: 36px auto 0; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2); font-size: 13px; line-height: 1.55;
}
.footer-note a { color: var(--ink-2); text-decoration: underline; }
.footer-note a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ── Кошелёк: знак токена ────────────────────────────────────── */
/* Знак рисует ОДНА реализация (js/wallet.js → tokenMark): фирменная искра в монете.
   Он наследует color, поэтому одинаково живёт на светлом, тёмном и на заливке кнопки. */
.tok {
  width: 1em; height: 1em; flex: none;
  vertical-align: -0.14em; margin-left: 0.16em;
  color: var(--accent);
}
.tok-val { display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tok-lg { width: 0.72em; height: 0.72em; vertical-align: -0.02em; }
/* На синей заливке кнопки монета обязана быть белой, а не «акцент на акценте». */
.btn-primary .tok, .tok-on-accent { color: currentColor; opacity: 0.92; }

/* ── Кошелёк: чип в шапке ────────────────────────────────────── */
.wal-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 13px 0 11px;
  border-radius: 999px; border: 1px solid var(--hairline);
  background: var(--accent-tint); color: var(--accent);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease), border-color 0.16s;
}
.wal-chip:hover { border-color: var(--accent); }
.wal-chip:active { transform: scale(0.96); }
.wal-chip .tok { margin-left: 0; width: 16px; height: 16px; }
.wal-chip.is-empty { background: transparent; color: var(--ink-2); }
.wal-chip.is-empty .tok { color: var(--ink-2); }

/* ── Кошелёк: модал (одна дверь денег) ───────────────────────── */
.wal-card { width: min(460px, 94vw); }
.wal-card h3 { margin-bottom: 14px; }

.wal-bal {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 18px; margin-bottom: 10px;
  background: var(--bg-alt); border-radius: 16px;
}
.wal-bal-num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.wal-bal-sub { font-size: 13.5px; color: var(--ink-2); }

.wal-burn {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 16px; padding: 9px 14px;
  border-radius: 12px; background: rgba(255, 149, 0, 0.10);
  color: #b26a00; font-size: 13px; line-height: 1.35;
}
:root[data-theme="dark"] .wal-burn { color: #ffb340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wal-burn { color: #ffb340; } }
.wal-burn .tok { width: 0.95em; height: 0.95em; color: inherit; }

.wal-buy { margin-bottom: 16px; }
.wal-buy-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 13px 0 9px; border-top: 1px solid var(--hairline);
}
.wal-buy-what { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wal-buy-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.wal-buy-rest { font-size: 13px; color: var(--ink-2); padding-bottom: 4px; }
.wal-buy-rest .tok { color: var(--ink-2); }

.wal-conv { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }
.wal-conv .tok { color: var(--ink-2); }

.wal-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 14px; }
.wal-quick button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 15px; border-radius: 14px;
  border: 1px solid var(--hairline); background: transparent;
  color: var(--ink); font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.wal-quick button i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.wal-quick button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.wal-quick button:hover i { color: var(--accent); }

/* Согласие с офертой — обязательное условие пополнения, поэтому это не мелкий петит
   под кнопкой, а полноценная строка с целью нажатия не меньше 32px. */
.wal-terms {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 14px; padding: 11px 13px;
  border-radius: 12px; background: var(--bg-alt);
  font-size: 13px; line-height: 1.45; color: var(--ink-2);
  cursor: pointer;
}
.wal-terms input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.wal-terms b { color: var(--ink); font-weight: 600; }
.wal-terms a { color: var(--accent); text-decoration: none; }
.wal-terms a:hover { text-decoration: underline; }

.wal-alt { margin-top: 10px; }
.wal-legal { margin-top: 12px; }
.wal-legal .tok { color: var(--ink-2); }

/* Правила кошелька на странице тарифов */
.tok-rules { margin: 12px 0 0; padding-left: 20px; }
.tok-rules li { margin-bottom: 9px; line-height: 1.55; }
.tariff-price .tok { width: 0.66em; height: 0.66em; }

/* ── Оплата: модал покупки ───────────────────────────────────── */

.pay-card .pay-price { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 16px; }
.pay-card .pay-amount { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.pay-card .pay-price span { font-size: 13.5px; color: var(--ink-2); }

.pay-feats { list-style: none; margin: 0 0 18px; padding: 15px 17px; background: var(--bg-alt); border-radius: 14px; }
.pay-feats li { position: relative; padding-left: 26px; margin: 0 0 9px; font-size: 14.5px; line-height: 1.4; }
.pay-feats li:last-child { margin-bottom: 0; }
.pay-feats li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--accent); font-weight: 700; }

.pay-field { display: block; margin-bottom: 12px; }
.pay-field > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.pay-email { width: 100%; }
.pay-sum-wrap { position: relative; }
.pay-sum { width: 100%; padding-right: 36px; }
.pay-sum-cur {
  position: absolute; top: 0; bottom: 0; right: 14px;
  display: flex; align-items: center;
  font-size: 16px; color: var(--ink-2); pointer-events: none;
}

.pay-error { color: #ff3b30; font-size: 13.5px; margin: 2px 0 12px; }
.pay-legal { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.pay-legal a { color: var(--ink-2); text-decoration: underline; }

/* Заперты только платные файлы, и только когда оплата включена и ещё не оплачено */
.export-row.is-locked b { color: var(--ink-2); }
.export-lock {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); background: var(--accent-tint); border-color: transparent;
}
.export-lock:hover:not(:disabled) { background: var(--accent-tint); filter: brightness(0.97); }
.export-lock .lockglyph { width: 13px; height: 13px; opacity: 0.72; flex: none; }

/* ── Оплата: страница возврата (pay/return.html) ─────────────── */

.pay-return { max-width: 560px; }
.pay-return-card { text-align: center; padding: 22px 0; }
.pay-return-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.pay-return-icon::after { font-size: 32px; font-weight: 700; line-height: 1; }
.pay-return-icon.ok { background: rgba(52, 199, 89, 0.14); color: #34c759; }
.pay-return-icon.ok::after { content: "✓"; }
.pay-return-icon.err { background: rgba(255, 59, 48, 0.13); color: #ff3b30; }
.pay-return-icon.err::after { content: "✕"; }
.pay-return-icon.wait { background: var(--accent-tint); color: var(--accent); }
/* монохромный глиф (не эмодзи) — наследует color, как ✓/✕ */
.pay-return-icon.wait::after { content: "…"; font-size: 40px; line-height: 0.3; letter-spacing: 1px; }
.pay-return-icon.spin { border: 3px solid var(--hairline); border-top-color: var(--accent); animation: prspin 0.8s linear infinite; }
@keyframes prspin { to { transform: rotate(360deg); } }
.pay-return h1 { font-size: 26px; font-weight: 700; }
.pay-return .doc-lead { margin-top: 10px; font-size: 16px; }
.pay-return-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.pay-return-actions .btn-primary, .pay-return-actions .btn-secondary { min-width: 190px; }
.pay-return-support { margin-top: 26px; font-size: 13.5px; color: var(--ink-2); }
.pay-return-support a { color: var(--accent); text-decoration: none; }
.pay-return-support a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .pay-return-icon.spin { animation: none; } }

/* ═══ Нейминг: экран «Придумаем имя» ══════════════════════════ */

/* Ссылка-действие под полем: не отбирает ряд у самого поля и не выглядит
   второй равноправной кнопкой (правило «поле + кнопка»). */
.field-link {
  display: inline-block; margin-top: 9px; padding: 0;
  font-size: 13.5px; font-weight: 500; color: var(--accent);
  background: none; border: none; text-align: left;
}
.field-link::after { content: " ›"; }
.field-link:hover { text-decoration: underline; }
.field-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.feature-icon.fi-text { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }

#screen-naming { padding: 34px 0 90px; }

.naming-head { max-width: 660px; margin: 0 auto; text-align: center; }
.naming-head h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; margin-top: 8px; }
.naming-head .section-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
/* «Назад» — отдельной строкой над заголовком, по левому краю формы */
#btn-naming-back { display: block; margin: 0 auto 20px 0; padding-left: 10px; padding-right: 14px; }

.naming-form {
  max-width: 660px; margin: 34px auto 0;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 34px clamp(22px, 5vw, 44px);
  box-shadow: var(--shadow-md);
}
.naming-form .wiz-field:last-of-type { margin-bottom: 26px; }
.nm-lang-field .segmented { display: inline-flex; }
.nm-lang-field .segmented button { padding: 8px 18px; }

/* Результаты появляются только после первой генерации — пустой экран остаётся пустым.
   scroll-margin — чтобы автопрокрутка не заводила заголовок под липкий навбар. */
.naming-results { max-width: 1120px; margin: 54px auto 0; scroll-margin-top: 74px; }

.nm-res-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.nm-res-head h3 { font-size: clamp(21px, 3vw, 27px); font-weight: 700; }

.nm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px;
}

.nm-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 18px 18px 14px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  animation: cardIn 0.5s var(--ease) both;
}
.nm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.nm-card.is-kept { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }

.nm-kind {
  align-self: flex-start;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--bg-alt);
}
.nm-name {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  word-break: break-word;
}
.nm-note { font-size: 13px; line-height: 1.42; color: var(--ink-2); }

.nm-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nm-domain {
  font-size: 12.5px; color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nm-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nm-acts .btn-primary { padding: 7px 14px; font-size: 13px; }

.nm-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background 0.16s, color 0.16s, opacity 0.16s;
}
.nm-icon svg { width: 17px; height: 17px; }
.nm-icon:hover { background: var(--bg-alt); color: var(--ink); }
.nm-icon[aria-pressed="true"] { color: var(--accent); }

/* Копирование — вспомогательное действие: всплывает при наведении/фокусе,
   на тач-устройствах видно всегда (там наведения нет). */
.nm-copy { opacity: 0; }
.nm-card:hover .nm-copy, .nm-card:focus-within .nm-copy, .nm-copy:focus-visible { opacity: 1; }
@media (hover: none) { .nm-copy { opacity: 1; } }

.nm-kept { margin-bottom: 34px; }
.nm-kept h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.nm-kept-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-keep-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 15px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 14px; font-weight: 500;
}
.nm-keep-chip b { font-weight: 600; }
.nm-keep-chip button {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; font-size: 12px; opacity: 0.65; transition: opacity 0.16s, background 0.16s;
}
.nm-keep-chip button:hover { opacity: 1; background: var(--hairline); }
.nm-keep-chip .nm-keep-use { font-size: 13px; }

.nm-empty { color: var(--ink-2); font-size: 15px; padding: 26px 0; }
.nm-legal {
  margin-top: 26px; font-size: 12.5px; line-height: 1.5;
  color: var(--ink-2); max-width: 720px;
}

@media (max-width: 700px) {
  .nm-grid { grid-template-columns: 1fr; }
  .nm-res-head { flex-direction: column; align-items: stretch; }
  .nm-res-head .btn-secondary { width: 100%; }
  .naming-head h2 { font-size: 30px; }
}
@media (pointer: coarse) {
  .nm-icon { width: 40px; height: 40px; }
  .field-link { min-height: 32px; }
}
