:root {
  --bg: #070b16;
  --bg-elev: #10182b;
  --line: rgba(180, 210, 255, 0.16);
  --text: #e8eefc;
  --muted: #93a0c0;
  --gold: #e7c56a;
  --gold-2: #f4e2a8;
  --cyan: #6ee7ff;
  --danger: #ff6b8a;
  --ok: #5ee9a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #1a2a58 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 20%, #3a2a12 0%, transparent 50%),
    var(--bg);
}

.bg-grid,
.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}

.bg-glow {
  background: radial-gradient(circle at 70% 30%, rgba(231, 197, 106, 0.12), transparent 28%);
}

.topbar,
.hero,
.packs,
.records,
.faq,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 7vw;
}

.topbar .nav {
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(231, 197, 106, 0.25);
}

.brand-kicker {
  margin: 0;
  letter-spacing: 0.28em;
  font-size: 10px;
  color: var(--gold);
  font-family: Orbitron, sans-serif;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a,
.linkish {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.nav a:hover,
.linkish {
  color: var(--gold-2);
}

.linkish {
  display: inline;
}

.ghost-btn,
.primary-btn,
.text-btn {
  font-family: inherit;
  cursor: pointer;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(16, 24, 43, 0.7);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
}

.ghost-btn.is-ok {
  color: var(--ok);
  border-color: rgba(94, 233, 168, 0.35);
}

.ghost-btn.is-bad {
  color: var(--danger);
  border-color: rgba(255, 107, 138, 0.4);
}

.hero {
  display: grid;
  justify-content: center;
  padding: 24px 7vw 72px;
}

.hero-card {
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(24, 34, 58, 0.92), rgba(10, 14, 26, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  text-align: center;
  font-size: 13px;
  padding: 8px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.step.is-active {
  color: #081018;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-color: transparent;
  font-weight: 700;
}

form {
  display: grid;
  gap: 14px;
}

form label,
.lookup-card label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #c9d4ef;
}

.field-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.field-title em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

input,
select {
  height: 48px;
}

textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.15);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--danger);
}

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

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 107, 138, 0.12);
  color: var(--danger);
  font-size: 13px;
}

.plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(94, 233, 168, 0.3);
  background: rgba(94, 233, 168, 0.08);
  color: var(--ok);
  margin-bottom: 8px;
}

.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary,
.modal-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.summary div,
.modal-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.summary dd,
.modal-meta dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.lookup-card {
  margin: 0 7vw 56px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 24, 43, 0.7);
  display: grid;
  gap: 14px;
}

.lookup-summary {
  color: var(--muted);
  font-size: 13px;
}

.lookup-list {
  display: grid;
  gap: 10px;
}

.lookup-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lookup-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.lookup-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.lookup-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 2px 0 0;
}

.lookup-meta dt {
  color: var(--muted);
  font-size: 11px;
}

.lookup-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.lookup-timeline {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.lookup-timeline summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
}

.lookup-timeline ol {
  list-style: none;
  margin: 12px 0 0 5px;
  padding: 0;
  border-left: 1px solid var(--line);
}

.lookup-timeline li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 14px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.lookup-timeline li:last-child {
  padding-bottom: 0;
}

.lookup-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.lookup-timeline li.is-success::before { background: var(--ok); }
.lookup-timeline li.is-error::before { background: var(--danger); }
.lookup-timeline li.is-latest::before { box-shadow: 0 0 0 4px rgba(213, 182, 117, 0.14); }
.lookup-timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.lookup-timeline span { color: var(--text); overflow-wrap: anywhere; }

.cdk-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.text-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cyan);
  border-radius: 12px;
  padding: 0 14px;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.8);
  text-align: center;
  cursor: pointer;
}

.dropzone strong {
  color: var(--text);
  font-size: 14px;
}

.dropzone span {
  color: var(--muted);
  font-size: 12px;
}

.dropzone.is-dragover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.15);
}

.dropzone .text-btn {
  height: 36px;
}

.file-name {
  margin: 0;
  color: var(--ok);
  font-size: 12px;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.agree label {
  display: inline;
  color: var(--muted);
}

.agree input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
}

.primary-btn {
  height: 50px;
  border: 0;
  border-radius: 14px;
  color: #1a1408;
  font-weight: 800;
  background: linear-gradient(90deg, #c9a24a, #f3e0a2 45%, #c9a24a);
  box-shadow: 0 10px 30px rgba(231, 197, 106, 0.25);
}

.hero-card .primary-btn,
.hero-card .ghost-btn {
  width: 100%;
}

.hero-card .btn-row .primary-btn,
.hero-card .btn-row .ghost-btn {
  width: auto;
  min-width: 120px;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-hint {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  padding: 0 7vw;
}

.section-head h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.section-head p {
  margin: 0 0 22px;
  color: var(--muted);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 7vw 56px;
}

.pack {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(16, 24, 43, 0.7);
}

.pack.featured {
  border-color: rgba(231, 197, 106, 0.55);
  background: linear-gradient(180deg, rgba(70, 52, 18, 0.45), rgba(16, 24, 43, 0.85));
}

.pack-tag {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.pack h4 {
  margin: 0 0 12px;
}

.pack ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.table-wrap {
  margin: 0 7vw 56px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 500;
  background: rgba(16, 24, 43, 0.8);
}

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.status.ok {
  color: #062016;
  background: var(--ok);
}

.status.fail {
  color: #2a0610;
  background: var(--danger);
}

.status.wait {
  color: #081018;
  background: var(--cyan);
}

.faq {
  padding: 0 7vw 80px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: rgba(16, 24, 43, 0.55);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  color: var(--muted);
  line-height: 1.7;
}

footer {
  padding: 0 7vw 40px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #121c33;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #10182b;
  color: var(--text);
  padding: 0;
  width: min(420px, 92vw);
}

.modal::backdrop {
  background: rgba(4, 8, 16, 0.72);
}

.modal form {
  padding: 28px;
}

.modal-kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 12px;
}

.modal h3 {
  margin: 8px 0 10px;
}

.modal-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.modal-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.rules {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 18px;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

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

  .hero,
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-head,
  .pack-grid,
  .table-wrap,
  .lookup-card,
  .faq,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Focused first release: consistent containers, visible navigation, mobile records. */
[hidden] { display: none !important; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.topbar, main, footer { max-width: 1160px; margin-inline: auto; }
.topbar { padding: 24px 32px; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 44px 32px 64px; }
.hero-card { width: 100%; min-width: 0; }
.hero-intro { min-width: 0; }
.eyebrow { color: var(--gold); letter-spacing: .2em; font-size: 11px; font-weight: 700; }
.hero-intro h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.35; margin: 18px 0; letter-spacing: -.035em; }
.intro-copy { color: var(--muted); line-height: 1.9; font-size: 15px; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.intro-tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #c9d4ef; font-size: 12px; }
.form-title { font-size: 20px; margin: 0 0 20px; }
.panel { display: grid; gap: 14px; }
.field-note { font-size: 13px; line-height: 1.75; }
.section-head { padding: 0 32px; }
.section-head h3 { font-size: 24px; }
.section-head p { font-size: 14px; line-height: 1.8; }
.lookup-card, .table-wrap { margin: 0 32px 48px; }
.lookup-card .primary-btn { min-width: 120px; padding-inline: 24px; }
.pack-grid { padding: 0 32px 48px; }
.faq { padding: 0 32px 48px; }
.faq .section-head { padding: 0; }
footer { padding: 0 32px 32px; }
.primary-btn { padding-inline: 18px; }
.clear-action { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
.privacy-note { border: 1px solid var(--line); border-radius: 12px; background: #0b1220; padding: 14px; font-size: 13px; }
.privacy-note strong { color: var(--gold-2); }
.privacy-note p { line-height: 1.8; color: var(--muted); margin: 10px 0; }
form .consent-row { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.consent-row input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--gold); }
.record-action { border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--cyan); padding: 9px 12px; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
td { overflow-wrap: anywhere; }
.lookup-item code, .lookup-item p { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
section[id], #redeem { scroll-margin-top: 100px; }
.modal { max-height: 90dvh; overflow-y: auto; }
.modal-actions { flex-direction: row; }
@media (max-width: 960px) {
  .topbar { position: sticky; top: 0; z-index: 5; flex-wrap: wrap; gap: 16px; padding: 16px 20px 10px; background: #070b16; border-bottom: 1px solid var(--line); }
  .topbar .nav { display: flex; width: 100%; justify-content: space-between; gap: 4px; margin: 0; }
  .nav a { font-size: 13px; text-align: center; padding: 10px 5px; border-radius: 8px; }
  .nav a:hover, .nav a:focus-visible { background: #172037; color: var(--gold-2); }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px 40px; }
  .hero-intro h2 { font-size: 30px; margin-block: 10px; }
  .hero-intro h2 br { display: none; }
  .intro-copy { font-size: 14px; margin-bottom: 0; }
  .intro-tags { margin: 14px 0; }
  .hero-intro > .linkish { display: none; }
  .hero-card { max-width: 600px; justify-self: center; padding: 22px; }
  .section-head { padding: 0 20px; }
  .lookup-card, .table-wrap { margin: 0 20px 36px; padding: 18px; }
  .pack-grid { padding: 0 20px 36px; }
  .faq { padding: 0 20px 36px; }
  .faq .section-head { padding: 0; }
  footer { padding: 0 20px 28px; }
  .field-title { flex-wrap: wrap; }
  .btn-row { flex-direction: row; }
  .hero-card .btn-row > button { flex: 1; min-width: 0; }
  .lookup-meta { grid-template-columns: 1fr; }
  .table-wrap { overflow: visible; border: none; padding: 0; }
  table { min-width: 0; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: rgba(16,24,43,.7); }
  td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border: 0; padding: 0; text-align: right; font-size: 13px; }
  td::before { content: attr(data-label); color: var(--muted); flex: none; }
  .empty-row td { display: block; text-align: center; line-height: 1.8; color: var(--muted); }
  .empty-row td::before { display: none; }
  section[id], #redeem { scroll-margin-top: 150px; }
  textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.dropzone .text-btn { display: inline-flex; align-items: center; }

/* Visit-scoped record workspace. */
.nav a[aria-current="page"] { color: var(--gold-2); background: #2a261e; border: 1px solid #6b5831; }
.nav a { border: 1px solid transparent; border-radius: 9px; padding: 10px 13px; font-size: 14px; }
.topbar { padding-top: 22px; padding-bottom: 22px; }
.hero { min-height: 510px; padding-top: 34px; padding-bottom: 56px; }
.hero-intro h2 { font-size: clamp(34px, 4vw, 48px); }
.records[data-view] { min-height: 440px; padding-top: 28px; }
.records-heading { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.records-heading h3 { margin: 0; }
.visit-badge { color: var(--gold-2); font-size: 12px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; }
.pack-grid { gap: 14px; padding-bottom: 36px; }
.pack { padding: 20px; background: #101828; }
.pack.featured { border-color: var(--line); background: #101828; }
.pack ul { font-size: 13px; }
.packs .section-head h3, .faq .section-head h3 { font-size: 20px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
footer p { margin: 0; }
footer p span { display: block; font-size: 11px; color: #7786a4; margin-top: 7px; }
.admin-entry { color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
@media (max-width: 960px) {
 .nav a { padding: 9px 8px; font-size: 13px; }
 .topbar { padding: 16px 20px 10px; }
 .hero { min-height: 0; padding: 22px 20px 36px; gap: 20px; }
 .hero-intro h2 { font-size: 30px; }
 .hero-intro h2 br { display: initial; }
 .intro-copy { font-size: 13px; }
 .hero-card { padding: 22px; }
 .records[data-view] { min-height: 350px; padding-top: 22px; }
 .pack-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
 .pack { padding: 14px 10px; border-radius: 12px; }
 .pack h4 { font-size: 13px; margin-bottom: 0; line-height: 1.7; }
 .pack ul { display: none; }
 .pack-tag { font-size: 10px; }
 footer { margin-inline: 20px; padding-inline: 0; align-items: flex-start; }
}

/* Full account addresses and visit-scoped recharge timeline. */
#resultModal { width: min(620px, 94vw); }
.modal-meta dd { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.order-timeline { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 22px; }
.timeline-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.timeline-top h4 { margin: 0; font-size: 15px; }
#timelineSummary { color: var(--gold-2); font-size: 12px; }
.timeline-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0; }
#orderTimeline { list-style: none; padding: 0 0 0 8px; margin: 22px 0 8px; }
.timeline-item { position: relative; padding: 0 0 24px 22px; border-left: 1px solid var(--line); }
.timeline-item:last-child { border-color: transparent; padding-bottom: 4px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline-item.is-latest::before { box-shadow: 0 0 0 4px #d5b67522; }
.timeline-item.is-success::before { background: #70dfad; }
.timeline-item.is-error::before { background: #ff9ba7; }
.timeline-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.timeline-heading strong { font-size: 13px; font-weight: 600; }
.timeline-heading time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-item p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  #resultModal form { padding: 22px 18px; }
  .timeline-heading { flex-direction: column; }
}

/* Batch workflow: compact input, explicit plan groups, and a persistent progress workspace. */
#cdk { min-height: 48px; height: 48px; resize: none; padding-right: 62px; }
#batchCdk { min-height: 130px; resize: vertical; padding-right: 62px; }
.cdk-row { position: relative; }
#pasteCdk { position: absolute; right: 10px; top: 10px; }
.field-title small { color: var(--muted); font-size: 11px; font-weight: 400; }
.batch-plan-picker { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.batch-plan-picker legend { font-weight: 600; font-size: 16px; }
#batchPlanChoices { display: grid; gap: 10px; }
#batchPlanChoices button { display: flex; justify-content: space-between; gap: 16px; width: 100%; }
#batchPlanChoices button[aria-pressed="true"] { border-color: var(--gold); background: #30291c; color: var(--gold-2); }
.batch-workspace { position: relative; z-index: 1; margin: 0 7vw 40px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #101828; scroll-margin-top: 30px; }
.batch-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.batch-top h3 { font-size: 22px; margin: 0; }
.batch-top .eyebrow { margin: 0 0 8px; font-size: 10px; }
.batch-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 20px 0 14px; }
.batch-stats div { padding: 14px 8px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #0b1323; }
.batch-stats strong { display: block; font-size: 24px; font-weight: 500; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.batch-stats span { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
#batchProgress { width: 100%; height: 6px; border: 0; border-radius: 9px; accent-color: var(--gold); background: #263044; }
#batchProgress::-webkit-progress-bar { background: #263044; border-radius: 9px; }
#batchProgress::-webkit-progress-value { background: var(--gold); border-radius: 9px; }
.batch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.batch-actions button { width: auto; min-height: 44px; font-size: 13px; }
.batch-list { list-style: none; padding: 0; margin: 22px 0 0; max-height: 520px; overflow-y: auto; }
.batch-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 4px; border-top: 1px solid var(--line); }
.batch-card-label, .batch-card-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.batch-card-label > span:last-child { color: var(--muted); font-size: 12px; }
.batch-card-label code { font-size: 13px; overflow-wrap: anywhere; }
.batch-index { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #273147; color: var(--muted); font-size: 11px; }
.batch-list li > p { width: 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#batchNotice { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .batch-workspace { margin: 0 20px 32px; padding: 18px; scroll-margin-top: 145px; }
  .batch-top { align-items: flex-start; }
  .batch-top h3 { font-size: 19px; }
  .batch-top .visit-badge { font-size: 10px; padding: 5px 8px; }
  .batch-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .batch-stats strong { font-size: 21px; }
  .batch-actions button { flex: 1 1 100%; }
  .batch-list { max-height: 600px; }
  .batch-card-state { width: 100%; }
}

.batch-actions button:disabled, #batchList button:disabled { opacity: .45; cursor: not-allowed; }

/* Live multi-order monitor. */
.batch-submit-summary { color: var(--gold-2); font-size: 13px; line-height: 1.8; }
.batch-list-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.batch-filters, .batch-list-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.batch-filters button { color: var(--muted); background: #0b1323; border: 1px solid var(--line); padding: 10px 12px; border-radius: 9px; font: inherit; font-size: 12px; cursor: pointer; }
.batch-filters button[aria-pressed="true"] { color: var(--gold-2); border-color: var(--gold); background: #30291c; }
.batch-list-tools > span { color: var(--muted); font-size: 12px; }
.batch-item-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 8px 20px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.batch-empty { color: var(--muted); justify-content: center !important; padding: 30px !important; }
@media(max-width: 600px) {
 .batch-item-meta { grid-template-columns: minmax(0,1fr); }
 .batch-list-tools { width: 100%; }
 .batch-filters button { min-height: 42px; }
}

.exchange-modes{display:flex;gap:8px;margin:16px 0 22px}.exchange-modes button{flex:1;border:1px solid var(--line,#354257);border-radius:9px;background:transparent;color:inherit;padding:11px;cursor:pointer}.exchange-modes button[aria-pressed=true]{background:#3b3425;color:#edd294;border-color:#c5a565}.assignment-preview{margin:16px 0;padding:14px;border:1px solid #3a4659;border-radius:10px;max-height:320px;overflow:auto}.assignment-preview h3{font-size:14px}.assignment-preview ol{list-style:none;padding:0}.assignment-preview li{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid #394456;overflow-wrap:anywhere;font-size:12px}.assignment-preview strong{font-weight:500}.assignment-preview span,.assignment-preview p{font-size:12px;color:#a9b3c4}

.network-insight { position: relative; z-index: 1; width: min(1060px, calc(100% - 14vw)); margin: -18px auto 48px; padding: 20px 22px 18px; border: 1px solid rgba(110, 231, 255, .14); border-radius: 18px; background: linear-gradient(110deg, rgba(17, 28, 49, .82), rgba(20, 18, 38, .76)); box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.insight-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.insight-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.insight-heading .eyebrow { margin-bottom: 5px; }
.insight-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; }
.insight-grid article { min-height: 88px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7, 12, 25, .45); }
.insight-grid span, .insight-grid strong, .insight-grid small { display: block; }
.insight-grid span { color: var(--muted); font-size: 12px; }
.insight-grid strong { margin-top: 8px; color: var(--gold-2); font-size: 18px; }
.insight-grid small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.insight-score strong { color: var(--cyan); }
.insight-item strong.is-ok { color: var(--ok); }
.insight-item strong.is-warn { color: var(--gold-2); }
.insight-item strong.is-danger { color: var(--danger); }
.network-insight > .field-note { margin-top: 12px; }
.insight-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.insight-footer > .field-note { flex: 1; }
.insight-link { flex: 0 0 auto; color: var(--cyan); font-size: 12px; text-decoration: none; white-space: nowrap; }
.insight-link:hover { color: var(--gold-2); text-decoration: underline; }
@media (max-width: 760px) {
  .network-insight { width: min(100% - 40px, 600px); margin-top: -4px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-grid article { min-height: 0; }
  .insight-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}

.ticket-cta{font-weight:750!important;color:#176b4d!important;background:#e7f5ed;border:1px solid #b7dfc7;border-radius:9px;padding:7px 12px!important}.ticket-cta:hover{background:#d7efdf!important}
