:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-alt: #141b24;
  --card: rgba(23, 30, 40, 0.9);
  --card-strong: #1b2431;
  --text: #eef3fb;
  --muted: #9aa8bc;
  --line: rgba(170, 190, 215, 0.18);
  --accent: #f18b48;
  --accent-strong: #ffb27a;
  --accent-soft: rgba(241, 139, 72, 0.2);
  --success: #50b67a;
  --warning: #f0ad4e;
  --danger: #ef6666;
  --shadow: 0 20px 70px rgba(4, 7, 12, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(241, 139, 72, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(98, 138, 196, 0.2),
      transparent 24%
    ),
    linear-gradient(140deg, var(--bg), var(--bg-alt));
}

button,
input {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
}

img {
  display: block;
  width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  width: min(1800px, 100%);
  margin-inline: auto;
  min-width: 0;
}

.is-hidden {
  display: none !important;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 12, 9, 0.48);
  backdrop-filter: blur(10px);
}

.auth-card {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(20, 27, 37, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-error {
  min-height: 1.4rem;
  color: var(--danger);
  font-weight: 600;
}

.sidebar {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(16, 22, 31, 0.84);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1;
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-strong);
  white-space: normal;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.small {
  font-size: 0.92rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat-card span,
.shoe-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.panel-note {
  display: grid;
  gap: 12px;
}

.ghost-button,
.primary-button,
.secondary-button,
.delete-button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.delete-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  background: rgba(33, 44, 59, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
}

.content {
  padding: 28px;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

.content-tabs {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.content-tab-button {
  display: none;
  cursor: pointer;
}

.content-tab-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111722;
}

.hero-card,
.inventory-section {
  background: rgba(21, 28, 38, 0.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.depot-home {
  display: grid;
  gap: 18px;
}

.risk-overview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(23, 31, 43, 0.84);
}

.risk-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(241, 139, 72, 0.42);
  background: rgba(241, 139, 72, 0.18);
  color: #ffd3b5;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.risk-toggle-button:hover {
  transform: translateY(-1px);
}

.risk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.risk-card {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(241, 139, 72, 0.24);
  border-radius: 16px;
  background: rgba(32, 41, 55, 0.94);
  padding: 12px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.risk-card:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 139, 72, 0.45);
}

.risk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(241, 139, 72, 0.2);
  color: #ffd3b5;
  font-size: 0.74rem;
  font-weight: 700;
}

.risk-meta {
  margin: 0;
  color: #f7c49d;
  font-size: 0.85rem;
  line-height: 1.45;
}

.depot-home-heading {
  padding: 4px 2px 0;
}

.depot-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.depot-home-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  text-align: left;
  background: linear-gradient(
    180deg,
    rgba(28, 37, 50, 0.98),
    rgba(19, 26, 35, 0.98)
  );
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  gap: 12px;
  min-width: 0;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.depot-home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 139, 72, 0.45);
}

.depot-home-card strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

.depot-home-card span {
  color: var(--muted);
  line-height: 1.55;
}

.depot-home-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  background: #f5ebdf;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.depot-home-card:nth-child(1) {
  background: linear-gradient(
    180deg,
    rgba(49, 35, 28, 0.95),
    rgba(25, 24, 28, 0.98)
  );
}

.depot-home-card:nth-child(2) {
  background: linear-gradient(
    180deg,
    rgba(26, 39, 58, 0.95),
    rgba(20, 26, 35, 0.98)
  );
}

.depot-home-card:nth-child(1) .depot-home-tag {
  background: rgba(212, 106, 44, 0.12);
}

.depot-home-card:nth-child(2) .depot-home-tag {
  background: rgba(78, 114, 160, 0.12);
}

.hero-card {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.shoe-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-field-choice {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(29, 38, 51, 0.96),
    rgba(21, 28, 38, 0.96)
  );
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(4, 7, 12, 0.34);
}

input[type="text"],
input[type="search"],
input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(16, 23, 32, 0.95);
  color: var(--text);
}

select {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(16, 23, 32, 0.95);
  color: var(--text);
}

input[type="file"] {
  padding: 0.78rem 0;
}

input:focus {
  outline: 2px solid rgba(212, 106, 44, 0.28);
  border-color: rgba(212, 106, 44, 0.4);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.context-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  background: rgba(241, 139, 72, 0.18);
  border: 1px solid rgba(241, 139, 72, 0.4);
  color: #ffd3b5;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(23, 30, 41, 0.88);
  border: 1px solid var(--line);
}

.compact-input {
  width: min(220px, 100%);
}

.warehouse-toggle {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.warehouse-toggle .view-button {
  min-width: 96px;
}

.view-toggle {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.view-button {
  border: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.view-button.is-active {
  background: #f18b48;
  color: #111722;
}

select[name="warehouse"] {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 12px) calc(1em + 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.form-field-choice select {
  border-radius: 18px;
  background-color: rgba(17, 24, 34, 0.98);
}

.form-field-choice:hover {
  border-color: rgba(241, 139, 72, 0.44);
}

.section-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.size-field {
  background: rgba(27, 36, 49, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.size-field .size-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111722;
  box-shadow: 0 16px 32px rgba(241, 139, 72, 0.26);
}

.secondary-button {
  background: rgba(31, 40, 54, 0.95);
  color: #f4c7a1;
  border: 1px solid rgba(241, 139, 72, 0.32);
}

.inventory-section {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.search-input {
  min-width: 240px;
  width: min(100%, 300px);
}

.inventory-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.depot-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.add-product-card,
.category-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(27, 36, 49, 0.94);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: left;
  min-width: 0;
  cursor: pointer;
  display: grid;
  gap: 10px;
}

.add-product-card {
  background: linear-gradient(
    135deg,
    rgba(241, 139, 72, 0.2),
    rgba(24, 32, 44, 0.98)
  );
  align-content: center;
  justify-items: start;
}

.add-product-plus {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  background: #f18b48;
  color: #111722;
}

.category-card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  background: rgba(241, 139, 72, 0.2);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.category-card h3,
.add-product-card strong {
  margin: 0;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.category-card-stock,
.category-card-preview,
.add-product-card span:last-child {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.category-card:hover,
.add-product-card:hover {
  transform: translateY(-2px);
}

.inventory-list.cards-layout {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.inventory-list.table-layout {
  display: block;
}

.shoe-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(22, 30, 41, 0.94);
  min-height: 250px;
  min-width: 0;
}

.cards-layout .shoe-card {
  grid-template-columns: 1fr;
  min-height: 0;
  position: relative;
}

.shoe-card.is-located {
  outline: 2px solid rgba(241, 139, 72, 0.8);
  box-shadow: 0 0 0 3px rgba(241, 139, 72, 0.18), var(--shadow);
}

.shoe-media {
  min-height: 250px;
  background: linear-gradient(160deg, #1d1a18, #55382a 60%, #d46a2c);
}

.cards-layout .shoe-media {
  min-height: 240px;
  max-height: 240px;
}

.shoe-media img {
  height: 100%;
  object-fit: cover;
}

.shoe-body {
  padding: 18px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.shoe-head {
  min-width: 0;
}

.photo-toggle {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.shoe-name {
  margin: 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.shoe-subtitle {
  margin-top: 6px;
}

.photo-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  background: rgba(30, 26, 23, 0.72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.stock-panel {
  display: grid;
  gap: 12px;
}

.panel-close {
  justify-self: end;
  border: 1px solid var(--line);
  background: rgba(30, 39, 53, 0.95);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cards-layout .stock-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-content: start;
  padding: 14px;
  background: rgba(18, 25, 35, 0.97);
  overflow: auto;
}

.stock-panel.is-hidden {
  display: none;
}

.shoe-card.is-open .photo-hint {
  background: rgba(212, 106, 44, 0.88);
}

.cards-layout .shoe-body {
  gap: 14px;
}

.shoe-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.shoe-top > div {
  min-width: 0;
}

.cards-layout .shoe-top {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.cards-layout .inline-actions {
  width: 100%;
  margin-top: 4px;
}

.cards-layout .inline-actions .edit-button,
.cards-layout .inline-actions .delete-button {
  flex: 1;
  justify-content: center;
}

.edit-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(33, 42, 56, 0.96);
  color: var(--text);
  padding: 0.6rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.shoe-top h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shoe-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.shoe-summary > div {
  min-width: 0;
}

.cards-layout .shoe-summary {
  background: rgba(32, 41, 55, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.shoe-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cards-layout .size-pills {
  gap: 8px;
}

.size-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  background: rgba(36, 45, 60, 0.92);
  border: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.size-pill strong,
.size-pill span {
  min-width: 0;
}

.size-pill span:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cards-layout .size-pill {
  padding: 0.5rem 0.68rem;
  font-size: 0.84rem;
}

.size-pill strong {
  font-size: 0.92rem;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pill-dot.good {
  background: var(--success);
}

.pill-dot.warn {
  background: var(--warning);
}

.pill-dot.empty {
  background: var(--danger);
}

.delete-button {
  background: rgba(120, 40, 40, 0.25);
  color: var(--danger);
  padding-inline: 1rem;
}

.inventory-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(23, 31, 43, 0.94);
  max-height: 520px;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.inventory-table th,
.inventory-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.inventory-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(34, 44, 59, 0.98);
}

.inventory-table tbody tr:nth-child(even) {
  background: rgba(31, 40, 54, 0.66);
}

.inventory-table tbody tr:hover {
  background: rgba(63, 76, 96, 0.56);
}

.table-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.table-sizes {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  padding: 36px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  min-width: 240px;
  max-width: calc(100vw - 40px);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(30, 26, 23, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1500px) {
  .content {
    padding: 36px;
  }

  .inventory-list.cards-layout {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .depot-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .shoe-media {
    min-height: 220px;
  }

  .inventory-list.cards-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .inventory-list.cards-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .content,
  .sidebar {
    padding: 18px;
  }

  .content {
    gap: 16px;
  }

  .sidebar {
    position: static;
  }

  .form-grid,
  .sizes-grid,
  .shoe-summary,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .depot-home-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .warehouse-toggle {
    width: 100%;
  }

  .content-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-tab-button {
    width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .view-toggle {
    width: 100%;
  }

  .warehouse-toggle .view-button,
  .view-toggle .view-button {
    flex: 1;
    text-align: center;
  }

  .view-button {
    flex: 1;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .muted,
  .auth-error,
  .stat-card span,
  .stat-card strong,
  .shoe-summary span,
  .shoe-summary strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .form-actions button {
    width: 100%;
    justify-content: center;
  }

  .depot-grid {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions button {
    flex: 1;
  }

  .shoe-media,
  .cards-layout .shoe-media {
    min-height: 220px;
    max-height: none;
  }

  .size-pill {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
  }

  .search-input {
    width: 100%;
    min-width: 0;
  }

  .inventory-table {
    min-width: 720px;
  }

  .toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-width: 0;
  }
}

@media (max-width: 1200px) {
  .risk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .risk-list {
    grid-template-columns: 1fr;
  }
  }

  .auth-card {
    width: 100%;
    margin-top: 8px;
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.5rem);
  }

  .stat-card {
    padding: 14px;
    border-radius: 16px;
  }

  .stat-card strong {
    font-size: 1.35rem;
  }

  .hero-card,
  .inventory-section {
    border-radius: 20px;
    padding: 16px;
  }

  .shoe-body {
    padding: 14px;
  }

  .cards-layout .size-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .size-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .inventory-table {
    min-width: 640px;
  }
}

@media (max-width: 420px) {
  .content,
  .sidebar {
    padding: 12px;
  }

  .inventory-section,
  .hero-card,
  .auth-card {
    border-radius: 16px;
  }

  .content-tab-button,
  .view-button,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .edit-button,
  .delete-button {
    padding: 0.72rem 0.85rem;
    font-size: 0.92rem;
  }

  .cards-layout .shoe-media {
    min-height: 190px;
  }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }

  .cards-layout .size-pills {
    grid-template-columns: 1fr;
  }
}
