:root {
  --ink: #1a1714;
  --muted: #7a7268;
  --line: #e4dcd2;
  --paper: #f4efe8;
  --card: #fffcf8;
  --fill: #1a1714;
  --gold: #b08d57;
  --ok: #2f6b45;
  --warn: #a16207;
  --bad: #9b2c2c;
  --side: 248px;
  --display: "Jost", "Noto Sans KR", sans-serif;
  --font: "Noto Sans KR", "Jost", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
}
h2 { font-size: 13px; font-weight: 500; margin: 0; letter-spacing: 0.08em; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
th { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
tr:hover td { background: #faf6f0; }

.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  background: #14110e;
  color: #fff;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.side-note {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 8px 0 36px;
}
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  padding: 11px 14px;
  color: #c4bdb4;
  font-size: 14px;
  border-left: 2px solid transparent;
}
.side nav a.is-on, .side nav a:hover {
  color: #fff;
  background: #1e1a16;
  border-left-color: var(--gold);
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #8a8278; padding-top: 24px; }
.side-foot a:hover { color: var(--gold); }

.main { padding: 0; min-width: 0; }
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 36px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(244, 239, 232, 0.88);
}
.top-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  overflow: hidden;
  border-radius: 0;
}
.top-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  outline: none;
}
.top-search button { border: 0; background: transparent; padding: 0 4px 0 12px; color: var(--muted); }
.top-user { margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-btn { display: none; background: #14110e; color: #fff; border: 0; padding: 8px 12px; }

.content { padding: 28px 36px 96px; }
.flash {
  background: #efe6d4;
  color: #5c4a28;
  padding: 12px 18px;
  margin: 16px 36px 0;
  border-left: 3px solid var(--gold);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.kpi {
  background: var(--card);
  padding: 22px 22px 18px;
  border: 0;
  border-top: 2px solid var(--gold);
}
.kpi span { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.kpi b { display: block; font-family: var(--display); font-size: 28px; font-weight: 400; margin-top: 10px; letter-spacing: -0.04em; }
.grid-2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.panel {
  background: var(--card);
  border: 0;
  border-radius: 0;
  padding: 22px 24px 10px;
  margin-bottom: 16px;
}
.panel.pad { padding-bottom: 24px; }
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar input, .toolbar select {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 4px;
  border-radius: 0;
  min-width: 160px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: var(--fill);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.btn.ghost { background: transparent; color: #111; border: 1px solid #111; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1;
  background: #efe8de;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
}
.pill.ok { background: #e5f0e8; color: var(--ok); }
.pill.warn { background: #f7ecda; color: var(--warn); }
.pill.bad { background: #f6e4e4; color: var(--bad); }
img { max-width: 100%; display: block; }
.thumb {
  width: 56px;
  height: 75px;
  object-fit: contain;
  object-position: center;
  background: #f3f3f3;
  flex-shrink: 0;
}
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.form input, .form textarea, .form select,
.card input, .card textarea, .card select,
.cw-card input[type="text"],
.rail-slot select {
  border: 1px solid var(--line);
  padding: 11px 12px;
  border-radius: 0;
  width: 100%;
  background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus,
.card input:focus, .card textarea:focus, .card select:focus,
.cw-card input[type="text"]:focus,
.rail-slot select:focus {
  outline: none;
  border-color: var(--ink);
}
.form > .btn { justify-self: start; min-width: 140px; }
.checks { display: flex; gap: 12px 16px; flex-wrap: wrap; }
.form .checks label,
.checks label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.prod-img {
  width: 100% !important;
  height: auto !important;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #f3f3f3;
}
.gallery-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.muted { color: var(--muted); }
.empty { padding: 48px 8px; color: var(--muted); text-align: center; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.prod-tile {
  display: block;
  background: var(--card);
}
.prod-tile-img {
  position: relative;
  background: #f3f3f3;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.prod-tile-img img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.prod-tile-meta { padding: 12px 8px 16px; }
.inv-prod { display: flex; align-items: center; gap: 12px; }
.inv-prod img {
  width: 48px !important;
  height: 64px !important;
  object-fit: contain;
  object-position: center;
  background: #f3f3f3;
  flex-shrink: 0;
}
.prod-tile-meta strong { display: block; font-weight: 500; font-size: 14px; }
.prod-tile-meta .price { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.mini-swatches { display: flex; gap: 6px; margin-bottom: 8px; }
.mini-swatches span {
  width: 12px; height: 12px;
  border: 1px solid #ddd;
  display: inline-block;
}
.prod-tile-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

.editor-stage {
  background: #ece7df;
  padding: 0 0 16px;
  position: sticky;
  top: 84px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}
.editor-visual { position: sticky; top: 88px; }
.dropzone {
  position: relative;
  background: #ece7df;
  border: 1px dashed #cfc4b6;
  overflow: hidden;
  cursor: pointer;
}
.dropzone.is-over { border-color: var(--ink); background: #e6dfd4; }
.dropzone.has-img { border-style: solid; }
.dropzone.packshot { aspect-ratio: 3 / 4; }
.dropzone .sr-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  width: 100%;
  height: 100%;
}
.title-actions { display: flex; gap: 8px; align-items: center; }
.drop-ui {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  pointer-events: none;
  z-index: 1;
}
.dropzone:not(.has-img) .drop-ui {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.dropzone:not(.has-img) .drop-ui::before {
  content: "+";
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
}
.dropzone.has-img .drop-ui { opacity: 0; transition: opacity .15s; }
.dropzone.has-img:hover .drop-ui {
  opacity: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(20, 17, 14, 0.55));
  color: #fff;
}
.dropzone.has-img:hover .drop-ui span { color: #f4efe8; }
.drop-ui strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.drop-ui span, .dropzone.gal-add span, .cw-drop .drop-ui span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.packshot .prod-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  background: #ece7df;
}
.card {
  background: var(--card);
  padding: 22px 22px 20px;
  margin-bottom: 14px;
  display: grid;
  gap: 14px;
}
.card h2 { margin: 0; }
.card-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.row-between.tight { margin-bottom: 0; }
.quiet-link { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.quiet-link:hover { color: var(--ink); }
.pair, .trio { display: grid; gap: 12px; }
.pair { grid-template-columns: 1fr 1fr; }
.trio { grid-template-columns: 1fr 1fr 1fr; }
.rail-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rail-pick, .type-chip, .flag {
  display: grid;
  gap: 4px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.rail-pick input, .type-chip input, .flag input { position: absolute; opacity: 0; pointer-events: none; }
.rail-pick .k {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.rail-pick strong { font-weight: 500; font-size: 14px; }
.rail-pick em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }
.rail-pick.is-on, .type-chip.is-on, .flag:has(input:checked) {
  border-color: var(--ink);
  background: #14110e;
  color: #fff;
}
.rail-pick.is-on em { color: #c4bdb4; }
.chip-label {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.type-chips, .flags { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip, .flag {
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}
.gallery-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gal-item, .gal-add {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #ece7df;
  display: block;
}
.gal-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}
.gal-remove, .gal-new {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 17, 14, 0.72);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0;
  text-transform: none;
}
.gal-add {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cfc4b6;
  color: var(--muted);
  font-size: 12px;
}
.cw-section { margin-top: 28px; }
.colorway-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.cw-card {
  background: var(--card);
  padding: 10px;
  display: grid;
  gap: 10px;
}
.cw-drop { aspect-ratio: 3 / 4; }
.cw-drop img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}
.cw-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #e8e1d6, #e8e1d6 6px, #efe8de 6px, #efe8de 12px);
}
.cw-hex { display: flex; align-items: center; gap: 8px; }
.cw-hex input[type="color"] {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}
.editor-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.bar-spacer { flex: 1; }
.delete-wrap { margin-top: 8px; }

.rail-editor { padding: 8px 0 18px; border-top: 1px solid var(--line); margin-top: 8px; }
.rail-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rail-slot, .form .rail-slot {
  display: grid;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-size: 13px;
}
tr.is-row { cursor: pointer; }
.slot-n { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.slot-thumb {
  aspect-ratio: 3 / 4;
  background: #ece7df;
  border: 1px solid var(--line);
}
.slot-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}
.empty-rail { color: var(--muted); font-size: 13px; padding: 12px 0; }
.danger-panel { margin-top: 8px; }
.merch-hero h2 { margin-bottom: 4px; }

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.review-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.review-card img {
  width: 64px !important;
  height: 85px !important;
  object-fit: contain;
  background: #ece7df;
}
.review-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stars { color: var(--gold); letter-spacing: 0.04em; font-size: 12px; }
.table-row { cursor: pointer; }

.toolbar input, .toolbar select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
}
.inv-prod input, table input[type="number"] {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
}

.dash-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.dash-rail a { display: block; background: var(--card); }
.dash-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f3f3f3;
  overflow: hidden;
}
.dash-rail img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
.dash-rail span { display: block; padding: 8px 6px 10px; font-size: 12px; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: var(--paper);
  color: var(--ink);
}
.login-visual {
  background: #f3f3f3 center/contain no-repeat;
  min-height: 100vh;
}
.login form {
  width: min(380px, calc(100% - 64px));
  margin: auto;
  display: grid;
  gap: 16px;
  padding: 48px 0;
}
.login .brand {
  font-size: 36px;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.login input {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.login input:focus { outline: none; border-bottom-color: var(--ink); }
.login .btn { margin-top: 8px; }

.row-between h1 { margin: 0; }
.page-lead { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.cust-search { display: flex; gap: 8px; margin-left: auto; }
.cust-search input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  min-width: 220px;
  outline: none;
}
.cust-panel { padding: 8px 8px 0; }
.cust-table td { padding: 16px 12px; }
.cust-table tr.is-row { cursor: pointer; }
.cust-id { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px;
  height: 36px;
  background: #14110e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.cust-name strong { display: block; font-weight: 500; }
.cust-name em { display: block; color: var(--muted); font-style: normal; font-size: 12px; margin-top: 2px; }
.cust-mail { display: block; }
.cust-phone { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cust-hero { display: flex; align-items: center; gap: 16px; }
.cust-hero h1 { margin: 0; }
.cust-hero .page-lead { margin: 6px 0 0; }
.cust-card { margin-top: 12px; font-size: 13px; line-height: 1.7; }
.cust-recent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cust-last {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.cust-last em { font-style: normal; color: var(--muted); font-size: 12px; }
.cust-table td:nth-child(3),
.cust-table td:nth-child(4),
.cust-table td:nth-child(6),
.nowrap { white-space: nowrap; }
.cust-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 20px;
  align-items: start;
}
.cust-orders { display: grid; gap: 10px; padding-bottom: 8px; }
.cust-order {
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.cust-order:hover { border-color: #cfc4b6; background: #faf6f0; }
.cust-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cust-order-top strong { font-weight: 500; font-size: 14px; }
.cust-order-items {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.cust-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.cust-order-foot b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.cust-side h2 { margin-bottom: 12px; }
.cust-side h2 + h2,
.cust-meta + h2 { margin-top: 28px; }
.cust-meta { margin: 0; display: grid; gap: 14px; }
.cust-meta div { margin: 0; }
.cust-meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cust-meta dd { margin: 0; font-size: 13px; }
.cust-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.cust-addr { margin: 0; font-size: 13px; line-height: 1.7; }
.split table td:nth-child(4),
.split table td:nth-child(5) { white-space: nowrap; }
.err { color: var(--bad); }
.note { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-rail { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .editor-grid, .rail-picks, .rail-slots, .coupon-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .editor-visual { position: static; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(80vw, 280px);
    transform: translateX(-110%);
    z-index: 20;
    transition: .2s;
    height: 100vh;
  }
  .side.is-open { transform: none; }
  .nav-btn { display: inline-flex; }
  .kpis, .grid-2, .split, .prod-grid, .dash-rail, .cust-split { grid-template-columns: 1fr 1fr; }
  .content, .top { padding-left: 16px; padding-right: 16px; }
  .login { grid-template-columns: 1fr; }
  .login-visual { min-height: 36vh; }
  .colorway-row { grid-template-columns: 64px 1fr; }
  .editor-grid, .rail-picks, .rail-slots, .trio, .pair, .coupon-grid, .review-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .toolbar { align-items: stretch; }
  .cust-search { margin-left: 0; width: 100%; }
  .cust-search input { min-width: 0; flex: 1; }
  .cust-table { display: block; }
  .cust-table tr:first-child { display: none; }
  .cust-table tr.is-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }
  .cust-table td {
    border: 0;
    padding: 0;
    white-space: normal;
  }
  .cust-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .cust-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .cust-table td:nth-child(3) { display: none; }
  .cust-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .cust-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  .cust-table td:nth-child(6) { display: none; }
  .cust-recent { flex-direction: column; align-items: flex-end; gap: 4px; }
  .cust-name strong { word-break: keep-all; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 22px; word-break: keep-all; }
  .prod-grid, .dash-rail, .cust-split { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .top-user { display: none; }
  .row-between { flex-wrap: wrap; }
  .title-actions { width: 100%; justify-content: flex-end; }
}
