:root {
  color-scheme: light;
  --canvas: #eff4f0;
  --paper: #fff;
  --ink: #102a25;
  --body: #314a42;
  --muted: #567066;
  --line: #d4e1d9;
  --subtle: #eaf3ee;
  --pine: #123b31;
  --accent: #00634e;
  --accent-hover: #004a3b;
  --accent-soft: #dceee5;
  --amber: #9c421f;
  --amber-soft: #f9eae0;
  font-family: "Geist", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl { margin: 0; }
body { background: var(--canvas); color: var(--ink); font-size: 14px; }
input, select, button { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2e8c73; outline-offset: 3px; }
small, time { color: var(--muted); }
h1 { font-size: clamp(23px, 3vw, 33px); line-height: 1.25; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: 17px; overflow-wrap: anywhere; }
.mono, .vin { font-family: "IBM Plex Mono", Consolas, ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.app { min-height: 100vh; display: grid; grid-template-columns: 222px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 25px 14px 18px; background: #f8fbf8; border-right: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 11px; padding: 0 9px; font-size: 18px; font-weight: 750; line-height: 1.3; }
.identity small { display: block; font-size: 12px; font-weight: 500; }
.mark { width: 37px; height: 37px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.mark::before { content: ""; position: absolute; inset: 9px 8px 8px; border: 1.5px solid white; border-radius: 2px; background: repeating-linear-gradient(to bottom, transparent 0 3px, white 3px 4px); }
.mark::after { content: ""; position: absolute; inset: 5px 13px auto; height: 1px; background: #a4d9c5; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; }
.nav { display: grid; gap: 5px; margin-top: 30px; }
.nav button { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 11px; color: var(--body); border: 0; border-radius: 7px; background: transparent; text-align: left; white-space: nowrap; }
.nav button:hover { background: var(--subtle); color: var(--accent); }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav button[aria-current="page"] { font-weight: 750; }
.nav-icon { width: 14px; height: 14px; border: 1.4px solid currentColor; border-radius: 3px; flex: none; position: relative; }
.icon-inventory::before, .icon-ledger::before { content: ""; position: absolute; inset: 3px 2px; border-block: 1px solid currentColor; }
.icon-accounts { border: 0; }
.icon-accounts::before { content: ""; position: absolute; top: 0; left: 4px; width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 50%; }
.icon-accounts::after { content: ""; position: absolute; bottom: 0; inset-inline: 1px; height: 6px; border: 1.4px solid currentColor; border-radius: 6px 6px 2px 2px; }
.icon-vin { height: 10px; margin-top: 5px; }
.icon-vin::after { content: ""; position: absolute; top: -6px; left: 1.6px; width: 8px; height: 6px; border: 1.4px solid currentColor; border-radius: 5px 5px 0 0; }
.rail-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.rail-account { display: flex; gap: 7px; align-items: center; padding-left: 5px; }
.signed-in { flex: 1; overflow-wrap: anywhere; font-weight: 650; }
.rail-account .quiet { min-height: 34px; padding: 0 5px; font-size: 12px; }
.content { width: 100%; max-width: 1680px; min-width: 0; margin-inline: auto; padding: 27px clamp(18px, 3vw, 40px) 36px; }
.admin-shell .content { padding-top: 0; }
.mobile-mast, .mobile-scope { display: none; }
.admin-topline { min-height: 63px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.admin-topline strong { color: var(--ink); font-weight: 650; }
.admin-head, .head { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 9px 18px; margin-bottom: 17px; }
.admin-head { padding: 29px 0 21px; margin-bottom: 0; }
.admin-head h1 { font-size: clamp(28px, 3.2vw, 38px); }
.admin-head p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.head time { font-size: 12px; }
.primary, .plain, .quiet, .danger, .back { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); font-weight: 650; white-space: nowrap; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.plain:hover, .quiet:hover, .back:hover { background: var(--subtle); }
.quiet, .back { background: transparent; border-color: transparent; color: var(--accent); }
.danger { color: var(--amber); background: var(--amber-soft); border-color: #ead1bf; }
.danger:hover { background: #f2d9c8; }
.back { min-height: 34px; padding-inline: 8px; margin-bottom: 8px; }
.search-icon { position: relative; display: inline-block; width: 15px; height: 15px; border: 1.6px solid currentColor; border-radius: 50%; flex: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: currentColor; border-radius: 8px; right: -5px; bottom: -2px; transform: rotate(45deg); }
.query-panel { margin-bottom: 16px; padding: 16px 14px 14px; overflow: hidden; isolation: isolate; position: relative; border-radius: 14px; background: var(--pine); color: white; }
.query-panel h1 { margin: 0 0 14px 1px; font-size: 27px; }
.loading-bays { display: flex; position: absolute; z-index: -1; top: 13px; right: 18px; width: 102px; height: 40px; padding: 7px 6px 0; gap: 4px; opacity: .34; border: 1px solid #76b5a0; border-bottom: 0; transform: skewX(-11deg); }
.loading-bays::before { content: ""; position: absolute; width: 112%; height: 1px; top: -5px; left: -6%; background: #76b5a0; }
.loading-bays i { flex: 1; border: 1px solid #76b5a0; background: repeating-linear-gradient(0deg, transparent 0 5px, #76b5a055 5px 6px); }
.search { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 13px; margin-bottom: 12px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 8px; }
.query-panel .search { margin-bottom: 0; }
.search input, .inventory-search input { min-width: 0; flex: 1; padding: 7px 4px 7px 1px; font-size: 16px; color: var(--ink); border: 0; border-radius: 4px; background: white; }
.search input::placeholder, .inventory-search input::placeholder { color: var(--muted); opacity: 1; font-size: 13px; }
.search .primary { border-radius: 6px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 16px; border: 1px solid #c6d9ce; border-radius: 9px; background: #f8fcf9; }
.kpis-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inventory-summary .kpis { grid-template-columns: minmax(150px,1.25fr) repeat(4,minmax(88px,1fr)); margin-bottom: 22px; }
.stat { min-width: 0; padding: 14px 10px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--ink); font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.stat.public strong { color: var(--accent); }
.inventory-summary .stat { padding: 15px 19px; text-align: left; }
.inventory-summary .stat:first-child { border-radius: 8px 0 0 8px; background: var(--accent-soft); }
.inventory-summary .stat:first-child strong { color: var(--accent); font-size: 30px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 17px 0 9px; }
.result-head h2 { font-size: 21px; }
.dimension { min-height: 38px; padding: 0 9px; color: var(--ink); background: transparent; border: 1px solid #b9cec2; border-radius: 6px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 9px; }
.chips > span:first-child { font-size: 12px; color: var(--muted); }
.chips button { min-height: 35px; padding: 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; color: var(--body); font-size: 12px; }
.chips button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: #a6caba; font-weight: 750; }
.caption, .query-footer { color: var(--muted); font-size: 13px; margin: 13px 0 8px; }
.query-footer { font-size: 11px; margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.card, .list-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 12px; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.card { min-height: 69px; grid-template-columns: minmax(0,1fr) auto 8px; }
.card:hover, .list-item:hover { background: #f6faf7; }
.card-title { display: block; font-size: 16px; line-height: 1.25; font-weight: 750; overflow-wrap: anywhere; }
.card small, .list-item small { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); }
.card strong, .list-item strong, .count { color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card strong { font-size: 20px; }
.card strong small { display: inline; color: var(--accent); font-size: 11px; }
.chevron { width: 7px; height: 7px; border-top: 1.6px solid var(--muted); border-right: 1.6px solid var(--muted); transform: rotate(45deg); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { display: inline-block; padding: 3px 6px; border-radius: 5px; font-size: 11px; line-height: 1.25; color: #165743; background: #e1f0e7; overflow-wrap: anywhere; }
.tag.public { background: #edf0f7; color: #3e5478; }
.stack { display: grid; gap: 8px; }
.notice, .empty { margin-bottom: 8px; padding: 12px 13px; background: var(--subtle); color: var(--accent); border: 1px solid var(--line); border-radius: 8px; line-height: 1.5; }
.notice.orange { background: var(--amber-soft); color: var(--amber); border-color: #ead1bf; }
.notice.error { background: #f8e9e7; color: #8d3026; border-color: #dfb5ae; }
.notice.green { background: var(--accent-soft); }
.empty { padding: 32px 13px; text-align: center; background: white; color: var(--muted); }
details { min-width: 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
summary { min-height: 44px; padding: 11px 0; cursor: pointer; overflow-wrap: anywhere; }
summary .count { float: right; margin-left: 7px; }
details > .stack { margin-bottom: 10px; }
.model { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 3px; }
.vehicle { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto auto auto auto; gap: 7px 12px; align-items: center; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; overflow-wrap: anywhere; }
.vehicle p { color: var(--muted); }
.vehicle-msrp span { display: block; font-size: 11px; }
.vehicle-msrp strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.upload-icon { position: relative; width: 13px; height: 6px; border: 1px solid currentColor; border-top: 0; top: 3px; }
.upload-icon::before { content: ""; position: absolute; left: 5px; width: 1px; height: 8px; top: -5px; background: currentColor; }
.upload-icon::after { content: ""; position: absolute; left: 3px; width: 5px; height: 5px; top: -6px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.inventory { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 15px; padding: 12px 15px; }
.inventory-search { display: flex; align-items: center; flex: 0 1 390px; gap: 10px; min-height: 39px; padding: 0 11px; color: var(--muted); border: 1px solid #b9cec2; border-radius: 7px; }
.inventory-search input { font-size: 14px; }
.toolbar-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.toolbar-filters select { min-height: 39px; padding: 0 8px; color: var(--ink); background: white; border: 1px solid #b9cec2; border-radius: 7px; font-size: 13px; }
.toolbar .plain { min-height: 39px; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-spacing: 0; text-align: left; }
.inventory:has(.toolbar) table { min-width: 820px; }
th { padding: 10px 11px; color: var(--muted); background: #f5f9f6; font-size: 12px; white-space: nowrap; }
td { padding: 10px 11px; border-top: 1px solid #e5ede7; color: var(--body); font-size: 13px; vertical-align: middle; }
td:first-child, th:first-child { padding-left: 16px; }
td strong { color: var(--ink); }
td small { display: block; margin-top: 3px; line-height: 1.35; }
td .mono { white-space: nowrap; font-size: 12px; }
.table-actions { flex-wrap: nowrap; gap: 2px; }
.table-actions .quiet { min-height: 30px; padding: 0 4px; }
.table-sort { padding: 0; background: transparent; border: 0; color: inherit; font: inherit; }
.table-sort span { color: var(--accent); }
.table-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 9px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.table-footer .plain { min-height: 31px; padding: 0 7px; }
dialog { margin: 0 0 0 auto; width: min(100%,480px); height: 100dvh; max-height: 100dvh; max-width: 100%; padding: 20px; color: var(--ink); background: white; border: 0; box-shadow: 0 14px 55px #112a2540; }
dialog::backdrop { background: #102a256b; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.dialog-top h2 { font-size: 21px; }
.dialog-actions { margin-top: 10px; }
.kv { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 0 10px; margin-bottom: 13px; }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv dt { color: var(--muted); }
.form { display: grid; gap: 11px; }
.form label { display: grid; gap: 5px; color: var(--body); font-weight: 650; font-size: 13px; }
.form input, .form select { width: 100%; min-height: 42px; padding: 7px 11px; color: var(--ink); background: white; border: 1px solid #b9cec2; border-radius: 7px; font-size: 16px; }
.panel { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.panel h2, .policy > p { margin-bottom: 11px; }
.policy { max-width: 490px; }
.signin { display: grid; min-height: 100dvh; place-items: center; padding: 16px; }
.signin > section { width: min(100%,390px); padding: 23px; }
.signin h1 { margin: 14px 0 19px; }

@media (max-width: 1160px) {
  .app { grid-template-columns: 188px minmax(0,1fr); }
  .content { padding-inline: 23px; }
}
@media (max-width: 820px) {
  .app { display: block; }
  .query-shell .sidebar { display: none; }
  .content { padding: 14px 14px 24px; }
  .mobile-mast { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -14px -14px 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: white; }
  .mobile-mast > div:last-child { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .mobile-mast .identity { padding: 0; font-size: 16px; white-space: nowrap; }
  .mobile-mast .mark { width: 32px; height: 32px; }
  .mobile-mast .avatar { width: 27px; height: 27px; font-size: 11px; }
  .mobile-mast .signed-in, .mobile-mast .quiet { font-size: 12px; }
  .mobile-mast .quiet { padding: 0 3px; }
  .query-panel { margin-bottom: 9px; }
  .mobile-scope { display: flex; margin: 0 0 12px; border-bottom: 1px solid #c4d7cc; }
  .mobile-scope button { position: relative; flex: 1; min-height: 43px; padding: 0 3px; color: var(--muted); border: 0; background: transparent; white-space: nowrap; }
  .mobile-scope button[aria-current="page"] { color: var(--accent); font-weight: 750; }
  .mobile-scope button[aria-current="page"]::after { position: absolute; content: ""; bottom: -1px; left: calc(50% - 19px); width: 38px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
  .kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .kpis-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpis-six .stat:nth-child(4), .kpis-four .stat:nth-child(3) { border-left: 0; }
  .home-overview .kpis { min-height: 72px; grid-template-columns: minmax(82px, auto) repeat(5,minmax(0,1fr)); align-items: center; gap: 2px; padding: 8px; border: 0; background: var(--accent-soft); }
  .home-overview .stat { padding: 0; border-left: 0; }
  .home-overview .stat:first-child { border-right: 1px solid #aac9b9; text-align: left; white-space: nowrap; }
  .home-overview .stat:first-child strong { font-size: 26px; letter-spacing: -.07em; }
  .home-overview .stat:first-child strong, .home-overview .stat:first-child span { display: inline; }
  .home-overview .stat:first-child span { margin-left: 4px; }
  .home-overview .stat strong { font-size: 15px; }
  .home-overview .stat span { font-size: 10px; }
  .result-head { margin-top: 15px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 6px; scrollbar-width: thin; }
  .chips button, .chips > span { flex: none; }
  .grid { gap: 0; grid-template-columns: minmax(0,1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .grid .card { border: 0; border-radius: 0; }
  .grid .card + .card { border-top: 1px solid var(--line); }
  .grid .card:focus-visible { outline-offset: -3px; }
  .vehicle { grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
  .vehicle-head, .vehicle .date { grid-column: 1 / -1; }
  .vehicle-msrp { text-align: right; }
  .vehicle .actions { grid-column: 2; }
  dialog { margin: auto 0 0; width: 100%; height: auto; max-height: 90dvh; border-radius: 16px 16px 0 0; }
  .admin-shell .sidebar { position: relative; height: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-shell .nav { display: flex; flex-wrap: wrap; margin-top: 8px; }
  .admin-shell .nav button { width: auto; min-height: 35px; padding-inline: 7px; gap: 6px; }
  .admin-shell .rail-foot { display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-topline { min-height: 47px; }
  .inventory-summary .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inventory-summary .stat:first-child { grid-column: 1 / -1; border-radius: 8px 8px 0 0; }
  .inventory-summary .stat + .stat { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; }
}
