﻿@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --bg-grid: rgba(13, 95, 88, .045);
  --panel: #ffffff;
  --panel-soft: #f8fbfb;
  --ink: #101820;
  --muted: #687789;
  --line: #d8e1e6;
  --line-strong: #c4d0d8;
  --accent: #008c7a;
  --accent-strong: #00695d;
  --accent-blue: #1f6feb;
  --accent-cyan: #45d6ca;
  --warning: #b86b00;
  --danger: #9f2f37;
  --shadow: 0 16px 34px rgba(18, 34, 49, 0.08);
  --shadow-soft: 0 6px 18px rgba(18, 34, 49, 0.05);
  --radius: 8px;
  --app-header-height: 76px;
}

* { box-sizing: border-box; }
html {
  -webkit-user-select: none;
  user-select: none;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(69, 214, 202, .12), transparent 360px),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Noto Sans", "Segoe UI", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button, input, select, textarea { font: inherit; }
input,
select,
textarea,
option {
  -webkit-user-select: auto;
  user-select: auto;
}
button,
.app-shell,
.login-page,
.modal-backdrop,
.detail-panel,
.product-card,
.table-wrap,
.cart-panel,
.quote-summary,
.permission-matrix {
  -webkit-user-select: none;
  user-select: none;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 9px 12px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
button svg,
.metric svg,
.search-icon svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.icon-only {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}
.icon-only svg {
  width: 19px;
  height: 19px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1;
}
button:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 140, 122, .12);
  transform: translateY(-1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
  transform: none;
}
.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 140, 122, .20);
}
.primary:hover { background: linear-gradient(135deg, var(--accent-strong), #20bfb3); }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 292px minmax(420px, 1.15fr) minmax(500px, .9fr) 54px;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(115, 244, 206, .13);
  background:
    radial-gradient(circle at 110px 0, rgba(210, 255, 57, .08), transparent 34%),
    linear-gradient(180deg, rgba(69, 214, 202, .08), transparent 72%),
    #101820;
  box-shadow: 0 14px 34px rgba(9, 18, 25, .18);
  backdrop-filter: blur(14px);
}
.app-header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding-left: 34px;
  padding-block: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  width: auto;
  min-width: 0;
  min-height: auto;
  color: inherit;
}
.app-header-brand:hover {
  transform: none;
}
.app-header-brand:focus-visible {
  outline: 2px solid rgba(115, 244, 206, .7);
  outline-offset: 6px;
}
.app-header-brand .brand-logo {
  width: min(178px, 88%);
  max-height: 62px;
}
.app-header-currency {
  min-width: 0;
}
.app-header-search {
  min-width: 0;
}
.app-header .header-search-zone {
  margin: 0;
}
.app-header .header-search-zone input {
  min-height: 56px;
  padding-left: 56px;
  border-radius: 12px;
  border-color: rgba(115, 244, 206, .28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.035)),
    rgba(6, 12, 18, .34);
  color: #f8fafc;
  font-size: 15px;
  font-weight: 750;
  box-shadow: inset 3px 0 0 rgba(115, 244, 206, .24), 0 12px 24px rgba(0,0,0,.10);
}
.app-header .search-icon {
  left: 20px;
  color: #38d5c7;
}
.app-header .header-search-zone input::placeholder {
  color: #a9b7c2;
}
.app-header .header-search-zone:hover input,
.app-header .header-search-zone input:focus {
  border-color: rgba(115, 244, 206, .56);
  background: rgba(255,255,255,.075);
  box-shadow: inset 3px 0 0 rgba(115, 244, 206, .62), 0 0 0 3px rgba(115, 244, 206, .10);
}
.app-header .currency-bar {
  position: static;
  margin: 0;
  min-height: 56px;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 8px;
  padding: 7px 8px;
  border-radius: 12px;
  border-color: rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.045)),
    rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 24px rgba(0,0,0,.12);
}
.app-header .currency-rate {
  display: none;
}
.app-header .currency-rate strong {
  color: #f8fafc;
}
.app-header .currency-rate small,
.app-header .currency-field span {
  color: #aebac6;
}
.app-header .currency-field {
  gap: 4px;
}
.app-header .currency-field span {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.app-header .currency-bar input {
  height: 35px;
  border-radius: 9px;
  border-color: rgba(255,255,255,.12);
  background: rgba(6, 12, 18, .42);
  color: #f8fafc;
  font-size: 14px;
  padding: 5px 12px;
}
.app-header .currency-bar input:focus {
  border-color: rgba(115, 244, 206, .58);
  box-shadow: 0 0 0 3px rgba(115, 244, 206, .14);
}
.mobile-menu-toggle {
  display: none;
}
.mobile-menu-backdrop {
  display: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - var(--app-header-height));
}
.sidebar {
  position: sticky;
  top: var(--app-header-height);
  height: calc(100vh - var(--app-header-height));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
  background:
    linear-gradient(180deg, rgba(69, 214, 202, .11), transparent 24%),
    #101820;
  color: #f8fafc;
  border-right: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: min(154px, 100%);
  max-height: 68px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #73f4ce, #4fc3ff);
  color: #072521;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 14px 28px rgba(0,0,0,.18);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small, .auth-box small { color: #b8c3cf; margin-top: 2px; }
nav { display: grid; gap: 6px; }
nav button {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: #e5eaf0;
  border-color: rgba(255,255,255,.08);
  min-height: 40px;
  padding: 9px 10px;
}
nav button.active, nav button:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(115,244,206,.35);
  color: #fff;
}

.auth-box {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.auth-box input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 10px;
  background: #0d121a;
  color: #fff;
}
.auth-box button { background: #fff; color: #111827; }
.auth-email {
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-widget {
  position: relative;
  z-index: 60;
}
.account-widget summary {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(115, 244, 206, .38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(216, 255, 53, .12), transparent 44%),
    #0b151c;
  color: #d8ff35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0, 0, 0, .24);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.account-widget summary::-webkit-details-marker {
  display: none;
}
.account-widget summary span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(216, 255, 53, .10);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0;
}
.account-avatar-initials {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(216, 255, 53, .10);
  color: #d8ff35;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
}
.account-widget summary svg {
  width: 18px;
  height: 18px;
}
.account-avatar-img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 12px;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(69, 214, 202, .10), transparent 34%),
    #101820;
  color: #f8fafc;
  box-shadow: 0 22px 50px rgba(9, 18, 25, .32);
}
.account-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: #101820;
  border-left: 1px solid rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: rotate(45deg);
}
.account-popover small {
  color: #b8c3cf;
}
.account-popover-head {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
}
.account-popover-head strong {
  color: #fff;
  font-size: 17px;
}
.account-popover-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(216, 255, 53, .10);
  color: #d8ff35;
  font-weight: 900;
  font-size: 22px;
  overflow: hidden;
}
.account-avatar-img.large,
.account-popover-avatar .account-avatar-img {
  width: 74px;
  height: 74px;
}
.account-popover-avatar .account-avatar-initials {
  width: 74px;
  height: 74px;
  font-size: 22px;
}
.account-menu-list {
  display: grid;
  gap: 4px;
  padding: 2px 0;
}
.account-menu-list button {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
}
.account-menu-list button:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(115, 244, 206, .18);
}
.account-popover .dev-profile-switch {
  margin-top: 2px;
}
.login-form {
  display: grid;
  gap: 7px;
}
.login-form button {
  justify-content: center;
  gap: 7px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}
.login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.login-status-card {
  align-content: start;
}
.login-card-wide {
  width: min(980px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: var(--line-strong);
}
.login-card-auth {
  width: min(520px, 100%);
  padding: 0;
  overflow: hidden;
  border-color: var(--line-strong);
}
.login-main {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 34px;
  min-height: 0;
}
.login-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
}
.login-brand-row img {
  width: 180px;
  height: auto;
  display: block;
}
.login-copy {
  display: grid;
  gap: 10px;
}
.login-brand-row,
.login-copy,
.auth-mode-toggle {
  user-select: none;
}
.login-card h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: 0;
  text-align: center;
}
.login-card p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.login-copy small {
  display: block;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}
.auth-mode-toggle button {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.auth-mode-toggle button.active {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.login-notice {
  margin: 0;
}
.login-form-page {
  gap: 14px;
  max-width: none;
}
.login-form-page label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.password-field {
  position: relative;
}
.password-control {
  position: relative;
  display: block;
}
.password-control input {
  width: 100%;
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 32px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transform: translateY(-50%);
}
.password-toggle:hover {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--ink);
  box-shadow: none;
  transform: translateY(-50%);
}
.password-rules {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  list-style: none;
}
.password-field:hover .password-rules,
.password-field:focus-within .password-rules {
  display: grid;
}
.password-rules li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  vertical-align: middle;
}
.password-rules li.passed {
  color: var(--accent-strong);
  font-weight: 800;
}
.password-rules li.passed::before {
  background: var(--accent);
}
.password-rules li.missing {
  color: var(--danger);
  font-weight: 800;
}
.password-rules li.missing::before {
  background: var(--danger);
}
.password-match-hint {
  display: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
body.modal-open {
  overflow: hidden;
}
.password-match-hint.visible {
  display: block;
}
input.field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(159, 47, 55, .12);
}
.login-form-page button {
  min-height: 50px;
  margin-top: 4px;
}
.login-side-panel {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 28px;
  color: #f7fbfb;
  background:
    linear-gradient(180deg, rgba(69, 214, 202, .14), transparent 46%),
    linear-gradient(135deg, #10252b, #091219);
}
.login-access-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.login-access-head svg {
  width: 30px;
  height: 30px;
  color: var(--accent-cyan);
}
.login-access-head small,
.login-mini-card small {
  display: block;
  color: #aab8c5;
  font-weight: 700;
}
.login-access-head strong,
.login-mini-card strong {
  display: block;
  margin-top: 2px;
}
.login-access-list {
  display: grid;
  gap: 10px;
}
.login-access-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  color: #eef6f7;
  font-weight: 700;
}
.login-access-list svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}
.login-mini-card {
  padding: 16px;
  border: 1px solid rgba(115,244,206,.20);
  border-radius: var(--radius);
  background: rgba(115,244,206,.08);
}
.profile-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.profile-switch button {
  justify-content: flex-start;
  width: 100%;
  gap: 5px;
  padding: 8px 6px;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #e5eaf0;
}
.profile-switch button.active {
  background: linear-gradient(135deg, #73f4ce, #4fc3ff);
  color: #071116;
  border-color: transparent;
}
.dev-profile-switch {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.dev-profile-switch small {
  color: #facc15;
}
.role-pill {
  display: inline-flex;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37, 183, 168, .18);
  color: #b9fff6;
  font-size: 12px;
  font-weight: 800;
}
.demo-role select {
  width: 100%;
  border-color: rgba(255,255,255,.16);
  background: #0d121a;
  color: #fff;
}

.content {
  min-width: 0;
  overflow-x: hidden;
  padding: 18px 26px 22px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 4px 0 2px;
  background: transparent;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 26px; line-height: 1.12; max-width: 980px; }
h2 { font-size: 26px; }
h3 { font-size: 17px; }
.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #b8e2dc;
  border-radius: 8px;
  background: #e9fbf8;
  color: #0e5c54;
  box-shadow: var(--shadow-soft);
}
.currency-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) repeat(3, minmax(92px, 150px));
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.currency-rate {
  display: grid;
  gap: 1px;
  min-height: 42px;
  align-content: center;
  min-width: 0;
}
.currency-rate strong {
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.2;
}
.currency-rate small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.currency-field {
  display: grid;
  gap: 3px;
}
.currency-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.currency-bar input {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 15px;
}
.search-zone {
  position: relative;
  margin-bottom: 8px;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
  pointer-events: none;
  transform: translateY(-50%);
}
.search-zone input {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px 12px 48px;
  border: 2px solid rgba(0, 137, 123, .26);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #f7fffd 100%);
  font-size: 16px;
  font-weight: 650;
  box-shadow: 0 9px 22px rgba(15, 23, 42, .07), inset 3px 0 0 rgba(0, 137, 123, .42);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.search-zone input::placeholder {
  color: #a8b4bf;
  font-weight: 600;
  opacity: 1;
}
.search-zone:hover input {
  border-color: rgba(0, 137, 123, .44);
  background: #fff;
  box-shadow: 0 11px 26px rgba(15, 23, 42, .09), inset 3px 0 0 var(--accent);
}
.search-zone input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(69, 214, 202, .24);
  border-color: var(--accent);
}
.dashboard-search-zone {
  display: none;
}
.search-help {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.product-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.product-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}
.product-summary strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
}
.remote-loading-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 360px;
  padding: 42px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.remote-loading-card small {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.remote-loading-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}
.remote-loading-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.metric {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric-head svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent-blue));
}
.metric span, small, label span { color: var(--muted); font-size: 13px; }
.metric strong {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 25px;
}

.filter-panel {
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.filter-panel summary::-webkit-details-marker {
  display: none;
}
.filter-panel summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.filter-panel summary svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.filter-panel summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255,255,255,.58);
}
.filter-clear {
  min-width: 86px;
  white-space: nowrap;
  justify-self: end;
}
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease, outline-color .16s ease;
}
select,
.filter-clear {
  min-height: 42px;
}
textarea { min-height: 110px; resize: vertical; }

.product-area {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0 2px;
}
.result-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}
.result-count strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 20px;
}
.view-toggle {
  display: inline-flex;
  width: max-content;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.view-toggle button {
  min-width: 68px;
  border-color: transparent;
  min-height: 34px;
  padding: 5px 8px;
}
.view-toggle button.active {
  background: #101820;
  color: #fff;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 2px;
}
.active-filters button {
  min-height: 30px;
  padding: 5px 8px 5px 10px;
  border-color: #b9e7df;
  border-radius: 999px;
  background: #eefaf8;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}
.active-filters svg {
  width: 14px;
  height: 14px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafb;
  color: var(--muted);
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}
th.actions-col,
td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 116px;
  text-align: right;
  background: inherit;
}
th.actions-col {
  z-index: 3;
  background: #f7fafb;
}
tbody td:last-child {
  background: #fff;
  box-shadow: -12px 0 18px rgba(248, 251, 251, .86);
}
tbody tr {
  transition: background .14s ease;
}
tbody tr:hover {
  background: #f7fbfa;
}
td strong, td small { display: block; }
.product-cell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}
.row-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #0b5f57;
  font-size: 13px;
  font-weight: 900;
}
.row-thumb img,
.row-thumb .image-fit {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: var(--panel);
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #e8eef6;
  color: #334155;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}
.status.pendente { background: #fff7df; color: var(--warning); border-color: #f2d48a; }
.status.revisado { background: #e2fbf1; color: #08714f; border-color: #9ee8ce; }
.status.arquivado { background: #f7e8ea; color: var(--danger); border-color: #e9bcc2; }
.status-control {
  display: inline-block;
}
.status-control select {
  min-height: 30px;
  padding: 5px 30px 5px 10px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.load-more-products {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 0 8px;
  color: var(--muted);
}
.load-more-products button {
  min-height: 42px;
  padding: 10px 16px;
  border-color: #bde7df;
  background: #f6fffd;
  color: var(--accent-strong);
  box-shadow: none;
}
.load-more-products small {
  font-size: 13px;
}
.product-card, .list-panel article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover, .list-panel article:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.product-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  min-height: 306px;
}
.product-card-info,
.product-card > div:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.product-card-info strong,
.product-card-info small,
.product-card > div:nth-child(2) strong,
.product-card > div:nth-child(2) small {
  display: block;
  overflow-wrap: anywhere;
}
.product-card-info strong,
.product-card > div:nth-child(2) strong {
  min-height: 42px;
  line-height: 1.22;
}
.product-code {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #cde3e0;
  border-radius: 999px;
  background: #f5fbfa;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
}
.product-card-info small,
.product-card > div:nth-child(2) small {
  color: var(--muted);
}
.thumb, .hero-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dff8f3, #dcebff);
  color: #0b5f57;
  font-weight: 900;
}
.thumb {
  width: 100%;
  height: clamp(176px, 13vw, 232px);
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.thumb img,
.thumb .image-fit,
.hero-image .image-fit,
.hero-image img {
  display: block;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  padding: 0;
  background-color: var(--panel);
}
.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.price-line span { font-weight: 800; color: var(--accent-strong); }
.row-actions, .detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.product-card .row-actions {
  margin-left: auto;
  flex-wrap: nowrap;
}
.detail-actions { margin: 16px 0; }
.cart-add-btn {
  border-color: rgba(0, 140, 122, .35);
  background: #f1fffc;
  color: #0f766e;
  font-weight: 800;
}
.cart-add-btn:hover {
  background: #e3fbf6;
  border-color: #0f766e;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.detail-media {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.hero-image {
  width: 100%;
  aspect-ratio: 1;
  font-size: 56px;
  background: #fff;
}
.hero-image.image-zoom-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  cursor: zoom-in;
}
.hero-image.image-zoom-trigger:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}
.hero-image.image-zoom-trigger.no-zoom {
  cursor: default;
}
.hero-image.image-zoom-trigger.no-zoom:hover {
  box-shadow: none;
}
.detail-thumbs {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.detail-thumbs button {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}
.detail-thumbs button:hover,
.detail-thumbs button.is-active {
  border-color: var(--accent);
  background: #edfffb;
}
.detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-panel, .similar, .form-panel, .list-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.detail-panel h2 { margin: 12px 0; }
.detail-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-headline h2 {
  margin: 8px 0 4px;
  line-height: 1.1;
}
.detail-headline p,
.detail-description {
  color: var(--muted);
}
.detail-headline .detail-actions {
  flex-wrap: nowrap;
  margin: 0;
}
.spec-panel {
  margin: 14px 0 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.spec-panel h3 {
  margin-bottom: 8px;
}
.spec-panel p {
  margin-bottom: 0;
  line-height: 1.55;
}
.spec-lines {
  display: grid;
  gap: 8px;
}
.spec-lines p {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.info-grid div, .calc-preview div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.info-grid strong, .calc-preview strong {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
}
.price-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}
.purchase-price-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.price-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.price-group-head small {
  color: var(--muted);
  font-weight: 800;
}
.price-group-head strong {
  color: var(--ink);
  font-size: 18px;
}
.conversion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.price-card {
  container-type: inline-size;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.price-card small,
.product-facts small {
  display: block;
  color: var(--muted);
}
.price-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  margin-top: 4px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: clamp(14px, 9cqw, 18px);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}
.primary-price {
  border-color: rgba(0, 140, 122, .35);
  background: linear-gradient(135deg, rgba(0, 140, 122, .10), rgba(69, 214, 202, .14));
}
.emphasis-price {
  border-color: rgba(13, 82, 96, .18);
  background: linear-gradient(135deg, #fff, rgba(223, 248, 243, .58));
}
.primary-price strong {
  color: var(--accent-strong);
  font-size: clamp(22px, 10cqw, 30px);
}
.emphasis-price strong {
  font-size: clamp(20px, 9cqw, 28px);
}
.conversion-grid .price-card strong {
  font-size: clamp(14px, 8cqw, 18px);
}
.product-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.product-facts h3 {
  margin: 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.facts-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.facts-grid strong {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  line-height: 1.35;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tags span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cbe9e4;
  background: #eefaf8;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}
.source { color: var(--muted); }
.similar { display: grid; gap: 14px; }
.similar h3 { margin-bottom: 0; }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.similar-thumb {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 6px;
  border-color: var(--line);
  background: var(--panel-soft);
}
.similar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.similar-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #e8f7f5;
  color: var(--accent-strong);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 15, 24, .48);
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}
.modal-panel {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
  max-width: calc(100vw - 36px);
  max-height: min(760px, calc(100vh - 36px));
  min-width: 0;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.86);
  background:
    linear-gradient(180deg, rgba(248,251,251,.96), #fff 180px);
  padding: 20px;
  box-shadow: 0 28px 90px rgba(0,0,0,.25);
  overscroll-behavior: contain;
}
.confirm-modal {
  z-index: 110;
  background: rgba(10, 15, 24, .42);
}
.confirm-panel {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.22);
}
.confirm-panel small {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.confirm-panel h2 {
  margin: 6px 0 8px;
}
.confirm-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirm-actions button {
  min-height: 42px;
  padding-inline: 16px;
}
.confirm-actions .danger-action {
  border-color: rgba(159, 47, 55, .34);
  background: #fff5f5;
  color: var(--danger);
}
.confirm-actions .danger-action:hover {
  border-color: var(--danger);
  background: #ffe8ea;
}
.detail-modal-panel {
  width: min(1180px, 100%);
  max-width: calc(100vw - 36px);
}
.detail-modal-panel .detail-layout {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) 260px;
}
.detail-modal-panel .detail-panel,
.detail-modal-panel .similar {
  box-shadow: none;
}
.image-zoom-modal {
  z-index: 120;
  background: rgba(8, 13, 20, .78);
}
.image-zoom-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}
.image-zoom-panel img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 64px);
  object-fit: contain;
}
.image-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
}
.modal-head {
  position: sticky;
  top: -20px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -20px -20px 0;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 251, .96);
  backdrop-filter: blur(10px);
}
.modal-head h2 { margin: 4px 0 0; }
.modal-actions {
  position: sticky;
  bottom: -20px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}
.modal-actions button {
  min-height: 44px;
  padding-inline: 16px;
}
.account-profile-panel {
  width: min(720px, 100%);
}
.account-profile-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(115, 244, 206, .12), transparent 68%),
    #f8fbfb;
}
.account-profile-photo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(0, 137, 123, .22);
  border-radius: 999px;
  background: #101820;
  color: #d8ff35;
  font-size: 30px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}
.account-profile-photo .account-avatar-initials,
.account-avatar-img.xlarge,
.account-profile-photo .account-avatar-img {
  width: 112px;
  height: 112px;
}
.account-profile-photo .account-avatar-initials {
  font-size: 34px;
  background: transparent;
}
.profile-photo-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: -30px;
  padding: 0 18px;
  border: 1px solid rgba(0, 137, 123, .26);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
}
.profile-photo-input svg {
  width: 18px;
  height: 18px;
}
.profile-photo-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.span-2 {
  grid-column: span 2;
}
.photo-editor {
  display: grid;
  gap: 14px;
}
.photo-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  align-items: end;
}
.gallery-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.gallery-editor > div {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.gallery-editor > div.is-primary {
  border-color: rgba(0, 153, 136, .45);
  background: #edfffb;
}
.gallery-editor img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.gallery-editor span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.gallery-actions {
  display: flex;
  gap: 8px;
}
.gallery-actions button {
  width: 42px;
  height: 42px;
}

.form-panel { display: grid; gap: 14px; }
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.section-head h2 {
  margin-bottom: 5px;
}
.users-panel {
  gap: 16px;
}
.users-table {
  min-width: 920px;
}
.users-table tbody tr {
  transition: background .16s ease;
}
.users-table tbody tr:hover {
  background: rgba(0, 137, 123, .035);
}
.users-table th:first-child,
.users-table td:first-child {
  width: 42%;
}
.users-table tr.is-disabled {
  opacity: .64;
}
.user-cell {
  display: grid;
  gap: 3px;
}
.user-cell strong,
.user-cell small {
  display: block;
}
.user-detail-trigger {
  display: grid;
  justify-items: start;
  justify-content: stretch;
  align-items: start;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}
.user-detail-trigger:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.user-detail-trigger:hover strong {
  color: var(--accent-strong);
}
.user-detail-panel {
  width: min(680px, 100%);
}
.user-detail-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(115, 244, 206, .10), transparent 70%),
    #f8fbfb;
}
.user-detail-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #101820;
  color: #d8ff35;
  font-weight: 900;
  letter-spacing: 0;
}
.user-detail-summary strong,
.user-detail-summary span {
  display: block;
}
.user-detail-summary span {
  color: var(--muted);
}
.user-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.user-detail-item {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.user-detail-item.wide {
  grid-column: 1 / -1;
}
.user-detail-item small {
  color: var(--muted);
}
.user-detail-item strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.25;
}
.compact-select {
  display: inline-grid;
  min-width: 180px;
}
.compact-select select {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
}
.permission-matrix {
  display: grid;
  gap: 10px;
}
.permission-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.permission-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid transparent;
}
.permission-card[open] summary {
  border-bottom-color: var(--line);
  background: #f8fbfb;
}
.permission-card summary::-webkit-details-marker { display: none; }
.permission-card summary > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.permission-card summary svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.permission-list {
  display: grid;
}
.permission-price-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f7fbfa;
}
.permission-price-choice span {
  display: grid;
  gap: 3px;
}
.permission-price-choice strong {
  font-size: 14px;
}
.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.permission-row:last-child { border-bottom: 0; }
.permission-row span {
  display: grid;
  gap: 3px;
}
.permission-row strong {
  font-size: 14px;
}
.permission-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.permission-row input:disabled {
  opacity: .45;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 7px; }
.wide { grid-column: 1 / -1; }
.file-input {
  padding: 14px;
  border: 1px dashed #8fb4b0;
  border-radius: 8px;
  background: #f6fcfb;
}
.calc-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 18px;
  align-items: start;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.quote-summary {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}
.quote-summary div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.quote-summary small,
.quote-summary strong {
  display: block;
}
.quote-summary strong {
  margin-top: 4px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
}
.quote-summary .summary-final {
  border-color: rgba(0, 140, 122, .32);
  background: linear-gradient(135deg, rgba(0, 140, 122, .08), rgba(69, 214, 202, .12));
}
.quote-summary .summary-final strong {
  color: var(--accent-strong);
}
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}
.summary-actions button {
  width: 52px;
  min-width: 52px;
  height: 52px;
}
.danger-action {
  color: var(--danger);
}
.cart-list { display: grid; gap: 10px; margin-top: 16px; }
.cart-panel {
  display: grid;
  gap: 16px;
}
.saved-quotes-panel {
  margin-top: 18px;
}
.saved-quotes-list {
  display: grid;
  gap: 10px;
}
.saved-quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.saved-quote-card strong,
.saved-quote-card small {
  display: block;
}
.saved-quote-card strong {
  margin-top: 2px;
  color: var(--ink);
}
.saved-quote-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-quote-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.saved-quote-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.cart-head h2 {
  margin: 0 0 8px;
}
.cart-head p {
  margin: 0;
  color: var(--muted);
}
.cart-head button {
  white-space: nowrap;
}
.cart-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 92px minmax(150px, 180px) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.cart-item.just-added {
  border-color: rgba(0, 140, 122, .55);
  background: #edfffb;
  animation: cartItemAdded .72s ease;
}
.cart-product-info {
  min-width: 0;
}
.cart-product-info strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
}
.cart-product-info strong span {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
}
.cart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.cart-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.qty-control {
  gap: 4px;
}
.qty-control span,
.cart-total small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.cart-item input { width: 92px; }
.cart-total {
  min-width: 0;
}
.cart-total strong {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
  font-size: 15px;
  white-space: nowrap;
}
.cart-total small + small {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
  white-space: nowrap;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 20;
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-color: rgba(0, 140, 122, .35);
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 140, 122, .26);
}
.floating-cart:hover {
  transform: translateY(-2px);
}
.floating-cart svg {
  width: 24px;
  height: 24px;
}
@keyframes cartItemAdded {
  0% { transform: translateX(10px); }
  45% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.list-panel { display: grid; gap: 10px; }
.list-panel article strong, .list-panel article small { display: block; }
.hint { color: var(--muted); font-size: 14px; }

@media (max-width: 1080px) {
  .app-header {
    grid-template-columns: 176px minmax(280px, 1fr) minmax(300px, .82fr) 50px;
    gap: 12px;
    padding-inline: 18px;
  }
  .app-header-brand { padding-left: 10px; }
  .app-header-brand .brand-logo {
    width: min(136px, 90%);
  }
  .app-header .header-search-zone input {
    min-height: 52px;
    font-size: 14px;
  }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  nav button { justify-content: center; text-align: center; }
  .auth-box { margin-top: 0; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .currency-bar {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(82px, 1fr));
  }
  .app-header .currency-bar {
    min-height: 52px;
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    gap: 6px;
  }
  .app-header .currency-bar input {
    height: 32px;
    padding-inline: 9px;
  }
  .login-card-wide { grid-template-columns: 1fr; }
  .login-main { min-height: auto; }
  .login-side-panel { align-content: start; }
  .detail-layout, .detail-modal-panel .detail-layout, .two-column, .cart-layout { grid-template-columns: 1fr; }
  .conversion-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .similar { order: 3; }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .app-header {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: auto;
    padding: 9px 18px 12px;
    background:
      linear-gradient(180deg, rgba(69, 214, 202, .12), transparent 58%),
      #101820;
  }
  .mobile-menu-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 80;
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-color: rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(8, 15, 21, .72);
    color: #f8fafc;
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
  }
  .mobile-menu-toggle img {
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
  }
  .mobile-menu-toggle.active {
    border-color: rgba(115, 244, 206, .38);
    background: rgba(115, 244, 206, .14);
  }
  .app-header-brand {
    order: 1;
    justify-content: center;
    padding: 5px 56px 0;
  }
  .app-header-brand .brand-logo {
    width: min(166px, 58vw);
    max-height: 60px;
  }
  .app-header-currency {
    order: -1;
    min-width: 0;
    padding: 0 58px;
  }
  .app-header-search {
    display: block;
    order: 2;
    width: 100%;
    padding-top: 2px;
  }
  .dashboard-search-zone {
    display: none;
  }
  .app-header .header-search-zone input {
    min-height: 46px;
    padding: 10px 14px 10px 48px;
    border-width: 1px;
    border-radius: 14px;
    background: rgba(7, 14, 20, .54);
    color: #f8fafc;
    font-size: 15px;
    box-shadow: inset 3px 0 0 rgba(115, 244, 206, .34), 0 10px 22px rgba(0,0,0,.12);
  }
  .app-header .header-search-zone input::placeholder {
    color: rgba(226, 232, 240, .58);
  }
  .app-header .search-icon {
    left: 16px;
  }
  .app-header .header-search-zone:hover input,
  .app-header .header-search-zone input:focus {
    background: rgba(12, 22, 30, .72);
  }
  .app-header .currency-bar {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .app-header .currency-rate {
    display: grid;
    grid-column: auto;
    min-height: 18px;
    justify-items: center;
  }
  .app-header .currency-rate small {
    display: none;
  }
  .app-header .currency-rate strong {
    color: rgba(248, 250, 252, .82);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-header .currency-field {
    display: none;
  }
  .content { padding: 10px 18px 18px; }
  .account-widget {
    position: absolute;
    top: 18px;
    right: 18px;
    justify-self: auto;
  }
  .account-widget summary {
    width: 44px;
    height: 44px;
  }
  .account-widget summary span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .account-popover {
    width: min(286px, calc(100vw - 24px));
  }
  .topbar { align-items: stretch; flex-direction: column; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(246px, 72vw);
    height: 100vh;
    gap: 10px;
    padding: 78px 12px 16px;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 24px 0 54px rgba(0, 0, 0, .34);
  }
  .app-shell.mobile-menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: block;
    border: 0;
    border-radius: 0;
    background: rgba(9, 18, 25, .46);
    backdrop-filter: blur(3px);
  }
  .mobile-menu-backdrop:hover {
    box-shadow: none;
    transform: none;
  }
  .brand-logo {
    width: min(126px, 100%);
    max-height: 52px;
  }
  nav {
    grid-template-columns: 1fr;
  }
  .sidebar nav {
    align-content: start;
    align-items: start;
    grid-auto-rows: min-content;
    gap: 7px;
  }
  .sidebar nav button {
    width: 100%;
    min-height: 40px;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    line-height: 1.1;
  }
  .sidebar nav button svg {
    width: 18px;
    height: 18px;
  }
  .auth-box {
    padding: 10px;
  }
  .login-page {
    min-height: auto;
    padding: 8px 0;
  }
  .login-main,
  .login-side-panel {
    padding: 22px;
  }
  .login-brand-row {
    align-items: center;
    justify-content: center;
  }
  .login-brand-row img {
    width: 150px;
  }
  .login-card h2 {
    font-size: 32px;
  }
  .profile-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-switch button {
    justify-content: center;
    padding: 8px 5px;
  }
  .product-summary {
    gap: 5px;
    margin: 5px 0;
    padding: 5px 7px;
    border-radius: 12px;
  }
  .product-summary span {
    gap: 4px;
    padding: 2px 7px;
    font-size: 11px;
  }
  .filter-panel {
    margin-bottom: 0;
    border-radius: 12px;
  }
  .filter-panel summary {
    min-height: 40px;
    padding: 7px 10px;
  }
  .filter-panel summary > span {
    gap: 7px;
    font-size: 16px;
  }
  .filter-panel summary small {
    max-width: 56%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .filters, .form-grid, .info-grid, .calc-preview, .conversion-grid, .price-grid, .facts-grid, .permission-price-choice, .photo-upload-row, .user-detail-grid { grid-template-columns: 1fr; }
  .user-detail-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .span-2 { grid-column: 1 / -1; }
  .filter-clear { justify-self: stretch; }
  body:has(.floating-cart) .filter-clear { margin-right: 70px; }
  .currency-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .currency-rate {
    grid-column: 1 / -1;
    min-height: 34px;
  }
  h1 { font-size: 24px; }
  .search-zone input { font-size: 16px; }
  .product-area {
    gap: 5px;
  }
  .product-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 0;
  }
  .result-count {
    gap: 5px;
    line-height: 1.05;
    align-items: center;
    color: #6f8090;
  }
  .result-count strong {
    font-size: 15px;
    font-weight: 850;
  }
  .result-count span {
    font-size: 12px;
  }
  .view-toggle {
    width: 100%;
    padding: 2px;
    border-radius: 10px;
  }
  .view-toggle button {
    flex: 1;
    min-height: 32px;
    padding: 4px 6px;
    font-size: 15px;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  table {
    display: grid;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }
  thead {
    display: none;
  }
  tbody {
    display: grid;
    gap: 8px;
  }
  tbody tr {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    grid-template-areas:
      "product product actions"
      "category line actions"
      "price price actions";
    gap: 4px 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }
  tbody tr:hover {
    background: #fff;
  }
  th,
  td {
    display: block;
    padding: 0;
    border-bottom: 0;
    min-width: 0;
  }
  .product-row-main {
    grid-area: product;
  }
  .product-row-category {
    grid-area: category;
    color: var(--muted);
    font-size: 13px;
  }
  .product-row-line {
    grid-area: line;
    color: var(--muted);
    font-size: 13px;
  }
  .product-row-price {
    grid-area: price;
    color: var(--accent-strong);
    font-family: "IBM Plex Mono", "Noto Sans Mono", Consolas, "Courier New", ui-monospace, monospace;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.15;
    white-space: nowrap;
  }
  .product-row-supplier,
  .product-row-status {
    display: none;
  }
  th.actions-col,
  td:last-child,
  tbody td:last-child,
  .product-row-actions {
    position: static;
    grid-area: actions;
    width: auto;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    text-align: right;
  }
  .product-cell {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }
  .row-thumb {
    width: 66px;
    height: 66px;
  }
  td strong {
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  td small {
    color: var(--muted);
    font-size: 13px;
  }
  tbody .row-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }
  tbody .row-actions .icon-only {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr); }
  .qty-control, .cart-total, .cart-item-actions { grid-column: 2; }
  .cart-item-actions button { flex: 1 1 46px; }
  .saved-quote-card { grid-template-columns: 1fr; }
  .saved-quote-card p { white-space: normal; }
  .saved-quote-metrics { justify-content: flex-start; }
  .summary-actions button { flex: 1 1 52px; }
  .cart-head { flex-direction: column; }
  .cart-head button { width: 100%; }
  .section-head { flex-direction: column; }
  .section-head button { width: 100%; }
  .floating-cart { right: 14px; bottom: 18px; }
  .floating-cart:hover { transform: translateY(-2px); }
  .row-actions, .detail-actions { align-items: stretch; }
  .row-actions button:not(.icon-only), .detail-actions button:not(.icon-only) { flex: 1 1 auto; }
  .modal-backdrop {
    place-items: stretch;
    padding: 8px;
    overflow-x: hidden;
  }
  .modal-panel,
  .detail-modal-panel {
    width: 100%;
    max-width: calc(100vw - 16px);
    padding: 12px;
    overflow-x: hidden;
  }
  .modal-head {
    top: -12px;
    margin: -12px -12px 0;
    padding: 12px;
  }
  .modal-actions {
    bottom: -12px;
    margin: 0 -12px -12px;
    padding: 12px;
  }
  .detail-modal-panel .detail-layout,
  .detail-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .detail-panel,
  .detail-media,
  .similar {
    width: 100%;
    max-width: 100%;
  }
  .detail-panel,
  .similar {
    padding: 14px;
  }
  .detail-headline {
    flex-direction: column;
    gap: 12px;
  }
  .detail-headline .detail-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .price-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .purchase-price-group,
  .price-card,
  .facts-grid div,
  .spec-panel {
    max-width: 100%;
  }
  .price-card {
    padding: 10px;
  }
  .primary-price strong,
  .emphasis-price strong {
    font-size: clamp(20px, 9vw, 26px);
  }
  .conversion-grid .price-card strong,
  .price-card strong,
  .facts-grid strong,
  .spec-lines p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .similar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .similar-thumb {
    padding: 4px;
  }
}

