:root {
  --bg: #eef1e5;
  --panel: #fbfaf5;
  --panel-strong: #ffffff;
  --border: #d4d0c2;
  --ink: #1f2a1f;
  --muted: #66725f;
  --accent: #1f5f46;
  --accent-soft: #d9eadc;
  --warn: #a84f1a;
  --warn-soft: #f8e2d2;
  --danger: #8a2d20;
  --danger-soft: #f7ddd8;
  --shadow: 0 18px 60px rgba(31, 42, 31, 0.08);
  --inventory-topbar-offset: 0px;
  --inventory-table-sticky-top: 112px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 95, 70, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(168, 79, 26, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f6ee 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
}

form {
  margin: 0;
}

.page-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

body.omai-shell {
  color: #f5f2ff;
  background:
    radial-gradient(circle at 16% 20%, rgba(122, 112, 248, 0.34), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 79, 94, 0.18), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(107, 93, 246, 0.18), transparent 28%),
    linear-gradient(180deg, #090a0f 0%, #10121a 48%, #0c0d13 100%);
}

body.omai-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.45;
}

.page-shell--auth,
.page-shell--home {
  min-height: 100vh;
  max-width: none;
  padding: 0;
}

.omai-auth-layout,
.omai-home-layout {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.omai-auth-layout {
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.omai-auth-card {
  width: min(100%, 420px);
  padding: 30px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(181, 171, 255, 0.24);
  background: rgba(14, 16, 23, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.omai-auth-card h1 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  line-height: 0.96;
}

.omai-auth-copy,
.omai-home-subtitle {
  margin: 0;
  color: rgba(240, 236, 255, 0.72);
}

.omai-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.omai-auth-card .field-label {
  margin: 0;
  color: rgba(240, 236, 255, 0.76);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.omai-auth-card .field-input {
  margin: 0;
  border-radius: 16px;
  border-color: rgba(181, 171, 255, 0.24);
  background: rgba(18, 20, 29, 0.92);
  color: #ffffff;
}

.omai-auth-card .field-input::placeholder {
  color: rgba(207, 200, 255, 0.42);
}

.omai-auth-card .muted-copy {
  min-height: 1.3em;
}

.omai-brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.eyebrow--light {
  color: rgba(207, 200, 255, 0.82);
}

.omai-home-layout {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px 22px 28px;
}

.omai-home-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.session-chip--dark,
.ghost-button--dark {
  border-color: rgba(181, 171, 255, 0.24);
  background: rgba(15, 17, 24, 0.64);
  color: #f5f2ff;
}

.omai-home-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 110px);
  overflow: hidden;
}

.omai-home-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  text-align: center;
  display: grid;
  gap: 14px;
}

.omai-home-copy h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.omai-home-button {
  justify-self: center;
  min-width: 260px;
  padding: 15px 26px;
}

.omai-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.primary-button.omai-primary-button,
.omai-primary-button {
  background: linear-gradient(135deg, #7b70f8 0%, #5f52f4 100%);
  border-color: rgba(123, 112, 248, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(84, 74, 200, 0.28);
}

.omai-auth-card .omai-primary-button {
  width: 100%;
  justify-content: center;
}

.omai-auth-card .omai-google-button {
  text-decoration: none;
}

.omai-auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 4px 0;
  color: rgba(240, 236, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.omai-auth-divider::before,
.omai-auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(181, 171, 255, 0.18);
}

.omai-auth-divider span::before {
  content: "or";
}

.omai-home-grid {
  position: absolute;
  inset: 10% 10%;
  border-radius: 40px;
  border: 1px solid rgba(181, 171, 255, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  opacity: 0.7;
}

.omai-home-orb {
  position: absolute;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.62;
}

.omai-home-orb--left {
  left: 10%;
  top: 12%;
  background: radial-gradient(circle, rgba(123, 112, 248, 0.34) 0%, rgba(123, 112, 248, 0) 70%);
}

.omai-home-orb--right {
  right: 10%;
  bottom: 14%;
  background: radial-gradient(circle, rgba(255, 79, 94, 0.18) 0%, rgba(255, 79, 94, 0) 70%);
}

.topbar,
.panel,
.summary-card,
.auth-card,
.alert-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar,
.panel,
.alert-card {
  border-radius: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  margin-bottom: 22px;
  position: sticky;
  top: var(--inventory-topbar-offset, 12px);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
}

.topbar h1,
.auth-card h1 {
  margin: 6px 0 0;
  font-size: 2.1rem;
  line-height: 1.05;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.session-chip,
.ghost-link,
.ghost-button,
.primary-button,
.status-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.session-chip,
.ghost-link,
.ghost-button,
.primary-button {
  padding: 10px 16px;
}

.ghost-link,
.ghost-button {
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: pointer;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.small-button {
  padding: 10px 14px;
}

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

.summary-card {
  border-radius: 22px;
  padding: 18px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.panel {
  padding: 22px;
  margin-bottom: 22px;
}

.inventory-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-search {
  display: grid;
  gap: 6px;
  min-width: min(100%, 360px);
  flex: 1 1 320px;
}

.filter-search__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.filter-search__input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.filter-search__input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, white 18%);
}

.filter-search__input:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border) 82%);
}

.filter-search__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 48%, white 52%);
  box-shadow: 0 0 0 4px rgba(31, 95, 70, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.inventory-filters .ghost-button.is-active {
  background: rgba(31, 95, 70, 0.12);
  border-color: rgba(31, 95, 70, 0.2);
  color: var(--accent);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.filter-toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.filter-summary {
  flex: 1 1 320px;
  color: var(--muted);
  font-size: 0.95rem;
}

.advanced-filters {
  margin-bottom: 18px;
}

.advanced-filters.is-hidden {
  display: none;
}

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

.range-filter-card {
  --range-start: 0%;
  --range-end: 100%;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.range-filter-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.range-filter-header h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.range-filter-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.range-filter-value {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 95, 70, 0.08);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.range-filter-slider {
  position: relative;
  height: 24px;
}

.range-filter-slider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: #e5e0d3;
  transform: translateY(-50%);
}

.range-filter-slider::after {
  content: "";
  position: absolute;
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 95, 70, 0.2) 0%, rgba(31, 95, 70, 0.42) 100%);
  transform: translateY(-50%);
}

.range-filter-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-filter-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(31, 42, 31, 0.14);
  background: var(--panel-strong);
  box-shadow: 0 2px 7px rgba(31, 42, 31, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.range-filter-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(31, 42, 31, 0.14);
  background: var(--panel-strong);
  box-shadow: 0 2px 7px rgba(31, 42, 31, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.range-filter-slider input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
}

.range-filter-slider input[type="range"]::-moz-range-track {
  background: transparent;
}

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

.range-filter-inputs label {
  display: grid;
  gap: 6px;
}

.range-filter-inputs span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.range-filter-inputs input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
}

.range-filter-toggle {
  justify-content: flex-start;
  width: fit-content;
}

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

.panel-header h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.panel-copy {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede,
.muted-copy,
.cell-meta {
  color: var(--muted);
}

.demand-signal {
  display: grid;
  gap: 4px;
  width: min(100%, 144px);
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(212, 208, 194, 0.85);
  border-radius: 18px;
  background: var(--demand-signal-background, rgba(255, 255, 255, 0.92));
}

.demand-signal strong {
  font-size: 1rem;
  line-height: 1.05;
  white-space: nowrap;
}

.demand-signal .cell-meta {
  line-height: 1.15;
}

.signal-placeholder {
  display: grid;
  gap: 4px;
  width: min(100%, 144px);
  min-width: 0;
  padding: 8px 10px;
  border: 1px dashed rgba(212, 208, 194, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.signal-placeholder strong {
  font-size: 0.95rem;
  line-height: 1.05;
}

.demand-signal--detail {
  width: min(100%, 180px);
}

.demand-signal__meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #f7ddd8 0%, #ffffff 50%, #d9eadc 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 31, 0.08);
}

.demand-signal__marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(31, 42, 31, 0.18);
  background: var(--panel-strong);
  box-shadow: 0 1px 4px rgba(31, 42, 31, 0.2);
  transform: translate(-50%, -50%);
}

.freshness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.freshness-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--panel-strong);
  display: grid;
  gap: 6px;
}

.table-wrap {
  position: relative;
  overflow: visible;
}

.table-empty-state {
  margin: 14px 0 0;
  color: var(--muted);
}

.table-empty-state.is-hidden {
  display: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.inventory-col--action {
  width: 116px;
}

.inventory-col--stock {
  width: 106px;
}

.inventory-col--bike {
  width: 320px;
}

.inventory-col--price {
  width: 112px;
}

.inventory-col--days,
.inventory-col--traffic {
  width: 92px;
}

.inventory-col--signal {
  width: 152px;
}

.inventory-col--rating {
  width: 108px;
}

.inventory-col--reason {
  width: 220px;
}

.signal-cell {
  min-width: 0;
}

.traffic-rating-cell {
  min-width: 0;
}

.traffic-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(204, 197, 238, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: #312657;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.traffic-rating-badge--strong {
  background: rgba(217, 234, 220, 0.95);
  border-color: rgba(163, 205, 171, 0.96);
  color: #1f5c30;
}

.traffic-rating-badge--healthy {
  background: rgba(226, 236, 255, 0.96);
  border-color: rgba(176, 196, 236, 0.96);
  color: #35558b;
}

.traffic-rating-badge--watch {
  background: rgba(248, 238, 212, 0.95);
  border-color: rgba(223, 204, 146, 0.96);
  color: #7b6420;
}

.traffic-rating-badge--low {
  background: rgba(247, 226, 224, 0.96);
  border-color: rgba(230, 187, 183, 0.96);
  color: #8c3e36;
}

.traffic-rating-badge--pending {
  color: var(--muted);
}

.bike-cell strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.05;
}

.bike-cell .cell-meta,
.reason-cell,
.inventory-detail-subtitle,
.inventory-insight-copy p,
.inventory-detail-placeholder p,
.inventory-detail-stat small {
  overflow-wrap: anywhere;
}

.inventory-tag-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.inventory-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 208, 194, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.inventory-tag--deposit {
  background: rgba(226, 234, 255, 0.95);
  border-color: rgba(139, 167, 233, 0.95);
  color: #284e93;
}

.inventory-tag--cash-buyer {
  background: rgba(244, 236, 204, 0.95);
  border-color: rgba(215, 194, 118, 0.95);
  color: #7a6215;
}

.inventory-tag--hold-plates {
  background: rgba(239, 228, 255, 0.95);
  border-color: rgba(191, 166, 230, 0.95);
  color: #6540a8;
}

.inventory-tag-group--detail {
  margin-top: 12px;
}

.price-delta {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(212, 208, 194, 0.95);
  font-weight: 600;
}

.price-delta--higher {
  background: rgba(247, 221, 216, 0.92);
  border-color: rgba(227, 167, 154, 0.95);
  color: var(--danger);
}

.price-delta--lower {
  background: rgba(217, 234, 220, 0.9);
  border-color: rgba(157, 201, 169, 0.95);
  color: var(--accent);
}

.data-table th {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#active-inventory-table thead th {
  position: sticky;
  top: var(--inventory-table-sticky-top, 112px);
  z-index: 12;
  background: rgba(251, 250, 245, 0.98);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(212, 208, 194, 0.95),
    0 10px 24px rgba(31, 42, 31, 0.05);
}

#active-inventory-table thead th::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: rgba(212, 208, 194, 0.95);
}

.sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.sort-button:hover,
.sort-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.sort-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(31, 95, 70, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.sort-button[data-sort-direction="none"] .sort-indicator::before {
  content: "↕";
}

.sort-button[data-sort-direction="asc"] .sort-indicator {
  background: rgba(31, 95, 70, 0.16);
  color: var(--accent);
  transform: translateY(-1px);
}

.sort-button[data-sort-direction="asc"] .sort-indicator::before {
  content: "↑";
}

.sort-button[data-sort-direction="desc"] .sort-indicator {
  background: rgba(31, 95, 70, 0.16);
  color: var(--accent);
  transform: translateY(1px);
}

.sort-button[data-sort-direction="desc"] .sort-indicator::before {
  content: "↓";
}

.data-table th[aria-sort="ascending"],
.data-table th[aria-sort="descending"] {
  color: var(--ink);
}

.compact-table {
  min-width: 900px;
}

.stock-drilldown-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.stock-drilldown-button:hover,
.stock-drilldown-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.stock-drilldown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(31, 95, 70, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.stock-drilldown-icon::before {
  content: "⌄";
}

.stock-drilldown-button[aria-expanded="true"] .stock-drilldown-icon {
  transform: rotate(180deg);
  background: rgba(31, 95, 70, 0.16);
}

.is-detail-open {
  background: rgba(217, 234, 220, 0.22);
}

.inventory-detail-row td {
  padding: 0;
  border-bottom: 0;
}

.inventory-detail-row.is-hidden {
  display: none;
}

.inventory-detail-shell {
  padding: 0 0 16px;
}

.inventory-detail {
  margin: 8px 0 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(31, 42, 31, 0.07);
}

.inventory-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.inventory-detail-header h3 {
  margin: 6px 0;
  font-size: 1.65rem;
  line-height: 1.05;
}

.inventory-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.inventory-detail-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(107, 93, 246, 0.18);
  background: rgba(107, 93, 246, 0.08);
}

.inventory-detail-view-button {
  border: 0;
  background: transparent;
  color: #5a5490;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.inventory-detail-view-button.is-active {
  background: linear-gradient(135deg, #6b5df6 0%, #8974ff 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(107, 93, 246, 0.25);
}

.inventory-detail-chip {
  background: rgba(255, 255, 255, 0.9);
}

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

.inventory-detail-grid--v2-workflow {
  margin-top: 16px;
}

.inventory-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-strong);
}

.inventory-detail-card--wide {
  grid-column: span 2;
}

.inventory-detail-card-header {
  display: grid;
  gap: 6px;
}

.inventory-detail-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.inventory-detail-subtitle {
  margin: 0;
  color: var(--muted);
}

.inventory-insight-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.inventory-insight-copy {
  display: grid;
  gap: 6px;
}

.inventory-insight-copy strong {
  font-size: 1.25rem;
  line-height: 1.05;
}

.inventory-insight-copy p {
  margin: 0;
}

.inventory-detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.inventory-detail-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 208, 194, 0.9);
  background: rgba(249, 248, 242, 0.94);
}

.inventory-detail-stat span,
.inventory-detail-stat small {
  color: var(--muted);
}

.inventory-detail-stat span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-detail-stat strong {
  font-size: 1.1rem;
  line-height: 1.05;
}

.inventory-detail-stat small {
  font-size: 0.88rem;
}

.inventory-detail-placeholder {
  display: grid;
  gap: 6px;
  max-width: 200px;
}

.inventory-detail-items {
  display: grid;
  gap: 10px;
  margin: 0;
}

.inventory-detail-item {
  display: grid;
  gap: 4px;
}

.inventory-detail-item dt {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-detail-item dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.inventory-detail-footnote {
  margin: 18px 0 0;
  color: var(--muted);
}

.inventory-detail-source-card {
  align-content: start;
}

.inventory-detail--v2 {
  background:
    radial-gradient(circle at top right, rgba(137, 116, 255, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.inventory-v2-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.inventory-v2-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.inventory-v2-shell {
  --inventory-v2-left-rail: 232px;
  --inventory-v2-center-rail: 208px;
  --inventory-v2-right-rail: 336px;
  --inventory-v2-summary-height: 176px;
  --inventory-v2-compact-height: 152px;
  --inventory-v2-traffic-height: 176px;
  --inventory-v2-row-gap: 12px;
  --inventory-v2-matrix-height: calc(var(--inventory-v2-summary-height) + var(--inventory-v2-compact-height) + var(--inventory-v2-row-gap));
  display: grid;
  grid-template-columns: var(--inventory-v2-left-rail) var(--inventory-v2-center-rail) var(--inventory-v2-right-rail);
  grid-template-areas:
    "summary age valuation"
    "traffic pricing valuation";
  gap: var(--inventory-v2-row-gap);
  justify-content: start;
  align-items: start;
}

.inventory-v2-slot--summary {
  grid-area: summary;
}

.inventory-v2-slot--age {
  grid-area: age;
}

.inventory-v2-slot--pricing {
  grid-area: pricing;
}

.inventory-v2-slot--traffic {
  grid-area: traffic;
}

.inventory-v2-slot--valuation {
  grid-area: valuation;
}

.inventory-widget {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-content: start;
  padding: 12px 14px;
  border-radius: 17px;
  border: 1px solid rgba(199, 190, 244, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 255, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(90, 73, 191, 0.08);
  overflow: hidden;
}

.inventory-widget--summary {
  height: var(--inventory-v2-summary-height);
}

.inventory-widget--compact-metric {
  height: var(--inventory-v2-compact-height);
}

.inventory-v2-slot--traffic.inventory-widget--compact-metric {
  height: var(--inventory-v2-traffic-height);
}

.inventory-widget--matrix {
  height: var(--inventory-v2-matrix-height);
}

.inventory-widget--chart {
  min-height: 280px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.inventory-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.inventory-widget-header--actions-only {
  justify-content: flex-end;
}

.inventory-widget-spacer {
  width: 1px;
  height: 1px;
}

.inventory-widget-header h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.1;
}

.inventory-widget-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inventory-widget-body {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.inventory-widget-footer {
  min-height: 20px;
}

.inventory-v2-metric-list {
  margin: 0;
  display: grid;
}

.inventory-v2-metric-row {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(203, 196, 241, 0.58);
}

.inventory-v2-metric-row:first-child {
  padding-top: 0;
}

.inventory-v2-metric-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.inventory-v2-metric-row--summary {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 2px solid rgba(107, 93, 246, 0.16);
}

.inventory-v2-metric-row dt {
  color: #5a5490;
  font-size: 0.86rem;
  font-weight: 600;
}

.inventory-v2-metric-row dd {
  margin: 0;
  color: #21163e;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.inventory-widget-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(107, 93, 246, 0.16);
  background: rgba(107, 93, 246, 0.08);
  color: #5a5490;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.inventory-widget-summary {
  margin: 0;
  display: grid;
}

.inventory-widget-summary-row {
  display: grid;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(203, 196, 241, 0.58);
}

.inventory-widget-summary-row:first-child {
  padding-top: 0;
}

.inventory-widget-summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.inventory-widget-summary-row--split {
  grid-template-columns: max-content max-content;
  justify-content: space-between;
  gap: 12px;
}

.inventory-widget-summary-stock,
.inventory-widget-summary-value,
.inventory-widget-summary-copy,
.inventory-widget-summary-condition {
  color: #21163e;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.18;
}

.inventory-widget-summary-stock {
  color: #5a5490;
  font-size: 0.86rem;
}

.inventory-widget-summary-condition {
  color: #5a5490;
  font-size: 0.86rem;
  text-transform: uppercase;
  text-align: right;
}

.inventory-widget-summary-row--make .inventory-widget-summary-copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-widget-summary-row--model .inventory-widget-summary-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inventory-widget-summary-row--vin .inventory-widget-summary-copy {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-widget-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 100%;
}

.inventory-widget-provider-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(203, 196, 241, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  align-content: start;
}

.inventory-widget-provider-panel h4 {
  margin: 0;
  color: #5a5490;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-widget-provider-list {
  display: grid;
  gap: 8px;
}

.inventory-widget-provider-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
  padding: 6px 0;
  border-bottom: 1px solid rgba(203, 196, 241, 0.42);
}

.inventory-widget-provider-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.inventory-widget-provider-label {
  color: #5a5490;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.14;
}

.inventory-widget-provider-action {
  display: flex;
  justify-content: stretch;
  min-width: 0;
}

.inventory-v2-matrix-wrap {
  overflow: visible;
}

.inventory-v2-matrix {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.inventory-widget-provider-button,
.inventory-widget-provider-link {
  width: 100%;
}

.inventory-widget-provider-link {
  min-height: 34px;
}

.inventory-v2-matrix--valuation .inventory-v2-matrix-col--label {
  width: 24%;
}

.inventory-v2-matrix thead th,
.inventory-v2-matrix tbody th,
.inventory-v2-matrix td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(203, 196, 241, 0.58);
}

.inventory-v2-matrix thead th {
  color: #5a5490;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.inventory-v2-matrix thead th:first-child,
.inventory-v2-matrix tbody th {
  text-align: left;
}

.inventory-v2-matrix tbody th {
  color: #5a5490;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-v2-matrix tbody tr:last-child th,
.inventory-v2-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.inventory-v2-matrix td {
  text-align: center;
  vertical-align: middle;
}

.inventory-v2-value-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  color: #4e42d4;
  font-weight: 700;
  text-decoration: none;
}

.inventory-v2-value-link:hover,
.inventory-v2-value-link:focus-visible {
  text-decoration: underline;
}

.inventory-v2-value-link--static {
  color: #21163e;
}

.inventory-v2-cell-button,
.inventory-v2-refresh-button,
.inventory-v2-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(107, 93, 246, 0.18);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.inventory-v2-cell-button {
  width: 100%;
  padding: 7px 9px;
  background: rgba(107, 93, 246, 0.1);
  color: #4e42d4;
  white-space: nowrap;
}

.inventory-v2-refresh-button {
  padding: 8px 12px;
  background: linear-gradient(135deg, #6b5df6 0%, #8974ff 100%);
  border-color: rgba(107, 93, 246, 0.32);
  color: #fff;
}

.inventory-v2-secondary-button {
  padding: 8px 12px;
  background: rgba(107, 93, 246, 0.08);
  color: #5a5490;
}

.inventory-v2-secondary-button--alert {
  border-color: rgba(180, 86, 71, 0.28);
  background: rgba(246, 224, 221, 0.92);
  color: #9f412d;
}

.inventory-v2-pending {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.inventory-error-shell {
  display: grid;
  justify-items: center;
  padding: 32px 0 48px;
}

.inventory-error-panel {
  width: min(100%, 980px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px rgba(31, 42, 31, 0.08);
}

.inventory-error-panel h1,
.inventory-error-card h2 {
  margin: 0;
}

.inventory-error-summary {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  width: fit-content;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(180, 86, 71, 0.18);
  background: rgba(246, 224, 221, 0.72);
  color: #9f412d;
}

.inventory-error-summary strong {
  font-size: 1.35rem;
  line-height: 1;
}

.inventory-error-list {
  display: grid;
  gap: 14px;
}

.inventory-error-card,
.inventory-error-empty {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(212, 208, 194, 0.95);
  background: rgba(251, 249, 243, 0.92);
}

.inventory-error-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.inventory-error-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #9f412d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-error-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 86, 71, 0.18);
  background: rgba(246, 224, 221, 0.92);
  color: #9f412d;
  font-size: 0.78rem;
  font-weight: 700;
}

.inventory-error-message {
  margin: 0;
  color: #3a2d21;
  font-size: 1rem;
  line-height: 1.45;
}

.inventory-error-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
}

.inventory-error-meta div {
  display: grid;
  gap: 4px;
}

.inventory-error-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-error-meta dd {
  margin: 0;
}

.inventory-error-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(31, 95, 70, 0.08);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.inventory-source-message {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 95, 70, 0.14);
  background: rgba(217, 234, 220, 0.28);
  color: var(--accent);
  font-size: 0.95rem;
}

.inventory-source-message--error {
  border-color: rgba(180, 86, 71, 0.22);
  background: rgba(246, 224, 221, 0.92);
  color: #8a2f24;
}

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

.inventory-source-actions--header {
  margin-top: -4px;
}

.inventory-source-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 208, 194, 0.9);
  background: rgba(249, 248, 242, 0.94);
}

.inventory-source-summary p,
.inventory-source-slot-copy p,
.inventory-source-pane-header p {
  margin: 0;
}

.inventory-source-action-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 208, 194, 0.9);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.inventory-source-action-status--pending {
  border-color: rgba(31, 95, 70, 0.2);
  background: rgba(217, 234, 220, 0.42);
  color: var(--accent);
}

.inventory-source-action-status--pending::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: inventory-source-pulse 1.2s ease-in-out infinite;
}

.inventory-source-action-status--muted {
  color: var(--muted);
}

.inventory-source-slot-grid,
.inventory-source-pane-grid {
  display: grid;
  gap: 12px;
}

.inventory-source-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.inventory-source-pane-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.inventory-source-slot,
.inventory-source-pane {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 208, 194, 0.9);
  background: rgba(249, 248, 242, 0.94);
}

.inventory-source-slot h4,
.inventory-source-pane h4 {
  margin: 0;
  font-size: 1rem;
}

.inventory-source-slot-header,
.inventory-source-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.inventory-source-slot-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.inventory-source-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(212, 208, 194, 0.9);
  background: rgba(255, 255, 255, 0.94);
}

.inventory-source-thumb--placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.inventory-source-slot-copy {
  display: grid;
  gap: 4px;
}

.inventory-source-slot-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-source-slot-copy strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.inventory-source-slot-copy p {
  font-size: 0.94rem;
  line-height: 1.3;
}

.inventory-source-history {
  display: grid;
  gap: 8px;
}

.inventory-source-history-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.inventory-source-history-list li {
  display: grid;
  gap: 2px;
}

.inventory-source-suggestion {
  gap: 8px;
}

.inventory-source-suggestion-state {
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes inventory-source-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-weight: 600;
}

.status-data-issue {
  background: var(--danger-soft);
  border-color: #e8b1a6;
  color: var(--danger);
}

.status-aggressive-discount,
.status-discount {
  background: var(--warn-soft);
  border-color: #e8b486;
  color: var(--warn);
}

.status-review {
  background: #ebe8cf;
  border-color: #dbd4a3;
  color: #6e6530;
}

.status-hold {
  background: var(--accent-soft);
  border-color: #afd0b8;
  color: var(--accent);
}

.auth-shell {
  min-height: 85vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(560px, 100%);
  border-radius: 28px;
  padding: 32px;
}

.field-label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  font-size: 1rem;
  margin-bottom: 16px;
}

.alert-card {
  padding: 18px 20px;
  margin-bottom: 20px;
}

.alert-error {
  background: rgba(247, 221, 216, 0.92);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-progress-shell {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-strong);
}

.sync-progress-shell.is-hidden {
  display: none;
}

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

.sync-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7e61 0%, #4ea07e 100%);
  transition: width 0.35s ease;
}

.sync-progress-fill.is-failed {
  background: linear-gradient(90deg, #a84f1a 0%, #c56b35 100%);
}

.sync-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media print {
  body[data-print-mode="pricing-discrepancies"] {
    background: #fff;
  }

  body[data-print-mode="pricing-discrepancies"] .page-shell > * {
    display: none !important;
  }

  body[data-print-mode="pricing-discrepancies"] #pricing-discrepancies-panel {
    display: block !important;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  body[data-print-mode="pricing-discrepancies"] #pricing-discrepancies-panel .ghost-button {
    display: none !important;
  }

  body[data-print-mode="pricing-discrepancies"] #pricing-discrepancies-panel .table-wrap {
    overflow: visible;
  }

  body[data-print-mode="pricing-discrepancies"] #pricing-discrepancies-panel .data-table {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
  }

  .inventory-filters {
    align-items: stretch;
  }

  .filter-search,
  .filter-toggle,
  .filter-summary {
    width: 100%;
  }

  .advanced-filters-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
  }

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

  #active-inventory-table thead th {
    position: static;
    box-shadow: none;
  }

  .inventory-detail-header {
    flex-direction: column;
  }

  .inventory-detail-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .inventory-detail-card--wide {
    grid-column: span 1;
  }

  .inventory-v2-toolbar {
    justify-content: flex-start;
  }

  .inventory-v2-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .inventory-v2-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "age"
      "pricing"
      "valuation"
      "traffic";
  }

  .inventory-widget {
    width: 100%;
    height: auto;
  }

  .inventory-insight-hero {
    grid-template-columns: 1fr;
  }

  .inventory-source-slot-body {
    grid-template-columns: 1fr;
  }

  .inventory-source-thumb {
    width: 100%;
    height: 180px;
  }

  .inventory-widget-header {
    flex-direction: column;
  }

  .inventory-widget-provider-grid {
    grid-template-columns: 1fr;
  }

  .inventory-v2-metric-row dd {
    font-size: 1.05rem;
  }

  .inventory-v2-matrix {
    min-width: 0;
  }

  .inventory-error-panel {
    padding: 22px;
  }

  .inventory-error-card-header {
    flex-direction: column;
  }
}

.omai-auth-notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(119, 214, 165, 0.28);
  background: rgba(29, 62, 49, 0.58);
  color: #daf7e6;
  line-height: 1.45;
}

.omai-auth-notice--error {
  border-color: rgba(213, 91, 91, 0.28);
  background: rgba(85, 28, 32, 0.54);
  color: #ffe4e7;
}

.page-shell--admin-users {
  max-width: 1480px;
  padding: 24px;
}

.omai-admin-users-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

.omai-admin-users-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(181, 171, 255, 0.18);
  background: rgba(14, 16, 23, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.omai-admin-users-topbar__meta {
  max-width: 720px;
}

.omai-admin-users-topbar__meta h1 {
  margin: 10px 0 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 0.98;
  color: #ffffff;
}

.omai-admin-users-topbar__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.omai-page-message {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(181, 171, 255, 0.18);
  background: rgba(14, 16, 23, 0.72);
  color: #f5f2ff;
  backdrop-filter: blur(18px);
}

.omai-page-message.is-hidden {
  display: none;
}

.omai-page-message[data-tone="success"] {
  border-color: rgba(119, 214, 165, 0.28);
  color: #daf7e6;
}

.omai-page-message[data-tone="error"] {
  border-color: rgba(255, 133, 143, 0.3);
  color: #ffd6db;
}

.omai-admin-users-shell {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.omai-admin-users-layout .panel {
  background: rgba(14, 16, 23, 0.72);
  border: 1px solid rgba(181, 171, 255, 0.18);
  color: #f5f2ff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.omai-admin-users-layout .panel-copy,
.omai-admin-users-layout .muted-copy,
.omai-admin-users-layout .cell-meta,
.omai-admin-users-layout .filter-summary,
.omai-admin-users-layout .eyebrow {
  color: rgba(240, 236, 255, 0.72);
}

.omai-admin-users-layout .summary-card {
  background: rgba(19, 21, 31, 0.82);
  border: 1px solid rgba(181, 171, 255, 0.12);
  color: #ffffff;
}

.omai-admin-users-layout .summary-card strong {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.2rem;
}

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

.omai-form-field {
  display: grid;
  gap: 8px;
}

.omai-form-field span {
  color: rgba(240, 236, 255, 0.8);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.omai-form-field--compact {
  min-width: 180px;
}

.omai-admin-users-layout .field-input {
  margin-bottom: 0;
  border-color: rgba(181, 171, 255, 0.24);
  background: rgba(18, 20, 29, 0.92);
  color: #ffffff;
}

.omai-admin-users-layout .field-input::placeholder {
  color: rgba(207, 200, 255, 0.42);
}

.omai-textarea {
  min-height: 112px;
  resize: vertical;
}

.omai-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(240, 236, 255, 0.82);
}

.omai-checkbox-row input {
  margin: 0;
  accent-color: #7b70f8;
}

.omai-admin-summary {
  margin-bottom: 18px;
}

.omai-admin-filters {
  margin-bottom: 12px;
}

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

.omai-admin-table {
  min-width: 1100px;
}

.omai-admin-table th,
.omai-admin-table td {
  border-bottom-color: rgba(181, 171, 255, 0.12);
}

.omai-admin-table thead th {
  color: rgba(240, 236, 255, 0.72);
}

.omai-table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.omai-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 12px;
  border-color: rgba(181, 171, 255, 0.22);
  background: rgba(22, 24, 34, 0.9);
  color: #f5f2ff;
}

.omai-status-pill--active {
  background: rgba(29, 62, 49, 0.62);
  border-color: rgba(119, 214, 165, 0.28);
  color: #daf7e6;
}

.omai-status-pill--inactive {
  background: rgba(73, 31, 40, 0.64);
  border-color: rgba(255, 133, 143, 0.28);
  color: #ffd6db;
}

.omai-user-access-cell {
  display: grid;
  gap: 6px;
}

.omai-side-sheet,
.omai-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.omai-side-sheet.is-hidden,
.omai-modal.is-hidden {
  display: none;
}

.omai-side-sheet {
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(4, 5, 9, 0.48);
  backdrop-filter: blur(8px);
}

.omai-side-sheet__card,
.omai-modal__card {
  width: min(100%, 520px);
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(181, 171, 255, 0.18);
  background: rgba(14, 16, 23, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  color: #f5f2ff;
}

.omai-modal {
  display: grid;
  place-items: center;
  padding: 24px;
}

.omai-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.52);
  backdrop-filter: blur(8px);
}

.omai-modal__card {
  position: relative;
  z-index: 1;
}

.omai-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 1080px) {
  .omai-admin-users-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell--admin-users {
    padding: 16px;
  }

  .omai-admin-users-topbar {
    flex-direction: column;
  }

  .omai-admin-users-topbar__actions {
    justify-content: flex-start;
  }

  .omai-admin-filters {
    align-items: stretch;
  }

  .omai-form-field--compact {
    min-width: 100%;
  }

  .omai-side-sheet {
    padding: 12px;
  }

  .omai-side-sheet__card,
  .omai-modal__card {
    width: 100%;
  }
}

body.omai-shell--auth,
body.omai-shell--admin-users {
  color: #17191c;
  background:
    radial-gradient(circle at top left, rgba(15, 29, 23, 0.06), transparent 26%),
    linear-gradient(180deg, #fcfcfc 0%, #f9fafa 100%);
  font-family: "Inter", "Segoe UI", sans-serif;
}

body.omai-shell--auth::before,
body.omai-shell--admin-users::before {
  display: none;
}

.omai-shell--auth .eyebrow,
.omai-shell--admin-users .eyebrow,
.omai-shell--auth .field-label,
.omai-shell--admin-users .field-label,
.omai-shell--admin-users .eyebrow--light {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: 0.12em;
  color: rgba(53, 57, 64, 0.72);
}

.omai-shell--auth .page-shell,
.omai-shell--admin-users .page-shell {
  max-width: none;
}

.omai-shell--auth .omai-auth-card,
.omai-shell--admin-users .panel,
.omai-shell--admin-users .omai-side-sheet__card,
.omai-shell--admin-users .omai-modal__card {
  border: 1px solid #dedfe3;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(23, 25, 28, 0.08);
  backdrop-filter: blur(16px);
}

.omai-shell--auth .omai-auth-card {
  width: min(100%, 440px);
  border-radius: 24px;
  padding: 34px 32px 30px;
}

.omai-shell--auth .omai-auth-card h1,
.omai-shell--admin-users h1,
.omai-shell--admin-users h2 {
  color: #17191c;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.04em;
}

.omai-shell--auth .omai-auth-copy,
.omai-shell--auth .muted-copy,
.omai-shell--admin-users .panel-copy,
.omai-shell--admin-users .muted-copy,
.omai-shell--admin-users .omai-home-subtitle {
  color: #353940;
}

.omai-shell--auth .field-input,
.omai-shell--admin-users .field-input {
  border-radius: 16px;
  border: 1px solid #dedfe3;
  background: #ffffff;
  color: #17191c;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.omai-shell--auth .field-input::placeholder,
.omai-shell--admin-users .field-input::placeholder {
  color: rgba(53, 57, 64, 0.48);
}

.omai-shell--auth .omai-auth-divider {
  color: rgba(53, 57, 64, 0.68);
}

.omai-shell--auth .omai-auth-divider::before,
.omai-shell--auth .omai-auth-divider::after {
  background: #dedfe3;
}

.omai-shell--auth .primary-button,
.omai-shell--auth .omai-primary-button,
.omai-shell--admin-users .primary-button {
  background: #0f1d17;
  border-color: #0f1d17;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 29, 23, 0.12);
  border-radius: 14px;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 700;
}

body.omai-shell--auth {
  background: #f7f7f7;
}

.omai-shell--auth .omai-auth-layout {
  padding: 36px 20px;
}

.omai-shell--auth .omai-login-card {
  width: min(100%, 620px);
  padding: 58px 56px 46px;
  border: 1px solid #eeeeef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 17, 20, 0.08);
}

.omai-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 66px;
  color: #101114;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.omai-login-brand .omai-brand-mark {
  width: 38px;
  height: 38px;
  margin: 0;
}

.omai-shell--auth .omai-auth-card .omai-login-title {
  margin: 0 0 42px;
  color: #17191c;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.omai-login-card .omai-auth-form {
  gap: 0;
  margin-top: 0;
}

.omai-login-card .omai-google-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 62px;
  padding: 0 34px;
  border: 1px solid #c9c9cc;
  border-radius: 8px;
  background: #ffffff;
  color: #17191c;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.omai-login-card .omai-google-button:hover,
.omai-login-card .omai-google-button:focus-visible {
  border-color: #17191c;
  outline: none;
}

.omai-google-icon {
  width: 28px;
  height: 28px;
}

.omai-google-button-text {
  min-width: 0;
}

.omai-login-card .omai-auth-divider {
  gap: 18px;
  margin: 38px 0 44px;
  color: #4f5358;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.omai-login-card .omai-auth-divider::before,
.omai-login-card .omai-auth-divider::after {
  background: #e3e3e5;
}

.omai-auth-field-group,
.omai-password-step {
  display: grid;
  gap: 10px;
}

.omai-password-step {
  margin-top: 20px;
}

.omai-password-step[hidden] {
  display: none;
}

.omai-shell--auth .omai-login-card .field-label {
  color: #5e6268;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.omai-shell--auth .omai-login-card .field-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #cfcfd3;
  border-radius: 8px;
  background: #ffffff;
  color: #17191c;
  font-size: 1.02rem;
  padding: 0 16px;
}

.omai-shell--auth .omai-login-card .field-input:focus {
  border-color: #17191c;
  box-shadow: 0 0 0 3px rgba(23, 25, 28, 0.08);
  outline: none;
}

.omai-shell--auth .omai-login-card .omai-login-continue {
  min-height: 58px;
  margin-top: 28px;
  border-radius: 8px;
  background: #111214;
  border-color: #111214;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 700;
  box-shadow: none;
}

.omai-shell--auth .omai-login-card .omai-login-continue:hover,
.omai-shell--auth .omai-login-card .omai-login-continue:focus-visible {
  background: #000000;
  border-color: #000000;
  outline: none;
}

.omai-forgot-password-button {
  justify-self: center;
  margin: 28px 0 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #17191c;
  cursor: pointer;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.omai-forgot-password-button:hover,
.omai-forgot-password-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.omai-login-card #auth-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #5e6268;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 720px) {
  .omai-shell--auth .omai-auth-layout {
    padding: 18px;
  }

  .omai-shell--auth .omai-login-card {
    padding: 38px 24px 34px;
  }

  .omai-login-brand {
    margin-bottom: 46px;
    font-size: 1.8rem;
  }

  .omai-shell--auth .omai-auth-card .omai-login-title {
    margin-bottom: 32px;
    font-size: 2.35rem;
  }

  .omai-login-card .omai-google-button {
    min-height: 58px;
    padding: 0 18px;
    font-size: 1.08rem;
  }

  .omai-login-card .omai-auth-divider {
    margin: 30px 0 34px;
    font-size: 1.05rem;
  }
}

.omai-shell--auth .ghost-button,
.omai-shell--auth .ghost-button--dark,
.omai-shell--admin-users .ghost-button,
.omai-shell--admin-users .ghost-button--dark {
  border-radius: 14px;
  border-color: #dedfe3;
  background: #ffffff;
  color: #353940;
}

.omai-shell--auth .omai-brand-mark {
  filter: drop-shadow(0 14px 24px rgba(5, 5, 5, 0.14));
}

.omai-shell--admin-users .omai-admin-users-topbar {
  margin-bottom: 20px;
  padding: 24px 0 0;
  align-items: flex-start;
}

.omai-shell--admin-users .session-chip--dark {
  border-color: #dedfe3;
  background: #ffffff;
  color: #353940;
}

.omai-shell--admin-users .omai-admin-users-shell {
  gap: 18px;
}

.omai-shell--admin-users .data-table th {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: #17191c;
}
