/* Omni Chat — shared cabinet (Mini App reference)
 * Used by /tg-register/ and web #profile-layer.
 * Tokens: --omni-* from /proomni-static/shared/tokens.css
 */
:root {
  --cabinet-font: var(--omni-font-ui, "Onest", "Segoe UI", system-ui, sans-serif);
}
.omni-cabinet,
.omni-cabinet * {
  --font: var(--cabinet-font);
}
.omni-cabinet {
  font-family: var(--cabinet-font);
  color: var(--omni-text, #f2f0eb);
  box-sizing: border-box;
}
.omni-cabinet *,
.omni-cabinet *::before,
.omni-cabinet *::after {
  box-sizing: border-box;
}

/* Web overlay shell (chat.proomni.net profile dialog)
 * Desktop: slide in from the right edge.
 * Mobile: slide down from the top.
 * Cabinet covers chrome (sidebar logo, avatar) — they stay in DOM underneath.
 */
.profile-layer.omni-cabinet-layer {
  --cabinet-slide-dur: 0.4s;
  --cabinet-slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  /* Above .app-sidebar (70) and .btn-login (60) so logo/avatar sit under the menu. */
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.profile-layer.omni-cabinet-layer[hidden] {
  display: none !important;
}
.profile-layer.omni-cabinet-layer.is-open {
  pointer-events: auto;
}
.omni-cabinet-layer .profile-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity calc(var(--cabinet-slide-dur) * 0.85) ease;
}
.omni-cabinet-layer.is-open .profile-scrim {
  opacity: 1;
}
.omni-cabinet-layer .profile-panel.omni-cabinet {
  position: relative;
  z-index: 1;
  width: min(420px, 100vw);
  max-height: 100dvh;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--omni-bg-deep, #100e0c);
  border: 0;
  border-left: 1px solid rgba(138, 134, 128, 0.22);
  border-radius: 0;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.45);
  color: var(--omni-text, #f2f0eb);
  transform: translate3d(105%, 0, 0);
  transition: transform var(--cabinet-slide-dur) var(--cabinet-slide-ease);
  will-change: transform;
}
.omni-cabinet-layer.is-open .profile-panel.omni-cabinet {
  transform: translate3d(0, 0, 0);
}
/* Mobile/tablet chrome (matches chat ≤920px): sheet slides down from the top */
@media (max-width: 920px) {
  .omni-cabinet-layer {
    align-items: flex-start;
    justify-content: stretch;
  }
  .omni-cabinet-layer .profile-panel.omni-cabinet {
    width: 100%;
    height: auto;
    max-height: min(92dvh, 100%);
    border-left: 0;
    border-bottom: 1px solid rgba(138, 134, 128, 0.22);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -108%, 0);
  }
  .omni-cabinet-layer.is-open .profile-panel.omni-cabinet {
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .omni-cabinet-layer {
    --cabinet-slide-dur: 0.01s;
  }
  .omni-cabinet-layer .profile-scrim,
  .omni-cabinet-layer .profile-panel.omni-cabinet {
    transition: none;
  }
}
/* Pin chrome under the open cabinet (do not lift logo/avatar above the menu). */
body.is-profile-open .app-sidebar,
body.is-profile-open .btn-login,
body.is-profile-open .topbar,
body.is-profile-open .side-burger,
body.is-profile-open .omni-rail-burger,
body.is-profile-open .omni-rail-scrim {
  z-index: 60;
}
/* Chrome stub — final rules live after .title-with-icon (cascade). */
.omni-cabinet-layer .profile-main > .profile-head {
  display: none !important;
}
.omni-cabinet-layer .cabinet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.omni-cabinet-layer .cabinet-status {
  margin: 8px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  min-height: 1.2em;
  text-align: center;
  font-size: 0.82rem;
  color: var(--omni-text-secondary, #9a9690);
}
.omni-cabinet-layer .cabinet-status.is-ok { color: var(--omni-success, #3dba7a); }
.omni-cabinet-layer .cabinet-status.is-err { color: #e07070; }
.omni-cabinet-layer .cabinet-legal {
  margin: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  text-align: center;
  font-size: 0.72rem;
  color: #a6733d;
}
.omni-cabinet-layer .cabinet-legal a {
  color: inherit;
  text-decoration: none;
}
.omni-cabinet-layer .cabinet-legal a:hover { text-decoration: underline; }
.omni-cabinet-layer .cabinet-legal .sep {
  margin: 0 6px;
  opacity: 0.7;
}
/* Web: outer .cabinet-scroll owns scrolling; profile-main stays content. */
.omni-cabinet-layer .profile-main {
  overflow: visible;
  flex: none;
  min-height: 0;
}

/* ── Profile / cabinet ── */
.step-profile { display: none; text-align: left; }
.gate-panel.is-profile .gate-auth,
.gate-panel.is-profile .step-bind { display: none !important; }
.gate-panel.is-profile .step-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.profile-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Freeze the profile scroller only — never toggle body overflow (layout jump). */
html.is-sheet-open,
html.is-buyer-open {
  overscroll-behavior: none;
}
html.is-sheet-open .profile-main,
html.is-buyer-open .profile-main {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
.step-buyer {
  --buyer-bg: #f5f5f7;
  --buyer-surface: #ffffff;
  --buyer-text: #1a1a1a;
  --buyer-muted: #8b8b95;
  --buyer-border: #e4e4ea;
  --buyer-accent: #cb11ab;
  --buyer-accent-soft: rgba(203, 17, 171, 0.12);
  --buyer-font: "Onest", "Segoe UI", system-ui, sans-serif;
  /* Fully closed: out of tree (TG-safe). Mounted off-screen → slide in from right. */
  display: none;
  position: fixed;
  inset: 0;
  width: auto;
  max-width: none;
  height: auto;
  z-index: 200;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--buyer-bg);
  color: var(--buyer-text);
  font-family: var(--buyer-font);
  overflow: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.step-buyer.is-ozon {
  --buyer-accent: #005bff;
  --buyer-accent-soft: rgba(0, 91, 255, 0.12);
  --buyer-bg: #f2f5fb;
}
.step-buyer.is-mounted {
  display: flex;
  will-change: transform;
}
.step-buyer.is-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  will-change: auto;
}
.buyer-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 52px;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 52px 12px;
  border-bottom: 1px solid var(--buyer-border);
  background: var(--buyer-bg);
  z-index: 2;
}
.buyer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 16px 12px;
  box-sizing: border-box;
  text-align: left;
}
.buyer-footer {
  flex: 0 0 auto;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--buyer-bg);
  border-top: 1px solid var(--buyer-border);
  box-sizing: border-box;
}
.buyer-back {
  position: absolute;
  left: 8px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  bottom: 12px;
  margin: auto 0;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  color: var(--buyer-text);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  z-index: 1;
}
.buyer-back svg {
  width: 24px;
  height: 24px;
  display: block;
}
.buyer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  pointer-events: none;
}
.buyer-brand > * { display: none; }
.step-buyer.is-wb .buyer-logo-wb { display: flex; }
.step-buyer.is-ozon .buyer-logo-ozon { display: flex; }
.buyer-logo-wb,
.buyer-logo-ozon {
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.buyer-logo-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.buyer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.buyer-logo-name {
  font-family: var(--buyer-font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--buyer-text);
  line-height: 1.1;
  white-space: nowrap;
}
.step-buyer.is-wb .buyer-logo-name { color: #cb11ab; }
.step-buyer.is-ozon .buyer-logo-name { color: #005bff; }
.buyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* row gap = between blocks; column gap = side-by-side fields */
  gap: 16px 12px;
  margin: 0 0 4px;
  align-items: start;
}
.buyer-field {
  margin: 0;
  min-width: 0;
  text-align: left;
}
.buyer-field.span-2 { grid-column: 1 / -1; }
.buyer-field label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--buyer-muted);
  font-family: var(--buyer-font);
  text-align: left;
}
.buyer-field input,
.buyer-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  min-height: 40px;
  font-family: var(--buyer-font);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.25;
  color: var(--buyer-text);
  background: var(--buyer-surface);
  border: 1px solid var(--buyer-border);
  border-radius: 12px;
  outline: none;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  -webkit-appearance: none;
  appearance: none;
}
.buyer-field input:focus,
.buyer-field textarea:focus {
  border-color: var(--buyer-accent);
  box-shadow: 0 0 0 3px var(--buyer-accent-soft);
}
.buyer-field textarea {
  min-height: 72px;
  max-height: 72px;
  height: 72px;
  resize: none;
  overflow-y: auto;
  padding-top: 9px;
  padding-bottom: 9px;
}
.buyer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
/* Interests: equal columns — no ragged empty end-of-row gaps. */
#buyer-categories.buyer-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.buyer-chip {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--buyer-border);
  background: var(--buyer-surface);
  color: var(--buyer-text);
  font-family: var(--buyer-font);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}
#buyer-categories .buyer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding-left: 6px;
  padding-right: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buyer-chip.is-on {
  border-color: var(--buyer-accent);
  color: #fff;
  background: var(--buyer-accent);
}
.buyer-save {
  display: block;
  width: 100%;
  margin: 0;
  background: var(--buyer-accent) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-family: var(--buyer-font) !important;
  font-weight: 750 !important;
  letter-spacing: 0.01em;
  min-height: 48px;
}
.buyer-save:disabled {
  opacity: 0.55;
}
.gate-panel.is-profile .status { text-align: center; }
/* Fill the orange corner frame — no nested narrow card. */
.stage.is-profile {
  justify-content: flex-start;
  /* Clear fixed legal dock so rows never sit under «Политика ПДн». */
  padding: 18px 12px var(--dock-pad);
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
}
.stage.is-profile .profile-logout {
  margin-bottom: 8px;
}
.stage.is-profile .stage-brand { display: none; }
.stage.is-profile .stage-stack {
  gap: 0;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: stretch;
  align-items: stretch;
}
.gate-panel.is-profile {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 4px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  outline: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gate-panel.is-profile::before { display: none; }
.profile-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  padding: 4px 0 0;
  border-bottom: 0;
}
.profile-head h2,
.conn-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--omni-text, #f2f0eb);
  text-align: center;
}
.conn-section-title {
  margin: 0 0 14px;
  padding: 0;
}
/* Center the label text; leading icon hangs left and does not shift it. */
.title-with-icon {
  position: relative;
  display: inline-block;
}
.title-with-icon svg {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  transform: translateY(-50%);
  color: var(--omni-accent, #d4893a);
  pointer-events: none;
}

/*
 * Web chrome (after .title-with-icon): true panel-center for the word «Профиль»
 * via 1fr / auto / 1fr grid — same axis as avatar + «Подключения».
 * Icon hang-left preserved; × sits in the right track (does not shift the title).
 */
.omni-cabinet-layer .cabinet-chrome {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  column-gap: 8px;
  min-height: 44px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 2px max(8px, env(safe-area-inset-left, 0px));
  border-bottom: 0;
  background: transparent;
  box-sizing: border-box;
}
.omni-cabinet-layer .cabinet-chrome__title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  padding: 0;
  font: 700 1.15rem/1.2 var(--cabinet-font);
  letter-spacing: -0.01em;
  color: var(--omni-text, #f2f0eb);
  text-align: center;
}
.omni-cabinet-layer .cabinet-chrome__title .title-with-icon {
  position: relative;
  display: inline-block;
  line-height: 1.2;
}
.omni-cabinet-layer .cabinet-chrome__title .title-with-icon svg {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  transform: translateY(-50%);
  color: var(--omni-accent, #d4893a);
  pointer-events: none;
}
.omni-cabinet-layer .profile-close {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--omni-text-secondary, #9a9690);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.omni-cabinet-layer .profile-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
/* Mobile sheet: keep horizontal rhythm with safe-area */
@media (max-width: 920px) {
  .omni-cabinet-layer .cabinet-chrome {
    min-height: 48px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .omni-cabinet-layer .cabinet-scroll {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .omni-cabinet-layer .profile-avatar {
    margin-left: auto;
    margin-right: auto;
  }
  .omni-cabinet-layer .profile-logout {
    margin-left: auto;
    margin-right: auto;
  }
}
.profile-x { display: none !important; }
.profile-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 4px auto 16px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 137, 58, 0.55);
  background: linear-gradient(165deg, #32302c 0%, #141210 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--omni-accent, #d4893a);
  font-size: 1.55rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  overflow: hidden;
}
.profile-avatar:active { filter: brightness(1.06); }
.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.profile-avatar.has-img img { display: block; }
.profile-avatar.has-img #profile-letter { display: none; }
.profile-avatar__edit { display: none !important; }
.profile-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(138, 134, 128, 0.18);
  border-radius: 0;
  padding: 10px 2px 12px;
  margin-bottom: 0;
}
.profile-field:last-of-type {
  border-bottom: 0;
}
.profile-field-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: #fff;
  color: var(--omni-accent, #d4893a);
}
.profile-field-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.profile-field-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-field-icon--uid,
.profile-field-icon--mail {
  background: #fff;
  color: var(--omni-accent, #d4893a);
  padding: 0;
}
.profile-field-icon--mail.is-brand {
  border: 0;
}
.profile-field-icon--mail .mail-icon-fallback {
  display: block;
}
.profile-field-icon--mail .mail-icon-brand {
  display: none;
}
.profile-field-icon--mail.is-brand .mail-icon-fallback {
  display: none;
}
.profile-field-icon--mail.is-brand .mail-icon-brand {
  display: block;
}
.profile-field-body {
  min-width: 0;
  flex: 1 1 auto;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.profile-connectors {
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}
.conn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 14px;
  border-bottom: 1px solid rgba(138, 134, 128, 0.18);
}
.profile-connectors .conn-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 10px;
}
.conn-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1e;
  border: 1px solid rgba(138, 134, 128, 0.2);
}
.conn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.conn-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.conn-icon--tg { background: #229ed9; border-color: transparent; padding: 0; }
.conn-icon--omni { background: #0a0a0b; border-color: transparent; padding: 0; }
.conn-icon--apple { background: #f5f5f7; border-color: transparent; padding: 0; }
.conn-icon--google { background: #fff; border-color: transparent; padding: 0; }
.conn-icon--ms { background: #fff; border-color: transparent; padding: 0; }
.conn-icon--yandex { background: #fc3f1d; border-color: transparent; padding: 0; }
.conn-icon--wb { background: #cb11ab; border-color: transparent; padding: 0; }
.conn-icon--ozon { background: #005bff; border-color: transparent; padding: 0; }
.conn-meta { min-width: 0; flex: 1 1 auto; }
.conn-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--omni-text-secondary, #9a9690);
  line-height: 1.25;
}
.conn-hint {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--omni-text, #f2f0eb);
  word-break: break-all;
}
.conn-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--omni-accent, #d4893a);
  cursor: pointer;
  white-space: nowrap;
}
.conn-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.conn-form-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 7, 6, 0.72);
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.conn-form-backdrop.is-open { display: flex; }
.conn-form-sheet {
  width: min(420px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 14px 14px 10px 10px;
  background: var(--omni-surface, #27231e);
  border: 1px solid var(--omni-border, rgba(138,134,128,0.28));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.conn-form-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--omni-text, #f2f0eb);
}
.conn-form-note {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--omni-text-secondary, #9a9690);
}
.conn-form-sheet label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--omni-text-secondary, #9a9690);
}
.conn-form-sheet input[type="text"],
.conn-form-sheet input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--omni-text, #e8e4dc);
  background: #1c1915;
  border: 1px solid var(--omni-border, rgba(138,134,128,0.28));
  border-radius: var(--omni-radius-sm, 6px);
  outline: none;
  text-align: left;
}
.conn-form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 14px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--omni-text-secondary, #9a9690);
}
.conn-form-consent input {
  margin-top: 2px;
  flex: 0 0 auto;
}
.conn-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.conn-form-actions .btn-primary {
  margin-top: 0;
  flex: 1 1 auto;
}
.conn-form-cancel {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  color: var(--omni-text-secondary, #9a9690);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.conn-btn:not(:disabled):active {
  filter: brightness(1.12);
}
.profile-field .lab {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--omni-text-secondary, #9a9690);
  margin: 0;
}
.profile-field .val {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--omni-text, #f2f0eb);
  word-break: break-all;
  margin: 0;
}
/* Gap under Omni Job field → logout (2× former 16px).
   Font: Onest 600 — same as site UI (--omni-font-ui); hero "С чего начнём?" is Geologica.
   Fill = placeholder avatar (.profile-avatar gradient). */
.profile-logout {
  display: block;
  width: 50%;
  margin: 32px auto 0;
  padding: 0 10px;
  height: 36px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  line-height: 36px;
  color: var(--omni-text, #f2f0eb);
  background: linear-gradient(165deg, #32302c 0%, #141210 100%);
  border: 1px solid rgba(212, 137, 58, 0.55);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font);
}
.profile-logout:active { filter: brightness(1.06); }
.profile-hint { display: none !important; }
#profile-bind[hidden] { display: none !important; }

/* Primary buttons used by buyer save + connector form (from Mini App) */
.omni-cabinet .btn-primary,
.omni-cabinet-sheets .btn-primary,
.conn-form-backdrop .btn-primary,
.step-buyer .btn-primary {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--omni-accent, #d4893a);
  color: #141210;
  font-family: var(--cabinet-font, var(--omni-font-ui, "Onest", system-ui, sans-serif));
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.omni-cabinet .btn-primary:disabled,
.omni-cabinet-sheets .btn-primary:disabled,
.conn-form-backdrop .btn-primary:disabled,
.step-buyer .btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
}
.conn-form-actions .btn-primary {
  margin-top: 0;
  flex: 1 1 auto;
}
.conn-form-consent a {
  color: var(--omni-accent, #d4893a);
}
