:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-soft: #f8f7f3;
  --ink: #111310;
  --ink-soft: #62665f;
  --line: #deddd7;
  --line-strong: #c9c8c1;
  --accent: #ff5c22;
  --accent-dark: #d9410c;
  --green: #166c48;
  --green-soft: #e8f4ed;
  --amber: #9d6100;
  --amber-soft: #fff2d7;
  --red: #b3261e;
  --red-soft: #ffebe8;
  --blue: #245d9f;
  --blue-soft: #eaf2ff;
  --shadow: 0 18px 55px rgba(34, 31, 24, 0.10);
  --shadow-small: 0 8px 22px rgba(34, 31, 24, 0.08);
  --radius: 20px;
  --radius-small: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; padding: 24px 18px;
  display: flex; flex-direction: column; background: #111310; color: #fff; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 8px 26px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.brand small { display: block; color: #a7aaa3; margin-top: 2px; font-size: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: white; font-size: 12px; font-weight: 900; letter-spacing: -0.03em;
}
.brand-mark-large { width: 54px; height: 54px; border-radius: 16px; font-size: 16px; }
.nav-list { display: grid; gap: 6px; }
.nav-item {
  border: 0; background: transparent; color: #b9bcb5; min-height: 47px; border-radius: 12px;
  display: flex; align-items: center; gap: 13px; padding: 0 14px; cursor: pointer; text-align: left;
}
.nav-item:hover { background: #1d201c; color: white; }
.nav-item.active { background: #2a2d28; color: white; }
.nav-icon { width: 21px; font-size: 19px; text-align: center; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.connection-card { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #31342f; border-radius: 13px; background: #191b18; }
.connection-card strong, .connection-card small { display: block; }
.connection-card strong { font-size: 12px; }
.connection-card small { color: #90948c; font-size: 10px; margin-top: 2px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #45c483; box-shadow: 0 0 0 4px rgba(69, 196, 131, .12); flex: 0 0 auto; }
.workspace { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 94px; padding: 0 clamp(24px, 4vw, 54px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(243, 241, 236, .91); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(201, 200, 193, .65);
}
.topbar h1 { margin: 2px 0 0; font-size: 26px; letter-spacing: -0.04em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--green); background: var(--green-soft); border: 1px solid #c7e2d2; border-radius: 999px; padding: 9px 12px; font-weight: 700; font-size: 12px; }
.eyebrow { margin: 0; color: var(--accent-dark); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.main-content { padding: 30px clamp(24px, 4vw, 54px) 80px; max-width: 1540px; margin: 0 auto; outline: none; }

.button {
  border: 1px solid transparent; min-height: 40px; border-radius: 11px; padding: 0 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 13px;
  cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { background: var(--accent); color: white; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover { border-color: #999b94; }
.button-ghost { background: transparent; border-color: #353832; color: #d7d9d4; }
.button-danger { background: var(--red-soft); color: var(--red); border-color: #f1c7c2; }
.button-small { min-height: 33px; padding: 0 11px; font-size: 11px; border-radius: 9px; }
.button-full { width: 100%; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 21px; display: grid; place-items: center; }
.icon-button:hover { background: var(--surface-soft); }

.page-stack { display: grid; gap: 22px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-header h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.035em; }
.section-header p:not(.eyebrow) { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.inline-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-small); min-height: 142px; position: relative; overflow: hidden; }
.kpi-card::after { content: ''; position: absolute; width: 82px; height: 82px; right: -28px; top: -28px; border-radius: 50%; background: var(--surface-soft); }
.kpi-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--ink-soft); font-weight: 700; font-size: 12px; }
.kpi-icon { width: 33px; height: 33px; border-radius: 10px; background: var(--surface-soft); display: grid; place-items: center; position: relative; z-index: 1; }
.kpi-card strong { display: block; margin-top: 16px; font-size: 30px; letter-spacing: -0.05em; }
.kpi-card small { display: block; margin-top: 5px; color: var(--ink-soft); }
.kpi-card.accent { background: #151714; color: white; border-color: #151714; }
.kpi-card.accent .kpi-top, .kpi-card.accent small { color: #b7bbb3; }
.kpi-card.accent .kpi-icon { background: #2a2e28; }
.kpi-card.accent::after { background: #1f221e; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .8fr); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 21px 15px; }
.panel-header h3 { margin: 0; font-size: 16px; letter-spacing: -0.025em; }
.panel-header p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }
.panel-body { padding: 0 21px 21px; }

.chart-wrap { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.bar-chart { height: 210px; display: flex; align-items: end; gap: clamp(5px, 1.1vw, 14px); border-bottom: 1px solid var(--line); padding: 10px 4px 0; }
.bar-group { flex: 1; min-width: 0; height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; position: relative; }
.chart-bar { width: min(15px, 44%); border-radius: 5px 5px 0 0; min-height: 2px; background: #171916; }
.chart-bar.profit { background: var(--accent); }
.chart-labels { display: flex; gap: clamp(5px, 1.1vw, 14px); padding: 9px 4px 0; }
.chart-label { flex: 1; min-width: 0; color: var(--ink-soft); font-size: 9px; text-align: center; white-space: nowrap; overflow: hidden; }
.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--ink-soft); }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; background: #171916; }
.legend-swatch.profit { background: var(--accent); }
.empty-chart { margin: auto; color: var(--ink-soft); text-align: center; font-size: 13px; }

.list-stack { display: grid; gap: 9px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #ecebe6; }
.list-row:last-child { border-bottom: 0; }
.list-row-main { min-width: 0; flex: 1; }
.list-row-main strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-main small { display: block; color: var(--ink-soft); font-size: 10px; margin-top: 3px; }
.list-row-value { text-align: right; }
.list-row-value strong { display: block; font-size: 13px; }
.list-row-value small { display: block; color: var(--ink-soft); font-size: 9px; margin-top: 2px; }
.product-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: #efeee9; font-weight: 900; font-size: 11px; }
.product-avatar.low { color: var(--red); background: var(--red-soft); }

.quick-entry { padding: 20px; background: #171916; color: white; border-radius: var(--radius); box-shadow: var(--shadow-small); }
.quick-entry h3 { margin: 3px 0 7px; font-size: 18px; }
.quick-entry p { color: #afb3ab; margin: 0 0 14px; font-size: 12px; line-height: 1.5; }
.quick-entry-grid { display: grid; grid-template-columns: 170px 1fr auto; gap: 9px; align-items: stretch; }
.quick-entry textarea, .quick-entry select { background: #252824; color: white; border-color: #42463f; }
.quick-entry textarea::placeholder { color: #7f837b; }
.quick-help { margin-top: 9px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-field { position: relative; min-width: min(330px, 100%); flex: 1; }
.search-field input { width: 100%; padding-left: 38px; }
.search-field::before { content: '⌕'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: white; color: var(--ink); border-radius: 10px;
  min-height: 41px; padding: 9px 12px; outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 92, 34, .12); }
label { display: grid; gap: 6px; color: #3c3f3a; font-size: 11px; font-weight: 800; }
label .hint { color: var(--ink-soft); font-weight: 500; }

.data-card { overflow: hidden; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { padding: 12px 15px; text-align: left; color: var(--ink-soft); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid #ecebe6; font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfbf8; }
.table-product { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.table-product strong, .table-product small { display: block; }
.table-product small { color: var(--ink-soft); font-size: 9px; margin-top: 3px; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-soft); }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-neutral { background: #efeee9; color: #545851; }
.stock-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.stock-pill { display: inline-flex; min-height: 25px; align-items: center; gap: 5px; background: #efeee9; border-radius: 7px; padding: 0 7px; font-size: 9px; }
.stock-pill strong { font-size: 10px; }
.stock-pill.low { color: var(--red); background: var(--red-soft); }
.status-select { min-height: 31px; width: auto; min-width: 108px; padding: 4px 28px 4px 9px; font-size: 10px; font-weight: 800; border-radius: 8px; }

.inventory-mobile { display: none; gap: 10px; }
.inventory-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.inventory-card-head { display: flex; align-items: flex-start; gap: 11px; }
.inventory-card-head .table-product { flex: 1; }
.inventory-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 13px 0; }
.inventory-card-meta div { background: var(--surface-soft); border-radius: 9px; padding: 9px; }
.inventory-card-meta small, .inventory-card-meta strong { display: block; }
.inventory-card-meta small { color: var(--ink-soft); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.inventory-card-meta strong { margin-top: 3px; font-size: 12px; }

.empty-state { padding: 55px 25px; text-align: center; color: var(--ink-soft); }
.empty-state-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-soft); color: var(--ink); font-size: 24px; }
.empty-state h3 { color: var(--ink); margin: 0 0 6px; }
.empty-state p { margin: 0 auto 16px; max-width: 440px; font-size: 12px; line-height: 1.55; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 5px; }
.form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.form-section-heading h3 { margin: 0; font-size: 13px; }
.variant-list { display: grid; gap: 8px; }
.variant-row { display: grid; grid-template-columns: minmax(120px, 1fr) 110px 130px 38px; gap: 8px; align-items: end; }
.variant-row .icon-button { margin-bottom: 0; }
.form-footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 20px; }
.form-error { min-height: 16px; margin: 8px 0 0; color: var(--red); font-size: 11px; }
.form-note { padding: 11px 12px; background: var(--blue-soft); color: var(--blue); border-radius: 10px; font-size: 10px; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(13, 14, 12, .62); backdrop-filter: blur(5px); }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: hidden; background: white; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.28); display: flex; flex-direction: column; }
.modal.wide { width: min(900px, 100%); }
.modal-header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -0.035em; }
.modal-body { padding: 21px 22px 24px; overflow: auto; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast { background: #171916; color: white; border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: toast-in .18s ease-out; }
.toast.error { background: #6f1915; }
.toast.success { background: #14563b; }
.toast strong { display: block; font-size: 12px; }
.toast small { display: block; color: rgba(255,255,255,.72); margin-top: 3px; font-size: 10px; line-height: 1.4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .9fr) 1.1fr; background: #f8f6f1; }
.login-panel { padding: clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.login-brand { position: absolute; top: 34px; left: clamp(28px, 6vw, 84px); display: flex; align-items: center; gap: 12px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 18px; }
.login-brand small { color: var(--ink-soft); font-size: 11px; margin-top: 2px; }
.login-copy { max-width: 620px; }
.login-copy h1 { margin: 12px 0 16px; font-size: clamp(38px, 4.6vw, 67px); line-height: .98; letter-spacing: -.065em; }
.login-copy > p:last-child { color: var(--ink-soft); max-width: 520px; font-size: 15px; line-height: 1.6; }
.login-form { margin-top: 32px; max-width: 550px; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 7px; }
.login-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.login-features span { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; font-size: 10px; font-weight: 700; }
.login-visual { position: relative; overflow: hidden; background: #151714; }
.login-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,92,34,.34), transparent 33%), radial-gradient(circle at 76% 72%, rgba(88,134,91,.3), transparent 29%); }
.visual-card { position: absolute; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.4); border-radius: 24px; padding: 26px; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.visual-card span, .visual-card small { display: block; color: #6b6e68; }
.visual-card strong { display: block; margin: 9px 0 4px; font-size: 36px; letter-spacing: -.05em; }
.visual-card-main { width: min(440px, 66%); left: 12%; top: 20%; }
.visual-card-stock { width: 220px; right: 9%; bottom: 17%; transform: rotate(3deg); }
.visual-card-profit { width: 210px; left: 8%; bottom: 8%; transform: rotate(-4deg); }
.mini-label { color: var(--accent-dark) !important; font-weight: 900; letter-spacing: .13em; font-size: 9px; }
.fake-chart { height: 100px; display: flex; align-items: end; gap: 8px; margin-top: 22px; }
.fake-chart i { flex: 1; background: #1b1d1a; border-radius: 5px 5px 0 0; }
.fake-chart i:nth-child(1) { height: 28%; }.fake-chart i:nth-child(2) { height: 45%; }.fake-chart i:nth-child(3) { height: 39%; }.fake-chart i:nth-child(4) { height: 70%; background: var(--accent); }.fake-chart i:nth-child(5) { height: 58%; }.fake-chart i:nth-child(6) { height: 82%; background: var(--accent); }.fake-chart i:nth-child(7) { height: 96%; }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.progress-list { display: grid; gap: 14px; }
.progress-row-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.progress-track { height: 7px; margin-top: 6px; background: #efeee9; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: inherit; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr); gap: 16px; }
.setting-block { padding: 21px; }
.setting-block h3 { margin: 0 0 4px; font-size: 16px; }
.setting-block > p { color: var(--ink-soft); font-size: 11px; margin: 0 0 17px; line-height: 1.5; }
.channel-list { display: grid; gap: 7px; }
.channel-row { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 8px; align-items: center; }
.channel-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; }

.loading-state { padding: 70px 20px; text-align: center; color: var(--ink-soft); }
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid #deddd7; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 208px 1fr; }
  .sidebar { width: 208px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; }
  .report-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { display: block; }
  .topbar { height: 79px; padding: 0 16px; }
  .topbar h1 { font-size: 22px; }
  .topbar-actions .sync-pill, .topbar-actions .button-secondary { display: none; }
  .topbar-actions .button-primary { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .main-content { padding: 18px 14px 26px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; align-items: end; left: 0; right: 0; bottom: 0; z-index: 40; height: 67px; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .mobile-nav-item { border: 0; background: transparent; color: #767a72; display: grid; justify-items: center; gap: 2px; padding: 3px; }
  .mobile-nav-item span { font-size: 18px; }
  .mobile-nav-item small { font-size: 9px; font-weight: 800; }
  .mobile-nav-item.active { color: var(--accent-dark); }
  .mobile-sale-button { width: 52px; height: 52px; margin: -17px auto 0; border-radius: 17px; border: 4px solid var(--bg); background: var(--accent); color: white; font-size: 28px; box-shadow: var(--shadow-small); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi-card { min-height: 125px; padding: 15px; border-radius: 15px; }
  .kpi-card strong { font-size: 24px; margin-top: 13px; }
  .kpi-top { font-size: 10px; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .panel { border-radius: 16px; }
  .panel-header { padding: 16px 15px 12px; }
  .panel-body { padding: 0 15px 16px; }
  .quick-entry-grid { grid-template-columns: 1fr; }
  .data-card .table-wrap.inventory-table-wrap { display: none; }
  .inventory-mobile { display: grid; }
  .toolbar { align-items: stretch; }
  .search-field { min-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .variant-row { grid-template-columns: 1fr 74px 88px 36px; gap: 5px; }
  .variant-row label { font-size: 9px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px 16px 24px; }
  .login-panel { padding: 100px 22px 35px; }
  .login-brand { top: 24px; left: 22px; }
  .login-copy h1 { font-size: 42px; }
  .password-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
  .report-grid { grid-template-columns: 1fr; }
  .channel-row { grid-template-columns: 75px 1fr auto auto; }
}

@media (max-width: 430px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card small { font-size: 9px; }
  .inventory-card-meta { grid-template-columns: repeat(2, 1fr); }
  .variant-row { grid-template-columns: 1fr 68px 80px 34px; }
}
