:root {
  color-scheme: light;
  --page: #f6f7f2;
  --paper: #fff;
  --ink: #18382d;
  --text: #2b3b32;
  --muted: #59665e;
  --line: #d6ddd3;
  --tint: #eef3e7;
  --lime: #d4ee80;
  --focus: #357248;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; text-decoration: none; }
:is(a, button, summary, input, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
::selection { background: var(--lime); color: var(--ink); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.frame { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.brand, .help-link, .main-nav, .main-nav a, .footer-brand {
  display: inline-flex;
  align-items: center;
}
.brand { justify-self: start; gap: 10px; color: var(--ink); }
.brand img { display: block; width: 36px; height: 36px; }
.brand span, .footer-brand { font-size: 23px; font-weight: 740; letter-spacing: -.065em; }
.brand b, .footer-brand b { font-family: Inter, Arial, sans-serif; font-weight: 750; }
.main-nav { gap: 3px; padding: 4px; border: 1px solid #e2e7dd; border-radius: 30px; background: #f5f6f1; white-space: nowrap; }
.main-nav a {
  gap: 7px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}
.main-nav a:hover { color: var(--ink); background: #e9eee2; }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.main-nav .icon { width: 16px; height: 16px; }
.help-link { gap: 7px; justify-self: end; min-height: 44px; padding: 0 0 0 8px; white-space: nowrap; color: var(--muted); font-size: 13px; }
.help-link .icon { width: 17px; height: 17px; }
.help-link:hover { color: var(--ink); }

main.frame { flex: 1; }
.portal {
  --art-width: 49%;
  position: relative;
  display: grid;
  grid-template-columns: var(--art-width) minmax(0, 1fr);
  grid-template-areas: "art form";
  overflow: hidden;
  margin-top: clamp(30px, 3.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 4px 14px #24393207;
}
.portal:not(.expanded)::before, .portal:not(.expanded)::after {
  content: ""; position: absolute; z-index: 1; left: var(--art-width);
  width: 20px; height: 20px; transform: translateX(-50%);
  border: 1px solid var(--line); border-radius: 50%; background: var(--page); pointer-events: none;
}
.portal::before { top: -11px; }
.portal::after { bottom: -11px; }
.workspace {
  grid-area: form;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(35px, 3.8vw, 58px) clamp(34px, 4.5vw, 70px);
}
.workspace:focus, .faq:focus { outline: none; }
.feature-icon, .small-icon {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  align-self: flex-start;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
}
.feature-icon { width: 40px; height: 40px; border-radius: 50%; }
.feature-icon .icon { width: 23px; height: 23px; stroke-width: 1.8; }
h1, h2, h3, p { margin: 0; }
h1 {
  margin-top: 19px;
  color: var(--ink);
  font-size: clamp(39px, 3.75vw, 55px);
  line-height: 1.2;
  font-weight: 740;
  letter-spacing: -.045em;
}
#title:focus { outline: none; }
.intro { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
#action-area { margin-top: 24px; }
form label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 650; }
.input-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 15px;
  border: 1px solid #bdc9be;
  border-radius: 10px;
  background: var(--paper);
}
.input-wrap:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px #35724829; }
.input-wrap input {
  min-width: 0;
  width: 100%;
  height: 51px;
  flex: 1;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #6a756c; }
.paste {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #f1f4ed;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.paste .icon { width: 15px; height: 15px; }
.paste:hover { background: #e4ecd9; }
.primary, .secondary, .result-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}
.primary, .result-link { background: var(--ink); color: #fff; }
.primary:hover:enabled, .result-link:hover { background: #284d3c; }
#entry .primary { width: 100%; margin-top: 14px; }
.primary .icon { width: 18px; height: 18px; transition: transform .15s; }
.primary:hover:enabled .icon { transform: translateX(2px); }
.privacy { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.privacy a { display: inline-block; margin-left: .35em; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.input-wrap:has(input[aria-invalid="true"]), .input-wrap:has(textarea[aria-invalid="true"]) { border-color: #b23f2d; }
.art {
  grid-area: art;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #10291b;
}
.art::before, .art::after {
  flex: 1 1 0;
  background: url("/pass.webp") top / 100% 3500% no-repeat;
  content: "";
}
.art::after { background-position: bottom; }
.art img { display: block; height: auto; width: 100%; }

.faq { margin: 40px 0 52px; scroll-margin-top: 24px; }
.faq-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.small-icon { width: 32px; height: 32px; border-radius: 50%; background: #e4ebda; }
.small-icon .icon { width: 19px; height: 19px; }
h2 { color: var(--ink); font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
details { border: 1px solid var(--line); border-radius: 12px; background: #ffffffb3; }
details[open] { background: var(--paper); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: #346346; }
.toggle { position: relative; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); }
.toggle::before, .toggle::after { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 13px; height: 1.5px; border-radius: 1px; background: currentColor; content: ""; }
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .toggle::after { transform: translate(-50%, -50%); }
details p { max-width: 65ch; padding: 0 18px 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; color: var(--muted); font-size: 12px; }
.footer-brand { gap: .2em; color: var(--ink); font-size: 16px; }

.portal.expanded { display: block; }
.portal.expanded .art { display: none; }
.portal.expanded .workspace { max-width: 940px; margin-inline: auto; }
.portal.expanded h1 { font-size: clamp(32px, 3.2vw, 44px); }
.data-panel { display: grid; gap: 20px; }
.data-panel + .data-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-head, .button-row, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-head { justify-content: space-between; }
.section-head :is(h2,h3), .data-panel > h2 { font-size: 21px; font-weight: 680; }
.balance, .confirm-box, .empty {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f7ef;
  overflow-wrap: anywhere;
}
.balance strong { display: block; color: var(--ink); font-size: clamp(31px, 4vw, 46px); line-height: 1.3; font-variant-numeric: tabular-nums; }
.balance { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 4px; background: var(--ink); color: white; }
.balance strong { grid-row: 2; color: var(--lime); }
.balance small { grid-column: 2; grid-row: 2; align-self: end; color: #deeadc; }
.muted, .empty { color: var(--muted); font-size: 14px; }
.secondary { border-color: #bfc9bb; background: var(--paper); color: var(--ink); }
.secondary:hover:enabled { background: var(--tint); }
.text-button { padding: 7px 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.entry-account { display: grid; gap: 4px; margin-top: 16px; }
.entry-account > .text-button, .transfer-form > .text-button { justify-self: start; }
.account-link { display: inline-flex; margin-top: 8px; }
.notice { margin-top: 10px; padding: 10px 13px; border-radius: 7px; background: #fff1ec; color: #943a26; font-size: 13px; overflow-wrap: anywhere; }
.notice.success { background: #edf5df; color: #365628; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.service-item { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); overflow-wrap: anywhere; }
.order-form { display: grid; gap: 12px; }
.field-label { color: var(--text); font-size: 14px; font-weight: 650; }
.service-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.service-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.service-choice:has(input:checked) { border-color: var(--focus); background: var(--tint); box-shadow: 0 0 0 2px #35724826; }
.service-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--focus); }
.service-choice > span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.service-price { color: var(--ink); font-size: 13px; font-weight: 650; }
.service-choice .muted { font-size: 13px; line-height: 1.55; }
.textarea-wrap { align-items: stretch; padding: 4px 8px 4px 12px; }
.textarea-wrap textarea {
  width: 100%;
  min-height: 138px;
  padding: 10px 0;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--text);
  font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.order-note, .order-estimate { font-size: 13px; line-height: 1.6; }
.order-estimate { color: var(--ink); font-weight: 600; }
.order-preview { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.order-preview li { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.data-panel h3 { color: var(--ink); font-size: 18px; font-weight: 680; }
.progress-line { font-size: 13px; }
.record-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.record { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 15px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.record > * { min-width: 0; }
.status { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; background: #edf2e9; color: #35503b; font-size: 12px; font-weight: 600; }
.status.pending, .status.processing { background: #fff1d2; color: #73520c; }
.status.failed { background: #fbede6; color: #913c27; }
.status.cancelled, .status.unknown { background: #f0f1ed; color: #536056; }
.status.succeeded { background: #e5f3d0; color: #31512d; }
.result-link { min-height: 40px; font-size: 14px; }
.transfer-form, .confirm-box { display: grid; gap: 12px; }
.transfer-form input:not(.input-wrap input), .transfer-form select {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #bdc9be;
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
}
.pagination { justify-content: flex-end; margin-top: 12px; }

@media (max-width: 900px) {
  .frame { width: calc(100% - 48px); }
  .portal { --art-width: 44%; }
  .workspace { padding: 30px; }
  .questions { gap: 10px; }
  summary { padding-inline: 13px; gap: 7px; }
}
@media (max-width: 690px) {
  .frame { width: calc(100% - 36px); }
  .top-inner { grid-template-columns: auto 1fr auto; min-height: 65px; gap: 10px; }
  .brand { gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 19px; }
  .main-nav { justify-self: center; gap: 0; padding: 3px; }
  .main-nav a { min-height: 44px; padding: 0 11px; font-size: 13px; }
  .main-nav .icon { display: none; }
  .help-link { min-height: 44px; min-width: 44px; justify-content: center; padding: 0; }
  .help-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .help-link .icon { width: 20px; height: 20px; }
  .portal { display: flex; flex-direction: column; margin-top: 20px; border-radius: 16px; }
  .portal:not(.expanded)::before, .portal:not(.expanded)::after { display: none; }
  .workspace { padding: 26px; }
  h1 { margin-top: 15px; font-size: 39px; }
  .feature-icon { width: 34px; height: 34px; }
  .feature-icon .icon { width: 22px; height: 22px; }
  #action-area { margin-top: 23px; }
  .art { height: clamp(126px, 34vw, 180px); width: 100%; align-items: center; background: #102b1c; }
  .art::before, .art::after { display: none; }
  .art img { width: auto; max-width: 100%; height: 100%; object-fit: contain; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
  .faq { display: block; margin-block: 36px; }
  .faq-heading { margin-bottom: 14px; }
  .questions { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 15px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; }
  details { border: 0; border-radius: 0; background: transparent; }
  details + details { border-top: 1px solid var(--line); }
  details p { padding-inline: 0; }
  h2 { font-size: 22px; }
  summary { min-height: 53px; padding-inline: 0; }
  .footer-inner { min-height: 60px; }
}
@media (max-width: 370px) {
  .frame { width: calc(100% - 28px); }
  .top-inner { gap: 3px; }
  .brand { gap: 4px; }
  .main-nav { padding: 2px; }
  .main-nav a { padding: 0 6px; }
  .brand span { font-size: 16px; }
  .help-link { min-width: 44px; }
  .workspace { padding: 23px 19px; }
  .intro { font-size: 14px; }
  .button-row > :is(.primary,.secondary) { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .primary .icon { transition: none; }
  .primary:hover:enabled .icon { transform: none; }
}
