:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #1f2733;
  --muted: #6b7686;
  --line: #e2e8f0;
  --primary: #1660c0;
  --primary-ink: #ffffff;
  --ok: #1f7a3d;
  --ok-bg: #e8f5ec;
  --warn: #b45309;
  --warn-bg: #fdf3e3;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.045);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.break-word { overflow-wrap: anywhere; word-break: break-word; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 10px;
  font-weight: 700; font-size: 18px;
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.25; }
.brand-text small { color: var(--muted); font-size: 12px; }
.topnav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topnav a { color: var(--ink); font-weight: 500; }
.nav-user { color: var(--muted); font-size: 13.5px; }
.inline-form { display: inline; margin: 0; }
.linklike {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--primary); font-size: 14px; cursor: pointer; font-family: inherit;
}
.linklike:hover { text-decoration: underline; }

/* Layout */
.page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }
.footer {
  max-width: 1080px; margin: 0 auto; padding: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.card h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.card h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.lead { color: var(--ink); margin: 0 0 14px; }
.card p { margin: 0 0 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: filter 0.12s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.full { width: 100%; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.alert.error { background: var(--danger-bg); color: var(--danger); }
.alert.info { background: var(--ok-bg); color: var(--ok); }
.notice {
  background: #f0f4fa; border: 1px solid #dbe6f5; color: #2c4a78;
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-top: 12px;
}

/* Hero */
.hero { background: linear-gradient(180deg, #eef4fc, #ffffff); }
.hero-copy h1 { font-size: 30px; margin: 8px 0 8px; }

/* Sections */
.section { margin-top: 28px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 20px; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-head-copy h1 { margin: 0; font-size: 26px; }
.price-badge {
  background: var(--primary); color: #fff; border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 15px; white-space: nowrap;
}

/* Product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.product-card { display: block; }
.product-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.pill {
  background: #eef4fc; color: var(--primary); border-radius: 999px;
  padding: 2px 10px; font-size: 12.5px; font-weight: 600;
}
.price { margin: 10px 0; font-size: 14px; }
.price strong { font-size: 22px; color: var(--ink); }
.text-link { font-weight: 600; color: var(--primary); }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.info-item span { display: block; color: var(--muted); font-size: 12.5px; }
.info-item strong { display: block; margin-top: 2px; }

/* Two column layout */
.two-col {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start;
}
.two-col > .card { min-width: 0; }
.side-card { }

/* Forms */
.stack-form { display: flex; flex-direction: column; gap: 12px; }
.stack-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13.5px; }
.stack-form input[type="text"],
.stack-form input[type="password"],
.stack-form textarea,
.stack-form input[type="file"] {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 15px; font-family: inherit; background: #fff; width: 100%;
}
.stack-form textarea { resize: vertical; min-height: 140px; }
.stack-form input:focus, .stack-form textarea:focus {
  outline: 2px solid rgba(22, 96, 192, 0.35); border-color: var(--primary);
}
.char-note, .file-note { color: var(--muted); font-size: 12.5px; }

/* Auth */
.auth-card { max-width: 420px; margin: 0 auto; }

/* Status */
.status-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 12px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.status-badge.queued, .status-badge.processing { background: var(--warn-bg); color: var(--warn); }
.status-badge.complete { background: var(--ok-bg); color: var(--ok); }
.status-badge.failed, .status-badge.cancelled { background: var(--danger-bg); color: var(--danger); }

/* Summary table */
.summary-table { width: 100%; }
.summary-table > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.summary-table > div:last-child { border-bottom: none; }
.summary-table span { color: var(--muted); }
.summary-table strong { text-align: right; overflow-wrap: anywhere; }

/* Amount box */
.amount-box {
  display: flex; align-items: baseline; justify-content: space-between;
  background: #f0f4fa; border-radius: 12px; padding: 14px 16px; margin: 14px 0;
}
.amount-box strong { font-size: 24px; color: var(--primary); }
.amount-box.large strong { font-size: 30px; }

/* Payment disabled contract */
.payment-disabled {
  border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px;
  color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px;
}
.payment-disabled strong { color: var(--ink); }
.qr-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; max-width: 220px; margin: 16px auto;
  border: 1.5px dashed #c3cede; border-radius: 14px; color: var(--muted);
}
.paid-note { background: var(--ok-bg); color: var(--ok); padding: 12px 14px; border-radius: 12px; }
.paid-note span { display: block; margin-top: 2px; font-size: 13.5px; }

/* Order item */
.order-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px;
}
.order-item .muted { font-size: 13px; }

/* Job list */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink); min-width: 0;
}
.job-card:hover { text-decoration: none; border-color: #c9d6ea; }
.job-card-main { min-width: 0; }
.job-title { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }

/* Status head */
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.status-head h2 { margin: 0; }

/* Download */
.download-box { margin-top: 14px; }
.download-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.download-meta .muted { font-size: 13px; }

/* Empty state */
.empty-state { text-align: center; padding: 40px 22px; }
.empty-state .btn { margin-top: 8px; }

/* Account summary */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 26px; color: var(--ink); }

/* Compact rows */
.compact-list { display: flex; flex-direction: column; gap: 10px; }
.compact-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; color: var(--ink); min-width: 0;
}
.compact-row:hover { text-decoration: none; border-color: #c9d6ea; }
.compact-main { display: flex; flex-direction: column; min-width: 0; }
.compact-main .muted { font-size: 12.5px; }
.compact-side { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.compact-side .muted { font-size: 14px; }

/* Order table */
.order-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-table { width: 100%; border-collapse: collapse; min-width: 0; }
.order-table th, .order-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.order-table th { background: #fafbfd; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.order-table tr:last-child td { border-bottom: none; }
.order-table td .muted { font-size: 12.5px; }
.small { font-size: 12.5px; }
.small-btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.status-badge.unpaid { background: var(--warn-bg); color: var(--warn); }
.status-badge.paid { background: var(--ok-bg); color: var(--ok); }
.status-badge.refunded, .status-badge.cancelled { background: var(--danger-bg); color: var(--danger); }

/* Ops workbench */
.group-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.active-tab, .btn.active-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.audit-list .info-item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.audit-list .info-item strong { font-size: 12.5px; color: var(--muted); }

/* Catalog */
.pill.muted-pill { background: #eef0f3; color: var(--muted); }
.price-badge.muted-badge { background: #eef0f3; color: var(--muted); }
.unavailable-card {
  border-style: dashed; text-align: center; padding: 40px 24px;
}
.unavailable-card .button-row { justify-content: center; }

/* Stepbar */
.stepbar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.stepbar span {
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.stepbar span.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepbar span.done { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .order-table-wrap { border: none; background: transparent; }
  .order-table, .order-table tbody, .order-table tr, .order-table td { display: block; width: 100%; }
  .order-table thead { display: none; }
  .order-table th, .order-table td { border: none; }
  .order-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .order-table tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; margin-bottom: 10px;
  }
  .order-table td { padding: 4px 0; border-bottom: none; }
}
@media (max-width: 560px) {
  .page { padding: 20px 14px 48px; }
  .hero-copy h1 { font-size: 24px; }
  .page-head-copy h1 { font-size: 22px; }
  .price-badge { font-size: 13px; }
  .topbar-inner { padding: 10px 14px; }
  .job-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .job-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .amount-box { flex-direction: column; align-items: flex-start; gap: 4px; }
  .button-row .btn { flex: 1 1 auto; }
  .compact-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .compact-side { width: 100%; justify-content: space-between; }
}

/* Customer-facing V1 refinements */
.topnav a.active {
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--primary);
}
.topnav .nav-login { color: var(--ink); }
.topnav .nav-register {
  color: var(--primary);
  border: 1px solid #c9d8ef;
  border-radius: 8px;
  padding: 5px 10px;
}
.topnav .nav-logout { font-size: 14px; }
.btn:focus-visible, .topnav a:focus-visible, .topnav button:focus-visible,
.text-link:focus-visible, .product-card:focus-visible, .job-card:focus-visible {
  outline: 3px solid rgb(22 96 192 / 0.35);
  outline-offset: 2px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.workflow-steps .card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
}
.step-number { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.workflow-steps strong { font-size: 15px; }
.workflow-steps .muted { font-size: 13px; }
.product-card {
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { border-color: #bdcfe8; box-shadow: 0 3px 10px rgb(16 24 40 / 0.08); text-decoration: none; }
.product-card .product-status { font-size: 12px; }
.product-card .price { min-height: 34px; }
.product-card .text-link { display: inline-block; margin-top: 2px; }
.page-head-actions { margin-top: 0; }

.product-facts { margin-bottom: 4px; }
.product-submission .section-head h2 { margin: 0 0 4px; font-size: 21px; }
.input-option {
  min-width: 0;
  margin: 2px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.input-option legend { padding: 0 6px; font-size: 14px; font-weight: 700; }
.input-option textarea,
.input-option input[type="file"] {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  font: inherit;
  background: #fff;
  width: 100%;
}
.input-option textarea { min-height: 160px; resize: vertical; }
.char-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.file-note { margin-top: 6px; line-height: 1.5; }
.text-metadata { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.text-metadata[hidden], .file-selection[hidden], .file-metadata-preview[hidden] { display: none; }
.visually-hidden-file {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important; border: 0 !important;
}
.upload-dropzone {
  display: flex; min-height: 132px; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 20px; border: 2px dashed var(--line);
  border-radius: 12px; background: #fbfcfe; color: var(--ink); text-align: center;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.upload-dropzone:hover, .upload-dropzone.is-dragover {
  border-color: var(--primary); background: rgba(22, 96, 192, .06);
}
.upload-dropzone.is-dragover { box-shadow: 0 0 0 3px rgba(22, 96, 192, .12); }
.visually-hidden-file:focus + .upload-dropzone {
  outline: 3px solid rgba(22, 96, 192, .35); outline-offset: 3px;
}
.dropzone-icon {
  display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%;
  background: rgba(22, 96, 192, .1); color: var(--primary); font-size: 24px; line-height: 1;
}
.file-selection { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.file-metadata-preview {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: rgba(22, 96, 192, .055); overflow-wrap: anywhere;
}
.file-metadata-preview p { margin: 3px 0; font-size: 13px; }
.upload-status { min-height: 0; margin: 6px 0 0; color: var(--danger, #a42d2d); }
.upload-status:empty { display: none; }
.metadata-overrides { margin-top: 10px; }
.metadata-overrides summary { color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 650; }
.metadata-overrides[open] { display: flex; flex-direction: column; gap: 10px; }
.quote-summary > div { align-items: flex-start; }
.quote-expiry { margin: 8px 0 0; }
.quote-actions .btn { flex: 1 1 190px; }

.lookup-card { max-width: 760px; margin: 0 auto; }
.lookup-form { max-width: 560px; }
.progress-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr); gap: 20px; align-items: start; }
.progress-main { min-width: 0; }
.progress-actions { margin-top: 24px; }
.report-card { min-width: 0; }
.follow-card { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.follow-card h2, .follow-card p { margin: 0; }
.follow-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.follow-qr-placeholder { width: 144px; height: 144px; display: grid; place-items: center; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); text-align: center; font-size: 13px; }
.follow-actions .stack-form { align-items: flex-start; }
.follow-actions button:disabled { opacity: .58; cursor: not-allowed; }
.follow-card-compact { padding: 16px 20px; }
.text-button { background: transparent; border: 0; color: var(--muted); padding: 8px 0; text-decoration: underline; }

@media (max-width: 760px) {
  .progress-layout { grid-template-columns: 1fr; }
  .follow-card { grid-column: auto; }
  .follow-actions { align-items: flex-start; }
}

.order-table td .order-title { display: block; }
.order-table td .small { display: block; }
.order-table td[data-label="订单号"] { max-width: 190px; }
.report-ready-label { color: var(--ok); font-size: 12.5px; font-weight: 700; }
.job-side .report-ready-label { text-align: right; }
.payment-disabled { position: relative; padding-left: 48px; border-style: solid; border-color: #d6e6db; background: #f2f8f4; }
.payment-icon {
  position: absolute; left: 14px; top: 13px;
  display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  border-radius: 50%; background: #eaf2fc; color: var(--primary); font-weight: 700;
}
.order-status-card .amount-box { margin-top: 12px; }

@media (max-width: 760px) {
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .topbar-inner { align-items: flex-start; }
  .topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px 8px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }
  .topnav > a { padding: 5px 2px; font-size: 13px; }
  .topnav a.active { box-shadow: inset 0 -2px 0 var(--primary); }
  .topnav .nav-register { padding: 4px 8px; }
  .topnav .inline-form { padding: 4px 2px; }
  .order-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
  }
  .order-table td[data-label="论文 / 产品"]::before { margin-bottom: 5px; }
  .order-table td[data-label="订单号"] { max-width: none; }
}
@media (max-width: 420px) {
  .workflow-steps { gap: 8px; }
  .workflow-steps .card { padding: 12px; }
  .workflow-steps .muted { font-size: 12px; }
  .input-option { padding: 10px; }
}

/* R4 professional customer workspace */
*[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header { background: #fff; border-bottom: 1px solid #d8e0eb; }
.site-header-inner {
  width: min(1280px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 245px minmax(330px, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.brand { gap: 11px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; font-size: 20px; }
.brand-text strong { font-size: 19px; letter-spacing: .04em; }
.brand-text small { font-size: 11.5px; white-space: nowrap; }
.header-lookup {
  display: flex;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.header-lookup input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd6e4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.header-lookup input:focus, .lookup-form input:focus, .product-form input:focus, .product-form textarea:focus, .product-form select:focus {
  outline: 2px solid rgb(22 96 192 / .2);
  border-color: var(--primary);
}
.header-lookup .btn { min-width: 76px; padding: 8px 14px; border-radius: 7px; }
.header-trust { display: flex; justify-content: flex-end; gap: 16px; align-items: center; color: #526174; font-size: 12px; white-space: nowrap; }
.header-trust span { display: inline-flex; align-items: center; gap: 4px; }
.header-trust i { color: var(--primary); font-size: 13px; font-style: normal; font-weight: 700; }

.page { width: min(1280px, 100%); max-width: none; padding: 22px 24px 48px; }
.workspace-grid {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 250px;
  align-items: start;
  gap: 18px;
}
.workspace-main { min-width: 0; }
.business-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.business-nav-heading {
  padding: 7px 10px 10px;
  color: #708096;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.business-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #39485b;
  font-size: 13.5px;
  font-weight: 600;
}
.business-nav a > span:last-child { white-space: nowrap; }
.business-nav a:hover { background: #fff; border-color: #dce4ee; text-decoration: none; }
.business-nav a.active { background: #eaf2fc; border-color: #d2e1f4; color: #124f9e; }
.nav-symbol { width: 18px; color: var(--primary); text-align: center; font-size: 17px; line-height: 1; }
.information-rail { display: flex; min-width: 0; flex-direction: column; gap: 11px; }
.rail-card { padding: 14px 15px; border: 1px solid #dce3ec; border-radius: 8px; background: #fff; }
.rail-card h2 { margin: 0 0 9px; padding-left: 8px; border-left: 3px solid #2a6bc2; font-size: 14px; line-height: 1.4; }
.rail-card ul { display: flex; flex-direction: column; gap: 7px; margin: 0; padding-left: 17px; color: #59687a; font-size: 12.5px; line-height: 1.55; }
.rail-card p { margin: 0; color: #59687a; font-size: 12.5px; }
.footer { width: min(1280px, 100%); max-width: none; padding: 17px 24px; }
.card { border-radius: 8px; box-shadow: 0 1px 2px rgb(16 24 40 / .035); }
.eyebrow { margin-bottom: 5px; color: #63758b; font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.btn { min-height: 42px; border-radius: 7px; }
.btn.primary { background: #155db5; }
.btn.secondary { border-color: #ccd7e5; }
.section-head h2, .product-submission .section-head h2 { padding-left: 10px; border-left: 3px solid #2a6bc2; }

.workspace-grid-home { grid-template-columns: 168px minmax(0, 1fr); }
.workspace-grid-home .information-rail { display: none; }
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 245px);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #d7e2ef;
  border-left: 4px solid #1b63b8;
  border-radius: 8px;
  background: linear-gradient(105deg, #edf4fc 0%, #fff 76%);
}
.portal-hero h1 { margin: 2px 0 7px; font-size: 27px; line-height: 1.3; }
.portal-hero .lead { margin: 0; color: #536275; }
.portal-hero .button-row { margin-top: 15px; }
.portal-facts { display: flex; flex-direction: column; border-left: 1px solid #d8e1ec; }
.portal-facts > div { display: flex; flex-direction: column; gap: 1px; padding: 7px 0 7px 16px; border-bottom: 1px solid #e5ebf2; }
.portal-facts > div:last-child { border-bottom: 0; }
.portal-facts strong { color: #263b54; font-size: 13px; }
.portal-facts span { color: #6c7989; font-size: 12px; }
.workflow-steps .card { border-radius: 7px; box-shadow: none; }
.product-grid { gap: 12px; }
.product-grid .product-card { padding: 16px; border-radius: 8px; box-shadow: none; }

.product-page-head { align-items: center; margin-bottom: 11px; }
.product-page-head .page-head-copy h1 { font-size: 24px; }
.product-page-head .page-head-copy p { margin: 4px 0 0; font-size: 13px; }
.price-badge { padding: 7px 12px; border-radius: 7px; font-size: 14px; }
.product-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 14px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: none;
}
.product-facts .info-item { min-width: 0; }
.product-facts .info-item span { font-size: 11.5px; }
.product-facts .info-item strong { font-size: 13px; overflow-wrap: anywhere; }
.product-submission .section-head { margin-bottom: 11px; }
.product-submission .section-head h2 { margin: 0 0 4px; font-size: 19px; }
.product-submission .section-head p { margin: 0; font-size: 13px; }
.product-form { gap: 0; padding: 17px; box-shadow: none; }
.purchase-section { padding-bottom: 14px; border-bottom: 1px solid #e4e9f0; }
.input-section { padding-top: 14px; }
.section-title-row { margin-bottom: 9px; }
.section-title-row .eyebrow { margin-bottom: 2px; }
.section-title-row h3 { margin: 0; font-size: 15px; }
.section-title-row h3 { padding-left: 8px; border-left: 3px solid #2a6bc2; }
.purchase-switch { display: inline-flex; gap: 3px; margin: 1px 0 11px; padding: 3px; border: 1px solid #d8e1ec; border-radius: 7px; background: #f2f5f9; }
.purchase-switch button {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #536275;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}
.purchase-switch button[aria-pressed="true"] { border-color: #cdddf1; background: #fff; color: #124f9e; box-shadow: 0 1px 2px rgb(16 24 40 / .06); }
.purchase-switch button:disabled { border-color: #dce3eb; background: #e9edf2; color: #768396; cursor: not-allowed; box-shadow: none; }
.purchase-fields { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(220px, 1.25fr); gap: 9px 12px; align-items: end; }
.purchase-fields label, .text-metadata label, .text-body-label { display: flex; flex-direction: column; gap: 5px; color: #344357; font-size: 13px; font-weight: 650; }
.purchase-fields input, .purchase-fields select, .product-form input[type="text"], .product-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd6e4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.purchase-fields select { font-size: 14px; }
.purchase-fields .purchase-note { grid-column: 1 / -1; margin: -3px 0 0; }
.site-purchase-note { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border: 1px solid #dae5f2; border-radius: 6px; background: #f4f8fd; }
.site-purchase-note strong { color: #324960; font-size: 13px; }
.site-purchase-note span { color: #637286; font-size: 12.5px; }
.input-tabs { display: flex; gap: 5px; margin: 0 0 12px; border-bottom: 1px solid #dce4ee; }
.input-tabs button {
  position: relative;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5a687a;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.input-tabs button[aria-selected="true"] { border-bottom-color: #1b63b8; color: #124f9e; }
.input-tabs button:focus-visible, .purchase-switch button:focus-visible { outline: 2px solid rgb(22 96 192 / .32); outline-offset: 2px; }
.input-panel { min-width: 0; }
.upload-dropzone {
  min-height: 122px;
  gap: 7px;
  border: 1.5px dashed #aebed1;
  border-radius: 7px;
  background: #f9fbfd;
}
.upload-dropzone strong { font-size: 14px; }
.dropzone-icon { width: 31px; height: 31px; font-size: 21px; }
.file-note { margin-top: 7px; font-size: 12px; }
.file-selection { margin: 9px 0 0; }
.file-metadata-preview { padding: 9px 11px; border: 1px solid #deE8f4; border-radius: 6px; background: #f4f8fd; }
.metadata-overrides { margin-top: 9px; }
.metadata-overrides[open] { gap: 9px; }
.metadata-overrides summary { font-size: 12.5px; }
.metadata-overrides label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.text-panel textarea { min-height: 190px; resize: vertical; }
.text-metadata { margin-top: 9px; gap: 7px; }
.text-metadata p { margin: 0; }
.text-metadata-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 11px; }
.char-note { margin-top: 8px; }
.submit-paper { align-self: flex-end; min-width: 210px; margin-top: 15px; }

.lookup-workspace { padding: 22px; border: 1px solid #dce4ee; border-radius: 8px; background: #fff; }
.lookup-workspace h1 { margin: 0 0 5px; font-size: 24px; line-height: 1.3; }
.lookup-workspace .lead { margin-bottom: 20px; color: #5c6a7b; font-size: 14px; }
.lookup-form { max-width: 100%; }
.lookup-form > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.lookup-input-row { display: flex; gap: 9px; }
.lookup-input-row input { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid #cbd6e4; border-radius: 6px; font: inherit; }
.lookup-input-row .btn { flex: 0 0 auto; min-width: 170px; }
.lookup-form .tiny { margin: 2px 0 0; }

.progress-layout { grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 13px; }
.progress-main, .report-card { padding: 18px; border-radius: 8px; box-shadow: none; }
.progress-main h1 { font-size: 21px; }
.progress-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 15px 0 17px; padding: 0; list-style: none; }
.progress-timeline li { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 9px 10px; border: 1px solid #e0e6ee; border-radius: 6px; background: #fafbfd; color: #738093; }
.progress-timeline li span { font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.progress-timeline li strong { font-size: 11.5px; line-height: 1.4; }
.progress-timeline li.complete { border-color: #d2e5d8; background: #f4faf5; color: #39704b; }
.progress-timeline li.current { border-color: #cadcf1; background: #f1f6fc; color: #225792; }
.report-card h2 { font-size: 17px; }
.download-box { margin-top: 12px; }
.progress-actions { margin-top: 18px; }
.follow-card { border-radius: 8px; box-shadow: none; }
.follow-qr { width: 144px; height: 144px; object-fit: contain; border: 1px solid #dce3ec; border-radius: 6px; background: #fff; }

@media (min-width: 1100px) and (max-width: 1199px) {
  .page { padding-right: 12px; padding-left: 12px; }
  .workspace-grid { grid-template-columns: 150px minmax(0, 1fr) 230px; gap: 12px; }
  .workspace-grid-home { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 1099px) {
  .site-header-inner { grid-template-columns: 220px minmax(280px, 1fr); gap: 16px; }
  .header-trust { display: none; }
  .workspace-grid { grid-template-columns: 158px minmax(0, 1fr); }
  .workspace-grid-home { grid-template-columns: 158px minmax(0, 1fr); }
  .information-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 10px 16px 12px; }
  .brand { grid-column: 1; }
  .header-lookup { grid-column: 1 / -1; grid-row: 2; }
  .workspace-grid, .workspace-grid-home { display: flex; flex-direction: column; gap: 12px; }
  .workspace-main { order: 0; width: 100%; }
  .business-nav { order: 1; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 5px; padding: 0; border-top: 1px solid #dce3ec; }
  .business-nav-heading { width: 100%; padding: 10px 2px 2px; }
  .business-nav a { min-height: 38px; flex: 1 1 auto; padding: 6px 8px; font-size: 12px; }
  .nav-symbol { display: none; }
  .information-rail { order: 2; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid-home .information-rail { display: none; }
  .page { padding: 16px 16px 36px; }
  .footer { padding: 15px 16px; }
  .portal-hero { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
  .portal-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #d8e1ec; border-left: 0; padding-top: 7px; }
  .portal-facts > div { padding: 5px 7px 5px 0; border-right: 1px solid #e5ebf2; border-bottom: 0; }
  .portal-facts > div + div { padding-left: 9px; }
  .portal-facts > div:last-child { border-right: 0; }
}
@media (max-width: 560px) {
  .site-header-inner { padding: 10px 12px 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 10.5px; }
  .header-lookup { gap: 6px; }
  .header-lookup input { height: 42px; padding: 8px 10px; font-size: 13px; }
  .header-lookup .btn { min-width: 62px; padding: 7px 10px; }
  .page { padding: 13px 12px 30px; }
  .information-rail { grid-template-columns: 1fr; }
  .rail-card { padding: 12px 13px; }
  .product-page-head .page-head-copy h1 { font-size: 21px; }
  .product-page-head { gap: 8px; }
  .product-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-form { padding: 13px; }
  .purchase-switch { display: flex; width: 100%; }
  .purchase-switch button { flex: 1 1 50%; padding: 6px 7px; font-size: 12px; }
  .purchase-fields, .text-metadata-fields { grid-template-columns: 1fr; }
  .input-tabs button { flex: 1 1 50%; }
  .upload-dropzone { min-height: 112px; padding: 15px 11px; }
  .submit-paper { width: 100%; }
  .lookup-workspace { padding: 17px 14px; }
  .lookup-workspace h1 { font-size: 21px; }
  .lookup-input-row { flex-direction: column; }
  .lookup-input-row .btn { width: 100%; }
  .progress-layout { grid-template-columns: 1fr; }
  .progress-timeline { gap: 5px; }
  .progress-timeline li { padding: 8px 7px; }
  .progress-timeline li strong { font-size: 10.5px; }
  .portal-facts strong { font-size: 12px; }
  .portal-facts span { font-size: 10.5px; line-height: 1.35; }
  .footer-note { font-size: 12px; }
}
