:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --ink: #0a0a0a;
  --ink-soft: #404040;
  --muted: #666666;
  --border: #eaeaea;
  --border-strong: #d4d4d4;
  --emerald: #0a0a0a;
  --emerald-dark: #262626;
  --emerald-soft: #f4f4f5;
  --post-yellow: #0a0a0a;
  --post-yellow-bg: #fafafa;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: none;
  --font-sans: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-container { max-width: 800px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.badge-beta {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-switch:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 0.84rem; }
.btn-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
}
.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface);
  border-color: #b5b5b5;
}
.btn-danger {
  background: #ffffff;
  color: var(--danger);
  border-color: #fecaca;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: #fca5a5;
}

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 76px;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 255, 255, 0) 20%, #ffffff 95%),
    linear-gradient(to right, #f2f2f2 1px, transparent 1px),
    linear-gradient(to bottom, #f2f2f2 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-position: 0 0, center top, center top;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}
.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero .lead {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero .lead strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Cards & Terminal Preview */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease;
}
.card:hover {
  border-color: var(--border-strong);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.preview-card {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}
.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.chrome-dots {
  display: inline-flex;
  gap: 6px;
}
.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5e5e5;
}
.chrome-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.preview-top strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 7px;
  border: 1px solid var(--border);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.segmented button.active {
  background: var(--ink);
  color: #ffffff;
}
.console-box {
  background: #0a0a0a;
  color: #ededed;
  border: 1px solid #262626;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 12px;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.chip.chip-blue {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-title p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 700;
}

/* Pricing */
.price-card { display: flex; flex-direction: column; justify-content: space-between; }
.price-card.featured {
  border: 1.5px solid var(--ink);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}
.price-amount {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 12px 0 4px;
  letter-spacing: -0.035em;
}
.price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 0;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-a {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* Alerts & Badges */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}
.alert-warning {
  background: var(--surface);
  border-color: var(--border-strong);
  border-left: 3px solid var(--ink);
  color: var(--ink);
}
.alert-success {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}
.alert-danger {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: #991b1b;
}
.mb-6 { margin-bottom: 24px; }
.muted { color: var(--muted); }

/* Dashboard Layout (/app) */
.app-body { background: var(--surface); min-height: 100vh; }
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}
.app-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tab-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab-btn:hover { background: var(--surface); color: var(--ink); }
.tab-btn.active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}
.app-main { padding: 28px 32px; max-width: 1180px; }
.app-main h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: #0a0a0a; }
.dot.err { background: var(--danger); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.kpi-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

input.input, select.input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input.input:focus, select.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.12);
}

.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.86rem;
  color: var(--muted);
  background: #ffffff;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* SaaS Progress & Badges */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.25s ease;
}
.badge-plan {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
}
.badge-pro {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.toggle-row input[type="checkbox"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}

/* Staging Review Queue */
.queue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-mono {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
}
.badge-warn {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.badge-solid {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}
.batch-row-dim { opacity: 0.52; }
.batch-row-error td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.batch-row-warn td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.inline-fix-box {
  margin-top: 6px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.inline-fix-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.queue-table .badge-warn,
.queue-table .badge-danger {
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}
.inline-fix-row select {
  min-width: 120px;
}
input.input-xs, select.input-xs {
  padding: 4px 8px;
  font-size: 0.8rem;
}
.download-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-wrap: wrap;
}
.download-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px 12px;
}
.download-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-orders-details {
  margin-top: 8px;
}
.file-orders-details summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}
.file-orders-details summary:hover {
  color: var(--ink);
}
.file-orders-details .console-box {
  margin: 8px 0 0;
  max-height: 190px;
  overflow-y: auto;
  padding: 10px 12px;
}
.info-popover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.info-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.info-popover-wrap:hover .info-icon-btn,
.info-icon-btn:focus-visible {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  outline: none;
}
.info-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  line-height: 1.5;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}
.info-popover::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.info-popover-wrap:hover .info-popover,
.info-popover-wrap:focus-within .info-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.info-popover-title {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.info-popover-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.info-popover-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.run-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.run-history-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.run-history-details summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  user-select: none;
}
.run-history-details summary::-webkit-details-marker {
  display: none;
}
.run-history-details summary:hover {
  background: var(--surface);
}
.run-history-chevron {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.run-history-details[open] .run-history-chevron {
  transform: rotate(90deg);
  color: var(--ink);
}
.run-history-body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.file-orders-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.file-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}
.file-order-row.is-removed {
  opacity: 0.55;
}
.file-order-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.file-order-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.quota-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.quota-strip-left,
.quota-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.quota-strip-track {
  width: 160px;
  height: 6px;
}
.row-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.row-expand-btn:hover strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.row-expand-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}
.row-expand-btn.is-open .row-expand-chevron {
  transform: rotate(90deg);
  color: var(--ink);
}
tr.has-open-detail > td {
  border-bottom-color: transparent;
}
.queue-table tr:not(.queue-detail-row) td:last-child {
  text-align: right;
}
.queue-detail-row td {
  padding: 2px 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.5;
}
.queue-table {
  table-layout: fixed;
  min-width: 780px;
}
.queue-table th,
.queue-table td {
  overflow-wrap: break-word;
}
.queue-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.queue-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.weight-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
}

.weight-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.weight-breakdown-row > span:first-child {
  color: var(--muted);
}

.weight-breakdown-row > span:last-child {
  white-space: nowrap;
}

.weight-breakdown-total {
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 3px;
  font-weight: 600;
}

.weight-breakdown-total > span:first-child {
  color: var(--ink);
}

.queue-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
}

.modal-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.queue-channel-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.queue-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.queue-search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.queue-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.queue-search-input {
  padding-left: 30px !important;
  font-size: 0.84rem !important;
  height: 34px;
}

.queue-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-pill:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.filter-pill.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.queue-sort-select {
  width: auto !important;
  min-width: 175px;
  height: 34px;
  font-size: 0.82rem !important;
  padding: 4px 10px !important;
}

.th-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  color: var(--muted);
  cursor: pointer;
}

.th-sort-btn:hover,
.th-sort-btn.is-active {
  color: var(--ink);
}

.th-sort-arrow {
  font-size: 0.72rem;
  opacity: 0.55;
}

.th-sort-btn.is-active .th-sort-arrow {
  opacity: 1;
}

.queue-empty-filter {
  text-align: center !important;
  padding: 28px 16px !important;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 380px;
  width: calc(100vw - 32px);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 11px 12px 11px 14px;
  font-size: 0.84rem;
  line-height: 1.4;
  animation: toastIn 0.18s ease-out;
}

.toast-item.is-error {
  border-color: #fecaca;
}

.toast-item.is-leaving {
  animation: toastOut 0.16s ease-in forwards;
}

.toast-icon {
  flex-shrink: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.toast-item.is-error .toast-icon {
  color: var(--danger);
}

.toast-text {
  flex: 1 1 0;
  min-width: 0;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  margin: -2px -4px 0 0;
  border-radius: 4px;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

.btn.is-saved {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}

.test-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.test-action-row > span {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.82rem;
}

.test-action-row > button {
  flex-shrink: 0;
}

.header-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-gate {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.token-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.token-banner-row code {
  word-break: break-all;
}

/* Landing Interactive 3-Step Workflow Preview */
.demo-stage {
  display: none;
}
.demo-stage.active {
  display: block;
  animation: demoFadeIn 0.2s ease;
}
@keyframes demoFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.demo-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.demo-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.demo-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.demo-row-main strong {
  font-size: 0.84rem;
  color: var(--ink);
}
.demo-row-main span {
  font-size: 0.76rem;
  color: var(--muted);
}
.demo-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.demo-stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.demo-pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.demo-label-sheet {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}
.demo-sheet-head span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.68rem;
}
.demo-sheet-addr {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.74rem;
  line-height: 1.35;
}
.demo-sheet-addr span {
  color: var(--muted);
  font-size: 0.7rem;
}
.demo-barcode {
  height: 22px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    #111111 0 2px,
    #ffffff 2px 4px,
    #111111 4px 7px,
    #ffffff 7px 8px,
    #111111 8px 9px,
    #ffffff 9px 12px
  );
}
.demo-sheet-foot {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.demo-stamp-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-matrix {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid #111111;
  border-radius: 2px;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #111111 25%, transparent 25%),
    linear-gradient(-45deg, #111111 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111111 75%),
    linear-gradient(-45deg, transparent 75%, #111111 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}
.demo-cut-line {
  border-top: 1px dashed var(--border-strong);
  margin: 2px 0;
}
.demo-done-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

/* Centered Hero + Compact 3-Step Screenshot Window */
.hero-centered {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-centered .lead {
  margin: 0 auto 28px;
  max-width: 640px;
}
.hero-centered .hero-cta,
.hero-centered .hero-trust {
  justify-content: center;
}
.hero-showcase {
  max-width: 960px;
  margin: 40px auto 0;
  scroll-margin-top: 84px;
}
.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.showcase-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.showcase-tab:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}
.showcase-tab.active {
  border-color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.showcase-tab-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.showcase-tab.active .showcase-tab-num {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.showcase-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.showcase-tab-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.showcase-tab-text span {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.showcase-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.chrome-url-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}
.showcase-stage-media {
  padding: 24px 20px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.showcase-stage-media img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
}
#demoStageQueue .showcase-stage-media img {
  max-width: 660px;
}
.showcase-stage-print {
  padding: 24px 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--surface);
}
.showcase-stage-print .demo-pdf-grid {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.showcase-label-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}
.showcase-label-card {
  margin: 0;
  width: 260px;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase-label-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  white-space: nowrap;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.showcase-label-head span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.showcase-label-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 103 / 150;
  object-fit: contain;
  padding: 0;
  background: #ffffff;
}
.showcase-print-checks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.waitlist-card {
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 32px 24px;
  text-align: center;
}
.waitlist-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
}
.waitlist-card > p.muted {
  margin: 0 auto 18px;
  max-width: 560px;
}
.waitlist-chips {
  justify-content: center;
  margin-bottom: 18px;
}
.waitlist-chip,
.waitlist-country-chip {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.waitlist-chip:hover,
.waitlist-country-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.waitlist-chip.active,
.waitlist-country-chip.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 10px;
}
.waitlist-form-intl {
  max-width: 720px;
}
.waitlist-form .input {
  flex: 1 1 180px;
  min-width: 0;
}
.waitlist-form .btn {
  flex: 0 0 auto;
}
.waitlist-status {
  margin: 0;
  font-size: 0.82rem;
}
.waitlist-status.ok {
  color: #16a34a;
  font-weight: 500;
}
.waitlist-status.err {
  color: #dc2626;
  font-weight: 500;
}

@media (max-width: 900px) {
  .showcase-tabs {
    grid-template-columns: 1fr;
  }
  .showcase-label-card {
    width: min(100%, 260px);
  }
  .showcase-stage-media,
  .showcase-stage-print {
    min-height: 200px;
    padding: 14px;
  }
  .demo-pdf-grid {
    grid-template-columns: 1fr;
  }
  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .hero { padding: 56px 0 48px; }
  .hero-grid, .grid-3, .grid-2, .kpi-grid, .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .tab-btn { width: auto; white-space: nowrap; }
  .nav-links a:not(.btn):not(.lang-switch) { display: none; }
  .queue-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
