:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.top { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 10px; }
h2 { font-size: 20px; margin: 18px 0 12px; }
.lead { color: var(--muted); line-height: 1.5; margin: 0 0 22px; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0; }
.notice { background: #fef3c7; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.button { display: block; width: 100%; text-align: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.disabled { opacity: 0.45; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.link { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; padding: 8px; }
.card-view { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; width: 100%; }
.card-view img { width: 96px; height: auto; border-radius: 6px; flex: none; }
.card-view .name { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.card-view .sub { color: var(--muted); font-size: 14px; margin: 0; }
.search { display: grid; gap: 10px; margin-bottom: 16px; }
.search label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.search input { font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result { font: inherit; color: inherit; cursor: pointer; }
.result.card-view img { width: 64px; }
.prices { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.price:first-child { border-top: 0; }
.price .label { margin: 0 0 3px; font-weight: 700; }
.price .source { margin: 0; color: var(--muted); font-size: 13px; }
.price .source a { color: var(--accent); }
.price .amount { margin: 0; font-weight: 800; font-size: 18px; white-space: nowrap; }
.empty { padding: 14px; color: var(--muted); }
#step-prices .button { margin-top: 18px; }
.spinner { width: 42px; height: 42px; margin: 48px auto 16px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
#step-working { text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 20px 28px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
.prose { line-height: 1.6; }
