.catalog-shell,
.inventory-shell,
.login-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 96px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  min-height: 36px;
  padding: 8px 12px;
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }


.session-filter {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}
.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
}
.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d8dce3;
  padding: 3px;
  transition: background .18s ease;
}
.switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 24, 32, .24);
  transition: transform .18s ease;
}
.switch-row input:checked + .switch-track { background: var(--brand); }
.switch-row input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch-row input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(230, 54, 82, .16); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.section-head h1 { margin: 0 0 5px; font-size: clamp(26px, 4vw, 40px); }
.section-head p { margin: 0; color: var(--muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-image {
  aspect-ratio: 1 / 1;
  background: #fff5f7;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-info { padding: 14px; display: grid; gap: 9px; }
.product-info h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.badge { color: var(--brand-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.sku { margin: 0; color: var(--muted); font-size: 14px; }
.details { width: 100%; margin-top: 4px; }

.login-shell {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.login-card h1 { margin: 0 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 20px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-weight: 700; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.form-message { min-height: 22px; color: var(--danger); }

.inventory-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 180px) auto;
  gap: 10px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.inventory-list { display: grid; gap: 10px; }
.inventory-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.inventory-item.local-only { border-color: #f0b429; background: #fffaf0; }
.inventory-item strong { display: block; }
.inventory-item .sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.stock-pill {
  min-width: 72px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f2f4f7;
  font-weight: 800;
}
.item-actions { display: flex; gap: 6px; }
.item-actions button { width: 40px; padding: 0; }

@media (max-width: 780px) {
  
.session-filter {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}
.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
}
.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d8dce3;
  padding: 3px;
  transition: background .18s ease;
}
.switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 24, 32, .24);
  transition: transform .18s ease;
}
.switch-row input:checked + .switch-track { background: var(--brand); }
.switch-row input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch-row input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(230, 54, 82, .16); }

.section-head { align-items: stretch; flex-direction: column; }
  .inventory-tools { grid-template-columns: 1fr; }
  .inventory-item { grid-template-columns: 1fr; }
  .item-actions button { flex: 1; width: auto; }
}

.register-shell {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  gap: 18px;
  place-content: start center;
  padding-top: 24px;
}
.approval-list { display: grid; gap: 10px; }
.approval-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.approval-item strong { display: block; }
.approval-item .item-actions button { width: auto; padding: 0 12px; }
@media (max-width: 720px) {
  .approval-item { grid-template-columns: 1fr; }
  .approval-item .item-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
