:root {
  color-scheme: light;
  --bg: #f3f7ff;
  --bg-2: #eef5ff;
  --card: #ffffff;
  --card-soft: #f8fbff;
  --text: #111827;
  --muted: #667085;
  --muted-2: #8a96a8;
  --line: #e1e8f2;
  --line-strong: #cfd9e6;
  --field-bg: #f6f8fb;
  --field-border: #d7dee8;
  --primary: #111827;
  --primary-hover: #1f2937;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --success: #087443;
  --success-bg: #ecfdf3;
  --warn: #b54708;
  --warn-bg: #fff7e6;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --shadow: 0 16px 46px rgba(15, 23, 42, 0.075);
  --soft-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, var(--bg-2) 0%, #f9fbff 44%, var(--bg) 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

button,
input,
textarea {
  font: inherit;
  min-width: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 22px 0 42px;
}

.query-shell {
  width: min(100% - 32px, 720px);
}

.hero {
  margin-bottom: 13px;
  text-align: center;
}

.compact-hero {
  margin-bottom: 14px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  padding: 0 10px;
  font-size: 11px;
  text-transform: none;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: 0;
}

.compact-hero h1 {
  font-size: clamp(26px, 3vw, 32px);
}

.hero-subtitle,
.helper-text {
  max-width: 620px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(100%, 480px);
  margin: 0 auto 13px;
  border: 1px solid rgba(207, 217, 230, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.tab-button {
  min-height: 36px;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #3f4b5f;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.tab-button:hover {
  background: #f7faff;
  color: var(--text);
}

.tab-button.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.2);
}

.tab-button:active,
.primary-button:active,
.secondary-button:active,
.compact-button:active,
.delete-batch:active {
  transform: translateY(1px);
}

.main-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 26px 30px 28px;
}

.standalone-card {
  max-width: 720px;
  margin: 0 auto;
}

.tab-panel {
  display: grid;
  gap: 15px;
}

#panel-auto {
  gap: 11px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.panel-head.compact {
  margin-bottom: 10px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.25;
}

.panel-head h3 {
  font-size: 18px;
}

.panel-head .section-kicker {
  margin-bottom: 4px;
}

.ghost-link,
.secondary-button,
.compact-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.ghost-link:hover,
.secondary-button:hover,
.compact-button:hover {
  border-color: #aebacc;
  background: #f8fbff;
  text-decoration: none;
}

.notice-box,
.preview-card,
.result-card,
.batch-window {
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: var(--card-soft);
  padding: 14px;
}

.notice-box {
  border-style: solid;
  border-color: #dbe6f3;
  background: #fcfdff;
  padding: 11px 14px;
}

.notice-box h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 760;
}

.notice-box ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 13px;
  line-height: 1.48;
}

.notice-box p {
  margin: 8px 0 0;
  border-top: 1px solid #e4edf8;
  padding-top: 8px;
  color: #5b4acb;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.redeem-flow-list-box {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.redeem-flow-list-box h3 {
  margin: 0;
}

.redeem-flow-list {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  color: #344054;
  font-size: 12.8px;
  line-height: 1.5;
}

.flow-step {
  display: flex;
  min-height: 20px;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  flex-wrap: wrap;
}

.flow-step span {
  font-weight: 500;
}

.flow-step-action {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 680;
  text-decoration: none;
  box-shadow: none;
  vertical-align: 1px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.flow-step-action:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
}

.flow-step-action:active {
  transform: translateY(1px);
}

.guide-reminder {
  margin: 0;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.exchange-form,
.batch-form,
.form-stack {
  display: grid;
  gap: 10px;
}

.field-block {
  display: grid;
  gap: 6px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
}

.field-head label,
.field-label {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.field-head span,
.field-head a {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd7e6;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.78);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

textarea {
  height: 138px;
  min-height: 124px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.56;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 8px 18px rgba(37, 99, 235, 0.08),
    inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

#cardInput {
  border-color: #b9c8dc;
  background: #ffffff;
  font-weight: 680;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.025),
    0 0 0 1px rgba(37, 99, 235, 0.04);
}

#cardInput:focus {
  border-color: var(--accent);
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
  transition:
    background 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.primary-button:hover {
  background: var(--primary-hover);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.2);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.full-button {
  width: 100%;
}


#panel-auto .exchange-form > .status-line,
#panel-auto .exchange-form .field-block > .status-line {
  display: none;
}

#panel-auto .full-button {
  margin-top: 2px;
}

.status-line {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.status-line.center {
  text-align: center;
}

.status-line.success {
  color: var(--success);
  font-weight: 700;
}

.status-line.error {
  color: var(--danger);
  font-weight: 700;
}

.status-line.pending {
  color: var(--info);
  font-weight: 700;
}

.pending-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border: 2px solid rgba(37, 99, 235, 0.22);
  border-top-color: #2563eb;
  border-radius: 999px;
  vertical-align: -2px;
  animation: pending-spin 0.82s linear infinite;
}

@keyframes pending-spin {
  to {
    transform: rotate(360deg);
  }
}

.feedback-card.is-pending h3,
#queryResultTitle {
  display: flex;
  align-items: center;
  min-height: 22px;
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.preview-list.compact {
  grid-template-columns: 1fr;
}

.preview-list div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field-bg);
  padding: 9px 11px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 660;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.preflight-notice {
  display: grid;
  gap: 4px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
  padding: 11px 13px;
  color: #1d4ed8;
  font-size: 12.5px;
}

.preflight-notice[hidden] {
  display: none;
}

.preflight-notice strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.preflight-notice span {
  color: inherit;
  line-height: 1.55;
}

.preflight-notice code {
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
}

.preflight-notice.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.preflight-notice.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.result-card {
  background: #ffffff;
}

.feedback-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  max-width: none;
  margin: 0;
  border-color: #d8e2ee;
  background: #fcfdff;
  padding: 13px 14px;
  text-align: left;
}

.feedback-card[hidden],
.feedback-card.is-hidden {
  display: none;
}

.feedback-card.is-compact {
  gap: 3px;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: none;
}

.feedback-card.is-compact .result-label,
.feedback-card.is-compact .request-id,
.feedback-card.is-compact .feedback-grid,
.feedback-card.is-compact .timeline-list {
  display: none;
}

.feedback-card.is-compact h3 {
  align-self: stretch;
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

.feedback-card.is-compact #resultMessage {
  align-self: stretch;
  width: 100%;
  margin: 0;
  font-size: 12.5px;
  text-align: left;
}

.feedback-card.is-compact.is-error {
  border-color: #fecaca;
  background: var(--danger-bg);
}

.feedback-card.is-compact.is-error h3,
.feedback-card.is-compact.is-error #resultMessage {
  color: #b91c1c;
}

.feedback-card.is-compact.is-pending {
  border-color: #bfdbfe;
  background: var(--info-bg);
}

.feedback-card.is-compact.is-pending h3,
.feedback-card.is-compact.is-pending #resultMessage {
  color: var(--info);
}

.feedback-card.is-compact.is-success {
  border-color: #bbf7d0;
  background: var(--success-bg);
}

.feedback-card.is-compact.is-success h3,
.feedback-card.is-compact.is-success #resultMessage {
  color: #15803d;
}

.feedback-card.is-full {
  gap: 5px;
  border-color: #d8e2ee;
  background: #fcfdff;
  padding: 16px 14px;
}

.feedback-card.is-full h3 {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.feedback-card.is-full #resultMessage {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.feedback-card.is-full.is-success {
  border-color: #b7ebcf;
  background: #f0fdf4;
}

.feedback-card.is-full.is-success h3 {
  color: #065f46;
  font-weight: 800;
}

.feedback-card.is-full.is-success #resultMessage {
  color: #166534;
  font-weight: 400;
}

.feedback-card.is-full.is-error {
  border-color: #fecaca;
  background: #fff5f5;
}

.feedback-card.is-full.is-error h3,
.feedback-card.is-full.is-error #resultMessage {
  color: #b91c1c;
}

.feedback-card.is-full.is-pending {
  border-color: #c7d7ee;
  background: #f3f7fd;
}

.feedback-card.is-full.is-pending h3,
.feedback-card.is-full.is-pending #resultMessage {
  color: #28558f;
}

.result-label,
.request-id {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-card h2,
.result-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.3;
}

.result-card p {
  line-height: 1.58;
}

#resultMessage {
  margin: 0 0 5px;
  color: #344054;
  font-size: 13px;
}

.feedback-account-line {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.feedback-card .secondary-button {
  width: fit-content;
  min-height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  font-size: 12px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.feedback-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 9px;
}

.feedback-grid span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.feedback-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.timeline-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 10px;
  color: #344054;
  font-size: 12.5px;
}

.timeline-time {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.timeline-message {
  color: var(--text);
  font-weight: 680;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.timeline-badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
  white-space: nowrap;
}

.timeline-badge.success {
  background: var(--success-bg);
  color: var(--success);
}

.timeline-badge.pending,
.timeline-badge.needs_confirmation {
  background: #eef4fb;
  color: #28558f;
}

.timeline-badge.manualReview,
.timeline-badge.manual_review,
.timeline-badge.skipped {
  background: var(--warn-bg);
  color: var(--warn);
}

.timeline-badge.failed,
.timeline-badge.request_failed {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.38);
}

.modal-card {
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 78px rgba(15, 23, 42, 0.22);
  padding: 18px;
  text-align: left;
}

.modal-preview {
  margin-top: 12px;
}

.modal-cover-note {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.modal-note {
  margin: 12px 0 0;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #1d4ed8;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9px;
  margin-top: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 10px;
  align-items: center;
}

.batch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.batch-window {
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fcfdff;
  padding: 12px;
}

.batch-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.batch-window h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.batch-window input {
  min-height: 40px;
  border-radius: 13px;
  padding: 0 12px;
}

.batch-window textarea {
  height: 86px;
  min-height: 78px;
  border-radius: 13px;
  padding: 10px 12px;
}

.batch-window .primary-button {
  min-height: 42px;
  font-size: 13px;
  border-radius: 13px;
}

.batch-window .field-head label,
.batch-window .field-head span,
.batch-window .field-head a {
  font-size: 11.5px;
}

.delete-batch {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--muted);
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.delete-batch:hover {
  border-color: #ffd6d2;
  color: var(--danger);
  background: var(--danger-bg);
}

.batch-feedback {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid #e5ecf5;
  border-radius: 13px;
  background: #ffffff;
  padding: 9px;
}

.batch-feedback-row {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  color: #344054;
  font-size: 11.5px;
  line-height: 1.28;
}

.batch-feedback-row span:first-child {
  color: var(--muted);
  font-weight: 700;
}

.batch-feedback-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-weight: 720;
}

.mini-confirm {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  box-shadow: none;
}

.ambient-mark {
  display: none;
}

.shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 24px 0 44px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.flow {
  display: grid;
  gap: 12px;
}

.step,
.result-panel {
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 20px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-index {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
  font-weight: 760;
}

.step-head h2 {
  margin: 0;
  font-size: 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .flow-step-action {
    margin-left: 0;
  }

  .page-shell,
  .shell {
    width: calc(100% - 20px);
    max-width: none;
    padding: 10px 0 28px;
  }

  .hero {
    margin-bottom: 9px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.14;
  }

  .hero-subtitle {
    max-width: 340px;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero .eyebrow {
    min-height: 20px;
    margin-bottom: 4px;
    padding: 0 9px;
    font-size: 10px;
  }

  .tabs {
    width: 100%;
    gap: 3px;
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 9px;
  }

  .tab-button {
    min-height: 34px;
    border-radius: 12px;
    font-size: 12px;
    padding: 0 3px;
    white-space: nowrap;
  }

  .main-card,
  .step,
  .result-panel {
    border-radius: 20px;
    padding: 14px;
  }

  .tab-panel {
    gap: 8px;
  }

  .panel-head {
    display: grid;
    gap: 5px;
  }

  .panel-head h2 {
    font-size: 20px;
  }

  .section-kicker {
    margin-bottom: 3px;
    font-size: 10.5px;
  }

  .field-head,
  .batch-window-head {
    display: block;
  }

  .field-head label,
  .field-label {
    display: block;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .field-head span,
  .field-head a {
    display: inline-block;
    margin-top: 5px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .preview-list {
    grid-template-columns: 1fr;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .timeline-time {
    grid-column: 1 / -1;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .modal-card {
    border-radius: 20px;
    padding: 14px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .batch-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ghost-link,
  .compact-button,
  .secondary-button,
  .primary-button {
    width: 100%;
  }

  textarea {
    min-height: 150px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  .notice-box {
    padding: 8px 10px;
    border-radius: 15px;
  }

  .notice-box h3 {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .notice-box ol {
    gap: 1px;
    font-size: 12px;
    line-height: 1.34;
    padding-left: 17px;
  }

  .notice-box p {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 12px;
  }

  body[data-page="recharge"] #panel-auto > .panel-head,
  body[data-page="recharge"] .notice-box h3,
  body[data-page="recharge"] .notice-box p {
    display: none;
  }

  body[data-page="recharge"] .notice-box {
    padding: 8px 10px;
  }

  body[data-page="recharge"] .notice-box ol {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 11.5px;
    line-height: 1.32;
  }

  body[data-page="recharge"] .exchange-form {
    gap: 7px;
  }

  body[data-page="recharge"] .field-block {
    gap: 5px;
  }

  body[data-page="recharge"] input {
    min-height: 44px;
    padding: 0 14px;
  }

  body[data-page="recharge"] textarea {
    height: 150px;
    min-height: 150px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  body[data-page="recharge"] .primary-button {
    min-height: 52px;
  }

  .batch-window {
    padding: 12px;
  }

  .batch-window textarea {
    height: 150px;
    min-height: 150px;
  }

  .batch-feedback {
    min-height: 94px;
  }

  .topbar {
    display: grid;
    gap: 10px;
  }

  .text-link {
    width: fit-content;
  }

  .security-note {
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
  }
}


.security-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
  color: #334155;
  font-size: 12.5px;
  line-height: 1.5;
}

.security-note strong {
  color: #1d4ed8;
  white-space: nowrap;
}

.account-verification-step {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.stacked-head {
  align-items: flex-start;
}

.client-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 0;
  color: #64748b;
  font-size: 13px;
}

.client-footer-links a {
  color: inherit;
  text-decoration: none;
}

.client-footer-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
