/* Neutral redemption surface. Shared storefront material; no business overrides. */
@font-face {
  font-family: StoreHarmony;
  src: url('assets/fonts/HarmonyOS_Sans_SC_Medium.subset.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #f7f7f8;
  --ink-soft: #c5c9cf;
  --muted: #a3aab4;
  --blue: #ff7183;
  --blue-dark: #ff8a98;
  --teal: #81dbb6;
  --line: #30383f;
  --page: #080a0c;
  --panel: #11171b;
  --wash: #0c1013;
  --danger: #ffa0ac;
  --danger-wash: #2c141c;
  --shadow: 0 22px 56px rgb(0 0 0 / .28);
  --radius: 24px;
  --font: StoreHarmony, 'PingFang SC', 'Microsoft YaHei UI', sans-serif;
}
html { color-scheme: dark; }
body { background: var(--page); font-family: var(--font); }
body, input, textarea, select { caret-color: #ff7183; }
::selection { background: #8c263a; color: #fff; }
* { scrollbar-color: #59636c #101519; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #101519; }
::-webkit-scrollbar-thumb { background: #59636c; border-radius: 8px; }
:focus-visible { outline: 2px solid #ff8a98; outline-offset: 4px; }
a { color: #ff8a98; text-underline-offset: 4px; }
.site-shell { background: var(--page); }
.ambient { display: none; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.site-header {
  width: min(1120px, calc(100% - 64px));
  margin: 26px auto 0;
  padding: 15px 20px;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101519;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-brand { min-width: 0; gap: 12px; }
.site-brand strong { color: var(--ink); font-size: 18px; letter-spacing: 0; }
.site-brand small { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.brand-mark, .desk-icon {
  width: 44px; height: 44px; border: 1px solid #6c2e3b; border-radius: 13px;
  background: linear-gradient(145deg, #421f29, #21141b); color: #ff8a98; box-shadow: none;
}
.header-spacer { display: none; }
.header-spacer::after { content: none; }
.nav { gap: 4px; padding: 4px; border: 0; border-radius: 13px; background: #080c0f; box-shadow: none; }
.nav button {
  min-height: 44px; padding: 10px 19px; font-size: 13px; color: var(--ink-soft); border-radius: 10px;
  background: transparent; box-shadow: none; transition: background .18s ease, color .18s ease;
}
.nav button.active { background: #391820; color: #ffabb6; box-shadow: inset 0 0 0 1px #883044; }
.nav button:hover { background: #222a30; color: var(--ink); }
.nav button.active:hover { background: #49202b; color: #ffabb6; }
.main { width: min(1120px, calc(100% - 64px)); margin: 30px auto 64px; }
.desk-head, .work-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(140deg, #151c21, #0c1013 70%); box-shadow: none;
}
.desk-head { position: relative; isolation: isolate; }
.desk-head::before {
  content: ''; position: absolute; inset: 0 0 101px auto; width: 49%; height: auto;
  border-radius: 0; pointer-events: none; z-index: -1;
  background: url('redemption-wave.svg?v=20261001r1') right center / 100% 100% no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
}
.desk-head-main { padding: 33px 38px 22px; }
.desk-title-row { margin-top: 0; }
.desk-head h1, .page-intro h1 {
  font-size: clamp(29px, 3vw, 38px); font-weight: 750; letter-spacing: -.025em;
  line-height: 1.3; text-wrap: balance;
}
.desk-subtitle { max-width: 55%; margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
.desk-trust { display: flex; gap: 30px; margin: 0 38px 28px; border: 0; }
.desk-trust > div {
  flex: none; display: grid; grid-template-columns: 24px auto; column-gap: 10px; row-gap: 3px;
  padding: 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none;
}
.trust-icon { width: 24px; height: 24px; border-radius: 0; color: #ff8a98; background: none; }
.trust-icon .ui-icon { width: 22px; height: 22px; }
.desk-trust strong { color: var(--ink); font-size: 12px; }
.desk-trust small { color: var(--muted); font-size: 11px; }
.desk-guide { display: none; }
.steps { margin: 0; padding: 21px 38px; border-top: 1px solid var(--line); background: #0c1115; }
.step { gap: 8px; color: var(--muted); }
.step span { width: 32px; height: 32px; border: 1px solid #515e69; color: #bac2cc; background: #131a20; box-shadow: none; font-variant-numeric: tabular-nums; }
.step:not(:last-child)::before { top: 16px; background: #364049; }
.step b { font-size: 12px; }
.step.active { color: var(--ink); }
.step.active span { color: #fff; border-color: #f33c57; background: #ba2039; box-shadow: none; }
.step.done { color: #81dbb6; }
.step.done span { color: #81dbb6; border-color: #376c58; background: #152c24; box-shadow: none; }
.work-card { margin-top: 18px; padding: 32px 38px; }
.panel-heading { gap: 18px; padding-bottom: 22px; border-color: var(--line); align-items: center; }
.panel-heading h2, .work-card h2 { margin: 0 0 7px; color: var(--ink); font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.panel-heading p, .page-intro p { color: var(--ink-soft); font-size: 13px; line-height: 1.8; max-width: 70ch; }
.section-symbol { width: 46px; height: 46px; border: 1px solid #37434d; border-radius: 13px; background: #192027; color: #bdc7d1; box-shadow: none; }
.field { margin-top: 24px; }
.field label { color: #e2e6eb; font-size: 14px; margin-bottom: 11px; }
.input-row { gap: 12px; }
.input-wrap input, .field textarea, .results-actions select {
  border: 1px solid #46525f; border-radius: 12px; background: #090e12; color: var(--ink);
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .14); transition: border-color .18s ease, background .18s ease;
}
.input-wrap input { height: 56px; padding: 0 18px; font-size: 16px; }
.field textarea { min-height: 168px; padding: 16px 18px; font-size: 15px; line-height: 1.8; }
.input-wrap input:focus, .field textarea:focus, .results-actions select:focus { border-color: #ff7183; background: #0b1116; box-shadow: inset 0 0 0 1px #ff7183; }
.input-wrap input::placeholder, .field textarea::placeholder { color: #a3aab4; opacity: 1; }
.field-note { max-width: 75ch; margin-top: 11px; font-size: 12px; color: var(--muted); line-height: 1.85; }
.btn {
  min-height: 48px; padding: 12px 20px; border-radius: 12px; font-size: 14px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.input-row .btn { min-height: 56px; }
.btn-primary {
  border-color: #ed4059; color: #fff; background: linear-gradient(145deg, #c92a44, #a51c35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 20px rgb(0 0 0 / .18);
}
.btn-primary:hover:not(:disabled) { background: #ca2944; border-color: #ff7183; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 8px 20px rgb(0 0 0 / .18); }
.btn-secondary { border-color: #46525f; background: #1b242c; color: #e2e6eb; box-shadow: none; }
.btn-secondary:hover:not(:disabled) { background: #293540; border-color: #788694; }
.btn-quiet { color: var(--ink-soft); background: transparent; box-shadow: none; }
.btn-quiet:hover:not(:disabled) { background: #222b33; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .58; box-shadow: none; }
#btn-back-session { margin-top: 12px; }
.inline-link { min-height: 44px; padding: 8px 4px; color: #ff8a98; }
.soft-note { padding: 17px 0; margin-top: 20px; border: 0; border-radius: 0; background: none; color: #bbc3cd; gap: 11px; font-size: 12px; line-height: 1.85; max-width: 76ch; }
.soft-note > span { color: #a3aab4; margin-top: 2px; }
.soft-note .ui-icon { width: 19px; height: 19px; }
.panel-footer { border-color: var(--line); color: var(--muted); margin-top: 17px; padding-top: 14px; font-size: 13px; }
.alert { border-radius: 12px; font-size: 13px; line-height: 1.8; }
.alert-error { background: var(--danger-wash); border-color: #813246; color: var(--danger); }
.alert-info { background: #17242f; border-color: #355065; color: #c0d8e9; }
.alert-warn { background: #2b2416; border-color: #705c36; color: #efcf8f; }
.selection-note { padding: 16px 18px; border: 1px solid #47535f; border-radius: 12px; background: #192127; color: var(--ink-soft); }
.selection-note strong { color: var(--ink); }
.tag { background: #33202b; color: #ffabb6; padding: 4px 10px; overflow-wrap: anywhere; }
.check-progress { background: #16212a; border-color: #46535e; border-radius: 12px; }
.check-progress-head { color: var(--ink); }
.check-progress-steps { font-size: 12px; color: var(--muted); }
.check-progress-steps li.active { color: #ffabb6; }
.check-progress-steps li.done { color: #81dbb6; }
.spinner { border-color: #7b4551; border-top-color: #ffe7ec; }
.summary-grid { background: #0b1014; border-radius: 12px; border-color: #46525f; }
.summary-row { padding: 17px 20px; gap: 16px; }
.summary-row + div { border-color: var(--line); }
.summary-row .k { color: var(--muted); }
.summary-row strong { color: var(--ink); overflow-wrap: anywhere; }
.check-row, .modal-check { min-height: 44px; font-size: 13px; color: var(--ink-soft); align-items: center; }
.check-row input, .modal-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #c92a44; }
.status-pill { padding: 6px 12px; background: #162d42; color: #a8d5fa; font-size: 12px; }
.status-pill.processing { background: #162d42; color: #a8d5fa; }
.status-pill.success { background: #173429; color: #91e0bd; }
.status-pill.fail { background: #3b1b26; color: #ffabb6; }
.status-pill.warning { background: #352b18; color: #f3d194; }
.status-pill.neutral { background: #28323b; color: #c6ced8; }
.result-message { font-size: 14px; color: var(--ink-soft); line-height: 1.85; }
.result-head { flex-wrap: wrap; gap: 10px; }
.muted-small { color: var(--muted); font-size: 12px; }
.timeline { border-color: #46535f; }
.timeline li { color: var(--ink-soft); padding-bottom: 18px; font-size: 13px; }
.timeline li::before { background: #b0bdca; border-color: #11171b; }
.timeline li strong { color: var(--ink); font-size: 13px; }
.timeline time, .timeline small { color: var(--muted); font-size: 12px; }
.page-intro { padding: 8px 2px 17px; }
.page-intro h1 { margin: 0 0 11px; }
.query-card, .batch-card { margin-top: 12px; }
.query-result { background: #0b1014; border-color: #3b4752; border-radius: 12px; padding: 24px; }
.query-account { margin: 20px 0; padding: 16px 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; }
.query-account dt { color: var(--muted); font-size: 13px; }
.query-account dd { color: var(--ink); font-size: 15px; }
.count-badge { color: #ffabb6; background: #33202b; font-variant-numeric: tabular-nums; }
.field textarea.batch-input { min-height: 205px; font-size: 14px; }
.batch-progress { background: #121b23; border-color: #3f4d59; border-radius: 12px; }
.progress-track { background: #35414c; }
.progress-track span { background: #e54860; transition: none; }
.batch-results { padding: 0; }
.results-toolbar { padding: 28px 30px; gap: 20px; }
.results-toolbar p { color: var(--muted); font-size: 13px; }
.results-toolbar .copy-status { color: #91e0bd; }
.results-actions { flex-wrap: wrap; gap: 10px; }
.results-actions label { color: var(--ink-soft); }
.results-actions select { min-height: 48px; width: auto; padding: 9px 14px; }
.results-actions .btn { min-height: 48px; }
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.table-wrap:focus-visible { outline: 2px solid #ff8a98; outline-offset: -3px; }
.results-table { min-width: 800px; font-variant-numeric: tabular-nums; }
.results-table th { color: var(--ink-soft); background: #1b242c; border-color: var(--line); font-size: 12px; }
.results-table td { color: var(--ink-soft); border-color: var(--line); font-size: 12px; padding: 18px; }
.results-table .account-email { color: var(--ink); }
.results-table tbody tr:hover, .results-table tr:hover td { background: #1b242c; }
.results-table .empty-row { padding: 28px; color: var(--muted); }
.help-grid { gap: 18px; }
.help-grid .work-card { margin-top: 12px; }
.help-list { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.help-list li { margin-bottom: 13px; padding-left: 4px; }
.help-list li::marker { color: #ff8a98; font-variant-numeric: tabular-nums; }
.faq-list > div { border-color: var(--line); }
.faq-list strong { color: var(--ink); font-size: 14px; }
.faq-list p { color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.site-footer { width: min(1120px, calc(100% - 64px)); color: var(--muted); font-size: 12px; border-color: var(--line); margin-bottom: 26px; }
.modal-mask { background: rgb(3 5 7 / .8); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 20px; }
.modal-card { max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #4e5a66; border-radius: 24px; background: #141c22; padding: 32px; color: var(--ink); box-shadow: 0 30px 85px rgb(0 0 0 / .5); }
.modal-brand { padding-right: 24px; gap: 14px; }
.modal-brand h2 { letter-spacing: -.02em; font-size: 23px; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--ink-soft); }
.modal-close { background: #24303a; color: #d9e0e7; top: 12px; right: 12px; border-radius: 12px; }
.modal-close:hover { background: #384650; color: #fff; }
.modal-steps { color: var(--ink-soft); line-height: 1.8; }
.modal-steps li::marker { color: #ff8a98; }
.modal-steps code { background: #080e13; color: #ffabb6; border-color: #40505e; overflow-wrap: anywhere; }
.panel-step.active { animation: form-arrive .22s cubic-bezier(.16,1,.3,1); }
@keyframes form-arrive { from { transform: translateY(7px); } to { transform: translateY(0); } }
@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr; gap: 14px; }
  .nav { justify-self: stretch; }
  .nav button { flex: 1; }
  .desk-head::before { width: 50%; opacity: .8; }
  .desk-trust { gap: 22px; }
}
@media (max-width: 620px) {
  .site-header, .main, .site-footer { width: calc(100% - 24px); }
  .site-header { margin-top: 12px; padding: 15px 14px 12px; border-radius: 20px; }
  .site-brand strong { font-size: 17px; }
  .nav { gap: 2px; padding: 3px; }
  .nav button { min-width: 0; padding: 10px 3px; min-height: 44px; font-size: 12px; letter-spacing: 0; }
  .main { margin: 18px auto 38px; }
  .desk-head, .work-card { border-radius: 20px; }
  .desk-head-main { padding: 26px 22px 22px; }
  .desk-head h1, .page-intro h1 { font-size: 29px; }
  .desk-head::before { width: 100%; inset: 0 0 100px; opacity: .45; mask-image: linear-gradient(to right, transparent, #000); -webkit-mask-image: linear-gradient(to right, transparent, #000); }
  .desk-subtitle { max-width: 100%; font-size: 13px; line-height: 1.85; }
  .desk-trust { display: none; }
  .steps { padding: 18px 13px; }
  .step b { font-size: 11px; }
  .step span { width: 30px; height: 30px; }
  .step:not(:last-child)::before { top: 15px; }
  .work-card { margin-top: 14px; padding: 25px 22px; }
  .panel-heading { gap: 12px; padding-bottom: 19px; align-items: flex-start; }
  .panel-heading h2, .work-card h2 { font-size: 21px; }
  .panel-heading p, .page-intro p { font-size: 13px; }
  .section-symbol { width: 38px; height: 38px; border-radius: 11px; }
  .section-symbol .ui-icon { width: 21px; height: 21px; }
  .field { margin-top: 23px; }
  .input-wrap input, .field textarea, .field textarea.batch-input, .results-actions select { font-size: 16px; }
  .input-row { gap: 12px; }
  .input-row .btn { min-height: 52px; }
  .btn { min-height: 48px; padding: 12px 16px; }
  .field-note { font-size: 12px; }
  .soft-note { margin-top: 14px; padding: 11px 0; }
  .summary-row { grid-template-columns: 84px minmax(0,1fr); padding: 16px 14px; gap: 10px; }
  .result-head { align-items: flex-start; }
  .query-result { padding: 18px; }
  .query-account { grid-template-columns: minmax(0,1fr); padding: 14px 0; }
  .page-intro { padding: 7px 4px 16px; }
  .batch-results { padding: 0; }
  .results-toolbar { padding: 25px 22px; }
  .results-actions { width: 100%; }
  .results-actions select { flex: 1; }
  .results-actions .btn { flex: 1 0 auto; }
  .help-grid { gap: 2px; }
  .modal-mask { padding: 12px; }
  .modal-card { max-height: calc(100dvh - 24px); padding: 52px 23px 24px; border-radius: 20px; }
  .modal-brand { padding-right: 0; align-items: flex-start; }
  .modal-brand h2 { font-size: 21px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { flex: 1 0 auto; }
  .site-footer { gap: 10px; }
}
@media (max-width: 370px) {
  .nav button { font-size: 11px; }
  .desk-head-main, .work-card { padding-left: 18px; padding-right: 18px; }
  .desk-head h1, .page-intro h1 { font-size: 27px; }
  .step b { font-size: 11px; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-step.active { animation: none; }
  .btn:hover:not(:disabled), .btn:active:not(:disabled) { transform: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #101519; }
  .desk-head, .work-card { background: #11171b; }
  .modal-mask { background: #080a0c; }
}
