:root {
  color-scheme: light;
  --page: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --ink: #17211d;
  --muted: #66726d;
  --line: #dce2de;
  --accent: #b83f36;
  --accent-ink: #ffffff;
  --teal: #2d756d;
  --green: #2f7a4f;
  --red: #b83f36;
  --amber: #a36a13;
  --shadow: 0 18px 55px rgba(23, 33, 29, 0.12);
  --radius: 8px;
  --control: 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0.82), rgba(247, 248, 246, 0.96)),
    url("assets/demo-looks.png") center / cover no-repeat;
}

.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.login-hero,
.login-card,
.metric,
.product-card,
.activity-panel,
.team-panel,
.modal-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-hero {
  min-height: 560px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.92) 62%),
    url("assets/demo-looks.png") center / cover no-repeat;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.15);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  font-size: 0.92rem;
  flex: 0 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-hero h1,
.topbar h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.98;
}

.login-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: #38443f;
  font-size: 1.08rem;
  line-height: 1.6;
}

.login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-stats span,
.date-badge,
.stock-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #2c3833;
  font-size: 0.82rem;
  font-weight: 750;
}

.login-card {
  padding: 32px;
  align-self: center;
}

.login-card h2,
.section-heading h2,
.modal-head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #32413b;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: var(--control);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 117, 109, 0.18);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
}

.role-select {
  display: grid;
  gap: 12px;
}

.role-card {
  width: 100%;
  min-height: 116px;
  display: grid;
  gap: 7px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 18px;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: rgba(45, 117, 109, 0.55);
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.role-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.role-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.role-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-text-button {
  min-height: var(--control);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-button {
  background: var(--ink);
  color: var(--accent-ink);
}

.primary-button:hover {
  background: #26342f;
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.ghost-button,
.icon-text-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.compact {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfbf8 0, var(--page) 320px);
}

.workspace {
  width: min(1320px, calc(100% - 32px));
  min-width: 0;
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 6px 0 10px;
}

.topbar h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: 0;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.online {
  border-color: rgba(47, 122, 79, 0.24);
  background: rgba(47, 122, 79, 0.12);
  color: var(--green);
}

.status-badge.syncing {
  border-color: rgba(163, 106, 19, 0.24);
  background: rgba(163, 106, 19, 0.12);
  color: var(--amber);
}

.status-badge.offline {
  border-color: rgba(184, 63, 54, 0.24);
  background: rgba(184, 63, 54, 0.12);
  color: var(--red);
}

.account-copy {
  text-align: right;
}

.account-copy strong,
.account-copy span {
  display: block;
}

.account-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 16px;
  box-shadow: none;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.metric.warning strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.content-grid {
  display: block;
  align-items: start;
}

.product-area,
.activity-panel,
.team-panel {
  min-width: 0;
}

.product-area {
  display: grid;
  gap: 14px;
}

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

.section-heading.tight {
  margin-bottom: 14px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toggle-line {
  min-height: var(--control);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  white-space: nowrap;
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
}

.product-card {
  overflow: hidden;
  box-shadow: none;
}

.look-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 210px;
  appearance: none;
  border: 0;
  padding: 0;
  text-align: left;
  background-color: var(--surface-2);
  background-image: var(--photo);
  background-position: var(--photo-position, center);
  background-size: var(--photo-size, cover);
  background-repeat: no-repeat;
  cursor: zoom-in;
}

.image-button:focus-visible {
  outline: 3px solid rgba(45, 117, 109, 0.34);
  outline-offset: 3px;
}

.look-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(16, 25, 22, 0.58));
}

.look-code {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 850;
  font-size: 0.84rem;
}

.view-image-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 25, 22, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.card-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.card-title-row h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.card-meta,
.updated-line,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stock-pill.in {
  background: rgba(47, 122, 79, 0.13);
  color: var(--green);
}

.stock-pill.out {
  background: rgba(184, 63, 54, 0.13);
  color: var(--red);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.card-actions button:only-child {
  grid-column: 1 / -1;
}

.stock-action {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.stock-action.make-in {
  background: var(--green);
}

.stock-action.make-out {
  background: var(--red);
}

.stock-action:hover {
  filter: brightness(0.96);
}

.activity-panel,
.team-panel {
  padding: 18px;
  box-shadow: none;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 18px;
  margin-top: 18px;
}

.lower-grid.single {
  grid-template-columns: 1fr;
}

.activity-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.activity-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-list strong,
.activity-list span {
  display: block;
}

.activity-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.activity-footer {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.user-row:first-child {
  border-top: 0;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.role-pill {
  background: #edf3f7;
  color: #27556d;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 25, 22, 0.56);
}

.modal[hidden],
[hidden] {
  display: none !important;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 22px;
}

.small-panel {
  width: min(460px, 100%);
}

.modal-head,
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.modal-actions {
  justify-content: flex-end;
  padding-top: 6px;
}

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

.modal-toggle {
  justify-content: flex-start;
  padding: 0;
}

.permission-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.image-panel {
  width: min(980px, 100%);
}

.image-modal-visual {
  min-height: min(74vh, 720px);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface-2);
  background-image: var(--photo);
  background-position: var(--photo-position, center);
  background-size: var(--photo-size, contain);
  background-repeat: no-repeat;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 750;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .login-shell,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 420px;
    padding: 28px;
  }

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

  .search-field,
  .toggle-line {
    grid-column: 1 / -1;
  }

  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-menu {
    width: 100%;
    justify-content: space-between;
  }

  .account-copy {
    text-align: left;
  }
}

@media (max-width: 620px) {
  body {
    background: #fff;
  }

  .app-shell {
    background: #fff;
  }

  .login-screen {
    padding: 14px;
  }

  .workspace {
    width: 100%;
    padding: 10px 10px 28px;
  }

  .login-card,
  .activity-panel,
  .team-panel,
  .modal-panel {
    padding: 16px;
  }

  .login-hero h1 {
    font-size: 2.35rem;
  }

  .topbar {
    gap: 10px;
    margin: 0 0 12px;
    padding: 4px 0 8px;
  }

  .topbar-title {
    width: 100%;
    align-items: flex-start;
  }

  .brand-mark.small {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .topbar h1 {
    font-size: 1.42rem;
    line-height: 1.05;
  }

  .section-kicker {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .account-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
  }

  .status-badge {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .account-copy strong {
    font-size: 0.9rem;
  }

  .account-copy span {
    font-size: 0.76rem;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .metric {
    padding: 10px 12px;
  }

  .metric span {
    font-size: 0.74rem;
  }

  .metric strong {
    margin-top: 5px;
    font-size: 1.45rem;
  }

  .metric.warning strong {
    font-size: 0.98rem;
  }

  .section-heading {
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 1.18rem;
  }

  #addProductButton {
    width: 100%;
  }

  .toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    gap: 9px;
    padding: 10px;
    border-radius: 8px;
  }

  label {
    gap: 5px;
    font-size: 0.78rem;
  }

  input,
  select {
    min-height: 46px;
    border-radius: 8px;
    padding: 9px 11px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 166px;
    border-radius: 8px;
  }

  .look-image {
    height: 100%;
    min-height: 166px;
  }

  .look-image::after {
    height: 54%;
  }

  .look-code {
    left: 8px;
    bottom: 8px;
    min-height: 26px;
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .view-image-chip {
    display: none;
  }

  .card-body {
    min-width: 0;
    padding: 10px;
    gap: 8px;
  }

  .card-title-row {
    gap: 7px;
  }

  .card-title-row h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.96rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-meta,
  .updated-line {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .card-meta {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .stock-pill {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: auto;
  }

  .card-actions button {
    min-height: 42px;
    padding: 8px;
    font-size: 0.82rem;
  }

  .stock-action {
    grid-column: 1 / -1;
    min-height: 46px;
    font-size: 0.9rem;
  }

  .lower-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .activity-panel {
    padding: 14px;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 94svh;
    border-radius: 14px 14px 0 0;
  }

  .image-panel {
    max-height: 100svh;
    border-radius: 0;
  }

  .image-modal-visual {
    min-height: 74svh;
  }

  .toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }
}

/* Professional interface refresh */
:root {
  --page: #f3f5f1;
  --surface: #ffffff;
  --surface-2: #f0f3ef;
  --ink: #101915;
  --muted: #5d6963;
  --line: #dce3dd;
  --accent: #b83f36;
  --teal: #247267;
  --green: #2f7f55;
  --red: #be3d36;
  --shadow: 0 20px 48px rgba(16, 25, 21, 0.09);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 245, 241, 0.96) 360px),
    var(--page);
}

.login-screen {
  min-height: 100vh;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(11, 18, 15, 0.86) 0%, rgba(11, 18, 15, 0.66) 45%, rgba(243, 245, 241, 0.28) 100%),
    url("assets/demo-looks.png") center / cover no-repeat;
}

.login-shell {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.login-hero {
  min-height: 0;
  padding: 0;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}

.login-hero .brand-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.login-hero .eyebrow {
  color: #ffd7d3;
}

.login-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  letter-spacing: 0;
}

.login-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.login-stats span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(10px);
}

.login-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(9, 14, 12, 0.22);
  backdrop-filter: blur(16px);
}

.login-card h2 {
  font-size: 1.55rem;
}

.role-card {
  min-height: 126px;
  border-color: #d8dfd9;
  background: linear-gradient(180deg, #fff, #fafbf9);
}

.role-card:hover,
.role-card:focus-visible {
  border-color: rgba(184, 63, 54, 0.36);
  box-shadow: 0 18px 38px rgba(16, 25, 21, 0.11);
}

.role-card strong {
  font-size: 1.16rem;
}

.app-shell {
  background:
    linear-gradient(180deg, #ffffff 0, #f5f6f2 260px, var(--page) 100%);
}

.workspace {
  width: min(1400px, calc(100% - 44px));
  padding: 26px 0 46px;
}

.topbar {
  min-height: 74px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(16, 25, 21, 0.06);
}

.topbar h1 {
  font-size: clamp(1.65rem, 2.7vw, 2.85rem);
}

.brand-mark.small {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.overview-grid {
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 108px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 25, 21, 0.045);
}

.metric strong {
  font-size: 2.1rem;
}

.section-heading {
  padding: 2px 2px 0;
}

.section-heading h2 {
  font-size: 1.48rem;
}

.toolbar {
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 220px) minmax(150px, 180px);
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 25, 21, 0.045);
}

input,
select {
  border-radius: 8px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 25, 21, 0.055);
}

.look-image {
  min-height: 236px;
}

.card-body {
  padding: 16px;
  gap: 13px;
}

.card-title-row h3 {
  font-size: 1.08rem;
}

.card-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stock-action {
  grid-column: 1 / -1;
  min-height: 44px;
  border-radius: 8px;
  padding: 9px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-action,
.view-action {
  min-width: 0;
  border-radius: 8px;
}

.activity-panel {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 25, 21, 0.045);
}

.modal-panel {
  border-radius: 14px;
}

@media (min-width: 1240px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-card {
    width: min(520px, 100%);
  }

  .login-hero h1 {
    font-size: clamp(2.6rem, 10vw, 5rem);
  }

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

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body,
  .app-shell {
    background: #fff;
  }

  .login-screen {
    padding: 16px;
    background:
      linear-gradient(180deg, rgba(11, 18, 15, 0.82), rgba(11, 18, 15, 0.7)),
      url("assets/demo-looks.png") center / cover no-repeat;
  }

  .login-shell {
    gap: 18px;
  }

  .login-hero {
    padding-top: 12px;
  }

  .login-hero .brand-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
  }

  .login-hero h1 {
    font-size: 2.45rem;
  }

  .login-copy {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .login-stats {
    gap: 7px;
    margin-top: 18px;
  }

  .login-stats span {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .login-card {
    padding: 18px;
    border-radius: 12px;
  }

  .role-card {
    min-height: 104px;
    padding: 15px;
  }

  .workspace {
    width: 100%;
    padding: 10px 10px 28px;
  }

  .topbar {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 6px 0 12px;
  }

  .topbar h1 {
    font-size: 1.42rem;
  }

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

  .metric {
    min-height: 88px;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: none;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
    padding: 10px;
    box-shadow: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 166px;
    border-radius: 8px;
    box-shadow: none;
  }

  .look-image {
    height: 100%;
    min-height: 166px;
  }

  .card-body {
    padding: 10px;
    gap: 8px;
  }

  .card-title-row h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.96rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-meta,
  .updated-line {
    font-size: 0.76rem;
  }

  .stock-action {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .activity-panel {
    box-shadow: none;
  }
}
