@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #1c1917;
  --muted: #5e5854;
  --line: #efe6e2;
  --bg: #ffffff;
  --soft: #faf6f4;
  --accent: #e03e2d;
  --accent-dark: #d32f2f;
  --shadow: 0 16px 40px rgba(48, 18, 12, 0.07);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Poppins, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--accent-dark); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 72px; padding: 0 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand b { font-weight: 700; }
.mark { width: 26px; height: 28px; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 18px; text-decoration: none; border: 0; cursor: pointer; font-weight: 600;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.hero { display: grid; grid-template-columns: 1.3fr .8fr; gap: 36px; align-items: center; padding: 56px 0 24px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }
h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.lead, .muted { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pay-methods { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; }
.pay-methods li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; background: var(--soft); }
.hero-card, .panel, .auth-card, .calc, .receipt {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 18px; }
.hero-card-top { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 99px; background: var(--accent); }
.hero-amount { font-size: 32px; font-weight: 700; margin: 8px 0 14px; }
.fake-field { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; }
.block { padding: 28px 0 8px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; }
.calc-controls, .stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 500; }
input, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink);
}
input:focus { outline: 2px solid rgba(224,62,45,.25); border-color: var(--accent); }
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%235e5854' d='M3.2 5.6 8 10.4l4.8-4.8-.9-.9L8 8.6 4.1 4.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
select:focus { outline: 2px solid rgba(94, 88, 84, .18); border-color: #c8c2bd; }
.pick { position: relative; min-width: 0; }
.pick-native {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0); border: 0 !important; white-space: nowrap;
}
.pick-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; color: var(--ink);
}
.pick-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.pick-btn svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.pick-btn:focus, .pick.is-open .pick-btn { outline: 2px solid rgba(94, 88, 84, .18); border-color: #c8c2bd; }
.pick-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 360px; overflow: auto;
}
.pick-list button {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink);
}
.pick-list button.tone-ok { color: #146c36; }
.pick-list button.tone-wait { color: #8a5a00; }
.pick-list button.tone-back { color: #1d4f91; }
.pick-list button.tone-part { color: #8a4b12; }
.pick-list button.tone-done { color: #5e4b78; }
.pick-list button.tone-bad { color: #9f2418; }
.pick-list button.tone-off { color: #5e5854; }
.pick-list button:hover, .pick-list button:focus, .pick-list button.is-on { background: #e6e3df; outline: none; }
.calc-result { display: grid; gap: 12px; }
.calc-result strong { display: block; font-size: 28px; }
.price-list { list-style: none; margin: 8px 0 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.price-list b { white-space: nowrap; }
.save { margin: 0; padding: 12px; border-radius: 12px; background: #fff4f2; color: var(--accent-dark); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article, .cards article { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow); }
.steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: #fff4f2; color: var(--accent); }
.demo-band { margin: 28px 0 48px; }
.foot { border-top: 1px solid var(--line); margin-top: 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; }
.auth-card { width: min(460px, 100%); margin: 40px auto; padding: 24px; }
.flash { border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.flash.ok { background: #f3fbf5; color: #146c36; }
.flash.err { background: #fff1ef; color: #9f2418; }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border-right: 1px solid var(--line); background: var(--soft);
  position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto;
}
.side a { text-decoration: none; color: var(--muted); border-radius: 12px; padding: 10px 12px; font-weight: 500; }
.side a.brand { color: var(--ink); background: transparent; }
.side a:hover { background: #fff; color: var(--ink); }
.side a.brand:hover { background: transparent; color: var(--ink); }
.side a.is-on, .side a.is-on:hover { background: #fff4f2; color: var(--accent); font-weight: 600; }
.side-out { margin-top: auto; }
.side-out button { width: 100%; background: transparent; border: 0; border-radius: 12px; text-align: left; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 500; }
.side-out button:hover { background: #fff; color: var(--ink); }
.content { padding: 18px 22px 40px; }
.content-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.content-bar > strong { margin-left: auto; }
.gate { position: relative; margin-left: auto; }
.gate-btn {
  display: flex; align-items: center; gap: 10px; max-width: min(280px, 70vw);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 14px; padding: 6px 10px 6px 12px; cursor: pointer;
}
.gate-btn span { min-width: 0; text-align: left; }
.gate-btn small { display: block; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.2; }
.gate-btn strong { display: block; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate-btn svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.gate-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
  width: min(360px, 86vw); padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.gate-menu form { margin: 0; }
.gate-item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 12px; }
.gate-item:hover,
.gate-item.is-on { background: var(--soft); }
.gate-item > form:first-child { min-width: 0; }
.gate-item > form:first-child button {
  width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink);
  border-radius: 12px; padding: 8px 10px; cursor: pointer;
}
.gate-item button strong { display: block; font-size: 14px; font-weight: 650; }
.gate-item button small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.gate-item > form:first-child button:hover { background: transparent; }
.gate-ask {
  width: 34px; height: 34px; margin-right: 4px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.gate-ask svg { width: 15px; height: 15px; }
.gate-ask:hover, .gate-ask[aria-expanded="true"] { background: #fff1ef; color: var(--accent-dark); }
.gate-confirm { grid-column: 1 / -1; padding: 4px 10px 10px; }
.gate-confirm p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.gate-actions { display: flex; gap: 8px; }
.gate-actions .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.gate-menu .gate-new {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px 10px 8px;
  border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px;
  background: transparent; color: var(--accent-dark); font-weight: 650; cursor: pointer; text-align: left;
}
.gate-new svg { width: 14px; height: 14px; flex: none; }
.pill { margin-left: auto; background: #fff4f2; color: var(--accent-dark); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.cards span, .cards small { color: var(--muted); display: block; }
.cards strong { font-size: 24px; }
.panel { padding: 16px; margin: 12px 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
thead th { background: #fff4f2; color: #9f2418; font-weight: 600; border-bottom-color: #f3d2cc; white-space: nowrap; }
thead th.sort a {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; text-decoration: none; font-weight: 600;
}
thead th.sort a:hover { color: var(--accent-dark); }
.sort-mark { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; width: 7px; height: 9px; }
.sort-mark i { display: block; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.sort-mark .up { border-bottom: 4px solid #c9847c; }
.sort-mark .down { border-top: 4px solid #c9847c; }
th.is-asc .sort-mark .down, th.is-desc .sort-mark .up { visibility: hidden; }
th.is-asc .sort-mark .up { border-bottom-color: #9f2418; }
th.is-desc .sort-mark .down { border-top-color: #9f2418; }
th:first-child, td:first-child { padding-left: 14px; }
th:last-child, td:last-child { padding-right: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.txid { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.status::before, .pick-list button[class*="tone-"]::before, .pick-btn span[class*="tone-"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; flex: none;
}
.tone-ok { color: #146c36; background: #e8f6ee; }
.tone-wait { color: #8a5a00; background: #fff4e5; }
.tone-back { color: #1d4f91; background: #e8f1fb; }
.tone-part { color: #8a4b12; background: #fff1e4; }
.tone-done { color: #5e4b78; background: #f3eef8; }
.tone-bad { color: #9f2418; background: #fff1ef; }
.tone-off { color: #5e5854; background: #f3f1ef; }
.pick-list button[class*="tone-"], .pick-btn span[class*="tone-"] { background: transparent; font-weight: 600; }
.pick-list button.tone-ok:hover, .pick-list button.tone-ok:focus, .pick-list button.tone-ok.is-on { background: #e8f6ee; }
.pick-list button.tone-wait:hover, .pick-list button.tone-wait:focus, .pick-list button.tone-wait.is-on { background: #fff4e5; }
.pick-list button.tone-back:hover, .pick-list button.tone-back:focus, .pick-list button.tone-back.is-on { background: #e8f1fb; }
.pick-list button.tone-part:hover, .pick-list button.tone-part:focus, .pick-list button.tone-part.is-on { background: #fff1e4; }
.pick-list button.tone-done:hover, .pick-list button.tone-done:focus, .pick-list button.tone-done.is-on { background: #f3eef8; }
.pick-list button.tone-bad:hover, .pick-list button.tone-bad:focus, .pick-list button.tone-bad.is-on { background: #fff1ef; }
.pick-list button.tone-off:hover, .pick-list button.tone-off:focus, .pick-list button.tone-off.is-on { background: #f3f1ef; }
.pager-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 16px; flex-wrap: wrap; }
.pager { display: flex; gap: 8px; align-items: center; margin: 0 0 0 auto; }
.pager a, .pager span {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  text-decoration: none; color: var(--ink); background: #fff; font-weight: 600;
}
.pager .is-on { background: #fff4f2; color: var(--accent); border-color: #f3c7c1; }
.pager .is-off { color: var(--muted); background: var(--soft); }
.pager-size { display: flex; align-items: center; gap: 10px; }
.pager-size label { display: inline; margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.per-box { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.per-box:focus-within { border-color: var(--accent); outline: 2px solid rgba(224, 62, 45, .25); }
.per-box input { width: 3.4rem; border: 0; border-radius: 12px 0 0 12px; padding: 8px 4px 8px 12px; outline: none; background: transparent; }
.per-open { display: grid; place-items: center; width: 32px; height: 36px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.per-open svg { width: 14px; height: 14px; }
.per-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.per-list button {
  width: 100%; border: 0; background: transparent; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); text-align: left;
}
.per-list button:hover, .per-list button:focus, .per-list button.is-on { background: #e6e3df; outline: none; }
.account-list { display: grid; gap: 8px; }
.account-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 130px auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
}
.account-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.account-row .btn { flex: none; }
.account-add { display: grid; gap: 14px; }
#ucty, #logo { scroll-margin-top: 18px; }
.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-mark {
  width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.logo-mark img { max-width: 64px; max-height: 56px; object-fit: contain; }
.logo-mark span { color: var(--muted); font-size: 12px; text-align: center; padding: 6px; }
.logo-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.logo-actions form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.logo-pick { position: relative; }
.logo-pick input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.logo-file { color: var(--muted); font-size: 13px; }
.checkout-logo { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; margin: 0 0 12px; }
.account-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.account-fields input.is-invalid { border-color: var(--accent); background: #fff8f7; }
.account-add .field-error { margin: -4px 0 0; color: #9f2418; font-size: 13px; font-weight: 650; }
.account-fields > label { flex: 1 1 220px; min-width: 180px; }
.account-fields .is-bic { flex: 0 1 170px; min-width: 150px; }
.account-fields .btn { flex: none; gap: 8px; }
.account-fields .btn svg { width: 14px; height: 14px; flex: none; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-grid label { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice-grid input { position: absolute; opacity: 0; inset: 0; }
.choice-grid span {
  display: grid; gap: 2px; align-content: center; justify-items: center; text-align: center;
  min-height: 74px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px; background: #fff;
}
.choice-grid small { color: var(--muted); font-weight: 500; }
.choice-grid input:checked + span { border-color: var(--accent); background: #fff4f2; }
.choice-grid input:focus-visible + span { outline: 2px solid rgba(224, 62, 45, .35); outline-offset: 2px; }
.currency-grid { grid-template-columns: repeat(4, 1fr); }
.currency-grid span { min-height: 58px; }
.types-grid { grid-template-columns: 1fr 1fr; }
.types-grid svg { width: 22px; height: 22px; color: var(--muted); }
.types-grid input:checked + span svg { color: var(--accent); }
.types-grid input:checked + span { color: var(--accent); }
.types-grid input:checked + span small { color: var(--accent); opacity: .8; }
.tax-grid > label > span { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.tax-grid .tax-words { display: grid; gap: 0; min-height: 0; margin: 0; border: 0; outline: 0; box-shadow: none; background: transparent; padding: 0; border-radius: 0; font-weight: 400; }
.tax-grid svg { flex: none; }
.currency-row { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-row label { position: relative; cursor: pointer; }
.currency-row input { position: absolute; opacity: 0; }
.currency-row span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #fff; font-weight: 600;
}
.currency-row .sym { font-size: 16px; }
.currency-row input:checked + span { border-color: var(--accent); background: #fff4f2; }
.currency-row input:focus-visible + span { outline: 2px solid rgba(224, 62, 45, .35); outline-offset: 2px; }
.with-btn {
  display: flex; align-items: stretch; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
}
.with-btn:focus-within { border-color: var(--accent); outline: 2px solid rgba(224, 62, 45, .25); }
.with-btn input {
  flex: 1; min-width: 0; width: auto; border: 0; border-radius: 0; outline: none; background: transparent;
}
.with-btn input:focus { outline: none; border-color: transparent; }
.with-btn .btn {
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: var(--soft); color: var(--ink); padding: 0 14px; white-space: nowrap;
}
.with-btn .btn:hover { background: #fff4f2; color: var(--accent); }
.suggest { position: relative; }
.suggest-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% - 4px);
  margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 240px; overflow: auto;
}
.suggest-list button {
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font: inherit;
}
.suggest-list button:hover, .suggest-list button:focus { background: var(--soft); }
.suggest-list small { display: block; color: var(--muted); }
.schedule-grid { grid-template-columns: repeat(4, 1fr); }
.schedule-grid span { min-height: 52px; }
.filters, .inline, .split { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.filters { margin-bottom: 18px; }
.filters > *, .split > * { flex: 1; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.detail dt { color: var(--muted); font-size: 13px; }
.detail dd { margin: 0; font-weight: 600; }
.setup { display: grid; gap: 12px; }
.setup article {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow);
}
.setup b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: #fff4f2; color: var(--accent); }
.setup h2 { font-size: 18px; margin: 0 0 4px; }
.setup p { margin: 0; color: var(--muted); }
.setup .is-done b { background: #f3fbf5; color: #146c36; }
.setup .pill { margin-left: 0; }
.chart { width: 100%; height: auto; }
.chart-area { fill: rgba(224, 62, 45, .12); }
.chart-line { fill: none; stroke: #e03e2d; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart text { font-size: 12px; fill: var(--muted); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 12px; overflow: auto; }
.secret-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #f3fbf5; color: #146c36; }
.secret-note a { color: inherit; font-weight: 650; }
.secret code, .cards code { display: block; word-break: break-all; margin: 8px 0; }
.rate { display: flex; gap: 6px; align-items: center; }
.rate input { width: 78px; padding: 8px; }
.checkout, .receipt { width: min(440px, 100%); margin: 28px auto; padding: 22px; }
.receipt-actions { display: flex; gap: 12px; }
.prose h2 { margin-top: 22px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; padding: 0; flex: 0 0 auto; accent-color: var(--accent); }
.check a { color: var(--accent-dark); }
.terms-bar { display: grid; gap: 10px; padding: 14px 16px; margin: 0 0 16px; border-radius: var(--radius); background: #fff4e5; color: #6b4500; }
.terms-bar p { margin: 0; font-weight: 600; }
.terms-bar .btn { justify-self: start; }
.legal { max-width: 820px; margin: 0 auto; }
.legal li { margin-bottom: 6px; }
.legal table { font-size: 14px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.legal-nav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.legal-nav a.is-on { background: #fff4f2; border-color: #f6c9c2; color: var(--accent); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.foot-links a { color: var(--muted); }
.foot-legal { margin: 0 auto; padding: 0 0 22px; color: var(--muted); font-size: 12.5px; }
.mode-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 999px; }
.mode-switch a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.mode-switch a.is-on { background: #fff4f2; color: var(--accent); font-weight: 600; }
.test-banner { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: #fff4e5; color: #8a5a00; font-weight: 600; font-size: 14px; text-align: center; }
.checkout-links { text-align: center; }
.dispute-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dispute-head h2 { margin: 0; }
textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; color: var(--ink); }
.invoice { width: min(820px, 100%); }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 16px; }
.invoice-parties h2 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.invoice-parties p { margin: 0; }
.invoice table { width: 100%; margin: 12px 0; }
.invoice tfoot th { text-align: left; border-top: 2px solid var(--ink); }
@media (max-width: 900px) {
  .invoice-parties { grid-template-columns: 1fr; }
  .hero, .calc, .steps, .cards, .detail { grid-template-columns: 1fr; }
  .choice-grid, .currency-grid, .schedule-grid { grid-template-columns: 1fr 1fr; }
  .setup article { grid-template-columns: auto 1fr; }
  .setup .btn, .setup .pill { grid-column: 2; justify-self: start; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .shell.is-open .side { display: flex; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .pill { margin-left: 0; }
  .account-row { grid-template-columns: 1fr; }
  .account-fields > label, .account-fields .is-bic, .account-fields .btn { flex: 1 1 100%; }
}
[hidden] { display: none !important; }
.id-login { min-height: 70vh; display: grid; place-items: center; padding: 24px 0 48px; }
.id-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 50px rgba(20, 24, 31, .08); }
.id-card h1 { font-size: 28px; margin: 0 0 8px; }
.id-tabs { display: flex; gap: 8px; margin: 16px 0; }
.id-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 650; cursor: pointer; }
.id-tabs button.is-on { background: #14181f; color: #fff; border-color: #14181f; }
#id-qr { display: grid; place-items: center; min-height: 220px; }
#id-qr canvas, #id-qr img, #id-qr svg { max-width: 220px; height: auto; }
.id-status { min-height: 1.4em; }
@media print {
  .top, .receipt-actions, .side, .content-bar { display: none !important; }
  .receipt { box-shadow: none; border: 0; }
}

.book-choice{display:flex;justify-content:space-between;gap:16px;align-items:center}
.book-choice .fine{margin:4px 0 0}
@media(max-width:720px){.book-choice{flex-direction:column;align-items:stretch}}
