:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --ink: #1b1a1f;
  --ink-2: #5d5b66;
  --ink-3: #8f8c98;
  --line: #e4e1da;
  --accent: #5b47f0;
  --accent-2: #8a5cf6;
  --accent-ink: #ffffff;
  --accent-soft: #ece9ff;
  --ok: #1f9d6b;
  --ok-soft: #e1f5ec;
  --warn: #c2541b;
  --warn-soft: #fdebe1;
  --rec: #e5484d;
  --shadow: 0 1px 2px rgba(20, 18, 30, 0.04), 0 8px 24px rgba(20, 18, 30, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 18, 30, 0.04), 0 24px 60px rgba(40, 30, 90, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121116;
    --surface: #1b1a21;
    --surface-2: #24232b;
    --ink: #f2f1f5;
    --ink-2: #b4b1be;
    --ink-3: #807d8a;
    --line: #2f2d37;
    --accent: #7c6bff;
    --accent-2: #a37dff;
    --accent-soft: #2a2546;
    --ok: #3fcf95;
    --ok-soft: #173329;
    --warn: #ff8a4c;
    --warn-soft: #3a2418;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; }
h3 { font-size: 16px; font-weight: 600; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.error { color: var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; }
.warn { color: var(--warn); }
[hidden] { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(91, 71, 240, 0.28); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(91, 71, 240, 0.38); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.ok, .btn.ghost.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px; font: inherit; color: var(--ink-3); cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Поля ---------- */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ================= Админка ================= */
.admin .topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100vw - 960px) / 2)); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.admin .topbar form { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; }
.brand.big { font-size: 22px; margin-bottom: 24px; }
.logo { width: 26px; height: 26px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; }
.logo::after { content: ''; position: absolute; inset: 8px 11px; border-radius: 4px; background: #fff; }
.wrap { max-width: 960px; margin: 0 auto; padding: 28px 16px 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.back { display: inline-block; color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.back:hover { color: var(--ink); }

.login { max-width: 380px; margin: 12vh auto 0; padding: 32px; }

.survey-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.survey-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; transition: box-shadow 0.2s, transform 0.2s; }
.survey-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.survey-main { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.survey-title { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.survey-main .muted { font-size: 13px; }
.survey-stats { display: flex; gap: 14px; }
.stat { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.stat b { color: var(--ink); font-size: 16px; margin-right: 3px; }
@media (max-width: 640px) {
  .survey-row { flex-wrap: wrap; }
  .survey-main { flex-basis: 100%; }
}
.empty { text-align: center; color: var(--ink-2); padding: 40px 20px; }
.empty .btn { margin-top: 8px; }

.link-card { margin-bottom: 14px; }
.link-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.link-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; padding: 16px 20px; }
.kpi b { font-size: 28px; font-weight: 700; }
.kpi span { color: var(--ink-2); font-size: 14px; }
details.card summary { cursor: pointer; font-weight: 600; }
.welcome-text { white-space: pre-wrap; color: var(--ink-2); }

.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.table tbody tr { cursor: pointer; transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.big { font-size: 14px; padding: 6px 14px; }
.badge.s-done { background: var(--ok-soft); color: var(--ok); }
.badge.s-extra, .badge.s-analyzing { background: var(--accent-soft); color: var(--accent); }

.qa { margin-bottom: 10px; }
.qa h3 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.qnum { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.qa.extra .qnum { background: var(--ok-soft); color: var(--ok); }
.answer { padding-left: 40px; }
.answer audio { width: 100%; max-width: 480px; height: 40px; margin: 6px 0; }
.answer-text { white-space: pre-wrap; margin: 6px 0 0; }
.tag { display: inline-block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.candidates { margin: 14px 0 0 40px; padding: 12px 16px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 14px; }
.candidates ul { margin: 6px 0 0; padding-left: 18px; }
.candidates.none { color: var(--ink-3); }
@media (max-width: 640px) { .answer, .candidates { padding-left: 0; margin-left: 0; } .candidates { padding-left: 16px; } }

/* Конструктор */
.builder .card { margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head h2 { margin: 0; }
.q-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; counter-reset: q; }
.q-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); counter-increment: q;
  transition: box-shadow 0.15s, opacity 0.15s, border-color 0.15s;
}
.q-item.dragging { opacity: 0.4; }
.q-item.over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-handle { cursor: grab; color: var(--ink-3); padding: 10px 4px; user-select: none; touch-action: none; font-size: 14px; letter-spacing: -2px; }
.q-handle:active { cursor: grabbing; }
.q-item::before { content: counter(q); flex: none; width: 26px; height: 26px; margin-top: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.q-item textarea { flex: 1; min-height: 44px; border: 0; padding: 8px 6px; box-shadow: none; resize: none; overflow: hidden; background: transparent; }
.q-item textarea:focus { box-shadow: none; }
.q-tools { display: flex; flex-direction: column; gap: 2px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: 0.3; cursor: default; background: none; }
.builder-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ================= Прохождение ================= */
.survey {
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%),
    var(--bg);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); z-index: 10; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 0 4px 4px 0; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.preview-banner { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; z-index: 11; white-space: nowrap; }

.stage { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.screen { width: 100%; max-width: 560px; text-align: center; animation: enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.screen.leave { animation: leave 0.25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-12px); } }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.screen h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: 14px; }
.question { font-size: clamp(21px, 4.8vw, 27px); font-weight: 600; line-height: 1.35; margin: 0 0 36px; letter-spacing: -0.01em; }
.lead { color: var(--ink-2); font-size: 17px; white-space: pre-wrap; margin: 0 0 32px; }
.screen .btn.primary.big { height: 56px; padding: 0 34px; font-size: 17px; }

/* Запись */
.recorder { display: flex; flex-direction: column; align-items: center; }
.mic {
  position: relative; width: 112px; height: 112px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 14px 40px rgba(91, 71, 240, 0.4); display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s; -webkit-tap-highlight-color: transparent;
}
.mic:hover { transform: scale(1.04); }
.mic:active { transform: scale(0.96); }
.mic svg { width: 42px; height: 42px; }
.mic::before, .mic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.4s ease-out infinite; pointer-events: none; }
.mic::after { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }
.mic.recording { background: var(--rec); box-shadow: 0 14px 40px rgba(229, 72, 77, 0.4); }
.mic.recording::before, .mic.recording::after { border-color: var(--rec); animation-duration: 1.4s; }
.mic.recording::after { animation-delay: 0.7s; }
.mic-label { margin-top: 22px; font-weight: 600; font-size: 17px; }
.mic-sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

.wave { width: 100%; max-width: 360px; height: 64px; margin: 6px 0 14px; }
.timer { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink-2); margin-top: 18px; }
.timer .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); margin-right: 8px; vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.player { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: var(--shadow); }
.play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.play svg { width: 18px; height: 18px; }
.track { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; cursor: pointer; }
.track > i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; }
.dur { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); min-width: 44px; text-align: right; }
.row-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.row-actions .btn { min-width: 150px; }

.text-answer { width: 100%; text-align: left; }
.text-answer textarea { min-height: 150px; font-size: 16px; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.alt { margin-top: 26px; }

.upload { width: 100%; max-width: 300px; height: 6px; border-radius: 3px; background: var(--surface-2); margin: 20px auto 0; overflow: hidden; }
.upload > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s; }
.toast { color: var(--warn); background: var(--warn-soft); padding: 10px 16px; border-radius: var(--radius-sm); margin-top: 18px; font-size: 15px; }

/* Анализ */
.orb { width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--accent-2), color-mix(in srgb, var(--accent) 20%, transparent), var(--accent)); animation: spin 1.6s linear infinite; position: relative; }
.orb::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.dots::after { content: ''; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.done-mark { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.done-mark svg { width: 46px; height: 46px; }
.done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.25s ease forwards; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.badge-extra { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }

/* Конструктор: тип ответа, варианты, «Другое», уточнение */
.q-fields { flex: 1; min-width: 0; display: grid; gap: 10px; }
.q-item .q-fields textarea.q-text { padding: 8px 6px; }
.q-type-row { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.q-type-row select { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.q-choice { padding: 4px 6px 2px; display: grid; gap: 6px; }
.q-choice .field { margin: 0; }
.q-choice .field.sub { margin-left: 30px; }
.q-item .q-choice textarea, .q-item .q-choice input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); overflow: hidden; resize: none; }
.q-item .q-choice textarea:focus, .q-item .q-choice input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.q-choice small { display: block; margin-top: 4px; font-size: 13px; }
.check-label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; padding: 4px 0; }
.check-label input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
@media (max-width: 600px) { .q-choice .field.sub { margin-left: 0; } .q-type-row { flex-wrap: wrap; } }

/* Админка: варианты и уточнения */
.q-summary li { margin-bottom: 10px; }
.q-summary ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.q-summary p { margin: 4px 0 0; font-size: 14px; }
.picked { margin: 6px 0 0; padding-left: 18px; }
.picked li { margin: 2px 0; }
.followup { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.followup h4 { margin: 0 0 10px 40px; font-size: 15px; }
@media (max-width: 640px) { .followup h4 { margin-left: 0; } }

/* Прохождение: варианты ответа (RSP-010) */
.choices { border: 0; padding: 0; margin: -16px 0 28px; min-width: 0; display: grid; gap: 10px; text-align: left; }
.choices-hint { padding: 0; margin: 0 auto 6px; text-align: center; color: var(--ink-3); font-size: 14px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; min-height: 58px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font: inherit; font-size: 17px; color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s; -webkit-tap-highlight-color: transparent;
}
.choice:active { transform: scale(0.99); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { flex: none; width: 22px; height: 22px; border: 2px solid var(--ink-3); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; }
.choice input[type=radio] + .mark, .choice .mark.round { border-radius: 50%; }
.choice:has(input:checked), .choice.checked { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + .mark, .choice.checked .mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.choice:has(input:focus-visible), .choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice:has(input:disabled), .choice:disabled { cursor: default; opacity: 0.7; }
.choice-label { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.choice-label small { color: var(--ink-2); font-size: 15px; }
.choice.other { border-style: dashed; }
.choice.other.checked { border-style: solid; }

/* Диалог «Другое» (RSP-011): шторка снизу на телефоне, окно по центру на широком экране */
body.sheet-open { overflow: hidden; }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, var(--ink) 38%, transparent); animation: fade 0.2s ease both;
}
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; text-align: center;
  background: var(--bg); border-radius: var(--radius) var(--radius) 0 0; padding: 30px 16px calc(28px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18); animation: sheet-up 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sheet-backdrop.leave { animation: fade 0.2s ease reverse both; }
.sheet-backdrop.leave .sheet { animation: sheet-up 0.2s ease reverse both; }
.sheet-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 16px; cursor: pointer; }
.sheet-close:hover { color: var(--ink); }
.sheet-title { font-size: clamp(21px, 4.8vw, 25px); margin: 4px 36px 6px; }
.sheet-hint { color: var(--ink-2); font-size: 15px; margin: 0 0 26px; }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: var(--radius); padding: 34px 28px 28px; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

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