:root {
  --bg: #141414;
  --bg-2: #1b1b1b;
  --panel: #212121;
  --panel-2: #2a2a29;
  --line: #343433;
  --line-2: #43433f;
  --ink: #2b2b2a;
  --text: #f1f2f3;
  --text-2: #b9bec4;
  --muted: #868d95;
  --sky: #039be0;
  --sky-2: #3fc0ff;
  --sky-soft: rgba(3, 155, 224, .14);
  --ok: #2fbf71;
  --ok-soft: rgba(47, 191, 113, .14);
  --warn: #f2a93b;
  --warn-soft: rgba(242, 169, 59, .14);
  --danger: #ef5350;
  --danger-soft: rgba(239, 83, 80, .14);
  --radius: 12px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; margin: 0; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.tnum, td.num, .num { font-variant-numeric: tabular-nums; }

/* ───── layout ───── */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: none; background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: block; padding: 18px 26px 10px; }
.brand img { width: 100%; max-width: 150px; display: block; border-radius: 6px; }
.nav { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  color: var(--text-2); font-weight: 500; text-decoration: none; position: relative;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--sky-soft); color: #fff; }
.nav a.active svg { color: var(--sky-2); opacity: 1; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--sky); }
.nav .badge { margin-left: auto; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.sidebar-foot { padding: 14px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 18px 32px; border-bottom: 1px solid var(--line);
  background: rgba(20,20,20,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 30px; font-style: italic; font-weight: 800; text-transform: uppercase; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.menu-btn { display: none; }
.view { padding: 28px 32px 60px; outline: none; max-width: 1500px; width: 100%; }

/* ───── componentes ───── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin-right: auto; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 18px; }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .label { color: var(--text-2); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .value { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.kpi.accent { border-color: rgba(3,155,224,.45); background: linear-gradient(135deg, rgba(3,155,224,.18), var(--panel) 60%); }
.kpi.warn .value { color: var(--warn); }
.kpi .kpi-icon { position: absolute; right: 16px; top: 16px; color: var(--line-2); }
.kpi .kpi-icon svg { width: 26px; height: 26px; }
a.kpi { color: inherit; text-decoration: none; display: block; transition: border-color .15s; }
a.kpi:hover { border-color: var(--sky); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: 600 13.5px var(--body); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #33332f; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--sky); border-color: var(--sky); color: #fff; }
.btn.primary:hover { background: #0aa9f2; }
.btn.success { background: var(--ok); border-color: var(--ok); color: #0b2316; }
.btn.success:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: rgba(239,83,80,.4); background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.icon-btn svg { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.pend { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.info { background: var(--sky-soft); color: var(--sky-2); }
.badge.neutral { background: var(--panel-2); color: var(--text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.count::before { display: none; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--panel-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; font-family: ui-monospace, Menlo, monospace; }

/* formularios */
label.field { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
label.field > input, label.field > select, label.field > textarea, label.field > .money-input, label.field > .search { display: block; margin-top: 6px; }
label.field .hint { font-weight: 400; color: var(--muted); margin-left: 4px; }
label.field > .hint:last-child { display: block; margin: 6px 0 0; }
.req { color: var(--sky-2); }
input, select, textarea {
  font: 14px var(--body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 9px; padding: 0 12px; height: 40px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { padding: 10px 12px; height: auto; min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
input.invalid { border-color: var(--danger); }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=date] { color-scheme: dark; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.search { position: relative; min-width: 260px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label.field { min-width: 150px; }
.money-input { position: relative; }
.money-input::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.money-input input { padding-left: 24px; text-align: right; }

/* tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-2); white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn + .btn { margin-left: 6px; }
tfoot td { font-weight: 700; background: var(--bg-2); }
.strong { font-weight: 600; color: var(--text); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--line-2); display: block; margin: 0 auto 10px; }
.items-mini { color: var(--text-2); font-size: 12.5px; line-height: 1.6; }

/* tabs */
.tabs { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { background: transparent; border: 0; color: var(--text-2); font: 600 13px var(--body); padding: 7px 14px; border-radius: 7px; cursor: pointer; }
.tabs button.active { background: var(--panel-2); color: #fff; }

/* cotizador */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.totals-card { position: sticky; top: 90px; }
.totals-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.totals-row span:first-child { color: var(--text-2); }
.totals-row.grand { border-bottom: 0; padding-top: 14px; font-family: var(--display); font-size: 30px; font-weight: 700; }
.totals-row.grand span:first-child { color: var(--text); font-size: 20px; align-self: center; }
.items-table input { height: 36px; }
.items-table td { padding: 8px 10px; }
.items-table .qty { width: 90px; }
.items-table td:nth-child(2) { min-width: 200px; }
.items-table .price { width: 150px; }
.ref-price { font-size: 11.5px; color: var(--muted); margin-top: 3px; text-align: right; }
.ref-price.changed { color: var(--warn); }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; max-height: 340px; overflow-y: auto; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.picker-list button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 12px; cursor: pointer; font: 13.5px var(--body); }
.picker-list button:hover, .picker-list button.hl { background: var(--sky-soft); }
.picker-list .grp { padding: 8px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.picker-list .price { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.client-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 18px; font-size: 13px; }
.client-card .k { color: var(--muted); font-size: 11.5px; }
.missing { color: var(--warn); font-style: italic; }

/* ficha cliente */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--sky-soft); color: var(--sky-2); display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 800; font-style: italic; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* barras simples */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 120px; gap: 12px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--sky); border-radius: 5px; }
.chart-box { position: relative; height: 280px; }

.period-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.period { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.period .p-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.period .p-value { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.period .p-sub { font-size: 12px; color: var(--text-2); }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 6px 0 6px 18px; position: relative; color: var(--text-2); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--sky-soft); color: var(--text); font-size: 13px; border: 1px solid rgba(3,155,224,.3); }
.notice.warn { background: var(--warn-soft); border-color: rgba(242,169,59,.35); }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .15s; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .18s; }
.modal.wide { max-width: 820px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h2 { font-size: 22px; margin-right: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* toasts */
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--sky); color: var(--text); padding: 12px 16px; border-radius: 10px; min-width: 260px; max-width: 420px; box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: pop .2s; font-size: 13.5px; }
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--danger); }

.loading { padding: 60px; text-align: center; color: var(--muted); }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quote-layout { grid-template-columns: 1fr; }
  .totals-card { position: static; }
  .period-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .menu-btn { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .view { padding: 20px 16px 50px; }
  .topbar { padding: 14px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 90px; }
}
@media (max-width: 560px) {
  .grid-4, .period-grid { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
}

/* ───── acceso (login) y usuario ───── */
body.auth-mode .app { display: none; }
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(3,155,224,.18), transparent 60%), var(--bg);
}
.auth-card {
  width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.auth-logo { width: 150px; border-radius: 6px; margin: 0 auto 6px; display: block; }
.auth-card h1 { font-size: 30px; font-style: italic; font-weight: 800; text-transform: uppercase; text-align: center; }
.auth-sub { text-align: center; margin: -8px 0 4px; font-size: 13px; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.user-box { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sky-soft); color: var(--sky-2); flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.user-meta { min-width: 0; }
.user-name { color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-actions { gap: 2px; margin: 8px -10px 0; }
.user-actions .btn { padding: 0 10px; }
.auth-card .form-error { margin: 0; }

/* ───── recibidor de pedidos ───── */
.mt-s { margin-top: 8px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; max-width: 340px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(255,255,255,.025); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text); }
.chip b { color: var(--sky-2); }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 11px; line-height: 1; }
.chip button:hover { color: var(--danger); }
.designer-tabs { flex-wrap: wrap; max-width: 100%; }
.iva-tabs { display: flex; }
.iva-tabs button, #layerTabs button { flex: 1; }
.status-steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.status-steps button { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font: 600 13px var(--body); cursor: pointer; }
.status-steps button.done { color: var(--ok); border-color: rgba(47,191,113,.35); }
.status-steps button.active { background: var(--sky); border-color: var(--sky); color: #fff; }
.panos-total { font-family: var(--display); font-size: 20px; font-weight: 700; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.panos-total span { font-size: 44px; color: var(--sky-2); line-height: 1; }
.panos-total small { flex-basis: 100%; font-family: var(--body); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; cursor: pointer; color: var(--text-2); font-size: 13px; transition: border-color .15s, background .15s; }
.dropzone svg { width: 22px; height: 22px; color: var(--sky-2); }
.dropzone:hover, .dropzone.over { border-color: var(--sky); background: var(--sky-soft); }
.file-item { align-items: flex-start; }
.file-item .thumb, .file-item .file-ic { width: 52px; height: 52px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; border: 1px solid var(--line); }
.file-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-item .file-ic svg { width: 22px; height: 22px; color: var(--text-2); }
.roster-wrap { max-height: 560px; overflow: auto; }
.roster td { padding: 4px 6px; }
.roster input { height: 32px; padding: 0 8px; font-size: 13px; }
.roster .c-name { min-width: 180px; }
.roster .c-number, .roster .c-qty { width: 78px; }
.roster .c-size { width: 84px; }
.roster .c-category, .roster .c-garment { min-width: 110px; }
.save-state { align-self: center; min-width: 90px; text-align: right; }
@media (max-width: 560px) { .save-state { display: none; } }
.panel-head h2 svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 4px; color: var(--sky-2); }
.panel-head h2 { display: flex; align-items: center; gap: 4px; }
.grid > * { min-width: 0; }
.product-card { border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 12px 14px; }
.product-card + .product-card { margin-top: 10px; }
.product-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.product-head input { font-weight: 600; font-size: 15px; }
.product-num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--sky-soft); color: var(--sky-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.layer-tabs { display: flex; margin-top: 6px; }
.layer-tabs button { flex: 1; }
.product-sum { margin-top: 10px; }
.roster select { height: 32px; padding: 0 6px; font-size: 13px; }
.roster.one-product .c-garment, .roster.one-product th:nth-child(6) { display: none; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
