:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1f4b99;
  --accent-strong: #173972;
  --accent-soft: #eef4ff;
  --line: #d9dee7;
  --success: #166534;
  --warning: #9a6700;
  --shadow: none;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.24;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 6px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 75, 153, 0.12);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  font-size: 0.95rem;
  color: var(--muted);
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px 28px;
  display: grid;
  gap: 14px;
}

.page-shell > * {
  min-width: 0;
}

.page-shell-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 0;
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 8px 20px;
  user-select: none;
}

.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-link {
  color: inherit;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  color: var(--accent-strong);
  border: 1px solid var(--line);
  font-weight: 700;
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy small {
  font-size: 0.8rem;
}

.brand-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.topbar-brand small,
.eyebrow,
.muted-line,
.soft-note {
  color: var(--muted);
}

.topbar-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.topbar-nav-label {
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-nav-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 2px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.topbar-link:hover {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.topbar-link.is-current {
  background: var(--accent-soft);
  border-color: #bfd0f1;
  color: var(--accent-strong);
}

.topbar *::selection {
  background: transparent;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-user {
  display: grid;
  gap: 2px;
  padding: 7px 11px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  min-width: 0;
}

.topbar-user-name {
  font-weight: 700;
  line-height: 1.1;
}

.topbar-user small {
  color: var(--muted);
  font-size: 0.8rem;
}

.topbar-user-link {
  font-size: 0.78rem;
  font-weight: 600;
}

.page-head,
.section-head,
.comparison-head,
.supplier-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-head {
  margin-bottom: 6px;
}

.head-actions,
.form-actions,
.supplier-actions,
.portal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-strategy-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-strategy-form select {
  min-width: 280px;
}

.metric-grid,
.grid-two,
.supplier-grid,
.choice-grid,
.chip-grid {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 12px;
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  margin-bottom: 12px;
}

.supplier-grid {
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
}

.choice-grid,
.chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card,
.metric-card,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.auth-card {
  padding: 16px;
}

.metric-card {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.metric-card strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.inline-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.card-muted {
  background: #fafbfc;
}

.empty-state {
  display: grid;
  gap: 12px;
  text-align: left;
}

.compact-empty-state {
  margin-bottom: 12px;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.step-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.workflow-strip {
  display: grid;
  gap: 12px;
}

.workflow-strip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workflow-strip-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.workflow-strip-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step-chip {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.workflow-step-chip strong {
  font-size: 1rem;
  line-height: 1.2;
}

.workflow-step-chip small {
  color: var(--muted);
  line-height: 1.35;
}

.workflow-step-chip:hover {
  text-decoration: none;
  border-color: #bfd1f5;
  background: #fbfdff;
  transform: translateY(-1px);
}

.workflow-step-chip.is-current {
  border-color: #bfd1f5;
  background: var(--accent-soft);
}

.workflow-step-chip.is-done {
  border-color: #d1e8d7;
  background: #edf7ee;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  text-decoration: none;
}

.step-chip:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent-strong);
}

.step-chip.is-current {
  border-color: #bfd1f5;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.step-chip.is-done {
  border-color: #d1e8d7;
  background: #edf7ee;
  color: var(--success);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  text-align: left;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-block {
  width: 100%;
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  padding: 0;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.badge-success {
  background: #edf7ee;
  color: var(--success);
}

.badge-warning {
  background: #fff6e5;
  color: var(--warning);
}

.badge-info {
  background: #eef4ff;
  color: #2b5bbd;
}

.badge-danger {
  background: #fdeeee;
  color: var(--accent-strong);
}

.badge-muted {
  background: #f3f4f6;
  color: var(--muted);
}

.notice {
  margin-bottom: 0;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-notice-slot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: min(420px, calc(100vw - 28px));
  margin: 0;
  pointer-events: none;
}

.notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.notice.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

.notice-content {
  min-width: 0;
}

.notice-close {
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0.82;
  cursor: pointer;
}

.page-notice-slot .notice {
  pointer-events: auto;
}

.notice-success {
  background: #edf7ee;
  color: var(--success);
}

.notice-warning {
  background: #fff6e5;
  color: #8a5a00;
}

.notice-error,
.inline-errors {
  background: #fdeeee;
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .page-notice-slot {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
}

.inline-errors {
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.auth-card {
  max-width: 720px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.auth-copy {
  display: grid;
  gap: 14px;
}

.seed-box,
.preview-block,
.details-grid {
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 12px;
}

.details-grid dt {
  color: var(--muted);
}

.details-grid dd {
  margin: 0;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-check input {
  width: auto;
}

.choice-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.choice-chip input {
  width: auto;
}

.mini-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.soft-note {
  margin-top: 6px;
  font-size: 0.9rem;
}

.comparison-card {
  margin-bottom: 12px;
  padding: 14px;
}

.comparison-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 10px;
}

.comparison-summary-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.comparison-summary-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.comparison-summary-card strong {
  font-size: 1rem;
}

.comparison-summary-card small {
  color: var(--muted);
  line-height: 1.4;
}

.comparison-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.offer-row.is-best {
  background: #f7fbf7;
}

.offer-row.is-selected {
  background: #fff8eb;
}

.row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.comparison-card textarea {
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
}

.selection-tools {
  align-items: stretch;
}

.history-insight-grid {
  margin-bottom: 12px;
}

.supplier-pick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.supplier-pick-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.supplier-pick-card input {
  width: auto;
  margin-top: 4px;
}

.supplier-pick-copy {
  display: grid;
  gap: 10px;
}

.quote-search-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.selection-tools {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.supplier-search-card {
  grid-template-columns: 1fr;
}

.supplier-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.table-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product-picker {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.product-picker-results {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.product-picker-option {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.product-picker-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.product-picker-option span,
.product-picker-option small,
.product-picker-empty {
  color: var(--muted);
}

.product-picker-empty {
  padding: 8px 2px;
  font-size: 0.95rem;
}

.pagination-bar {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.pagination-page.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.pagination-spacer {
  min-width: 120px;
}

.bulk-toolbar {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.bulk-toolbar-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.bulk-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
}

.bulk-select-chip input {
  width: auto;
}

.signal-line {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
}

.signal-success {
  color: var(--success);
}

.signal-danger {
  color: var(--accent-strong);
}

.signal-muted {
  color: var(--muted);
}

.subtle-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: 12px;
}

.supplier-page .subtle-note {
  padding: 8px 10px;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.guide-card {
  background: #ffffff;
}

.supplier-page .guide-card {
  padding: 10px;
}

.supplier-page .guide-list {
  gap: 6px;
}

.process-steps {
  display: grid;
  gap: 12px;
}

.process-step-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.process-step-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.process-step-card strong {
  line-height: 1.2;
}

.process-step-card small {
  color: var(--muted);
  line-height: 1.35;
}

.process-step-card.is-current {
  border-color: #bfd1f5;
  background: var(--accent-soft);
}

.process-step-card.is-done {
  border-color: #d1e8d7;
  background: #edf7ee;
}

.process-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-list {
  display: grid;
  gap: 8px;
}

.guide-item {
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--text);
}

.workflow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.workflow-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.workflow-step {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.details-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.details-block summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 13px;
  font-weight: 600;
  color: var(--text);
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.details-block[open] summary {
  border-bottom: 1px solid var(--line);
}

.details-body {
  padding: 12px;
}

.compact-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.compact-stat {
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.compact-stat strong {
  overflow-wrap: anywhere;
}

.sync-job-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.sync-job-progress {
  display: grid;
  gap: 6px;
}

.sync-job-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5eaf3;
  overflow: hidden;
}

.sync-job-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s ease;
}

.card-stack {
  display: grid;
  gap: 10px;
}

.section-quiet {
  margin-bottom: 12px;
}

.supplier-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.supplier-card-portal-first {
  gap: 14px;
}

.supplier-link-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dbe4f3;
  background: #f8fbff;
}

.supplier-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.supplier-page .supplier-shell {
  max-width: 1040px;
  gap: 10px;
}

.supplier-page .eyebrow {
  margin-bottom: 4px;
}

.supplier-page .card {
  padding: 12px;
}

.supplier-page .supplier-intro h1 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.supplier-page .supplier-intro p {
  margin-bottom: 6px;
}

.supplier-page .section-quiet {
  margin-bottom: 8px;
}

.supplier-form {
  display: grid;
  gap: 14px;
}

.supplier-page .supplier-form {
  gap: 10px;
}

.portal-progress {
  display: grid;
  gap: 10px;
}

.supplier-page .portal-progress {
  gap: 8px;
}

.portal-progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(78, 49, 35, 0.08);
  overflow: hidden;
}

.portal-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d86d40, #8a341b);
}

.portal-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.supplier-page .portal-progress-meta {
  font-size: 0.92rem;
}

.portal-jump-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.supplier-page .portal-jump-list {
  gap: 6px;
}

.portal-jump-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.supplier-page .portal-jump-chip {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.portal-jump-chip.is-current {
  border-color: #bfd1f5;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.portal-jump-chip.is-complete {
  border-color: #d1e8d7;
  background: #edf7ee;
  color: var(--success);
}

.portal-jump-chip.is-pending {
  background: #ffffff;
}

.portal-offer-grid {
  display: grid;
  gap: 16px;
}

.supplier-page .portal-offer-grid {
  gap: 10px;
}

.offer-box {
  padding: 18px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.supplier-page .offer-box {
  padding: 12px;
  gap: 10px;
}

.supplier-page .offer-box h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.portal-choice-chip {
  align-items: flex-start;
}

.portal-choice-chip.is-active {
  border-color: #2f5aa6;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(47, 90, 166, 0.08);
}

.portal-choice-chip span {
  display: grid;
  gap: 4px;
}

.supplier-page .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.supplier-page .portal-choice-chip {
  min-height: 0;
  align-items: center;
  padding: 6px 8px;
  gap: 6px;
  border-radius: 8px;
}

.portal-choice-chip small {
  color: var(--muted);
  line-height: 1.35;
}

.supplier-page .portal-choice-chip strong {
  font-size: 0.94rem;
}

.portal-extra-toggle {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.supplier-page .portal-extra-toggle {
  padding: 8px 10px;
}

.portal-main-hint {
  margin-top: -2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #dce5f3;
}

.supplier-page .portal-main-hint {
  padding: 0;
  font-size: 0.86rem;
  background: transparent;
  border: 0;
}

.supplier-page .details-block > summary {
  padding: 10px 12px;
}

.supplier-guide-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.supplier-page .guide-item {
  padding: 7px 9px;
  font-size: 0.92rem;
}

.portal-main-fields {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.supplier-page .portal-main-fields {
  gap: 10px;
}

.supplier-page input.is-readonly {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

.supplier-page .portal-step .section-head h2 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.supplier-page .portal-step .section-head p {
  margin-bottom: 0;
}

.supplier-page .portal-step .section-head {
  gap: 8px;
}

.supplier-page .portal-step .badge {
  font-size: 0.8rem;
}

.supplier-page .portal-nav {
  gap: 8px;
}

.supplier-page .portal-step {
  padding: 10px;
}

.portal-readonly-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.portal-readonly-grid {
  display: grid;
  gap: 10px;
}

.portal-summary-grid {
  grid-template-columns: 150px 1fr;
  margin-top: 4px;
}

.supplier-page .portal-extra-toggle {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 0.88rem;
}

.sticky-actions {
  position: static;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.supplier-page .sticky-actions {
  padding: 10px 12px;
  gap: 10px;
}

@media (max-width: 900px) {
  .supplier-page .choice-grid {
    grid-template-columns: 1fr;
  }
}

.preview-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.list-builder-card {
  display: grid;
  gap: 14px;
  background: #fcfdff;
  border: 1px solid #dce5f3;
}

.need-item-list {
  display: grid;
  gap: 12px;
}

.need-item-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #ffffff;
}

.need-item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.need-item-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(120px, 0.75fr)) minmax(0, 1.7fr);
}

.need-item-product-field {
  min-width: 0;
  grid-column: 1 / -1;
}

.need-item-short-field {
  min-width: 0;
  grid-column: span 1;
}

.need-item-wide-field {
  min-width: 0;
  grid-column: span 2;
}

.list-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
}

.product-picker {
  position: relative;
}

.product-picker-meta {
  margin-top: 6px;
}

.product-picker-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  max-height: 220px;
  overflow: auto;
}

.integration-meta-grid {
  grid-template-columns: 110px minmax(0, 1fr);
}

.inline-break {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-picker-option {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.product-picker-option:hover {
  border-color: #bfd0f1;
  background: #f8fbff;
}

.product-picker-option.is-disabled {
  cursor: not-allowed;
  background: #f8fafc;
  color: var(--muted);
}

.product-picker-option.is-disabled:hover {
  border-color: var(--line);
  background: #f8fafc;
}

.product-picker-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-picker-option-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.product-picker-empty {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.choice-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 0;
}

.choice-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 920px) {
  .page-shell {
    padding: 12px 14px 22px;
    gap: 12px;
  }

  .topbar-shell {
    position: static;
  }

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

  .topbar-start,
  .topbar-end,
  .topbar-nav,
  .logout-form,
  .page-head,
  .section-head,
  .comparison-head,
  .supplier-card-head,
  .portal-progress-meta,
  .sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-nav {
    justify-content: flex-start;
    border-radius: 16px;
  }

  .topbar-nav-divider {
    display: none;
  }

  .topbar-end {
    justify-content: space-between;
  }

  .topbar-user {
    width: 100%;
  }

  .topbar-link {
    width: 100%;
  }

  .workflow-strip-head {
    flex-direction: column;
  }

  .workflow-strip-grid {
    grid-template-columns: 1fr;
  }

  .supplier-grid,
  .comparison-grid,
  .supplier-pick-grid,
  .quote-search-layout,
  .selection-tools {
    grid-template-columns: 1fr;
  }

  .need-item-grid {
    grid-template-columns: 1fr;
  }

  .need-item-product-field,
  .need-item-short-field,
  .need-item-wide-field,
  .list-meta-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .portal-summary-grid {
    grid-template-columns: 1fr;
  }

  .process-step-grid {
    grid-template-columns: 1fr 1fr;
  }
}
