:root {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #142921;
  background: #f5f7f5;
  font-synthesis: none;
  --surface: #fff;
  --text: #142921;
  --muted: #52665c;
  --line: #e0e8e2;
  --accent: #096c4f;
  --tint: #e8f4ed;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #118461; outline-offset: 3px; }
.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 25px 18px 22px; background: #fbfcfb; border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--text); text-decoration: none; font-size: 21px; font-weight: 760; letter-spacing: -.04em; white-space: nowrap; }
.sidebar .brand { margin-left: 9px; }
.brand-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #096c4f; color: white; font-size: 24px; font-weight: 640; }
nav { display: grid; gap: 6px; margin-top: 47px; }
.nav-item { display: flex; gap: 12px; align-items: center; padding: 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 14px; transition: background .16s, color .16s; }
.nav-item span { display: inline-grid; place-items: center; width: 20px; font-size: 19px; line-height: 1; }
.nav-item:hover, .nav-item.selected { background: var(--tint); color: var(--accent); }
.nav-item.selected { font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-left: 9px; }
.environment { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 6px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 650; white-space: nowrap; }
.environment::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.environment.demo { background: #f1eee4; color: #70541e; }
.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; height: 71px; padding: 0 38px; background: #fbfcfb; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.workspace main { max-width: 1470px; margin: 0 auto; padding: 43px 38px 48px; }
.section-head, .checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(25px, 3vw, 35px); line-height: 1.25; letter-spacing: -.045em; }
h2 { font-size: 22px; letter-spacing: -.03em; }
.section-head p { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 41px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover:not(:disabled) { background: #07583f; }
.button-outline { background: #fff; border-color: #d8e3db; color: var(--text); }
.button-outline:hover:not(:disabled) { background: #f1f7f2; border-color: #b7cfc0; }
.button.small { min-height: 33px; padding: 0 10px; font-size: 12px; }
.button.full { width: 100%; }
.summary { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.15fr; margin: 31px 0 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.summary > div { padding: 0 21px; border-left: 1px solid var(--line); min-width: 0; }
.summary > div:first-child { border-left: 0; padding-left: 0; }
.summary span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.summary strong { display: inline-block; font-size: clamp(23px, 2.35vw, 32px); line-height: 1.15; letter-spacing: -.05em; font-weight: 730; font-variant-numeric: tabular-nums; max-width: 100%; overflow-wrap: anywhere; }
small { color: var(--muted); font-size: 11px; font-weight: 550; white-space: nowrap; }
.summary small { margin-left: 6px; }
.table-surface { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
#networks .table-surface { margin-top: 28px; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 16px; }
.tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.tabs button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tabs button:hover, .tabs button.active { background: var(--tint); color: var(--accent); }
.tabs button.active { font-weight: 650; }
.search { display: flex; gap: 8px; align-items: center; width: min(100%, 195px); padding-left: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.search span { font-size: 18px; }
.search input { width: 100%; padding: 8px 7px 8px 0; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #f7f9f7; font-size: 12px; font-weight: 650; }
th, td { padding: 13px 16px; border-top: 1px solid var(--line); }
td { height: 57px; font-size: 13px; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: #fafcfb; }
.ref { max-width: 260px; white-space: normal; overflow-wrap: anywhere; font-weight: 660; }
.number { font-variant-numeric: tabular-nums; font-weight: 650; }
.compact { font-size: 12px; }
.muted { color: var(--muted); }
.network-label { display: inline-flex; align-items: center; gap: 8px; }
.network-mark { display: inline-grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; background: #eff3f0; border-radius: 50%; color: #31624f; font-size: 14px; }
.status { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 630; white-space: nowrap; }
.status.paid { background: #e7f5ec; color: #126747; }
.status.pending, .status.review { background: #fbf0dc; color: #78501a; }
.status.confirming { background: #e9f0fa; color: #2d507d; }
.status.expired { background: #eef1ef; color: #52635b; }
.text-button { border: 0; padding: 5px 0; background: none; color: var(--accent); font-size: 13px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.empty { height: 115px; text-align: center; color: var(--muted); }
.table-footer { display: flex; justify-content: space-between; align-items: center; min-height: 58px; gap: 8px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.table-footer div { display: flex; gap: 6px; }
dialog { width: min(calc(100% - 28px), 450px); max-height: calc(100% - 36px); padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--text); box-shadow: 0 22px 80px #132c2433; }
dialog::backdrop { background: #132c245e; }
dialog[open] { animation: enter .2s ease-out; }
.dialog-content, dialog form { display: grid; gap: 17px; padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head .close { width: 33px; height: 33px; border: 0; border-radius: 6px; background: #f0f4f1; color: var(--muted); font-size: 24px; line-height: 1; }
.dialog-head .close:hover { background: var(--tint); }
label { display: block; font-size: 13px; font-weight: 650; }
label span.muted { margin-left: 5px; font-size: 12px; font-weight: 500; }
label input, label select { display: block; width: 100%; min-height: 42px; padding: 8px 11px; margin-top: 7px; border: 1px solid #d8e3db; border-radius: 7px; color: var(--text); background: white; }
.search input { min-height: 34px; margin-top: 0; }
.field-hint, #link-details { color: var(--muted); font-size: 13px; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; }
.callout { padding: 10px 12px; border-radius: 7px; background: #fbf1df; color: #65471b; font-size: 13px; line-height: 1.55; }
.table-surface > .callout { margin: 0 16px 12px; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 1; max-width: calc(100% - 44px); padding: 12px 16px; border-radius: 8px; background: #15362a; color: white; font-size: 14px; animation: enter .2s ease-out; }
.checkout-nav { display: flex; justify-content: space-between; align-items: center; min-height: 73px; padding: 12px max(18px, calc((100% - 990px) / 2)); border-bottom: 1px solid var(--line); background: #fbfcfb; }
.checkout { width: min(520px, calc(100% - 30px)); margin: 49px auto; }
.checkout-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; animation: enter .24s ease-out; }
.checkout-top, .checkout-content { padding: 25px 27px; }
.checkout-top { border-bottom: 1px solid var(--line); background: #f9fcfa; }
.checkout-top h1 { font-size: 24px; }
.checkout-top p { margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 22px 0 15px; }
.amount strong { font-size: clamp(30px, 8vw, 47px); letter-spacing: -.055em; line-height: 1; font-weight: 760; overflow-wrap: anywhere; }
.amount span { color: var(--muted); font-size: 15px; font-weight: 650; }
.copy-icon { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); background: white; }
.checkout-network { display: inline-flex; padding: 5px 8px; background: var(--tint); color: var(--accent); border-radius: 5px; font-size: 13px; font-weight: 650; }
.checkout-content { display: grid; gap: 16px; }
.checkout-content form { display: grid; gap: 13px; }
.transfer { display: flex; align-items: center; gap: 15px; margin-top: 14px; }
.transfer img { flex: 0 0 auto; border: 1px solid var(--line); padding: 4px; border-radius: 8px; }
.transfer div { min-width: 0; }
.transfer span { font-size: 12px; }
.transfer code { display: block; margin: 5px 0 10px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.state-message { font-size: 14px; line-height: 1.6; color: var(--muted); }
.state-message:empty { display: none; }
.chain-link { font-size: 13px; font-weight: 650; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1060px) {
  .shell { grid-template-columns: 174px minmax(0, 1fr); }
  .workspace main, .topbar { padding-inline: 23px; }
  th, td { padding-inline: 11px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; height: auto; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0; }
  .sidebar-bottom { order: 2; margin: 0 0 0 auto; padding: 0; }
  nav { order: 3; display: flex; gap: 8px; width: 100%; margin-top: 0; }
  .nav-item { min-height: 38px; padding: 7px 9px; }
  .topbar { height: 42px; padding-inline: 14px; }
  .workspace main { padding: 25px 14px 32px; }
  .summary { grid-template-columns: 1fr 1fr; padding: 12px 0; row-gap: 16px; }
  .summary > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .summary > div { padding-inline: 12px; }
  .toolbar { align-items: start; flex-direction: column; }
  .tabs button { padding-inline: 8px; }
  .checkout { margin: 25px auto; }
  .checkout-top, .checkout-content { padding: 20px; }
  .transfer img { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
