:root {
  --bg: #fffaf4;
  --card: #ffffff;
  --text: #1f1a24;
  --muted: #6b6472;
  --accent: #e84a8a;
  --accent-text: #ffffff;
  --line: #eadfd3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1226;
    --card: #261a38;
    --text: #f4eefa;
    --muted: #a99fb8;
    --accent: #ff6fb0;
    --accent-text: #1a1226;
    --line: #3a2a52;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main, header, footer { max-width: 680px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 20px; }
header img { width: 44px; height: 44px; border-radius: 10px; }
header a { color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
h1 { font-size: 32px; line-height: 1.15; margin: 32px 0 12px; }
h2 { font-size: 23px; margin: 48px 0 12px; }
p, li { margin: 0 0 12px; }
a { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 24px 0;
}
.amount { display: flex; gap: 10px; align-items: baseline; }
.amount input {
  flex: 1;
  min-width: 0;
  font: 600 34px/1.2 ui-rounded, -apple-system, sans-serif;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  padding: 4px 0;
  outline: none;
}
.amount input:focus { border-color: var(--accent); }
.amount span { font-size: 28px; color: var(--muted); }
label { display: block; font-weight: 600; margin-bottom: 8px; }
#result { margin-top: 16px; }
#result ul { list-style: none; padding: 0; margin: 0 0 12px; }
#result li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.note { color: var(--muted); font-size: 15px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 22px;
}
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; }
footer { padding-top: 40px; padding-bottom: 40px; color: var(--muted); font-size: 15px; }
footer a { color: inherit; margin-right: 16px; }

nav { max-width: 680px; margin: 12px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.scroll { overflow-x: auto; }
.scroll table { min-width: 640px; }
ul, ol { padding-left: 22px; }
