:root {
  --color-forest: #16302c;
  --color-gold: #a3855f;
  --color-ink: #091511;
  --color-white: #f7f6f2;
  --color-stone: #c4c0b8;
  --color-body: #5d5a56;
  --color-border: rgba(163, 133, 95, 0.22);
  --color-danger: #9d3548;
  --color-danger-soft: rgba(157, 53, 72, 0.08);
  --shadow-soft: 0 30px 80px rgba(9, 21, 17, 0.14);
  --shadow-card: 0 20px 60px rgba(9, 21, 17, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
  --transition: 320ms ease;
}

/* START: Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  color: var(--color-body);
  background:
    radial-gradient(circle at top right, rgba(163, 133, 95, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f6f2 0%, #f1eee7 100%);
  line-height: 1.7;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}
/* END: Reset */

/* START: Base */
.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  color: var(--color-ink);
}

.section {
  padding: 6rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-gold), #c2ab84);
  color: var(--color-ink);
  box-shadow: 0 14px 34px rgba(163, 133, 95, 0.28);
}

.button-secondary {
  color: var(--color-white);
  border: 1px solid rgba(247, 246, 242, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.06);
  border: 1px solid rgba(22, 48, 44, 0.08);
}
/* END: Base */

/* START: Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0.7rem;
  background: linear-gradient(180deg, rgba(247, 246, 242, 0.18), rgba(247, 246, 242, 0));
  transition:
    background var(--transition),
    padding var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  padding-top: 0.4rem;
  background: rgba(247, 244, 238, 0.72);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 10px 24px rgba(79, 70, 54, 0.08);
}

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0 0.85rem;
}

.brand {
  justify-self: start;
}

.brand img {
  width: clamp(140px, 18vw, 210px);
}

.nav-panel {
  min-width: 0;
}

.toolbar-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  padding: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 8px 18px rgba(79, 70, 54, 0.05);
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.mobile-search-toggle {
  display: none;
}

@media (min-width: 993px) {
  .mobile-search-toggle {
    display: none !important;
  }
}

.toolbar-shell .search-field {
  order: 2;
}

.toolbar-shell .toolbar-actions {
  order: 1;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
  padding: 0.88rem 1rem;
  border-radius: 999px;
  background: rgba(247, 246, 242, 0.92);
}

.search-field__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  flex-shrink: 0;
  cursor: pointer;
}

.search-field__icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.search-field__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.search-field input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  outline: none;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.nav-action__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
}

.nav-action__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nav-action__label {
  white-space: nowrap;
}

.nav-action__icon--arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-action:hover,
.nav-action:focus-visible {
  transform: translateY(-2px);
}

.nav-action--primary {
  color: var(--color-ink);
  background: linear-gradient(135deg, rgba(207, 183, 143, 0.94), rgba(180, 151, 107, 0.94));
  box-shadow: 0 12px 26px rgba(163, 133, 95, 0.2);
}

.nav-action--ghost {
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.06);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.nav-action--icon-only {
  width: 54px;
  min-width: 54px;
  padding: 0;
}

.nav-action--static {
  pointer-events: none;
}

.nav-action__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--color-forest);
  color: var(--color-white);
  font-size: 0.8rem;
}
/* END: Header */

/* START: Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 1.5rem 0 2.5rem;
}

.hero[hidden] {
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 21, 17, 0.28), rgba(9, 21, 17, 0.76)),
    linear-gradient(180deg, rgba(9, 21, 17, 0.3), rgba(9, 21, 17, 0.55));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  color: var(--color-white);
  max-width: 720px;
  justify-self: end;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}

.hero-actions .button {
  min-width: 240px;
  min-height: 56px;
  padding-inline: 1.45rem;
  text-align: center;
  flex: 0 1 250px;
}

.hero-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.8), rgba(9, 21, 17, 0.82));
  border: 1px solid rgba(247, 246, 242, 0.12);
  box-shadow: var(--shadow-soft);
}

.panel-label {
  margin: 0 0 1rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.stats-list {
  display: grid;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(247, 246, 242, 0.12);
}

.stat-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stat-item__label {
  color: rgba(247, 246, 242, 0.7);
}

.stat-item strong {
  font-size: 1.2rem;
  color: var(--color-white);
}
/* END: Hero */

/* START: Dashboard */
.dashboard-section {
  position: relative;
  margin-top: -2rem;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: clamp(6rem, 10vw, 8rem);
}

.dashboard-section.is-factory-view {
  margin-top: 0;
  padding-top: 1.15rem;
}

.dashboard-head {
  display: grid;
  gap: 0;
  padding: clamp(0.95rem, 1.4vw, 1.1rem) clamp(1rem, 1.8vw, 1.35rem);
  border-radius: var(--radius-xl);
  background: rgba(247, 246, 242, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-soft);
}

.dashboard-head[hidden] {
  display: none;
}

.section-heading {
  max-width: 760px;
  min-height: 0;
}

.dashboard-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-width: 0;
}

.dashboard-back-button {
  flex-shrink: 0;
  min-height: 47px;
  padding: 0.72rem 1.35rem;
  color: var(--color-white);
  background: linear-gradient(135deg, rgba(22, 48, 44, 0.96), rgba(13, 31, 27, 0.98));
  border-color: rgba(22, 48, 44, 0.22);
  box-shadow: 0 12px 26px rgba(9, 21, 17, 0.16);
}

.dashboard-back-button:hover,
.dashboard-back-button:focus-visible {
  background: linear-gradient(135deg, rgba(30, 62, 56, 0.98), rgba(17, 39, 35, 0.98));
}

.inventory-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-inline-start: auto;
  min-width: 0;
}

.inventory-tools-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
  min-width: 0;
}

.inventory-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.inventory-action-menu {
  position: relative;
}

.inventory-icon-button {
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-forest);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 237, 228, 0.94)),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 48, 44, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 16px rgba(163, 133, 95, 0.08);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.inventory-icon-button:hover,
.inventory-icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(22, 48, 44, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px rgba(163, 133, 95, 0.14);
}

.inventory-icon-button span,
.inventory-dropdown-menu__item span[aria-hidden="true"] {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inventory-icon-button svg,
.inventory-dropdown-menu__item svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.inventory-dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 15rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 231, 0.96)),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 48, 44, 0.12);
  box-shadow: 0 24px 42px rgba(9, 21, 17, 0.14);
  z-index: 70;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.inventory-dropdown-menu[hidden] {
  display: none;
}

.inventory-dropdown-menu__item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 1rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  color: var(--color-forest);
  text-align: right;
  background: transparent;
}

.inventory-dropdown-menu__item strong {
  font-size: 0.72rem;
  color: rgba(163, 133, 95, 0.95);
}

.inventory-dropdown-menu__item:hover,
.inventory-dropdown-menu__item:focus-visible {
  background: rgba(22, 48, 44, 0.06);
}

.inventory-dropdown-menu__item.is-disabled {
  opacity: 0.68;
  cursor: default;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(22, 48, 44, 0.06);
}

.view-switch__button {
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--color-forest);
}

.view-switch__button.is-active {
  color: var(--color-ink);
  background:
    linear-gradient(135deg, rgba(244, 238, 227, 0.92), rgba(230, 216, 190, 0.82)),
    rgba(255, 255, 255, 0.54);
  box-shadow: 0 10px 22px rgba(163, 133, 95, 0.12);
}

.inventory-filter {
  display: grid;
  flex: 0 0 8.8rem;
  min-width: 8.8rem;
}

.inventory-filter__control {
  position: relative;
  display: flex;
  align-items: center;
}

.inventory-filter__label {
  display: none;
}

.inventory-filter__icon {
  position: absolute;
  inset-inline-start: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92rem;
  height: 0.92rem;
  color: rgba(22, 48, 44, 0.78);
  pointer-events: none;
}

.inventory-filter__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.inventory-filter__trigger {
  width: 100%;
  min-height: 43px;
  padding-block: 0.58rem;
  padding-inline: 2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 48, 44, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 237, 228, 0.94)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 16px rgba(163, 133, 95, 0.08);
  color: var(--color-forest);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  text-align: right;
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    transform var(--transition);
}

.inventory-filter__trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-filter__trigger:focus {
  outline: none;
}

.inventory-filter__control::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid rgba(22, 48, 44, 0.5);
  border-bottom: 2px solid rgba(22, 48, 44, 0.5);
  transform: translateY(-35%) rotate(45deg);
  pointer-events: none;
}

.inventory-filter__trigger:hover,
.inventory-filter__trigger:focus-visible,
.inventory-filter[data-open="true"] .inventory-filter__trigger {
  border-color: rgba(22, 48, 44, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px rgba(163, 133, 95, 0.12);
}

.inventory-filter__trigger:focus-visible,
.inventory-filter[data-open="true"] .inventory-filter__trigger {
  color: var(--color-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 239, 231, 0.96)),
    rgba(255, 255, 255, 0.8);
}

.inventory-filter[data-open="true"] .inventory-filter__control::after {
  transform: translateY(10%) rotate(225deg);
}

.inventory-filter__menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  display: grid;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 238, 228, 0.97)),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(22, 48, 44, 0.12);
  box-shadow: 0 24px 42px rgba(9, 21, 17, 0.16);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 70;
}

.inventory-filter__menu[hidden] {
  display: none;
}

.inventory-filter__option {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.78rem 0.9rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-forest);
  background: transparent;
  text-align: right;
  font-weight: 800;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.inventory-filter__option::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(163, 133, 95, 0.2);
  box-shadow: inset 0 0 0 1px rgba(163, 133, 95, 0.16);
  flex: 0 0 auto;
}

.inventory-filter__option:hover,
.inventory-filter__option:focus-visible,
.inventory-filter__option.is-selected {
  color: var(--color-ink);
  background: rgba(22, 48, 44, 0.06);
}

.inventory-filter__option:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.inventory-filter__option.is-selected::before {
  background: linear-gradient(135deg, var(--color-gold), #c2ab84);
  box-shadow: none;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.results-bar__title,
.results-bar__meta {
  margin: 0;
}

.results-bar__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-forest);
}

.results-bar__meta {
  color: rgba(9, 21, 17, 0.6);
  font-weight: 700;
}

.results-bar__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.view-switch--compact {
  padding: 0.22rem;
  gap: 0.22rem;
}

.view-switch--compact .view-switch__button {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.deleted-page-section {
  padding-top: 3rem;
}

.trash-bulk-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trash-bulk-button {
  min-height: 2.7rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: var(--color-danger);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 236, 238, 0.94)),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(157, 53, 72, 0.18);
  box-shadow: 0 10px 18px rgba(157, 53, 72, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.trash-bulk-button:hover,
.trash-bulk-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(157, 53, 72, 0.28);
  box-shadow: 0 12px 22px rgba(157, 53, 72, 0.12);
}

.trash-bulk-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* END: Dashboard */

/* START: Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.factory-card {
  position: relative;
}

.factory-card__menu-trigger {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--color-forest);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 48, 44, 0.08);
  box-shadow: 0 10px 24px rgba(9, 21, 17, 0.12);
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.factory-card__menu-trigger svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: currentColor;
}

.factory-card__menu-trigger:hover,
.factory-card__menu-trigger:focus-visible {
  transform: translateY(-2px);
  background: rgba(247, 246, 242, 0.98);
  box-shadow: 0 14px 28px rgba(9, 21, 17, 0.16);
}

.factory-card__menu {
  position: absolute;
  top: 4.2rem;
  left: 1rem;
  z-index: 4;
  min-width: 12.5rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 1.15rem;
  background: rgba(247, 246, 242, 0.98);
  border: 1px solid rgba(22, 48, 44, 0.1);
  box-shadow: 0 20px 40px rgba(9, 21, 17, 0.16);
}

.factory-card__menu[hidden] {
  display: none;
}

.factory-card__menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  color: var(--color-forest);
  background: transparent;
  font-weight: 800;
  text-align: right;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.factory-card__menu-item svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}

.factory-card__menu-item:hover,
.factory-card__menu-item:focus-visible {
  background: rgba(22, 48, 44, 0.06);
  transform: translateX(-2px);
}

.factory-card__menu-item.is-danger {
  color: var(--color-danger);
}

.factory-card__menu-item.is-danger:hover,
.factory-card__menu-item.is-danger:focus-visible {
  background: rgba(157, 53, 72, 0.1);
}

.factory-card__button {
  width: 100%;
  display: grid;
  gap: 0;
  padding: 0;
  text-align: right;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(252, 249, 242, 0.98), rgba(241, 234, 220, 0.98)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.factory-card__button:hover,
.factory-card__button:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(9, 21, 17, 0.16);
}

.factory-card__tab {
  width: 9rem;
  height: 1.15rem;
  margin-inline-start: auto;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(135deg, rgba(215, 191, 150, 0.95), rgba(171, 143, 97, 0.94));
}

.factory-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.factory-card__body h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  color: var(--color-forest);
}

.factory-card__owner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(22, 48, 44, 0.06);
  border: 1px solid rgba(22, 48, 44, 0.08);
  color: rgba(9, 21, 17, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
}

.factory-card__owner strong {
  color: var(--color-forest);
  font-weight: 800;
}

.factory-card__summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.factory-card__summary {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.factory-card__summary span {
  font-size: 0.84rem;
  color: rgba(9, 21, 17, 0.62);
  font-weight: 700;
}

.factory-card__summary strong {
  color: var(--color-forest);
  font-size: 1.15rem;
}

.factory-card__summary--priced {
  background: rgba(15, 90, 69, 0.08);
  border-color: rgba(15, 90, 69, 0.12);
}

.factory-card__summary--unpriced {
  background: rgba(163, 133, 95, 0.1);
  border-color: rgba(163, 133, 95, 0.18);
}

.factory-trash-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(252, 249, 242, 0.98), rgba(241, 234, 220, 0.98)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
}

.factory-trash-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.factory-trash-card__head {
  display: grid;
  gap: 0.3rem;
}

.factory-trash-card__head h3 {
  margin: 0;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  color: var(--color-forest);
}

.factory-trash-card__phones {
  color: rgba(9, 21, 17, 0.56);
  font-weight: 700;
}

.factory-trash-card__owner {
  color: rgba(9, 21, 17, 0.68);
  font-weight: 700;
}

.factory-trash-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.factory-trash-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(22, 48, 44, 0.06);
  border: 1px solid rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
  font-weight: 800;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.product-card__badges {
  position: absolute;
  inset: 1rem 1rem auto 1rem;
  z-index: 1;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  pointer-events: none;
}

.product-card__badge {
  max-width: min(42%, 8rem);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(247, 246, 242, 0.92);
  color: var(--color-forest);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__badge--factory {
  max-width: min(52%, 10.5rem);
}

.product-card > .product-card__badge {
  position: absolute;
  inset: 1rem 1rem auto auto;
  z-index: 1;
}

.product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  background: rgba(22, 48, 44, 0.08);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.product-card__media--placeholder {
  background:
    radial-gradient(circle at top, rgba(212, 190, 154, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(250, 247, 240, 0.98), rgba(241, 236, 227, 0.96));
}

.product-card__media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.2rem;
  text-align: center;
  color: var(--color-forest);
}

.product-card__media-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(3rem, 4vw, 4rem);
  height: clamp(3rem, 4vw, 4rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(163, 133, 95, 0.2);
  color: var(--color-gold);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(163, 133, 95, 0.1);
}

.product-card__media-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(9, 21, 17, 0.54);
}

.product-card__media-serial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(163, 133, 95, 0.2);
  color: var(--color-forest);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__media:hover,
.product-card__media:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(163, 133, 95, 0.24);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.product-card__head {
  display: grid;
  gap: 0.3rem;
}

.product-card__title {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.35rem);
  line-height: 1.08;
  color: var(--color-forest);
  font-family: inherit;
  font-weight: 900;
}

.product-card__serial {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0;
  color: var(--color-gold);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.product-card__dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dimension-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.07), rgba(22, 48, 44, 0.05));
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.dimension-card--wide {
  grid-column: 1 / -1;
}

.dimension-card__label {
  font-size: 0.82rem;
  color: rgba(9, 21, 17, 0.56);
  font-weight: 700;
}

.dimension-card__value {
  color: var(--color-forest);
  font-size: 1rem;
  font-weight: 800;
}

.product-card__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-chip--product {
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  border-color: rgba(22, 48, 44, 0.08);
}

.status-chip--priced {
  color: #0f5a45;
  background: rgba(15, 90, 69, 0.12);
  border-color: rgba(15, 90, 69, 0.18);
}

.status-chip--unpriced {
  color: var(--color-gold);
  background: rgba(163, 133, 95, 0.12);
  border-color: rgba(163, 133, 95, 0.2);
}

.status-chip--deleted {
  color: var(--color-danger);
  background: rgba(157, 53, 72, 0.12);
  border-color: rgba(157, 53, 72, 0.18);
}

.status-chip--countdown {
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  border-color: rgba(22, 48, 44, 0.12);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.card-action {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card-action svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: currentColor;
}

.card-action:hover,
.card-action:focus-visible {
  transform: translateY(-2px);
}

.card-action--edit {
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  border-color: rgba(22, 48, 44, 0.08);
}

.card-action--delete {
  color: var(--color-danger);
  background: var(--color-danger-soft);
  border-color: rgba(157, 53, 72, 0.12);
}

.card-action--restore {
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.96), rgba(9, 21, 17, 0.98));
  border-color: rgba(22, 48, 44, 0.18);
}

.card-action--destroy {
  color: var(--color-danger);
  background: rgba(157, 53, 72, 0.12);
  border-color: rgba(157, 53, 72, 0.18);
}

.floating-add-button {
  position: fixed;
  left: max(1.35rem, calc(env(safe-area-inset-left) + 1.35rem));
  bottom: max(1.35rem, calc(env(safe-area-inset-bottom) + 1.35rem));
  z-index: 40;
  width: clamp(3.9rem, 6vw, 4.8rem);
  height: clamp(3.9rem, 6vw, 4.8rem);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 248, 232, 0.98), rgba(238, 210, 154, 0.92) 46%, rgba(163, 133, 95, 0.98) 100%);
  border: 1px solid rgba(163, 133, 95, 0.4);
  box-shadow:
    0 18px 40px rgba(163, 133, 95, 0.28),
    0 8px 18px rgba(9, 21, 17, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.floating-add-button.is-product-mode {
  background:
    radial-gradient(circle at 30% 30%, rgba(233, 248, 240, 0.98), rgba(110, 174, 141, 0.9) 48%, rgba(22, 48, 44, 0.98) 100%);
  border-color: rgba(22, 48, 44, 0.34);
  color: var(--color-white);
}

.floating-add-button__icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.floating-add-button__icon::before,
.floating-add-button__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.floating-add-button__icon::before {
  width: 1.5rem;
  height: 0.2rem;
}

.floating-add-button__icon::after {
  width: 0.2rem;
  height: 1.5rem;
}

.floating-add-button:hover,
.floating-add-button:focus-visible {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.05);
  box-shadow:
    0 24px 44px rgba(163, 133, 95, 0.34),
    0 12px 22px rgba(9, 21, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.floating-add-button:focus-visible {
  outline: none;
}

.floating-add-button:active {
  transform: translateY(-1px) scale(0.98);
}
/* END: Product Grid */

/* START: Empty State */
.empty-state {
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.empty-state__icon {
  font-size: 2rem;
  color: var(--color-gold);
}

.empty-state h3 {
  margin-top: 0.8rem;
  font-size: 2.2rem;
}

.empty-state p {
  margin: 0.8rem auto 0;
  max-width: 40ch;
}
/* END: Empty State */

.search-results-stack {
  display: grid;
  gap: 1.5rem;
}

.product-grid.is-search-mode {
  display: block;
}

.search-results-section {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.search-results-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
}

.search-results-section__head h3 {
  font-size: 1.9rem;
}

.search-results-section__head span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
  font-weight: 800;
}

.search-results-section__grid {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

.search-results-section__grid--factories {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.search-results-section__grid--products {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.factory-card--search .factory-card__menu-trigger {
  top: 0.8rem;
  left: 0.8rem;
  width: 2.45rem;
  height: 2.45rem;
}

.factory-card--search .factory-card__menu {
  top: 3.5rem;
  left: 0.8rem;
}

.factory-card--search .factory-card__tab {
  width: 7rem;
  height: 0.95rem;
}

.factory-card--search .factory-card__body {
  gap: 0.8rem;
  padding: 1.15rem;
}

.factory-card--search .factory-card__body h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.05;
}

.factory-card--search .factory-card__summary-row {
  gap: 0.6rem;
}

.factory-card--search .factory-card__summary {
  padding: 0.72rem 0.8rem;
}

.factory-card--search .factory-card__summary span {
  font-size: 0.76rem;
}

.factory-card--search .factory-card__summary strong {
  font-size: 1rem;
}

.product-card--search .product-card__badges {
  inset: 0.8rem 0.8rem auto 0.8rem;
  gap: 0.45rem;
}

.product-card--search .product-card__badge {
  max-width: min(46%, 7.5rem);
  padding: 0.34rem 0.62rem;
  font-size: 0.74rem;
}

.product-card--search .product-card__badge--factory {
  max-width: min(54%, 8.75rem);
}

.product-card--search > .product-card__badge {
  inset: 0.8rem 0.8rem auto auto;
}

.product-card--search .product-card__media {
  aspect-ratio: 1 / 0.82;
}

.product-card--search .product-card__media-placeholder {
  gap: 0.68rem;
  padding: 1rem;
}

.product-card--search .product-card__media-mark {
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.1rem;
}

.product-card--search .product-card__media-label {
  font-size: 0.76rem;
}

.product-card--search .product-card__media-serial {
  padding: 0.58rem 0.82rem;
  font-size: 0.94rem;
}

.product-card--search .product-card__body {
  gap: 0.8rem;
  padding: 1.05rem;
}

.product-card--search .product-card__head {
  gap: 0.18rem;
}

.product-card--search .product-card__title {
  font-size: clamp(1.2rem, 1.55vw, 1.65rem);
  line-height: 1.12;
}

.product-card--search .product-card__serial {
  font-size: 0.92rem;
}

.product-card--search .product-card__dimensions {
  gap: 0.45rem;
}

.product-card--search .dimension-card {
  gap: 0.12rem;
  padding: 0.58rem 0.68rem;
}

.product-card--search .dimension-card__label {
  font-size: 0.74rem;
}

.product-card--search .dimension-card__value {
  font-size: 0.92rem;
}

.product-card--search .product-card__status-row {
  gap: 0.45rem;
}

.product-card--search .status-chip {
  min-height: 2rem;
  padding: 0.36rem 0.68rem;
  font-size: 0.78rem;
}

.product-card--search .product-card__actions {
  gap: 0.55rem;
}

.product-card--search .card-action {
  width: 3rem;
  height: 3rem;
}

/* START: Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 17, 0.66);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 960px);
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(247, 246, 242, 0.98), rgba(241, 238, 231, 0.98));
  box-shadow: 0 36px 80px rgba(9, 21, 17, 0.32);
}

.modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0 1rem;
  border-bottom: 1px solid rgba(22, 48, 44, 0.08);
}

.modal__heading {
  display: grid;
  gap: 0.45rem;
}

.modal__eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  color: rgba(163, 133, 95, 0.92);
}

.modal__header h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  color: var(--color-forest);
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
}

.modal__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  font-size: 1.7rem;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 17, 0.72);
  backdrop-filter: blur(12px);
}

.confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 520px);
  margin: min(8vh, 4rem) auto 0;
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(247, 246, 242, 0.98), rgba(241, 238, 231, 0.98)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 36px 80px rgba(9, 21, 17, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.52);
  text-align: center;
}

.confirm-modal__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  font-size: 1.5rem;
}

.confirm-modal__icon {
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
}

.confirm-modal__icon svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  fill: currentColor;
}

.confirm-modal__icon.is-trash {
  color: var(--color-danger);
  background: rgba(157, 53, 72, 0.1);
}

.confirm-modal__icon.is-archive {
  color: #a05b67;
  background: rgba(160, 91, 103, 0.12);
}

.confirm-modal__icon.is-image {
  color: var(--color-gold);
  background: rgba(163, 133, 95, 0.12);
}

.confirm-modal__description {
  margin: 0.7rem 0 0;
  color: rgba(9, 21, 17, 0.78);
}

.confirm-modal__note {
  margin: 0.8rem auto 0;
  max-width: 34ch;
  color: rgba(9, 21, 17, 0.58);
}

.confirm-modal__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.confirm-modal__button {
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(160, 91, 103, 0.96), rgba(133, 51, 68, 0.98));
}

.confirm-modal__button.is-danger {
  background: linear-gradient(180deg, rgba(157, 53, 72, 0.96), rgba(115, 26, 43, 0.98));
}

.confirm-modal__button.is-image {
  color: var(--color-ink);
  background: linear-gradient(135deg, rgba(207, 183, 143, 0.96), rgba(180, 151, 107, 0.96));
}

.import-progress-modal[hidden] {
  display: none;
}

.import-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
}

.import-progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 17, 0.68);
  backdrop-filter: blur(10px);
}

.import-progress-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 640px);
  margin: min(10vh, 4rem) auto 0;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(247, 246, 242, 0.99), rgba(241, 238, 231, 0.98)),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 36px 80px rgba(9, 21, 17, 0.32);
}

.import-progress-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.import-progress-modal__eyebrow {
  margin-bottom: 0.4rem;
}

.import-progress-modal__header h2 {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  color: var(--color-forest);
}

.import-progress-modal__close {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
}

.import-progress-modal.is-reviewing .import-progress-modal__close {
  display: none;
}

.import-progress-modal__description {
  margin: 0.9rem 0 0;
  color: rgba(9, 21, 17, 0.72);
}

.import-progress-modal__bar {
  margin-top: 1rem;
  height: 0.82rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 48, 44, 0.08);
}

.import-progress-modal__bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(207, 183, 143, 0.96), rgba(22, 48, 44, 0.92));
  transition: width 220ms ease;
}

.import-progress-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.import-progress-modal__stat {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.import-progress-modal__stat span {
  font-size: 0.78rem;
  color: rgba(9, 21, 17, 0.58);
}

.import-progress-modal__stat strong {
  color: var(--color-forest);
  font-size: 1.05rem;
}

.import-progress-modal__results {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 48, 44, 0.08);
}

.import-progress-modal__results h3 {
  font-size: 1.05rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  color: var(--color-forest);
}

.import-progress-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 48, 44, 0.08);
}

.import-progress-modal__actions[hidden] {
  display: none;
}

.import-progress-modal__result-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
  max-height: 220px;
  overflow: auto;
}

.import-progress-modal__result-item {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(157, 53, 72, 0.06);
  border: 1px solid rgba(157, 53, 72, 0.12);
  color: rgba(9, 21, 17, 0.76);
}

.import-progress-modal__result-item strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--color-danger);
}

.import-progress-modal__result-item.is-warning {
  background: rgba(163, 133, 95, 0.08);
  border-color: rgba(163, 133, 95, 0.16);
}

.import-progress-modal__result-item.is-warning strong {
  color: var(--color-gold);
}

.export-products-modal[hidden] {
  display: none;
}

.export-products-modal {
  position: fixed;
  inset: 0;
  z-index: 89;
}

.export-products-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 17, 0.74);
  backdrop-filter: blur(12px);
}

.export-products-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 880px);
  margin: min(6vh, 2.4rem) auto 0;
  padding: 1.6rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(207, 183, 143, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(248, 247, 243, 0.99), rgba(241, 238, 231, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 40px 90px rgba(9, 21, 17, 0.34);
  max-height: min(88vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
}

.export-products-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.export-products-modal__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.export-products-modal__brand img {
  width: clamp(92px, 12vw, 124px);
  height: auto;
  object-fit: contain;
}

.export-products-modal__eyebrow {
  margin-bottom: 0.35rem;
}

.export-products-modal__header h2 {
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  color: var(--color-forest);
}

.export-products-modal__summary {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 48, 44, 0.08);
  color: rgba(9, 21, 17, 0.72);
}

.export-products-modal__summary-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.export-products-modal__select-all {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 3.35rem;
  padding: 0.8rem 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(22, 48, 44, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-forest);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(9, 21, 17, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.export-products-modal__select-all:hover,
.export-products-modal__select-all:focus-visible {
  border-color: rgba(22, 48, 44, 0.22);
  background: rgba(244, 240, 232, 0.96);
  box-shadow: 0 18px 32px rgba(9, 21, 17, 0.1);
  transform: translateY(-1px);
}

.export-products-modal__select-all[data-state="all"] {
  color: #fff;
  border-color: rgba(22, 48, 44, 0.14);
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.96), rgba(12, 29, 26, 0.96));
}

.export-products-modal__select-all[data-state="partial"] {
  border-color: rgba(163, 133, 95, 0.26);
  background: rgba(244, 239, 229, 0.96);
}

.export-products-modal__select-all:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.export-products-modal__form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-bottom: 0.25rem;
}

.export-products-modal__section {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.export-products-modal__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.export-products-modal__section-head h3 {
  font-size: 1.08rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  color: var(--color-forest);
}

.export-products-modal__section-head span {
  font-size: 0.86rem;
  color: rgba(9, 21, 17, 0.56);
}

.export-products-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.export-products-modal__grid--factory {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.export-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: rgba(246, 243, 236, 0.96);
  border: 1px solid rgba(22, 48, 44, 0.1);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.export-checkbox:hover,
.export-checkbox:focus-within {
  transform: translateY(-1px);
  border-color: rgba(22, 48, 44, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(9, 21, 17, 0.08);
}

.export-checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-forest);
  flex: 0 0 auto;
}

.export-checkbox span {
  font-weight: 700;
  color: var(--color-forest);
}

.export-products-modal__sort-options {
  display: flex;
  gap: 0.9rem;
}

.export-sort-field {
  display: grid;
  gap: 0.5rem;
  width: min(100%, 320px);
}

.export-sort-field span {
  font-size: 0.9rem;
  color: rgba(9, 21, 17, 0.58);
}

.export-sort-field select {
  min-height: 3.2rem;
  padding: 0 1rem;
  border-radius: 18px;
  border: 1px solid rgba(22, 48, 44, 0.12);
  background: rgba(246, 243, 236, 0.96);
  color: var(--color-forest);
  font-weight: 800;
}

.export-products-modal__validation {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: var(--color-danger);
  background: rgba(157, 53, 72, 0.08);
  border: 1px solid rgba(157, 53, 72, 0.14);
}

.export-products-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: sticky;
  bottom: -1.6rem;
  z-index: 2;
  margin: 0 -1.6rem -1.6rem;
  padding: 1rem 1.6rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(22, 48, 44, 0.08);
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.72), rgba(246, 243, 236, 0.96) 26%, rgba(246, 243, 236, 1));
  backdrop-filter: blur(10px);
}

.export-pdf-surface {
  position: fixed;
  top: 0;
  left: -200vw;
  width: 794px;
  pointer-events: none;
}

.export-pdf-document {
  direction: rtl;
  width: 794px;
  padding: 0;
  color: #102824;
  font-family: "Tajawal", sans-serif;
}

.export-pdf-page {
  width: 794px;
  height: 1123px;
  padding: 44px;
  background:
    radial-gradient(circle at top left, rgba(207, 183, 143, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, #f2eee5 100%);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

.export-pdf-page::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(163, 133, 95, 0.18);
  pointer-events: none;
}

.export-pdf-cover {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.25rem;
}

.export-pdf-cover__top {
  display: grid;
  gap: 1.35rem;
}

.export-pdf-cover__brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.2rem;
}

.export-pdf-cover__brand .export-pdf-logo {
  width: 116px;
}

.export-pdf-cover__brand .export-pdf-logo img,
.export-pdf-cover__brand .export-pdf-logo svg {
  height: auto;
  display: block;
  width: 100%;
}

.export-pdf-cover__chip {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(16, 40, 36, 0.08);
  color: #102824;
  font-weight: 800;
}

.export-pdf-cover__hero {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 50px rgba(16, 40, 36, 0.08);
}

.export-pdf-cover__hero h1 {
  font-size: 2.55rem;
  line-height: 1.25;
  color: #102824;
}

.export-pdf-cover__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 0;
  align-self: end;
}

.export-pdf-featured-card {
  display: grid;
  grid-template-rows: 232px auto;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.9rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(16, 40, 36, 0.07);
  overflow: hidden;
}

.export-pdf-featured-card.is-text-only {
  grid-template-rows: auto;
}

.export-pdf-featured-card__image-wrap {
  height: 232px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 240, 232, 0.96), rgba(234, 228, 215, 0.96));
}

.export-pdf-featured-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.export-pdf-featured-card__content {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.export-pdf-featured-card__serial {
  width: fit-content;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(163, 133, 95, 0.13);
  color: #7f6143;
  font-size: 0.74rem;
  font-weight: 900;
}

.export-pdf-featured-card__name {
  font-size: 1.06rem;
  line-height: 1.25;
  color: #102824;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.export-pdf-featured-card__factory {
  color: rgba(16, 40, 36, 0.58);
  font-size: 0.78rem;
}

.export-pdf-factory-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.export-pdf-factory-info__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.98);
  border: 1px solid rgba(16, 40, 36, 0.08);
  color: #102824;
  font-weight: 800;
}

.export-pdf-factory-info__item span {
  display: inline-flex;
  align-items: center;
  color: rgba(16, 40, 36, 0.62);
  font-size: 0.82rem;
}

.export-pdf-factory-info__item strong {
  color: #102824;
}

.export-pdf-factory-info__item--phone {
  direction: ltr;
  flex-direction: row;
}

.export-pdf-factory-info__icon {
  width: 1.05rem;
  height: 1.05rem;
  color: #7f6143;
  flex: 0 0 auto;
}

.export-pdf-factory-info__icon svg {
  width: 100%;
  height: 100%;
}

.export-pdf-cover__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.export-pdf-cover__footer p {
  max-width: 32ch;
  color: rgba(16, 40, 36, 0.58);
}

.export-pdf-grid-page {
  gap: 0.9rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  --export-grid-gap: 1rem;
  --export-card-padding: 0.95rem;
  --export-card-radius: 28px;
  --export-card-gap: 0.85rem;
  --export-card-image-height: 214px;
  --export-content-gap: 0.7rem;
  --export-serial-font-size: 0.78rem;
  --export-name-font-size: 1.18rem;
  --export-name-line-height: 1.35;
  --export-factory-font-size: 0.82rem;
  --export-detail-gap: 0.55rem;
  --export-detail-padding: 0.7rem 0.8rem;
  --export-detail-label-font-size: 0.78rem;
  --export-detail-value-font-size: 1rem;
  --export-detail-card-min-height: 4.8rem;
  --export-detail-section-min-height: 5.2rem;
  --export-dimension-gap: 0.55rem;
  --export-dimension-padding: 0.72rem 0.75rem;
  --export-dimension-label-font-size: 0.76rem;
  --export-dimension-value-font-size: 1.08rem;
  --export-name-lines: 3;
  --export-meta-lines: 2;
}

.export-pdf-grid-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.export-pdf-grid-page__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.export-pdf-grid-page__title-wrap .export-pdf-logo {
  width: 64px;
}

.export-pdf-grid-page__title-wrap .export-pdf-logo img,
.export-pdf-grid-page__title-wrap .export-pdf-logo svg {
  height: auto;
  display: block;
  width: 100%;
}

.export-pdf-grid-page__factory {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: #102824;
}

.export-pdf-grid-page__subtitle {
  margin: 0.15rem 0 0;
  color: rgba(16, 40, 36, 0.58);
  font-size: 0.85rem;
}

.export-pdf-grid-page__counter {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 40, 36, 0.08);
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}

.export-pdf-grid-page__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--export-grid-gap);
  min-height: 0;
  overflow: hidden;
}

.export-pdf-grid-page__cards.is-text-only {
  gap: calc(var(--export-grid-gap) - 0.12rem);
}

.export-pdf-grid-card {
  position: relative;
  display: grid;
  grid-template-rows: var(--export-card-image-height) minmax(0, 1fr);
  gap: var(--export-card-gap);
  min-height: 0;
  height: 100%;
  padding: var(--export-card-padding);
  border-radius: var(--export-card-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 34px rgba(16, 40, 36, 0.07);
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

.export-pdf-grid-card.is-text-only {
  grid-template-rows: auto;
}

.export-pdf-grid-card__image-wrap {
  min-height: 0;
  height: var(--export-card-image-height);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 240, 232, 0.96), rgba(234, 228, 215, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-pdf-grid-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.export-pdf-grid-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--export-content-gap);
  min-height: 0;
  overflow: hidden;
}

.export-pdf-grid-card__meta {
  display: grid;
  gap: calc(var(--export-content-gap) * 0.9);
  min-height: 0;
  overflow: hidden;
}

.export-pdf-grid-card__serial {
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(163, 133, 95, 0.13);
  color: #7f6143;
  font-size: var(--export-serial-font-size);
  font-weight: 900;
}

.export-pdf-grid-card__name {
  font-size: var(--export-name-font-size);
  line-height: var(--export-name-line-height);
  color: #102824;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--export-name-lines);
  word-break: break-word;
}

.export-pdf-grid-card__factory {
  margin: -0.2rem 0 0;
  color: rgba(16, 40, 36, 0.58);
  font-size: var(--export-factory-font-size);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-word;
}

.export-pdf-grid-card__details,
.export-pdf-grid-card__dimensions {
  flex: 0 0 auto;
}

.export-pdf-grid-card__details {
  min-height: var(--export-detail-section-min-height);
}

.export-pdf-product__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--export-detail-gap);
  min-height: 0;
}

.export-pdf-detail-card {
  min-height: var(--export-detail-card-min-height);
  padding: var(--export-detail-padding);
  border-radius: 18px;
  background: rgba(248, 244, 236, 0.92);
  border: 1px solid rgba(16, 40, 36, 0.08);
  display: grid;
  align-content: start;
  grid-template-rows: auto minmax(0, 1fr);
}

.export-pdf-detail-card span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--export-detail-label-font-size);
  color: rgba(16, 40, 36, 0.56);
}

.export-pdf-detail-card strong {
  display: block;
  color: #102824;
  font-size: var(--export-detail-value-font-size);
  line-height: 1.35;
  max-height: calc(1.35em * var(--export-meta-lines));
  min-height: 1.35em;
  overflow: clip;
  word-break: break-word;
}

.export-pdf-detail-card.is-fallback strong {
  color: rgba(16, 40, 36, 0.74);
}

.export-pdf-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--export-dimension-gap);
  min-height: 0;
}

.export-pdf-dimension {
  min-height: 0;
  padding: var(--export-dimension-padding);
  border-radius: 18px;
  background: rgba(16, 40, 36, 0.92);
  color: #fff;
  overflow: hidden;
}

.export-pdf-dimension span {
  display: block;
  margin-bottom: 0.28rem;
  font-size: var(--export-dimension-label-font-size);
  color: rgba(255, 255, 255, 0.72);
}

.export-pdf-dimension strong {
  display: block;
  font-size: var(--export-dimension-value-font-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-pdf-grid-page[data-export-density="compact"] {
  --export-grid-gap: 0.88rem;
  --export-card-padding: 0.82rem;
  --export-card-radius: 24px;
  --export-card-gap: 0.7rem;
  --export-card-image-height: 186px;
  --export-content-gap: 0.55rem;
  --export-serial-font-size: 0.72rem;
  --export-name-font-size: 1.03rem;
  --export-name-line-height: 1.28;
  --export-factory-font-size: 0.76rem;
  --export-detail-gap: 0.45rem;
  --export-detail-padding: 0.56rem 0.62rem;
  --export-detail-label-font-size: 0.72rem;
  --export-detail-value-font-size: 0.88rem;
  --export-detail-card-min-height: 4.2rem;
  --export-detail-section-min-height: 4.6rem;
  --export-dimension-gap: 0.45rem;
  --export-dimension-padding: 0.58rem 0.62rem;
  --export-dimension-label-font-size: 0.7rem;
  --export-dimension-value-font-size: 0.94rem;
  --export-name-lines: 3;
  --export-meta-lines: 2;
}

.export-pdf-grid-page[data-export-density="dense"] {
  --export-grid-gap: 0.72rem;
  --export-card-padding: 0.68rem;
  --export-card-radius: 22px;
  --export-card-gap: 0.56rem;
  --export-card-image-height: 162px;
  --export-content-gap: 0.46rem;
  --export-serial-font-size: 0.68rem;
  --export-name-font-size: 0.92rem;
  --export-name-line-height: 1.24;
  --export-factory-font-size: 0.72rem;
  --export-detail-gap: 0.38rem;
  --export-detail-padding: 0.5rem 0.54rem;
  --export-detail-label-font-size: 0.68rem;
  --export-detail-value-font-size: 0.8rem;
  --export-detail-card-min-height: 3.85rem;
  --export-detail-section-min-height: 4.1rem;
  --export-dimension-gap: 0.38rem;
  --export-dimension-padding: 0.48rem 0.52rem;
  --export-dimension-label-font-size: 0.66rem;
  --export-dimension-value-font-size: 0.84rem;
  --export-name-lines: 2;
  --export-meta-lines: 2;
}

.export-pdf-grid-page[data-export-overflow-safe="true"] {
  --export-grid-gap: 0.66rem;
  --export-card-padding: 0.6rem;
  --export-card-radius: 20px;
  --export-card-gap: 0.48rem;
  --export-card-image-height: 148px;
  --export-content-gap: 0.4rem;
  --export-serial-font-size: 0.64rem;
  --export-name-font-size: 0.84rem;
  --export-name-line-height: 1.2;
  --export-factory-font-size: 0.68rem;
  --export-detail-gap: 0.32rem;
  --export-detail-padding: 0.42rem 0.48rem;
  --export-detail-label-font-size: 0.64rem;
  --export-detail-value-font-size: 0.74rem;
  --export-detail-card-min-height: 3.5rem;
  --export-detail-section-min-height: 3.75rem;
  --export-dimension-gap: 0.32rem;
  --export-dimension-padding: 0.42rem 0.48rem;
  --export-dimension-label-font-size: 0.62rem;
  --export-dimension-value-font-size: 0.78rem;
  --export-name-lines: 1;
  --export-meta-lines: 1;
}

.camera-modal[hidden] {
  display: none;
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(6, 14, 12, 0.94);
}

.camera-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(207, 183, 143, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(6, 14, 12, 0.32), rgba(6, 14, 12, 0.82));
  backdrop-filter: blur(10px);
}

.camera-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--color-white);
}

.camera-modal__topbar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0.8rem;
}

.camera-modal__back {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.camera-modal__back svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  fill: currentColor;
}

.camera-modal__meta {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
}

.camera-modal__eyebrow {
  margin: 0;
  color: rgba(207, 183, 143, 0.94);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.camera-modal__meta h2 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.camera-modal__mode-badge {
  min-width: 94px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.camera-modal__stage {
  position: relative;
  min-height: 0;
  padding: 0 1rem;
}

.camera-modal__viewport {
  position: relative;
  width: min(100%, 920px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(212, 190, 154, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(19, 40, 36, 0.96), rgba(6, 14, 12, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 70px rgba(0, 0, 0, 0.28);
}

.camera-modal__viewport::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  pointer-events: none;
  z-index: 5;
}

.camera-modal__video,
.camera-modal__snapshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 1;
}

.camera-modal__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background:
    linear-gradient(180deg, rgba(6, 14, 12, 0.3), transparent 24%),
    linear-gradient(0deg, rgba(6, 14, 12, 0.54), transparent 26%);
}

.camera-modal__crop-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  touch-action: none;
}

.camera-modal__crop-mask {
  position: absolute;
  background: rgba(4, 9, 8, 0.58);
  pointer-events: none;
}

.camera-modal__crop-box {
  position: absolute;
  border: 2px solid rgba(228, 210, 180, 0.96);
  border-radius: 24px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    transparent;
  cursor: move;
  touch-action: none;
}

.camera-modal__crop-box::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  pointer-events: none;
}

.camera-modal__crop-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(6, 14, 12, 0.72);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.24);
}

.camera-modal__crop-handle--n,
.camera-modal__crop-handle--s {
  left: 50%;
  transform: translateX(-50%);
}

.camera-modal__crop-handle--e,
.camera-modal__crop-handle--w {
  top: 50%;
  transform: translateY(-50%);
}

.camera-modal__crop-handle--n,
.camera-modal__crop-handle--ne,
.camera-modal__crop-handle--nw {
  top: -9px;
}

.camera-modal__crop-handle--s,
.camera-modal__crop-handle--se,
.camera-modal__crop-handle--sw {
  bottom: -9px;
}

.camera-modal__crop-handle--e,
.camera-modal__crop-handle--ne,
.camera-modal__crop-handle--se {
  right: -9px;
}

.camera-modal__crop-handle--w,
.camera-modal__crop-handle--nw,
.camera-modal__crop-handle--sw {
  left: -9px;
}

.camera-modal__crop-handle--n,
.camera-modal__crop-handle--s {
  cursor: ns-resize;
}

.camera-modal__crop-handle--e,
.camera-modal__crop-handle--w {
  cursor: ew-resize;
}

.camera-modal__crop-handle--ne,
.camera-modal__crop-handle--sw {
  cursor: nesw-resize;
}

.camera-modal__crop-handle--nw,
.camera-modal__crop-handle--se {
  cursor: nwse-resize;
}

.camera-modal__frame-guides {
  position: absolute;
  inset: 12% 10%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.camera-modal__frame-guides::before,
.camera-modal__frame-guides::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.camera-modal__frame-guides::before {
  left: 33.33%;
}

.camera-modal__frame-guides::after {
  right: 33.33%;
}

.camera-modal__status-chip {
  position: absolute;
  top: 1.25rem;
  right: 50%;
  transform: translateX(50%);
  max-width: min(90%, 46ch);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  background: rgba(6, 14, 12, 0.34);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.camera-modal__status-chip[hidden] {
  opacity: 0;
  transform: translateX(50%) translateY(-6px);
}

.camera-modal__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding: 0.9rem 1.2rem 1.35rem;
}

.camera-controls__side,
.camera-controls__center {
  display: flex;
  align-items: end;
}

.camera-controls__side {
  min-width: 118px;
}

.camera-controls__side--left {
  justify-content: flex-start;
}

.camera-controls__side--right {
  justify-content: flex-end;
}

.camera-controls__center {
  justify-content: center;
}

.camera-control {
  min-width: 88px;
  min-height: 88px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.camera-control--primary {
  color: var(--color-ink);
  background: linear-gradient(135deg, rgba(212, 190, 154, 0.96), rgba(184, 154, 111, 0.96));
}

.camera-shutter {
  width: 108px;
  height: 108px;
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
}

.camera-shutter__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  z-index: 2;
}

.camera-shutter__label[hidden] {
  display: none;
}

.camera-shutter__outer,
.camera-shutter__inner {
  border-radius: 50%;
  display: block;
}

.camera-shutter__outer {
  width: 108px;
  height: 108px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

.camera-shutter__inner {
  position: absolute;
  width: 82px;
  height: 82px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(228, 226, 220, 0.96));
}

.camera-shutter:hover .camera-shutter__inner,
.camera-shutter:focus-visible .camera-shutter__inner {
  transform: scale(0.96);
}

.camera-shutter:active .camera-shutter__inner {
  transform: scale(0.92);
}

.camera-shutter.is-crop-action .camera-shutter__outer {
  border-color: rgba(212, 190, 154, 0.96);
  background: linear-gradient(135deg, rgba(212, 190, 154, 0.96), rgba(184, 154, 111, 0.96));
}

.camera-shutter.is-crop-action .camera-shutter__inner {
  width: 88px;
  height: 88px;
  background: rgba(255, 248, 240, 0.96);
}

.camera-shutter.is-crop-action.is-crop-confirm .camera-shutter__outer {
  border-color: rgba(109, 198, 157, 0.98);
  background: linear-gradient(135deg, rgba(112, 197, 157, 0.94), rgba(55, 143, 110, 0.96));
}

.camera-modal.is-loading .camera-modal__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(6, 14, 12, 0.18);
}

.camera-modal.has-error .camera-modal__overlay,
.camera-modal.has-error .camera-modal__frame-guides,
.camera-modal.has-error .camera-shutter {
  opacity: 0.32;
}

.camera-modal.has-error .camera-modal__status-chip {
  display: none;
}

.camera-modal.has-capture .camera-modal__mode-badge {
  background: rgba(207, 183, 143, 0.2);
}

.camera-modal.has-capture .camera-modal__status-chip {
  background: rgba(207, 183, 143, 0.18);
}

.camera-modal.is-cropping .camera-modal__overlay {
  background: linear-gradient(180deg, rgba(6, 14, 12, 0.12), rgba(6, 14, 12, 0.12));
}

.camera-modal.is-cropping .camera-modal__frame-guides {
  opacity: 0.2;
}

.camera-modal.is-ready .camera-modal__mode-badge {
  background: rgba(22, 130, 96, 0.24);
}

.product-form {
  display: grid;
  gap: 1.65rem;
  padding-bottom: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.field {
  display: grid;
  gap: 0.6rem;
}

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

.factory-phone-list {
  display: grid;
  gap: 0.7rem;
}

.factory-phone-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.factory-phone-remove {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
  font-size: 1.5rem;
}

.factory-phone-add {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--color-forest);
  font-weight: 800;
}

.field label {
  font-weight: 800;
  color: var(--color-forest);
  font-size: 1.02rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 58px;
  padding: 0.95rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(22, 48, 44, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(22, 48, 44, 0.04);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.field input::placeholder {
  color: rgba(9, 21, 17, 0.44);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--color-forest);
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(22, 48, 44, 0.72) 50%),
    linear-gradient(135deg, rgba(22, 48, 44, 0.72) 50%, transparent 50%);
  background-position:
    calc(1rem + 6px) calc(50% - 3px),
    1rem calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-left: 2.8rem;
}

.status-field {
  width: 100%;
}

.status-field > select[hidden] {
  display: none;
}

.status-input[hidden] {
  display: none;
}

.purchase-price-field {
  position: relative;
}

.purchase-price-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 58px;
  border-radius: 20px;
  border: 1px solid rgba(22, 48, 44, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(22, 48, 44, 0.04);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.purchase-price-field.is-currency-open .purchase-price-input,
.purchase-price-input:focus-within {
  border-color: rgba(163, 133, 95, 0.48);
  box-shadow:
    0 0 0 4px rgba(163, 133, 95, 0.12),
    0 16px 28px rgba(163, 133, 95, 0.08);
  transform: translateY(-1px);
}

.purchase-price-input__currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 58px;
  padding-inline: 1rem;
  border: 0;
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.96), rgba(9, 21, 17, 0.98));
  cursor: pointer;
  transition:
    filter var(--transition),
    transform var(--transition);
}

.purchase-price-input__currency:hover {
  filter: brightness(1.05);
}

.purchase-price-input__currency:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.purchase-price-input input {
  border: 0;
  border-radius: 0;
  min-height: 58px;
  box-shadow: none;
}

.currency-menu[hidden] {
  display: none;
}

.currency-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  inset-inline: 0;
  z-index: 18;
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 246, 241, 0.98)),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(22, 48, 44, 0.1);
  box-shadow: 0 24px 48px rgba(9, 21, 17, 0.14);
}

.currency-menu__quick,
.currency-menu__results {
  display: grid;
  gap: 0.45rem;
}

.currency-menu__custom-row {
  display: grid;
  gap: 0.45rem;
}

.currency-menu__custom-row[hidden],
.currency-menu__search[hidden] {
  display: none;
}

.currency-menu__option,
.currency-menu__result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(22, 48, 44, 0.08);
  background: rgba(22, 48, 44, 0.04);
  color: var(--color-forest);
  font-weight: 700;
  text-align: right;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.currency-menu__option strong,
.currency-menu__result strong {
  color: rgba(9, 21, 17, 0.58);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}

.currency-menu__option:hover,
.currency-menu__option:focus-visible,
.currency-menu__result:hover,
.currency-menu__result:focus-visible,
.currency-menu__option.is-active,
.currency-menu__result.is-active {
  background: rgba(163, 133, 95, 0.12);
  border-color: rgba(163, 133, 95, 0.2);
  transform: translateY(-1px);
}

.currency-menu__option--add {
  background:
    linear-gradient(180deg, rgba(22, 48, 44, 0.06), rgba(22, 48, 44, 0.045)),
    rgba(255, 255, 255, 0.8);
}

.currency-menu__custom-entry {
  position: relative;
}

.currency-menu__option--custom {
  padding-inline-start: 3.4rem;
}

.currency-menu__custom-clear {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(22, 48, 44, 0.12);
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.currency-menu__custom-clear:hover,
.currency-menu__custom-clear:focus-visible {
  background: rgba(157, 53, 72, 0.12);
  color: var(--color-danger);
}

.currency-menu__search {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(163, 133, 95, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(247, 246, 242, 0.98), rgba(242, 239, 231, 0.98));
  border: 1px solid rgba(163, 133, 95, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.currency-menu__search-input {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.92);
}

.currency-menu__results {
  max-height: 220px;
  overflow: auto;
  padding-inline-end: 0.15rem;
}

.currency-menu__empty {
  margin: 0;
  padding: 0.75rem 0.4rem 0.2rem;
  color: rgba(9, 21, 17, 0.56);
  font-weight: 700;
  text-align: center;
}

.notes-textarea {
  min-height: 126px;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(22, 48, 44, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(22, 48, 44, 0.03);
  color: var(--color-ink);
  line-height: 1.9;
  resize: vertical;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.notes-textarea::placeholder {
  color: rgba(9, 21, 17, 0.42);
}

.notes-textarea:focus {
  outline: none;
  border-color: rgba(163, 133, 95, 0.42);
  box-shadow:
    0 0 0 4px rgba(163, 133, 95, 0.1),
    0 16px 28px rgba(163, 133, 95, 0.07);
  transform: translateY(-1px);
}

.product-card__notes {
  margin: 0;
  padding: 0.72rem 0.85rem;
  border-radius: 16px;
  background: rgba(22, 48, 44, 0.045);
  color: rgba(9, 21, 17, 0.76);
  line-height: 1.8;
  font-size: 0.94rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border-radius: 20px;
  border: 1px solid rgba(22, 48, 44, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(22, 48, 44, 0.04);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.status-input__prefix {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding-inline: 1.15rem;
  border: 0;
  color: var(--color-white);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.96), rgba(9, 21, 17, 0.98));
  cursor: pointer;
  transition:
    filter var(--transition),
    transform var(--transition);
}

.status-input__prefix:hover {
  filter: brightness(1.05);
}

.status-input__prefix:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.status-input input {
  border: 0;
  border-radius: 0;
  min-height: 58px;
  box-shadow: none;
}

.status-input:focus-within {
  border-color: rgba(163, 133, 95, 0.48);
  box-shadow:
    0 0 0 4px rgba(163, 133, 95, 0.12),
    0 16px 28px rgba(163, 133, 95, 0.08);
  transform: translateY(-1px);
}

.field input:focus,
.field select:focus {
  border-color: rgba(163, 133, 95, 0.48);
  box-shadow:
    0 0 0 4px rgba(163, 133, 95, 0.12),
    0 16px 28px rgba(163, 133, 95, 0.08);
  transform: translateY(-1px);
}

.field small {
  color: rgba(9, 21, 17, 0.58);
}

.field-error {
  color: var(--color-danger) !important;
  font-weight: 700;
}

.serial-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 58px;
  border-radius: 20px;
  border: 1px solid rgba(22, 48, 44, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(22, 48, 44, 0.04);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.serial-input__prefix {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding-inline: 1.15rem;
  color: var(--color-white);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.96), rgba(9, 21, 17, 0.98));
}

.serial-input input {
  border: 0;
  border-radius: 0;
  text-align: center;
  min-height: 58px;
  box-shadow: none;
}

.serial-input:focus-within {
  border-color: rgba(163, 133, 95, 0.48);
  box-shadow:
    0 0 0 4px rgba(163, 133, 95, 0.12),
    0 16px 28px rgba(163, 133, 95, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .export-products-modal__dialog {
    width: min(calc(100% - 1rem), 760px);
    padding: 1.2rem;
  }

  .export-products-modal__actions {
    bottom: -1.2rem;
    margin: 0 -1.2rem -1.2rem;
    padding-inline: 1.2rem;
  }

  .export-products-modal__grid,
  .export-products-modal__grid--factory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .purchase-price-input__currency {
    min-width: 76px;
    padding-inline: 0.8rem;
  }

  .currency-menu {
    padding: 0.65rem;
    border-radius: 18px;
  }

  .currency-menu__option,
  .currency-menu__result {
    gap: 0.75rem;
    padding: 0.76rem 0.8rem;
  }

  .export-products-modal__grid,
  .export-products-modal__grid--factory,
  .export-products-modal__grid--dimensions {
    grid-template-columns: 1fr;
  }

  .export-products-modal__section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .export-sort-field,
  .export-products-modal__sort-options {
    width: 100%;
  }

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

  .health-modal__grid {
    grid-template-columns: 1fr;
  }
}

.preview-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(22, 48, 44, 0.05);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.preview-card--full {
  grid-column: 1 / -1;
}

.preview-card__label {
  margin: 0;
  font-weight: 800;
  color: var(--color-forest);
}

.preview-card__frame {
  position: relative;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(22, 48, 44, 0.12);
  border: 1px dashed rgba(22, 48, 44, 0.1);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    background var(--transition),
    opacity var(--transition);
}

.preview-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card__frame.is-upload-empty {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 238, 231, 0.92)),
    rgba(22, 48, 44, 0.04);
}

.preview-card__frame.is-drag-over {
  border-color: rgba(163, 133, 95, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(244, 237, 226, 0.96)),
    rgba(22, 48, 44, 0.08);
  box-shadow: inset 0 0 0 2px rgba(163, 133, 95, 0.2), 0 24px 52px rgba(22, 48, 44, 0.12);
  transform: translateY(-2px);
}

.preview-card__frame.is-processing {
  opacity: 0.72;
}

.preview-card__frame.is-upload-empty img {
  display: none;
}

.preview-card__frame.has-image .preview-card__upload {
  display: none;
}

.preview-card__remove {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(9, 21, 17, 0.78);
  box-shadow: 0 12px 24px rgba(9, 21, 17, 0.22);
}

.preview-card__remove[hidden] {
  display: none;
}

.preview-card__remove svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
}

.preview-card__remove:hover,
.preview-card__remove:focus-visible {
  background: rgba(157, 53, 72, 0.9);
}

.preview-card__upload {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
  color: var(--color-forest);
}

.preview-card__upload p,
.preview-card__upload span {
  margin: 0;
  max-width: 38ch;
}

.preview-card__upload p {
  font-weight: 800;
  font-size: 1.15rem;
}

.preview-card__upload span {
  color: rgba(9, 21, 17, 0.62);
}

.preview-card__upload-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preview-card__upload-button {
  min-height: 50px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(22, 48, 44, 0.96), rgba(9, 21, 17, 0.98));
}

.preview-card__upload-button--camera {
  color: var(--color-ink);
  background: linear-gradient(135deg, rgba(212, 190, 154, 0.94), rgba(184, 154, 111, 0.96));
}

.preview-card__hint {
  color: rgba(9, 21, 17, 0.52);
  font-size: 0.92rem;
}

.preview-card__input {
  display: none;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  z-index: 95;
  display: grid;
  gap: 0.7rem;
  width: min(22rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.toast-stack.is-visible {
  opacity: 1;
  visibility: visible;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 246, 241, 0.9), rgba(240, 234, 224, 0.88)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 40px rgba(9, 21, 17, 0.18);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  animation: toast-in 220ms ease;
  pointer-events: auto;
}

.toast--warning {
  border-color: rgba(157, 53, 72, 0.2);
  box-shadow: 0 18px 40px rgba(157, 53, 72, 0.14);
}

.toast--info {
  border-color: rgba(24, 125, 98, 0.18);
}

.toast__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #127a56;
  font-weight: 900;
  font-size: 0.95rem;
  background: rgba(18, 122, 86, 0.12);
}

.toast--warning .toast__icon {
  color: var(--color-danger);
  background: rgba(157, 53, 72, 0.12);
}

.toast__content {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.toast__close {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-forest);
  font-size: 1rem;
  line-height: 1;
  background: rgba(22, 48, 44, 0.08);
}

.toast__close:hover,
.toast__close:focus-visible {
  background: rgba(22, 48, 44, 0.14);
}

.toast__title,
.toast__message {
  margin: 0;
}

.toast__title {
  color: var(--color-forest);
  font-weight: 800;
  font-size: 0.98rem;
}

.toast__message {
  color: rgba(9, 21, 17, 0.66);
  line-height: 1.55;
  font-size: 0.9rem;
}

.toast__details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
  color: rgba(9, 21, 17, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}

.toast__details li {
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: sticky;
  bottom: -1.5rem;
  z-index: 2;
  margin: 0 -1.5rem -1.5rem;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(22, 48, 44, 0.08);
  background: linear-gradient(180deg, rgba(247, 246, 242, 0.72), rgba(247, 246, 242, 0.96) 28%, rgba(247, 246, 242, 1));
  backdrop-filter: blur(10px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(18px, -6px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
/* END: Modal */

html.auth-pending [data-auth-protected] {
  visibility: hidden;
}

body.auth-is-locked [data-auth-protected] {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 17, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: rgba(247, 246, 242, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.auth-gate__logo {
  width: min(190px, 52vw);
  margin: 0 auto 1rem;
}

.auth-gate__dialog h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.auth-gate__meta {
  margin: -0.25rem 0 0.4rem;
  text-align: center;
  color: rgba(9, 21, 17, 0.64);
  line-height: 1.8;
}

.auth-gate__form {
  display: grid;
  gap: 1rem;
}

.auth-gate__field {
  display: grid;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--color-ink);
}

.password-field {
  position: relative;
}

.password-field input,
.auth-gate__field input {
  min-height: 54px;
  width: 100%;
  padding: 0.95rem 3.25rem 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(163, 133, 95, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-ink);
  outline: none;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  cursor: pointer;
}

.auth-gate__error {
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(157, 53, 72, 0.08);
  color: var(--color-danger);
  font-weight: 700;
  line-height: 1.7;
}

.auth-gate__countdown {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(181, 116, 15, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 229, 0.98));
  border: 1px solid rgba(181, 116, 15, 0.16);
  color: #8b5710;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.01em;
}

.app-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.app-page__hero {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.app-page__hero p:last-child {
  margin: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.settings-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.settings-card:hover,
.settings-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.settings-card__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-forest);
  background: rgba(163, 133, 95, 0.14);
}

.settings-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.settings-card strong {
  font-size: 1.4rem;
  color: var(--color-ink);
}

.settings-card--backup {
  background:
    radial-gradient(circle at top right, rgba(163, 133, 95, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 240, 232, 0.94));
}

.settings-card--users {
  background:
    radial-gradient(circle at top left, rgba(12, 101, 117, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 244, 247, 0.96));
}

.settings-card--disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none !important;
}

.settings-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
  font-size: 0.9rem;
  font-weight: 800;
}

.settings-card--health {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: right;
  align-items: start;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(24, 125, 98, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 244, 241, 0.94));
}

.settings-card--logout {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: right;
  align-items: start;
  cursor: pointer;
  background:
    radial-gradient(circle at top right, rgba(157, 53, 72, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 240, 242, 0.96));
}

.settings-card__icon--logout {
  background: rgba(157, 53, 72, 0.12);
  color: #8a3040;
}

.settings-card__icon--health {
  background: rgba(24, 125, 98, 0.14);
  color: #0f6a52;
}

.settings-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
}

.settings-health-badge__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: status-pulse 1.8s infinite;
}

.settings-health-badge.is-connected {
  background: rgba(19, 137, 94, 0.12);
  color: #127a56;
}

.settings-health-badge.is-slow {
  background: rgba(181, 116, 15, 0.14);
  color: #a05d0a;
}

.settings-health-badge.is-error {
  background: rgba(157, 53, 72, 0.12);
  color: var(--color-danger);
}

.settings-health-badge.is-pending {
  background: rgba(22, 48, 44, 0.08);
  color: rgba(22, 48, 44, 0.74);
}

.settings-health-meta {
  margin: 0;
  color: rgba(9, 21, 17, 0.68);
  line-height: 1.8;
}

.health-modal[hidden] {
  display: none;
}

.health-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.health-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 17, 0.62);
  backdrop-filter: blur(6px);
}

.health-modal__dialog {
  position: relative;
  width: min(calc(100% - 1.4rem), 760px);
  margin: 4vh auto;
  padding: 1.6rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(24, 125, 98, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 245, 0.98));
  border: 1px solid rgba(163, 133, 95, 0.16);
  box-shadow: 0 28px 80px rgba(9, 21, 17, 0.24);
}

.health-modal__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 0;
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
  font-size: 1.4rem;
}

.health-modal__header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.health-modal__header h2 {
  margin: 0;
}

.health-modal__header p:last-child {
  margin: 0;
  color: rgba(9, 21, 17, 0.7);
  line-height: 1.8;
}

.health-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.health-metric {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.health-metric span {
  color: rgba(9, 21, 17, 0.62);
  font-weight: 700;
}

.health-metric strong {
  color: var(--color-ink);
  line-height: 1.7;
}

.health-metric--wide {
  grid-column: 1 / -1;
}

.health-modal__footer {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.sync-alert[hidden] {
  display: none;
}

.sync-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(163, 133, 95, 0.18);
  background:
    radial-gradient(circle at top left, rgba(163, 133, 95, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 242, 235, 0.96));
}

.sync-alert[data-state="error"] {
  border-color: rgba(157, 53, 72, 0.2);
  background:
    radial-gradient(circle at top left, rgba(157, 53, 72, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 240, 242, 0.98));
}

.sync-alert[data-state="syncing"] {
  border-color: rgba(181, 116, 15, 0.18);
}

.sync-alert__status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sync-alert__dot {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b5740f;
  box-shadow: 0 0 0 0 rgba(181, 116, 15, 0.42);
  animation: status-pulse 1.8s infinite;
}

.sync-alert[data-state="error"] .sync-alert__dot {
  background: var(--color-danger);
  box-shadow: 0 0 0 0 rgba(157, 53, 72, 0.34);
}

.sync-alert__copy {
  display: grid;
  gap: 0.2rem;
}

.sync-alert__copy strong,
.sync-alert__copy p {
  margin: 0;
}

.sync-alert__copy p {
  color: rgba(9, 21, 17, 0.7);
  line-height: 1.7;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 48, 44, 0.3);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(22, 48, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 48, 44, 0);
  }
}

.security-layout {
  display: grid;
  gap: 1.5rem;
}

.security-hero {
  max-width: 620px;
}

.security-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.users-page-layout {
  padding-bottom: 6rem;
}

.users-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.users-summary-pill {
  display: inline-grid;
  gap: 0.25rem;
  min-width: 160px;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(163, 133, 95, 0.16);
  box-shadow: var(--shadow-card);
}

.users-summary-pill span {
  color: rgba(9, 21, 17, 0.6);
}

.users-summary-pill strong {
  color: var(--color-forest);
  font-size: 1.3rem;
}

.users-current-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(24, 125, 98, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 242, 0.96));
  border: 1px solid rgba(24, 125, 98, 0.14);
  box-shadow: var(--shadow-card);
}

.users-current-card__head,
.users-current-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.users-current-card__head h2 {
  margin: 0.15rem 0 0;
  color: var(--color-ink);
}

.users-current-card__badge,
.user-card__current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(24, 125, 98, 0.12);
  color: #127a56;
  font-size: 0.9rem;
  font-weight: 800;
}

.users-current-card__meta span {
  color: rgba(9, 21, 17, 0.68);
  font-weight: 700;
}

.users-current-card__permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.users-current-card__permission {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(163, 133, 95, 0.14);
  color: var(--color-forest);
  font-weight: 800;
  font-size: 0.92rem;
}

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

.user-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(163, 133, 95, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 242, 236, 0.96));
  border: 1px solid rgba(163, 133, 95, 0.16);
  box-shadow: var(--shadow-card);
}

.user-card.is-inactive {
  opacity: 0.72;
}

.user-card.is-current-user {
  border-color: rgba(24, 125, 98, 0.22);
  background:
    radial-gradient(circle at top right, rgba(24, 125, 98, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 245, 242, 0.97));
}

.user-card.is-clickable {
  cursor: pointer;
}

.user-card__head,
.user-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.user-card__head strong {
  font-size: 1.35rem;
  color: var(--color-ink);
}

.user-card__title-group {
  display: grid;
  gap: 0.45rem;
}

.user-card__menu-wrap {
  position: relative;
}

.user-card__menu-trigger,
.user-card__icon-action {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(22, 48, 44, 0.06);
  color: var(--color-forest);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.user-card__menu-trigger svg,
.user-card__icon-action svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.user-card__menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 14.25rem;
  display: grid;
  gap: 0.22rem;
  padding: 0.45rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 239, 231, 0.97)),
    rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(22, 48, 44, 0.12);
  box-shadow: 0 24px 42px rgba(9, 21, 17, 0.14);
  z-index: 90;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.user-card__menu[hidden] {
  display: none;
}

.user-card__menu-item {
  display: grid;
  grid-template-columns: 1rem 1fr;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 15px;
  text-align: right;
  color: var(--color-forest);
  font-weight: 800;
  line-height: 1.35;
}

.user-card__menu-item:hover,
.user-card__menu-item:focus-visible {
  background: rgba(22, 48, 44, 0.06);
}

.user-card__menu-item svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.user-card__menu-item span:last-child {
  min-width: 0;
  white-space: normal;
}

.user-card__menu-item.is-danger {
  color: #8a3040;
}

.user-card__menu[data-side="top"] {
  transform-origin: bottom right;
}

.user-card__menu[data-side="bottom"] {
  transform-origin: top right;
}

.user-card__menu[data-side="sheet"] {
  border-radius: 22px;
  padding: 0.55rem;
}

.user-card__role,
.user-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.user-card__role {
  background: rgba(22, 48, 44, 0.08);
  color: var(--color-forest);
}

.user-card__badge {
  background: rgba(12, 101, 117, 0.1);
  color: #0b6b71;
}

.user-card__badge.is-inactive {
  background: rgba(157, 53, 72, 0.12);
  color: var(--color-danger);
}

.user-card__meta span {
  color: rgba(9, 21, 17, 0.64);
}

.user-card__meta strong {
  color: var(--color-forest);
}

.users-modal__dialog {
  display: flex;
  flex-direction: column;
  max-width: 920px;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.users-form {
  flex: 1 1 auto;
  min-height: 0;
  gap: 1.25rem;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.users-permissions-panel,
.users-factory-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(22, 48, 44, 0.04);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.users-permissions-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.users-permissions-grid,
.users-factory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.users-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-top: 0.2rem;
  padding-bottom: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.94));
}

.users-form__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 0.2rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 249, 0.1), rgba(248, 250, 249, 0.98) 32%);
}

.users-permission-chip,
.users-factory-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(163, 133, 95, 0.14);
}

.users-permission-chip input,
.users-factory-chip input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-forest);
}

.password-field--generator input {
  padding-left: 5.4rem;
}

.password-field__toggle--generate {
  left: 3.4rem;
  background: rgba(12, 101, 117, 0.09);
  color: #0b6b71;
}

.users-password-current,
.users-share-sheet,
.users-danger-dialog__note {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(22, 48, 44, 0.04);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.users-password-current__head,
.users-password-current__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.users-password-current__value {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-ink);
  font-size: 1rem;
  direction: ltr;
  text-align: left;
}

.users-password-current__hint {
  margin: 0;
  color: rgba(9, 21, 17, 0.58);
}

.users-share-sheet__message {
  min-height: 9rem;
  resize: none;
  direction: rtl;
}

.users-danger-dialog .health-modal__header {
  text-align: right;
}

.security-command-card {
  width: 100%;
  appearance: none;
  display: grid;
  gap: 0.7rem;
  padding: 1.8rem;
  text-align: right;
  border-radius: 30px;
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.security-command-card:hover,
.security-command-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.security-command-card--username {
  background:
    radial-gradient(circle at top right, rgba(18, 122, 86, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 242, 0.96));
}

.security-command-card--password {
  background:
    radial-gradient(circle at top left, rgba(163, 133, 95, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 233, 0.96));
}

.security-command-card__icon {
  width: 3.3rem;
  height: 3.3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--color-forest);
  box-shadow: inset 0 0 0 1px rgba(22, 48, 44, 0.08);
}

.security-command-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.security-command-card__eyebrow {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(9, 21, 17, 0.46);
}

.security-command-card strong {
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  color: var(--color-ink);
}

.security-command-card__value {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  color: var(--color-forest);
  word-break: break-word;
}

.security-command-card__hint {
  color: rgba(9, 21, 17, 0.64);
  line-height: 1.7;
}

.backup-page {
  align-items: stretch;
}

.backup-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

.backup-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.08);
  border: 1px solid rgba(22, 48, 44, 0.12);
}

.backup-status-badge[data-tone="connected"] {
  color: #0d5b46;
  background: rgba(13, 91, 70, 0.08);
  border-color: rgba(13, 91, 70, 0.16);
}

.backup-status-badge[data-tone="degraded"] {
  color: #8a5b10;
  background: rgba(163, 133, 95, 0.14);
  border-color: rgba(163, 133, 95, 0.22);
}

.backup-layout {
  display: grid;
  gap: 1.2rem;
}

.backup-panel {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(163, 133, 95, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 239, 231, 0.9));
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
}

.backup-panel--primary {
  background:
    radial-gradient(circle at top right, rgba(22, 48, 44, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 234, 0.96));
}

.backup-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.backup-panel__head h2,
.legal-shell h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.backup-action-button {
  min-width: 148px;
}

.backup-summary-grid,
.backup-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.backup-summary-card,
.backup-kpi {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.backup-summary-card span,
.backup-kpi span {
  font-size: 0.88rem;
  color: rgba(9, 21, 17, 0.58);
}

.backup-summary-card strong,
.backup-kpi strong {
  color: var(--color-forest);
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.backup-summary-card strong[data-has-error="true"] {
  color: var(--color-danger);
}

.backup-diagnostics {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(9, 21, 17, 0.04);
  border: 1px solid rgba(22, 48, 44, 0.1);
}

.backup-diagnostics__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.backup-diagnostics__head strong {
  color: var(--color-forest);
  font-size: 0.96rem;
}

.backup-diagnostics__message {
  margin: 0;
  color: rgba(9, 21, 17, 0.72);
}

.backup-diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.backup-diagnostics__item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.backup-diagnostics__item span {
  font-size: 0.84rem;
  color: rgba(9, 21, 17, 0.56);
}

.backup-diagnostics__item strong {
  color: var(--color-forest);
}

.backup-consent-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(22, 48, 44, 0.05);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.backup-consent-note p {
  margin: 0;
}

.backup-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
}

.backup-legal-links a {
  color: var(--color-forest);
  font-weight: 800;
}

.backup-history-list {
  display: grid;
  gap: 0.85rem;
}

.backup-history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 48, 44, 0.08);
}

.backup-history-card__title,
.backup-history-empty {
  margin: 0;
}

.backup-history-card__meta {
  margin: 0.25rem 0 0;
  color: rgba(9, 21, 17, 0.56);
  font-size: 0.9rem;
}

.backup-history-card__action {
  min-width: 118px;
}

.backup-review-modal .health-modal__dialog {
  max-width: 860px;
}

.backup-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.backup-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(22, 48, 44, 0.06);
}

.backup-mode-switch__button {
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  color: var(--color-forest);
  font-weight: 900;
  background: transparent;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    transform var(--transition);
}

.backup-mode-switch__button:hover,
.backup-mode-switch__button:focus-visible {
  transform: translateY(-1px);
}

.backup-mode-switch__button.is-active {
  color: var(--color-ink);
  background:
    linear-gradient(135deg, rgba(244, 238, 227, 0.96), rgba(230, 216, 190, 0.84)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(163, 133, 95, 0.14);
}

.legal-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.legal-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
}

.security-form-shell {
  padding: 1.7rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(163, 133, 95, 0.18);
  box-shadow: var(--shadow-card);
}

.security-modal__dialog {
  max-width: 760px;
}

.security-modal__dialog--compact {
  max-width: 520px;
}

.security-modal__form {
  display: grid;
  gap: 1.1rem;
}

.security-confirm__actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.security-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-rule {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  background: rgba(22, 48, 44, 0.04);
  color: var(--color-body);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
}

.security-rule::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(163, 133, 95, 0.34);
  background: transparent;
}

.security-rule.is-valid {
  color: var(--color-forest);
  background: rgba(22, 48, 44, 0.075);
}

.security-rule.is-valid::before {
  background: var(--color-forest);
  border-color: var(--color-forest);
  box-shadow: inset 0 0 0 3px rgba(247, 246, 242, 0.95);
}

/* START: Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .form-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-command-grid {
    grid-template-columns: 1fr;
  }

  .users-grid,
  .users-permissions-grid,
  .users-factory-list {
    grid-template-columns: 1fr;
  }

  .search-results-section__grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-wrap,
  .hero-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-self: center;
  }

  .toolbar-shell,
  .dashboard-tools,
  .results-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .toolbar-actions > * {
    flex: 1;
  }

  .inventory-filters {
    width: 100%;
    flex-wrap: wrap;
    margin-inline-start: 0;
    gap: 0.7rem;
  }

  .inventory-tools-cluster {
    width: 100%;
    flex-wrap: wrap;
    margin-inline-start: 0;
    gap: 0.7rem;
  }

  .inventory-action-group {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .security-rules {
    grid-template-columns: 1fr;
  }

  .security-confirm__actions,
  .health-modal__footer {
    flex-direction: column;
  }

  .inventory-filter {
    flex: 1 1 10.25rem;
    min-width: 0;
  }

  .inventory-filter__trigger {
    min-height: 3.15rem;
    padding-inline: 2.25rem 1rem;
  }

  .results-bar__controls {
    justify-content: space-between;
  }

  .search-results-section__grid--factories,
  .search-results-section__grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-card__menu-trigger {
    top: 0.85rem;
    left: 0.85rem;
    width: 2.55rem;
    height: 2.55rem;
  }

  .factory-card__menu {
    top: 3.8rem;
    left: 0.85rem;
    min-width: 11.75rem;
  }

  .floating-add-button {
    left: max(1rem, calc(env(safe-area-inset-left) + 1rem));
    bottom: max(1rem, calc(env(safe-area-inset-bottom) + 1rem));
    width: 4rem;
    height: 4rem;
  }

  .floating-add-button__icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .floating-add-button__icon::before {
    width: 1.35rem;
  }

  .floating-add-button__icon::after {
    height: 1.35rem;
  }

  .search-field {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 1.4rem 0 2.2rem;
  }

  .hero-copy {
    justify-self: stretch;
  }

  .hero-actions {
    gap: 0.85rem;
  }

  .field--wide {
    grid-column: auto;
  }
}

@media (max-width: 992px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.35rem 0 0.75rem;
  }

  .brand {
    flex-shrink: 0;
    justify-self: auto;
  }

  .brand img {
    width: clamp(104px, 28vw, 132px);
  }

  .nav-panel {
    min-width: 0;
    flex-shrink: 0;
  }

  .toolbar-shell {
    width: auto;
    padding: 0;
    gap: 0.55rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .toolbar-actions {
    width: auto;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .toolbar-actions > * {
    flex: none;
  }

  .mobile-search-toggle {
    display: inline-flex;
  }

  .search-field {
    display: none;
  }

  .toolbar-actions .nav-action,
  .toolbar-actions .mobile-search-toggle {
    position: relative;
    min-width: 2.9rem;
    min-height: 2.9rem;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .toolbar-actions .nav-action__icon {
    width: 1rem;
    height: 1rem;
  }

  .toolbar-actions .nav-action__count {
    position: absolute;
    top: -0.18rem;
    right: -0.18rem;
    min-width: 1.22rem;
    height: 1.22rem;
    padding-inline: 0.2rem;
    font-size: 0.66rem;
    box-shadow: 0 6px 14px rgba(9, 21, 17, 0.16);
  }

  .toolbar-actions .nav-action--primary .nav-action__label {
    display: none;
  }

  .toolbar-actions .nav-action--primary {
    color: var(--color-ink);
  }

  .site-header.is-mobile-search-open .brand,
  .site-header.is-mobile-search-open .toolbar-actions {
    display: none;
  }

  .site-header.is-mobile-search-open .nav-panel {
    flex: 1;
  }

  .site-header.is-mobile-search-open .toolbar-shell {
    width: 100%;
  }

  .site-header.is-mobile-search-open .search-field {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 0.82rem 0.95rem;
    gap: 0.7rem;
    box-shadow: 0 12px 24px rgba(79, 70, 54, 0.08);
  }

  .site-header.is-mobile-search-open .search-field__close {
    display: inline-flex;
    order: 3;
  }

  .site-header.is-mobile-search-open .search-field__icon {
    display: none;
  }

  .site-header.is-mobile-search-open .search-field input {
    order: 1;
  }

  .section {
    padding: 4.5rem 0;
  }

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

  .users-grid,
  .users-permissions-grid,
  .users-factory-list {
    grid-template-columns: 1fr;
  }

  .users-modal__dialog {
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .users-form {
    padding-right: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .modal__dialog {
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .modal__header h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .form-actions,
  .confirm-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions {
    bottom: -1rem;
    margin: 0 -1rem -1rem;
    padding-inline: 1rem;
  }

  .export-products-modal__summary-row {
    flex-direction: column;
    align-items: stretch;
  }

  .export-products-modal__select-all {
    width: 100%;
  }

  .inventory-dropdown-menu,
  .inventory-filter__menu {
    max-width: calc(100vw - 24px);
  }

  .camera-modal__dialog {
    height: 100dvh;
  }

  .camera-modal__topbar {
    padding: 1rem 0.9rem 0.65rem;
  }

  .camera-modal__meta h2 {
    font-size: 1rem;
  }

  .camera-modal__mode-badge {
    min-width: auto;
    padding-inline: 0.75rem;
    font-size: 0.8rem;
  }

  .camera-modal__stage {
    padding: 0 0.85rem;
  }

  .camera-modal__viewport,
  .camera-modal__video,
  .camera-modal__snapshot {
    border-radius: 26px;
  }

  .camera-modal__frame-guides {
    inset: 10% 8%;
  }

  .camera-modal__status-chip {
    top: 1rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.6rem 0.85rem;
    font-size: 0.86rem;
  }

  .camera-modal__controls {
    gap: 0.75rem;
    padding: 0.8rem 0.9rem 1rem;
  }

  .camera-controls__side {
    min-width: 86px;
  }

  .camera-control {
    min-width: 78px;
    min-height: 78px;
    font-size: 0.94rem;
  }

  .camera-shutter,
  .camera-shutter__outer {
    width: 92px;
    height: 92px;
  }

  .camera-shutter__inner {
    width: 70px;
    height: 70px;
  }

  .toast-stack {
    top: auto;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  .search-results-section__grid--factories,
  .search-results-section__grid--products {
    grid-template-columns: 1fr;
  }

  .product-card--search .product-card__title {
    font-size: 1.35rem;
  }

  .factory-card--search .factory-card__body h3 {
    font-size: 1.55rem;
  }

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

  .backup-hero,
  .backup-panel__head,
  .backup-history-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .backup-actions,
  .backup-summary-grid,
  .backup-kpi-grid,
  .backup-diagnostics__grid {
    grid-template-columns: 1fr;
  }

  .backup-compare-grid {
    grid-template-columns: 1fr;
  }
}
/* END: Responsive */
