@font-face {
  font-family:Onest;
  src:url('/fonts/Onest-Regular.ttf') format('truetype');
  font-weight:400;
  font-display:optional
}

@font-face {
  font-family:Onest;
  src:url('/fonts/Onest-Medium.ttf') format('truetype');
  font-weight:500;
  font-display:optional
}

@font-face {
  font-family:Onest;
  src:url('/fonts/Onest-SemiBold.ttf') format('truetype');
  font-weight:600 800;
  font-display:optional
}

@font-face {
  font-family:Unbounded;
  src:url('/fonts/Unbounded-Light.ttf') format('truetype');
  font-weight:300;
  font-display:optional
}

@font-face {
  font-family:JetBrains;
  src:url('/fonts/JetBrainsMono-Medium.ttf') format('truetype');
  font-weight:400 700;
  font-display:optional
}

:root {
  --bg:#f4f8f9;
  --surface:#fff;
  --surface-soft:#edf3f4;
  --ink:#03111a;
  --muted:#627580;
  --line:#dce6e9;
  --accent:#0b7a75;
  --accent-soft:#e4f3ef;
  --dn:#d21fc4;
  --dr:#e2512f;
  --dw:#2f6fd0;
  --error:#a63238;
  --error-bg:#fff0f0;
  --warning:#825b10;
  --warning-bg:#fff8e8;
  --radius:14px;
  font-family:Onest,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  min-width:0;
  font-size:14px;
  line-height:1.5
}

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

button,a,input,select,textarea {
  touch-action:manipulation
}

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

a {
  color:var(--accent);
  text-decoration:none
}

a:hover {
  text-decoration:underline
}

button {
  cursor:pointer
}

button:disabled {
  cursor:default;
  opacity:.52
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #66b8ae;
  outline-offset:3px
}

img,svg {
  max-width:100%
}

h1,h2,h3,p {
  margin:0
}

h1 {
  font-family:Unbounded,Onest,sans-serif;
  font-size:clamp(23px,2.6vw,32px);
  font-weight:300;
  line-height:1.3;
  letter-spacing:-.04em
}

h2 {
  font-size:20px;
  line-height:1.35
}

h3 {
  font-size:16px
}

small {
  font-size:12px
}

code,.mono {
  font-family:JetBrains,monospace;
  font-size:.9em;
  overflow-wrap:anywhere
}

hr {
  border:0;
  border-top:1px solid var(--line);
  margin:24px 0
}

[hidden] {
  display:none!important
}

.skip-link {
  position:fixed;
  top:-100px;
  left:12px;
  padding:10px;
  background:#fff;
  z-index:100
}

.skip-link:focus {
  top:10px
}

.loading {
  padding:36px;
  color:var(--muted)
}

.muted,.hint {
  color:var(--muted)
}

.hint {
  font-size:12px
}

.eyebrow {
  font:11px JetBrains,monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted)
}

.stack {
  display:grid;
  gap:16px;
  min-width:0
}

.row,.actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-width:0
}

.actions {
  margin-top:16px
}

.spread {
  justify-content:space-between
}

.card,.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  min-width:0
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:26px
}

.page-heading p {
  color:var(--muted);
  margin-top:7px
}

.empty-state {
  padding:32px 20px;
  color:var(--muted);
  text-align:center
}

.empty-state h2 {
  color:var(--ink);
  margin-bottom:8px
}

.btn,button.primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  max-width:100%;
  border:1px solid var(--accent);
  border-radius:9px;
  background:var(--accent);
  padding:9px 16px;
  color:#fff;
  text-align:center;
  font-weight:500;
  line-height:1.4;
  text-decoration:none;
  white-space:normal
}

.btn:hover {
  text-decoration:none;
  filter:brightness(.96)
}

.btn.secondary,.btn-secondary,button.secondary {
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line)
}

.btn.danger,.btn-danger {
  background:var(--error-bg);
  color:var(--error);
  border-color:#edc4c7
}

.btn.text {
  background:transparent;
  color:var(--accent);
  border-color:transparent;
  padding-left:0
}

.btn.small {
  min-height:32px;
  padding:5px 10px;
  font-size:12px
}

.field,.form-field {
  display:grid;
  gap:7px;
  min-width:0
}

.field label,.form-field label {
  font-weight:500
}

.input,input:not([type=checkbox]):not([type=radio]),select,textarea {
  width:100%;
  min-width:0;
  max-width:100%;
  border:1px solid #c8d6dc;
  border-radius:8px;
  padding:10px 12px;
  background:#fff;
  color:var(--ink);
  min-height:42px
}

input[type=checkbox],input[type=radio] {
  accent-color:var(--accent);
  width:17px;
  height:17px;
  flex:none
}

label.check,.checkbox {
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:13px
}

textarea {
  min-height:90px;
  resize:vertical
}

.alert,.note {
  padding:13px 16px;
  border:1px solid var(--line);
  background:var(--surface-soft);
  border-radius:9px;
  overflow-wrap:anywhere
}

.alert.error,.note.error,.failure {
  color:var(--error);
  background:var(--error-bg);
  border-color:#edc4c7
}

.alert.success,.note.success {
  color:#14694f;
  background:var(--accent-soft);
  border-color:#b9dfd2
}

.alert.warning,.note.warning {
  color:var(--warning);
  background:var(--warning-bg);
  border-color:#ecd9a7
}

.badge {
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:6px;
  background:var(--surface-soft);
  color:var(--muted);
  font-size:11px;
  line-height:1.3
}

.badge.active,.badge.bound {
  background:var(--accent-soft);
  color:#14694f
}

.badge.expired,.badge.suspended {
  background:var(--error-bg);
  color:var(--error)
}

.cabinet-shell {
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  min-height:100dvh
}

.sidebar {
  position:sticky;
  top:0;
  height:100dvh;
  background:var(--surface);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  padding:28px 18px 20px;
  gap:24px;
  min-width:0;
  overflow-y:auto
}

.brand {
  font-family:Unbounded,sans-serif;
  font-size:25px;
  font-weight:300;
  letter-spacing:-1.5px;
  color:var(--ink);
  line-height:1.3;
  white-space:nowrap
}

.brand span {
  color:var(--accent)
}

.brand:hover {
  text-decoration:none
}

.sidebar-brand {
  padding:0 12px
}

.context-picker {
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--bg);
  min-width:0
}

.context-picker label {
  font-size:11px;
  color:var(--muted)
}

.context-picker select {
  margin-top:5px;
  font-weight:500;
  font-size:12px;
  padding:8px;
  min-height:38px
}

.role-label {
  font-size:11px;
  color:var(--muted);
  margin-top:7px
}

.nav-group {
  display:grid;
  gap:4px
}

.nav-group+.nav-group {
  margin-top:20px
}

.nav-label {
  padding:0 12px 7px;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#8a989e
}

.nav-link {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 12px;
  border-radius:8px;
  color:#52646e;
  font-weight:500;
  font-size:13px
}

.nav-link:hover {
  background:var(--bg);
  text-decoration:none
}

.nav-link[aria-current=page] {
  color:var(--accent);
  background:var(--accent-soft)
}

.product-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:7px;
  font:11px JetBrains,monospace;
  background:#f5e7f4;
  color:var(--dn);
  flex:none
}

.product-mark.deepreef {
  background:#fbece5;
  color:var(--dr)
}

.product-mark.deepwhale {
  background:#e9effb;
  color:var(--dw)
}

.sidebar-footer {
  margin-top:auto;
  display:grid;
  gap:10px;
  padding:16px 12px 0;
  border-top:1px solid var(--line)
}

.user-name {
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere
}

.user-email {
  font-size:11px;
  color:var(--muted);
  overflow-wrap:anywhere
}

.sidebar-footer .actions {
  margin-top:0
}

.sidebar-footer button {
  padding:0;
  background:none;
  border:0;
  font-size:12px;
  color:var(--muted)
}

.main-column {
  min-width:0;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

.topbar {
  height:78px;
  border-bottom:1px solid var(--line);
  background:#ffffffb8;
  padding:0 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}

.breadcrumb {
  font-size:12px;
  color:var(--muted);
  min-width:0;
  overflow-wrap:anywhere
}

.topbar-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex:none
}

.mobile-menu {
  display:none
}

.main-content {
  padding:36px;
  width:100%;
  max-width:1480px;
  margin:0 auto;
  min-width:0;
  flex:1 0 auto
}

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

.product-card {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px;
  position:relative
}

.product-card .product-mark {
  width:40px;
  height:40px;
  font-size:15px;
  border-radius:11px
}

.product-card .actions {
  margin-top:auto;
  padding-top:7px
}

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

.product-title h2 {
  font-size:22px;
  letter-spacing:-.5px
}

.product-title p {
  font-size:12px;
  color:var(--muted)
}

.metric-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));
  gap:14px
}

.metric {
  min-width:0
}

.metric span {
  display:block;
  color:var(--muted);
  font-size:11px
}

.metric strong {
  display:block;
  font-family:JetBrains,monospace;
  font-size:22px;
  font-weight:400;
  margin-top:5px
}

.data-table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:12px
}

.table-wrap {
  width:100%;
  max-width:100%;
  min-width:0
}

.data-table th {
  text-align:left;
  font:10px JetBrains,monospace;
  color:var(--muted);
  background:var(--bg);
  padding:12px 10px
}

.data-table td {
  padding:15px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  overflow-wrap:anywhere
}

.data-table .actions {
  margin-top:0;
  gap:6px
}

.cab-key-grid,.cab-list {
  display:grid;
  gap:12px;
  min-width:0
}

.cab-key,.cab-row {
  border:1px solid var(--line);
  padding:16px;
  border-radius:10px;
  min-width:0;
  overflow-wrap:anywhere
}

.cab-fields,.cab-filter {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap:12px;
  min-width:0
}

.cab-pager {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px
}

.auth-page {
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 20px
}

.auth-card {
  width:100%;
  max-width:480px;
  padding:32px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff
}

.auth-card h1 {
  font-size:24px;
  margin-bottom:12px
}

.auth-card>.brand {
  display:block;
  margin-bottom:28px
}

.auth-card .stack {
  margin-top:20px
}

.auth-card .actions {
  align-items:stretch
}

.auth-card .actions .btn {
  flex:1
}

.auth-card form {
  display:grid;
  gap:16px
}

.auth-card .tabs {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.auth-card .tabs button {
  flex:1
}

.auth-footer {
  text-align:center;
  font-size:12px;
  margin-top:24px;
  color:var(--muted)
}

dialog {
  max-width:min(640px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  width:100%;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--ink)
}

dialog::backdrop {
  background:#03111a66
}

dialog header,dialog .dialog-head {
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:14px;
  position:sticky;
  top:0;
  background:#fff
}

dialog .dialog-body,dialog form {
  padding:22px
}

dialog footer {
  padding:16px 22px;
  border-top:1px solid var(--line)
}

.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
}

@media(max-width:1100px) {
  .cabinet-shell {
    grid-template-columns:230px minmax(0,1fr)
  }
  .sidebar {
    padding-left:12px;
    padding-right:12px
  }
  .topbar {
    padding:0 24px
  }
  .main-content {
    padding:28px 24px
  }
  .product-grid {
    grid-template-columns:1fr
  }
  .page-heading {
    flex-wrap:wrap
  }
}

@media(max-width:760px) {
  .cabinet-shell {
    display:block
  }
  .sidebar {
    display:none;
    position:relative;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:20px;
    gap:18px
  }
  .cabinet-shell.menu-open .sidebar {
    display:flex
  }
  .sidebar-footer {
    margin-top:8px
  }
  .sidebar-brand {
    padding:0
  }
  .topbar {
    height:64px;
    padding:0 16px;
    gap:10px
  }
  .mobile-menu {
    display:inline-flex
  }
  .breadcrumb {
    font-size:11px
  }
  .main-content {
    padding:24px 16px
  }
  .card,.panel {
    padding:18px;
    border-radius:12px
  }
  .page-heading {
    gap:14px;
    margin-bottom:20px
  }
  .product-card {
    padding:20px
  }
  .product-grid {
    gap:14px
  }
  .page-heading .actions {
    margin-top:0
  }
  .auth-page {
    padding:20px 14px
  }
  .auth-card {
    padding:24px 20px
  }
  .data-table,.data-table tbody,.data-table tr,.data-table td {
    display:block;
    width:100%
  }
  .data-table thead {
    display:none
  }
  .data-table tr {
    border:1px solid var(--line);
    border-radius:10px;
    margin-bottom:12px;
    padding:10px
  }
  .data-table td {
    padding:7px 4px;
    border:0
  }
  .data-table td[data-label]::before {
    content:attr(data-label);
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-bottom:3px
  }
  .actions>.btn {
    flex-grow:1
  }
  .topbar-actions .btn {
    min-height:36px;
    padding:6px 10px;
    font-size:12px
  }
  .cab-key,.cab-row {
    padding:13px
  }
  .metric strong {
    font-size:20px
  }
}

.cab-cart-lines {
  display:grid;
  gap:18px;
  min-width:0;
}
.cab-checkout-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,320px); gap:20px; align-items:start; }
.cab-checkout-summary { position:sticky; top:20px; }
.cab-checkout-summary .metric { font-size:14px; }
@media(max-width:1100px) {
  .cab-checkout-grid { grid-template-columns:1fr; }
  .cab-checkout-summary { position:static; }
}

.cab-line {
  padding:20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  min-width:0;
}

.cab-money-rows {
  display:grid;
  gap:9px;
  margin:16px 0;
}

.cab-money-rows>div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.cab-money-rows strong {
  font-family:JetBrains,monospace;
  font-size:13px;
}

.cab-money-rows dd { margin:0; text-align:right; }
.catalog-card { align-content:start; }
.stack>.badge { justify-self:start; width:fit-content; }
.catalog-card.selected { border-color:var(--accent); }
.cabinet-footer { display:flex; gap:16px; flex-wrap:wrap; padding:20px 32px; font-size:12px; color:var(--muted); margin-top:auto; }
.catalog-price { font-size:24px; font-weight:600; }
.catalog-price span { font-size:13px; font-weight:400; color:var(--muted); }
.feature-list { padding-left:20px; margin:0; }
.feature-list li { margin:6px 0; }
details>summary { cursor:pointer; font-weight:500; }
details[open]>summary { margin-bottom:18px; }

.fixture-banner {
  padding:8px 16px;
  background:#fff2c9;
  border-bottom:1px solid #ecd9a7;
  color:#6b5013;
  font-size:12px;
  text-align:center
}

.cab-key-value {
  overflow-wrap:anywhere;
  word-break:break-word;
  font-family:JetBrains,monospace
}

.cab-key-header,.cab-row-header {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap
}

.cab-key-meta {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px
}

.cab-inline-form {
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line)
}

fieldset {
  border:1px solid var(--line);
  border-radius:9px;
  padding:14px;
  min-width:0
}

legend {
  padding:0 6px;
  font-weight:500
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}

/* Единый вход Whale52: знакомая карточка и нативный выбор типа с клавиатуры. */
.auth-wrap { width:100%; max-width:480px; }
.auth-brand { display:block; text-align:center; margin-bottom:12px; }
.auth-context { text-align:center; color:var(--muted); font-size:14px; margin-bottom:28px; }
.auth-heading { text-align:center; margin-bottom:24px; }
.auth-heading h1 { margin:8px 0 0; }
.auth-card { box-sizing:border-box; }
.auth-card>.stack { margin-top:0; }
.auth-divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; text-align:center; }
.auth-divider::before,.auth-divider::after { content:''; height:1px; flex:1; background:var(--line); }
.account-type { display:flex; min-width:0; margin:0; padding:4px; border:1px solid var(--line); border-radius:12px; background:var(--bg); gap:4px; }
.account-type label { flex:1; min-width:0; position:relative; cursor:pointer; }
.account-type input { position:absolute; opacity:0; width:1px; height:1px; }
.account-type span { display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 6px; text-align:center; border:1px solid transparent; border-radius:9px; font-size:13px; line-height:1.35; }
.account-type input:checked+span { background:#fff; border-color:var(--line); color:var(--ink); font-weight:500; box-shadow:0 1px 4px #0000000a; }
.account-type input:focus-visible+span { outline:2px solid var(--accent); outline-offset:2px; }
.account-type input:disabled+span { cursor:default; }
.account-type input:disabled:not(:checked)+span { opacity:.55; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.registration-company { min-width:0; margin:0!important; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--bg); }
.registration-company legend { padding:0 6px; font-size:13px; color:var(--muted); }
.registration-company[hidden] { display:none; }
.company-numbers { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.company-numbers input { min-width:0; font-family:JetBrains,monospace; }
.product-catalog { margin-top:24px; }
.product-catalog>summary { width:fit-content; cursor:pointer; list-style:none; }
.product-catalog>summary::-webkit-details-marker { display:none; }
.product-catalog[open]>summary { margin-bottom:20px; }
@media(max-width:480px) {
  .auth-page { align-items:flex-start; padding:24px 16px; }
  .auth-card { padding:20px; }
  .registration-company { padding:12px; }
  .company-numbers { grid-template-columns:1fr; }
}

/* Геометрия бренда не зависит от сети и подстановки шрифта. */
.brand-symbol { display:inline-block; width:140px; height:33px; fill:currentColor; vertical-align:middle; }
.brand-accent { fill:var(--accent); }
.boot-card { min-height:240px; display:grid; place-items:center; color:var(--muted); }
.route-progress { position:fixed; top:0; left:0; right:0; height:3px; background:var(--accent); z-index:100; }
#app[aria-busy="true"] { cursor:progress; }

.catalog-product { display:flex; flex-direction:column; gap:16px; }
.catalog-product-heading { display:flex; align-items:center; gap:12px; min-height:36px; }
.catalog-description { min-height:3em; }
.catalog-availability { min-height:3em; }
.catalog-product-actions { margin-top:auto; display:flex; flex-direction:column; align-items:stretch; gap:16px; }
.catalog-product-actions .btn { width:100%; }
.catalog-site { min-height:24px; font-size:13px; }
/* Логотип остаётся на одной высоте при смене входа, регистрации и шага кода. */
.auth-page { align-items:flex-start; padding-top:48px; }
@media(max-width:480px) { .auth-page { padding-top:24px; } }

/* Единые элементы управления кабинета. */
:root { --control-height:44px; --control-radius:10px; }
.btn,button.primary { min-height:var(--control-height); border-radius:var(--control-radius); padding:10px 16px; font-size:14px; }
.btn.small { min-height:36px; padding:6px 12px; }
.input,input:not([type=checkbox]):not([type=radio]),select { min-height:var(--control-height); border-radius:var(--control-radius); font-size:14px; line-height:22px; padding:10px 12px; }
select { -webkit-appearance:none; appearance:none; padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23627580' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:16px; }
summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; list-style:none; border-radius:10px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:''; width:8px; height:8px; flex:none; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin:0 4px 4px; }
details[open]>summary::after { transform:rotate(225deg); margin-top:6px; }
.btn:active:not(:disabled) { filter:brightness(.91); }
.btn:disabled,.btn[aria-disabled=true] { opacity:.5; cursor:not-allowed; filter:none; }
a.btn:focus-visible,summary:focus-visible { outline:3px solid #66b8ae; outline-offset:3px; }
.empty-products { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.empty-products .product-catalog { margin-top:4px; width:100%; }
.empty-products .product-grid { margin-top:16px; }
.profile-page { max-width:960px; }
.profile-section { gap:24px; }
.profile-form { max-width:640px; border-top:1px solid var(--line); padding-top:20px; }
.profile-form .btn { justify-self:start; }
.profile-form .hint,.profile-form>p { max-width:65ch; }
.profile-form h3 { font-size:15px; }
.promo-form { display:grid; grid-template-columns:minmax(140px,1fr) minmax(180px,2fr) auto; align-items:end; gap:12px; }
.promo-form .btn { margin:0; }
.cart-promos { display:grid; gap:12px; }
.applied-promo { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.documents-page { max-width:960px; }
.document-links { display:grid; gap:12px; }
.operator-data { display:grid; grid-template-columns:160px 1fr; gap:10px 24px; overflow-wrap:anywhere; }
.operator-data dd { margin:0; }
.public-document { max-width:960px; margin:0 auto; padding:32px 20px; }
.public-document-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:32px; }
@media(max-width:600px) {
 .promo-form { grid-template-columns:1fr; }
 .profile-form .btn { width:100%; }
 .operator-data { grid-template-columns:1fr; gap:4px; }
 .operator-data dd { margin-bottom:12px; }
 .public-document-header { flex-wrap:wrap; }
}
.context-picker select { min-height:44px; padding:10px 36px 10px 12px; font-size:14px; }
.topbar-actions .btn { min-height:44px; padding:10px 16px; font-size:14px; }
.promo-panel { padding:12px 20px; }
.promo-panel[open] .promo-form { margin-top:12px; }
.promo-panel[open]>.hint { margin-top:12px; }
/* Один нативный select со штатной видимой стрелкой, без наложения второй. */
.context-picker select { appearance:auto; -webkit-appearance:menulist; background-image:none; padding-right:12px; }
.sidebar-tagline { margin:6px 12px 20px; color:var(--muted); font-size:12px; }
.social-yandex { color:#fff; background:#000; border-color:#000; width:100%; position:relative; }
.yandex-sign { font-family:Arial,sans-serif; font-weight:700; font-size:23px; line-height:1; color:#fff; background:#fc3f1d; width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; }
.marketing-pending { color:var(--muted); }
.social-vk { background:#0077ff; border-color:#0077ff; color:#fff; width:100%; }
.social-vk svg { flex:none; width:28px; height:28px; }
/* UI-05: описания занимают одинаковые строки, действие остаётся у нижнего края. */
.catalog-description { display:grid; gap:8px; line-height:1.6; }
.catalog-product { min-height:340px; }

/* UI-06: opt-in analytics controls — absent entirely until a real counter
   and an approved privacy notice are configured. */
.w52-analytics-settings {
  position:fixed;
  inset:auto 12px 12px auto;
  z-index:50;
  padding:7px 10px;
  font:500 11px/1.4 Onest,Arial,sans-serif;
  border:1px solid #cbdadd;
  border-radius:10px;
  background:#fff;
  color:#53696e;
  box-shadow:0 2px 12px #0a222011;
}
.w52-analytics-settings:hover,
.w52-analytics-settings:focus-visible { color:#075f5a; border-color:#0b7a75; }
.w52-analytics-panel {
  position:fixed;
  inset:auto 12px 54px auto;
  z-index:100;
  width:min(390px,calc(100vw - 24px));
  padding:18px 20px;
  border:1px solid #dce6e8;
  border-radius:16px;
  box-shadow:0 12px 48px #103b3b22;
  background:#fff;
  color:#15252a;
  font:400 14px/1.5 Onest,Arial,sans-serif;
}
.w52-analytics-panel p { margin:0 0 12px; }
.w52-analytics-panel a { text-decoration:underline; text-underline-offset:3px; color:#0b7a75; }
.w52-analytics-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.w52-analytics-choice {
  min-height:44px;
  padding:10px 12px;
  border:1px solid #cddadc;
  border-radius:10px;
  background:#fff;
  color:#15252a;
}
.w52-analytics-choice:last-child { border-color:#0b7a75; background:#0b7a75; color:#fff; }
@media(max-width:420px) {
  .w52-analytics-actions > button { flex:1 1 130px; }
  .w52-analytics-panel { inset:auto 12px 58px 12px; width:auto; }
}
