:root {
  color-scheme: light;
  --bg: #f7fafc;
  --card: #ffffff;
  --text: #102033;
  --muted: #66758a;
  --primary: #57c925;
  --primary-dark: #2f9f16;
  --secondary: #062544;
  --secondary-soft: #eaf5ff;
  --line: #dfe7ef;
  --soft: #eef8f7;
  --soft-blue: #edf5ff;
  --soft-gray: #f5f7fa;
  --shadow: 0 18px 44px rgba(15, 32, 51, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92)),
    #fff;
}

.login-brand {
  display: grid;
  place-items: center;
  gap: 12px;
  width: min(760px, 100%);
  text-align: center;
}

.login-brand img {
  width: min(520px, 92%);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 38px rgba(6, 37, 68, 0.12));
}

.login-tagline {
  display: grid;
  gap: 4px;
  color: var(--secondary);
  font-size: 18px;
}

.login-tagline span {
  color: var(--muted);
  font-size: 15px;
}

.login-panel {
  width: min(680px, 100%);
  justify-self: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(6, 37, 68, 0.12);
  text-align: center;
}

.login-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 52px);
}

.login-panel p {
  max-width: 520px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 18px;
}

.login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-form input,
.login-form select {
  min-height: 56px;
  border-radius: 16px;
  font-size: 17px;
}

.login-form button,
.primary-link,
.workspace-action {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--secondary);
  color: #fff;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
}

.login-form button {
  grid-column: 1 / -1;
  min-height: 60px;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--secondary), #0b416f);
  font-size: 18px;
}

.login-help {
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(87, 201, 37, 0.24);
  border-radius: 14px;
  background: rgba(87, 201, 37, 0.08);
  color: var(--secondary);
  font-size: 14px;
}

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

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

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

.home-view {
  display: grid;
  gap: 30px;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.25;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(223, 231, 239, 0.9);
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 850;
}

.deskpoint-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
}

.header-actions a {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.header-actions a.active {
  border-color: rgba(87, 201, 37, 0.45);
  background: rgba(87, 201, 37, 0.11);
  color: var(--primary);
}

.header-actions .reserved-nav {
  margin-left: auto;
  min-height: 48px;
  padding-inline: 22px;
  border-color: rgba(6, 37, 68, 0.12);
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(6, 37, 68, 0.14);
}

.header-actions .reserved-nav.active {
  border-color: var(--secondary);
  background: var(--primary);
  color: #fff;
}

.header-actions .order-nav {
  border-color: rgba(87, 201, 37, 0.35);
  background: rgba(87, 201, 37, 0.12);
  color: var(--primary-dark);
}

.session-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-pill,
.logout-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
}

.role-pill {
  border-color: rgba(87, 201, 37, 0.42);
  background: rgba(87, 201, 37, 0.12);
}

.logout-button {
  color: var(--muted);
}

.workspace-view {
  display: grid;
  gap: 26px;
}

.workspace-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(6, 37, 68, 0.98), rgba(8, 64, 104, 0.92)),
    var(--secondary);
  color: #fff;
  box-shadow: var(--shadow);
}

.workspace-hero .eyebrow,
.workspace-hero .subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.workspace-hero h1 {
  max-width: 780px;
}

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

.workspace-action {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(6, 37, 68, 0.06);
}

.workspace-action.active {
  border-color: rgba(87, 201, 37, 0.55);
  background: rgba(87, 201, 37, 0.13);
  color: var(--primary-dark);
}

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

.workspace-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 37, 68, 0.06);
}

.workspace-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-card strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--secondary);
  font-size: 30px;
  line-height: 1;
}

.workspace-card p {
  margin: 0;
  color: var(--muted);
}

.workspace-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.workspace-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 201, 37, 0.45);
  box-shadow: 0 18px 36px rgba(6, 37, 68, 0.1);
}

.workspace-card-link::after {
  content: "Apri";
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(87, 201, 37, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.workspace-card-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff, rgba(234, 245, 255, 0.72));
}

.workspace-card-wide strong {
  font-size: 34px;
}

.simple-admin-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.simple-admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 37, 68, 0.06);
}

.simple-admin-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--secondary);
  font-weight: 950;
  text-decoration: none;
}

.simple-admin-menu a.active {
  background: rgba(87, 201, 37, 0.14);
  color: var(--primary-dark);
}

.simple-admin-content,
.simple-panel,
.simple-form,
.simple-subpanel {
  min-width: 0;
}

.simple-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 37, 68, 0.06);
}

.simple-panel-head,
.simple-subpanel h3 {
  margin: 0;
}

.simple-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.simple-panel-head h2,
.simple-form h3,
.simple-subpanel h3 {
  margin: 0;
  color: var(--secondary);
}

.simple-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.simple-form,
.simple-subpanel {
  display: grid;
  gap: 14px;
}

.simple-form section,
.simple-subpanel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.simple-subpanel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.simple-subpanel-head h3 {
  margin: 0 0 6px;
}

.simple-subpanel-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.simple-filter-bar,
.simple-inline-form {
  display: grid;
  gap: 12px;
  align-items: end;
}

.simple-filter-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}

.simple-inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.primary-tool,
.danger-action {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}

.primary-tool {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.danger-action {
  border: 1px solid rgba(190, 18, 60, 0.18);
  background: rgba(190, 18, 60, 0.08);
  color: #9f1239;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-gray);
}

.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.table-thumb .placeholder-image {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  font-size: 10px;
}

.price-source,
.price-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.product-price-box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(87, 201, 37, 0.28);
  border-radius: 14px;
  background: rgba(87, 201, 37, 0.08);
}

.product-price-box span,
.product-price-box small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.product-price-box strong {
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 950;
}

.catalog-price-panel {
  margin: 18px 0;
}

.catalog-price-control {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(87, 201, 37, 0.28);
  border-radius: 16px;
  background: rgba(87, 201, 37, 0.08);
}

.catalog-price-control span {
  color: var(--secondary);
  font-weight: 950;
}

.catalog-price-control strong {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 950;
}

.catalog-price-control select {
  min-height: 40px;
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
  padding: 0 12px;
}

.card-price {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(87, 201, 37, 0.26);
  border-radius: 14px;
  background: rgba(87, 201, 37, 0.08);
}

.card-price span,
.card-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.card-price strong {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 950;
}

.status-select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
  padding: 0 12px;
}

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

.cart-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(87, 201, 37, 0.38);
  border-radius: 999px;
  background: rgba(87, 201, 37, 0.13);
  color: var(--primary-dark);
  font-weight: 950;
  cursor: pointer;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.toggle-row input {
  width: 20px;
  height: 20px;
}

.qty-input {
  width: 84px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--secondary);
  font-weight: 900;
}

.workspace-module-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.workspace-menu,
.workspace-detail,
.workspace-settings {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 37, 68, 0.06);
}

.workspace-menu {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.workspace-menu a {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--secondary);
  text-decoration: none;
}

.workspace-menu a.active {
  border-color: rgba(87, 201, 37, 0.45);
  background: rgba(87, 201, 37, 0.12);
  color: var(--primary-dark);
}

.workspace-menu a:not(.active):hover {
  border-color: var(--line);
  background: rgba(234, 245, 255, 0.62);
}

.workspace-menu strong {
  font-size: 16px;
}

.workspace-menu span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.workspace-back {
  min-height: 44px;
  place-content: center;
  background: var(--soft-blue);
  font-weight: 900;
}

.workspace-detail {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.workspace-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.workspace-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace-toolbar h2,
.workspace-settings h3 {
  margin: 0;
  color: var(--secondary);
}

.workspace-toolbar p,
.workspace-settings p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.workspace-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-tools button,
.workspace-button-link,
.table-action {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
  cursor: pointer;
}

.workspace-button-link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
}

.workspace-tools button {
  padding: 0 14px;
}

.workspace-tools .primary-tool,
.settings-save {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.workspace-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.workspace-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.workspace-table th,
.workspace-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.workspace-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace-table td {
  color: var(--secondary);
  font-weight: 800;
}

.workspace-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(87, 201, 37, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
}

.table-action {
  padding: 0 12px;
}

.table-link {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  text-decoration: none;
}

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

.reseller-info-card,
.workspace-subsection {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.reseller-info-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, rgba(234, 245, 255, 0.54));
}

.reseller-info-card h3,
.workspace-subsection h3 {
  margin: 0;
  color: var(--secondary);
}

.reseller-info-card div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.reseller-info-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.reseller-info-card strong {
  color: var(--secondary);
  overflow-wrap: anywhere;
}

.workspace-subsection {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.workspace-subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-subsection-head button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--secondary);
  font-weight: 900;
}

.workspace-settings {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, rgba(234, 245, 255, 0.62));
}

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

.field-row {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.field-row input,
.field-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.settings-save {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.reseller-edit-form {
  display: grid;
  gap: 18px;
}

.workspace-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 37, 68, 0.45);
}

.workspace-modal-card {
  width: min(720px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(6, 37, 68, 0.2);
}

.workspace-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.workspace-modal-head h2 {
  margin: 0;
  color: var(--secondary);
}

.workspace-modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.workspace-modal-head button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
  cursor: pointer;
}

.workspace-notice {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid rgba(87, 201, 37, 0.35);
  border-radius: 14px;
  background: rgba(87, 201, 37, 0.12);
  color: var(--primary-dark);
  font-weight: 900;
}

.page-shell {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 82px;
}

.view {
  animation: riseIn 200ms ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin: 26px auto 34px;
  text-align: center;
}

.catalog-start,
.dex-start {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-start h1,
.dex-start h1 {
  max-width: 850px;
}

.catalog-start .hero-search,
.dex-main-search {
  max-width: 980px;
}

.dex-start {
  min-height: 360px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(238,248,247,0.92)),
    #fff;
}

.dex-start-copy {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.dex-large-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(87, 201, 37, 0.12);
}

.dex-large-icon::before {
  width: 25px;
  height: 25px;
}

.colleague-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
  max-width: 1320px;
  min-height: 390px;
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid rgba(223, 231, 239, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(238, 248, 247, 0.95), rgba(255, 255, 255, 0.92) 52%, rgba(237, 245, 255, 0.9)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 690px;
  margin-bottom: 0;
}

.hero-copy .hero-subtitle {
  max-width: 660px;
  margin-bottom: 0;
}

.colleague-visual {
  position: relative;
  min-height: 300px;
  height: 100%;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 18%, #fff 0, #fff 42%, #eef8f7 100%);
  box-shadow: 0 24px 54px rgba(15, 32, 51, 0.11);
  overflow: hidden;
}

.colleague-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle,
.subtitle {
  color: var(--muted);
  font-size: 19px;
}

.subtitle {
  max-width: 720px;
  margin-bottom: 0;
}

.hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 11px 11px 11px 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.hero-search:focus-within {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1), var(--shadow);
}

.search-icon {
  color: var(--primary);
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  font-size: 0;
  font-weight: 850;
}

.search-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 9px 9px 0 -6px currentColor;
  transform: rotate(-18deg);
}

input, select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

input::placeholder { color: #93a2b5; }

.hero-search button,
.soft-button,
.open-card,
.external-link,
.disabled-order {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 850;
}

.hero-search button {
  min-height: 56px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
}

.hero-search button:hover {
  background: var(--primary-dark);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips button,
.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
}

.chips button:hover,
.chip-link:hover,
.soft-button:hover,
.open-card:hover,
.path-card:hover {
  transform: translateY(-1px);
}

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

.path-card {
  display: grid;
  gap: 16px;
  min-height: 340px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 32, 51, 0.04);
  text-align: left;
  transition: 160ms ease;
}

button.path-card {
  width: 100%;
  font: inherit;
}

.path-card:hover {
  border-color: rgba(15, 118, 110, 0.26);
  box-shadow: var(--shadow);
}

.path-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  background: var(--soft);
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

.path-card strong {
  font-size: 30px;
  line-height: 1.12;
}

.path-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.dex-need-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: auto;
  padding: 9px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 18px;
  background: #fff;
}

.dex-need-form input {
  min-height: 52px;
  padding: 0 14px;
  font-weight: 750;
}

.dex-need-form button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.path-action {
  align-self: end;
  justify-self: start;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--secondary);
  font-weight: 850;
}

.path-card-consumables .path-icon {
  background: var(--soft-blue);
  color: var(--secondary);
}

.path-card-dex {
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(135deg, #ffffff, #eef8f7);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 38px;
}

.stat-card,
.category-card,
.product-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 32, 51, 0.04);
}

.stat-card {
  display: grid;
  gap: 4px;
  min-height: 118px;
  align-content: center;
  padding: 18px;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1.15;
}

.stat-card span,
.metric-pill,
.category-card p,
.category-count,
.product-lines,
.detail-muted {
  color: var(--muted);
}

.section-block,
.catalog-view,
.products-view,
.consumables-view,
.product-view {
  display: grid;
  gap: 22px;
}

.consumables-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 32, 51, 0.05);
}

.consumables-copy {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.consumables-copy h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.4vw, 54px);
}

.logo-upload-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.logo-preview {
  min-height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-gray);
  color: var(--muted);
  font-weight: 850;
  overflow: hidden;
}

.logo-preview img {
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
  padding: 10px;
}

.consumables-visual {
  grid-row: span 3;
  align-self: stretch;
  display: grid;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(87, 201, 37, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, rgba(237, 248, 232, 0.68));
}

.consumables-visual img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.consumables-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-gray);
}

.consumables-search input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 750;
}

.consumables-search button {
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.consumables-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.consumables-status strong {
  font-size: 18px;
}

.consumables-status span {
  color: var(--muted);
  font-weight: 850;
}

.section-heading,
.products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.brand-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 32, 51, 0.04);
}

.brand-card:hover {
  border-color: rgba(87, 201, 37, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand-card span {
  color: var(--muted);
  font-weight: 850;
}

.category-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  text-align: left;
  transition: 160ms ease;
}

.category-card:hover,
.product-card:hover {
  border-color: #c7d4e2;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 17px;
  background: var(--soft);
  color: var(--primary);
  font-size: 30px;
}

.category-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 21px;
  line-height: 1.22;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.open-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--secondary);
  font-weight: 850;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
}

.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
}

.breadcrumb a {
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.breadcrumb span.current {
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: var(--soft);
  color: var(--primary);
  font-weight: 850;
}

.page-title {
  display: grid;
  gap: 5px;
}

.advisor-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eef8f7);
  box-shadow: 0 14px 34px rgba(15, 32, 51, 0.06);
}

.advisor-copy {
  display: grid;
  gap: 8px;
}

.advisor-copy h2 {
  font-size: clamp(24px, 2.7vw, 34px);
}

.advisor-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.advisor-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.advisor-options button {
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 32, 51, 0.05);
  transition: 160ms ease;
}

.advisor-options button:hover {
  border-color: rgba(15, 118, 110, 0.55);
  background: var(--soft);
  transform: translateY(-1px);
}

.product-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.2fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-toolbar input[type="search"],
.product-toolbar select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-gray);
  text-transform: none;
}

.check-control {
  display: flex !important;
  min-height: 48px;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-gray);
  color: var(--text) !important;
  text-transform: none !important;
}

.check-control input {
  width: 16px;
  height: 16px;
}

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

.product-card {
  display: grid;
  grid-template-rows: 250px minmax(0, 1fr);
  overflow: hidden;
  text-align: left;
  transition: 160ms ease;
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--soft-gray);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.placeholder-image {
  display: grid;
  gap: 6px;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px dashed #b9c8d8;
  border-radius: 22px;
  color: var(--primary);
  font-weight: 850;
}

.placeholder-image small {
  color: var(--muted);
  font-weight: 650;
}

.product-info {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  background: #fff;
}

.product-title {
  display: -webkit-box;
  min-height: 72px;
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  line-height: 1.28;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-lines {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.product-lines span {
  overflow-wrap: anywhere;
}

.product-path {
  color: #46576b;
}

.match-line {
  color: var(--primary);
  font-weight: 850;
}

.open-card {
  justify-self: start;
  padding: 0 15px;
  border-color: rgba(29, 78, 216, 0.2);
  background: var(--soft-blue);
  color: var(--secondary);
}

.soft-button {
  justify-self: start;
  padding: 0 14px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.product-page-content {
  display: grid;
  gap: 24px;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}

.product-gallery,
.product-summary,
.product-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 32, 51, 0.04);
}

.product-gallery {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.gallery-main {
  display: grid;
  width: 100%;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-gray);
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  padding: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.gallery-thumbs button {
  display: grid;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-gray);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 32, 51, 0.78);
}

.image-modal img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.image-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
}

.product-summary {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.product-brand {
  color: var(--primary);
  font-weight: 850;
  text-transform: uppercase;
}

.product-summary h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.info-list {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 11px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-gray);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-color: var(--line);
  background: #fff;
  color: var(--secondary);
}

.disabled-order {
  padding: 0 14px;
  border-color: #cbd5e1;
  background: #edf1f5;
  color: #748399;
  cursor: not-allowed;
}

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

.product-section {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.product-section h2 {
  font-size: 22px;
}

.product-section p {
  margin-bottom: 0;
  color: #34465a;
  overflow-wrap: anywhere;
}

.empty-card {
  padding: 22px;
  color: var(--muted);
}

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

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

  .workspace-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-module-shell,
  .workspace-settings,
  .simple-admin-shell,
  .reseller-overview {
    grid-template-columns: 1fr;
  }

  .simple-admin-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-filter-bar,
  .simple-inline-form {
    grid-template-columns: 1fr;
  }

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

  .workspace-back {
    grid-column: 1 / -1;
  }

  .workspace-toolbar {
    flex-direction: column;
  }

  .workspace-tools {
    justify-content: flex-start;
  }

  .advisor-panel {
    grid-template-columns: 1fr;
  }

  .colleague-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .colleague-visual {
    min-height: 300px;
  }

  .colleague-visual img {
    min-height: 300px;
    object-position: center bottom;
  }

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

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

  .path-card {
    min-height: 0;
  }

  .consumables-search {
    grid-template-columns: 1fr;
  }

  .consumables-panel {
    grid-template-columns: 1fr;
  }

  .consumables-visual {
    grid-row: auto;
    min-height: 280px;
  }

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

  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-view {
    padding: 18px;
  }

  .login-brand img {
    width: min(360px, 96%);
  }

  .login-panel {
    padding: 22px;
  }

  .login-panel h1 {
    font-size: 32px;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .deskpoint-brand img {
    width: 42px;
    height: 42px;
  }

  .session-box,
  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1 1 auto;
    text-align: center;
  }

  .header-actions .reserved-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .workspace-actions,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-menu,
  .setting-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .hero-panel {
    margin-top: 8px;
    text-align: left;
  }

  .colleague-hero {
    gap: 22px;
    padding: 20px;
    border-radius: 24px;
  }

  .colleague-visual {
    min-height: 240px;
    border-radius: 20px;
  }

  .colleague-visual img {
    min-height: 240px;
    object-position: center bottom;
  }

  .hero-search {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 20px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chips {
    justify-content: flex-start;
  }

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

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

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

  .dex-need-form {
    grid-template-columns: 1fr;
  }

  .dex-need-form button {
    width: 100%;
  }

  .consumables-panel {
    padding: 20px;
  }

  .consumables-visual {
    min-height: 220px;
    border-radius: 18px;
  }

  .consumables-search button {
    width: 100%;
  }

  .gallery-main {
    min-height: 280px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
