:root {
  --ink: #17324d;
  --ink-soft: #51657a;
  --muted: #8190a0;
  --line: #e4e9ee;
  --line-dark: #d5dde5;
  --surface: #ffffff;
  --canvas: #f5f7f9;
  --navy-soft: #edf3f8;
  --teal: #0f766e;
  --teal-soft: #e8f5f2;
  --amber: #b45309;
  --amber-soft: #fff6e6;
  --red: #b42318;
  --red-soft: #fff0ed;
  --blue: #1d5fa7;
  --blue-soft: #edf5ff;
  --shadow: 0 12px 32px rgba(23, 50, 77, 0.06);
  --radius: 8px;
  font-family: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(29, 95, 167, 0.18); outline-offset: 1px; }

.app-shell { display: flex; min-height: 100vh; }
.app-shell.auth-hidden { display: none; }
.boot-root { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #f5f7f9; }
.boot-mark { display: grid; width: 46px; height: 46px; place-items: center; background: #d92d20; color: #fff; font-size: 26px; font-weight: 700; border-radius: 7px; }
.is-booting .app-shell, .is-booting .login-root { visibility: hidden; }
body:not(.is-booting) .boot-root { display: none; }
.login-root { display: none; min-height: 100vh; background: #f5f7f9; padding: 24px; place-items: center; }
.login-root.open { display: grid; }
.login-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 55px rgba(23, 50, 77, .1); padding: 34px; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.login-brand .brand-mark { width: 40px; height: 40px; font-size: 23px; }
.login-title { font-size: 24px; letter-spacing: -.4px; }
.login-subtitle { color: var(--muted); font-size: 12px; margin-top: 5px; }
.login-heading { margin-bottom: 22px; }
.login-heading h1 { font-size: 20px; }
.login-heading p { color: var(--ink-soft); font-size: 12px; margin-top: 6px; }
.login-form { display: grid; gap: 15px; }
.login-form .form-field { gap: 7px; }
.login-form .button { width: 100%; height: 42px; margin-top: 4px; }
.login-error { min-height: 18px; color: var(--red); font-size: 12px; line-height: 1.45; }
.login-demo { border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; margin-top: 22px; padding-top: 16px; }
.login-demo strong { color: var(--ink-soft); font-weight: 600; }
.settings-grid { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.4fr); gap: 18px; margin-bottom: 18px; }
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.settings-card h2 { font-size: 15px; }
.settings-card > p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 5px; }
.settings-card .detail-list { margin-top: 17px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.settings-tabs { display: inline-flex; gap: 4px; margin: -8px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fa; }
.settings-tab { height: 32px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); padding: 0 11px; font-size: 12px; font-weight: 600; }
.settings-tab svg { width: 15px; height: 15px; }
.settings-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 50, 77, .12); }
.account-role { display: inline-flex; align-items: center; gap: 6px; }
.account-role .status-dot { width: 6px; height: 6px; box-shadow: none; }
.permission-note { border-left: 3px solid var(--amber); background: var(--amber-soft); color: #8d510d; padding: 11px 13px; border-radius: 4px; font-size: 12px; line-height: 1.55; margin-bottom: 16px; }
.sidebar { width: 248px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 14px; position: fixed; inset: 0 auto 0 0; z-index: 4; }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 10px 22px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #d92d20; border-radius: 9px; font-size: 20px; font-weight: 700; letter-spacing: -1px; }
.brand-name { font-weight: 700; letter-spacing: 0; font-size: 15px; }
.brand-caption { color: var(--muted); font-size: 9px; letter-spacing: 1.3px; margin-top: 2px; }
.store-switcher { width: 100%; border: 1px solid var(--line); background: #fbfcfd; color: var(--ink); border-radius: var(--radius); padding: 11px 10px; display: flex; gap: 8px; align-items: center; margin-bottom: 24px; text-align: left; }
.store-switcher:disabled { cursor: default; }
.store-switcher.switchable:hover { border-color: #aebdca; background: #f7f9fa; }
.store-switcher strong, .store-switcher span, .user-mini strong, .user-mini span { display: block; }
.store-switcher strong { font-size: 12px; line-height: 1.4; }
.store-switcher span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.store-switcher > svg { margin-left: auto; width: 16px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #23a67c; flex: 0 0 auto; box-shadow: 0 0 0 4px #e2f6ee; }
.nav-group { margin-bottom: 23px; }
.nav-label { color: #a0aab5; font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; padding: 0 12px 8px; }
.nav-item { border: 0; background: transparent; color: var(--ink-soft); width: 100%; height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 6px; text-align: left; margin: 2px 0; transition: background .18s, color .18s; }
.nav-item[hidden] { display: none; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-item:hover { background: #f3f6f8; color: var(--ink); }
.nav-item.active { background: var(--navy-soft); color: var(--ink); font-weight: 700; }
.nav-count { margin-left: auto; background: #eef1f4; color: var(--ink-soft); min-width: 20px; height: 19px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; padding: 0 5px; }
.nav-count.warning { background: var(--amber-soft); color: var(--amber); }
.secondary-nav { border-top: 1px solid var(--line); padding-top: 19px; }
.sidebar-footer { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.sync-state { display: flex; gap: 7px; align-items: center; color: var(--teal); font-size: 11px; padding: 7px 4px 15px; }
.sync-state svg { width: 15px; }
.user-mini { display: flex; align-items: center; gap: 8px; padding-top: 12px; }
.user-mini .avatar { width: 30px; height: 30px; font-size: 12px; }
.user-mini strong { font-size: 12px; }
.user-mini span { color: var(--muted); font-size: 10px; margin-top: 2px; }
.user-mini > svg { margin-left: auto; color: var(--muted); width: 17px; }

.main-area { min-width: 0; margin-left: 248px; width: calc(100% - 248px); }
.topbar { height: 72px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: space-between; padding: 0 36px; position: sticky; top: 0; z-index: 3; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumb svg { width: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.global-search { height: 36px; width: 285px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; display: flex; align-items: center; padding: 0 9px; gap: 8px; color: var(--muted); }
.global-search svg { width: 16px; }
.global-search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; color: var(--ink); }
.global-search input::placeholder { color: #a1acb7; }
.global-search kbd { color: var(--muted); font-size: 10px; white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 2px 4px; }
.icon-button, .avatar-button { border: 0; background: transparent; color: var(--ink-soft); display: grid; place-items: center; position: relative; }
.icon-button { width: 32px; height: 32px; }
.icon-button svg { width: 18px; }
.notification-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; position: absolute; top: 5px; right: 5px; border: 1px solid #fff; }
.avatar { display: grid; place-items: center; border-radius: 50%; background: #e5eff5; color: var(--ink); font-weight: 700; width: 32px; height: 32px; }

.page-content { padding: 30px 36px 48px; max-width: 1600px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 7px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; letter-spacing: -0.5px; line-height: 1.25; }
.page-heading p { color: var(--ink-soft); margin-top: 7px; line-height: 1.5; }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.button { height: 38px; border-radius: 6px; border: 1px solid var(--line-dark); background: #fff; color: var(--ink); padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; transition: .18s; }
.button:hover { border-color: #aebdca; background: #f7f9fa; }
.button svg { width: 16px; height: 16px; }
.button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button.primary:hover { background: #244b6d; }
.button.teal { border-color: var(--teal); color: #fff; background: var(--teal); }
.button.subtle { background: #f8fafb; }
.button.danger { color: var(--red); border-color: #f2c7c2; background: var(--red-soft); }
.button.small { height: 31px; padding: 0 9px; font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; min-height: 122px; box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--navy-soft); color: var(--blue); }
.metric-icon.teal { background: var(--teal-soft); color: var(--teal); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon.red { background: var(--red-soft); color: var(--red); }
.metric-icon svg { width: 16px; }
.metric-value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-top: 12px; }
.metric-foot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; margin-top: 4px; }
.metric-foot.up { color: var(--teal); }
.metric-foot.alert { color: var(--amber); }
.trend-arrow { width: 13px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .9fr); gap: 18px; margin-bottom: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; }
.panel-header h2 { font-size: 15px; }
.panel-header p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.panel-link { color: var(--blue); font-size: 12px; font-weight: 600; border: 0; background: none; }
.panel-body { padding: 0 18px 18px; }
.chart-wrap { height: 226px; padding-top: 8px; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #edf0f3; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartFade); }
.chart-dot { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.chart-label { fill: #92a0ad; font-size: 10px; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 11px; margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--teal); }
.legend i.amber { background: #eab46e; }
.task-list { display: grid; gap: 2px; }
.task-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eff2f4; }
.task-row:last-child { border-bottom: 0; }
.task-bullet { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--amber-soft); color: var(--amber); }
.task-bullet.red { background: var(--red-soft); color: var(--red); }
.task-bullet.teal { background: var(--teal-soft); color: var(--teal); }
.task-bullet svg { width: 14px; }
.task-copy { min-width: 0; }
.task-copy strong { font-size: 12px; display: block; }
.task-copy span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-time { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }

.table-panel { overflow: hidden; }
.inventory-groups { display: grid; gap: 18px; }
.data-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 0 18px 14px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-control, .select-control { height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 10px; color: var(--ink); min-width: 135px; }
.input-control.search-control { min-width: 220px; padding-left: 32px; }
.field-search { position: relative; display: inline-flex; align-items: center; }
.field-search svg { position: absolute; left: 10px; color: var(--muted); width: 15px; }
.catalog-picker { position: relative; }
.catalog-picker .field-search { display: flex; width: 100%; }
.catalog-picker .input-control { width: 100%; padding-left: 32px; }
.catalog-results { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 4; max-height: 228px; overflow-y: auto; border: 1px solid var(--line-dark); border-radius: 6px; background: #fff; box-shadow: 0 12px 28px rgba(23, 50, 77, .13); }
.catalog-results:empty { display: none; }
.catalog-option { width: 100%; border: 0; border-bottom: 1px solid #eff2f4; background: #fff; color: var(--ink); display: grid; gap: 3px; padding: 10px 11px; text-align: left; }
.catalog-option:last-child { border-bottom: 0; }
.catalog-option:hover { background: #f6f9fb; }
.catalog-option strong { font-size: 12px; }
.catalog-option span, .catalog-hint { color: var(--muted); font-size: 11px; }
.catalog-hint { padding: 11px; background: #fff; }
.catalog-selection { color: var(--teal); font-size: 11px; min-height: 17px; margin-top: 7px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { background: #fafbfc; color: #7e8b98; font-size: 11px; font-weight: 600; text-align: left; padding: 10px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid #eff2f4; color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
tbody tr:hover { background: #fbfdfe; }
td strong { color: var(--ink); font-weight: 600; }
.table-action { border: 0; background: transparent; color: var(--blue); font-size: 12px; padding: 4px 0; font-weight: 600; }
.table-action + .table-action { margin-left: 12px; }
.table-action.danger { color: var(--red); }
.empty-state { padding: 42px; color: var(--muted); text-align: center; }
.empty-state svg { width: 32px; height: 32px; margin: 0 auto 10px; color: #b3bec8; }
.empty-state strong { display: block; color: var(--ink-soft); margin-bottom: 4px; }
.tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 4px 7px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag.green { background: var(--teal-soft); color: var(--teal); }
.tag.orange { background: var(--amber-soft); color: var(--amber); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.gray { background: #f0f3f5; color: #667684; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2px; }
.subtle-text { color: var(--muted); font-size: 11px; }

.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.inventory-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.summary-card span { display: block; font-size: 11px; color: var(--muted); }
.summary-card strong { display: block; font-size: 20px; margin-top: 7px; }
.summary-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.page-note { border-left: 3px solid var(--teal); background: var(--teal-soft); color: #2d625d; padding: 11px 13px; border-radius: 4px; font-size: 12px; margin-bottom: 16px; line-height: 1.55; }
.ecommerce-note { border-left-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.summary-date { font-size: 16px !important; line-height: 1.35; }
.ecommerce-search-panel { margin-bottom: 18px; }
.ecommerce-query-panel { padding: 23px 24px 24px; border-color: #cbdbe9; box-shadow: 0 14px 34px rgba(29, 95, 167, .09); }
.ecommerce-query-copy h2 { font-size: 20px; margin-top: 5px; }
.ecommerce-query-copy p { color: var(--ink-soft); font-size: 12px; margin-top: 6px; }
.ecommerce-query-eyebrow { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.ecommerce-query-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; margin-top: 19px; }
.ecommerce-query-input { position: relative; min-width: 0; }
.ecommerce-query-input svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; color: var(--blue); transform: translateY(-50%); pointer-events: none; }
.ecommerce-query-input .input-control { width: 100%; height: 46px; padding-left: 45px; border-color: #b9ccdf; font-size: 15px; }
.ecommerce-query-input .input-control:focus { border-color: var(--blue); }
.ecommerce-query-form .button { height: 46px; padding: 0 17px; }
.ecommerce-results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 25px 0 12px; }
.ecommerce-results-heading h2 { font-size: 17px; margin-top: 5px; }
.ecommerce-results-heading p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.ecommerce-platforms { display: grid; gap: 18px; }
.ecommerce-platform-panel .panel-header { padding-bottom: 15px; }
.platform-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #fff; }
.platform-mark.tmall { background: #e34c55; }
.platform-mark.jd { background: #d92920; }
.platform-mark.douyin { background: #171b21; }
.ecommerce-table { min-width: 820px; }
.ecommerce-table td strong, .ecommerce-table td .subtle-text { display: block; }
.ecommerce-table td .subtle-text { margin-top: 5px; }
.ecommerce-table .ecommerce-time-label { font-size: 11px; font-weight: 700; }
.ecommerce-table .ecommerce-time-label.live { color: var(--teal); }
.ecommerce-table .ecommerce-time-label.snapshot { color: var(--amber); }
.ecommerce-table .table-action { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.ecommerce-table .table-action + .table-action { margin-left: 0; }
.ecommerce-platform-status { display: block; margin-top: 4px; max-width: 420px; }
.price-value { color: var(--red) !important; font-size: 15px; }
.compact-empty { padding: 29px 20px; }

.modal-root { display: none; position: fixed; inset: 0; z-index: 10; background: rgba(23, 50, 77, .36); padding: 6vh 20px 20px; overflow: auto; }
.modal-root.open { display: flex; justify-content: center; align-items: flex-start; }
.modal { background: #fff; width: min(620px, 100%); border-radius: 10px; box-shadow: 0 24px 70px rgba(23, 50, 77, .2); overflow: hidden; }
.modal.wide { width: min(760px, 100%); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 17px; }
.modal-header p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.close-button { border: 0; background: transparent; color: var(--muted); padding: 2px; }
.close-button svg { width: 19px; }
.modal-body { padding: 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 18px; background: #fafbfc; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.form-field label em { color: var(--red); font-style: normal; }
.form-field input, .form-field select, .form-field textarea { border: 1px solid var(--line-dark); border-radius: 5px; min-height: 37px; padding: 8px 10px; color: var(--ink); background: #fff; }
.form-field textarea { resize: vertical; min-height: 78px; }
.form-help { color: var(--muted); font-size: 11px; line-height: 1.45; }

.vehicle-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.detail-card { border: 1px solid var(--line); border-radius: 7px; padding: 15px; background: #fbfcfd; }
.detail-card h3 { font-size: 13px; margin-bottom: 13px; }
.detail-list { display: grid; gap: 9px; }
.detail-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.detail-item span:first-child { color: var(--muted); }
.detail-item span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.timeline { display: grid; gap: 13px; }
.timeline-item { position: relative; padding-left: 20px; }
.timeline-item::before { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 8px; border: 2px solid var(--teal); background: #fff; border-radius: 50%; z-index: 1; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 14px; width: 1px; height: calc(100% + 7px); background: #cce8e4; }
.timeline-item strong { font-size: 12px; }
.timeline-item p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }

.toast-root { position: fixed; right: 25px; bottom: 25px; z-index: 20; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; border-radius: 6px; box-shadow: 0 12px 28px rgba(23, 50, 77, .2); padding: 11px 14px; font-size: 12px; animation: toast-in .2s ease-out; }
.toast svg { width: 16px; color: #83ddd1; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; width: calc(100% - 220px); }
  .topbar { padding: 0 24px; }
  .page-content { padding: 25px 24px 42px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sidebar { position: static; width: 100%; min-height: auto; padding: 13px 12px 10px; }
  .app-shell { display: block; }
  .brand-block { padding-bottom: 13px; }
  .store-switcher { margin-bottom: 11px; }
  .nav-group { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 4px; }
  .nav-label, .secondary-nav, .sidebar-footer { display: none; }
  .nav-item { min-width: max-content; width: auto; height: 36px; padding: 0 10px; }
  .nav-item span:last-child { display: none; }
  .nav-item .nav-count { display: grid; }
  .main-area { margin-left: 0; width: 100%; }
  .topbar { height: 60px; padding: 0 15px; }
  .breadcrumb { font-size: 12px; }
  .global-search { width: 36px; padding: 0 9px; }
  .global-search input, .global-search kbd { display: none; }
  .page-content { padding: 21px 15px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  h1 { font-size: 23px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .metric-grid { gap: 9px; }
  .metric-card { padding: 13px; min-height: 112px; }
  .metric-value { font-size: 22px; }
  .summary-strip { grid-template-columns: 1fr; }
  .ecommerce-query-panel { padding: 19px 16px; }
  .ecommerce-query-form { grid-template-columns: 1fr 1fr; }
  .ecommerce-query-input { grid-column: 1 / -1; }
  .ecommerce-query-form .button { width: 100%; }
  .ecommerce-results-heading { align-items: flex-start; }
  .form-grid, .vehicle-detail { grid-template-columns: 1fr; }
  .login-root { padding: 15px; }
  .login-card { padding: 25px 20px; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal-root { padding: 0; }
  .modal { min-height: 100vh; border-radius: 0; }
}
