:root {
  --bg: #070915;
  --panel: #11182c;
  --panel-2: #151e35;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --text: #dfe8f4;
  --ink: #102033;
  --muted: #94a3b8;
  --muted-dark: #607086;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: #dce5ef;
  --magenta: #e11e79;
  --violet: #662d80;
  --coral: #ff4a24;
  --rose: #f06767;
  --purple: #8f3fe3;
  --teal: #e11e79;
  --cyan: #ff4a24;
  --gold: #f2b84b;
  --danger: #f25d7a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
}

body.is-locked {
  grid-template-columns: 1fr;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(225, 30, 121, 0.24), transparent 32%),
    linear-gradient(145deg, #070915 0%, #190619 100%);
}

body.is-locked .admin-sidebar,
body.is-locked .admin-main {
  display: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  padding: 22px;
  color: #ffffff;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow: auto;
}

.admin-logo {
  display: block;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(102, 45, 128, 0.2)) padding-box,
    linear-gradient(135deg, rgba(225, 30, 121, 0.82), rgba(102, 45, 128, 0.68), rgba(255, 74, 36, 0.62)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.admin-logo img {
  width: 100%;
  max-height: 72px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(225, 30, 121, 0.18));
}

.admin-sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-sidebar nav button {
  width: 100%;
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-weight: 850;
}

.admin-sidebar nav button::after {
  content: "›";
  color: rgba(255, 255, 255, 0.38);
}

.admin-sidebar nav button.is-active,
.admin-sidebar nav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar nav button.is-active::after {
  color: var(--coral);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 30px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}

.admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-topbar div {
  display: grid;
  gap: 2px;
  text-align: right;
}

.admin-topbar .admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  text-align: left;
}

.admin-topbar strong {
  color: var(--ink);
}

.admin-topbar span {
  color: var(--muted-dark);
  font-weight: 800;
}

.admin-server-status {
  flex: 1 1 auto;
  min-width: min(360px, 100%);
  max-width: 720px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.ghost-button,
.action-button,
.danger-button {
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 900;
}

.ghost-button {
  color: var(--magenta);
  background: #ffffff;
  border: 1px solid rgba(225, 30, 121, 0.38);
}

.action-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--magenta), var(--coral));
  border: 0;
}

.action-button--secondary {
  background: var(--panel);
}

.danger-button {
  color: #ffffff;
  background: var(--danger);
  border: 0;
}

.admin-login {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 24px;
}

body.is-locked .admin-login {
  display: grid;
}

.admin-login__card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 111, 176, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(21, 30, 53, 0.96), rgba(43, 9, 31, 0.96));
  border: 1px solid rgba(255, 111, 176, 0.32);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.admin-login__card img {
  width: 260px;
  max-width: 100%;
}

.admin-login__card p {
  margin: 0 0 6px;
  color: #ff7fba;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-login__card h1 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.05;
}

.admin-login__card span,
.admin-login__card label {
  color: #dfe8f4;
  font-weight: 850;
}

.admin-login__card input {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.admin-login__card small {
  color: #ffd2dd;
  font-weight: 900;
}

.admin-section {
  display: none;
  padding: 30px;
}

.admin-section.is-active {
  display: block;
}

.admin-heading {
  margin-bottom: 24px;
}

.admin-heading p {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.admin-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.summary-card {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 20px;
  color: #ffffff;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 5px solid var(--accent, var(--teal));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--accent, var(--teal));
  border-radius: 8px;
  font-weight: 950;
}

.summary-card small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.08;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 20px;
}

.admin-panel,
.admin-form,
.content-table {
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.08);
}

.admin-panel {
  padding: 22px;
}

.admin-alert {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px 16px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-weight: 850;
}

.admin-alert strong {
  color: #9a3412;
}

.admin-alert--courses {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.admin-alert--courses strong {
  color: #0f172a;
}

.admin-alert-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.admin-alert-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #111827;
  background: #ffd400;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.admin-alert-links a:hover,
.admin-alert-links a:focus-visible {
  background: #ffe466;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head strong {
  color: var(--ink);
  font-size: 20px;
}

.panel-head span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 999px;
  font-weight: 950;
}

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

.compact-item,
.table-row {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.compact-item strong,
.table-row strong {
  color: var(--ink);
}

.compact-item span,
.table-row span {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding: 20px;
}

.admin-form--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.data-panel textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form label:has(textarea),
.admin-form .full-field,
.admin-form button {
  grid-column: 1 / -1;
}

.admin-form-fieldset {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 2px;
  padding: 16px;
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-form-fieldset legend {
  padding: 0 8px;
  color: #ffd400;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-form-fieldset--promotions {
  border-color: rgba(82, 183, 255, 0.32);
  background: rgba(82, 183, 255, 0.06);
}

.admin-form-fieldset--promotions legend {
  color: #52b7ff;
}

.banner-size-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px dashed rgba(225, 30, 121, 0.42);
  border-radius: 8px;
}

.banner-size-guide strong {
  width: 100%;
  color: var(--magenta);
}

.banner-size-guide span {
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.content-table {
  display: grid;
  gap: 8px;
  padding: 16px;
  min-width: 0;
}

.table-row {
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.55fr) auto;
  align-items: center;
  min-width: 0;
}

.table-row--product {
  grid-template-columns: 74px minmax(230px, 1fr) minmax(98px, auto) minmax(245px, auto);
  overflow: hidden;
}

.quick-price-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  align-items: end;
  padding: 10px;
  min-width: 0;
  background: #ffffff;
  border: 1px dashed rgba(225, 30, 121, 0.34);
  border-radius: 8px;
}

.quick-price-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-field--wide {
  grid-column: span 2;
}

.quick-price-form input,
.quick-price-form select {
  min-height: 34px;
  width: 100%;
  padding: 7px 9px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.quick-price-form button {
  min-width: 0;
  width: 100%;
}

.quick-price-form input[readonly],
.admin-form input[readonly] {
  color: #334155;
  background: #eef6ff;
  border-color: #bfdbfe;
}

.quick-price-form .price-safe-button {
  background: #f59e0b;
}

.quick-price-form .price-pvp-button {
  color: #0f172a;
  background: #ffd400;
}

.price-margin-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.price-margin-panel div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

.price-margin-panel span,
.price-margin-panel small {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-margin-panel strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.price-margin-panel div:nth-child(2) strong {
  color: var(--magenta);
}

.price-margin-panel div:nth-child(3) {
  border-color: #f2b84b;
  background: #fffbeb;
}

.price-margin-panel div:nth-child(4) {
  border-color: #14b8a6;
  background: #ecfeff;
}

.price-margin-panel div:nth-child(4) strong {
  color: #0f766e;
}

.price-margin-panel div:nth-child(5) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.product-thumb {
  width: 74px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 7px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 111, 176, 0.18), transparent 38%),
    #f4f6fb;
  border: 1px solid rgba(225, 30, 121, 0.18);
  border-radius: 8px;
}

.table-row--product > div {
  min-width: 0;
}

.table-row--product > div strong,
.table-row--product > div span {
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.status-pill--active {
  color: #065f46;
  background: #d1fae5;
}

.status-pill--inactive {
  color: #9f1239;
  background: #ffe4e6;
}

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

.table-row button {
  min-height: 34px;
  padding: 8px 10px;
  color: #ffffff;
  background: var(--panel);
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.table-row button[data-delete] {
  background: var(--danger);
}

.table-row button[data-toggle] {
  background: var(--magenta);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.admin-actions--products {
  align-items: center;
  margin-top: 0;
  padding: 12px 14px;
  background: #eef7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.admin-actions--products span {
  color: #475569;
  font-weight: 850;
}

.exchange-rate-control {
  display: grid;
  gap: 5px;
  min-width: 170px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.exchange-rate-control input {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-weight: 900;
}

.admin-actions--products small[data-exchange-rate-note] {
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.cbm-calculator {
  display: grid;
  gap: 14px;
  margin: 14px 0 20px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.06);
}

.cbm-calculator__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.cbm-calculator__head p {
  margin: 0 0 4px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cbm-calculator__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.cbm-calculator__head span {
  max-width: 440px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.cbm-calculator__head span[data-tone="success"] {
  color: #047857;
}

.cbm-calculator__head span[data-tone="warning"] {
  color: #b45309;
}

.cbm-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(5, minmax(100px, 1fr));
  gap: 10px;
  align-items: end;
}

.cbm-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cbm-form input,
.cbm-form select {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.cbm-form__product {
  grid-column: span 2;
}

.cbm-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cbm-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.cbm-results article {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

.cbm-results span,
.cbm-results small {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cbm-results strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cbm-results article:nth-child(4) {
  border-color: #14b8a6;
  background: #ecfeff;
}

.cbm-results:not(.express-results) article:nth-child(6) {
  border-color: #f2b84b;
  background: #fffbeb;
}

.express-results article:nth-child(7) {
  border-color: #14b8a6;
  background: #f0fdfa;
}

.express-results article:nth-child(8) {
  border-color: #f2b84b;
  background: #fffbeb;
}

.cbm-results__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  color: #475569;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

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

.product-module-tabs button {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-module-tabs button:hover {
  border-color: #ec4899;
  transform: translateY(-1px);
}

.product-module-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--magenta), #ef4444);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.22);
}

.product-module-tabs strong {
  font-size: 15px;
  font-weight: 950;
}

.product-module-tabs span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.product-module-tabs button.is-active span {
  color: rgba(255, 255, 255, 0.86);
}

.product-module-panel {
  min-width: 0;
}

.product-module-panel[hidden] {
  display: none !important;
}

.product-block-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.product-block-search label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-block-search input {
  min-height: 42px;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-weight: 850;
}

.product-block-search button {
  min-height: 42px;
}

.product-admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 20px;
  align-items: start;
}

.product-admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-admin-tabs button {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(54px, auto);
  gap: 5px 10px;
  align-items: center;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-left: 5px solid #cbd5e1;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 12px 26px rgba(16, 32, 51, 0.05);
}

.product-admin-tabs button.is-active {
  border-left-color: var(--magenta);
  background: #fff7fb;
}

.product-admin-tabs strong {
  color: var(--ink);
  font-size: 16px;
}

.product-admin-tabs span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.product-admin-tabs small {
  min-width: 34px;
  min-height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background: var(--panel);
  border-radius: 999px;
  font-weight: 950;
}

.product-admin-workspace {
  min-width: 0;
}

.product-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(125px, 0.72fr)) repeat(3, auto);
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.product-admin-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-admin-toolbar input,
.product-admin-toolbar select {
  min-height: 40px;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-weight: 850;
}

.product-admin-toolbar span {
  grid-column: 1 / -1;
  color: #475569;
  font-weight: 950;
}

.product-admin-toolbar button {
  min-height: 40px;
  align-self: end;
}

.product-form-mode {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 18px 0 10px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff7fb;
  border: 1px solid #f1a7ca;
  border-left: 5px solid var(--magenta);
  border-radius: 8px;
}

.product-form-mode > div { display: grid; gap: 4px; }
.product-form-mode strong { font-size: 18px; }
.product-form-mode span { color: #64748b; font-size: 12px; font-weight: 850; }
.product-form-mode.is-editing { background: #f0f9ff; border-color: #7dd3fc; border-left-color: #0284c7; }

.content-table--products {
  padding: 0;
  overflow: hidden;
}

.catalog-admin-empty {
  display: grid;
  gap: 4px;
  padding: 20px;
  color: #475569;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-weight: 850;
}

.catalog-admin-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.data-panel textarea {
  min-height: 360px;
  color: #dfe8f4;
  background: #070915;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.server-status {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #dfe8f4;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.server-status[data-tone="success"] {
  border-color: #14b8a6;
  color: #064e3b;
  background: #dffdf7;
}

.server-status[data-tone="warning"] {
  border-color: #f2b84b;
  color: #713f12;
  background: #fff4d6;
}

@media (max-width: 1180px) {
  body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-logo img {
    max-width: 360px;
  }

  .admin-sidebar nav,
  .summary-grid,
  .panel-grid,
  .cbm-form,
  .cbm-results,
  .admin-form,
  .admin-form--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .admin-topbar,
  .panel-grid,
  .summary-grid,
  .product-admin-toolbar,
  .cbm-form,
  .cbm-results,
  .admin-form,
  .admin-form--wide,
  .table-row,
  .quick-price-form,
  .price-margin-panel {
    grid-template-columns: 1fr;
  }

  .admin-form-fieldset {
    grid-template-columns: 1fr;
  }

  .product-module-tabs,
  .product-block-search {
    grid-template-columns: 1fr;
  }

  .product-module-tabs button {
    min-height: 70px;
  }

  .product-form-mode {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 14px 18px;
  }

  .admin-topbar div {
    text-align: left;
  }

  .admin-topbar__actions {
    width: 100%;
  }

  .admin-topbar__actions .ghost-button {
    flex: 1 1 136px;
  }

  .admin-server-status {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .admin-section {
    padding: 18px;
  }

  .admin-actions--products {
    align-items: stretch;
  }

  .admin-actions--products .action-button,
  .exchange-rate-control {
    width: 100%;
  }

  .cbm-calculator {
    padding: 12px;
  }

  .cbm-calculator__head {
    display: grid;
  }

  .cbm-calculator__head span {
    max-width: none;
    text-align: left;
  }

  .cbm-form__product {
    grid-column: auto;
  }

  .cbm-form__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cbm-form__actions button {
    width: 100%;
  }

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

  .product-admin-tabs button {
    min-height: 0;
    padding: 12px;
  }

  .content-table {
    padding: 0;
  }

  .table-row--product {
    gap: 10px;
    padding: 12px;
  }

  .product-thumb {
    width: 86px;
  }

  .table-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .table-actions button,
  .quick-price-form button {
    flex: 1 1 120px;
  }

  .quick-price-form {
    gap: 10px;
    padding: 10px;
  }

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

  .quick-price-form label {
    font-size: 10px;
  }

  .price-margin-panel {
    padding: 8px;
  }

  .price-margin-panel div {
    padding: 9px;
  }

  .price-margin-panel strong {
    font-size: 15px;
  }
}
[data-local-pricing-field][hidden],
[data-import-pricing-field][hidden] {
  display: none !important;
}
