:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #20212b;
  background: #f7f7fa;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1120px; margin: 0 auto; padding: 24px 28px 64px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.03em; }
h2 { margin-bottom: 16px; font-size: 19px; }
h3 { margin: 24px 0 10px; font-size: 15px; }
p { color: #777b89; line-height: 1.55; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 11px; cursor: pointer; padding: 10px 16px; font-weight: 650; }
button:disabled { cursor: wait; opacity: .58; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #ffb3c1; outline-offset: 2px;
}
.button-primary { color: #fff; background: #f32d57; box-shadow: 0 4px 12px #f32d5725; }
.button-primary:hover:not(:disabled) { background: #df2049; }
.button-quiet { color: #5a5c6d; background: #f0f0f5; }
.button-quiet:hover:not(:disabled) { background: #e7e7ee; }
.button-text { color: #666b79; background: transparent; padding: 8px 10px; }
.button-text:hover { background: #f1f1f5; }
.button-danger { color: #b52b42; background: #fff0f3; }
.button-danger:hover { background: #ffe1e7; }
.muted, .section-hint { color: #9194a1; font-size: 13px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: #f32d57; font-size: 11px; font-weight: 800; letter-spacing: .13em; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f32d57; color: #fff; font-size: 19px; font-weight: 800; }
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; margin-top: 2px; color: #9294a1; font-size: 11px; }
#message { position: fixed; z-index: 50; right: 20px; bottom: 18px; max-width: min(460px, calc(100vw - 32px)); margin: 0;
  padding: 13px 17px; border: 1px solid #ccebd9; border-radius: 13px; color: #176b42; background: #f1fff7; box-shadow: 0 12px 35px #2222; }
#message:empty { display: none; }
#message[data-tone="error"] { border-color: #ffc5cf; color: #a4263e; background: #fff3f5; }
.card { padding: 22px; margin-bottom: 16px; border: 1px solid #e9e9ef; border-radius: 18px; background: #fff; box-shadow: 0 7px 30px #22208; }
.login-card { width: min(430px, 100%); margin: 54px auto 0; padding: 32px; }
.login-card p { margin-bottom: 26px; }
.login-card button { width: 100%; margin-top: 4px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #5e6270; font-size: 14px; font-weight: 550; }
input, select { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #dcdde5; border-radius: 10px; color: #272936; background: #fff; }
input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: #f32d57; }
output { display: block; margin-top: 12px; overflow-wrap: anywhere; color: #b12d49; font-weight: 700; }

.view-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 28px; border: 1px solid #e9e9ef; border-radius: 13px; background: #fff; }
.view-tabs button { padding: 10px 18px; color: #737787; background: transparent; }
.view-tabs button[aria-current="page"] { color: #ed2e55; background: #fff0f3; }
.page-heading, .section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-heading { margin-bottom: 20px; }
.page-heading p { margin-bottom: 0; }
.count-pill { display: inline-grid; place-items: center; min-width: 35px; height: 35px; padding: 0 9px; vertical-align: middle; border-radius: 11px; color: #f32d57; background: #ffeaf0; font-size: 18px; letter-spacing: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.overview-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 19px; border: 1px solid #eaeaf0; border-radius: 15px; background: #fff; }
.overview-card:first-child { border-color: #ffd6df; background: #fff8fa; }
.overview-card span { color: #858898; font-size: 13px; }
.overview-card strong { font-size: 27px; line-height: 1.2; }
.payment-alert { padding: 11px 14px; border: 1px solid #ffdee5; border-radius: 11px; color: #b02a45; background: #fff5f7; font-size: 13px; }
.section-toolbar { margin-bottom: 14px; }
.section-toolbar p { margin: 0; }
.filter-tabs { display: flex; gap: 6px; }
.filter-tabs button { padding: 8px 14px; color: #777b89; background: transparent; }
.filter-tabs button[aria-current="page"] { color: #e92b52; background: #ffeaf0; }
.request-list { display: grid; gap: 11px; }
.request-card { padding: 19px 21px; border: 1px solid #e8e9ef; border-radius: 17px; background: #fff; box-shadow: 0 4px 18px #20202a08; }
.request-card.is-reported { border-color: #ffcbd6; }
.request-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.request-account { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.request-account strong { font-size: 18px; overflow-wrap: anywhere; }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 7px; color: #7b8090; background: #f1f2f6; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-pill.is-reported { color: #d3294d; background: #fff0f3; }
.status-pill.is-credited { color: #288257; background: #ecfbf2; }
.request-sub { color: #9397a4; font-size: 12px; overflow-wrap: anywhere; }
.request-amount { color: #232432; font-size: 24px; font-weight: 800; white-space: nowrap; }
.request-note { margin: 15px 0 0; padding: 10px 12px; border-radius: 9px; color: #646977; background: #f7f7fa; font-size: 13px; overflow-wrap: anywhere; }
.request-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.request-actions details { position: relative; }
.request-actions summary { list-style: none; padding: 9px 12px; border-radius: 10px; color: #777b89; cursor: pointer; font-size: 13px; }
.request-actions summary::-webkit-details-marker { display: none; }
.request-actions summary:hover { background: #f2f2f6; }
.request-menu { display: grid; gap: 4px; position: absolute; right: 0; top: 100%; z-index: 4; min-width: 148px; padding: 6px; border: 1px solid #e8e9ee; border-radius: 11px; background: #fff; box-shadow: 0 12px 30px #2222; }
.request-menu button { width: 100%; text-align: left; white-space: nowrap; }
.empty-state { padding: 48px 20px; border: 1px dashed #dedfe6; border-radius: 16px; text-align: center; color: #8e92a0; background: #fff; }
.empty-state strong { display: block; margin-bottom: 6px; color: #575c6b; font-size: 17px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 11px; border-bottom: 1px solid #f0f0f3; white-space: nowrap; }
th { color: #9194a1; font-size: 12px; font-weight: 650; }
td { font-size: 13px; }
table button { padding: 7px 10px; color: #5e6271; background: #f1f1f5; }
table button + button { margin-left: 6px; }
.manage-details { padding: 0; overflow: visible; }
.manage-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; cursor: pointer; font-size: 16px; font-weight: 700; }
.manage-details > summary::marker { color: #b1b3be; }
.summary-hint { color: #a0a2ad; font-size: 12px; font-weight: 400; text-align: right; }
.details-body { padding: 0 22px 23px; }
.details-body p { font-size: 13px; }
.details-body form { max-width: 560px; }
.form-actions { display: flex; gap: 9px; flex-wrap: wrap; }

dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 25px; border: 1px solid #eeeef2; border-radius: 18px; color: #272936; background: #fff; box-shadow: 0 24px 70px #13162440; }
dialog::backdrop { background: #20233582; backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 10px; font-size: 21px; }
dialog p { margin-bottom: 6px; font-size: 14px; white-space: pre-line; }
.check-label { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #ffd3dc; border-radius: 10px; color: #555b69; background: #fff7f9; font-weight: 500; }
.check-label input { flex: 0 0 auto; margin-top: 1px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 7px; }
.dialog-error { margin: 0; color: #b42b43; font-size: 12px; }

@media (max-width: 700px) {
  main { padding: 16px 14px 42px; }
  .topbar { margin-bottom: 20px; }
  .view-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 2px; }
  .view-tabs button { padding: 10px 3px; font-size: 13px; }
  .page-heading { align-items: flex-start; }
  .page-heading > button { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
  .page-heading h1 { font-size: 25px; }
  .overview-grid { gap: 7px; }
  .overview-card { padding: 12px; }
  .overview-card strong { font-size: 23px; }
  .section-toolbar { flex-wrap: wrap; }
  .request-card { padding: 16px; }
  .request-amount { font-size: 21px; }
  .request-actions { flex-wrap: wrap; }
  .request-actions > button { flex: 1; }
  .login-card { margin-top: 35px; padding: 24px; }
}
