[hidden] { display: none !important; }
#payment-system-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #e9e4f1; border-radius: 22px; padding: clamp(22px, 4vw, 36px); color: #292439; background: #fff; box-shadow: 0 28px 100px #29243944; }
#payment-system-dialog::backdrop { background: #29243988; backdrop-filter: blur(4px); }
#payment-system-dialog h2 { margin: 0 0 12px; }
#payment-system-dialog p { font-size: 15px; }
#payment-system-dialog .system-choices { display: grid; gap: 12px; margin: 22px 0; }
#payment-system-dialog .system-choices button { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; padding: 18px; color: #51348f; background: #f8f7fb; border: 1px solid #e9e4f1; border-radius: 12px; }
#payment-system-dialog .system-choices button:hover { background: #eee7fa; border-color: #7250bc; }
#payment-system-dialog .system-choices strong { font-size: 15px; }
#payment-system-dialog .system-choices small { color: #777084; font-size: 12px; }
#payment-system-dialog .cancel-system { background: transparent; color: #777084; min-height: 40px; font-size: 13px; padding: 8px 0; }
:root {
  color-scheme: light;
  --paper: #f8f7fb;
  --ink: #292439;
  --muted: #777084;
  --purple: #7250bc;
  --deep: #51348f;
  --line: #e9e4f1;
  --lavender: #eee7fa;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a {
  color: var(--deep);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
  border-radius: 10px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--deep);
}
:focus-visible {
  outline: 3px solid #d19827;
  outline-offset: 4px;
}
.full {
  width: 100%;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 4vw;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.brand small {
  display: block;
  letter-spacing: 0.13em;
  font-size: 0.53rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 650;
}
.crown {
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--lavender);
  border-radius: 15px;
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.community {
  font-size: 0.85rem;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #f0edf3;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}
.pill.purple {
  background: var(--lavender);
  color: var(--deep);
}
.pill.good {
  background: #e4f4e9;
  color: #247044;
}
.pill.warn {
  background: #fff0d5;
  color: #805214;
}
.pill.bad {
  background: #fce6e7;
  color: #a02f3d;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 2.5rem 4vw 4rem;
  min-height: 77vh;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 0.5rem 0 1.5rem;
}
.eyebrow {
  font-size: 0.67rem;
  color: var(--purple);
  font-weight: 750;
  letter-spacing: 0.16em;
  margin: 0 0 0.8rem;
}
h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 0.5rem;
}
h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.6rem 0;
}
p {
  margin: 0.5rem 0 1rem;
}
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 780px;
}
.hero-stamp {
  transform: rotate(4deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #e1d5f5;
  border-radius: 28px;
  background: #f0e9fc;
  padding: 1.8rem 2rem;
  min-width: 240px;
  box-shadow: 8px 8px 0 #ece5f7;
}
.hero-stamp > span {
  font-size: 2.8rem;
}
.hero-stamp strong {
  font-size: 1.15rem;
}
.hero-stamp small {
  font-size: 0.7rem;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.3rem 0 2rem;
}
.stats > div {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.stats span {
  font-size: 0.8rem;
  color: var(--muted);
}
.stats strong {
  font-weight: 650;
  font-size: 2.05rem;
  letter-spacing: -0.04em;
  margin: 0.25rem 0;
}
.stats small {
  font-size: 0.7rem;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1.45fr);
  gap: 1.5rem;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 1.7rem;
  min-width: 0;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.request-panel .muted {
  margin-bottom: 1.5rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1rem 0;
  font-weight: 600;
  font-size: 0.86rem;
}
input,
select {
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #cfc5dd;
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  min-height: 50px;
  color: var(--ink);
}
input:focus,
select:focus {
  border-color: var(--purple);
}
.field-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: -0.6rem;
}
.form-footnote {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.85rem 0 0;
}
.request-panel button {
  margin-top: 0.5rem;
}
.form-footnote:not(.receipt-panel .form-footnote) {
  text-align: center;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-heading h2 {
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 0.45rem;
}
.empty {
  background: #fcfbfe;
  border: 1px dashed #dcd3e8;
  border-radius: 12px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
}
.empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: auto;
  background: var(--lavender);
  border-radius: 12px;
  color: var(--deep);
  font-size: 1.35rem;
}
.empty h3 {
  color: var(--ink);
}
.empty p {
  font-size: 0.85rem;
  max-width: 400px;
  margin: 0.5rem auto 0;
}
.how-it-works {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f8f6fc;
  border-radius: 12px;
  font-size: 0.85rem;
}
.how-it-works strong {
  font-weight: 600;
}
.how-it-works ol {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--muted);
}
.how-it-works li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.how-it-works li span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eae1f6;
  color: var(--deep);
  width: 24px;
  height: 24px;
  font-size: 0.65rem;
  font-weight: 750;
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.payment-row:hover .payment-note strong {
  text-decoration: underline;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #efe8fa;
  color: var(--deep);
  font-size: 0.7rem;
  font-weight: 700;
}
.payment-note {
  min-width: 0;
  flex: 1;
}
.payment-note strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.payment-note small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.payment-amount {
  text-align: right;
}
.payment-amount > strong {
  display: block;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.arrow {
  color: var(--muted);
}
.back {
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 1.8rem;
  color: var(--muted);
}
.detail-heading {
  margin-bottom: 2rem;
}
.detail-heading .pill {
  margin-bottom: 1rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.charges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.charge-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 0;
}
.charge-card .muted {
  font-size: 0.75rem;
}
.charge-amount {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0.4rem 0 0.7rem;
}
.charge-amount.unquoted {
  font-size: 1rem;
}
.receipt-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.charge-id {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 1.1rem 0 0;
  overflow-wrap: anywhere;
}
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.record-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  font-size: 0.8rem;
}
.record-line > span {
  color: var(--muted);
}
.record-line strong {
  font-weight: 600;
}
.detail-grid .button {
  margin-top: 1rem;
}
.signal-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--deep);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.record-details {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.record-details > span {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.5rem;
}
.record-details strong {
  font-size: 0.85rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.refresh {
  font-size: 0.85rem;
  font-weight: 600;
}
.recovery-button {
  margin-top: 1rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recovery-button:hover {
  background: none;
}
.notice {
  padding: 1rem;
  border-radius: 10px;
  background: #f4eefc;
  margin: 1rem 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.notice.bad {
  background: #fcecee;
  color: #9b293b;
}
.notice.warn {
  background: #fff2dd;
  color: #805214;
}
.demo-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed #d7cce6;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.demo-note strong {
  color: var(--ink);
  font-weight: 600;
}
.demo-note p {
  margin: 0.4rem 0 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 4vw;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
}
@media (min-width: 1700px) {
  :root {
    font-size: 21px;
  }
}
@media (max-width: 1000px) {
  .hero-stamp {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .payment-row {
    flex-wrap: wrap;
  }
  .payment-note {
    min-width: 120px;
  }
  .arrow {
    display: none;
  }
}
@media (max-width: 760px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .top-meta {
    margin-left: auto;
    gap: 0.6rem;
  }
  .community {
    display: none;
  }
  .stats {
    gap: 0.5rem;
  }
  .stats > div {
    padding: 1rem 0.7rem;
  }
  .stats strong {
    font-size: 1.5rem;
  }
  .stats small {
    display: none;
  }
  .stats span {
    font-size: 0.7rem;
  }
  .panel {
    padding: 1.2rem;
  }
  .hero {
    padding-top: 0;
  }
  .desktop {
    display: none;
  }
  .charges {
    gap: 0.6rem;
  }
  .charge-card {
    padding: 1rem 0.75rem;
  }
  .charge-amount {
    font-size: 1.5rem;
  }
  .record-line {
    flex-wrap: wrap;
  }
  footer {
    flex-direction: column;
  }
  .payment-row {
    flex-wrap: nowrap;
  }
  .avatar {
    display: none;
  }
  .payment-note {
    min-width: 0;
  }
  .payment-amount {
    max-width: 48%;
  }
  .payment-amount .pill {
    white-space: normal;
    text-align: right;
    font-size: 0.62rem;
  }
}
