:root {
  --bg: #eef3fc;
  --surface: #ffffff;
  --surface-2: #f5f8ff;
  --ink: #0d1017;
  --muted: #5b6575;
  --faint: #8b96a8;
  --line: #dde5f4;
  --line-strong: #c7d3e8;
  --accent: #5b7cfa;
  --accent-2: #a56cff;
  --accent-ink: #4565e8;
  --accent-soft: #eef2ff;
  --green: #1f9d63;
  --red: #c2410c;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 42px rgba(70, 90, 140, 0.11);
  --shadow-sm: 0 10px 26px rgba(70, 90, 140, 0.07);
  --gradient: linear-gradient(115deg, #6d8dff 0%, #937bff 52%, #c06cff 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 10% -10%, #dfe8ff 0%, rgba(223, 232, 255, 0) 60%),
    radial-gradient(760px 480px at 100% 0%, #f1e6ff 0%, rgba(241, 230, 255, 0) 55%),
    linear-gradient(180deg, #f3f7ff 0%, #e9effb 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
button, input { font: inherit; }
::selection { background: rgba(91, 124, 250, 0.18); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.grain { display: none; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 18px calc(38px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 0 16px;
  border-bottom: 1px solid rgba(199, 211, 232, 0.75);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark.tiny { width: 24px; height: 24px; }
.brand-mark.tiny img { width: 100%; height: 100%; }

.top-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }

.dev-badge {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  padding: 3px 5px;
  line-height: 1;
}

.user-chip {
  max-width: min(150px, 38vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 12px;
}

.hero { padding: 34px 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #3e4a5c;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(199, 211, 232, 0.65);
  padding: 7px 11px;
  border-radius: 10px;
}
.dot { display: none; }

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 9.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  font-weight: 800;
}

.lead {
  margin: 0;
  color: #3d4757;
  font-size: 17px;
  line-height: 1.45;
  max-width: 44ch;
}
.lead b { color: var(--ink); font-weight: 600; }

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

.create { padding: 20px; }

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 8px;
}
.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--faint);
}

.slug-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  min-height: 56px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.slug-row.focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.14);
}
.slug-row.ok { border-color: var(--green); }
.slug-row.bad { border-color: var(--red); }

.slug-prefix {
  font-weight: 500;
  color: var(--faint);
  font-size: 16px;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0;
}

.slug-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 15px 0 15px 4px;
  letter-spacing: 0;
}
.slug-input::placeholder { color: #a7b0c0; font-weight: 400; }

.slug-hint {
  min-height: 20px;
  margin: 9px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.slug-hint.ok { color: var(--green); }
.slug-hint.bad { color: var(--red); }
.hint-muted { color: var(--muted); }
.example {
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.example:hover { color: var(--ink); }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price { display: flex; align-items: baseline; gap: 5px; }
.price-value { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; }
.price-period { color: var(--muted); font-size: 14px; font-weight: 500; }

.fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.fineprint.center { text-align: center; }

.notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #dbe3ff;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 1.45;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  padding: 14px 20px;
  min-height: 52px;
  white-space: nowrap;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--faint);
  box-shadow: none;
}
.btn.full { width: 100%; }

.btn-primary {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(106, 120, 255, 0.30);
}
.btn-primary:not(:disabled):hover { filter: brightness(1.03); }
.btn-primary:not(:disabled):active { transform: translateY(1px); }
.btn-primary.full { width: 100%; margin-top: 6px; }
.btn-primary:disabled { background: var(--surface-2); color: var(--faint); }

.btn-danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.btn-danger:not(:disabled):hover { filter: brightness(0.96); }

.delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.delete-actions .btn { margin-top: 0; min-height: 48px; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 15px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: #fff; border-color: var(--accent); }
.btn-ghost.small { padding: 10px 16px; min-height: 44px; font-size: 14.5px; }

.icon-btn {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn.copied { color: var(--green); border-color: var(--green); }

.btn-link {
  display: inline-block;
  margin: 12px 12px 0 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.btn-link.muted { color: var(--muted); font-weight: 500; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 32px;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  line-height: 1.3;
}
.step span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 4px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 14px;
  padding-top: 0;
}
.section-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.9px; }
.count { font-size: 14px; color: var(--muted); font-weight: 500; }

.links-list { display: flex; flex-direction: column; gap: 12px; }

.link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.link-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.link-slug {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-slug:hover { color: var(--accent-ink); }
.link-slug .slash { color: var(--faint); font-weight: 500; }

.status-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-active { color: var(--green); }
.status-disabled { color: #8a6d3b; }
.status-pending { color: var(--accent-ink); }
.status-expired { color: var(--red); }

.link-target {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-target a { color: var(--muted); text-decoration: none; }
.link-target a:hover { color: var(--ink); }
.link-target.empty { color: var(--faint); }

.link-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.link-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.link-buttons { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.link-action {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: #5b7cfa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.link-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-action.danger { color: var(--muted); }
.link-action.copied { color: var(--green); }
.link-card.is-removing { animation: cardOut 0.2s ease forwards; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d6ddec;
  position: relative;
  transition: background 0.15s;
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(40, 50, 80, 0.18);
  transition: transform 0.15s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: 0.5; }
.switch .switch-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.empty p { margin: 0 auto; max-width: 32ch; }

.footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(199, 211, 232, 0.7);
  color: var(--muted);
  font-size: 12px;
}
.footer .brand.small { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.footer p { margin: 0; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
}
.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
}
.legal-nav a:hover { color: var(--ink); text-decoration: underline; }
.copyright { margin: 12px 0 0; font-size: 11px; color: var(--faint); }

.wrap-wide { max-width: 780px; }
.state-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  margin-top: 32px;
}
.state-card .brand { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.state-card h1 { margin: 16px 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; }
.state-card .muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.state-card .btn {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: var(--gradient);
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(106, 120, 255, 0.24);
}
.state-card.legal { max-width: 780px; padding: 28px 22px; }

.legal .doc-meta { margin: -4px 0 18px; color: var(--faint); font-size: 11.5px; }
.legal h2 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.legal p { margin: 8px 0; font-size: 13.5px; line-height: 1.65; color: #3d4757; }
.legal ul { margin: 8px 0; padding-left: 18px; }
.legal li { margin: 4px 0; font-size: 13.5px; line-height: 1.6; color: #3d4757; }
.legal a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid rgba(91, 124, 250, 0.28); }
.legal a:hover { border-color: var(--accent-ink); }
.operator {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 16px 0;
}
.operator p { margin: 3px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.legal-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.legal-list a { font-weight: 600; }

.max-bot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  margin: 0 0 12px;
}
.max-bot-card .brand-mark { width: 36px; height: 36px; }
.max-bot-card .brand-mark svg { width: 20px; height: 20px; }
.max-bot-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.max-bot-meta b { font-size: 15px; font-weight: 700; }
.max-bot-meta span { font-size: 12px; color: var(--muted); }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.checkline input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.checkline a { color: var(--ink); text-decoration: underline; }

.has-cookie-banner { padding-bottom: 96px; }
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  width: min(560px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 34px rgba(50, 70, 120, 0.14);
}
.cookie-text {
  flex: 1 1 280px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-text a { color: var(--ink); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 34px; padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.cookie-banner .btn-primary { box-shadow: 0 6px 14px rgba(106, 120, 255, 0.22); }

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 45, 0.35);
  backdrop-filter: blur(2px);
  animation: fade 0.15s ease;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -20px 50px rgba(50, 70, 120, 0.16);
  animation: slideUp 0.2s ease;
}
.modal-panel h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.modal-sub { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.modal-sub b { color: var(--ink); font-weight: 600; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { border-color: var(--line-strong); color: var(--ink); }

.max-note {
  background: var(--accent-soft);
  border: 1px solid #dbe3ff;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.form { display: flex; flex-direction: column; gap: 10px; }
.field-block { display: flex; flex-direction: column; }

.input {
  width: 100%;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 12px;
  outline: 0;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.14); }

.code-input { text-align: center; letter-spacing: 6px; font-size: 20px; font-weight: 700; }

.buy-slug {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  margin: 6px 0 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buy-slug span { color: var(--muted); font-weight: 500; }

.buy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.buy-summary b { color: var(--ink); font-weight: 600; }
.buy-price { font-weight: 700; color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  z-index: 80;
  background: #0d1017;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 30, 50, 0.24);
  max-width: min(420px, calc(100vw - 36px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #9f2a1a; }

.skeleton {
  background: linear-gradient(90deg, #e9eef8 25%, #f5f8ff 37%, #e9eef8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 6px;
  color: transparent !important;
}

.hero, .create, .footer { animation: fadeIn 0.3s ease both; }
.create { animation-delay: 0.04s; }
.link-card { animation: cardIn 0.24s ease both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cardOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
  .modal-panel {
    max-width: 440px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius);
    padding-bottom: 22px;
  }
  .state-card.legal { padding: 34px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
