/* Форма участника: стилистика pro-k.pro (тёмный графит, лимонные кнопки, голубые карточки). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-tight-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-tight-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-tight-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-tight-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #131819;
  --bg-2: #1e2324;
  --card: #292e2f;
  --card-2: #344144;
  --line: rgba(242, 245, 245, 0.14);
  --line-strong: rgba(242, 245, 245, 0.28);
  --text: #f2f5f5;
  --muted: #a9b5b8;
  --accent: #e9e407;
  --accent-hover: #f5f04a;
  --on-accent: #131819;
  --blue: #8bb9c4;
  --blue-2: #abced7;
  --blue-3: #d8e9ee;
  --light: #f2f5f5;
  --goal: #f3f0a6;
  --goal-2: #e9e407;
  --ink: #131819;
  --coral: #f95d51;
  --orange: #ff8562;
  --radius: 24px;
  --radius-sm: 14px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--blue-3); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; }

/* Шапка: логотип · шаги · «Инструкция» — одна строка, один фон */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(19, 24, 25, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in, .footer-in, main {
  width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; width: 152px; height: auto; }

/* Шаги */
.stepper { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.stepper-in { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.step-btn {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  min-height: 44px; padding: 4px 10px 4px 6px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.step-btn:hover { background: rgba(242, 245, 245, 0.06); color: var(--text); }
.step-num {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-weight: 600; font-size: 13px;
}
.step-btn[aria-current="step"] { color: var(--text); }
.step-btn[aria-current="step"] .step-num { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-help { flex: 0 0 auto; }
.help-icon { display: none; }
/* Средняя ширина: подпись только у текущего шага */
@media (max-width: 1023px) {
  .step-btn:not([aria-current="step"]) .step-label { display: none; }
  .step-btn:not([aria-current="step"]) { padding: 4px 6px; }
}
/* Телефон: маленький логотип, кружки без подписей, «?» вместо «Инструкция» */
@media (max-width: 639px) {
  .topbar-in { gap: 8px; min-height: 60px; }
  .logo img { width: 88px; }
  .stepper-in { gap: 2px; }
  .step-label { display: none; }
  .step-btn, .step-btn:not([aria-current="step"]) { padding: 0; min-width: 34px; justify-content: center; }
  .step-num { width: 30px; height: 30px; }
  .btn-help { width: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
  .help-label { display: none; }
  .help-icon { display: inline; font-size: 18px; line-height: 1; }
}
@media (max-width: 359px) {
  .logo img { width: 72px; }
  .step-btn, .step-btn:not([aria-current="step"]) { min-width: 30px; }
  .step-num { width: 26px; height: 26px; font-size: 12px; }
}

main { padding-top: 24px; padding-bottom: 48px; outline: none; }

/* Типографика */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 7vw, 52px); }
h2 { font-size: clamp(22px, 5vw, 34px); }
h3 { font-size: clamp(17px, 3.6vw, 21px); }
p { margin: 0 0 12px; }
.kicker { color: var(--blue-2); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.lead { font-size: 17px; color: var(--text); max-width: 760px; }
.muted { color: var(--muted); }
.badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--blue-3);
  font-family: var(--font); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0;
}

/* Карточки */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card-light { background: var(--blue-3); color: var(--ink); }
.card-light a { color: #0f4b59; }
.card-blue { background: var(--blue); color: var(--ink); }
.card-blue a { color: var(--ink); }
.card > :last-child { margin-bottom: 0; }
@media (min-width: 768px) { .card { padding: 28px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 > .card { margin-bottom: 0; } }
.section-gap { margin-top: 32px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text); color: var(--text); }
.btn-danger { background: var(--coral); color: var(--ink); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 13px; }
.btn:disabled { background: #3a4143; color: #7f8a8d; border-color: transparent; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-link {
  min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--blue-2);
  font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn-link:hover { color: var(--blue-3); }
.btn-link.danger { color: var(--orange); }
.btn-add {
  width: 100%; min-height: 56px; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn-add:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-add:disabled { color: var(--muted); cursor: not-allowed; }
.nav-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 24px; }
.nav-row .btn { flex: 1 1 160px; }
@media (min-width: 768px) { .nav-row .btn { flex: 0 0 auto; min-width: 200px; } }

/* Инструкция */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
/* Кружок выровнен по первой строке текста: текст сдвинут так, что центр первой строки = центр кружка */
.rules .num-text { margin: 0; padding-top: calc((40px - 1.5em) / 2); }
.anchor { scroll-margin-top: 88px; }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 800; font-size: 18px;
}
.num-blue { background: var(--blue); }
.layer-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.layer-item { background: var(--card-2); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 8px; }
.layer-item h4 { margin: 0; font-size: 17px; font-weight: 700; }
.layer-item p { margin: 0; }
.layer-check { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; color: var(--blue-3); font-weight: 500; }
.layer-check .num { width: 32px; height: 32px; font-size: 15px; }
.example { color: var(--muted); font-size: 15px; }
.contour-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .contour-list { grid-template-columns: repeat(3, 1fr); } .layer-list { grid-template-columns: 1fr 1fr; } }
.contour-item { background: var(--blue-3); color: var(--ink); border-radius: var(--radius-sm); padding: 16px; }
.contour-item strong { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 16px; margin-bottom: 4px; }
.note { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; margin: 16px 0 0; }
.field-list { display: grid; gap: 22px; margin: 0 0 24px; padding: 0; list-style: none; }
.field-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; font-size: 17px; }
.field-list .num { width: 36px; height: 36px; font-size: 16px; }
.field-list .num-text { padding-top: calc((36px - 1.5em) / 2); }
.field-list strong { display: block; }
/* Левая карточка «Как заполнить «Факт»»: пункты распределены по высоте, примечание прижато вниз */
.card-fields { display: flex; flex-direction: column; }
.card-fields .field-list { flex: 1 1 auto; align-content: space-evenly; }
.card-fields .note { margin-top: auto; }
.cta-end { display: flex; margin-top: 16px; }
.cta-end .btn { flex: 1 1 auto; }
@media (min-width: 900px) { .cta-end { justify-content: flex-end; } .cta-end .btn { flex: 0 0 auto; min-width: 260px; } }
.sample { background: var(--bg-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.sample p { margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--blue-3); font-size: 13px; }
.excel-card { display: grid; gap: 8px; }
.excel-card a { font-weight: 600; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 24px; }
.cta-row .btn { flex: 1 1 220px; }
@media (min-width: 768px) { .cta-row .btn { flex: 0 0 auto; } }

/* Список проблем */
.problems { border: 2px solid var(--orange); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; background: rgba(255, 133, 98, 0.08); }
.problems h3 { color: var(--orange); font-size: 17px; margin-bottom: 8px; }
.problems ul { margin: 0; padding-left: 20px; }
.problems li { margin: 4px 0; }
.problems a { color: var(--text); }

/* Карточка записи */
.entries { display: grid; gap: 16px; margin-bottom: 16px; }
.entry { background: var(--card); border-radius: var(--radius); padding: 20px; border: 2px solid transparent; scroll-margin-top: 140px; }
.entry.is-warning { border-color: var(--orange); }
.entry-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.entry-num { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; color: var(--blue-2); }
.entry-msg { color: var(--orange); font-weight: 600; margin: 8px 0 0; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.field-help { color: var(--muted); font-size: 14px; margin: -4px 0 8px; }
input, textarea {
  width: 100%; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink);
  background: var(--light); border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.entry.is-warning textarea { border-color: var(--orange); }
.choice { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.choice legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: inherit; font-size: 15px; line-height: 1.25; cursor: pointer; text-align: left;
}
.chip:hover { border-color: var(--blue-2); }
.chip[aria-pressed="true"] { background: var(--blue-3); color: var(--ink); border-color: var(--blue-3); font-weight: 600; }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.custom-value { margin-top: 10px; }
.hint { margin-top: 8px; }
.hint summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--blue-2); font-size: 15px; list-style: none;
}
.hint summary::-webkit-details-marker { display: none; }
.hint summary::before { content: "?"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; border: 1px solid var(--blue-2); font-size: 13px; font-weight: 700; }
.hint[open] summary { color: var(--blue-3); }
.hint-text { white-space: pre-line; background: var(--card-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 0; font-size: 15px; }
.placement { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-2); font-weight: 600; color: var(--blue-3); }
.placement.is-off { color: var(--muted); font-weight: 500; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; }
.confirm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: rgba(249, 93, 81, 0.12); border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 12px; }
.confirm-inline p { margin: 0; font-weight: 600; }
.notes-card label { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 18px; }
.empty-state { color: var(--muted); }

/* Матрица */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 16px; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.swatch-now { background: var(--blue-3); }
.swatch-goal { background: var(--goal); }
.matrix { display: grid; gap: 16px; }
.mhead { display: none; }
.mrow { background: var(--card); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.mrow-title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 16px; color: var(--text); }
.mcell { display: grid; gap: 6px; min-width: 0; }
.mcell-contour { font-weight: 600; color: var(--blue-2); font-size: 14px; }
.mbox { border-radius: 12px; padding: 10px 12px; color: var(--ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.mbox-now { background: var(--blue-3); }
.mbox-goal { background: var(--goal); }
.mbox-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
.mbox ul { margin: 0; padding-left: 16px; }
.mbox li + li { margin-top: 4px; }
.mbox .empty { opacity: 0.6; font-style: italic; }
@media (min-width: 900px) {
  .matrix { grid-template-columns: 180px repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mhead { display: block; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 15px; padding: 8px 4px; color: var(--blue-2); }
  .mrow { display: contents; }
  .mrow-title { background: var(--card-2); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }
  .mcell { background: var(--card); border-radius: var(--radius-sm); padding: 8px; align-content: start; }
  .mcell-contour { display: none; }
}
.unplaced { margin-top: 16px; }
.unplaced .mbox { margin-top: 8px; }
.notes-view { white-space: pre-line; }

/* Отправка */
.send-step { display: grid; gap: 12px; }
.send-step h3 { display: flex; gap: 12px; align-items: center; }
.send-step .num { flex: 0 0 auto; width: 36px; height: 36px; font-size: 16px; }
.reason { color: var(--muted); margin: 0; }
.success-note { background: rgba(139, 185, 196, 0.16); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.error-note { background: rgba(249, 93, 81, 0.14); border: 1px solid var(--coral); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; color: var(--text); }
/* Страховка от неотправки (G16.2): после сохранения PDF шаг 2 и «Отправить» — главные на экране */
.send-step-next { outline: 2px solid var(--accent); outline-offset: -2px; }
.pdf-reminder {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.btn-attention { box-shadow: 0 0 0 4px rgba(233, 228, 7, 0.28); animation: attention 1.6s ease-in-out 3; }
@keyframes attention { 50% { box-shadow: 0 0 0 10px rgba(233, 228, 7, 0.08); } }
@media (prefers-reduced-motion: reduce) { .btn-attention { animation: none; } }
@media (max-width: 599px) { .send-step .btn { width: 100%; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary-list { margin: 0; padding-left: 20px; }
.code-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 12vw, 72px); color: var(--accent); line-height: 1; margin: 8px 0 16px; letter-spacing: 0.02em; }

/* Подвал и диалог */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.draft-status { margin: 0; color: var(--muted); font-size: 14px; }
.dialog {
  border: 0; border-radius: var(--radius); background: var(--card); color: var(--text);
  padding: 24px; width: min(440px, calc(100vw - 32px));
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog p { font-size: 17px; margin-bottom: 20px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.dialog-actions .btn { flex: 1 1 120px; }
