.vehicle-card {
  display: grid;
  grid-template-columns: minmax(128px, 48%) minmax(0, 1fr);
  grid-template-areas:
    "photo info"
    "actions actions";
  gap: 8px 10px;
  align-items: stretch;
  padding: 8px;
  border-color: rgba(214, 198, 176, 0.86);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(69, 45, 22, 0.12);
}

.vehicle-card img,
.vehicle-placeholder {
  grid-area: photo;
  width: 100%;
  height: 170px;
  border-radius: 9px;
  object-fit: cover;
  background: #c7d3e8;
}

.vehicle-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.inventory-overview-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.inventory-overview-card article {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(190, 205, 224, 0.92);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.inventory-overview-card span {
  color: #526784;
  font-size: 12px;
  font-weight: 900;
}

.inventory-overview-card strong {
  color: #071225;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.inventory-overview-card article.stock strong {
  color: #15803d;
}

.inventory-overview-card article.repair strong {
  color: #b45309;
}

.inventory-overview-card article.loan strong {
  color: #1d4ed8;
}

@media (max-width: 560px) {
  .inventory-overview-card {
    grid-template-columns: 1fr;
  }
}

.page[data-panel="inventory"] .desktop-table-head,
.page[data-panel="inventory"] .vehicle-table-cells,
.page[data-panel="inventory"] .desktop-status-panel {
  display: none;
}

.vehicle-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vehicle-info {
  grid-area: info;
  min-width: 0;
  padding: 5px 3px 0 0;
}

.vehicle-title-row h2 {
  min-width: 0;
  flex: 0 1 auto;
  margin: 0;
  color: #071225;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.08;
}

.vehicle-stats,
.sold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 7px 0 0;
}

.vehicle-stats b {
  display: grid;
  min-height: 47px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 6px 5px;
  border: 1px solid rgba(214, 198, 176, 0.82);
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  color: #071225;
  font-size: 15px;
  text-align: center;
}

.vehicle-stats span,
.sold-grid b {
  display: block;
}

.vehicle-stats span {
  color: #526784;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.vehicle-stats b.vehicle-status-stat {
  display: grid;
  min-height: 52px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 7px 6px;
  border-width: 1px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.vehicle-stats b.vehicle-status-stat span {
  color: #526784;
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.vehicle-stats b.vehicle-status-stat strong {
  display: block;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.vehicle-stats b.vehicle-status-stat.status-in-stock {
  border-color: rgba(21, 148, 106, 0.26);
  background: #dcfce7;
  color: #15803d;
}

.vehicle-stats b.vehicle-status-stat.status-preparing {
  border-color: rgba(37, 99, 235, 0.26);
  background: #dbeafe;
  color: #1d4ed8;
}

.vehicle-stats b.vehicle-status-stat.status-pending-delivery {
  border-color: rgba(124, 77, 232, 0.28);
  background: #ede9fe;
  color: #5b21b6;
}

.vehicle-stats b.vehicle-status-stat.status-reserved {
  border-color: rgba(183, 114, 22, 0.3);
  background: #ffedd5;
  color: #9a3412;
}

.vehicle-stats b.vehicle-status-stat.status-sold {
  border-color: rgba(180, 35, 24, 0.26);
  background: #ffe5e5;
  color: #b42318;
}

.vehicle-stats b.vehicle-status-stat.status-deleted {
  border-color: rgba(75, 85, 99, 0.22);
  background: #e5e7eb;
  color: #4b5563;
}

.vehicle-info p {
  margin: 5px 0 0;
  color: #526784;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.vehicle-meta {
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
  color: #33445f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.vehicle-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill,
.gold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 48px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.pill.stock {
  background: #e6f6e8;
  color: #16803f;
}

.vehicle-title-row .pill.stock,
.vehicle-title-row .pill.status-in-stock,
.vehicle-title-row .pill.status-preparing,
.vehicle-title-row .pill.status-pending-delivery,
.vehicle-title-row .pill.status-reserved,
.vehicle-title-row .pill.status-sold,
.vehicle-title-row .pill.status-deleted {
  min-width: 54px;
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.pill.status-in-stock {
  border: 1px solid rgba(21, 148, 106, 0.26);
  background: #dcfce7;
  color: #15803d;
}

.pill.status-preparing {
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: #dbeafe;
  color: #1d4ed8;
}

.pill.status-pending-delivery {
  border: 1px solid rgba(124, 77, 232, 0.24);
  background: #ede9fe;
  color: #5b21b6;
}

.pill.status-reserved {
  border: 1px solid rgba(183, 114, 22, 0.28);
  background: #ffedd5;
  color: #9a3412;
}

.pill.status-sold {
  border: 1px solid rgba(180, 35, 24, 0.24);
  background: #ffe5e5;
  color: #b42318;
}

.pill.status-deleted {
  border: 1px solid rgba(75, 85, 99, 0.2);
  background: #e5e7eb;
  color: #4b5563;
}

.inventory-status-text {
  display: inline-flex;
  justify-self: center;
  width: fit-content;
  min-width: 54px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 950;
}

.inventory-status-text.status-in-stock { background: #dcfce7; color: #15803d; }
.inventory-status-text.status-preparing { background: #dbeafe; color: #1d4ed8; }
.inventory-status-text.status-pending-delivery { background: #ede9fe; color: #5b21b6; }
.inventory-status-text.status-reserved { background: #ffedd5; color: #9a3412; }
.inventory-status-text.status-sold { background: #ffe5e5; color: #b42318; }
.inventory-status-text.status-deleted { background: #e5e7eb; color: #4b5563; }

.pill.status-in-stock,
.inventory-status-text.status-in-stock,
.vehicle-stats b.vehicle-status-stat.status-in-stock {
  --vehicle-status-bg: #dcfce7;
  --vehicle-status-fg: #15803d;
  --vehicle-status-border: rgba(21, 148, 106, 0.26);
}

.pill.status-preparing,
.inventory-status-text.status-preparing,
.vehicle-stats b.vehicle-status-stat.status-preparing {
  --vehicle-status-bg: #dbeafe;
  --vehicle-status-fg: #1d4ed8;
  --vehicle-status-border: rgba(37, 99, 235, 0.26);
}

.pill.status-pending-delivery,
.inventory-status-text.status-pending-delivery,
.vehicle-stats b.vehicle-status-stat.status-pending-delivery {
  --vehicle-status-bg: #ede9fe;
  --vehicle-status-fg: #5b21b6;
  --vehicle-status-border: rgba(124, 77, 232, 0.28);
}

.pill.status-reserved,
.inventory-status-text.status-reserved,
.vehicle-stats b.vehicle-status-stat.status-reserved {
  --vehicle-status-bg: #ffedd5;
  --vehicle-status-fg: #9a3412;
  --vehicle-status-border: rgba(183, 114, 22, 0.3);
}

.pill.status-sold,
.inventory-status-text.status-sold,
.vehicle-stats b.vehicle-status-stat.status-sold {
  --vehicle-status-bg: #ffe5e5;
  --vehicle-status-fg: #b42318;
  --vehicle-status-border: rgba(180, 35, 24, 0.26);
}

.pill.status-deleted,
.inventory-status-text.status-deleted,
.vehicle-stats b.vehicle-status-stat.status-deleted {
  --vehicle-status-bg: #e5e7eb;
  --vehicle-status-fg: #4b5563;
  --vehicle-status-border: rgba(75, 85, 99, 0.22);
}

.vehicle-title-row .pill[class*="status-"],
.inventory-status-text[class*="status-"],
.vehicle-stats b.vehicle-status-stat[class*="status-"] {
  border: 1px solid var(--vehicle-status-border) !important;
  background: var(--vehicle-status-bg) !important;
  color: var(--vehicle-status-fg) !important;
}

.vehicle-stats b.vehicle-status-stat[class*="status-"] span {
  color: var(--vehicle-status-fg) !important;
}

[data-view="table"] .vehicle-stats b.vehicle-status-stat {
  min-height: 48px;
  padding: 6px 4px;
}

[data-view="table"] .vehicle-stats b.vehicle-status-stat strong {
  font-size: 12px;
}

.pill.sold {
  background: #ffe5e5;
  color: #b42318;
}

.gold-pill {
  margin-left: 6px;
  background: linear-gradient(135deg, #3a2a05, #9a6517 48%, var(--gold));
  color: #fff7d6;
}

.card-actions {
  grid-area: actions;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 2px;
}

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

.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 32px;
  padding: 0 6px;
  border: 1px solid rgba(214, 198, 176, 0.82);
  border-radius: 6px;
  background:
    linear-gradient(180deg, #fffaf2 0%, #f3eadb 100%),
    #f8f0e4;
  color: #071225;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.card-actions .manage {
  border-color: rgba(176, 126, 28, 0.48);
  background: linear-gradient(180deg, #fff9eb 0%, #f6ead2 100%);
  color: #071225;
}

.card-actions .deposit {
  border-color: rgba(65, 138, 91, 0.44);
  background: linear-gradient(180deg, #f4fbf5 0%, #e4f3e8 100%);
  color: #071225;
}

.card-actions .deposit.reserved {
  border-color: rgba(184, 115, 19, 0.52);
  background: linear-gradient(180deg, #fff4d8 0%, #f3c46f 100%);
  color: #5b2d05;
}

.card-actions .repair {
  border-color: rgba(141, 91, 18, 0.58);
  background: linear-gradient(180deg, #dcb04a 0%, #966415 100%);
  color: #fffaf0;
}

body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card .card-actions .repair {
  display: none;
}

.card-actions .sell,
.card-actions .detail {
  border-color: rgba(96, 84, 176, 0.38);
  background: linear-gradient(180deg, #f8f7ff 0%, #ebe8fb 100%);
  color: #071225;
}

.card-actions .delete {
  border-color: rgba(190, 64, 64, 0.38);
  background: #fff;
  color: #c92828;
}

.card-actions .view {
  border-color: rgba(176, 126, 28, 0.48);
  background: linear-gradient(180deg, #fff9eb 0%, #f6ead2 100%);
  color: #071225;
}

[data-view="compact"] .vehicle-card {
  grid-template-columns: 72px 1fr;
}

[data-view="compact"] .vehicle-card img,
[data-view="compact"] .vehicle-placeholder {
  width: 72px;
  height: 72px;
}

[data-view="compact"] .vehicle-title-row h2 {
  font-size: 18px;
}

[data-view="compact"] .vehicle-info p,
[data-view="compact"] .vehicle-meta {
  font-size: 11px;
}

[data-view="compact"] .vehicle-stats {
  display: none;
}

[data-view="table"] .vehicle-card {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

[data-view="table"] .vehicle-card img,
[data-view="table"] .vehicle-placeholder {
  display: block;
  width: 100%;
  height: 138px;
  border-radius: 0;
  object-fit: cover;
}

[data-view="table"] .vehicle-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #c8d3e6 0%, #aebbd2 100%),
    #c7d3e8;
  color: #ffffff;
}

[data-view="table"] .vehicle-info {
  min-width: 0;
}

[data-view="table"] .vehicle-title-row {
  padding: 12px 12px 0;
}

[data-view="table"] .vehicle-title-row h2 {
  font-size: 18px;
}

[data-view="table"] .vehicle-info p {
  margin: 6px 12px 10px;
  font-size: 12px;
}

[data-view="table"] .vehicle-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf2;
}

[data-view="table"] .vehicle-stats b {
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 13px;
}

[data-view="table"] .vehicle-stats span {
  font-size: 10px;
}

[data-view="table"] .vehicle-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fffaf2;
}

[data-view="table"] .vehicle-meta span {
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  color: #071225;
  font-size: 12px;
}

[data-view="table"] .vehicle-meta span:nth-child(odd) {
  border-right: 1px solid var(--line);
}

[data-view="table"] .card-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  justify-content: stretch;
  justify-items: stretch;
  padding: 10px 8px 12px;
}

[data-view="table"] .card-actions button {
  width: 100%;
  height: 34px;
  padding: 0 4px;
  font-size: 13px;
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  padding-bottom: 10px;
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button {
  width: 100%;
  min-width: 0;
  height: 30px;
  gap: 3px;
  padding: 0 3px;
  font-size: 11px;
  white-space: nowrap;
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.all {
  --status-tab-border: rgba(183, 114, 22, 0.68);
  --status-tab-bg: linear-gradient(180deg, #f8d98a 0%, #d7a13b 56%, #b77a1d 100%);
  --status-tab-text: #071225;
  --status-tab-shadow: rgba(117, 72, 18, 0.18);
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.stock {
  --status-tab-border: rgba(21, 148, 106, 0.66);
  --status-tab-bg: linear-gradient(180deg, #e8fff1 0%, #b9f3cd 58%, #34c182 100%);
  --status-tab-text: #064e3b;
  --status-tab-shadow: rgba(21, 148, 106, 0.18);
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.delivery {
  --status-tab-border: rgba(124, 77, 232, 0.62);
  --status-tab-bg: linear-gradient(180deg, #f4efff 0%, #ddd2ff 58%, #9b7af2 100%);
  --status-tab-text: #32146d;
  --status-tab-shadow: rgba(124, 77, 232, 0.2);
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.repair {
  --status-tab-border: rgba(37, 99, 235, 0.6);
  --status-tab-bg: linear-gradient(180deg, #eef6ff 0%, #cfe4ff 58%, #6ea5ef 100%);
  --status-tab-text: #123b7a;
  --status-tab-shadow: rgba(37, 99, 235, 0.18);
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.deposit {
  --status-tab-border: rgba(183, 114, 22, 0.62);
  --status-tab-bg: linear-gradient(180deg, #fff7e8 0%, #ffd89a 58%, #d08a28 100%);
  --status-tab-text: #5b2d05;
  --status-tab-shadow: rgba(183, 114, 22, 0.18);
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.active {
  border-color: var(--status-tab-border);
  background: var(--status-tab-bg);
  color: var(--status-tab-text);
  box-shadow:
    0 9px 16px var(--status-tab-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 0 rgba(7, 18, 37, 0.22);
}

body:not(.desktop-page) .page[data-panel="inventory"] .status-tabs button.active::after {
  background: var(--status-tab-border);
}

body:not(.desktop-page) .page[data-panel="inventory"] [data-view-group="inventory"] [data-view="table"],
body:not(.desktop-page) .page[data-panel="sold"] [data-view-group="sold"] [data-view="table"] {
  display: none;
}

body:not(.desktop-page) .mobile-modal[data-modal="vehicle-add"] .choice-grid button {
  border: 1px solid rgba(196, 174, 141, 0.64);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6eee1 100%),
    #fffaf2;
  color: #18243a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 12px rgba(75, 50, 22, 0.06);
}

body:not(.desktop-page) .mobile-modal[data-modal="vehicle-add"] .choice-grid button.selected {
  border-color: rgba(151, 99, 27, 0.82);
  background:
    linear-gradient(180deg, #f8d98a 0%, #d7a13b 56%, #b77a1d 100%),
    #d8a340;
  color: #071225;
  box-shadow:
    0 9px 16px rgba(117, 72, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(93, 58, 16, 0.42);
}

/* 2026-07 mobile visual refresh: preserve the existing layout and hierarchy. */
body:not(.desktop-page) .page[data-panel="inventory"] {
  --inventory-navy: #071225;
  --inventory-gold: #c98a2e;
  --inventory-cream: #fbf8f3;
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip {
  min-height: 142px;
  overflow: hidden;
  padding: 30px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(4, 12, 25, 0.98) 0%, rgba(5, 14, 29, 0.9) 48%, rgba(5, 14, 29, 0.24) 100%),
    url("https://q.hongyicar.tw/hongyi-assets/mock-cars/bmw-x3.jpg") 74% 52% / cover no-repeat,
    #071225;
  box-shadow: 0 14px 30px rgba(7, 18, 37, 0.2);
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip p {
  color: #e6b65f;
  font-size: 10px;
  letter-spacing: 0.18em;
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip h1 {
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.5);
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card,
body:not(.desktop-page) .page[data-panel="inventory"] .filter-card {
  border-color: rgba(223, 215, 204, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(68, 50, 31, 0.09);
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card input,
body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card select {
  border-color: #e4ded5;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card button {
  border-color: #d5a452;
  background: linear-gradient(135deg, #edc675 0%, #c98a2e 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(158, 99, 23, 0.24);
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article {
  border-color: rgba(226, 219, 209, 0.88);
  background: linear-gradient(155deg, #fff 0%, #fbf8f3 100%);
  box-shadow: 0 10px 24px rgba(36, 30, 23, 0.08);
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card span {
  color: #514b44;
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card strong,
body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.stock strong,
body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.repair strong {
  color: #7d521c;
}

body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.loan strong {
  color: var(--inventory-navy);
}

body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .status-tabs button,
body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .view-tabs button {
  border-color: rgba(225, 217, 207, 0.92);
  background: #fbf8f3;
  color: #41403f;
  box-shadow: none;
}

body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .status-tabs button.active,
body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .view-tabs button.active {
  border-color: #c58a32;
  background: linear-gradient(145deg, #14243d 0%, #071225 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 18, 37, 0.18);
}

body:not(.desktop-page) .page[data-panel="inventory"] .full-action {
  border-color: #172844;
  background: linear-gradient(145deg, #14243d 0%, #071225 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 18, 37, 0.22);
}

body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card {
  border-color: rgba(226, 219, 209, 0.9);
  background: #fff;
  box-shadow: 0 10px 24px rgba(39, 31, 22, 0.09);
}

body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card img,
body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-placeholder {
  background-color: #e8e4de;
  box-shadow: inset 0 0 0 1px rgba(7, 18, 37, 0.05);
}

body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-title-row h2 {
  color: #111827;
}

body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-stats b {
  border-color: #ede7de;
  background: #fcfaf7;
  color: #172033;
}

body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-stats span {
  color: #6b6258;
}

/* Mobile inventory landing composition — matches the approved luxury reference. */
@media (max-width: 560px) {
  body:not(.desktop-page) .page[data-panel="inventory"] {
    padding: 8px 4px 24px !important;
    background: #f7f4ef !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip {
    position: relative;
    min-height: 107px !important;
    margin: 0 0 14px !important;
    padding: 28px 16px 15px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background:
      linear-gradient(90deg, rgba(3, 11, 23, .98) 0%, rgba(5, 14, 29, .90) 49%, rgba(5, 14, 29, .16) 100%),
      url("./vehicle-site-assets/contact-hero-car-single.jpg") 78% 52% / cover no-repeat,
      #071225 !important;
    box-shadow: 0 8px 20px rgba(7, 18, 37, .15) !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip p {
    margin: 0 0 3px !important;
    font-size: 8px !important;
    line-height: 1;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip h1 {
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1.06 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-title-strip::after {
    content: "快速搜尋・精準管理您的車輛庫存";
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 16px 12px 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 8px 24px rgba(66, 48, 29, .08) !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card select,
  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card input {
    width: 100%;
    height: 45px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #e6e1da !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card select {
    padding-left: 36px !important;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23353b45' stroke-width='1.7'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18'/%3E%3C/svg%3E") !important;
    background-position: 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 17px 17px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card select:nth-of-type(2) {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23353b45' stroke-width='1.7'%3E%3Cpath d='M20.6 13.6 11 23.2 1.8 14V4.8h9.2l9.6 9.6a1.1 1.1 0 0 1 0 1.6Z' transform='scale(.88) translate(1 0)'/%3E%3Ccircle cx='7.2' cy='8.2' r='1.25'/%3E%3C/svg%3E") !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card select:nth-of-type(3) {
    grid-column: auto !important;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23353b45' stroke-width='1.7'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card [data-sql-inventory-capital] {
    grid-column: auto !important;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23353b45' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 7v10M9 9h4a2 2 0 0 1 0 4h-2a2 2 0 0 0 0 4h4'/%3E%3C/svg%3E") !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card input {
    padding-left: 38px !important;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f7781' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") !important;
    background-position: 13px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card input,
  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card button {
    grid-column: 1 / -1 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card button {
    height: 47px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #edc675 0%, #c98a2e 100%) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-search-card button::before {
    content: "⌕";
    margin-right: 7px;
    font-size: 15px;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 12px;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card.two-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 118px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 46px 5px 7px;
    border: 0;
    border-radius: 14px;
    text-align: center;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(190, 139, 59, 0.12);
    background: linear-gradient(145deg, #fffaf1 0%, #f5e8d4 100%);
    background-color: #f7efe2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    box-shadow: 0 5px 12px rgba(126, 83, 24, 0.1);
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23946620' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.2 6.6 7.8A2.7 2.7 0 0 1 9.1 6h5.8a2.7 2.7 0 0 1 2.5 1.8l1.6 4.4'/%3E%3Cpath d='M4.5 12.2h15a1.5 1.5 0 0 1 1.5 1.5v3.8H3v-3.8a1.5 1.5 0 0 1 1.5-1.5Z'/%3E%3Cpath d='M6 17.5v1.3A1.2 1.2 0 0 0 7.2 20h.6A1.2 1.2 0 0 0 9 18.8v-1.3m6 0v1.3a1.2 1.2 0 0 0 1.2 1.2h.6a1.2 1.2 0 0 0 1.2-1.2v-1.3M7.2 14.8h.1m9.4 0h.1M7 9.4h10'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.reserved::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23946620' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20.5 13.5-7 7a2 2 0 0 1-2.8 0l-7.2-7.2a2 2 0 0 1 0-2.8L10 4h8a2 2 0 0 1 2 2v6a2 2 0 0 1-.5 1.5Z'/%3E%3Ccircle cx='15.5' cy='8.5' r='1.2'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.price::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23946620' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15 8.5c-.7-.7-1.7-1-3-1-1.7 0-3 .9-3 2.2 0 3.3 6 1.4 6 4.6 0 1.3-1.3 2.2-3 2.2-1.2 0-2.3-.4-3-1.2M12 5.5v13'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.repair::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23946620' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.7 5.2 4.1 4.1M16.2 3.7l1.4-1.4 4.1 4.1-1.4 1.4M13.3 6.6 4.6 15.3a2.8 2.8 0 0 0-.7 1.2L2.5 21.5l5-1.4a2.8 2.8 0 0 0 1.2-.7l8.7-8.7'/%3E%3Cpath d='m8.2 8.2 7.6 7.6M17.2 14.4l2.9 2.9a2 2 0 1 1-2.8 2.8l-2.9-2.9M6.8 9.6 3.9 6.7a2 2 0 0 1 2.8-2.8l2.9 2.9'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.loan::before {
    border-color: rgba(71, 94, 128, 0.12);
    background: linear-gradient(145deg, #f7faff 0%, #e5ebf4 100%);
    background-color: #e8edf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4663' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='16' height='11.5' rx='2'/%3E%3Cpath d='M5.5 8.5h10M5.5 14h4'/%3E%3Ccircle cx='16.7' cy='16.7' r='4.8' fill='%23f4f7fb'/%3E%3Cpath d='M18.2 14.8c-.4-.4-.9-.6-1.5-.6-.9 0-1.5.4-1.5 1s.5.9 1.6 1.1c1 .2 1.5.6 1.5 1.2s-.6 1.1-1.6 1.1c-.7 0-1.3-.2-1.7-.7m1.7-4.6v6.7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
    box-shadow: 0 5px 12px rgba(47, 70, 99, 0.1);
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.profit::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23946620' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v10M9.2 9h4.2a1.8 1.8 0 0 1 0 3.6h-2.8a1.8 1.8 0 0 0 0 3.6h4.2'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.sales::before {
    border-color: rgba(71, 94, 128, 0.12);
    background-color: #e8edf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4663' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l1.7-4.6A2.2 2.2 0 0 1 7.8 7h7.4a2.2 2.2 0 0 1 2.1 1.4L19 13'/%3E%3Cpath d='M3.5 13h16v5h-16zM6 18v1.5M17 18v1.5'/%3E%3Cpath d='m15.5 4 1.5 1.5L20 2.5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card span {
    min-height: 24px;
    font-size: 10px;
    line-height: 1.35;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card strong {
    width: 100%;
    overflow: hidden;
    font-size: 20px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article::after {
    display: none;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.stock::after { content: "在庫車輛總數"; }
  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.repair::after { content: "含油資與代辦費"; }
  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.loan::after { content: "買入價格加總"; }
  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.profit::after { content: "個人業務分潤"; }
  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article.sales::after { content: "本月個人成交"; }

  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 13px 9px 66px !important;
    border: 0 !important;
    border-radius: 14px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .status-tabs,
  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .view-tabs {
    display: contents !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .status-tabs button:not(.all) {
    display: none !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] [data-view-group="inventory"] [data-view="table"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .status-tabs button,
  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .view-tabs button {
    width: 100% !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 4px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .full-action {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(100% - 18px) !important;
    height: 43px !important;
    margin: -55px auto 14px !important;
    border-radius: 9px !important;
    background: linear-gradient(145deg, #14243d 0%, #071225 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: -55px 9px 14px;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions.has-ai-copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions .full-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100% !important;
    height: 43px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 900;
    white-space: nowrap;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions .full-action[data-open-modal="vehicle-add"]::before {
    content: "＋";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions .inspection-alert-mobile-action {
    border: 1px solid #d3a24e !important;
    background: linear-gradient(180deg, #fffdf7 0%, #fff6e5 100%) !important;
    color: #8d5c08 !important;
    box-shadow: 0 7px 16px rgba(159, 99, 24, .14) !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions .inventory-ai-copy-mobile-action {
    border: 1px solid #7ea5df !important;
    background: linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%) !important;
    color: #174f9c !important;
    box-shadow: 0 7px 16px rgba(42, 94, 170, .12) !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-mobile-primary-actions .inventory-ai-copy-mobile-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
    grid-template-areas: "photo info" "actions actions" !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e5ded5 !important;
    border-radius: 13px !important;
    background: #fff !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card > img,
  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card > .vehicle-placeholder {
    width: 100% !important;
    height: 170px !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-info {
    padding: 12px 12px 8px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-title-row {
    align-items: flex-start;
    justify-content: space-between;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-title-row h2 {
    font-size: 17px !important;
    line-height: 1.12 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-title-row .pill {
    min-width: 44px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-info > p {
    margin-top: 5px !important;
    font-size: 10px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-stats b {
    min-height: 48px !important;
    padding: 5px 3px !important;
    border: 1px solid #ebe4da !important;
    border-radius: 7px !important;
    background: #fffdf9 !important;
    font-size: 14px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-stats span {
    font-size: 9px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px 12px 9px !important;
    border-top: 1px solid #eee7dd;
    background: #fff;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card .card-actions .repair {
    display: inline-flex !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions button {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-card .card-actions .delete {
    grid-column: 1 / -1 !important;
    grid-column-start: 1 !important;
    grid-column-end: -1 !important;
    width: 100% !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions button::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-right: 6px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .manage::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071225' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 16-1 5 5-1L19 9l-4-4L4 16Z'/%3E%3Cpath d='m13.5 6.5 4 4M3 21h18'/%3E%3C/svg%3E");
  }
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .deposit::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071225' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2V3Z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E");
  }
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .repair::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23365b7d' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.2 6.2 17.8 2.6a5 5 0 0 0-6.5 6.5l-8.1 8.1a2.5 2.5 0 1 0 3.6 3.6l8.1-8.1a5 5 0 0 0 6.5-6.5l-3.6 3.6-3.6-.9-.9-3.6.9-.9Z'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .repair {
    border-color: #ebe5dc !important;
    background: #f7f4ef !important;
    color: #4b3822 !important;
    box-shadow: none !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .manage,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .deposit,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .repair,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .sell {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    border: 1px solid #e4ddd3 !important;
    border-radius: 5px !important;
    background: #f7f4ef !important;
    color: #3f3529 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .manage::before,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .deposit::before,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .repair::before,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .sell::before {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    margin-right: 6px;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .manage {
    border-color: #e6cfaa !important;
    background: #fffaf0 !important;
    color: #3f3529 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .deposit {
    border-color: #d7a540 !important;
    background: #f7d98d !important;
    color: #5b3508 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .repair {
    border-color: #aec8df !important;
    background: #edf6fc !important;
    color: #365b7d !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .sell {
    border-color: #bcb0e8 !important;
    background: #f0edff !important;
    color: #3f3276 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .manage,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .deposit,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .repair,
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .sell {
    color: #111827 !important;
  }
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .sell::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071225' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.6 11 23.2 1.8 14V4.8h9.2l9.6 9.6a1.1 1.1 0 0 1 0 1.6Z' transform='scale(.88) translate(1 0)'/%3E%3Ccircle cx='7.2' cy='8.2' r='1.25'/%3E%3C/svg%3E");
  }
  body:not(.desktop-page) .page[data-panel="inventory"] .card-actions .delete::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c92828' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 14h8l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E");
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-card {
    position: relative;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
    grid-template-areas: "photo info" "actions actions" !important;
    min-height: 170px;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-card > img,
  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-card > .vehicle-placeholder {
    width: 100% !important;
    height: 170px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-info {
    min-width: 0;
    padding: 12px 12px 8px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-title-row h2 {
    min-width: 0;
    font-size: 17px !important;
    line-height: 1.15 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-title-row .pill {
    position: static !important;
    flex: 0 0 auto;
    min-width: 43px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-info > p {
    margin-top: 5px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-stats b {
    min-height: 48px !important;
    padding: 5px 3px !important;
    border: 1px solid #ebe4da !important;
    border-radius: 7px !important;
    background: #fffdf9 !important;
    font-size: 14px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-stats span {
    margin-bottom: 2px;
    font-size: 9px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .vehicle-meta {
    display: none !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .card-actions {
    grid-template-columns: 1fr !important;
    padding: 5px 8px 7px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .card-actions button {
    display: none !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list[data-view="compact"] .card-actions .repair {
    display: inline-flex !important;
    grid-column: 1 !important;
    width: 100% !important;
    background: #edf6fc !important;
    color: #111827 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .filter-card .status-tabs button.all,
  body:not(.desktop-page) .page[data-panel="inventory"] [data-view-group="inventory"] [data-view="table"] {
    display: none !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card.salesperson-overview {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article {
    min-height: 0 !important;
    aspect-ratio: 3 / 4;
    gap: 2px !important;
    padding: 42px 2px 5px !important;
    border-radius: 10px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card.salesperson-overview article {
    min-height: 108px !important;
    aspect-ratio: auto !important;
    padding: 35px 4px 8px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card article::before {
    top: 11px !important;
    width: 29px !important;
    height: 29px !important;
    background-size: 18px 18px !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card span {
    min-height: 19px !important;
    font-size: 8.5px !important;
    line-height: 1.15 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card strong {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  body:not(.desktop-page) .page[data-panel="inventory"] .inventory-overview-card small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px !important;
    line-height: 1.15 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* 排序號碼與詳情箭頭只屬於桌面管理表格，手機卡片不可顯示。 */
  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list .management-row-index,
  body:not(.desktop-page) .page[data-panel="inventory"] .vehicle-list .management-row-chevron {
    display: none !important;
  }
}
