:root {
  --ink: #111827;
  --muted: #687182;
  --line: #dde3ea;
  --paper: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f1f4f6;
  --dark: #0d0d0d;
  --dark-2: #151515;
  --orange: #ff6a00;
  --orange-soft: #fff0e6;
  --blue: #2557a7;
  --green: #2f7a59;
  --gold: #b87514;
  --red: #b0453e;
  --violet: #6b4fb3;
  --shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 1px 0 rgba(17, 24, 39, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(255, 106, 0, 0.72);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: 64px 236px minmax(0, 1fr);
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  background: var(--dark);
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  min-height: 100vh;
  padding: 24px;
  width: 100%;
}

.auth-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 18px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.auth-card > img {
  border-radius: 8px;
  height: 72px;
  width: 72px;
}

.auth-card > div > p {
  color: var(--orange);
  font-size: 12px;
  font-weight: 1000;
  margin: 0 0 5px;
}

.auth-card h1 {
  font-size: 34px;
  line-height: 1;
  margin: 0;
}

.auth-card > div > span {
  color: var(--muted);
  display: block;
  margin-top: 7px;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card .primary-action {
  margin-top: 4px;
}

.auth-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 36px;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-error {
  background: #ffecea;
  border: 1px solid #ffc8c2;
  border-radius: 8px;
  color: var(--red);
  font-weight: 800;
  line-height: 1.4;
  padding: 10px 12px;
}

.auth-notice {
  background: #e9f6ef;
  border: 1px solid #b9dfca;
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
  line-height: 1.4;
  padding: 10px 12px;
}

.organization-rail {
  align-items: center;
  background: #050505;
  border-right: 1px solid #242424;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  padding: 10px 8px;
  position: sticky;
  top: 0;
  z-index: 24;
}

.platform-mark,
.organization-button,
.organization-action {
  align-items: center;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.platform-mark {
  background: #111;
}

.platform-mark img,
.organization-button img {
  border-radius: 7px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.organization-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.organization-list::-webkit-scrollbar {
  display: none;
}

.organization-button {
  background: #171717;
  font-size: 13px;
  font-weight: 900;
  position: relative;
}

.organization-button::before {
  background: var(--organization-color, var(--orange));
  border-radius: 0 3px 3px 0;
  content: "";
  height: 0;
  left: -9px;
  position: absolute;
  transition: height 140ms ease;
  width: 4px;
}

.organization-button:hover,
.organization-button.active {
  background: #fff;
  color: #111;
}

.organization-button.active::before {
  height: 30px;
}

.organization-rail-footer {
  display: grid;
  gap: 8px;
}

.organization-action {
  background: #141414;
  font-size: 12px;
  font-weight: 900;
}

.organization-action.active,
.organization-action:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.sidebar {
  background: var(--dark);
  border-right: 1px solid #242424;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px;
}

.tenant-avatar {
  align-items: center;
  background: var(--organization-color, var(--orange));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 13px;
  font-weight: 1000;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.tenant-brand strong {
  letter-spacing: 0;
}

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

.brand-logo {
  border-radius: 8px;
  flex: 0 0 44px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong span {
  color: var(--orange);
}

.brand small {
  color: #a8a8a8;
  display: block;
  font-size: 12px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-list,
.box-stack {
  display: grid;
  gap: 8px;
}

.mobile-nav-list {
  display: none;
}

.nav-button,
.box-row {
  align-items: center;
  border: 1px solid #262626;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.nav-button {
  background: #121212;
}

.nav-button.active,
.nav-button:hover {
  background: #ffffff;
  color: var(--dark);
}

.nav-button.active {
  box-shadow: inset 4px 0 0 var(--orange);
}

.section-label {
  color: #989898;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.box-row {
  background: #141414;
  justify-content: space-between;
}

.box-row.selected {
  border-color: var(--orange);
}

.box-row strong,
.box-row small {
  display: block;
}

.box-row small {
  color: #a8a8a8;
  margin-top: 3px;
}

.filter-bar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
  padding: 12px;
}

.filter-bar > div:first-child span,
.filter-bar > div:first-child strong {
  display: block;
}

.filter-bar > div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-bar > div:first-child strong {
  margin-top: 3px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-chip {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
}

.filter-chip.selected {
  border-color: var(--orange);
  box-shadow: inset 3px 0 0 var(--orange);
}

.filter-chip strong,
.filter-chip small {
  display: block;
  line-height: 1.05;
}

.filter-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.workspace {
  align-content: start;
  display: grid;
  gap: 14px;
  grid-auto-rows: max-content;
  grid-template-rows: none;
  min-width: 0;
  padding: 20px;
}

.topbar {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 1 560px;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.topbar p,
.panel-heading p,
.inspector-title p {
  color: #7a8494;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.topbar h1,
.panel-heading h2,
.inspector-title h2,
.shipping-guide h2 {
  letter-spacing: 0;
  margin: 0;
}

.topbar h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.search-box,
.input-with-icon {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
}

.search-box {
  flex: 1 1 280px;
  padding: 0 12px;
}

.status-strip {
  background: var(--orange-soft);
  border: 1px solid #ffd0ad;
  border-radius: 8px;
  color: #9a3e00;
  font-weight: 800;
  padding: 10px 12px;
}

.search-box input,
.input-with-icon input {
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.search-box input {
  background: transparent;
  height: 44px;
}

.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.metric {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.metric > span {
  align-items: center;
  background: var(--dark);
  border-radius: 8px;
  color: var(--orange);
  display: grid;
  flex: 0 0 40px;
  height: 40px;
  place-items: center;
  width: 40px;
}

.metric svg {
  height: 20px;
  width: 20px;
}

.mini-icon {
  align-items: center;
  display: inline-grid;
  font-size: 11px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 22px;
}

.metric strong,
.metric small {
  display: block;
}

.metric strong {
  font-size: 22px;
  line-height: 1.1;
}

.metric small {
  color: var(--muted);
  margin-top: 4px;
}

.work-grid,
.inventory-layout,
.operator-dashboard,
.sell-layout,
.shipping-layout {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.work-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

.scan-panel,
.ai-panel,
.inventory-list,
.inspector,
.day-focus,
.task-card,
.sell-column,
.shipping-queue,
.shipping-guide,
.route-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scan-panel,
.ai-panel,
.inventory-list,
.day-focus,
.task-card,
.sell-column,
.shipping-queue,
.shipping-guide,
.route-column {
  padding: 18px;
}

.operator-dashboard {
  align-content: start;
}

@media (min-width: 1181px) {
  .workspace.view-today {
    align-content: start;
    grid-auto-rows: max-content;
    grid-template-rows: none;
  }

  .workspace.view-today .metrics {
    gap: 10px;
  }

  .workspace.view-today .metric {
    min-height: 64px;
    padding: 10px 12px;
  }

  .workspace.view-today .metric > span {
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
  }

  .workspace.view-today .metric strong {
    font-size: 20px;
  }

  .workspace.view-today .metric small {
    font-size: 12px;
    margin-top: 2px;
  }

  .workspace.view-today .filter-bar {
    padding: 9px 12px;
  }

  .workspace.view-today .day-focus {
    padding: 14px 18px;
  }
}

.day-focus {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.day-focus p,
.task-card-head small,
.sell-section h3 {
  color: var(--muted);
}

.day-focus p {
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.day-focus h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  margin: 0;
}

.day-focus span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.task-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-card {
  align-content: start;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.task-card-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.task-card-head > span {
  align-items: center;
  background: var(--dark);
  border-radius: 8px;
  color: var(--orange);
  display: grid;
  height: 42px;
  place-items: center;
  width: 42px;
}

.task-card-head strong,
.task-card-head small {
  display: block;
  min-width: 0;
}

.task-card-head strong {
  font-size: 18px;
  line-height: 1.1;
}

.task-card-head small {
  line-height: 1.35;
  margin-top: 5px;
}

.task-card-head em,
.queue-count {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.queue-count {
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 6px 10px;
}

.queue-preview,
.listing-queue {
  display: grid;
  gap: 8px;
}

.queue-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 62px;
  min-width: 0;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.queue-row img {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.queue-row strong,
.queue-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-row strong {
  font-size: 14px;
  line-height: 1.18;
  white-space: nowrap;
}

.queue-row small,
.muted-copy {
  color: var(--muted);
  font-size: 13px;
}

.queue-row small {
  margin-top: 4px;
  white-space: nowrap;
}

.muted-copy {
  line-height: 1.45;
  margin: 0;
}

.dev-tools {
  background: #fbfcfd;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px 14px;
}

.dev-tools summary {
  cursor: pointer;
  font-weight: 900;
}

.dev-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.panel-heading h2 {
  font-size: 22px;
}

.icon-button,
.secondary-action,
.primary-action,
.ship-row button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.icon-button,
.ship-row button {
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
}

.photo-drop {
  align-items: center;
  aspect-ratio: 16 / 8;
  background: #e9edf2;
  border: 1px dashed #99a5b3;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  margin-bottom: 16px;
  min-height: 220px;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.photo-drop input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.photo-drop img {
  background: #f5f6f7;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.photo-drop span {
  align-items: center;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

.photo-drop small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.photo-capture-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: -8px 0 12px;
}

.photo-capture-meta span {
  color: var(--orange);
  font-weight: 900;
}

.photo-source-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 16px;
}

.photo-source-actions > button {
  justify-content: center;
  margin: 0;
  min-height: 46px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.photo-source-input {
  display: none;
}

.photo-thumbnails {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.photo-thumbnails > div {
  min-width: 0;
  position: relative;
}

.photo-thumbnails img {
  aspect-ratio: 1;
  background: #f1f3f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  object-fit: contain;
  width: 100%;
}

.photo-thumbnails button {
  align-items: center;
  background: var(--dark);
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 28px;
}

.photo-thumbnails small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
  padding-top: 4px;
}

.workflow-progress {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}

.workflow-progress.vault-progress {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-progress span {
  background: #f1f4f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 8px;
  text-align: center;
}

.workflow-progress span.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--orange);
}

.workflow-progress span.done {
  background: #eef6f1;
  border-color: #a8c9b6;
  color: #286846;
}

.quick-value-card {
  background: var(--dark);
  border: 2px solid var(--orange);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 14px;
}

.quick-value-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.quick-value-heading > div {
  display: grid;
  gap: 2px;
}

.quick-value-heading small,
.quick-value-card > small {
  color: #c9ced6;
  line-height: 1.35;
}

.quick-value-heading strong {
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
}

.quick-value-heading > span {
  border: 1px solid #555b63;
  border-radius: 999px;
  color: #d9dde2;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.quick-value-card p {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.recognition-running,
.recognition-empty {
  display: grid;
  gap: 8px;
  padding: 24px 0;
}

.recognition-running small,
.recognition-empty p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.activity-line {
  background: #e7ebef;
  display: block;
  height: 4px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.activity-line::after {
  animation: recognition-progress 1.2s ease-in-out infinite;
  background: var(--orange);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 38%;
}

@keyframes recognition-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(365%);
  }
}

.evidence-hero {
  align-items: center;
  background: #f2f4f6;
  border-left: 4px solid #7e8996;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 8px 0;
  padding: 14px;
}

.evidence-hero.ready_for_research {
  background: #eef6f1;
  border-color: #2d8156;
}

.evidence-hero.needs_better_photo {
  background: #fff1eb;
  border-color: var(--orange);
}

.evidence-hero > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.evidence-hero > div:first-child strong {
  font-size: 28px;
}

.evidence-hero span,
.evidence-hero small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.recognition-evidence,
.recognition-missing,
.requested-photos,
.release-gate {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.recognition-evidence > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recognition-evidence span {
  background: #eef1f4;
  border-radius: 4px;
  color: var(--ink);
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 7px;
}

.recognition-missing p,
.release-gate p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.requested-photos > div,
.release-gate {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}

.requested-photos span,
.release-gate span {
  overflow-wrap: anywhere;
}

.release-gate {
  background: #fff7f2;
  border: 1px solid #ffc4a6;
  margin-top: 16px;
  padding: 12px;
}

.release-gate p {
  display: grid;
  gap: 2px;
}

.attention-required {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.12);
}

.scan-release-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.scan-release-guide.blocked {
  background: #fff7f2;
  border-color: #ffb98f;
}

.scan-release-guide.ready {
  background: #f2f8f4;
  border-color: #9fcbb0;
}

.scan-release-guide.manual {
  background: #fffaf1;
  border-color: #e6bd73;
}

.release-guide-head,
.release-checklist-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.release-guide-head > div,
.release-checklist-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.release-guide-head small,
.release-checklist-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.release-guide-head > span,
.release-checklist-head > span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.release-guide-list,
.release-checklist-rows {
  display: grid;
  gap: 7px;
}

.release-guide-row,
.release-check-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px;
}

.release-guide-row p,
.release-check-row p {
  display: grid;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.release-guide-row p span,
.release-check-row p span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.release-guide-row.done .mini-icon,
.release-check-row.done .mini-icon {
  background: #e4f3e9;
  color: #227247;
}

.release-guide-row.missing,
.release-check-row.missing {
  border-color: #ffb98f;
}

.release-guide-row.missing .mini-icon,
.release-check-row.missing .mini-icon {
  background: #fff0e7;
  color: #b74c00;
}

.release-guide-row.upcoming,
.release-check-row.pending {
  opacity: 0.72;
}

.release-guide-action {
  justify-content: center;
  margin: 0;
  width: 100%;
}

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

.quiet-action {
  background: transparent;
}

.manual-review-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: -3px 0 0;
}

.release-checklist {
  background: #fff7f2;
  border: 1px solid #ffb98f;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.release-checklist.complete {
  background: #f2f8f4;
  border-color: #9fcbb0;
}

.release-check-row button {
  background: var(--surface);
  border: 1px solid #f18a4b;
  border-radius: 6px;
  color: #9f4309;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 9px;
}

.release-check-row button:disabled {
  border-color: var(--line);
  color: var(--muted);
}

.release-channel-choice {
  display: grid;
  gap: 7px;
}

.release-channel-choice > strong {
  font-size: 12px;
}

.release-channel-choice .segment-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.release-channel-choice .segment-control button {
  align-content: center;
  display: grid;
  gap: 2px;
  justify-items: center;
}

.release-channel-choice .segment-control strong,
.release-channel-choice .segment-control small {
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

.release-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.release-fields summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 0;
}

.release-fields summary span {
  font-weight: 900;
}

.release-fields summary strong {
  color: var(--muted);
  font-size: 12px;
}

.release-fields-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 12px;
}

.release-fields-form .secondary-action {
  grid-column: 1 / -1;
  justify-content: center;
  margin: 0;
}

.release-fields-form .field.missing input,
.release-fields-form .field.missing select {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.1);
}

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

.field {
  display: grid;
  gap: 6px;
}

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

.field input,
.field select {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  height: 44px;
  min-width: 0;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.input-with-icon {
  background: #fbfcfd;
  padding: 0 12px;
}

.input-with-icon input {
  background: transparent;
  height: 42px;
  padding: 0;
}

.primary-action,
.secondary-action {
  border: 0;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

.primary-action {
  background: var(--orange);
  color: #fff;
  margin-top: 16px;
  width: 100%;
}

.inline-action {
  width: auto;
}

.secondary-action {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--orange);
  color: #9a3e00;
}

.price-range {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  margin: 18px 0 12px;
}

.price-range strong {
  color: var(--orange);
  font-size: clamp(38px, 5vw, 58px);
}

.price-range span:last-child {
  text-align: right;
}

.confidence {
  background: #e5e9ef;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.confidence span {
  background: var(--orange);
  display: block;
  height: 100%;
}

.suggestion-list,
.price-grid,
.detail-grid {
  display: grid;
  gap: 10px;
}

.suggestion-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.suggestion,
.callout,
.script-box,
.research {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.suggestion {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.suggestion small {
  color: var(--muted);
  font-weight: 700;
}

.suggestion strong {
  overflow-wrap: anywhere;
}

.callout {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
}

.callout p {
  margin: 0;
}

.inventory-layout {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
}

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 220px);
  min-width: 0;
  overflow: auto;
}

.item-row,
.route-item {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  text-align: left;
  width: 100%;
}

.item-row {
  align-items: start;
  grid-template-columns: 62px minmax(0, 1fr) minmax(58px, max-content);
  flex: 0 0 auto;
  min-height: 88px;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
}

.item-row.active {
  border-color: var(--orange);
  box-shadow: inset 3px 0 0 var(--orange);
}

.item-row img,
.route-item img,
.ship-row img {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 62px;
  object-fit: cover;
  width: 62px;
}

.item-row strong,
.item-row small,
.route-item strong,
.route-item small {
  display: block;
  min-width: 0;
}

.item-row > span {
  align-content: start;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.item-row strong,
.route-item strong,
.campaign-item strong,
.show-runlist-row strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  line-height: 1.18;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.item-row strong {
  font-size: 15px;
  font-weight: 900;
}

.item-row small,
.route-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.22;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.source-strip {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.item-row em {
  align-self: center;
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
  justify-self: end;
  line-height: 1;
  white-space: nowrap;
}

.row-meta {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.demo-badge {
  background: #111827;
  border-radius: 999px;
  color: var(--orange);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 7px;
  vertical-align: middle;
  white-space: nowrap;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 900;
  padding: 0;
}

.breadcrumb strong {
  color: var(--ink);
}

.inspector {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  min-height: 0;
  overflow: hidden;
}

.inspector-media {
  background: #dce3ea;
  min-height: 100%;
}

.inspector-media img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}

.inspector-content {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.inspector-title {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.inspector-title h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.channel-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
}

.channel-badge.ebay {
  background: #e8f0ff;
  color: var(--blue);
}

.channel-badge.strongvision {
  background: #e7f5ed;
  color: var(--green);
}

.channel-badge.whatnot {
  background: var(--orange-soft);
  color: #9a3e00;
}

.channel-badge.kleinanzeigen,
.channel-badge.facebookmarketplace {
  background: #e7f5ed;
  color: #166534;
}

.channel-badge.vinted,
.channel-badge.spezialforum,
.channel-badge.ramrodshop {
  background: #e8f0ff;
  color: var(--blue);
}

.channel-badge.pruefen,
.channel-badge.bundle {
  background: #fff6df;
  color: var(--gold);
}

.channel-badge.problemfall {
  background: #ffecea;
  color: var(--red);
}

.price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draft-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draft-actions .secondary-action {
  justify-content: center;
  min-height: 42px;
}

.segment-control {
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px;
}

.segment-control button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
}

.segment-control button.selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.segment-control button.locked {
  cursor: not-allowed;
  opacity: 0.55;
}

.segment-control span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-control strong,
.segment-control small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-control small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.channel-picker {
  display: grid;
  gap: 8px;
}

.channel-picker-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.channel-picker-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-picker-head button {
  background: transparent;
  border: 0;
  color: #b74c00;
  font-size: 13px;
  font-weight: 900;
  padding: 0;
}

.channel-picker .segment-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-picker p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.research,
.script-box {
  padding: 14px;
}

.research.compact p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.price-check-card,
.ebay-draft-card {
  display: grid;
  gap: 10px;
}

.ebay-draft-card {
  border-top: 3px solid var(--orange);
}

.ebay-listing-head,
.ebay-preview-title,
.ebay-publish-actions,
.ebay-external-status {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.ebay-listing-head small,
.ebay-preview-copy small,
.ebay-policy-grid small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ebay-listing-head h3 {
  font-size: 22px;
  margin: 2px 0 0;
}

.ebay-preview-title {
  background: #0d0d0d;
  color: #fff;
  padding: 14px;
}

.ebay-preview-title strong {
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ebay-preview-title em {
  color: var(--orange);
  flex: 0 0 auto;
  font-size: 22px;
  font-style: normal;
  font-weight: 950;
}

.ebay-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ebay-preview-meta span {
  background: #f1f3f5;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
}

.ebay-auction-warning {
  background: #fff4e9;
  border: 1px solid #ffc99f;
  border-left: 4px solid var(--orange);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.ebay-auction-warning strong,
.ebay-auction-warning span {
  display: block;
  overflow-wrap: anywhere;
}

.ebay-auction-warning span {
  color: #914100;
  font-size: 12px;
  line-height: 1.4;
}

.listing-copy-agent {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  background: #fff;
}

.listing-copy-agent.ready {
  border-left-color: var(--green);
  background: #f5fbf8;
}

.listing-copy-agent.blocked {
  border-left-color: #b74900;
  background: #fff8f2;
}

.listing-copy-agent.legacy {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.listing-copy-agent.legacy > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: var(--orange);
  background: #0d0d0d;
  font-weight: 900;
}

.listing-copy-agent.legacy > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.listing-copy-agent.legacy p,
.listing-copy-agent.legacy small {
  margin: 0;
  color: var(--muted);
}

.listing-copy-agent header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.listing-copy-agent header > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: var(--orange);
  background: #0d0d0d;
  font-weight: 900;
}

.listing-copy-agent header div,
.listing-copy-agent header strong,
.listing-copy-agent header small {
  min-width: 0;
}

.listing-copy-agent header div {
  display: grid;
  gap: 2px;
}

.listing-copy-agent header small,
.listing-copy-agent header em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.listing-copy-agent > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.listing-copy-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-copy-checks span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.listing-copy-checks span.done {
  color: #24694e;
  border-color: #b7dbc9;
}

.listing-copy-checks span.missing {
  color: #9c3d00;
  border-color: #ffc79f;
}

.listing-copy-questions {
  display: grid;
  gap: 8px;
}

.listing-copy-questions > article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #ffd3b5;
  background: #fff;
}

.listing-copy-questions article > span {
  padding: 4px 6px;
  background: #fff1e6;
  color: #9c3d00;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-copy-questions article > div,
.listing-copy-agent form,
.listing-copy-agent form > div,
.listing-copy-agent form label {
  display: grid;
  gap: 6px;
}

.listing-copy-questions small,
.listing-copy-agent form label > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.listing-copy-agent form > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.listing-copy-agent form label,
.listing-copy-agent form input {
  min-width: 0;
  width: 100%;
}

.listing-copy-agent form label > span {
  font-weight: 800;
}

.listing-copy-agent form button {
  justify-self: start;
}

.ebay-preview-copy {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebay-preview-copy > div,
.ebay-policy-grid article,
.ebay-readiness,
.ebay-missing-form,
.ebay-external-status {
  border: 1px solid var(--line);
  padding: 12px;
}

.ebay-preview-copy p,
.ebay-policy-grid span,
.ebay-missing-form p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.ebay-policy-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebay-policy-grid article {
  display: grid;
  gap: 3px;
}

.ebay-policy-grid strong {
  overflow-wrap: anywhere;
}

.ebay-readiness {
  display: grid;
  gap: 0;
}

.ebay-readiness-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 52px;
}

.ebay-readiness-row:first-of-type {
  border-top: 0;
}

.ebay-readiness-row .mini-icon {
  background: #fff2e8;
  color: #a33b00;
}

.ebay-readiness-row.done .mini-icon {
  background: #e9f5ee;
  color: #267a50;
}

.ebay-readiness-row span,
.ebay-readiness-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ebay-readiness-row small {
  color: var(--muted);
  margin-top: 2px;
}

.ebay-missing-form {
  display: grid;
  gap: 10px;
}

.ebay-missing-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebay-missing-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ebay-missing-grid label span {
  font-size: 12px;
  font-weight: 900;
}

.ebay-missing-grid input,
.ebay-missing-grid select {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  min-width: 0;
  padding: 10px;
  width: 100%;
}

.ebay-external-status {
  align-items: flex-start;
  background: #f1f8f4;
  border-color: #add3bd;
  flex-direction: column;
  gap: 3px;
}

.ebay-external-status span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ebay-external-status a {
  color: #165e3b;
  font-weight: 900;
}

.ebay-publish-actions {
  justify-content: flex-end;
}

.ebay-publish-actions .secondary-action,
.ebay-publish-actions .primary-action {
  min-height: 44px;
}

.ebay-publish-actions .danger-confirm {
  background: var(--orange);
  color: #0d0d0d;
}

.ebay-safety-note {
  color: var(--muted);
  line-height: 1.4;
}

.kleinanzeigen-draft-card {
  border-left: 4px solid #2d7d46;
}

.kleinanzeigen-draft-card .preserve-lines {
  white-space: pre-line;
}

.kleinanzeigen-connector {
  align-items: center;
  background: #f6f7f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
  padding: 14px;
}

.kleinanzeigen-connector.ready {
  background: #f1f8f4;
  border-color: #add3bd;
}

.kleinanzeigen-connector > div {
  min-width: 0;
}

.kleinanzeigen-connector small,
.kleinanzeigen-connector strong,
.kleinanzeigen-connector p {
  display: block;
  overflow-wrap: anywhere;
}

.kleinanzeigen-connector small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kleinanzeigen-connector p {
  color: var(--muted);
  margin: 4px 0 0;
}

.kleinanzeigen-connector .secondary-action,
.kleinanzeigen-connector .status-pill {
  flex: 0 0 auto;
}

.applied-price {
  align-items: center;
  background: #0d0d0d;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
  padding: 14px;
}

.applied-price small,
.applied-price span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-weight: 800;
}

.applied-price strong {
  color: var(--orange);
  display: block;
  font-size: 34px;
  line-height: 1;
  margin: 4px 0;
}

.applied-price p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
  margin: 0;
}

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

.calculation-box > strong {
  font-size: 14px;
}

.calculation-box > p {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

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

.calculation-grid .suggestion {
  background: #f7f9fb;
  padding: 9px;
}

.research h3,
.script-box h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.section-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.section-title h3 {
  margin: 0;
}

.status-pill,
.source-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  min-height: 24px;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill {
  background: #0d0d0d;
  color: var(--orange);
}

.status-pill.live {
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: #b84b00;
}

.status-pill.running {
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: #b84b00;
}

.status-pill.failed {
  background: #ffecea;
  border: 1px solid #ffc8c2;
  color: var(--red);
}

.status-pill.muted,
.source-pill {
  background: #eef2f5;
  color: var(--muted);
}

.automation-progress {
  border-left: 4px solid var(--orange);
}

.automation-progress.failed {
  border-left-color: var(--red);
}

.automation-progress > small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

.sales-strategy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.strategy-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.strategy-head small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.strategy-head h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.strategy-action {
  background: var(--dark);
  border-radius: 999px;
  color: var(--orange);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  max-width: 190px;
  padding: 7px 10px;
  text-align: center;
}

.strategy-rationale {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

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

.ebay-sale-mode {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  margin: 0;
  min-width: 0;
  padding: 12px;
}

.ebay-sale-mode legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  padding: 0 5px;
}

.ebay-sale-mode-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebay-sale-mode-options button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 58px;
  padding: 9px 11px;
  text-align: left;
}

.ebay-sale-mode-options button > span:first-child {
  align-items: center;
  background: #0d0d0d;
  border-radius: 6px;
  color: var(--orange);
  display: flex;
  font-size: 11px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.ebay-sale-mode-options button strong,
.ebay-sale-mode-options button small {
  display: block;
  overflow-wrap: anywhere;
}

.ebay-sale-mode-options button small {
  color: var(--muted);
  margin-top: 2px;
}

.ebay-sale-mode-options button.selected {
  border-color: var(--orange);
  box-shadow: inset 3px 0 0 var(--orange);
}

.ebay-sale-mode-options button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.ebay-sale-mode > p,
.ebay-sale-mode-lock {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.ebay-sale-mode-lock {
  color: var(--gold);
  font-weight: 850;
}

.repair-decision {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.repair-decision.repair_recommended,
.repair-decision.repair_if_cheap,
.repair-decision.needs_quote {
  border-left-color: var(--gold);
}

.repair-decision.do_not_repair,
.repair-decision.parts_or_defect {
  border-left-color: var(--red);
}

.repair-decision > div:first-child small,
.repair-decision > div:first-child strong {
  display: block;
}

.repair-decision > div:first-child small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.repair-decision > div:first-child strong {
  margin-top: 4px;
}

.repair-decision p {
  color: var(--muted);
  line-height: 1.4;
  margin: 5px 0 0;
}

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

.strategy-caveat {
  color: var(--muted);
  line-height: 1.35;
}

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

.strategy-checklist {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 11px;
}

.strategy-checklist > strong {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}

.strategy-checklist ul {
  color: var(--muted);
  display: grid;
  gap: 5px;
  line-height: 1.35;
  margin: 0;
  padding-left: 17px;
}

.strategy-checklist span {
  color: var(--muted);
  font-size: 13px;
}

.defect-strip {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.defect-strip strong {
  font-size: 11px;
  text-transform: uppercase;
}

.defect-strip span {
  color: #8a430d;
  line-height: 1.35;
}

.approval-bar {
  align-items: center;
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px;
}

.approval-bar > div {
  min-width: 0;
}

.approval-bar strong,
.approval-bar span {
  display: block;
}

.approval-bar span {
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.approval-bar .primary-action {
  flex: 0 0 auto;
  margin: 0;
}

.approval-bar.approved {
  box-shadow: inset 4px 0 0 var(--green);
}

.primary-action:disabled {
  background: #4b4b4b;
  color: #bdbdbd;
  cursor: not-allowed;
}

.evidence-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px;
}

.evidence-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.evidence-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.evidence-row.outlier {
  opacity: 0.68;
}

.evidence-row.rejected {
  background: #f7f8fa;
  border-style: dashed;
  opacity: 0.82;
}

.rejected-evidence {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rejected-evidence summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.evidence-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.evidence-main a,
.evidence-main strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.evidence-main a:hover {
  color: #b84b00;
  text-decoration: underline;
}

.evidence-main small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.evidence-row em {
  color: var(--orange);
  font-style: normal;
  font-weight: 1000;
}

.price-notes {
  color: var(--muted);
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.price-notes li {
  line-height: 1.35;
}

.research-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 90px minmax(0, 1fr) auto 74px;
  min-height: 40px;
}

.research-row:first-of-type {
  border-top: 0;
}

.research-row span,
.research-row small {
  color: var(--muted);
}

.research-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-row em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.script-box p,
.shipping-guide p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.routing-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  overflow: auto;
  padding-bottom: 6px;
}

.campaigns-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  min-height: 0;
}

.sell-layout {
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
}

.sell-column {
  align-content: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.sell-section {
  display: grid;
  gap: 8px;
}

.sell-section h3 {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.listing-row {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.listing-row .queue-row {
  background: transparent;
  border: 0;
  min-height: 54px;
  padding: 0;
}

.listing-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-actions .secondary-action {
  min-height: 38px;
  padding: 0 10px;
}

.compact-empty {
  min-height: 180px;
}

.campaigns-list,
.show-console,
.empty-state,
.whatnot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.campaigns-list,
.show-console,
.empty-state,
.whatnot-card {
  padding: 18px;
}

.campaigns-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

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

.campaign-card-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.campaign-card-head > span {
  align-items: center;
  background: var(--dark);
  border-radius: 8px;
  color: var(--orange);
  display: grid;
  height: 42px;
  place-items: center;
  width: 42px;
}

.campaign-card-head strong,
.campaign-card-head small {
  display: block;
  min-width: 0;
}

.campaign-card-head strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.campaign-card-head small {
  color: var(--muted);
  margin-top: 4px;
}

.campaign-card-head em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

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

.campaign-items,
.show-runlist {
  display: grid;
  gap: 6px;
}

.campaign-item,
.show-runlist-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: left;
  width: 100%;
}

.campaign-item {
  grid-template-columns: 26px 44px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 6px 8px;
}

.campaign-item span,
.show-runlist-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.campaign-item img {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.campaign-item strong,
.show-runlist-row strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.campaign-item em,
.show-runlist-row em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.show-console {
  align-self: start;
  display: grid;
  gap: 14px;
}

.show-preview {
  display: grid;
  gap: 14px;
}

.show-hero {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr);
}

.show-hero img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.show-hero small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.show-hero h3 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  margin: 6px 0 10px;
}

.show-hero p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.show-runlist-row {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 8px 10px;
}

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

.whatnot-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.whatnot-card-head span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  text-transform: uppercase;
}

.empty-state {
  align-content: center;
  display: grid;
  justify-items: start;
  min-height: 320px;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

.channel-plan-layout {
  display: grid;
  gap: 14px;
}

.channel-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.channel-plan-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.item-next-step {
  align-items: center;
  background: #0d0d0d;
  border: 1px solid #292929;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(13, 13, 13, 0.16);
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) max-content;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 12;
}

.item-next-step.complete {
  border-left-color: var(--green);
}

.item-next-step > div {
  min-width: 0;
}

.item-next-step small,
.item-next-step strong,
.item-next-step span {
  display: block;
}

.item-next-step small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.item-next-step strong {
  font-size: 17px;
  line-height: 1.2;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.item-next-step span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.item-next-step .primary-action,
.item-next-step .secondary-action {
  justify-content: center;
  max-width: 280px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.item-next-step .danger-confirm {
  background: var(--orange);
  color: #0d0d0d;
}

@media (max-width: 1180px) {
  .item-next-step {
    grid-template-columns: 1fr;
    position: static;
  }

  .item-next-step .primary-action,
  .item-next-step .secondary-action {
    max-width: none;
    width: 100%;
  }
}

.channel-plan-row strong,
.channel-plan-row small {
  display: block;
}

.channel-plan-row small {
  color: var(--muted);
  margin-top: 5px;
}

.channel-plan-row p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.channel-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-action-tags span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.channel-action-tags .ready {
  background: #e7f5ed;
  color: var(--green);
}

.channel-action-tags .hold {
  background: #fff6df;
  color: var(--gold);
}

.route-column {
  box-shadow: none;
}

.route-heading {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 12px;
}

.route-heading span {
  background: #eef2f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.route-item {
  grid-template-columns: 54px minmax(0, 1fr);
  margin-top: 8px;
  min-height: 72px;
  padding: 8px;
}

.route-item img {
  height: 54px;
  width: 54px;
}

.shipping-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.shipping-queue {
  display: grid;
  gap: 10px;
}

.ship-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 62px minmax(0, 1fr) 80px 80px 42px;
  min-height: 80px;
  padding: 8px;
}

.ship-row strong,
.ship-row span {
  display: block;
}

.ship-row span {
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ship-row small {
  color: var(--muted);
  font-weight: 800;
}

.shipping-guide {
  align-self: start;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.guide-steps span {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  padding: 12px;
}

.admin-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.admin-content {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
}

.admin-organizations,
.admin-create {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 18px;
}

.organization-cards {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.organization-card {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(150px, 1fr) repeat(3, minmax(72px, auto)) 18px;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.organization-card:hover {
  border-color: var(--orange);
}

.organization-card-avatar {
  align-items: center;
  background: var(--organization-color, var(--orange));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 1000;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.organization-card-main,
.organization-card-metric {
  min-width: 0;
}

.organization-card-main strong,
.organization-card-main small,
.organization-card-metric strong,
.organization-card-metric small {
  display: block;
}

.organization-card-main strong {
  overflow-wrap: anywhere;
}

.organization-card-main small,
.organization-card-metric small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.organization-card-metric {
  text-align: right;
}

.organization-card-metric.warning strong {
  color: var(--orange);
}

.organization-card-arrow {
  color: var(--muted);
  font-size: 24px;
}

.organization-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.organization-form .primary-action {
  justify-content: center;
  margin-top: 4px;
  width: 100%;
}

.organization-form input[type="color"] {
  min-height: 44px;
  padding: 4px;
  width: 100%;
}

.admin-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 16px 0 0;
}

.capture-mode {
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.capture-mode button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
  min-height: 42px;
}

.capture-mode button.selected {
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  color: var(--ink);
}

.batch-instruction,
.batch-explainer {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.batch-instruction span,
.batch-explainer p {
  color: #8a430d;
  line-height: 1.4;
  margin: 0;
}

.capture-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.capture-details summary,
.strategy-details summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 13px 0;
}

.capture-details .form-grid {
  padding-bottom: 12px;
}

.batch-capture-actions,
.batch-summary-actions,
.sales-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-capture-actions > button {
  flex: 1 1 190px;
  justify-content: center;
  margin: 0;
}

.batch-progress {
  display: grid;
  gap: 9px;
}

.batch-progress > span {
  background: #e5e7eb;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.batch-progress i {
  background: var(--orange);
  display: block;
  height: 100%;
}

.batch-progress small,
.batch-draft-row small {
  color: var(--muted);
}

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

.batch-draft-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-width: 0;
  padding: 8px;
}

.batch-group-photos {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 50px);
}

.batch-group-photos img {
  border-radius: 6px;
  height: 50px;
  object-fit: cover;
  width: 50px;
}

.batch-draft-row strong,
.batch-draft-row small {
  display: block;
  overflow-wrap: anywhere;
}

.batch-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  grid-column: 1 / -1;
}

.batch-group-actions button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  min-height: 32px;
  padding: 5px 8px;
}

.batch-group-actions button:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.review-flow,
.sales-flow {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.batch-summary-card,
.sales-overview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.batch-summary-card {
  border-top: 4px solid var(--orange);
}

.batch-summary-head,
.sales-overview-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.batch-summary-head p,
.sales-overview-head p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.batch-summary-head h2,
.sales-overview-head h2 {
  font-size: 22px;
  margin: 0;
}

.sales-overview-head span {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 5px;
}

.batch-summary-stats,
.sales-overview-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.batch-summary-actions .primary-action,
.batch-summary-actions .secondary-action {
  margin: 0;
}

.item-recommendation {
  color: #a94600 !important;
  font-weight: 900 !important;
}

.recommendation-banner {
  align-items: start;
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.recommendation-banner small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendation-banner h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.recommendation-banner p {
  color: #c7c7c7;
  line-height: 1.4;
  margin: 0;
}

.recommendation-alternatives {
  color: #aeb4bd;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
}

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

.channel-plan-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.channel-plan-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.channel-plan-head small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-plan-head strong {
  overflow-wrap: anywhere;
}

.channel-plan-head > span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.channel-plan-steps {
  display: grid;
  gap: 7px;
}

.channel-plan-step {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #9aa4af;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) minmax(94px, auto);
  min-width: 0;
  padding: 9px;
}

.channel-plan-step.ready {
  border-left-color: var(--green);
}

.channel-plan-step.assisted {
  border-left-color: var(--gold);
}

.channel-plan-step.planned {
  border-left-color: #7e8996;
}

.channel-plan-step.blocked {
  border-left-color: var(--red);
}

.channel-plan-index {
  align-items: center;
  background: var(--dark);
  border-radius: 6px;
  color: var(--orange);
  display: flex;
  font-size: 12px;
  font-weight: 1000;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.channel-plan-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.channel-plan-copy small,
.channel-plan-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-plan-copy strong,
.channel-plan-copy p {
  overflow-wrap: anywhere;
}

.channel-plan-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.channel-plan-status {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.channel-plan-status strong {
  color: var(--orange);
}

.channel-plan-status .channel-price-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-plan-status em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.channel-plan-status .channel-no-price {
  color: var(--muted);
  font-size: 11px;
}

.channel-plan-status span {
  max-width: 150px;
  overflow-wrap: anywhere;
}

.channel-plan-policy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  padding-left: 4px;
}

.strategy-details {
  border-top: 1px solid var(--line);
}

.strategy-details[open] {
  display: grid;
  gap: 12px;
}

.mobile-details-toggle {
  display: none;
}

.mobile-review-accordion {
  display: none;
}

.item-lifecycle-actions {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px;
}

.item-lifecycle-actions > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-lifecycle-actions small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.item-lifecycle-actions p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.archive-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.archive-intro {
  color: var(--muted);
  line-height: 1.5;
  margin: -6px 0 16px;
}

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

.archive-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 10px;
}

.archive-row > img {
  aspect-ratio: 1;
  border-radius: 6px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.archive-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.archive-row strong,
.archive-row span,
.archive-row small {
  overflow-wrap: anywhere;
}

.archive-row span,
.archive-row small {
  color: var(--muted);
  font-size: 12px;
}

.item-secondary-details {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sales-overview-actions .secondary-action {
  margin: 0;
}

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

.sales-tracking-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 62px minmax(180px, 0.8fr) minmax(340px, 1.2fr) 18px;
  min-width: 0;
  padding: 9px;
  text-align: left;
  width: 100%;
}

.sales-tracking-row:hover {
  border-color: var(--orange);
}

.sales-tracking-row > img {
  border-radius: 7px;
  height: 62px;
  object-fit: cover;
  width: 62px;
}

.sales-tracking-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-tracking-copy > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-tracking-copy > small {
  color: var(--muted);
  line-height: 1.25;
}

.tracking-status {
  color: #9a3e00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.tracking-status.sold,
.tracking-status.shipping {
  color: var(--green);
}

.sales-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
}

.sales-timeline i {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-style: normal;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  position: relative;
}

.sales-timeline i::before {
  background: #d8dee6;
  content: "";
  height: 2px;
  left: -50%;
  position: absolute;
  right: 50%;
  top: 5px;
}

.sales-timeline i:first-child::before {
  display: none;
}

.sales-timeline b {
  background: #d8dee6;
  border-radius: 50%;
  height: 12px;
  position: relative;
  width: 12px;
  z-index: 1;
}

.sales-timeline i.done::before,
.sales-timeline i.done b {
  background: var(--orange);
}

.sales-timeline small {
  font-size: 10px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.sales-timeline i.done small {
  color: var(--ink);
  font-weight: 900;
}

.tracking-arrow {
  color: var(--muted);
  font-size: 26px;
}

.sales-empty {
  background: #f7f9fb;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sales-empty p {
  color: var(--muted);
  margin: 6px 0 14px;
}

.assisted-sales {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.assisted-note {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.assisted-sales-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assisted-sales-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px minmax(0, 1fr) 16px;
  min-width: 0;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.assisted-sales-row img {
  border-radius: 6px;
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.assisted-sales-row strong,
.assisted-sales-row small,
.assisted-sales-row em {
  display: block;
  min-width: 0;
}

.assisted-sales-row strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
}

.assisted-sales-row small {
  color: var(--muted);
  margin-top: 3px;
}

.assisted-sales-row em {
  color: #a94600;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  margin-top: 4px;
}

@media (min-width: 1181px) {
  .workspace {
    gap: 14px;
    padding: 20px 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: clamp(32px, 3.1vw, 46px);
    max-width: 760px;
  }

  .topbar-actions {
    flex-basis: 610px;
    padding-top: 10px;
  }

  .metrics {
    gap: 10px;
  }

  .metric {
    min-height: 66px;
    padding: 12px;
  }

  .metric > span {
    flex-basis: 34px;
    height: 34px;
    width: 34px;
  }

  .metric strong {
    font-size: 19px;
  }

  .inventory-layout {
    align-items: stretch;
    grid-template-columns: minmax(390px, 0.42fr) minmax(0, 1fr);
    height: calc(100vh - 284px);
    min-height: 580px;
  }

  .inventory-list {
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding: 16px;
  }

  .item-row {
    grid-template-columns: 56px minmax(0, 1fr) minmax(54px, max-content);
    min-height: 80px;
    padding: 10px;
  }

  .item-row img {
    height: 56px;
    width: 56px;
  }

  .inspector {
    grid-template-columns: minmax(360px, 0.95fr) minmax(340px, 1.05fr);
    height: 100%;
    min-height: 0;
  }

  .inspector-media {
    align-items: center;
    background: #f1f4f7;
    border-right: 1px solid var(--line);
    display: flex;
    justify-content: center;
    min-height: 0;
    padding: 14px;
  }

  .inspector-media img {
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(23, 33, 58, 0.08);
    height: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    width: 100%;
  }

  .inspector-content {
    align-content: start;
    gap: 14px;
    overflow: auto;
    padding: 18px 18px 22px;
  }

  .inspector-title h2 {
    font-size: clamp(24px, 2.1vw, 34px);
  }

  .detail-grid,
  .price-grid {
    gap: 8px;
  }

  .suggestion {
    padding: 10px;
  }
}

@media (min-width: 1181px) and (max-width: 1499px) {
  .inventory-layout {
    grid-template-columns: minmax(320px, 0.36fr) minmax(0, 1fr);
  }

  .inventory-list {
    padding: 12px;
  }

  .item-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(50px, max-content);
  }

  .item-row img {
    height: 48px;
    width: 48px;
  }

  .inspector {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .inspector-media {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 220px;
  }

  .inspector-media img {
    height: 220px;
    max-height: 220px;
  }

  .inspector-content {
    overflow: visible;
    padding: 14px;
  }

  .inspector-title {
    display: grid;
  }

  .inspector-title .channel-badge {
    justify-self: start;
  }

  .price-grid,
  .calculation-grid,
  .evidence-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-picker .segment-control {
    grid-template-columns: 1fr;
  }
}

.agent-control-view {
  display: grid;
  gap: 18px;
  padding: 18px 22px 34px;
}

.agent-hero {
  align-items: end;
  background: var(--dark);
  border-top: 3px solid var(--orange);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 158px;
  padding: 24px 26px;
}

.agent-hero p,
.agent-section .panel-heading p {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.agent-hero h2 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
}

.agent-hero > div > span {
  color: #c7cbd1;
  display: block;
  line-height: 1.45;
  margin-top: 9px;
  max-width: 760px;
}

.agent-provider-state {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
}

.ebay-setup-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.6fr) minmax(180px, 0.55fr);
  padding: 18px 20px;
}

.ebay-setup-panel.complete {
  border-left-color: var(--green);
}

.ebay-setup-copy {
  min-width: 0;
}

.ebay-setup-copy p {
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.ebay-setup-copy h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}

.ebay-setup-copy > span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ebay-setup-steps {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.ebay-setup-steps li {
  align-items: center;
  background: #f5f6f7;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 62px;
  padding: 8px;
}

.ebay-setup-steps li > span {
  align-items: center;
  background: var(--dark);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.ebay-setup-steps li.ready {
  background: #edf7f1;
  border-color: #b8ddc8;
}

.ebay-setup-steps li.ready > span {
  background: var(--green);
}

.ebay-setup-steps strong,
.ebay-setup-steps small {
  display: block;
  overflow-wrap: anywhere;
}

.ebay-setup-steps strong {
  font-size: 12px;
  line-height: 1.2;
}

.ebay-setup-steps small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  margin-top: 3px;
}

.ebay-setup-action {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ebay-setup-action .primary-action,
.ebay-setup-action .secondary-action {
  justify-content: center;
  min-height: 44px;
  white-space: normal;
  width: 100%;
}

.ebay-setup-action small {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.ebay-defaults-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding-top: 16px;
}

.ebay-defaults-heading,
.ebay-defaults-footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
}

.ebay-defaults-heading p {
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.ebay-defaults-heading h3 {
  font-size: 18px;
  margin: 0;
}

.ebay-defaults-heading > span {
  background: #edf7f1;
  border: 1px solid #b8ddc8;
  color: var(--green);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 9px;
}

.ebay-private-note {
  align-items: start;
  background: #fff4ea;
  border: 1px solid #ffc79f;
  border-left: 4px solid var(--orange);
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.ebay-private-note strong {
  font-size: 12px;
}

.ebay-private-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ebay-defaults-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ebay-shipping-logic {
  align-items: center;
  background: #f5f6f7;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) auto;
  padding: 11px 12px;
}

.ebay-shipping-logic strong,
.ebay-shipping-logic > div > span {
  display: block;
}

.ebay-shipping-logic > div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.ebay-shipping-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ebay-shipping-tiers span {
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 850;
  padding: 6px 8px;
}

.ebay-defaults-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ebay-defaults-grid label[hidden] {
  display: none;
}

.ebay-defaults-grid label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ebay-defaults-grid input,
.ebay-defaults-grid select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  min-width: 0;
  padding: 9px 10px;
  width: 100%;
}

.input-suffix {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.input-suffix input {
  border: 0;
}

.input-suffix b {
  color: var(--muted);
  font-size: 11px;
  padding: 0 10px;
}

.ebay-defaults-confirm {
  align-items: start;
  background: #f5f6f7;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.4;
  padding: 11px;
}

.ebay-defaults-confirm input {
  height: 18px;
  margin: 1px 0 0;
  width: 18px;
}

.ebay-defaults-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.ebay-defaults-footer p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  max-width: 720px;
}

.ebay-defaults-footer button {
  flex: 0 0 auto;
  margin-top: 0;
  min-height: 44px;
  width: auto;
}

.agent-state {
  border: 1px solid #d8dee6;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 9px;
}

.agent-state.online,
.agent-step-tags .online {
  background: #eaf6ef;
  border-color: #b8ddc8;
  color: var(--green);
}

.agent-state.waiting,
.agent-step-tags .waiting {
  background: #fff5df;
  border-color: #f1d59c;
  color: #8b5b0a;
}

.agent-state.failed,
.agent-step-tags .failed {
  background: #ffefed;
  border-color: #eac1bd;
  color: var(--red);
}

.agent-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agent-stat {
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 14px 16px;
}

.agent-stat strong {
  font-size: 28px;
}

.agent-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-stat.attention {
  border-color: #f0ba83;
  box-shadow: inset 3px 0 0 var(--orange);
}

.agent-section {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 18px;
}

.agent-mission-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent-mission-card {
  align-content: start;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.agent-mission-icon {
  align-items: center;
  background: var(--dark);
  border-radius: 6px;
  color: var(--orange);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.agent-mission-card h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}

.agent-mission-card p,
.agent-empty p,
.agent-run-row p,
.agent-setup p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.agent-mission-card .primary-action {
  align-self: end;
  justify-content: center;
  min-height: 42px;
  width: 100%;
}

.agent-team-section,
.channel-onboarding-section {
  display: grid;
  gap: 16px;
}

.agent-org-chart {
  display: grid;
  gap: 12px;
}

.agent-lead-card,
.agent-assignment-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
}

.agent-lead-card {
  background: var(--dark);
  color: #fff;
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.agent-lead-card > div,
.agent-assignment-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agent-lead-card small,
.agent-assignment-card small,
.agent-step-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-lead-card p,
.agent-assignment-card p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.agent-lead-card p {
  color: #b8c0cc;
}

.agent-avatar {
  align-items: center;
  background: #111;
  border-radius: 6px;
  color: var(--orange);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.agent-avatar.lead {
  background: var(--orange);
  color: #111;
}

.agent-specialist-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-left: 28px;
  position: relative;
}

.agent-specialist-grid::before {
  background: var(--orange);
  content: "";
  height: 12px;
  left: 49px;
  position: absolute;
  top: -12px;
  width: 2px;
}

.agent-assignment-card {
  background: #f8f9fa;
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.agent-assignment-card > div > span {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.agent-team-empty {
  border: 1px dashed var(--line);
  border-radius: 6px;
  grid-column: 1 / -1;
  padding: 14px;
}

.channel-onboarding-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 0.8fr) minmax(210px, 1.25fr) minmax(130px, 0.75fr) minmax(190px, 1fr) auto;
}

.channel-onboarding-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.channel-onboarding-form label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.channel-onboarding-form input,
.channel-onboarding-form select {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  height: 42px;
  min-width: 0;
  padding: 0 11px;
  width: 100%;
}

.channel-onboarding-form .primary-action {
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}

.channel-onboarding-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.channel-onboarding-safety span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

.channel-onboarding-safety .mini-icon {
  height: 24px;
  width: 24px;
}

.agent-permission-note {
  color: #9d3f00;
  font-size: 12px;
  margin: 0;
}

.approval-list,
.agent-run-list,
.agent-account-list,
.agent-runner-list {
  display: grid;
  gap: 8px;
}

.agent-subheading {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.approval-card {
  align-items: center;
  border: 1px solid #f0ba83;
  box-shadow: inset 3px 0 0 var(--orange);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 14px;
}

.approval-copy {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.approval-copy > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.approval-copy strong,
.approval-copy small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.approval-copy small {
  color: var(--muted);
}

.risk-badge {
  background: #fff1e7;
  border-radius: 4px;
  color: #9d3f00;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 950;
  padding: 6px 8px;
  text-transform: uppercase;
}

.risk-badge.critical {
  background: #ffdfdc;
  color: #8d1f18;
}

.approval-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.approval-actions button {
  min-height: 40px;
}

.approval-actions .reject {
  color: var(--red);
}

.agent-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.agent-run-row {
  border-bottom: 1px solid var(--line);
  padding: 11px 2px 14px;
}

.agent-run-row:last-child {
  border-bottom: 0;
}

.agent-run-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  list-style: none;
}

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

.agent-run-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.agent-run-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-run-summary strong,
.agent-run-summary p {
  overflow-wrap: anywhere;
}

.agent-run-state {
  justify-items: end;
}

.agent-run-state time,
.agent-step-meta time {
  color: var(--muted);
  font-size: 11px;
}

.agent-step-tree {
  display: grid;
  gap: 0;
  margin: 10px 0 0 18px;
}

.agent-step-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 16px 38px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 8px 0;
  position: relative;
}

.agent-tree-line {
  align-self: stretch;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: block;
  margin-bottom: 50%;
}

.agent-step-copy,
.agent-step-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.agent-step-copy p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.agent-step-meta {
  justify-items: end;
}

.agent-account-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 11px 0;
}

.agent-account-row > span {
  align-items: center;
  background: var(--dark);
  border-radius: 5px;
  color: var(--orange);
  display: flex;
  font-size: 11px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
}

.agent-account-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agent-account-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.agent-empty {
  padding: 18px 2px;
}

.agent-empty strong {
  display: block;
  margin-bottom: 5px;
}

.agent-setup {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.agent-setup code {
  background: #f0f2f4;
  border: 1px solid var(--line);
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  white-space: normal;
}

@media (max-width: 1500px) {
  .ebay-setup-panel {
    grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
  }

  .ebay-setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebay-setup-action {
    grid-column: 1 / -1;
    justify-self: end;
    width: min(100%, 300px);
  }
}

@media (max-width: 1180px) {
  .agent-mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .agent-specialist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-onboarding-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-onboarding-form .primary-action {
    width: 100%;
  }
  .app-shell {
    grid-template-columns: 56px 164px minmax(0, 1fr);
  }

  .organization-rail {
    padding-inline: 6px;
  }

  .platform-mark,
  .organization-button,
  .organization-action {
    height: 42px;
    width: 42px;
  }

  .sidebar {
    padding: 16px 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand > div,
  .box-stack {
    display: none;
  }

  .nav-button {
    justify-content: flex-start;
  }

  .nav-button span {
    display: inline;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .work-grid,
  .inventory-layout,
  .campaigns-layout,
  .sell-layout,
  .shipping-layout,
  .inspector {
    grid-template-columns: 1fr;
  }

  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-content {
    grid-template-columns: 1fr;
  }

  .admin-summary {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .inspector-media img {
    max-height: 420px;
    min-height: 320px;
    object-fit: contain;
  }

  .strategy-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .inventory-layout {
    align-items: stretch;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
    height: calc(100vh - 300px);
    min-height: 560px;
  }

  .inventory-list {
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .inspector {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    overflow: auto;
  }

  .inspector-media {
    min-height: 200px;
  }

  .inspector-media img {
    height: 220px;
    max-height: 220px;
    min-height: 200px;
  }

  .inspector-content {
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    bottom: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 8px;
    position: fixed;
    right: 0;
    z-index: 20;
  }

  .organization-rail {
    align-items: center;
    border-bottom: 1px solid #242424;
    border-right: 0;
    flex-direction: row;
    height: 58px;
    left: 0;
    padding: 7px 10px;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
  }

  .platform-mark,
  .organization-button,
  .organization-action {
    flex-basis: 42px;
    height: 42px;
    width: 42px;
  }

  .organization-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .organization-button::before {
    border-radius: 3px 3px 0 0;
    bottom: -8px;
    height: 3px;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    transition: width 140ms ease;
    width: 0;
  }

  .organization-button.active::before {
    height: 3px;
    width: 28px;
  }

  .organization-rail-footer {
    display: flex;
  }

  .brand,
  .box-stack {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .mobile-nav-list {
    display: contents;
  }

  .nav-button {
    border-radius: 8px;
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
    min-height: 50px;
    padding: 6px;
  }

  .nav-button span {
    display: inline;
  }

  .workspace {
    gap: 10px;
    padding: 72px 10px 88px;
  }

  .topbar {
    align-items: stretch;
    display: grid;
    position: relative;
  }

  .topbar > div:first-child {
    padding-right: 48px;
  }

  .topbar-actions {
    align-items: stretch;
    display: grid;
    flex-basis: auto;
  }

  .topbar-actions #sign-out {
    position: absolute;
    right: 0;
    top: 0;
  }

  .search-box {
    flex-basis: auto;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    min-height: 66px;
  }

  .metric strong {
    font-size: 18px;
  }

  .workspace:not(.view-today) .metrics,
  .workspace:not(.view-today) .filter-bar {
    display: none;
  }

  .view-scan .topbar-actions {
    display: none;
  }

  .view-review .review-workspace {
    display: none;
  }

  .mobile-review-accordion {
    display: grid;
    gap: 10px;
  }

  .mobile-review-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    padding: 4px 2px;
  }

  .mobile-review-heading p,
  .mobile-review-heading h2 {
    margin: 0;
  }

  .mobile-review-heading p {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-review-heading h2 {
    font-size: 22px;
  }

  .mobile-review-heading > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

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

  .mobile-review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
  }

  .mobile-review-card.expanded {
    border-color: var(--orange);
    box-shadow:
      inset 3px 0 0 var(--orange),
      var(--shadow);
  }

  .mobile-review-toggle {
    align-items: start;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: 58px minmax(0, 1fr) 46px;
    padding: 10px;
    text-align: left;
    width: 100%;
  }

  .mobile-review-toggle > img {
    aspect-ratio: 1;
    background: #f1f3f5;
    border-radius: 6px;
    height: 58px;
    object-fit: cover;
    width: 58px;
  }

  .mobile-review-title {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-review-title strong,
  .mobile-review-title small,
  .mobile-review-title em {
    overflow-wrap: anywhere;
  }

  .mobile-review-title strong {
    font-size: 15px;
    line-height: 1.25;
  }

  .mobile-review-title small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-review-title em {
    color: #a94600;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.3;
  }

  .mobile-review-count {
    align-items: center;
    display: grid;
    justify-items: center;
  }

  .mobile-review-count strong {
    color: var(--orange);
    font-size: 18px;
  }

  .mobile-review-count small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-review-count i {
    font-size: 22px;
    font-style: normal;
    line-height: 1;
    margin-top: 4px;
  }

  .mobile-review-panel {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .mobile-review-facts {
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr;
  }

  .item-lifecycle-actions {
    align-items: stretch;
    display: grid;
  }

  .item-lifecycle-actions .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .archive-view {
    padding: 12px;
  }

  .archive-row {
    align-items: start;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 9px;
  }

  .archive-row > img {
    height: 58px;
    width: 58px;
  }

  .archive-row .secondary-action {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .status-strip {
    line-height: 1.35;
    padding: 9px 10px;
    text-transform: none;
  }

  .form-grid,
  .suggestion-list,
  .price-grid,
  .detail-grid,
  .repair-economics,
  .strategy-columns {
    grid-template-columns: 1fr;
  }

  .strategy-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strategy-metrics .suggestion {
    padding: 8px;
  }

  .strategy-metrics .suggestion strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .ebay-sale-mode-options {
    grid-template-columns: 1fr;
  }

  .listing-copy-agent {
    padding: 12px;
  }

  .listing-copy-agent header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .listing-copy-agent header > span {
    height: 38px;
    width: 38px;
  }

  .listing-copy-agent header em {
    grid-column: 2;
  }

  .listing-copy-agent form > div {
    grid-template-columns: 1fr;
  }

  .listing-copy-agent form button {
    justify-content: center;
    width: 100%;
  }

  .workflow-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-head,
  .approval-bar {
    align-items: stretch;
    display: grid;
  }

  .recommendation-banner {
    display: grid;
    padding: 12px;
  }

  .recommendation-banner h3 {
    font-size: 20px;
  }

  .channel-plan-card {
    padding: 10px;
  }

  .channel-plan-head {
    align-items: start;
  }

  .channel-plan-step {
    align-items: start;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .channel-plan-status {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .channel-plan-status span {
    max-width: none;
  }

  .sales-strategy-card {
    gap: 10px;
    padding: 10px;
  }

  .strategy-action {
    justify-self: start;
  }

  .approval-bar .primary-action {
    width: 100%;
  }

  .photo-drop {
    aspect-ratio: 4 / 3;
  }

  .capture-mode {
    position: sticky;
    top: 68px;
    z-index: 5;
  }

  .mobile-primary-action,
  .batch-capture-actions {
    background: rgba(255, 255, 255, 0.96);
    bottom: 66px;
    box-shadow: 0 -8px 20px rgba(17, 24, 39, 0.08);
    margin-inline: -10px;
    padding: 10px;
    position: sticky;
    z-index: 9;
  }

  .mobile-primary-action {
    justify-content: center;
    width: calc(100% + 20px);
  }

  .batch-capture-actions > button {
    flex-basis: 100%;
  }

  .photo-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-source-actions {
    grid-template-columns: 1fr;
  }

  .evidence-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .segment-control {
    grid-template-columns: 1fr;
  }

  .research-row,
  .applied-price,
  .calculation-grid,
  .evidence-summary,
  .evidence-row,
  .ship-row {
    grid-template-columns: 1fr;
  }

  .ship-row img {
    height: 120px;
    width: 100%;
  }

  .inspector {
    overflow: visible;
  }

  .view-review .review-workspace .inventory-list,
  .view-inventory .inventory-layout .inventory-list {
    order: 2;
  }

  .view-review .review-workspace .inspector,
  .view-inventory .inventory-layout .inspector {
    order: 1;
  }

  .inspector-media {
    min-height: 0;
  }

  .inspector-media img {
    height: auto;
    max-height: 34vh;
    min-height: 0;
    object-fit: contain;
    width: 100%;
  }

  .inspector-content {
    gap: 10px;
    padding: 12px;
  }

  .breadcrumb {
    display: none;
  }

  .inspector-title {
    display: grid;
    gap: 8px;
  }

  .inspector-title h2 {
    font-size: 23px;
  }

  .inspector-title .channel-badge {
    justify-self: start;
  }

  .mobile-details-toggle {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
  }

  .mobile-details-toggle span {
    color: var(--orange);
    font-size: 20px;
  }

  .item-secondary-details {
    display: none;
  }

  .item-secondary-details.expanded {
    display: grid;
  }

  .batch-summary-card,
  .sales-overview {
    padding: 12px;
  }

  .batch-summary-head,
  .sales-overview-head {
    display: grid;
  }

  .batch-summary-stats,
  .sales-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-summary-actions > button,
  .sales-overview-actions > button {
    flex: 1 1 140px;
    justify-content: center;
  }

  .sales-tracking-row {
    align-items: start;
    grid-template-columns: 58px minmax(0, 1fr) 14px;
    padding: 8px;
  }

  .sales-tracking-row > img {
    height: 58px;
    width: 58px;
  }

  .sales-tracking-copy > strong {
    white-space: normal;
  }

  .sales-timeline {
    grid-column: 1 / -1;
    padding: 4px 2px 0;
  }

  .sales-timeline small {
    font-size: 9px;
  }

  .tracking-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .assisted-sales {
    padding: 12px;
  }

  .assisted-sales-list {
    grid-template-columns: 1fr;
  }

  .routing-board {
    grid-template-columns: 1fr;
  }

  .campaign-stats,
  .channel-summary,
  .show-hero,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-organizations,
  .admin-create {
    padding: 14px;
  }

  .organization-card {
    align-items: start;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
  }

  .organization-card-metric {
    text-align: left;
  }

  .organization-card-metric:first-of-type {
    grid-column: 2;
  }

  .organization-card-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .filter-chips {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .campaigns-list {
    max-height: none;
  }

  .campaign-item {
    grid-template-columns: 24px 40px minmax(0, 1fr);
  }

  .campaign-item em {
    grid-column: 3;
  }

  .release-guide-head,
  .release-checklist-head,
  .release-fields summary {
    align-items: start;
  }

  .release-guide-row,
  .release-check-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .release-check-row button {
    grid-column: 2;
    justify-self: stretch;
  }

  .release-fields-form {
    grid-template-columns: 1fr;
  }

  .release-fields-form .secondary-action {
    grid-column: 1;
  }

  .ebay-preview-copy,
  .ebay-policy-grid,
  .ebay-missing-grid {
    grid-template-columns: 1fr;
  }

  .ebay-preview-title,
  .ebay-listing-head {
    align-items: flex-start;
  }

  .ebay-preview-title {
    display: grid;
  }

  .ebay-publish-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .ebay-publish-actions > button {
    justify-content: center;
    width: 100%;
  }

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

  .kleinanzeigen-connector .secondary-action,
  .kleinanzeigen-connector .status-pill {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .agent-control-view {
    gap: 12px;
    padding: 12px 10px 110px;
  }

  .agent-hero {
    align-items: start;
    display: grid;
    min-height: 0;
    padding: 18px;
  }

  .agent-hero h2 {
    font-size: 27px;
  }

  .agent-provider-state {
    align-items: start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ebay-setup-panel {
    align-items: stretch;
    gap: 13px;
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .ebay-setup-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ebay-setup-action {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .ebay-defaults-grid {
    grid-template-columns: 1fr;
  }

  .ebay-shipping-logic {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .ebay-shipping-tiers {
    justify-content: flex-start;
  }

  .ebay-defaults-heading,
  .ebay-defaults-footer {
    align-items: stretch;
    display: grid;
  }

  .ebay-defaults-heading > span {
    justify-self: start;
  }

  .ebay-defaults-footer button {
    justify-content: center;
    width: 100%;
  }

  .agent-stats,
  .agent-mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-stat {
    align-items: start;
    display: grid;
    gap: 2px;
    min-height: 74px;
    padding: 11px;
  }

  .agent-stat strong {
    font-size: 24px;
  }

  .agent-section {
    padding: 13px;
  }

  .agent-mission-card {
    gap: 10px;
    padding: 12px;
  }

  .agent-mission-card h3 {
    font-size: 16px;
  }

  .agent-mission-card p {
    font-size: 12px;
  }

  .agent-mission-card .primary-action {
    font-size: 12px;
    padding: 8px;
  }

  .approval-card,
  .approval-copy {
    align-items: stretch;
    display: grid;
  }

  .approval-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .approval-actions button {
    justify-content: center;
    width: 100%;
  }

  .agent-account-row {
    align-items: start;
  }

  .agent-lead-card {
    align-items: start;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .agent-lead-card > .agent-state {
    grid-column: 2;
    justify-self: start;
  }

  .agent-specialist-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
  }

  .agent-specialist-grid::before {
    left: 34px;
  }

  .agent-assignment-card {
    align-items: start;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .agent-assignment-card > .agent-state {
    grid-column: 2;
    justify-self: start;
  }

  .channel-onboarding-form {
    grid-template-columns: 1fr;
  }

  .channel-onboarding-section .panel-heading {
    align-items: start;
    display: grid;
    gap: 9px;
  }

  .channel-onboarding-section .panel-heading .queue-count {
    justify-self: start;
  }

  .channel-onboarding-safety {
    display: grid;
    gap: 8px;
  }

  .agent-run-summary {
    align-items: start;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .agent-run-state {
    grid-column: 2;
    justify-items: start;
  }

  .agent-step-tree {
    margin-left: 5px;
  }

  .agent-step-row {
    align-items: start;
    grid-template-columns: 10px 34px minmax(0, 1fr);
  }

  .agent-step-row .agent-avatar {
    height: 34px;
    width: 34px;
  }

  .agent-step-meta {
    grid-column: 3;
    justify-items: start;
  }
}

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

.auth-brand > img {
  border-radius: 8px;
  flex: 0 0 58px;
  height: 58px;
  width: 58px;
}

.auth-brand p,
.auth-brand strong,
.auth-brand span {
  display: block;
  margin: 0;
}

.auth-brand p {
  color: var(--orange);
  font-size: 11px;
  font-weight: 1000;
}

.auth-brand strong {
  font-size: 18px;
}

.auth-brand h1 {
  margin: 3px 0 4px;
}

.auth-brand span {
  color: var(--muted);
  font-size: 13px;
}

.invite-context,
.join-summary {
  align-items: center;
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 12px;
}

.invite-context small,
.invite-context strong,
.invite-context span,
.join-summary strong,
.join-summary small {
  display: block;
}

.invite-context small,
.join-summary small {
  color: var(--muted);
  font-size: 12px;
}

.invite-context strong {
  margin: 2px 0;
}

.onboarding-shell {
  background: #f2f4f7;
  display: grid;
  grid-column: 1 / -1;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  width: 100%;
}

.onboarding-top {
  align-items: center;
  background: #0d0d0d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 54px);
}

.onboarding-top > div:last-child {
  display: flex;
  gap: 8px;
}

.onboarding-top .secondary-action {
  background: #171717;
  border-color: #343434;
  color: #fff;
}

.onboarding-card {
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  justify-self: center;
  margin: clamp(22px, 5vw, 60px) 16px;
  max-width: 880px;
  padding: clamp(20px, 4vw, 38px);
  width: calc(100% - 32px);
}

.onboarding-heading {
  max-width: 690px;
}

.onboarding-heading > span,
.settings-intro p {
  color: var(--orange);
  display: block;
  font-size: 12px;
  font-weight: 1000;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.onboarding-heading h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  margin: 0;
}

.onboarding-heading p {
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
}

.onboarding-paths {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.onboarding-paths > button,
.onboarding-path {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 20px;
  text-align: left;
}

.onboarding-paths > button:hover {
  border-color: var(--orange);
}

.onboarding-paths strong {
  font-size: 20px;
}

.onboarding-paths small {
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-path em {
  color: var(--orange);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.onboarding-form {
  display: grid;
  gap: 24px;
}

.onboarding-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr) 100px;
}

.channel-setup,
.channel-settings-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.channel-setup legend,
.channel-settings-form legend {
  font-size: 17px;
  font-weight: 950;
  padding: 0;
}

.channel-setup > p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 12px;
}

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

.channel-choice,
.channel-settings-form label {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 11px;
}

.channel-choice input,
.channel-settings-form input {
  accent-color: var(--orange);
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.channel-choice strong,
.channel-choice small,
.channel-settings-form label strong,
.channel-settings-form label small {
  display: block;
}

.channel-choice small,
.channel-settings-form label small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}

.join-summary {
  margin-top: 24px;
}

.settings-layout {
  display: grid;
  gap: 14px;
}

.settings-intro,
.team-section,
.channel-section,
.settings-loading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.settings-intro {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.settings-intro h2 {
  font-size: 28px;
  margin: 0;
}

.settings-intro span {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.role-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.role-legend span {
  background: #f3f5f7;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  padding: 6px 8px;
}

.role-legend b {
  color: var(--ink);
}

.settings-columns {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
}

.team-list,
.configured-channels {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.team-member-row {
  align-items: center;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: 38px minmax(150px, 1fr) 120px 110px 42px;
  padding: 8px;
}

.member-avatar {
  align-items: center;
  background: #111;
  border-radius: 7px;
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.team-member-row strong,
.team-member-row small {
  display: block;
  overflow-wrap: anywhere;
}

.team-member-row small {
  color: var(--muted);
  font-size: 11px;
}

.team-member-row select {
  min-width: 0;
}

.member-owner-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.invite-form {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(180px, 1fr) 130px auto;
  margin-top: 16px;
  padding-top: 16px;
}

.invite-link-result {
  align-items: center;
  background: #fff4eb;
  border: 1px solid #ffd0ad;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(150px, auto) minmax(180px, 1fr) auto;
  margin-top: 12px;
  padding: 10px;
}

.invite-link-result small,
.invite-link-result strong {
  display: block;
}

.invite-link-result input {
  min-width: 0;
}

.pending-invitations {
  margin-top: 14px;
}

.pending-invitations summary {
  cursor: pointer;
  font-weight: 900;
}

.pending-invitations > div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.invitation-row {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px 10px;
}

.invitation-row strong,
.invitation-row small {
  display: block;
  overflow-wrap: anywhere;
}

.invitation-row small {
  color: var(--muted);
  font-size: 11px;
}

.auth-link.danger {
  color: var(--red);
}

.configured-channel {
  align-items: center;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 9px;
}

.configured-channel > span {
  align-items: center;
  background: #111;
  border-radius: 7px;
  color: var(--orange);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.configured-channel strong,
.configured-channel small {
  display: block;
}

.configured-channel small {
  color: var(--muted);
  font-size: 11px;
}

.channel-settings-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.channel-settings-form fieldset {
  display: grid;
  gap: 7px;
}

.settings-note {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .onboarding-fields,
  .settings-columns {
    grid-template-columns: 1fr;
  }

  .channel-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-member-row {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
  }

  .team-member-row select {
    grid-column: 2;
  }

  .team-member-row .icon-button,
  .member-owner-label {
    grid-column: 3;
    grid-row: 1;
  }

  .invite-form,
  .invite-link-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .auth-shell {
    padding: 12px;
  }

  .auth-card {
    padding: 18px;
  }

  .onboarding-top {
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
  }

  .onboarding-top .auth-brand span,
  .onboarding-top .auth-brand p {
    display: none;
  }

  .onboarding-top .auth-brand > img {
    height: 42px;
    flex-basis: 42px;
    width: 42px;
  }

  .onboarding-top .secondary-action {
    min-height: 40px;
    padding: 8px 10px;
  }

  .onboarding-card {
    margin: 12px;
    padding: 18px;
    width: calc(100% - 24px);
  }

  .onboarding-paths,
  .channel-choice-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-paths > button,
  .onboarding-path {
    min-height: 130px;
  }

  .onboarding-actions,
  .settings-intro {
    align-items: stretch;
    display: grid;
  }

  .onboarding-actions button {
    justify-content: center;
    width: 100%;
  }

  .role-legend {
    justify-content: flex-start;
  }

  .team-section,
  .channel-section,
  .settings-intro {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* RAMROD Vault: collection inventory stays visually separate from the sales workflow. */
.vault-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.vault-hero {
  align-items: end;
  border-bottom: 2px solid #111;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 8px 0 18px;
}

.vault-hero p,
.vault-entry-form .panel-heading p {
  color: var(--orange);
  font-size: 11px;
  font-weight: 1000;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.vault-hero h2 {
  font-size: 38px;
  line-height: 1.02;
  margin: 0;
}

.vault-hero > div > span {
  color: var(--muted);
  display: block;
  margin-top: 8px;
  max-width: 680px;
}

.vault-hero-actions,
.vault-form-actions,
.vault-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vault-hero-actions {
  justify-content: flex-end;
}

.vault-hero-actions .primary-action,
.vault-form-actions .primary-action,
.vault-actions .primary-action,
.vault-empty-actions .primary-action,
.vault-loan-form .primary-action,
.vault-sale-confirm .primary-action {
  margin-top: 0;
  width: auto;
}

.vault-sale-confirm {
  align-items: center;
  background: #fff3e9;
  border: 1px solid #ffb980;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  width: 100%;
}

.vault-sale-confirm strong,
.vault-sale-confirm span {
  display: block;
}

.vault-sale-confirm span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.vault-sale-confirm > div:last-child {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vault-sale-confirm .primary-action,
.vault-sale-confirm .secondary-action {
  justify-content: center;
  width: 100%;
}

.vault-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vault-metric {
  align-items: center;
  background: #111;
  border: 1px solid #242424;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 68px;
  padding: 12px 14px;
}

.vault-metric > .mini-icon {
  color: var(--orange);
  flex: 0 0 32px;
}

.vault-metric strong,
.vault-metric small {
  display: block;
}

.vault-metric strong {
  font-size: 20px;
}

.vault-metric small {
  color: #aaa;
  font-size: 12px;
  margin-top: 2px;
}

.vault-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) auto;
}

.vault-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  min-height: 46px;
  padding: 0 12px;
}

.vault-search input {
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.vault-filters {
  background: #e8edf2;
  border-radius: 8px;
  display: flex;
  gap: 3px;
  padding: 4px;
}

.vault-filters button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 6px 10px;
}

.vault-filters button.active {
  background: #fff;
  color: var(--ink);
}

.vault-filters span {
  color: var(--orange);
  margin-left: 3px;
}

.vault-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(300px, 0.42fr) minmax(430px, 0.58fr);
  min-height: 470px;
}

.vault-list {
  display: grid;
  gap: 7px;
  max-height: calc(100vh - 350px);
  min-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.vault-item-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.vault-item-row.active {
  border-color: var(--orange);
  box-shadow: inset 4px 0 0 var(--orange);
}

.vault-item-row img {
  background: #101010;
  border-radius: 6px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.vault-item-row > span > strong,
.vault-item-row > span > small {
  display: block;
  overflow-wrap: anywhere;
}

.vault-item-row > span > small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.vault-row-meta {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vault-status {
  background: #edf1f4;
  border-radius: 999px;
  color: #46505e;
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
  padding: 5px 7px;
}

.vault-status.loaned {
  background: #fff1d9;
  color: #905000;
}

.vault-status.selling,
.vault-status.listed {
  background: #ffe9d8;
  color: #a33d00;
}

.vault-status.sold {
  background: #e5f5eb;
  color: var(--green);
}

.vault-inspector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(300px, 0.56fr);
  min-height: 420px;
  overflow: hidden;
}

.vault-inspector-media {
  background: #111;
  min-height: 420px;
  position: relative;
}

.vault-inspector-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.vault-inspector-media .vault-status {
  left: 12px;
  position: absolute;
  top: 12px;
}

.vault-inspector-content {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.vault-inspector-content > div:first-child p {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  margin: 0 0 5px;
}

.vault-inspector-content h3 {
  font-size: 25px;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
}

.vault-inspector-content > div:first-child > span {
  color: var(--muted);
  display: block;
  margin-top: 7px;
}

.vault-facts {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.vault-facts div {
  background: #f3f6f8;
  border-radius: 7px;
  padding: 9px 10px;
}

.vault-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.vault-facts dd {
  font-weight: 900;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.vault-loan-summary {
  align-items: center;
  background: #fff6e5;
  border: 1px solid #ffd99f;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 10px;
}

.vault-enrichment {
  align-items: center;
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 10px;
}

.vault-enrichment > span {
  align-items: center;
  background: #111;
  border-radius: 7px;
  color: var(--orange);
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.vault-enrichment small,
.vault-enrichment strong {
  display: block;
}

.vault-enrichment small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.vault-enrichment p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 3px 0 0;
}

.vault-enrichment.complete {
  background: #edf8f1;
  border-color: #b8dec6;
}

.vault-enrichment.failed {
  background: #fff1e8;
  border-color: #ffc7a5;
}

.vault-loan-summary small,
.vault-loan-summary strong {
  display: block;
}

.vault-loan-summary p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.vault-loan-form {
  background: #f3f6f8;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.vault-safety-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  padding-top: 12px;
}

.vault-entry-form {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.vault-entry-form h3 {
  margin: 0;
}

.vault-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vault-form-actions {
  justify-content: flex-end;
}

.vault-edit-form {
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.vault-edit-form .vault-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vault-empty {
  align-items: center;
  background: #111;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 20px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  min-height: 220px;
  padding: 28px;
}

.vault-empty > span {
  color: var(--orange);
}

.vault-empty h3 {
  font-size: 26px;
  margin: 3px 0 8px;
}

.vault-empty p,
.vault-empty small {
  color: #aaa;
  margin: 0;
}

.vault-empty-actions {
  display: grid;
  gap: 7px;
  min-width: 260px;
}

.vault-empty-actions .primary-action,
.vault-empty-actions .secondary-action {
  width: 100%;
}

.vault-empty.compact {
  color: var(--ink);
  background: #fff;
  grid-template-columns: 1fr;
  min-height: 100px;
}

.vault-import-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.vault-import-strip summary {
  cursor: pointer;
  font-weight: 900;
}

.vault-import-strip summary span {
  color: var(--orange);
}

.vault-import-strip > div {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.vault-import-strip article {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding-top: 7px;
}

.vault-import-strip article img {
  border-radius: 6px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.vault-import-strip article strong,
.vault-import-strip article small {
  display: block;
  overflow-wrap: anywhere;
}

.vault-import-strip article small {
  color: var(--muted);
}

.vault-capture-banner {
  align-items: center;
  background: #111;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.vault-capture-banner > div {
  align-items: center;
  display: flex;
  gap: 9px;
}

.vault-capture-banner strong,
.vault-capture-banner small {
  display: block;
}

.vault-capture-banner small {
  color: #aaa;
  margin-top: 2px;
}

.vault-scan-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.vault-reidentify-notice {
  align-items: center;
  background: #fff3ea;
  border: 1px solid #ffb980;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 11px 13px;
}

.vault-reidentify-notice .mini-icon {
  background: #111;
  color: var(--orange);
}

.vault-reidentify-notice strong,
.vault-reidentify-notice span {
  display: block;
}

.vault-reidentify-notice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.vault-scan-header {
  align-items: center;
  border-bottom: 2px solid #111;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 2px 0 16px;
}

.vault-scan-header .secondary-action {
  margin: 0;
  width: auto;
}

.vault-scan-header p {
  color: var(--orange);
  font-size: 11px;
  font-weight: 1000;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.vault-scan-header h2 {
  font-size: 30px;
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}

.vault-scan-header span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
  max-width: 780px;
}

.vault-scan-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.vault-scan-capture,
.vault-scan-recognition {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.vault-scan-recognition {
  position: sticky;
  top: 16px;
}

.vault-photo-guide {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.vault-photo-guide > span {
  align-items: center;
  background: #f1f4f6;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 850;
  gap: 6px;
  line-height: 1.25;
  min-height: 46px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px;
}

.vault-photo-guide .mini-icon {
  background: #111;
  color: var(--orange);
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}

.vault-photo-drop {
  min-height: 300px;
}

.vault-photo-thumbnails {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.vault-add-photo {
  justify-content: center;
  margin: 0 0 12px;
  width: 100%;
}

.vault-capture-details .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vault-identity-confirmation {
  background: #fff3ea;
  border: 2px solid var(--orange);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
}

.vault-identity-confirmation > strong {
  color: #8f3600;
  font-size: 16px;
}

.vault-identity-confirmation > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.vault-identity-confirmation .field {
  margin: 0;
}

.recognition-visual-matches {
  background: #eef7f2;
  border: 1px solid #b8ddc8;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.recognition-visual-matches > strong,
.recognition-visual-matches > small {
  display: block;
}

.recognition-visual-matches > small {
  color: var(--muted);
}

.recognition-visual-matches > div {
  display: grid;
  gap: 5px;
}

.recognition-visual-matches span {
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 6px 8px;
}

.recognition-learning {
  background: #eef7f2;
  border: 1px solid #b8ddc8;
  border-left: 4px solid #267a50;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.recognition-learning.conflict {
  background: #fff3ea;
  border-color: #ffb980;
  border-left-color: var(--orange);
}

.recognition-learning strong,
.recognition-learning small,
.recognition-learning span {
  display: block;
}

.recognition-learning small,
.recognition-learning span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recognition-learning p {
  font-size: 12px;
  margin: 0;
}

.recognition-correction {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recognition-correction > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 12px;
}

.recognition-correction > summary::-webkit-details-marker {
  display: none;
}

.recognition-correction > summary span {
  display: grid;
  gap: 2px;
}

.recognition-correction > summary small,
.recognition-correction form > p,
.vault-learning-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recognition-correction > summary em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.recognition-correction form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.recognition-correction form .field {
  min-width: 0;
}

.recognition-correction form > p,
.vault-learning-note {
  margin: 0;
}

.vault-scope-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
}

.vault-scope-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  display: flex;
  font: inherit;
  font-weight: 900;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
}

.vault-scope-tabs button.active {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.vault-scope-tabs button .mini-icon {
  height: 28px;
  width: 28px;
}

.vault-scope-tabs button span {
  color: var(--orange);
}

.vault-network {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vault-network > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 14px;
}

.vault-network > summary strong,
.vault-network > summary small {
  display: block;
}

.vault-network > summary small,
.vault-network-empty,
.vault-network-note {
  color: var(--muted);
  font-size: 12px;
}

.vault-network > summary em {
  background: #111;
  border-radius: 6px;
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
}

.vault-network-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vault-network-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.vault-network-section + .vault-network-section {
  border-left: 1px solid var(--line);
}

.vault-network-section.wide {
  border-left: 0;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
}

.vault-network-section > div:first-child small,
.vault-network-section > div:first-child strong {
  display: block;
}

.vault-network-section > div:first-child small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.vault-share-form,
.vault-access-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(320px, 1.5fr) auto;
}

.vault-access-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.vault-scope-fields {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.vault-scope-fields legend {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.vault-scope-fields label {
  align-items: center;
  display: flex;
  font-size: 12px;
  gap: 5px;
  white-space: nowrap;
}

.vault-network-list {
  display: grid;
  gap: 6px;
}

.vault-share-row,
.vault-request-row {
  align-items: center;
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 8px 10px;
}

.vault-request-row.approval {
  grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.4fr) auto;
}

.vault-share-row strong,
.vault-share-row small,
.vault-request-row strong,
.vault-request-row small {
  display: block;
  overflow-wrap: anywhere;
}

.vault-share-row small,
.vault-request-row small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.vault-request-row > div:last-child {
  display: flex;
  gap: 6px;
}

.vault-request-state {
  background: #eef7f2;
  border: 1px solid #b8ddc8;
  border-radius: 7px;
  color: #267a50;
  font-weight: 900;
  padding: 9px 12px;
}

.vault-shared-summary {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.vault-network-note {
  margin: 0;
  padding: 0 2px;
}

.vault-edit-form textarea {
  min-height: 70px;
  resize: vertical;
  width: 100%;
}

@media (max-width: 1180px) {
  .vault-share-form,
  .vault-access-form,
  .vault-request-row.approval {
    grid-template-columns: 1fr;
  }
  .vault-scan-grid {
    grid-template-columns: 1fr;
  }

  .vault-scan-recognition {
    position: static;
  }

  .vault-photo-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vault-photo-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vault-layout,
  .vault-inspector {
    grid-template-columns: 1fr;
  }

  .vault-list {
    max-height: 360px;
    min-height: 0;
  }

  .vault-inspector-media {
    min-height: 260px;
  }

  .vault-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sidebar {
    grid-template-columns: repeat(4, 1fr);
  }

  .sidebar.vault-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-vault-scan .mobile-primary-action {
    background: var(--orange);
    bottom: auto;
    box-shadow: none;
    margin: 0;
    padding: 12px;
    position: static;
    width: 100%;
  }

  .vault-hero {
    align-items: stretch;
    display: grid;
  }

  .vault-scope-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vault-scope-tabs button {
    justify-content: center;
    min-width: 0;
    padding-inline: 6px;
    white-space: normal;
  }

  .vault-network-grid {
    grid-template-columns: 1fr;
  }

  .vault-network-section + .vault-network-section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .vault-share-form,
  .vault-access-form,
  .vault-request-row,
  .vault-request-row.approval,
  .vault-share-row {
    grid-template-columns: 1fr;
  }

  .vault-network-section .primary-action,
  .vault-network-section .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .vault-request-row > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vault-hero h2 {
    font-size: 30px;
  }

  .vault-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vault-hero-actions button {
    justify-content: center;
    width: 100%;
  }

  .vault-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vault-toolbar {
    grid-template-columns: 1fr;
  }

  .vault-filters {
    overflow-x: auto;
  }

  .vault-filters button {
    flex: 0 0 auto;
  }

  .vault-layout {
    display: block;
  }

  .vault-list {
    max-height: none;
  }

  .vault-item-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .vault-row-meta {
    align-items: center;
    flex-direction: row;
    grid-column: 2;
    justify-content: space-between;
  }

  .vault-inspector {
    margin-top: 10px;
  }

  .vault-form-grid,
  .vault-facts {
    grid-template-columns: 1fr;
  }

  .vault-edit-form .vault-form-grid {
    grid-template-columns: 1fr;
  }

  .vault-empty {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .vault-empty-actions {
    min-width: 0;
  }

  .vault-sale-confirm {
    grid-template-columns: 1fr;
  }

  .vault-sale-confirm > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vault-sale-confirm .primary-action,
  .vault-sale-confirm .secondary-action {
    width: 100%;
  }

  .vault-import-strip article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .vault-import-strip article button {
    grid-column: 2;
    width: 100%;
  }

  .vault-capture-banner {
    align-items: stretch;
    display: grid;
  }

  .vault-scan-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .vault-scan-header h2 {
    font-size: 26px;
  }

  .vault-scan-header .secondary-action {
    justify-self: start;
  }

  .vault-scan-capture,
  .vault-scan-recognition {
    padding: 12px;
  }

  .vault-photo-guide {
    grid-template-columns: 1fr 1fr;
  }

  .vault-photo-drop {
    min-height: 250px;
  }

  .vault-photo-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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