/* 海关通关码 — Modern Dark UI */
:root {
  --bg: #08080d;
  --bg-elevated: #0e0e14;
  --surface: #12121a;
  --surface2: #1a1a24;
  --surface3: #23232f;
  --border: #2e2e3d;
  --border-hover: #404056;
  --text: #f0f0f6;
  --text2: #9898b0;
  --text3: #65657a;
  --accent: #7b6cf0;
  --accent-hover: #8f82ff;
  --accent-muted: rgba(123, 108, 240, 0.12);
  --accent-glow: rgba(123, 108, 240, 0.18);
  --danger: #ff6b6b;
  --danger-glow: rgba(255, 107, 107, 0.12);
  --success: #40d96f;
  --success-glow: rgba(64, 217, 111, 0.1);
  --warning: #f5c842;
  --radius: 14px;
  --radius-sm: 9px;
  --gap: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.45);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(123, 108, 240, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(64, 217, 111, 0.05), transparent 45%),
    var(--bg);
}
.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px calc(var(--gap) + 4px) 28px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.main-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.header-brand { min-width: 0; }
.header h1 {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #c4b5fd 0%, var(--accent) 45%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-tagline {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.status-badge {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--text3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.status-badge.running {
  background: var(--accent-muted);
  color: var(--accent-hover);
  border-color: rgba(123, 108, 240, 0.45);
  box-shadow: 0 0 0 1px rgba(123, 108, 240, 0.2);
}
.header-link {
  font-size: 13px;
  font-weight: 650;
  color: var(--text2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-link:hover {
  color: var(--accent-hover);
  border-color: rgba(123, 108, 240, 0.35);
  background: var(--surface2);
}
.header-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.header-link-back {
  margin-right: 8px;
}
.history-page .header .header-link {
  margin-right: 0;
}
.history-header h1 {
  flex: 1;
  text-align: center;
  margin: 0 8px;
  font-size: 16px;
}
.history-list-wrap {
  max-height: min(70vh, 720px);
  overflow: auto;
}

/* Card */
.card {
  background: linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 42%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease);
}
.card h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.95;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.02em;
}

/* Task card */
.task-card { display: flex; flex-direction: column; gap: 14px; }
.task-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.carrier-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.carrier-label select {
  min-width: 140px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239898b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.carrier-label select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.carrier-label select:focus-visible { outline: none; }

/* Shared textarea style */
textarea, .task-card textarea {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  font-family: "SF Mono", "JetBrains Mono", "Consolas", monospace;
  resize: vertical;
  min-height: 88px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea::placeholder { color: var(--text3); opacity: 0.85; }

.addr-row { display: flex; gap: 8px; align-items: flex-start; }
.addr-row textarea { flex: 1; min-height: 100px; }
.addr-col { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex-shrink: 0; max-width: 160px; }
.auto-fetch-label { font-size: 11px; color: var(--text2); line-height: 1.35; display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.auto-fetch-label input { margin-top: 3px; flex-shrink: 0; }
.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  min-height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(123, 108, 240, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #9d91ff 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 18px rgba(123, 108, 240, 0.45);
}
.btn-lg {
  padding-left: 28px;
  padding-right: 28px;
  min-height: 44px;
  font-size: 14px;
  border-radius: 11px;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 2px 12px rgba(255, 107, 107, 0.35); }
.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text); background: var(--surface2); }
.btn-icon {
  padding: 8px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg { display: block; flex-shrink: 0; }
.btn-block { width: 100%; }
.btn-sm2 { padding: 8px 14px; font-size: 12px; min-height: 36px; }
.btn-tiny {
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  background: transparent;
  color: var(--text3);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.btn-tiny:hover { color: var(--text2); border-color: var(--border-hover); }

/* Proxy card */
.proxy-card { padding: 0; overflow: hidden; }
.proxy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.proxy-header:hover { background: var(--surface2); }
.proxy-header h3 { margin: 0; }
.proxy-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.2s var(--ease);
  flex-shrink: 0;
  margin-top: -2px;
}
.proxy-arrow.open { transform: rotate(-135deg); }
.proxy-body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.proxy-row { display: flex; gap: 8px; }
.proxy-row input {
  flex: 1;
  padding: 9px 12px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: border-color 0.2s;
}
.proxy-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.proxy-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proxy-status { font-size: 12px; color: var(--text3); }
.no-proxy-label { font-size: 12px; color: var(--text2); cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; }
.no-proxy-label input { accent-color: var(--accent); }
.proxy-items { display: flex; flex-wrap: wrap; gap: 5px; }
.proxy-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: "SF Mono", "Consolas", monospace;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.proxy-tag:hover { border-color: var(--border-hover); background: var(--surface3); }
.proxy-tag.ok { border-color: var(--success); color: var(--success); background: var(--success-glow); }
.proxy-tag.fail { border-color: var(--danger); color: var(--danger); opacity: 0.4; }
.proxy-tag.selected { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-muted); box-shadow: 0 0 0 1px rgba(123, 108, 240, 0.45); }
.proxy-tag.active { border-color: var(--warning); color: var(--warning); background: rgba(255,212,59,0.08); }
.proxy-ms { font-size: 10px; opacity: 0.8; }
.proxy-label { white-space: nowrap; }

/* Current info */
.current-info { font-size: 13px; word-break: break-all; }
.current-info strong { color: var(--accent); }

/* Warning / info / block panels */
#manualPanel.panel-warn,
#smsBanner.panel-info,
#reviewPanel.panel-warn {
  scroll-margin-top: 16px;
}
.panel-warn {
  border-color: rgba(245, 200, 66, 0.35);
  background: linear-gradient(165deg, rgba(245, 200, 66, 0.07) 0%, transparent 55%);
}
.panel-warn h3 { color: var(--warning); margin-bottom: 8px; }
.panel-info {
  border-color: rgba(108, 92, 231, 0.3);
  background: var(--accent-glow);
}

.captcha-preview {
  max-width: min(220px, 100%);
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.manual-countdown {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--warning);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.22);
}
.manual-countdown.urgent {
  color: #f07167;
  background: rgba(240, 113, 103, 0.1);
  border-color: rgba(240, 113, 103, 0.35);
}
.input-row { display: flex; gap: 8px; margin-top: 8px; }
.input-row input {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s;
}
.input-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }

.review-field { margin: 8px 0; }
.review-field label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.review-field input {
  padding: 9px 12px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* User recovery (unexpected flow) */
.panel-recovery {
  border-color: rgba(255, 159, 67, 0.45);
  background: rgba(255, 159, 67, 0.06);
}
.panel-recovery h3 { color: #ff9f43; margin-bottom: 8px; }
.recovery-hint { font-size: 13px; color: var(--text2); margin: 0 0 8px; line-height: 1.45; }
.recovery-detail {
  font-size: 12px;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow: auto;
}
.recovery-ss-label { font-size: 12px; color: var(--text2); margin: 0 0 8px; }
.recovery-screenshot-inner {
  max-height: min(55vh, 520px);
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: var(--surface2);
}
.recovery-screenshot-img { width: 100%; height: auto; display: block; vertical-align: top; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Block detected */
.panel-block { border-color: rgba(255, 107, 107, 0.3); background: var(--danger-glow); }
.panel-block h3 { color: var(--danger); }
.panel-block p { font-size: 13px; margin-bottom: 10px; color: var(--text); }

/* SMS code input */
.sms-waiting { display: flex; align-items: center; gap: 10px; }
.sms-code-input { width: 100%; }
.sms-label { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 4px; display: block; }

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(108, 92, 231, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result copy */
.result-copy-card { border-color: rgba(81, 207, 102, 0.3); background: var(--success-glow); }
.result-text {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-family: "SF Mono", "JetBrains Mono", "Consolas", monospace;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  cursor: text;
  user-select: all;
}

/* Screenshot */
.screenshot-wrap {
  max-height: min(80vh, 820px);
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Results table */
.table-scroll {
  max-height: 500px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
#resultsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 700px;
}
#resultsTable td, #resultsTable th {
  white-space: nowrap;
}
#resultsTable th {
  background: var(--surface2);
  color: var(--text3);
  padding: 8px 10px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#resultsTable td {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}
.code-cell { font-family: "SF Mono", "Consolas", monospace; font-weight: 700; color: var(--success); }
.btn-retry {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: var(--text3);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-retry:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.st-ok { background: var(--success-glow); }
.st-proc { background: var(--accent-glow); }
.st-err { background: var(--danger-glow); }

/* Log */
#logBox {
  min-height: 120px;
  max-height: 400px;
  overflow: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.55;
  font-family: "SF Mono", "JetBrains Mono", "Consolas", monospace;
  color: var(--text2);
  white-space: pre-wrap;
  word-break: break-all;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
}

#manualPrompt {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
  margin-top: 6px;
  max-width: 52ch;
}
#resultsTable tbody tr { transition: background 0.15s var(--ease); }
#resultsTable tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

/* History list (see history.js) */
.history-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s var(--ease);
}
.history-item:hover { border-color: var(--border-hover); }
.history-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
}
.history-item-code {
  font-size: 15px;
  font-weight: 750;
  color: var(--success);
  font-family: "SF Mono", "Consolas", monospace;
  margin: 4px 0 6px;
}
.history-item-line {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.45;
}
.history-item-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
  line-height: 1.4;
}
.history-item img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.history-empty {
  color: var(--text3);
  padding: 20px 8px;
  text-align: center;
  font-size: 14px;
}

/* Login page (login.html + shared tokens) */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
  min-height: 100dvh;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 42%), var(--surface);
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.login-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #c4b5fd 0%, var(--accent) 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-card .login-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.login-card label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  display: block;
  margin-bottom: 6px;
}
.login-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0 0 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.login-card .err {
  color: var(--danger);
  font-size: 13px;
  margin: -8px 0 12px;
}
.login-card button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(123, 108, 240, 0.35);
  transition: filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-card button[type="submit"]:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 18px rgba(123, 108, 240, 0.45);
}

@media (max-width: 640px) {
  .app { padding: 16px 12px 24px; }
  .addr-row { flex-direction: column; }
  .addr-col {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }
  .table-scroll { border-radius: var(--radius-sm); }
}

@media (max-width: 520px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .status-badge { margin-left: 0; align-self: flex-start; }
  .header-link { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
