/* ——— Global Dent Club (брендбук) ——— */
:root {
  --gdc-charcoal: #071939;
  --gdc-cool-grey: #3A435E;
  --gdc-oxford: #A4B6C4;
  --gdc-gold: #BFAB8A;
  --gdc-gold-hover: #d4c4a8;
  --gdc-white: #FFFFFF;
  --gdc-black: #000000;
  --gdc-bg-image: url('./bg6@3x.png');
  --gdc-login-overlay: linear-gradient(160deg, rgba(7, 25, 57, 0.88) 0%, rgba(7, 25, 57, 0.72) 45%, rgba(58, 67, 94, 0.55) 100%);
}

/* Изоляция от стилей презентации (index): только внутри портала */
.preza-auth-hidden { display: none !important; }

/* Экран входа поверх презентации (index) — всегда виден до авторизации */
body:not(.preza-admin-page) #preza-auth-root,
body:not(.preza-admin-page) #preza-session-ended {
  position: fixed;
  inset: 0;
  z-index: 500000;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
body:not(.preza-admin-page) #preza-auth-root.preza-auth-hidden,
body:not(.preza-admin-page) #preza-session-ended.preza-auth-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* ——— Вход (GDC + фон bg6) ——— */
html.preza-login-active,
html.preza-login-active body {
  overflow: hidden !important;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  overscroll-behavior: none;
  touch-action: manipulation;
}
html.preza-login-active body {
  position: fixed;
  inset: 0;
}
html.preza-login-active #presentation-app {
  visibility: hidden !important;
  pointer-events: none !important;
}

.preza-portal-login {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vh, 20px) clamp(12px, 3vw, 20px);
  overflow: hidden;
  background-color: var(--gdc-charcoal);
  background-image: var(--gdc-login-overlay), var(--gdc-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--gdc-white);
}

.preza-auth-card--dark {
  width: 100%;
  max-width: min(440px, 100%);
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 1;
  background: rgba(7, 25, 57, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(191, 171, 138, 0.35);
  border-radius: 16px;
  padding: clamp(18px, 3vh, 28px) clamp(16px, 4vw, 24px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.preza-auth-card--dark .preza-auth-logo {
  display: block;
  max-width: min(180px, 42vw);
  margin: 0 auto clamp(8px, 1.8vh, 14px);
}
.preza-auth-logo--gdc {
  opacity: 0.5;
}
.preza-admin-sidebar__logo {
  opacity: 0.88;
  filter: brightness(1.15);
}
.preza-auth-logo--gdc {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.preza-auth-card--dark h1 {
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  text-align: center;
  margin: 0 0 4px;
  font-weight: 600;
  color: #fff;
}

.preza-auth-sub {
  text-align: center;
  font-size: clamp(0.7rem, 2.2vw, 0.78rem);
  color: var(--gdc-oxford);
  margin: 0 0 clamp(12px, 2vh, 18px);
}

.preza-auth-hint {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(164, 182, 196, 0.9);
  margin-top: 16px;
  line-height: 1.45;
}
.preza-link-app {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--gdc-gold);
  text-decoration: none;
}
.preza-link-app:hover { color: var(--gdc-gold-hover); text-decoration: underline; }

body.preza-admin-page #preza-auth-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--gdc-charcoal);
  background-image: var(--gdc-login-overlay), var(--gdc-bg-image);
  background-size: cover, cover;
  background-position: center, center;
}

#preza-auth-root .preza-field,
.preza-login-form--admin .preza-field {
  margin-bottom: clamp(10px, 1.6vh, 12px);
  width: 100%;
}
#preza-auth-root .preza-field label,
.preza-login-form--admin .preza-field label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  line-height: 1.3;
}
#preza-auth-root .preza-field input,
.preza-login-form--admin .preza-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
  color: #1a2332 !important;
  -webkit-text-fill-color: #1a2332;
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.25;
  margin: 0;
}
.preza-login-form--admin {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.preza-btn--login {
  margin-top: 4px;
}
#preza-auth-root .preza-auth-error {
  color: #ff8a80;
  font-size: 0.72rem;
  min-height: 1.2em;
  text-align: center;
  margin: 8px 0;
}

.preza-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.preza-btn--primary {
  background: var(--gdc-gold);
  color: var(--gdc-charcoal);
  width: 100%;
  box-shadow: 0 4px 14px rgba(191, 171, 138, 0.35);
}
.preza-btn--primary:hover { background: var(--gdc-gold-hover); }
.preza-btn--outline {
  background: #fff;
  color: var(--gdc-charcoal);
  border: 1px solid var(--gdc-oxford);
}
.preza-btn--outline:hover { background: rgba(164, 182, 196, 0.12); border-color: var(--gdc-cool-grey); }
.preza-btn--ghost.preza-btn--dark,
body.preza-admin-page .preza-btn--ghost {
  background: transparent;
  border: 1px solid var(--adm-border2, rgba(7, 25, 57, 0.14));
  color: var(--adm-text2, #4a5568);
}
body.preza-admin-page .preza-btn--ghost:hover {
  background: var(--adm-surface3, #eef1f5);
  color: var(--adm-text, #1a2332);
}
body.preza-admin-page .preza-btn--outline {
  border: 1px solid var(--adm-border2, rgba(255,255,255,0.12));
  color: var(--adm-text2, #8899b0);
  background: transparent;
}
body.preza-admin-page .preza-btn--outline:hover {
  border-color: var(--adm-gold, #bfab8a);
  color: var(--adm-gold, #bfab8a);
}
body.preza-admin-page .preza-btn--danger {
  background: var(--adm-red-bg, rgba(248,113,113,0.12));
  border: none;
  color: var(--adm-red, #f87171);
}
body.preza-admin-page .preza-btn--danger:hover {
  background: rgba(248,113,113,0.22);
}
.preza-btn--ghost {
  background: transparent;
  color: #5a6b7d;
  border: 1px solid #d0dae6;
}
.preza-btn--ghost:hover { background: #f5f7fa; }
.preza-btn--danger {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}
.preza-btn--danger:hover { background: #fadbd8; }

#presentation-app.preza-locked-by-auth {
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -99999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Сценарий входа сотрудника: автосохранение → новости, до этого презентация не кликабельна */
html.preza-entry-flow-pending #presentation-app {
  pointer-events: none !important;
  user-select: none !important;
}
html.preza-entry-flow-pending .autosave-restore-overlay,
html.preza-entry-flow-pending .preza-news-overlay {
  pointer-events: auto !important;
}

/* ══════════════════════════════════════════
   Светлая тема ADMIN: CSS-переменные
══════════════════════════════════════════ */
body.preza-admin-page {
  --adm-bg:          #f0f2f6;
  --adm-bg2:         #e8ecf2;
  --adm-surface:     #ffffff;
  --adm-surface2:    #f7f8fa;
  --adm-surface3:    #eef1f5;
  --adm-border:      rgba(7, 25, 57, 0.08);
  --adm-border2:     rgba(7, 25, 57, 0.14);
  --adm-text:        #1a2332;
  --adm-text2:       #4a5568;
  --adm-text3:       #718096;
  --adm-gold:        #9a8464;
  --adm-gold2:       rgba(191, 171, 138, 0.22);
  --adm-gold3:       rgba(191, 171, 138, 0.12);
  --adm-green:       #15803d;
  --adm-green-bg:    rgba(21, 128, 61, 0.1);
  --adm-red:         #dc2626;
  --adm-red-bg:      rgba(220, 38, 38, 0.08);
  --adm-amber:       #b45309;
  --adm-amber-bg:    rgba(180, 83, 9, 0.1);
  --adm-blue:        #2563eb;
  --adm-blue-bg:     rgba(37, 99, 235, 0.08);
  --adm-purple:      #7c3aed;
  --adm-purple-bg:   rgba(124, 58, 237, 0.08);

  /* Синяя левая панель (GDC) */
  --adm-sidebar-from:   #071939;
  --adm-sidebar-mid:      #0c2247;
  --adm-sidebar-to:     #132f5c;
  --adm-sidebar-border: rgba(255, 255, 255, 0.08);
  --adm-sidebar-text:   rgba(164, 182, 196, 0.92);
  --adm-sidebar-text-h: rgba(255, 255, 255, 0.96);
  --adm-sidebar-hover:  rgba(255, 255, 255, 0.07);
  --adm-sidebar-active: rgba(191, 171, 138, 0.18);
  --adm-sidebar-glow:   rgba(96, 165, 250, 0.12);

  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--adm-bg);
  color: var(--adm-text);
  -webkit-font-smoothing: antialiased;
  height: 100dvh;
  overflow: hidden;
}

body.preza-admin-page #preza-admin-root {
  position: static;
  inset: auto;
  z-index: auto;
  height: 100dvh;
  min-height: 0;
  width: 100%;
  background: var(--adm-bg);
  color: var(--adm-text);
  overflow: hidden;
}

body.preza-admin-page #preza-auth-root.preza-auth-hidden {
  position: static;
  background: none;
}

.preza-admin-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* ——— Таблица презентаций ——— */
.preza-table-panel {
  background: var(--adm-surface, #ffffff);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(7, 25, 57, 0.06);
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  overflow: hidden;
}

.preza-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  background: var(--adm-surface2, #f7f8fa);
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}

.preza-table-search-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.preza-table-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text3, #5a6a82);
  pointer-events: none;
  display: flex;
}
.preza-table-search {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--adm-border2, rgba(7, 25, 57, 0.12));
  border-radius: 12px;
  background: var(--adm-surface, #ffffff);
  color: var(--adm-text, #1a2332) !important;
  -webkit-text-fill-color: var(--adm-text, #1a2332);
  box-sizing: border-box;
}
.preza-table-search::placeholder { color: var(--adm-text3, #5a6a82); }
.preza-table-search:focus {
  outline: none;
  border-color: var(--adm-gold, #bfab8a);
  box-shadow: 0 0 0 3px rgba(191,171,138,0.15);
}

.preza-table-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preza-table-filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--adm-text3, #5a6a82);
  white-space: nowrap;
}
.preza-table-select {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 9px 28px 9px 12px;
  border: 1px solid var(--adm-border2, rgba(7, 25, 57, 0.12));
  border-radius: 10px;
  background: var(--adm-surface, #ffffff);
  color: var(--adm-text, #1a2332) !important;
  cursor: pointer;
  min-width: 140px;
}

.preza-table-count {
  font-size: 0.7rem;
  color: var(--adm-text3, #5a6a82);
  margin-left: auto;
  white-space: nowrap;
}

.preza-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.preza-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.preza-table thead {
  background: var(--adm-surface2, #f7f8fa);
  position: sticky;
  top: 0;
  z-index: 1;
}
.preza-table th {
  text-align: left;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text3, #5a6a82);
  padding: 11px 16px;
  border-bottom: 1px solid var(--adm-border, rgba(255,255,255,0.07));
  white-space: nowrap;
}
.preza-table-th-actions { text-align: center; width: 168px; }

.preza-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  color: var(--adm-text, #1a2332);
  vertical-align: middle;
}
.preza-table-row:hover td { background: var(--adm-gold3, rgba(191, 171, 138, 0.08)); }
.preza-table-row--off td { opacity: 0.55; }

.preza-table-clinic-name {
  font-weight: 600;
  color: var(--adm-text, #1a2332);
}
.preza-table-date {
  font-variant-numeric: tabular-nums;
  color: var(--adm-text2, #8899b0);
  white-space: nowrap;
}

.preza-pill {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.preza-pill--on {
  background: var(--adm-green-bg, rgba(34,197,94,0.12));
  color: var(--adm-green, #22c55e);
}
.preza-pill--off {
  background: var(--adm-red-bg, rgba(248,113,113,0.12));
  color: var(--adm-red, #f87171);
}

.preza-table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.preza-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: var(--adm-surface3, #212c42);
  color: var(--adm-text2, #8899b0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s, color 0.15s;
}
.preza-icon-btn:hover {
  background: var(--adm-border2, rgba(255,255,255,0.12));
  color: var(--adm-text, #e4e8f0);
}
.preza-icon-btn:active { transform: scale(0.93); }
.preza-icon-btn--warn {
  color: var(--adm-amber, #fbbf24);
  background: var(--adm-amber-bg, rgba(251,191,36,0.12));
}
.preza-icon-btn--warn:hover { background: rgba(251,191,36,0.2); }
.preza-icon-btn--success {
  color: var(--adm-green, #22c55e);
  background: var(--adm-green-bg, rgba(34,197,94,0.12));
}
.preza-icon-btn--success:hover { background: rgba(34,197,94,0.2); }
.preza-icon-btn--danger {
  color: var(--adm-red, #f87171);
  background: var(--adm-red-bg, rgba(248,113,113,0.12));
}
.preza-icon-btn--danger:hover { background: rgba(248,113,113,0.2); }

.preza-table-empty {
  text-align: center;
  padding: 48px 20px !important;
  color: var(--adm-text3, #5a6a82);
  font-size: 0.88rem;
}

.preza-cfg-field--check { margin-top: 8px; }
.preza-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--adm-text, #e4e8f0);
  cursor: pointer;
}
.preza-check-label input { width: 18px; height: 18px; accent-color: var(--adm-gold, #bfab8a); }

.preza-cfg-slides {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 14px 16px;
  background: var(--adm-surface2, #f7f8fa);
  border-radius: 12px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}
.preza-cfg-slides--mod {
  gap: 12px;
}
.preza-slide-mod {
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  border-radius: 12px;
  background: var(--adm-surface, #fff);
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.preza-slide-mod--off { opacity: 0.62; }
.preza-slide-mod__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--adm-surface2, #f7f8fa);
  border-radius: 12px 12px 0 0;
}
.preza-slide-mod__head .preza-slide-pick {
  flex: 1;
  border: none;
  background: transparent;
  padding: 4px 6px;
}
.preza-slide-mod__toggle {
  flex-shrink: 0;
  border: 1px solid var(--adm-border2, rgba(7, 25, 57, 0.14));
  background: var(--adm-surface2, #f7f8fa);
  color: var(--adm-text2, #4a5568);
  font: 600 0.68rem/1 'Open Sans', system-ui, sans-serif;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.preza-slide-mod__toggle:hover {
  background: var(--adm-gold3, rgba(191, 171, 138, 0.12));
  color: var(--adm-text, #1a2332);
  transform: translateY(-1px);
}
.preza-slide-mod__body {
  padding: 0 12px 14px;
  border-top: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  animation: prezaSlideModIn 0.28s ease both;
}
@keyframes prezaSlideModIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.preza-slide-mod__section { margin-top: 12px; }
.preza-slide-mod__section-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text3, #718096);
}
.preza-slide-mod__elements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.preza-slide-el-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--adm-text2, #4a5568);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  cursor: pointer;
  line-height: 1.35;
}
.preza-slide-el-pick input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gdc-gold, #bfab8a);
}
.preza-slide-title-override {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--adm-border2);
  font: inherit;
  font-size: 0.82rem;
}
.preza-implant-card__custom-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.preza-implant-card__implant-preview {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--adm-surface2, #f7f8fa);
  margin-bottom: 8px;
}
.preza-implant-card__implant-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-size: 0.68rem;
  color: var(--adm-text3, #718096);
}
.preza-implant-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--adm-text2, #4a5568);
  margin: 4px 0 6px;
}
.preza-implant-card--premium {
  border-color: rgba(191, 171, 138, 0.45);
}
.preza-slide-custom-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 32px;
  gap: 8px;
  align-items: center;
}
@media (max-width: 700px) {
  .preza-slide-custom-row { grid-template-columns: 1fr; }
}
.preza-slide-custom-type,
.preza-slide-custom-label,
.preza-slide-custom-placeholder {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--adm-border2);
  font: inherit;
  font-size: 0.78rem;
}
.preza-slide-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--adm-text, #1a2332);
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.preza-slide-pick--locked {
  cursor: default;
  opacity: 0.55;
}
.preza-slide-pick__pos {
  flex-shrink: 0;
  min-width: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text3, #5a6a82);
  padding-top: 1px;
}
.preza-slide-pick__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.preza-slide-pick__meta {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--adm-text3, #718096);
  line-height: 1.35;
}
.preza-slide-pick__note {
  font-size: 0.68rem;
  color: var(--adm-text3, #5a6a82);
  font-style: normal;
}
.preza-slide-mod__summary {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 0.72rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.4;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}
.preza-slide-mod--off .preza-slide-mod__summary {
  color: var(--adm-red, #dc2626);
}
.preza-slide-mod__section-hint {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--adm-text3, #718096);
  line-height: 1.45;
}
.preza-slide-mod__section--empty {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--adm-surface2, #f7f8fa);
  border: 1px dashed var(--adm-border2, rgba(7, 25, 57, 0.14));
}
.preza-slide-custom-head {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 32px;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adm-text3, #718096);
}
@media (max-width: 700px) {
  .preza-slide-custom-head { display: none; }
}
.preza-slides-stats {
  margin: 0;
  padding: 0 4px;
  font-size: 0.74rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.4;
}
.preza-slides-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.preza-slides-toolbar__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--adm-text3, #718096);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preza-slides-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preza-cfg-step__content--slides {
  padding: 18px 20px 22px;
}
  font-size: 0.68rem;
  color: var(--adm-text3, #5a6a82);
  font-style: normal;
}
.preza-slide-pick input { margin: 0; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--adm-gold, #bfab8a); }
.preza-slide-pick strong { font-weight: 600; }
.preza-table-th-num { width: 56px; text-align: center; }
.preza-table-user-count {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text, #e4e8f0);
}

.preza-logo-upload,
.preza-logo-dual {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 18px;
  max-width: 100%;
}
@media (max-width: 600px) {
  .preza-logo-upload,
  .preza-logo-dual { grid-template-columns: 1fr; margin-left: 0; }
}
.preza-logo-slot-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.preza-logo-slot-hint {
  display: block;
  font-size: 0.68rem;
  color: #6e6e73;
  margin-bottom: 10px;
}
.preza-logo-preview-box {
  height: 72px;
  border: 1px dashed #c5d4e8;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.preza-logo-preview-box img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}
.preza-logo-preview-empty {
  font-size: 0.72rem;
  color: #6e6e73;
}
.preza-logo-slot-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preza-btn--sm {
  padding: 8px 14px;
  font-size: 0.75rem;
  width: auto;
}
.preza-logo-dual-note { margin-left: 36px; }

.preza-logo-slot--wide { max-width: 640px; }
.preza-logo-preview-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .preza-logo-preview-dual { grid-template-columns: 1fr; }
}
.preza-logo-preview-scene {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--adm-border, #e8e8ed);
}
.preza-logo-preview-scene--dark {
  background: linear-gradient(180deg, #1a2332 0%, #243047 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.preza-logo-preview-scene--light {
  background: #fff;
}
.preza-logo-preview-scene__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--adm-text3, #6e6e73);
}
.preza-logo-preview-scene--dark .preza-logo-preview-scene__label {
  color: rgba(255, 255, 255, 0.55);
}
.preza-logo-preview-scene .preza-logo-preview-box {
  height: 88px;
  margin-bottom: 0;
  background: transparent;
  border-color: rgba(127, 127, 127, 0.25);
}
.preza-logo-preview-scene--dark .preza-logo-preview-box {
  border-color: rgba(255, 255, 255, 0.12);
}
.preza-logo-preview-img.logo-white {
  filter: brightness(0) invert(1);
}
.preza-logo-preview-img.logo-color {
  filter: none;
}
.preza-logo-preview-box--main { display: none; }
.preza-logo-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.preza-logo-mode-row__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--adm-text2, #4a5568);
}
.preza-logo-mode-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preza-logo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══ Шаг 6: Системы имплантов — таблица на всю ширину ═══ */
.preza-cfg-step__content--implants {
  padding: 18px 20px 24px;
  overflow: visible;
}
.preza-implant-studio {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
  gap: 18px;
  min-height: min(520px, calc(100dvh - 320px));
  min-width: 0;
  align-items: stretch;
}
.preza-implant-studio--table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  width: 100%;
}
.preza-implant-studio__sidebar,
.preza-implant-studio__main {
  min-width: 0;
  max-width: 100%;
}
.preza-implant-studio__sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.preza-implant-studio__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  background: var(--adm-surface);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
.preza-implant-studio__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--adm-border);
  background: var(--adm-surface);
  position: sticky;
  top: 0;
  z-index: 2;
}
.preza-implant-studio__head--compact {
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
  min-height: 0;
}
.preza-implant-studio__head-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.preza-implant-studio__head-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(191, 171, 138, 0.22) 0%, rgba(37, 99, 235, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-gold, #9a8464);
}
.preza-implant-studio__head-titles {
  min-width: 0;
}
.preza-implant-studio__head-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--adm-text);
  display: flex;
  align-items: center;
}
.preza-implant-studio__head-desc {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.45;
  max-width: 560px;
}
.preza-implant-studio__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px 22px;
  -webkit-overflow-scrolling: touch;
}
.preza-implant-studio--table .preza-implant-studio__toolbar {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px 12px;
}
.preza-implant-studio--table .preza-implant-studio__search-wrap {
  flex: 1 1 220px;
  min-width: 0;
}
.preza-implant-studio--table .preza-implant-active-hint {
  margin: 0;
  flex: 0 0 auto;
}
.preza-implant-studio__toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preza-implant-studio__search-wrap {
  width: 100%;
}
.preza-implant-studio__search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--adm-border2);
  border-radius: 10px;
  font: inherit;
  font-size: 0.82rem;
  background: var(--adm-surface);
}
.preza-implant-table {
  flex: 1;
  min-height: 160px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  background: var(--adm-surface2);
  -webkit-overflow-scrolling: touch;
}
.preza-implant-table-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--adm-surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.preza-implant-table-row:hover {
  border-color: var(--adm-border2);
  box-shadow: 0 2px 10px rgba(7, 25, 57, 0.05);
}
.preza-implant-table-row--selected {
  border-color: rgba(154, 132, 100, 0.55);
  box-shadow: 0 0 0 1px rgba(191, 171, 138, 0.25);
  background: linear-gradient(165deg, #fff 0%, rgba(191, 171, 138, 0.06) 100%);
}
.preza-implant-table-row--on {
  border-color: rgba(154, 132, 100, 0.35);
}
.preza-implant-table-row--premium {
  background: linear-gradient(165deg, rgba(191, 171, 138, 0.07) 0%, var(--adm-surface) 100%);
}
.preza-implant-table-row--filtered {
  display: none !important;
}
.preza-implant-table-row__label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.preza-implant-table-row__label strong {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--adm-text);
}
.preza-implant-table-row__meta {
  font-size: 0.66rem;
  color: var(--adm-text3);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preza-implant-table-row__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(191, 171, 138, 0.18);
  color: #7a6548;
}
.preza-implant-table-row__del {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preza-implant-detail {
  padding: 0;
}
.preza-implant-detail--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: 32px 24px;
}
.preza-implant-detail__empty-icon {
  color: var(--adm-text3);
  opacity: 0.55;
  margin-bottom: 14px;
}
.preza-implant-detail__empty-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}
.preza-implant-detail__empty-desc {
  margin: 0 0 18px;
  max-width: 320px;
  font-size: 0.78rem;
  color: var(--adm-text2);
  line-height: 1.45;
}
.preza-implant-detail__sys-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--adm-border);
}
.preza-implant-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--adm-border);
}
.preza-implant-detail__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.preza-implant-detail__subtitle {
  margin: 0;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.4;
}
.preza-implant-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 20px;
  align-items: start;
  min-width: 0;
}
.preza-implant-detail__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.preza-implant-detail__group {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
}
.preza-implant-detail__group--files {
  margin-bottom: 0;
}
.preza-implant-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.preza-implant-group-head .preza-implant-detail__group-title {
  margin: 0;
}
.preza-implant-field--toggle-inline {
  grid-column: auto;
  flex-shrink: 0;
}
.preza-implant-field--toggle-inline .preza-toggle-card {
  margin: 0;
  padding: 8px 12px;
}
.preza-implant-field--toggle-inline .preza-toggle-card__hint {
  display: none;
}
.preza-implant-detail__group:last-child {
  margin-bottom: 0;
}
.preza-implant-detail__group-title {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text3);
}
.preza-implant-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 760px) {
  .preza-implant-upload-grid { grid-template-columns: 1fr; }
}
.preza-implant-upload-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
}
.preza-implant-upload-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preza-implant-upload-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-text);
}
.preza-implant-upload-card__hint {
  font-size: 0.68rem;
  color: var(--adm-text3);
  line-height: 1.4;
}
.preza-implant-upload-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 16px;
  border: 2px dashed var(--adm-border2);
  border-radius: 12px;
  background: var(--adm-surface2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preza-implant-upload-card__preview:hover,
.preza-implant-upload-card__preview:focus-visible {
  border-color: rgba(154, 132, 100, 0.65);
  background: rgba(191, 171, 138, 0.06);
  outline: none;
}
.preza-implant-upload-card__img {
  max-width: 100%;
  object-fit: contain;
}
.preza-implant-upload-card__img--logo {
  max-height: 88px;
}
.preza-implant-upload-card__img--photo {
  max-height: 140px;
}
.preza-implant-upload-card__placeholder {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--adm-text3);
  text-align: center;
}
.preza-implant-upload-card__placeholder--photo {
  font-size: 0.76rem;
  font-weight: 500;
  max-width: 180px;
  line-height: 1.45;
}
.preza-implant-upload-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preza-implant-upload-card__url {
  margin: 0;
  font-size: 0.72rem;
}
.preza-implant-upload-card__url summary {
  cursor: pointer;
  color: var(--adm-text3);
  user-select: none;
  padding: 2px 0;
}
.preza-implant-upload-card__url summary:hover {
  color: var(--adm-text2);
}
.preza-implant-upload-card__url .preza-implant-input {
  margin-top: 8px;
}
.preza-implant-detail__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
  position: static;
  min-width: 0;
}
.preza-implant-visual__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 2px dashed var(--adm-border2);
  border-radius: 12px;
  background: var(--adm-surface);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preza-implant-visual__preview:hover,
.preza-implant-visual__preview:focus-visible {
  border-color: rgba(154, 132, 100, 0.65);
  background: rgba(191, 171, 138, 0.06);
  outline: none;
}
.preza-implant-visual__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preza-implant-visual__url {
  margin: 0;
  font-size: 0.72rem;
}
.preza-implant-visual__url summary {
  cursor: pointer;
  color: var(--adm-text3);
  user-select: none;
}
.preza-implant-visual__url .preza-implant-input {
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}
.preza-implant-visual__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.preza-implant-visual__logo--lg {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.preza-implant-visual__logo--lg.preza-implant-visual__logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  border-radius: 10px;
  background: var(--adm-surface);
  border: 1px dashed var(--adm-border2);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--adm-text3);
}
.preza-implant-visual__photo--lg {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.preza-implant-visual__photo--lg.preza-implant-visual__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  background: var(--adm-surface);
  border: 1px dashed var(--adm-border2);
  font-size: 0.72rem;
  color: var(--adm-text3);
  text-align: center;
  padding: 12px;
}
.preza-implant-field__hint {
  display: block;
  margin-top: 5px;
  font-size: 0.66rem;
  color: var(--adm-text3);
  line-height: 1.35;
}
.preza-implant-textarea {
  min-height: 72px;
  resize: vertical;
}
@media (max-width: 960px) {
  .preza-implant-studio {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .preza-implant-studio__main {
    min-height: 360px;
  }
  .preza-implant-table {
    max-height: 280px;
  }
  .preza-implant-detail__layout {
    grid-template-columns: 1fr;
  }
}

/* ═══ Шаг 7: Системы имплантов (legacy rows) ═══ */
.preza-implant-active-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--adm-text2);
}
.preza-implant-systems-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preza-implant-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--adm-border);
  background: linear-gradient(165deg, var(--adm-surface) 0%, var(--adm-surface2) 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.preza-implant-row:hover {
  border-color: var(--adm-border2);
  box-shadow: 0 4px 14px rgba(7, 25, 57, 0.06);
}
.preza-implant-row--on {
  border-color: rgba(154, 132, 100, 0.45);
  box-shadow: 0 4px 16px rgba(191, 171, 138, 0.12);
}
.preza-implant-row--premium {
  background: linear-gradient(165deg, rgba(191, 171, 138, 0.08) 0%, var(--adm-surface2) 100%);
}
.preza-implant-row__check {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.preza-implant-row__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.preza-implant-row__check-ui {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--adm-border2);
  background: var(--adm-surface);
  transition: all 0.2s ease;
}
.preza-implant-row__check input:checked + .preza-implant-row__check-ui {
  background: var(--adm-gold);
  border-color: var(--adm-gold);
  box-shadow: inset 0 0 0 2px #fff;
}
.preza-implant-row__logo {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.preza-implant-row__logo-img {
  max-width: 160px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.preza-implant-row__logo-img--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--adm-surface3);
  font-weight: 700;
  color: var(--adm-text3);
  font-size: 0.9rem;
}
.preza-implant-row__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.preza-implant-row__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.preza-implant-row__settings {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--adm-text2);
}
.preza-implant-row__settings:hover {
  color: var(--adm-gold);
  background: rgba(191, 171, 138, 0.12);
}
.preza-implant-row__del {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1.25rem;
  line-height: 1;
}
.preza-modal--implant {
  max-width: min(1100px, calc(100vw - 40px));
  max-height: min(92vh, 900px);
  overflow: hidden;
}
.preza-modal__actions--implant {
  justify-content: flex-end;
}
.preza-modal__actions--implant .preza-btn--danger {
  margin-right: auto;
}
.preza-implant-settings-form__previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 520px) {
  .preza-implant-settings-form__previews { grid-template-columns: 1fr; }
}
.preza-implant-settings-form__preview-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface2);
  text-align: center;
}
.preza-implant-settings-form__preview-block .preza-implant-logo-preview {
  margin: 8px auto 0;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
}
.preza-implant-settings-form__preview-block .preza-implant-card__implant-preview {
  margin: 8px auto 0;
  max-height: 120px;
}
.preza-implant-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
@media (max-width: 700px) { .preza-implant-fields-grid { grid-template-columns: 1fr; } }
.preza-implant-field--wide { grid-column: 1 / -1; }
.preza-implant-field__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--adm-text3, #5a6a82);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preza-implant-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  border: 1px solid var(--adm-border2, rgba(255,255,255,0.12));
  border-radius: 8px;
  background: var(--adm-surface3, #212c42);
  color: var(--adm-text, #e4e8f0) !important;
  font-family: inherit;
  font-size: 0.82rem;
  -webkit-text-fill-color: var(--adm-text, #e4e8f0);
}
.preza-implant-input:focus {
  outline: none;
  border-color: var(--adm-gold, #bfab8a);
  box-shadow: 0 0 0 2px rgba(191,171,138,0.15);
}
.preza-implant-logo-row { display: flex; gap: 8px; align-items: center; }
.preza-implant-logo-row .preza-implant-input { flex: 1; }
.preza-implant-logo-preview {
  display: block;
  width: 64px;
  height: 32px;
  object-fit: contain;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--adm-surface3, #212c42);
  border: 1px solid var(--adm-border, rgba(255,255,255,0.07));
}
.preza-implant-logo-preview--empty { height: 0; margin: 0; border: none; opacity: 0; pointer-events: none; }

.sp-logo-row--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sp-logo-block { flex: 1; }
.sp-logo-hint {
  font-size: 0.68rem;
  color: #6e6e73;
  margin: 0 0 8px;
}
.sp-logo-block .sp-btn { margin-top: 6px; margin-right: 6px; }

.preza-admin-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #d8e2ec;
}

.preza-admin-badge-portal {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gdc-cool-grey);
  background: #e3f2fd;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.preza-admin-top h1 {
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: #1a2332;
  font-weight: 700;
}

.preza-admin-top-desc {
  margin: 0;
  font-size: 0.72rem;
  color: #5a6b7d;
  line-height: 1.5;
}
.preza-admin-top-desc code {
  background: #e8eef4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
}
.preza-admin-top-desc a { color: var(--gdc-cool-grey); }

.preza-admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.preza-admin-info {
  background: #fff;
  border: 1px solid #d8e2ec;
  border-left: 4px solid var(--gdc-cool-grey);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #3d4f5f;
  margin-bottom: 20px;
}
.preza-admin-info a { color: var(--gdc-cool-grey); font-weight: 600; }

.preza-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preza-admin-card {
  background: #fff;
  border: 1px solid #d8e2ec;
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.04);
}
.preza-admin-card.inactive { opacity: 0.65; background: #f8fafc; }

.preza-admin-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #1a2332;
}

.preza-admin-card-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #5a6b7d;
  line-height: 1.45;
}

.preza-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
}
.preza-status--on { background: #e8f8ef; color: #1e8449; }
.preza-status--off { background: #fdecea; color: #c0392b; }

.preza-admin-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.preza-admin-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--adm-text3, #5a6a82);
  font-size: 0.85rem;
  background: var(--adm-surface, #161d2d);
  border-radius: 12px;
  border: 1px dashed var(--adm-border2, rgba(255,255,255,0.12));
}

/* ——— Конфигуратор презентации (полноэкранная панель) ——— */
#preza-admin-configurator {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.preza-cfg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--adm-surface2, #1b2338);
  border-bottom: 1px solid var(--adm-border, rgba(255,255,255,0.07));
}

.preza-cfg-header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--adm-text, #e4e8f0);
}

.preza-cfg-body {
  padding: 22px 28px 32px;
  overflow-y: auto;
  overflow-x: hidden;
}

.preza-cfg-step {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}
.preza-cfg-step:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.preza-cfg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--adm-gold2, rgba(191,171,138,0.15));
  color: var(--adm-gold, #bfab8a);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.preza-cfg-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--adm-text, #e4e8f0);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
}

.preza-cfg-step-help {
  font-size: 0.72rem;
  color: var(--adm-text3, #718096);
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.preza-cfg-field {
  margin-bottom: 16px;
}
.preza-cfg-field > label[for],
.preza-cfg-field > .preza-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--adm-text2, #8899b0);
  margin-bottom: 6px;
}
body.preza-admin-page .preza-cfg-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.preza-admin-page .preza-cfg-field select,
body.preza-admin-page .preza-cfg-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--adm-border2, rgba(7, 25, 57, 0.14));
  border-radius: 10px;
  background: var(--adm-surface, #ffffff);
  color: var(--adm-text, #1a2332) !important;
  font-size: 0.82rem;
  font-family: inherit;
  -webkit-text-fill-color: var(--adm-text, #1a2332);
  box-sizing: border-box;
}
body.preza-admin-page .preza-cfg-field input:not([type="checkbox"]):not([type="radio"]):focus,
body.preza-admin-page .preza-cfg-field select:focus,
body.preza-admin-page .preza-cfg-field textarea:focus {
  outline: none;
  border-color: var(--adm-gold, #bfab8a);
  box-shadow: 0 0 0 3px rgba(191,171,138,0.15);
}

.preza-cfg-clinics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  background: var(--adm-surface2, #f7f8fa);
  border-radius: 12px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}
.preza-cfg-clinics label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--adm-text, #1a2332);
  cursor: pointer;
  padding: 10px 12px;
  background: var(--adm-surface, #ffffff);
  border-radius: 10px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.preza-cfg-clinics label input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--adm-gold, #bfab8a);
}
.preza-cfg-clinics label:hover { border-color: var(--adm-gold, #bfab8a); box-shadow: 0 2px 8px rgba(7, 25, 57, 0.06); }

.preza-users-list {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preza-users-empty {
  margin: 0;
  padding: 14px 16px;
  background: var(--adm-surface3, #212c42);
  border: 1px dashed var(--adm-border2, rgba(255,255,255,0.12));
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--adm-text3, #5a6a82);
}

.preza-user-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--adm-surface2, #1b2338);
  border: 1px solid var(--adm-border, rgba(255,255,255,0.07));
  border-radius: 12px;
}
.preza-user-row__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  flex: 1;
  min-width: 260px;
}
.preza-user-field {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}
.preza-user-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--adm-text3, #5a6a82);
  margin-bottom: 5px;
}
.preza-user-field input[type="text"],
.preza-user-field input[type="password"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--adm-border2, rgba(255,255,255,0.12));
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--adm-text, #e4e8f0) !important;
  background: var(--adm-surface3, #212c42);
  box-sizing: border-box;
}
.preza-user-field--pass { min-width: 180px; max-width: 240px; }
.preza-user-pass-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.preza-user-pass-wrap input {
  flex: 1;
  border-radius: 8px 0 0 8px !important;
  border-right: none !important;
}
.preza-user-pass-toggle {
  flex: 0 0 40px;
  border: 1px solid #c5d4e8;
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}
.preza-user-pass-toggle:hover { background: #eef4fa; }
.preza-user-active {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #1a2332;
  cursor: pointer;
  padding-bottom: 10px;
  white-space: nowrap;
}
.preza-user-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.preza-users-add {
  margin: 0;
  padding: 16px 18px;
  background: var(--adm-surface2, #f7f8fa);
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  border-radius: 14px;
  max-width: none;
}
.preza-users-add__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a2332;
}
.preza-users-add__row { margin-left: 0 !important; max-width: 100%; }
.preza-users-add .preza-btn { margin-top: 10px; }

.preza-cfg-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 100%;
}

.preza-cfg-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px;
  background: #f5f8fb;
  border-top: 1px solid #d8e2ec;
}

/* Сеанс завершён (презентация) */
#preza-session-ended {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: linear-gradient(145deg, #0a1628, #1a3d5c);
  font-family: 'Unbounded', system-ui, sans-serif;
  color: #fff;
}
#preza-session-ended .preza-portal-login { height: 100%; max-height: 100dvh; }
#preza-session-ended h1 { color: #ff8a80; text-align: center; }

/* ——— Apple-style: клиники и команды ——— */
.sp-nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-bottom: 20px;
}
.sp-nav__item {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6e6e73;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.sp-nav__item--active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.preza-pres-clinic-embed {
  margin: 12px 0 0;
  max-width: 100%;
  color: #1d1d1f;
  overflow: visible;
  isolation: isolate;
}

.sp-clinic-app { max-width: 1100px; }
.sp-clinic-app--embed {
  max-width: 100%;
  width: 100%;
  --sp-action-btn-width: 212px;
}
.sp-clinic-app--embed .sp-split {
  grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
  min-height: 340px;
  max-height: min(68vh, 620px);
  align-items: stretch;
}
.sp-clinic-app--embed .sp-sidebar {
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sp-clinic-app--embed .sp-branch-list {
  flex: 1;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.sp-clinic-app--embed .sp-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.sp-clinic-app--embed .sp-branch-editor {
  min-width: 0;
}
.sp-clinic-app--embed .sp-staff-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.sp-clinic-app--embed .sp-seg {
  flex-wrap: wrap;
}
.sp-clinic-app--embed .sp-seg__btn {
  flex: 1 1 30%;
  min-width: 96px;
}
.sp-clinic-app--embed .sp-branch-editor__head {
  flex-wrap: wrap;
  align-items: stretch;
}
.sp-clinic-app--embed .sp-field--grow {
  min-width: 180px;
}
.sp-toolbar--compact { margin-bottom: 10px; }
.sp-empty--inline {
  padding: 28px 20px;
  text-align: center;
  background: #f5f5f7;
  border-radius: 14px;
}
.sp-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.sp-import-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #5a6178;
  line-height: 1.45;
}
.sp-import-table-wrap {
  max-height: min(58vh, 520px);
  overflow: auto;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #fff;
}
.sp-import-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.sp-import-table th,
.sp-import-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: top;
  text-align: left;
}
.sp-import-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f8fa;
  font-weight: 600;
  color: #1a2332;
}
.sp-import-table tr:last-child td { border-bottom: none; }
.sp-import-person__name {
  margin: 0 0 4px;
  font-weight: 600;
  color: #1a2332;
}
.sp-import-person__meta {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}
.sp-import-branches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-import-branch {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #1a2332;
  cursor: pointer;
}
.sp-import-branch input {
  margin-top: 2px;
  flex-shrink: 0;
}

.sp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sp-toolbar__group { flex: 1; min-width: 200px; }
.sp-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.sp-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e6e73;
  margin-bottom: 6px;
}
.sp-input, .sp-select, .sp-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
  box-sizing: border-box;
}
.sp-input:focus, .sp-select:focus, .sp-textarea:focus {
  outline: none;
  border-color: var(--gdc-charcoal);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.sp-textarea { resize: vertical; min-height: 80px; }

.sp-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.sp-btn:active { transform: scale(0.98); }
.sp-btn--primary { background: var(--gdc-gold); color: var(--gdc-charcoal); }
.sp-btn--primary:hover { background: var(--gdc-gold-hover); }
.sp-btn--secondary { background: #fff; color: var(--gdc-charcoal); border: 1px solid #d2d2d7; }
.sp-btn--secondary:hover { background: #f5f5f7; }
.sp-btn--tinted { background: #e8e8ed; color: #1d1d1f; }
.sp-btn--danger-soft { background: #fff; color: #ff3b30; border: 1px solid #ffc9c5; }
.sp-btn--sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}
.sp-btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sp-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  line-height: 0;
}
.sp-btn__icon svg {
  width: 14px;
  height: 14px;
}

.sp-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sp-logo-preview {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.7rem;
  color: #6e6e73;
}
.sp-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.sp-logo-title { margin: 0 0 8px; font-size: 0.88rem; font-weight: 600; }

.sp-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  min-height: 420px;
}
@media (max-width: 768px) {
  .sp-split { grid-template-columns: 1fr; }
}

.sp-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sp-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 12px;
}
.sp-sidebar__head h2 { margin: 0; font-size: 0.88rem; font-weight: 600; }
.sp-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gdc-charcoal);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.sp-branch-list { list-style: none; margin: 0; padding: 0; }
.sp-branch-item { margin-bottom: 4px; }
.sp-branch-item__btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.sp-branch-item--active .sp-branch-item__btn,
.sp-branch-item__btn:hover { background: #f5f5f7; }
.sp-branch-item--active .sp-branch-item__btn { background: #e8f4fd; }
.sp-branch-item__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1d1d1f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-branch-item__meta { display: block; font-size: 0.68rem; color: #6e6e73; margin-top: 2px; }

.sp-main {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sp-main-placeholder { color: #6e6e73; font-size: 0.88rem; text-align: center; padding: 60px 20px; }

.sp-branch-editor__head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.sp-field { margin-bottom: 14px; }
.sp-field--grow { flex: 1; }
.sp-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: #6e6e73;
  line-height: 1.35;
}
.sp-select { cursor: pointer; }

.sp-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f5f5f7;
  border-radius: 12px;
  margin: 20px 0 16px;
}
.sp-seg__btn {
  flex: 1;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 10px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6e6e73;
  cursor: pointer;
}
.sp-seg__btn--active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sp-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}
.sp-staff-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6e6e73;
  font-size: 0.82rem;
  padding: 24px;
  background: #f5f5f7;
  border-radius: 14px;
}

/* Карточки сотрудников в конфигураторе (sp-staff-card в JS) */
.sp-staff-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 14px;
  cursor: pointer;
  min-width: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.sp-staff-card:hover {
  background: #fff;
  border-color: #d2d2d7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.sp-staff-card__photo {
  flex: 0 0 48px;
  width: 48px;
  aspect-ratio: 0.8257 / 1;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: #e8e8ed;
  display: block;
}
.sp-staff-card__photo--empty {
  flex: 0 0 48px;
  width: 48px;
  aspect-ratio: 0.8257 / 1;
  height: auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  background: linear-gradient(145deg, #f0f0f5 0%, #e8e8ed 100%);
  border: 1px solid #d2d2d7;
}
.sp-staff-card__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sp-staff-card__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-staff-card__role {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #6e6e73;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-staff-card__delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 59, 48, 0.92);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.sp-staff-card__delete:hover { background: #ff3b30; }
.sp-staff-card:hover .sp-staff-card__delete { opacity: 1; }

.sp-person-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.sp-person-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  padding: 0;
  overflow: hidden;
  background: #e8e8ed;
  cursor: pointer;
}
.sp-person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-person-card__placeholder { font-size: 0.65rem; color: #6e6e73; line-height: 80px; }
.sp-person-card__name { margin: 0; font-size: 0.82rem; font-weight: 600; color: #1d1d1f; }
.sp-person-card__pos, .sp-person-card__phone { margin: 0; font-size: 0.68rem; color: #6e6e73; }
.sp-person-card__edit {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--gdc-charcoal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.sp-add-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px dashed #d2d2d7;
  border-radius: 16px;
  background: transparent;
  color: var(--gdc-charcoal);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.sp-add-card:hover { background: #f5f5f7; border-color: var(--gdc-charcoal); }
.sp-add-card__plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gdc-charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sp-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 20px;
}
.sp-empty__title { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.sp-empty__text { color: #6e6e73; font-size: 0.88rem; margin: 0 0 20px; }

/* Bottom sheet (карточка сотрудника) */
.sp-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  transition: background 0.28s ease;
}
.sp-sheet-overlay--visible { background: rgba(0, 0, 0, 0.42); }

.sp-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}
.sp-sheet-overlay--visible .sp-sheet { transform: translateY(0); }

.sp-sheet * { color: inherit; box-sizing: border-box; }
.sp-sheet .sp-input, .sp-sheet .sp-textarea {
  color: #1d1d1f !important;
  background: #f5f5f7 !important;
  border-color: #e8e8ed !important;
}

.sp-sheet__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8ed;
  position: relative;
}
.sp-sheet__header h2 { margin: 0; font-size: 1.05rem; font-weight: 600; text-align: center; padding: 0 40px; }
.sp-sheet__subtitle {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #6e6e73;
  padding: 0 16px;
}
.sp-sheet__close {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f5f7;
  font-size: 1.3rem;
  cursor: pointer;
  color: #6e6e73;
}
.sp-sheet__body { padding: 20px; overflow-y: auto; flex: 1; }
.sp-sheet__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 24px;
  border-top: 1px solid #e8e8ed;
  justify-content: flex-end;
}
.sp-sheet__footer .sp-btn--primary { flex: 1; min-width: 120px; }

.sp-sheet-fields { display: flex; flex-direction: column; gap: 14px; }

.sp-sheet-photo { text-align: center; margin-bottom: 0; }
.sp-sheet-photo--slide15 { margin-bottom: 0; }
.sp-sheet-photo__tap {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.sp-sheet-photo__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f5f7 0%, #e8e8ed 100%);
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.sp-sheet-photo__ring img { width: 100%; height: 100%; object-fit: cover; }
/* Портрет как на slide-15 (.team-photo-box aspect-ratio 0.8257 / 1) */
.sp-sheet-photo__frame {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 148px;
  aspect-ratio: 0.8257 / 1;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f5f8 0%, #e8ecf1 100%);
  border: 2px dashed #c5ccd6;
  box-shadow: 0 4px 18px rgba(7, 25, 57, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sp-sheet-photo__tap:hover .sp-sheet-photo__frame {
  border-color: #9a8464;
  box-shadow: 0 6px 22px rgba(7, 25, 57, 0.12);
}
.sp-sheet-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.sp-sheet-photo__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-size: 2rem;
  color: var(--gdc-charcoal, #1a2332);
  font-weight: 300;
  line-height: 1;
  opacity: 0.45;
}
.sp-sheet-photo__hint { font-size: 0.68rem; color: #6e6e73; margin: 10px 0 0; line-height: 1.35; max-width: 168px; margin-left: auto; margin-right: auto; }
.sp-sheet-photo-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; align-items: center; }
.sp-sheet-photo-fade,
.sp-sheet-photo-clear { width: 100%; max-width: 168px; }

/* Центрированные модальные окна (филиал / сотрудник) */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(15, 23, 42, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.24s ease;
}
.sp-modal-overlay--visible { background: rgba(15, 23, 42, 0.48); }
.sp-modal {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(7, 25, 57, 0.22);
  transform: scale(0.96) translateY(8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  overflow: hidden;
}
.sp-modal-overlay--visible .sp-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.sp-modal--import {
  width: min(920px, 100%);
  max-height: min(92vh, 820px);
}
.sp-modal--import .sp-modal__body {
  overflow: auto;
}
.sp-modal * { box-sizing: border-box; }
.sp-modal__header {
  position: relative;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #e8e8ed;
  text-align: center;
}
.sp-modal__header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0 36px;
}
.sp-modal__subtitle {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: #6e6e73;
}
.sp-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f5f5f7;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #6e6e73;
}
.sp-modal__body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.sp-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid #e8e8ed;
  justify-content: flex-end;
}
.sp-modal__footer .sp-btn--primary { min-width: 140px; }
.sp-modal .sp-input,
.sp-modal .sp-textarea {
  color: #1d1d1f !important;
  background: #f5f5f7 !important;
  border: 1px solid #e8e8ed !important;
}
.sp-modal-staff-layout {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 560px) {
  .sp-modal-staff-layout { grid-template-columns: 1fr; }
}
.sp-field--last { margin-bottom: 0; }

/* Поиск и сортировка в редакторе филиалов */
.sp-sidebar__tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}
.sp-search-wrap { position: relative; width: 100%; min-width: 0; }
.sp-search-wrap--grow { flex: 1; min-width: 0; }
.sp-search-input,
.sp-sort-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.76rem;
  padding: 9px 12px;
  border: 1px solid #e8e8ed;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
}
.sp-search-input:focus,
.sp-sort-select:focus {
  outline: none;
  border-color: #9a8464;
  box-shadow: 0 0 0 2px rgba(154, 132, 100, 0.15);
}
.sp-staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.sp-branch-empty {
  padding: 16px 14px;
  font-size: 0.76rem;
  color: #6e6e73;
  text-align: center;
}

.sp-add-person {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--gdc-charcoal);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sp-add-person:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}
.sp-add-person:active { transform: scale(0.98); }
.sp-add-person--gold {
  margin-top: 0;
  width: var(--sp-action-btn-width, 212px);
  min-width: var(--sp-action-btn-width, 212px);
  max-width: var(--sp-action-btn-width, 212px);
  padding: 10px 14px;
  font-size: 0.76rem;
  gap: 8px;
  border-radius: 10px;
  background: var(--gdc-gold);
  color: var(--gdc-charcoal);
  box-shadow: 0 4px 14px rgba(191, 171, 138, 0.32);
  white-space: nowrap;
  box-sizing: border-box;
}
.sp-add-person--gold:hover {
  background: var(--gdc-gold-hover);
  box-shadow: 0 6px 18px rgba(191, 171, 138, 0.42);
}
.sp-add-person--gold .sp-add-person__icon {
  width: 22px;
  height: 22px;
  font-size: 1rem;
  background: rgba(7, 25, 57, 0.1);
  color: var(--gdc-charcoal);
}
.sp-add-person__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   Тёмная CRM-оболочка
═══════════════════════════════════════════ */
.preza-admin-app {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  align-items: stretch;
  background: var(--adm-bg, #f0f2f6);
}
@media (max-width: 900px) {
  .preza-admin-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    max-height: 100dvh;
  }
  .preza-admin-sidebar {
    position: relative;
    top: auto;
    z-index: 50;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    padding: 10px 14px !important;
    overflow: visible !important;
  }
  .preza-admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 16px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  .preza-admin-sidebar__foot { width: 100%; flex-direction: row !important; }
  .preza-admin-sidebar__brand { display: none !important; }
}

.preza-admin-sidebar {
  position: relative;
  top: auto;
  align-self: stretch;
  width: 272px;
  height: auto;
  min-height: 0;
  max-height: none;
  background: linear-gradient(175deg, var(--adm-sidebar-from) 0%, var(--adm-sidebar-mid) 48%, var(--adm-sidebar-to) 100%);
  color: var(--adm-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
  gap: 2px;
  border-right: none;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 40;
  box-shadow: 4px 0 28px rgba(7, 25, 57, 0.22);
  flex-shrink: 0;
}
.preza-admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(96, 165, 250, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(191, 171, 138, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.preza-admin-sidebar > * {
  position: relative;
  z-index: 1;
}
.preza-admin-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 22px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--adm-sidebar-border);
  flex-shrink: 0;
}
.preza-admin-sidebar__logo {
  display: block;
  width: 100%;
  max-width: 148px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: brightness(1.2) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}
.preza-admin-sidebar__title { display: none; }
.preza-admin-sidebar__sub { display: none; }

.preza-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  margin-top: 6px;
  padding-top: 4px;
}
.preza-admin-nav__sep {
  height: 1px;
  margin: 8px 10px 6px;
  background: var(--adm-sidebar-border);
  flex-shrink: 0;
}
.preza-admin-sidebar__foot {
  display: none;
}
.preza-admin-nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--adm-sidebar-text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}
.preza-admin-nav__item:hover {
  background: var(--adm-sidebar-hover);
  color: var(--adm-sidebar-text-h);
  transform: translateX(2px);
}
.preza-admin-nav__item--active {
  background: linear-gradient(90deg, var(--adm-sidebar-active) 0%, rgba(191, 171, 138, 0.06) 100%);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gdc-gold, #bfab8a), 0 4px 16px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}
.preza-admin-nav__item--danger {
  color: rgba(255, 180, 180, 0.85);
}
.preza-admin-nav__item--danger:hover {
  background: rgba(248, 113, 113, 0.14);
  color: #ffb4b4;
}
.preza-admin-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.preza-admin-nav__item:hover .preza-admin-nav__icon {
  opacity: 1;
  transform: scale(1.05);
}
.preza-admin-nav__item--active .preza-admin-nav__icon {
  opacity: 1;
  color: var(--gdc-gold, #bfab8a);
}

/* ─── Основная область ─── */
.preza-admin-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 32px);
  box-sizing: border-box;
  background: var(--adm-bg, #f0f2f6);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.preza-admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--adm-bg, #f0f2f6) 75%, transparent);
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  margin-bottom: 20px;
}
.preza-admin-topbar__titles h1 {
  margin: 0 0 2px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--adm-text, #e4e8f0);
  letter-spacing: -0.02em;
}
.preza-admin-topbar__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--adm-text3, #5a6a82);
}
.preza-admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.preza-admin-view { flex: 1; min-width: 0; }

/* ─── KPI карточки ─── */
.preza-admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.preza-kpi {
  background: var(--adm-surface, #ffffff);
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  border-radius: 14px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.preza-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(7, 25, 57, 0.1);
  border-color: rgba(7, 25, 57, 0.12);
}
.preza-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--adm-border2, rgba(7, 25, 57, 0.12));
  border-radius: 14px 14px 0 0;
}
.preza-kpi--ok::before { background: var(--adm-green, #22c55e); }
.preza-kpi--warn::before { background: var(--adm-amber, #fbbf24); }
.preza-kpi--info::before { background: var(--adm-blue, #60a5fa); }
.preza-kpi__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--adm-text, #e4e8f0);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.preza-kpi__label {
  font-size: 0.7rem;
  color: var(--adm-text3, #5a6a82);
  margin-top: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preza-kpi--warn .preza-kpi__value { color: var(--adm-amber, #fbbf24); }
.preza-kpi--ok .preza-kpi__value { color: var(--adm-green, #22c55e); }
.preza-kpi--info .preza-kpi__value { color: var(--adm-blue, #60a5fa); }

/* ─── Чипсы ─── */
.preza-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.preza-chip {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--adm-border2, rgba(255,255,255,0.12));
  background: transparent;
  color: var(--adm-text2, #8899b0);
  cursor: pointer;
  transition: all 0.15s;
}
.preza-chip:hover {
  border-color: var(--adm-gold, #bfab8a);
  color: var(--adm-text, #e4e8f0);
}
.preza-chip--active {
  background: var(--adm-gold2, rgba(191,171,138,0.15));
  border-color: var(--adm-gold, #bfab8a);
  color: var(--adm-gold, #bfab8a);
}

/* ─── Дашборд аналитики ─── */
.adm-analytics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.adm-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}
.adm-section {
  background: var(--adm-surface, #161d2d);
  border: 1px solid var(--adm-border, rgba(255,255,255,0.07));
  border-radius: 16px;
  overflow: hidden;
}
.adm-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--adm-border, rgba(255,255,255,0.07));
}
.adm-section__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--adm-text, #e4e8f0);
  letter-spacing: -0.01em;
}
.adm-section__sub {
  font-size: 0.7rem;
  color: var(--adm-text3, #5a6a82);
  margin-top: 2px;
}
.adm-section__body {
  padding: 16px 20px;
}

/* Горизонтальные бар-чарты */
.adm-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  align-items: center;
  gap: 10px;
}
@media (max-width: 600px) {
  .adm-bar-item { grid-template-columns: 90px 1fr 30px; gap: 6px; }
}
.adm-bar-item__label {
  font-size: 0.75rem;
  color: var(--adm-text2, #8899b0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-bar-item__track {
  height: 7px;
  background: var(--adm-surface3, #212c42);
  border-radius: 6px;
  overflow: hidden;
}
.adm-bar-item__fill {
  height: 100%;
  border-radius: 6px;
  background: var(--adm-gold, #bfab8a);
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
.adm-bar-item__fill--green { background: var(--adm-green, #22c55e); }
.adm-bar-item__fill--blue  { background: var(--adm-blue, #60a5fa); }
.adm-bar-item__fill--amber { background: var(--adm-amber, #fbbf24); }
.adm-bar-item__fill--red   { background: var(--adm-red, #f87171); }
.adm-bar-item__fill--purple{ background: var(--adm-purple, #a78bfa); }
.adm-bar-item__val {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text, #e4e8f0);
  text-align: right;
}

/* Пончик-диаграмма */
.adm-donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 600px) { .adm-donut-wrap { grid-template-columns: 1fr; } }
.adm-donut-svg { flex-shrink: 0; display: block; }
.adm-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-donut-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.adm-donut-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adm-donut-legend__label { color: var(--adm-text2, #8899b0); }
.adm-donut-legend__val {
  margin-left: auto;
  font-weight: 700;
  color: var(--adm-text, #e4e8f0);
  font-variant-numeric: tabular-nums;
}

/* Сетка 2-col */
.adm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .adm-grid-2 { grid-template-columns: 1fr; } }

/* Активность (sparkline-полосы) */
.adm-sparkbar-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}
.adm-sparkbar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--adm-gold2, rgba(191,171,138,0.15));
  min-height: 4px;
  transition: background 0.2s;
  cursor: default;
  position: relative;
}
.adm-sparkbar:hover { background: var(--adm-gold, #bfab8a); }
.adm-sparkbar-labels {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  font-size: 0.62rem;
  color: var(--adm-text3, #5a6a82);
}

/* Пустой стейт */
.adm-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--adm-text3, #5a6a82);
  font-size: 0.82rem;
}

.preza-table-row { cursor: pointer; }
.preza-table-row:focus-visible { outline: 2px solid var(--gdc-gold); outline-offset: -2px; }
.preza-table-clinic-sub {
  display: block;
  font-size: 0.68rem;
  color: #86868b;
  font-weight: 400;
  margin-top: 2px;
}
.preza-badge-demo {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(191, 171, 138, 0.25);
  color: var(--gdc-charcoal);
  border: 1px solid rgba(191, 171, 138, 0.5);
  margin-left: 6px;
  vertical-align: middle;
}
.preza-table-users {
  font-size: 0.78rem;
  color: #424245;
}
.preza-table-users code {
  font-size: 0.72rem;
  background: #f5f5f7;
  padding: 2px 6px;
  border-radius: 4px;
}

.preza-toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 32px));
}
.preza-toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  animation: preza-toast-in 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.preza-toast--success { background: #1e8449; }
.preza-toast--error { background: #c0392b; }
.preza-toast--info { background: var(--gdc-cool-grey); }
@keyframes preza-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.preza-modal-host {
  position: fixed;
  inset: 0;
  z-index: 250000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.preza-modal-host--open {
  opacity: 1;
  visibility: visible;
}
.preza-modal {
  width: 100%;
  max-width: 440px;
  background: var(--adm-surface, #161d2d);
  border: 1px solid var(--adm-border2, rgba(255,255,255,0.12));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--adm-text, #e4e8f0);
}
.preza-modal h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--adm-text, #e4e8f0); }
.preza-modal p { margin: 0 0 16px; font-size: 0.82rem; color: var(--adm-text2, #8899b0); line-height: 1.5; }
.preza-modal--settings { max-width: 520px; }
.preza-modal-settings-section { margin-top: 18px; }
.preza-modal-settings-section:first-of-type { margin-top: 12px; }
.preza-modal-settings-section__title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-text3, #6b7c94);
}
.preza-modal-settings-section__desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--adm-text2, #8899b0);
  line-height: 1.45;
}
.preza-modal--settings .preza-toggle-card { margin-bottom: 10px; }
.preza-modal-settings-open-site {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(7, 25, 57, 0.08);
}
.preza-modal-settings-open-site .preza-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.preza-modal-settings-open-site .preza-toggle-card__hint {
  margin: 8px 0 0;
}
.preza-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

#preza-admin-configurator.preza-admin-view:not(.preza-auth-hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.preza-cfg-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.preza-cfg-hero {
  flex-shrink: 0;
  width: 100%;
  background: var(--adm-surface, #ffffff);
  border-radius: 18px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  box-shadow: 0 4px 24px rgba(7, 25, 57, 0.06);
  overflow: hidden;
}
.preza-cfg-hero__content {
  position: relative;
  z-index: 1;
}
.preza-cfg-hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  flex-wrap: nowrap;
}
.preza-cfg-hero__identity {
  flex: 1 1 240px;
  min-width: 0;
}
.preza-cfg-hero__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--adm-text, #1a2332);
  line-height: 1.3;
}
.preza-cfg-toolbar-wrap {
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.preza-cfg-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.preza-cfg-toolbar .preza-btn {
  width: auto !important;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 0.78rem;
}
.preza-cfg-toolbar-wrap .preza-cfg-save-hint {
  display: none;
  font-size: 0.68rem;
  color: #e67e22;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
}
.preza-cfg-toolbar-wrap--dirty .preza-cfg-save-hint {
  display: block;
}
.preza-cfg-staff-panel {
  padding: 16px 24px 20px;
  background: var(--adm-surface, #ffffff);
  border-top: 1px solid rgba(7, 25, 57, 0.05);
}
.preza-cfg-staff-panel__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.preza-cfg-staff-panel__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(191, 171, 138, 0.22) 0%, rgba(37, 99, 235, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.preza-cfg-staff-panel__eyebrow {
  margin: 0 0 4px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--adm-gold, #9a8464);
}
.preza-cfg-staff-panel__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text, #1a2332);
}
.preza-cfg-staff-panel__desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.55;
  max-width: 720px;
}
.preza-cfg-staff-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.preza-cfg-staff-panel .preza-users-list {
  margin: 0;
}
.preza-cfg-staff-panel .preza-users-add {
  margin: 0;
  max-width: none;
  padding: 16px 18px;
  background: var(--adm-surface2, #f7f8fa);
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  border-radius: 14px;
}
.preza-cfg-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  background: var(--adm-surface, #ffffff);
  border-radius: 18px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  box-shadow: 0 4px 24px rgba(7, 25, 57, 0.06);
  overflow: hidden;
}
@media (max-width: 900px) {
  .preza-cfg-shell { grid-template-columns: 1fr; }
  .preza-cfg-nav--tabs { display: none; }
  .preza-cfg-hero__bar { flex-direction: column; align-items: stretch; }
  .preza-cfg-toolbar-wrap { align-items: stretch; width: 100%; }
  .preza-cfg-toolbar { justify-content: flex-start; flex-wrap: wrap; }
}
.preza-cfg-nav {
  background: var(--adm-surface2, #f7f8fa);
  border-right: none;
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  padding: 14px 16px;
  overflow: visible;
}
.preza-cfg-nav--tabs {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
}
.preza-cfg-nav--tabs .preza-cfg-nav__title {
  display: none;
}
.preza-cfg-nav--tabs .preza-cfg-nav__link {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preza-cfg-nav__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text3, #718096);
  margin: 0 8px 12px;
}
.preza-cfg-nav__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--adm-text2, #4a5568);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.preza-cfg-nav__link:hover { background: var(--adm-surface3, #eef1f5); color: var(--adm-text, #1a2332); }
.preza-cfg-nav__link--active {
  background: var(--adm-gold2, rgba(191,171,138,0.22));
  color: var(--adm-gold, #9a8464);
  font-weight: 600;
}
.preza-cfg-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-height: none;
  height: 100%;
  background: #fafbfc;
}
.preza-cfg-body {
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 32px;
  -webkit-overflow-scrolling: touch;
}
.preza-cfg-step--hidden {
  display: none !important;
}
body.preza-admin-page .preza-cfg-body > .preza-cfg-step.preza-cfg-step--hidden,
body.preza-admin-page .preza-cfg-body > .preza-cfg-intro.preza-cfg-step--hidden {
  display: none !important;
}
.preza-cfg-step-card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.preza-cfg-step__header {
  margin-bottom: 18px;
}
.preza-cfg-step__content {
  background: var(--adm-surface, #ffffff);
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
.preza-cfg-group {
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--adm-surface2, #f7f8fa);
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.06));
  border-radius: 12px;
}
.preza-cfg-group:last-child {
  margin-bottom: 0;
}
.preza-cfg-group__title {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text3, #718096);
}
.preza-cfg-req {
  color: var(--adm-red, #dc2626);
}
.preza-cfg-field--inline {
  margin-bottom: 0;
}
.preza-cfg-breadcrumb {
  font-size: 0.72rem;
  color: #6e6e73;
  margin: 0 0 4px;
}
.preza-cfg-breadcrumb strong { color: #1a2332; }
.preza-cfg-breadcrumb--headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 1.15rem;
  font-weight: 400;
  padding: 6px 0 8px;
  margin: 0;
  color: #1a2332;
}
.preza-cfg-breadcrumb__prefix {
  font-weight: 400;
  color: #6e6e73;
}
.preza-cfg-breadcrumb__sep {
  color: #b0b4bc;
  font-weight: 400;
  user-select: none;
}
.preza-cfg-breadcrumb__name-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.preza-cfg-breadcrumb__name {
  font-weight: 700;
  color: #1a2332;
  line-height: 1.3;
}
.preza-cfg-breadcrumb__edit {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.12));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text2, #4a5568);
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.preza-cfg-breadcrumb__edit:hover {
  background: #fff;
  border-color: var(--adm-border2, rgba(7, 25, 57, 0.18));
  color: var(--adm-text, #1a2332);
}
.preza-cfg-breadcrumb__edit svg {
  display: block;
}
.preza-modal--clinic-name .preza-cfg-field {
  margin-left: 0;
  max-width: 100%;
}
.preza-modal--hero-logo {
  max-width: 480px;
}
.preza-modal-hero-logo__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin: 0 0 16px;
  padding: 36px 28px;
  border-radius: 14px;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.1));
}
.preza-modal-hero-logo__stage--light {
  background: var(--adm-surface2, #f7f8fa);
}
.preza-modal-hero-logo__stage--dark {
  background: #1a2332;
  border-color: rgba(255, 255, 255, 0.12);
}
.preza-modal-hero-logo__stage img {
  display: block;
  max-width: 100%;
  max-height: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.preza-modal-hero-logo__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.preza-modal-hero-logo__hint {
  margin: 0 0 18px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--adm-text3, #718096);
}
.preza-cfg-hero__settings {
  padding: 0 24px;
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}
.preza-cfg-hero__fields {
  margin: 0;
  padding: 0;
}
.preza-cfg-hero__fields-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0;
  --preza-cfg-hero-logo-h: calc(0.76rem * 1.35 + 6px + 11px * 2 + 0.82rem * 1.35 + 6px);
}
.preza-cfg-hero__fields-row--only {
  margin: 0;
}
.preza-cfg-hero__divider {
  flex: 0 0 1px;
  width: 1px;
  height: var(--preza-cfg-hero-logo-h);
  margin: 0 30px;
  background: rgba(7, 25, 57, 0.14);
  align-self: flex-end;
}
.preza-cfg-hero-logo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  height: var(--preza-cfg-hero-logo-h);
  max-height: var(--preza-cfg-hero-logo-h);
  flex-shrink: 0;
  overflow: hidden;
  margin-right: 2px;
}
.preza-cfg-hero-logo__frame {
  flex: 0 0 auto;
  width: 118px;
  height: var(--preza-cfg-hero-logo-h);
  max-height: var(--preza-cfg-hero-logo-h);
  border: 1px dashed rgba(7, 25, 57, 0.28);
  border-radius: 10px;
  background: var(--adm-surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 5px;
  margin: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.preza-cfg-hero-logo__frame--has-logo:hover {
  border-color: rgba(191, 171, 138, 0.65);
  box-shadow: 0 0 0 2px rgba(191, 171, 138, 0.15);
}
.preza-cfg-hero-logo__frame--dark {
  background: #1a2332;
  border-color: rgba(255, 255, 255, 0.18);
}
.preza-cfg-hero-logo__frame--dark:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.preza-cfg-hero-logo__placeholder {
  font-size: 0.66rem;
  line-height: 1.25;
  color: var(--adm-text3, #718096);
  text-align: center;
  padding: 2px 4px;
  user-select: none;
}
.preza-cfg-hero-logo__frame .preza-logo-preview-img,
.preza-cfg-hero-logo__frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}
.preza-cfg-hero-logo__actions {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 6px;
  flex-shrink: 0;
  width: 5.75rem;
  height: var(--preza-cfg-hero-logo-h);
  max-height: var(--preza-cfg-hero-logo-h);
}
.preza-cfg-hero-logo__actions .preza-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px 10px !important;
  font-size: 0.7rem !important;
  line-height: 1.2;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.preza-cfg-field--sub-until {
  width: max-content;
  min-width: 17.5rem;
  max-width: 100%;
  margin-right: 2px;
}
.preza-cfg-field--sub-until__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.preza-cfg-field--sub-until__active {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--adm-text, #1a2332);
  white-space: nowrap;
}
.preza-cfg-field--sub-until__active span {
  font-weight: 600;
}
.preza-cfg-field--city {
  width: min(100%, 14rem);
  max-width: 100%;
}
.preza-cfg-field--city input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.preza-cfg-field--sub-until label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--adm-text, #1a2332);
  letter-spacing: 0.01em;
}
.preza-cfg-field--sub-until input[type="date"] {
  width: auto;
  min-width: 10.75rem;
  max-width: 100%;
  font-weight: 600;
  border: 2px solid rgba(7, 25, 57, 0.22) !important;
  field-sizing: content;
}
.preza-cfg-field--sub-until input[type="date"]:focus {
  border-color: var(--gdc-gold, #bfab8a) !important;
  box-shadow: 0 0 0 3px rgba(191, 171, 138, 0.18);
}
.preza-cfg-field--sub-until input[type="date"]:disabled {
  background: var(--adm-surface2, #f0f2f5) !important;
  color: var(--adm-text3, #718096) !important;
  -webkit-text-fill-color: var(--adm-text3, #718096) !important;
  border-color: rgba(7, 25, 57, 0.1) !important;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none !important;
}
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
}
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit,
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-fields-wrapper,
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-text,
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-day-field,
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-month-field,
.preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-year-field {
  color: var(--adm-text3, #718096) !important;
  -webkit-text-fill-color: var(--adm-text3, #718096) !important;
}
.preza-cfg-field--sub-until--inactive label {
  color: var(--adm-text3, #718096);
}
body.preza-admin-page .preza-cfg-field--sub-until label {
  font-weight: 800;
  color: var(--adm-text, #1a2332);
}
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"] {
  width: auto;
  min-width: 10.75rem;
  max-width: 100%;
  border: 2px solid rgba(7, 25, 57, 0.22) !important;
}
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled {
  color: var(--adm-text3, #718096) !important;
  -webkit-text-fill-color: var(--adm-text3, #718096) !important;
  background: var(--adm-surface2, #f0f2f5) !important;
  border-color: rgba(7, 25, 57, 0.1) !important;
}
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit,
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-fields-wrapper,
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-text,
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-day-field,
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-month-field,
body.preza-admin-page .preza-cfg-field--sub-until input[type="date"]:disabled::-webkit-datetime-edit-year-field {
  color: var(--adm-text3, #718096) !important;
  -webkit-text-fill-color: var(--adm-text3, #718096) !important;
}
.preza-cfg-field--compact {
  margin-bottom: 0;
}
.preza-cfg-hero__settings .preza-cfg-field {
  margin-bottom: 0;
}
body.preza-admin-page .preza-cfg-hero__settings .preza-cfg-field {
  margin-bottom: 0;
}
.preza-cfg-field--compact label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--adm-text2, #4a5568);
}
.preza-cfg-hero__toggles {
  display: none;
}
.preza-cfg-staff-add-btn {
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: var(--adm-text3, #718096) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0.85;
}
.preza-cfg-staff-add-btn:hover {
  color: var(--adm-text, #1a2332) !important;
  border-color: var(--adm-border, rgba(7, 25, 57, 0.12)) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  opacity: 1;
}
.preza-cfg-staff-panel__content {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.1));
  border-radius: 14px;
  overflow: hidden;
  background: var(--adm-surface, #fff);
}
.preza-cfg-staff-panel__aside {
  flex: 0 0 212px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--adm-surface2, #f7f8fa);
  border-right: none;
}
.preza-cfg-staff-panel__aside-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adm-text3, #718096);
}
.preza-cfg-staff-panel__aside-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.preza-cfg-staff-panel__aside-actions .preza-btn {
  width: 100%;
  justify-content: center;
  padding: 7px 10px !important;
  font-size: 0.7rem !important;
}
.preza-cfg-staff-panel__divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  background: rgba(7, 25, 57, 0.14);
}
.preza-cfg-staff-panel__options {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  margin: 0;
  border-bottom: none;
}
.preza-cfg-staff-panel__options .preza-cfg-check {
  font-size: 0.78rem;
  width: 100%;
}
.preza-cfg-staff-panel__head .preza-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.preza-cfg-staff-panel--collapsed .preza-cfg-staff-panel__body {
  display: none;
}
.preza-cfg-staff-panel__split {
  display: none;
}
.preza-cfg-staff-table-wrap {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  margin-top: 0;
  padding: 14px 16px 14px 18px;
  background: var(--adm-surface, #fff);
}
.preza-cfg-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--adm-text, #1a2332);
  cursor: pointer;
  user-select: none;
}
.preza-cfg-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gdc-gold, #bfab8a);
  flex-shrink: 0;
}
.preza-cfg-staff-panel__toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--adm-text, #1a2332);
}
.preza-cfg-staff-panel__arrow {
  font-size: 0.72rem;
  color: var(--adm-text3, #718096);
  width: 14px;
  text-align: center;
}
.preza-cfg-staff-panel__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.preza-cfg-staff-pass-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.72;
  vertical-align: middle;
  transition: opacity 0.15s ease;
}
.preza-cfg-staff-pass-toggle:hover {
  opacity: 1;
}
.preza-cfg-staff-grid {
  --preza-staff-cols: 52px 100px minmax(0, 1fr) minmax(0, 1.15fr);
  display: grid;
  grid-template-columns: var(--preza-staff-cols);
  width: 100%;
  max-width: 100%;
  font-size: 0.78rem;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.1));
  border-radius: 12px;
  overflow: hidden;
  background: var(--adm-surface, #fff);
}
.preza-cfg-staff-grid__head,
.preza-cfg-staff-grid__body {
  display: contents;
}
.preza-cfg-staff-grid__row {
  display: grid;
  grid-template-columns: var(--preza-staff-cols);
  grid-column: 1 / -1;
  align-items: center;
  box-sizing: border-box;
}
@supports (grid-template-columns: subgrid) {
  .preza-cfg-staff-grid__row {
    grid-template-columns: subgrid;
  }
}
.preza-cfg-staff-grid__row--head {
  background: var(--adm-surface2, #f7f8fa);
  border-bottom: 1px solid var(--adm-border, rgba(7, 25, 57, 0.1));
}
.preza-cfg-staff-grid__body .preza-cfg-staff-grid__row {
  border-bottom: 1px solid rgba(7, 25, 57, 0.06);
}
.preza-cfg-staff-grid__body .preza-cfg-staff-grid__row:last-child {
  border-bottom: none;
}
.preza-cfg-staff-grid__row--empty {
  display: block;
  grid-column: 1 / -1;
  border-bottom: none;
}
.preza-cfg-staff-grid__cell {
  padding: 10px 12px;
  min-width: 0;
  box-sizing: border-box;
}
.preza-cfg-staff-grid__row--head .preza-cfg-staff-grid__cell {
  padding: 10px 12px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text3, #718096);
}
.preza-cfg-staff-table__th-status,
.preza-cfg-staff-table__status {
  text-align: center;
  justify-content: center;
}
.preza-cfg-staff-grid__cell.preza-cfg-staff-table__status {
  display: flex;
  align-items: center;
  justify-content: center;
}
.preza-cfg-staff-table__th-created,
.preza-cfg-staff-table__created {
  text-align: center;
}
.preza-cfg-staff-table__th-login,
.preza-cfg-staff-table__login,
.preza-cfg-staff-table__th-pass,
.preza-cfg-staff-table__pass {
  text-align: left;
}
.preza-cfg-staff-table__th-pass {
  white-space: nowrap;
}
.preza-cfg-staff-table__th-pass .preza-cfg-staff-table__th-pass-label,
.preza-cfg-staff-table__th-pass .preza-cfg-staff-pass-toggle {
  display: inline-block;
  vertical-align: middle;
}
.preza-cfg-staff-table__th-pass .preza-cfg-staff-table__th-pass-label {
  margin-right: 6px;
}
.preza-cfg-staff-table__status-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  line-height: 1;
}
.preza-cfg-staff-table__status .preza-user-active-cb {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  accent-color: var(--gdc-gold, #bfab8a);
  cursor: pointer;
  flex-shrink: 0;
}
.preza-cfg-staff-table__created {
  color: var(--adm-text2, #4a5568);
  font-size: 0.76rem;
  white-space: nowrap;
  text-align: center;
}
.preza-cfg-staff-table__pass {
  position: relative;
}
.preza-cfg-staff-table__pass-cell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding-right: 22px;
  box-sizing: border-box;
}
.preza-cfg-staff-table__pass-cell .preza-cfg-staff-table__input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.preza-cfg-staff-table__pass-cell .preza-user-delete {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.preza-cfg-staff-grid__body .preza-cfg-staff-grid__row:hover .preza-cfg-staff-table__pass-cell .preza-user-delete {
  opacity: 1;
}
.preza-cfg-staff-table__input {
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: inherit;
  background: transparent;
  color: var(--adm-text, #1a2332) !important;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preza-cfg-staff-table__input:hover,
.preza-cfg-staff-table__input:focus {
  border-color: var(--adm-border2, rgba(7, 25, 57, 0.14));
  background: var(--adm-surface, #fff);
  outline: none;
}
.preza-cfg-staff-table__pass .preza-cfg-staff-table__input {
  border-radius: 6px;
}
.preza-cfg-staff-grid .preza-user-delete {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--adm-text3, #718096);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.preza-cfg-staff-grid .preza-user-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.preza-cfg-staff-grid__row--empty .preza-cfg-staff-grid__empty {
  grid-column: 1 / -1;
}
.preza-cfg-staff-grid__empty {
  text-align: center;
  padding: 20px 12px;
  color: var(--adm-text3, #718096);
  font-size: 0.78rem;
}
.preza-modal--staff-user .preza-cfg-field {
  margin-left: 0;
  max-width: 100%;
}
@media (max-width: 960px) {
  .preza-cfg-hero__fields-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .preza-cfg-hero__divider {
    display: none;
  }
  .preza-cfg-hero-logo {
    width: 100%;
    margin-right: 0;
  }
  .preza-cfg-field--sub-until,
  .preza-cfg-field--city {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
  .preza-cfg-staff-panel__content {
    flex-direction: column;
  }
  .preza-cfg-staff-panel__aside {
    flex: none;
    width: 100%;
    border-bottom: 1px solid rgba(7, 25, 57, 0.1);
  }
  .preza-cfg-staff-panel__divider {
    display: none;
  }
  .preza-cfg-staff-table-wrap {
    padding: 14px;
  }
  .preza-cfg-staff-panel__aside-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .preza-cfg-staff-panel__aside-actions .preza-btn {
    width: auto;
    flex: 1 1 auto;
  }
  .preza-cfg-staff-panel__options {
    flex: none;
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.preza-auth-card--login-v2 { max-width: 420px; }

/* ——— Плавный вход: первое появление карточки ——— */
@keyframes prezaLoginBgDrift {
  from { background-position: center 52%, center 48%; }
  to { background-position: center 48%, center 52%; }
}
@keyframes prezaLoginCardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes prezaLoginShimmer {
  0%, 100% { box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(191, 171, 138, 0); }
  50% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(191, 171, 138, 0.2); }
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) .preza-portal-login {
  animation: prezaLoginBgDrift 18s ease-in-out infinite alternate;
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff):not(.preza-portal-exit--admin):not(.preza-portal-exit--staff) #preza-auth-root .preza-auth-card--dark {
  animation: prezaLoginCardIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both, prezaLoginShimmer 4s ease-in-out 1s infinite;
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) #preza-auth-root .preza-auth-logo {
  animation: prezaPortalStagger 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) #preza-auth-root h1 {
  animation: prezaPortalStagger 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) #preza-auth-root .preza-auth-sub {
  animation: prezaPortalStagger 0.7s 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) #preza-auth-root .preza-login-form--admin,
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) #preza-auth-root form:not(.preza-login-form--admin) {
  animation: prezaPortalStagger 0.7s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-login-active:not(.preza-portal-enter--admin):not(.preza-portal-enter--staff) #preza-auth-root .preza-portal-switch {
  animation: prezaPortalStagger 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#preza-auth-root .preza-field input,
.preza-login-form--admin .preza-field input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
#preza-auth-root .preza-field input:focus,
.preza-login-form--admin .preza-field input:focus {
  border-color: var(--gdc-gold);
  box-shadow: 0 0 0 4px rgba(191, 171, 138, 0.28);
  transform: translateY(-1px);
  outline: none;
}
.preza-btn--primary {
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.preza-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(191, 171, 138, 0.45);
}
.preza-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(191, 171, 138, 0.3);
}

/* ——— Мастер новой презентации ——— */
.preza-cfg-intro {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(191, 171, 138, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%);
  border: 1px solid var(--adm-gold2, rgba(191,171,138,0.22));
  border-radius: 14px;
}
.preza-cfg-intro__badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--adm-gold, #9a8464);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.preza-cfg-intro h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text, #1a2332);
}
.preza-cfg-intro > div > p {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.55;
}
.preza-cfg-checklist {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.74rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.65;
}
.preza-cfg-checklist li { margin-bottom: 3px; }
.preza-cfg-checklist li strong { color: var(--adm-text, #1a2332); font-weight: 600; }
.preza-cfg-field-hint {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--adm-text3, #718096);
  margin-top: 5px;
  line-height: 1.45;
}
.preza-cfg-step-desc {
  margin: 8px 0 0 0;
  padding: 10px 14px;
  font-size: 0.74rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.55;
  background: var(--adm-surface2, #f7f8fa);
  border-left: 3px solid var(--adm-gold, #9a8464);
  border-radius: 0 8px 8px 0;
}

/* ——— Boot loader (доп. к inline critical) ——— */
.preza-app-loader__ring { box-sizing: border-box; }
.preza-app-loader__spinner { position: relative; }
.preza-app-loader__ring--inner { position: absolute; }
.preza-app-loader__bar > i { display: block; height: 100%; }

/* ——— Админка: полировка ——— */
.preza-auth-hint--soft { opacity: 0.75; font-size: 0.68rem; }
.preza-admin-sidebar__brand {
  flex-direction: column;
  gap: 6px;
}
.preza-admin-sidebar__title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(164, 182, 196, 0.75);
  text-align: center;
}
.preza-admin-topbar {
  border-bottom: 1px solid var(--adm-border);
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(240, 242, 246, 0.97) 70%, transparent);
}
.preza-table-panel {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.preza-table-panel:hover {
  box-shadow: 0 8px 28px rgba(7, 25, 57, 0.08);
}
.preza-admin-nav__icon svg { display: block; }
.preza-admin-nav__icon { display: flex; align-items: center; justify-content: center; width: 20px; }
body.preza-admin-page .preza-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(191, 171, 138, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body.preza-admin-page .preza-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(191, 171, 138, 0.45);
}
body.preza-admin-ready .preza-admin-view {
  animation: prezaAdminIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.preza-admin-ready .preza-kpi {
  animation: prezaAdminIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.preza-admin-ready .preza-kpi:nth-child(2) { animation-delay: 0.05s; }
body.preza-admin-ready .preza-kpi:nth-child(3) { animation-delay: 0.1s; }
body.preza-admin-ready .preza-kpi:nth-child(4) { animation-delay: 0.15s; }
.preza-kpi {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.preza-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 25, 57, 0.1);
}
.preza-admin-nav__item {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.preza-admin-nav__item:hover {
  transform: translateX(2px);
}
@keyframes prezaAdminIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skeleton при загрузке данных с сервера */
.preza-admin-skeleton {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.preza-admin-skeleton--kpis {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.preza-admin-skeleton__card {
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eceef2 0%, #f8f9fb 45%, #eceef2 90%);
  background-size: 200% 100%;
  animation: prezaShimmer 1.2s ease-in-out infinite;
}
.preza-admin-skeleton__panel {
  height: 280px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eceef2 0%, #f8f9fb 45%, #eceef2 90%);
  background-size: 200% 100%;
  animation: prezaShimmer 1.2s ease-in-out infinite;
}
@keyframes prezaShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.preza-admin-data-loading .preza-admin-dashboard:not(:empty),
body.preza-admin-data-loading #preza-admin-presentations-list:not(:empty) {
  opacity: 0.55;
  pointer-events: none;
}

.preza-table-clinic-sub {
  display: block;
  font-size: 0.72rem;
  color: #86868b;
  margin-top: 2px;
  font-weight: 400;
}
.preza-badge-demo {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(191, 171, 138, 0.25);
  color: #8a7355;
  vertical-align: middle;
}
.preza-table-empty {
  text-align: center;
  padding: 48px 24px !important;
  color: #86868b;
  font-size: 0.88rem;
}

/* ═══ Переходы между входом «Презентация» ↔ «Конфигуратор» ═══ */
#preza-auth-root {
  position: relative;
}
.preza-portal-login {
  perspective: 1400px;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.preza-portal-login::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  left: -20%;
  top: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(191, 171, 138, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
  pointer-events: none;
  animation: prezaLoginAura 12s ease-in-out infinite alternate;
}
@keyframes prezaLoginAura {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
.preza-auth-card--dark {
  transform-style: preserve-3d;
  animation: prezaLoginCardIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes prezaLoginCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.preza-auth-card--dark {
  will-change: transform, opacity;
}

.preza-portal-switch {
  display: flex;
  position: relative;
  margin-top: clamp(12px, 2vh, 18px);
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(191, 171, 138, 0.28);
  gap: 0;
}
.preza-portal-switch__glow {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(191, 171, 138, 0.42), rgba(191, 171, 138, 0.12));
  border: 1px solid rgba(191, 171, 138, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
  pointer-events: none;
}
body.preza-admin-page .preza-portal-switch__glow,
.preza-portal-switch--admin .preza-portal-switch__glow {
  transform: translateX(100%);
}
.preza-portal-switch__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: color 0.25s ease, transform 0.2s ease;
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.preza-portal-switch__item:hover:not(.preza-portal-switch__item--active) {
  color: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}
.preza-portal-switch__item--active {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.preza-portal-switch__icon {
  display: block;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.preza-portal-switch__item--active .preza-portal-switch__icon {
  opacity: 1;
  transform: scale(1.08);
}

/* Занавес перехода */
.preza-portal-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(191, 171, 138, 0.12) 0%, rgba(7, 25, 57, 0.98) 70%);
}
.preza-portal-transition-curtain__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}
.preza-portal-transition-curtain__ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(191, 171, 138, 0.22);
  border-top-color: var(--gdc-gold);
  margin: 0;
  opacity: 0;
}
.preza-portal-transition-curtain__text {
  display: none;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  max-width: 280px;
  padding: 0 20px;
}

#preza-auth-root.preza-login-submitting .preza-portal-transition-curtain {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
#preza-auth-root.preza-login-submitting .preza-portal-transition-curtain__ring {
  opacity: 1;
  animation: prezaPortalRingSpin 0.9s linear infinite;
}
#preza-auth-root.preza-login-submitting .preza-portal-transition-curtain__text {
  display: block;
  opacity: 1;
  transform: none;
  margin-top: 16px;
}
#preza-auth-root.preza-login-submitting .preza-auth-card {
  pointer-events: none;
  opacity: 0.72;
}

/* —— Выход —— */
html.preza-portal-exit--admin #preza-auth-root.preza-portal-exiting .preza-portal-login,
html.preza-portal-exit--staff #preza-auth-root.preza-portal-exiting .preza-portal-login {
  animation: prezaPortalBgZoomOut 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.preza-portal-exit--admin #preza-auth-root.preza-portal-exiting .preza-auth-card {
  animation: prezaPortalCardExitLeft 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.preza-portal-exit--staff #preza-auth-root.preza-portal-exiting .preza-auth-card {
  animation: prezaPortalCardExitRight 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.preza-portal-exit--admin #preza-auth-root.preza-portal-exiting .preza-portal-transition-curtain,
html.preza-portal-exit--staff #preza-auth-root.preza-portal-exiting .preza-portal-transition-curtain {
  opacity: 1;
  visibility: visible;
  animation: prezaPortalCurtainIn 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.preza-portal-exit--admin #preza-auth-root.preza-portal-exiting .preza-portal-transition-curtain__ring,
html.preza-portal-exit--staff #preza-auth-root.preza-portal-exiting .preza-portal-transition-curtain__ring {
  animation: prezaPortalRingSpin 0.72s linear forwards, prezaPortalFadeIn 0.35s ease forwards;
}
html.preza-portal-exit--admin #preza-auth-root.preza-portal-exiting .preza-portal-transition-curtain__text,
html.preza-portal-exit--staff #preza-auth-root.preza-portal-exiting .preza-portal-transition-curtain__text {
  display: none;
  animation: none;
}

/* —— Вход —— */
html.preza-portal-enter--admin #preza-auth-root,
html.preza-portal-enter--staff #preza-auth-root {
  animation: none !important;
}
html.preza-portal-enter--admin #preza-auth-root > .preza-portal-login,
html.preza-portal-enter--staff #preza-auth-root > .preza-portal-login {
  animation: none !important;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering .preza-portal-login {
  animation: prezaPortalBgZoomIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering .preza-portal-login {
  animation: prezaPortalBgZoomIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering .preza-auth-card {
  animation: prezaPortalCardEnterRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering .preza-auth-card {
  animation: prezaPortalCardEnterLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering .preza-auth-logo,
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering .preza-auth-logo {
  animation: prezaPortalStagger 0.65s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering h1,
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering h1 {
  animation: prezaPortalStagger 0.65s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering .preza-auth-sub,
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering .preza-auth-sub {
  animation: prezaPortalStagger 0.65s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering .preza-login-form--admin,
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering .preza-login-form--admin {
  animation: prezaPortalStagger 0.65s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-portal-enter--admin #preza-auth-root.preza-portal-entering .preza-portal-switch,
html.preza-portal-enter--staff #preza-auth-root.preza-portal-entering .preza-portal-switch {
  animation: prezaPortalStagger 0.65s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes prezaPortalCardExitLeft {
  to { opacity: 0; transform: translateX(-56px) scale(0.94) rotateY(10deg); filter: blur(4px); }
}
@keyframes prezaPortalCardExitRight {
  to { opacity: 0; transform: translateX(56px) scale(0.94) rotateY(-10deg); filter: blur(4px); }
}
@keyframes prezaPortalCardEnterRight {
  from { opacity: 0; transform: translateX(64px) scale(0.92) rotateY(-12deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes prezaPortalCardEnterLeft {
  from { opacity: 0; transform: translateX(-64px) scale(0.92) rotateY(12deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes prezaPortalBgZoomOut {
  to { transform: scale(1.04); filter: brightness(0.82); }
}
@keyframes prezaPortalBgZoomIn {
  from { transform: scale(1.04); filter: brightness(0.85); }
  to { transform: none; filter: none; }
}
@keyframes prezaPortalCurtainIn {
  from { opacity: 0; }
  15% { opacity: 1; }
  to { opacity: 1; }
}
@keyframes prezaPortalRingSpin {
  to { transform: rotate(360deg); opacity: 1; }
}
@keyframes prezaPortalFadeIn {
  to { opacity: 1; }
}
@keyframes prezaPortalTextRise {
  to { opacity: 1; transform: none; }
}
@keyframes prezaPortalStagger {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .preza-portal-switch__glow,
  .preza-auth-card--dark,
  .preza-portal-login,
  .preza-portal-transition-curtain,
  .preza-portal-transition-curtain__ring,
  .preza-portal-transition-curtain__text,
  html.preza-login-active #preza-auth-root .preza-auth-card--dark,
  html.preza-login-active #preza-auth-root .preza-auth-logo,
  html.preza-login-active #preza-auth-root h1,
  html.preza-login-active #preza-auth-root .preza-auth-sub,
  html.preza-login-active #preza-auth-root form,
  html.preza-login-active #preza-auth-root .preza-portal-switch {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— main.html: единая страница входа ——— */
body.preza-main-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--gdc-charcoal);
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--gdc-white);
}
body.preza-main-page #preza-auth-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
}
.preza-portal-login--main {
  position: relative;
  isolation: isolate;
}
.preza-portal-login__aura {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(96, 165, 250, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 82% 78%, rgba(191, 171, 138, 0.14) 0%, transparent 55%);
  animation: prezaMainAura 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.preza-portal-login__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
@keyframes prezaMainAura {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, -2%, 0) scale(1.05); }
}
.preza-auth-card--portal-main {
  position: relative;
  z-index: 2;
  max-width: min(460px, 100%);
  padding: clamp(22px, 3.5vh, 32px) clamp(18px, 4vw, 28px) clamp(20px, 3vh, 28px);
  border-radius: 20px;
  border: 1px solid rgba(191, 171, 138, 0.42);
  background: linear-gradient(165deg, rgba(12, 34, 71, 0.72) 0%, rgba(7, 25, 57, 0.58) 100%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: prezaMainCardIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.preza-auth-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: prezaMainShine 5.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes prezaMainCardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes prezaMainShine {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.preza-auth-card--portal-main .preza-auth-logo {
  max-width: min(200px, 52vw);
  margin-bottom: clamp(14px, 2.5vh, 22px);
  opacity: 0.72;
  animation: prezaPortalStagger 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.preza-portal-switch--main {
  margin-top: 0;
  margin-bottom: clamp(14px, 2.2vh, 20px);
  animation: prezaPortalStagger 0.75s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.preza-portal-switch--main .preza-portal-switch__item {
  border: none;
  background: transparent;
  font-family: inherit;
  width: 100%;
}
.preza-auth-card--portal-main .preza-login-form--admin {
  animation: prezaPortalStagger 0.75s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.preza-login-active body.preza-main-page .preza-portal-login {
  animation: prezaLoginBgDrift 18s ease-in-out infinite alternate;
}
html.preza-login-active body.preza-main-page #preza-auth-root .preza-auth-card--portal-main {
  animation: prezaMainCardIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.preza-main-page .preza-btn--primary {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

/* ——— Конфигуратор: карточки разделов ——— */
.preza-admin-main--cfg {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.preza-admin-main--cfg .preza-admin-topbar {
  display: none;
}
.preza-cfg-body .preza-cfg-step-card {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.preza-cfg-body .preza-cfg-step__header .preza-cfg-step-desc {
  margin: 8px 0 0 36px !important;
  padding: 10px 14px;
  font-size: 0.74rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--adm-gold, #9a8464);
  border-radius: 0 8px 8px 0;
  max-width: none;
}
.preza-cfg-body .preza-cfg-field,
.preza-cfg-body .preza-cfg-clinics,
.preza-cfg-body .preza-cfg-slides,
.preza-cfg-body .preza-logo-upload,
.preza-cfg-body .preza-logo-dual,
.preza-cfg-body .preza-pres-clinic-embed,
.preza-cfg-body .preza-cfg-row-2,
.preza-cfg-body .preza-implant-layout,
.preza-cfg-body .preza-cfg-intro,
.preza-cfg-body .preza-cfg-group,
.preza-cfg-body .preza-implant-systems-list,
.preza-cfg-body .preza-implant-active-hint {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.preza-cfg-body .preza-cfg-intro {
  margin-bottom: 18px !important;
}
.preza-cfg-hero .preza-users-list,
.preza-cfg-hero .preza-users-add,
.preza-cfg-staff-panel .preza-cfg-field {
  margin-left: 0 !important;
  max-width: 100% !important;
}
.preza-cfg-body .preza-cfg-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.preza-cfg-body .preza-cfg-field select,
.preza-cfg-body .preza-cfg-field textarea {
  max-width: 100%;
}
.preza-pres-clinic-embed {
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  min-width: 0;
}
.sp-clinic-app--embed .sp-split {
  max-height: none;
  min-height: 360px;
}
.preza-slide-mod__body {
  overflow: visible;
}
.preza-slide-custom-row {
  grid-template-columns: minmax(100px, 120px) minmax(0, 1fr) minmax(0, 1fr) 32px;
}

/* ═══════════════════════════════════════════════════════════
   Admin Panel UX v2 — логичная компоновка, GDC-цвета
═══════════════════════════════════════════════════════════ */

/* ——— Основная область ——— */
.preza-admin-main {
  padding: clamp(20px, 2.5vw, 32px);
  max-width: none;
  width: 100%;
}
.preza-admin-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.preza-admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px 0 20px;
  margin-bottom: 4px;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  position: static;
}
.preza-admin-topbar__left {
  flex: 1;
  min-width: 200px;
}
.preza-admin-breadcrumb {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-text3, #718096);
}
.preza-admin-topbar__titles h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--adm-text, #1a2332);
}
.preza-admin-topbar__desc {
  font-size: 0.82rem;
  color: var(--adm-text2, #4a5568);
  margin-top: 4px;
  line-height: 1.45;
  max-width: 560px;
}

/* ——— KPI ——— */
.preza-admin-dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) {
  .preza-admin-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .preza-admin-dashboard { grid-template-columns: 1fr; }
  body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) {
    padding: 16px 14px 20px;
  }
}
.preza-kpi {
  padding: 20px 20px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.05);
}
.preza-kpi__value {
  font-size: 2rem;
  color: var(--adm-text, #1a2332);
}
.preza-kpi--ok .preza-kpi__value { color: var(--adm-green, #15803d); }
.preza-kpi--warn .preza-kpi__value { color: var(--adm-amber, #b45309); }

/* ——— Таблица ——— */
.preza-table-panel {
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(7, 25, 57, 0.06);
}
.preza-table-toolbar {
  padding: 16px 20px;
  gap: 12px 16px;
  align-items: center;
}
.preza-table-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.preza-table-select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--adm-border2);
  background: var(--adm-surface, #fff);
  color: var(--adm-text, #1a2332);
  font-size: 0.82rem;
  font-family: inherit;
}
.preza-table-count {
  font-size: 0.75rem;
  color: var(--adm-text3);
  white-space: nowrap;
  margin-left: auto;
}
.preza-filter-chips {
  padding: 0 20px 14px;
}
.preza-chip--active {
  background: var(--gdc-charcoal, #071939);
  border-color: var(--gdc-charcoal, #071939);
  color: #fff;
}
.preza-table th {
  font-size: 0.68rem;
  padding: 12px 16px;
  color: var(--adm-text3);
  background: var(--adm-surface2);
}
.preza-table td {
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--adm-text);
  border-bottom: 1px solid var(--adm-border);
  vertical-align: middle;
}
.preza-table-row:hover td {
  background: var(--adm-gold3, rgba(191, 171, 138, 0.08));
}
.preza-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.preza-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--adm-border2);
  background: var(--adm-surface, #fff);
  color: var(--adm-text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.preza-icon-btn:hover {
  background: var(--adm-surface2);
  border-color: var(--adm-gold);
  color: var(--adm-text);
  transform: translateY(-1px);
}

/* ——— Чекбоксы и переключатели ——— */
.preza-cfg-field--check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  margin-bottom: 10px;
}
.preza-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--adm-text, #1a2332);
  cursor: pointer;
  line-height: 1.3;
}
.preza-check-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gdc-gold, #bfab8a);
}
.preza-cfg-field--check .preza-cfg-field-hint {
  margin: 0;
  padding-left: 28px;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.45;
}

/* ——— Сотрудники: одна строка ——— */
.preza-user-row {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.preza-user-row__grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) auto auto;
  gap: 10px 12px;
  align-items: end;
  padding: 14px 16px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.preza-user-row__grid:hover {
  border-color: var(--adm-border2);
  box-shadow: 0 4px 16px rgba(7, 25, 57, 0.06);
}
@media (max-width: 820px) {
  .preza-user-row__grid {
    grid-template-columns: 1fr 1fr;
  }
  .preza-user-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.preza-user-field label {
  color: var(--adm-text3);
  font-size: 0.66rem;
  margin-bottom: 4px;
}
.preza-user-field input[type="text"],
.preza-user-field input[type="password"] {
  background: var(--adm-surface2, #f7f8fa);
  border-color: var(--adm-border2);
  color: var(--adm-text, #1a2332) !important;
  padding: 10px 12px;
  border-radius: 10px;
}
.preza-user-pass-toggle {
  border-color: var(--adm-border2);
  background: var(--adm-surface2);
  border-radius: 0 10px 10px 0;
}
.preza-user-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--adm-text2);
  cursor: pointer;
  padding-bottom: 10px;
  white-space: nowrap;
}
.preza-user-active input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gdc-gold);
}
.preza-user-row__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-bottom: 2px;
}
.preza-users-add {
  background: var(--adm-surface2);
  border-radius: 14px;
  padding: 16px 18px;
}
.preza-users-add__title {
  color: var(--adm-text2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.preza-users-add__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}
.preza-users-add__form .preza-user-field {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  margin: 0;
}
.preza-users-add__form .preza-btn {
  margin: 0;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 1px;
}

/* ——— Конфигуратор ——— */
.preza-cfg-hero {
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(7, 25, 57, 0.08);
}
.preza-cfg-hero__bar {
  padding: 22px 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.preza-cfg-toolbar {
  gap: 6px;
}
.preza-cfg-toolbar .preza-btn--primary {
  order: -1;
  font-weight: 600;
  padding: 10px 18px;
}
.preza-cfg-shell {
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(7, 25, 57, 0.07);
  min-height: 480px;
}
.preza-cfg-nav {
  padding: 20px 12px;
}
.preza-cfg-nav__link {
  padding: 11px 14px;
  font-size: 0.8rem;
  border-radius: 12px;
}
.preza-cfg-nav__link--active {
  background: var(--gdc-charcoal, #071939);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(7, 25, 57, 0.2);
}
.preza-cfg-step__content {
  border-radius: 16px;
  padding: 22px 24px;
}
.preza-cfg-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.preza-cfg-field select,
.preza-cfg-field textarea {
  max-width: 100%;
  background: var(--adm-surface, #fff);
  border-color: var(--adm-border2);
  color: var(--adm-text, #1a2332) !important;
  -webkit-text-fill-color: var(--adm-text, #1a2332);
  border-radius: 10px;
  padding: 11px 14px;
}
.preza-cfg-group {
  border-radius: 14px;
  background: var(--adm-surface2);
}
.preza-cfg-staff-panel {
  border-top: 1px solid var(--adm-border);
}
.preza-slide-mod {
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(7, 25, 57, 0.04);
  overflow: hidden;
}
.preza-slide-mod__toggle {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.72rem;
  background: var(--adm-surface, #fff);
  border-color: var(--adm-border2);
}
.preza-slide-el-pick {
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
}
.preza-slide-el-pick input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gdc-gold);
}
.preza-implant-check {
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.preza-implant-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gdc-gold);
}

/* ——— Новости / аналитика ——— */
.adm-section {
  background: var(--adm-surface);
  border-color: var(--adm-border);
  box-shadow: 0 4px 20px rgba(7, 25, 57, 0.05);
}
.adm-section__title { color: var(--adm-text); }
.adm-bar-item__track { background: var(--adm-surface3); }

/* ——— Баннер теста дизайна ——— */
.preza-design-test-banner,
#preza-design-test-banner-inline {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: inline-block;
  width: auto;
  max-width: min(92vw, 520px);
  padding: 6px 16px;
  font: 600 11px/1.35 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1a1208;
  background: linear-gradient(90deg, #e8c97a, #bfab8a);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
@media (max-width: 520px) {
  .preza-design-test-banner,
  #preza-design-test-banner-inline {
    white-space: normal;
    max-width: calc(100vw - 24px);
    font-size: 10px;
    padding: 5px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Admin Panel UX v3 — профессиональная компоновка
═══════════════════════════════════════════════════════════ */

body.preza-admin-page {
  --adm-radius-sm: 10px;
  --adm-radius-md: 14px;
  --adm-radius-lg: 18px;
  --adm-radius-xl: 22px;
  --adm-shadow-sm: 0 2px 10px rgba(7, 25, 57, 0.05);
  --adm-shadow-md: 0 6px 28px rgba(7, 25, 57, 0.08);
  --adm-space: clamp(16px, 2.5vw, 28px);
}

/* Основная область: адаптивные отступы */
body.preza-admin-page .preza-admin-main {
  padding: clamp(20px, 2.5vw, 32px);
  width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}
body.preza-admin-page .preza-admin-main--cfg {
  max-width: none;
  width: 100%;
}
@media (max-width: 900px) {
  body.preza-admin-page {
    height: 100dvh;
    overflow: hidden;
  }
  body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg),
  body.preza-admin-page .preza-admin-main--cfg {
    padding: 18px 16px 24px;
    margin-left: 0 !important;
    width: 100% !important;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
  }
  body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) .preza-admin-content {
    padding: 0 4px;
  }
}

/* Карточки выбора: чекбокс рядом с текстом */
.preza-choice-card,
.preza-cfg-clinics label.preza-choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--adm-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.preza-choice-card:hover,
.preza-cfg-clinics label.preza-choice-card:hover {
  border-color: var(--adm-gold);
  box-shadow: var(--adm-shadow-sm);
}
.preza-choice-card input,
.preza-cfg-clinics label.preza-choice-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gdc-gold, #bfab8a);
}
.preza-choice-card span {
  line-height: 1.35;
}

/* Слайды: панель инструментов */
.preza-slides-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-md);
}
.preza-slides-toolbar__search {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.preza-slides-toolbar__search .preza-table-search-icon {
  left: 12px;
}
.preza-slides-search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px 9px 38px;
  border: 1px solid var(--adm-border2);
  border-radius: var(--adm-radius-sm);
  font: inherit;
  font-size: 0.82rem;
  background: var(--adm-surface2);
  color: var(--adm-text) !important;
}
.preza-slides-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.preza-slides-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: none;
}
.preza-slide-mod--filtered {
  display: none !important;
}

/* Слайд: чекбокс → номер → название → кнопка */
.preza-slide-mod__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--adm-surface2);
  border-radius: var(--adm-radius-md) var(--adm-radius-md) 0 0;
}
.preza-slide-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.preza-slide-pick input[type="checkbox"] {
  order: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gdc-gold);
}
.preza-slide-pick__pos {
  order: 1;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(7, 25, 57, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--adm-text3);
  padding: 0;
}
.preza-slide-pick__body {
  order: 2;
  flex: 1;
  min-width: 0;
}
.preza-slide-mod__toggle {
  margin-left: auto;
  flex-shrink: 0;
}

/* Конфигуратор: мобильная навигация */
.preza-cfg-nav-mobile {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid var(--adm-border2);
  border-radius: var(--adm-radius-sm);
  background: var(--adm-surface);
  color: var(--adm-text) !important;
  font: 600 0.82rem/1.3 inherit;
}
@media (max-width: 900px) {
  .preza-cfg-nav-mobile { display: block; }
  .preza-cfg-nav--tabs { display: none; }
  .preza-cfg-step--hidden { display: none !important; }
  .preza-cfg-hero__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .preza-cfg-toolbar-wrap {
    align-items: stretch;
    width: 100%;
  }
  .preza-cfg-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .preza-cfg-toolbar .preza-btn {
    flex: 1 1 auto;
    min-width: 120px;
  }
}

/* Поля с чекбоксом: label и input в одной строке */
body.preza-admin-page .preza-cfg-field--check {
  display: block;
  padding: 14px 16px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-md);
  margin-bottom: 10px;
}
body.preza-admin-page .preza-cfg-field--check .preza-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
body.preza-admin-page .preza-cfg-field--check .preza-cfg-field-hint {
  display: block;
  margin: 8px 0 0 28px;
  padding: 0;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.45;
}

/* Сотрудники: компактная сетка */
.preza-user-row__grid {
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.4fr) auto auto;
}
.preza-user-active {
  align-self: end;
  padding-bottom: 10px;
}
.preza-user-row__actions {
  align-self: end;
  padding-bottom: 2px;
}

/* Новости в админке */
body.preza-admin-page .preza-admin-news-panel .preza-cfg-field--check {
  margin-bottom: 16px;
}

/* KPI и таблица: на всю ширину */
body.preza-admin-page .preza-admin-content {
  max-width: none;
  width: 100%;
  margin: 0;
  gap: 4px;
}
body.preza-admin-page .preza-admin-dashboard {
  width: 100%;
}
body.preza-admin-page .preza-table-panel {
  width: 100%;
  border-radius: var(--adm-radius-lg);
}
body.preza-admin-page .preza-admin-topbar {
  width: 100%;
}

/* Импланты: чекбокс рядом с логотипом */
.preza-implant-row__check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Светлая тема для legacy-тёмных блоков */
body.preza-admin-page .preza-user-field input[type="text"],
body.preza-admin-page .preza-user-field input[type="password"],
body.preza-admin-page .preza-implant-input {
  background: var(--adm-surface2) !important;
  color: var(--adm-text) !important;
  -webkit-text-fill-color: var(--adm-text) !important;
  border-color: var(--adm-border2) !important;
}
body.preza-admin-page .preza-users-empty {
  background: var(--adm-surface2);
  border-color: var(--adm-border2);
  color: var(--adm-text3);
}
body.preza-admin-page .adm-bar-item__label,
body.preza-admin-page .adm-bar-item__val {
  color: var(--adm-text2);
}
body.preza-admin-page .preza-table-user-count {
  color: var(--adm-text);
}

/* Конфигуратор: описание шага без смещения */
body.preza-admin-page .preza-cfg-body .preza-cfg-step__header .preza-cfg-step-desc {
  margin: 10px 0 0 0 !important;
}

/* Кастомные поля слайда: подписи колонок на широких экранах */
@media (min-width: 701px) {
  .preza-slide-mod__custom-list:not(:empty):not(:has(.preza-slide-custom-head))::before {
    content: 'Тип · Подпись · Подсказка';
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adm-text3);
    margin-bottom: 6px;
    padding: 0 2px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Admin Pro v4 — финальная система форм (GDC)
═══════════════════════════════════════════════════════════ */

/* Карточка-переключатель: чекбокс + текст в одной строке */
body.preza-admin-page .preza-toggle-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.preza-admin-page .preza-toggle-card:hover {
  border-color: var(--adm-border2);
  box-shadow: var(--adm-shadow-sm, 0 2px 10px rgba(7, 25, 57, 0.05));
}
body.preza-admin-page .preza-toggle-card__row,
body.preza-admin-page .preza-check-label,
body.preza-admin-page .preza-cfg-field--check .preza-check-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--adm-text, #1a2332) !important;
  cursor: pointer;
  line-height: 1.35 !important;
  width: auto !important;
}
body.preza-admin-page .preza-toggle-card__row input[type="checkbox"],
body.preza-admin-page .preza-check-label input[type="checkbox"],
body.preza-admin-page .preza-choice-card input[type="checkbox"],
body.preza-admin-page .preza-slide-pick input[type="checkbox"],
body.preza-admin-page .preza-slide-el-pick input[type="checkbox"],
body.preza-admin-page .preza-user-active input[type="checkbox"],
body.preza-admin-page .preza-implant-check input[type="checkbox"],
body.preza-admin-page .preza-implant-row__check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--gdc-gold, #bfab8a);
  cursor: pointer;
}
body.preza-admin-page .preza-toggle-card__hint,
body.preza-admin-page .preza-cfg-field--check .preza-cfg-field-hint {
  margin: 0 0 0 30px !important;
  padding: 0 !important;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.5;
}

/* Сетка выбора филиалов */
body.preza-admin-page .preza-choice-grid,
body.preza-admin-page .preza-cfg-clinics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
body.preza-admin-page .preza-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--adm-surface, #fff);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--adm-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.preza-admin-page .preza-choice-card:hover {
  border-color: rgba(191, 171, 138, 0.55);
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.06);
}
body.preza-admin-page .preza-choice-card span {
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

/* Редактор слайдов */
body.preza-admin-page .preza-slides-editor,
body.preza-admin-page #preza-edit-slides {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
}
body.preza-admin-page #preza-edit-slides .preza-slides-toolbar {
  padding: 12px 16px 0;
}
body.preza-admin-page #preza-edit-slides .preza-slides-stats {
  padding: 0 16px;
}
body.preza-admin-page #preza-edit-slides .preza-slides-table-wrap {
  border-left: none;
  border-right: none;
  border-radius: 0;
}
body.preza-admin-page .preza-slide-mod {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
body.preza-admin-page .preza-slide-mod__row td {
  background: var(--adm-surface, #fff);
}
body.preza-admin-page .preza-slide-mod__row:hover td {
  background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
}
body.preza-admin-page .preza-slide-pick {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
body.preza-admin-page .preza-slide-pick__pos {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(7, 25, 57, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--adm-text3);
  order: 0;
}
body.preza-admin-page .preza-slide-pick input[type="checkbox"] {
  order: -1;
}
body.preza-admin-page .preza-slide-pick__body {
  flex: 1;
  min-width: 0;
  order: 1;
}
body.preza-admin-page .preza-slide-mod__detail td.preza-slide-mod__body {
  padding: 16px 18px 18px;
  background: var(--adm-surface, #fff);
}
body.preza-admin-page .preza-slide-mod__elements {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
body.preza-admin-page .preza-slide-mod__toggle {
  padding: 8px 16px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
body.preza-admin-page .preza-slide-mod__summary {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 0.72rem;
  color: var(--adm-text2);
  line-height: 1.4;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--adm-border);
}
body.preza-admin-page .preza-slide-mod--off .preza-slide-mod__summary {
  color: var(--adm-red);
}
body.preza-admin-page .preza-slide-mod__section-hint {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.45;
}
body.preza-admin-page .preza-slide-pick__meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--adm-text3);
  margin-top: 2px;
}
body.preza-admin-page .preza-slides-stats {
  margin: -4px 0 0;
  padding: 0 2px 2px;
  font-size: 0.74rem;
  color: var(--adm-text2);
}
body.preza-admin-page .preza-slides-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.preza-admin-page .preza-slides-toolbar__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--adm-text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.preza-admin-page .preza-slides-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.preza-admin-page .preza-slide-custom-head {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 32px;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adm-text3);
}
body.preza-admin-page .preza-cfg-step__content--slides {
  padding: 18px 20px 22px;
}
body.preza-admin-page .preza-cfg-step__content--implants {
  padding: 18px 20px 28px;
  overflow: visible;
}
body.preza-admin-page .preza-implant-studio__main {
  max-height: min(640px, calc(100dvh - 280px));
}
body.preza-admin-page .preza-implant-studio__body {
  max-height: none;
  overflow-y: auto;
}
body.preza-admin-page .preza-implant-detail__group {
  margin-bottom: 16px;
}
body.preza-admin-page .preza-implant-detail__sys-head,
body.preza-admin-page .preza-implant-detail__header {
  margin-bottom: 16px;
  padding-bottom: 14px;
}

/* Конфигуратор: карточки шагов */
body.preza-admin-page .preza-cfg-layout {
  gap: 16px;
  width: 100%;
}
body.preza-admin-page .preza-cfg-hero {
  border-radius: 20px;
  box-shadow: var(--adm-shadow-md);
  overflow: hidden;
}
body.preza-admin-page .preza-cfg-shell {
  border-radius: 20px;
  box-shadow: var(--adm-shadow-md);
  min-height: 0;
  width: 100%;
}
body.preza-admin-page .preza-cfg-step__content {
  padding: 22px 24px 24px;
}
body.preza-admin-page .preza-cfg-group {
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--adm-surface2, #f7f8fa);
  border: 1px solid var(--adm-border);
}
body.preza-admin-page .preza-cfg-group__title {
  margin-bottom: 16px;
}
body.preza-admin-page .preza-cfg-field {
  margin-bottom: 16px;
}
body.preza-admin-page .preza-cfg-field:last-child {
  margin-bottom: 0;
}
body.preza-admin-page .preza-cfg-row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}
body.preza-admin-page .preza-cfg-nav {
  padding: 20px 14px;
}
body.preza-admin-page .preza-cfg-nav__link {
  margin-bottom: 6px;
  padding: 12px 14px;
  font-size: 0.81rem;
  border-radius: 12px;
}
body.preza-admin-page .preza-cfg-staff-panel {
  padding: 20px 24px 20px;
}
body.preza-admin-page .preza-cfg-staff-panel__body {
  gap: 16px;
}

/* Список презентаций */
body.preza-admin-page .preza-admin-list-view,
body.preza-admin-page .preza-admin-view {
  width: 100%;
}
body.preza-admin-page .preza-kpi {
  min-height: 96px;
}
body.preza-admin-page .preza-table-scroll {
  width: 100%;
}
body.preza-admin-page .preza-table {
  min-width: 720px;
}

/* Конфигуратор на всю ширину main */
body.preza-admin-page .preza-admin-main--cfg .preza-admin-content,
body.preza-admin-page #preza-admin-configurator {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   Admin Pro v5 — финальная полировка (GDC, эталон UX)
═══════════════════════════════════════════════════════════ */

body.preza-admin-page {
  --adm-inset-left: clamp(32px, 4vw, 52px);
  --adm-inset-right: clamp(22px, 2.8vw, 36px);
  --adm-inset-cfg-right: clamp(32px, 4.2vw, 56px);
  --adm-inset-top: clamp(22px, 3vw, 36px);
  --adm-inset-bottom: clamp(28px, 3.5vw, 40px);
  --adm-detail-panel-w: 532px;
}

/* Оболочка: левое меню фиксировано по высоте экрана, скролл только у контента */
body.preza-admin-page .preza-admin-app {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
}

body.preza-admin-page .preza-admin-sidebar {
  position: relative;
  top: auto;
  align-self: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.preza-admin-page .preza-admin-main {
  min-height: 0;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.preza-admin-page .preza-admin-main--cfg {
  overflow: hidden;
  padding: var(--adm-inset-top) var(--adm-inset-cfg-right) var(--adm-inset-bottom) var(--adm-inset-left);
  gap: 0;
  box-sizing: border-box;
  min-height: 0;
  flex: 1;
}

body.preza-admin-page .preza-admin-main--cfg .preza-admin-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.preza-admin-page .preza-admin-main--cfg #preza-admin-configurator:not(.preza-auth-hidden) {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) .preza-admin-topbar {
  padding: clamp(20px, 2.5vw, 28px) clamp(6px, 1vw, 12px) clamp(16px, 2vw, 22px);
}

body.preza-admin-page .preza-admin-content {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 26px);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) .preza-admin-content {
  padding: 0 clamp(6px, 1vw, 12px) 0 clamp(8px, 1.2vw, 16px);
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-analytics-view:not(.preza-auth-hidden)) .preza-admin-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--cfg .preza-admin-content {
  padding: 0;
}

body.preza-admin-page .preza-admin-view {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
  width: 100%;
  box-sizing: border-box;
}
body.preza-admin-page #preza-admin-analytics-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page #preza-analytics-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) #preza-admin-analytics-view,
body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) #preza-admin-list-view,
body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) #preza-admin-news-view,
body.preza-admin-page .preza-admin-main:not(.preza-admin-main--cfg) #preza-admin-feedback-view {
  width: 100%;
  max-width: none;
  padding-left: clamp(2px, 0.6vw, 8px);
  padding-right: clamp(2px, 0.6vw, 8px);
}

/* KPI — карточки как в референсах */
body.preza-admin-page .preza-admin-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: 0;
  width: 100%;
}
body.preza-admin-page .preza-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
  padding: 20px 22px 18px;
  border-radius: 18px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  box-shadow: 0 2px 14px rgba(7, 25, 57, 0.05);
}
body.preza-admin-page .preza-kpi__value {
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
body.preza-admin-page .preza-kpi__label {
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--adm-text3);
  line-height: 1.35;
}
@media (max-width: 1100px) {
  body.preza-admin-page .preza-admin-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  body.preza-admin-page .preza-admin-dashboard {
    grid-template-columns: 1fr;
  }
}

/* Таблица — на всю ширину, toolbar с отступами */
body.preza-admin-page .preza-table-panel {
  width: 100%;
  max-width: none;
  border-radius: 20px;
  overflow: hidden;
}
body.preza-admin-page .preza-table-toolbar {
  padding: 18px 22px;
  gap: 14px 18px;
}
body.preza-admin-page .preza-filter-chips {
  padding: 0 22px 16px;
  gap: 8px;
}
body.preza-admin-page .preza-table-scroll {
  width: 100%;
  overflow-x: auto;
}
body.preza-admin-page .preza-admin-main--list-scroll {
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll .preza-admin-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-list-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-list-view .preza-page-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-list-hero {
  flex-shrink: 0;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-list-view .preza-page-shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-presentations-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-presentations-list .preza-table-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-presentations-list .preza-table-toolbar,
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-presentations-list .preza-filter-chips {
  flex-shrink: 0;
}
body.preza-admin-page .preza-admin-main--list-scroll #preza-admin-presentations-list .preza-table-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Новости и обратная связь: hero фиксирован, белая карточка скроллится */
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)),
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) {
  overflow: hidden;
  min-height: 0;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)) .preza-admin-content,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) .preza-admin-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)) #preza-admin-news-view,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) #preza-admin-feedback-view {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)) #preza-admin-news-view .preza-page-layout,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) #preza-admin-feedback-view .preza-page-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)) #preza-admin-news-view .preza-page-hero,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)) #preza-admin-news-view .preza-cfg-hero,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) #preza-admin-feedback-view .preza-page-hero,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) #preza-admin-feedback-view .preza-cfg-hero {
  flex-shrink: 0;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-news-view:not(.preza-auth-hidden)) #preza-admin-news-view .preza-page-shell,
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-feedback-view:not(.preza-auth-hidden)) #preza-admin-feedback-view .preza-page-shell {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: clamp(4px, 0.6vw, 8px);
  box-sizing: border-box;
}

body.preza-admin-page .preza-table td.preza-table-actions {
  white-space: nowrap;
}
body.preza-admin-page .preza-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

/* Сайдбар — активный пункт как pill (референс) */
body.preza-admin-page .preza-admin-nav__item--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 18px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  transform: none;
}
body.preza-admin-page .preza-admin-nav__item--active:hover {
  transform: none;
}

/* Универсально: чекбокс + подпись — всегда рядом, никогда на всю ширину */
body.preza-admin-page label:has(> input[type="checkbox"]),
body.preza-admin-page label:has(> input[type="checkbox"]:first-child) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100%;
  cursor: pointer;
}
body.preza-admin-page label input[type="checkbox"],
body.preza-admin-page label input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
  accent-color: var(--gdc-gold, #bfab8a);
}
body.preza-admin-page .preza-cfg-field > label[for] {
  display: block;
  width: 100%;
}

/* Карточки-переключатели */
body.preza-admin-page .preza-toggle-card {
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 12px;
}
body.preza-admin-page .preza-toggle-card:last-child {
  margin-bottom: 0;
}

/* Слайды: чекбокс → номер → название → кнопка «Настроить» */
body.preza-admin-page .preza-slide-pick {
  justify-content: flex-start !important;
}
body.preza-admin-page .preza-slide-pick input[type="checkbox"] {
  order: -1 !important;
  flex: 0 0 18px !important;
}
body.preza-admin-page .preza-slide-pick__pos {
  order: 0 !important;
}
body.preza-admin-page .preza-slide-pick__body {
  order: 1 !important;
}
body.preza-admin-page .preza-slide-mod__elements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
body.preza-admin-page .preza-slide-el-pick {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--adm-text2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.preza-admin-page .preza-slide-el-pick:hover {
  border-color: rgba(191, 171, 138, 0.45);
  box-shadow: 0 2px 10px rgba(7, 25, 57, 0.05);
}
body.preza-admin-page .preza-slide-el-pick input[type="checkbox"] {
  flex: 0 0 18px !important;
}

/* Филиалы: только choice-card, без двойной обёртки */
body.preza-admin-page .preza-cfg-clinics:not(.preza-choice-grid) label,
body.preza-admin-page .preza-choice-grid.preza-cfg-clinics {
  padding: 0;
  background: transparent;
  border: none;
}
body.preza-admin-page .preza-choice-grid .preza-choice-card {
  min-height: 52px;
}

/* Импланты: чекбокс у логотипа */
body.preza-admin-page .preza-implant-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
}
body.preza-admin-page .preza-implant-row__check {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
}

/* Импланты: toggle внутри сетки полей */
body.preza-admin-page .preza-implant-field--toggle {
  grid-column: 1 / -1;
  padding: 0;
}
body.preza-admin-page .preza-implant-field--toggle .preza-toggle-card {
  margin-bottom: 0;
}

/* Конфигуратор: карточки шагов с воздухом */
body.preza-admin-page .preza-cfg-layout {
  gap: clamp(16px, 2vw, 22px);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.preza-admin-page .preza-cfg-shell {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--adm-border);
  flex: 1;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
}
body.preza-admin-page .preza-cfg-main {
  padding: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .preza-cfg-body {
  padding: 0;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.preza-admin-page .preza-cfg-step-card {
  border-radius: 0;
  border: none;
  background: var(--adm-surface);
  box-shadow: none;
  overflow: visible;
  min-width: 0;
}
body.preza-admin-page .preza-cfg-step__header {
  padding: 0;
}
body.preza-admin-page .preza-cfg-step__header--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--adm-border);
  background: var(--adm-surface);
}
body.preza-admin-page .preza-cfg-step__header--bar .preza-cfg-step-title {
  margin: 0;
}
body.preza-admin-page .preza-cfg-step__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
body.preza-admin-page .preza-cfg-staff-excel-tools .sp-btn {
  padding: 8px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}
body.preza-admin-page .preza-cfg-step__content {
  padding: 18px 24px 24px;
  overflow: visible;
}
body.preza-admin-page .preza-cfg-step__content--flush {
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.preza-admin-page .preza-cfg-step__content--flush.preza-cfg-step__content--slides {
  padding: 0;
}
body.preza-admin-page .preza-cfg-step__content--flush.preza-cfg-step__content--implants {
  padding: 0;
}
body.preza-admin-page .preza-pres-clinic-embed {
  padding: 0;
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}
body.preza-admin-page .preza-cfg-group {
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 14px;
}
body.preza-admin-page .preza-cfg-group:last-child {
  margin-bottom: 0;
}
body.preza-admin-page .preza-cfg-body .preza-cfg-step__header .preza-cfg-step-desc {
  margin: 12px 0 0 0 !important;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}

/* Страницы с hero-шапкой (дашборд, список, новости, обратная связь) */
body.preza-admin-page .preza-admin-main--page-hero,
body.preza-admin-page .preza-admin-main--news {
  padding: clamp(20px, 2.5vw, 32px);
  gap: 0;
  box-sizing: border-box;
}
body.preza-admin-page .preza-admin-main--page-hero .preza-admin-topbar,
body.preza-admin-page .preza-admin-main--news .preza-admin-topbar {
  display: none;
}
body.preza-admin-page .preza-admin-main--page-hero .preza-admin-content,
body.preza-admin-page .preza-admin-main--news .preza-admin-content {
  padding: 0;
}
body.preza-admin-page .preza-page-layout,
body.preza-admin-page .preza-news-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 18px);
  width: 100%;
}
body.preza-admin-page .preza-page-shell,
body.preza-admin-page .preza-news-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
  width: 100%;
}
body.preza-admin-page .preza-page-hero .preza-cfg-hero__bar,
body.preza-admin-page .preza-news-hero .preza-cfg-hero__bar {
  flex-wrap: wrap;
}
body.preza-admin-page .preza-page-hero__desc,
body.preza-admin-page .preza-news-hero__desc {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--adm-text2);
  line-height: 1.45;
}
body.preza-admin-page .preza-admin-news-panel,
body.preza-admin-page .preza-admin-feedback-panel {
  width: 100%;
  max-width: none;
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  box-shadow: 0 4px 24px rgba(7, 25, 57, 0.06);
  box-sizing: border-box;
}
body.preza-admin-page .preza-news-info-box {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 10px 10px 0;
  border-left: 3px solid var(--adm-gold, #9a8464);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  color: var(--adm-text2);
  line-height: 1.55;
}
body.preza-admin-page .preza-news-info-box p {
  margin: 0;
}
body.preza-admin-page .preza-news-section {
  margin-bottom: 18px;
}
body.preza-admin-page .preza-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 2vw, 22px);
  align-items: start;
}
body.preza-admin-page .preza-news-col.preza-cfg-group {
  margin-bottom: 0;
  height: auto;
  align-self: start;
  padding-bottom: 18px;
  box-sizing: border-box;
}
body.preza-admin-page .preza-news-col.preza-cfg-group .preza-cfg-field:last-child {
  margin-bottom: 0;
}
body.preza-admin-page .preza-news-image-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
body.preza-admin-page .preza-news-image-block .preza-logo-preview-box {
  min-height: 120px;
  max-height: 180px;
}
body.preza-admin-page .preza-news-image-block .preza-logo-preview-box img {
  max-height: 160px;
  object-fit: contain;
}
body.preza-admin-page .preza-news-btn-row {
  max-width: none;
  margin-bottom: 14px;
}
body.preza-admin-page .preza-news-preview-field {
  margin-bottom: 0;
}
body.preza-admin-page .preza-news-admin-preview {
  min-height: 180px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(7, 25, 57, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
body.preza-admin-page .preza-news-admin-preview__img {
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  object-fit: contain;
  align-self: flex-start;
}
body.preza-admin-page .preza-news-admin-preview__text,
body.preza-admin-page .preza-news-admin-preview__btn {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--adm-text);
  white-space: pre-wrap;
}
body.preza-admin-page .preza-news-admin-preview__btn {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(7, 25, 57, 0.08);
}
@media (max-width: 1200px) {
  body.preza-admin-page .preza-news-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  body.preza-admin-page .preza-page-hero .preza-cfg-hero__bar,
  body.preza-admin-page .preza-news-hero .preza-cfg-hero__bar {
    flex-direction: column;
    align-items: stretch;
  }
  body.preza-admin-page .preza-page-hero .preza-cfg-toolbar-wrap,
  body.preza-admin-page .preza-news-hero .preza-cfg-toolbar-wrap {
    align-items: stretch;
  }
  body.preza-admin-page .preza-page-hero .preza-cfg-toolbar,
  body.preza-admin-page .preza-news-hero .preza-cfg-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Сотрудники: «Активен» рядом с чекбоксом */
body.preza-admin-page .preza-user-active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--adm-text2);
  white-space: nowrap;
}

/* Встроенный редактор клиники — на всю ширину шага */
body.preza-admin-page .sp-clinic-app,
body.preza-admin-page .sp-clinic-app--embed {
  max-width: none !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   Dashboard Pro — интерактивная аналитика
═══════════════════════════════════════════════════════════ */
body.preza-admin-page .adm-dash {
  gap: clamp(16px, 2vw, 22px);
}
body.preza-admin-page .adm-dash--geo-only {
  gap: 0;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-analytics-view.adm-analytics-view--dock) {
  overflow: hidden;
}
body.preza-admin-page .preza-admin-main--page-hero:has(#preza-admin-analytics-view.adm-analytics-view--dock) .preza-admin-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page #preza-admin-analytics-view.adm-analytics-view--dock {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page #preza-admin-analytics-view.adm-analytics-view--dock #preza-analytics-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  flex: 1;
}
body.preza-admin-page .adm-analytics-page .preza-page-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page .preza-page-shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page .adm-dash--geo-only {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page .adm-dash-secondary {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page .adm-dash-secondary .adm-geo-section,
body.preza-admin-page .adm-analytics-page .adm-dash-secondary .adm-dash-detail-panel--secondary {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open {
  gap: clamp(16px, 2vw, 22px);
  padding-bottom: clamp(16px, 2vw, 22px);
  box-sizing: border-box;
}
body.preza-admin-page .adm-analytics-page__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-analytics-page__main .preza-page-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: clamp(14px, 1.8vw, 18px);
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-analytics-page__main .preza-page-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-dash--geo-only {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-dash-secondary {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-section,
body.preza-admin-page .adm-analytics-page--preview-open .adm-dash-detail-panel--secondary {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-section .adm-section__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-dash-detail-panel--secondary .adm-section__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: start;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-map {
  flex: 1;
  min-height: 0;
  justify-content: center;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-map__canvas {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  height: auto;
  aspect-ratio: 1000 / 580;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-detail {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-detail__header {
  flex: 0 0 auto;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-detail-table-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-height: none;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
body.preza-admin-page .adm-clinic-preview {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 16px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
body.preza-admin-page .adm-clinic-preview__logo {
  flex-shrink: 0;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 12px;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.preza-admin-page .adm-clinic-preview__logo-img {
  display: block;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
}
body.preza-admin-page .adm-clinic-preview__logo-img--invert {
  filter: brightness(0) saturate(100%);
}
body.preza-admin-page .adm-clinic-preview__body {
  flex: 1;
  min-width: 0;
}
body.preza-admin-page .adm-clinic-preview__name {
  margin: 0;
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.preza-admin-page .adm-clinic-preview__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 6px;
}
body.preza-admin-page .adm-clinic-preview__meta-item {
  font-size: 0.74rem;
  color: var(--adm-text2);
  white-space: nowrap;
}
body.preza-admin-page .adm-clinic-preview__meta-item--city {
  font-weight: 600;
  color: var(--adm-text);
}
body.preza-admin-page .adm-clinic-preview__close {
  flex-shrink: 0;
  margin: 0;
  align-self: center;
}
body.preza-admin-page .adm-detail-table__row--active td {
  background: rgba(154, 132, 100, 0.12);
}
body.preza-admin-page .adm-detail-table__row--active td:first-child {
  box-shadow: inset 3px 0 0 var(--adm-gold, #bfab8a);
}
@media (max-width: 720px) {
  body.preza-admin-page .adm-clinic-preview {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 10px;
    padding: 14px 16px;
  }
  body.preza-admin-page .adm-clinic-preview__close {
    grid-column: 2;
    justify-self: end;
  }
}
body.preza-admin-page .preza-page-hero .preza-cfg-hero__actions {
  margin-left: auto;
  flex-shrink: 0;
}
body.preza-admin-page .preza-cfg-hero__actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 20px);
}
body.preza-admin-page .adm-dash-kpi-strip--list {
  gap: 4px 12px;
}
body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__bar,
body.preza-admin-page .preza-page-hero--list .preza-cfg-hero__bar {
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
  padding-top: 16px;
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__bar::-webkit-scrollbar,
body.preza-admin-page .preza-page-hero--list .preza-cfg-hero__bar::-webkit-scrollbar {
  display: none;
}
body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__identity,
body.preza-admin-page .preza-page-hero--list .preza-cfg-hero__identity {
  flex: 0 0 auto;
  min-width: 0;
}
body.preza-admin-page #preza-admin-list-hero .preza-cfg-breadcrumb--headline {
  white-space: nowrap;
  padding: 0;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
}
body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__actions,
body.preza-admin-page .preza-page-hero--list .preza-cfg-hero__actions {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
}
body.preza-admin-page .preza-cfg-hero__actions-row--list {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto;
  max-width: 100%;
}
body.preza-admin-page .preza-list-hero__kpi-divider {
  flex-shrink: 0;
  width: 1px;
  height: 28px;
  margin: 0 clamp(14px, 1.8vw, 22px);
  background: var(--adm-border);
}
body.preza-admin-page .preza-cfg-hero__actions-row--list .adm-dash-kpi-strip--list {
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
body.preza-admin-page .preza-cfg-hero__actions-row--list #preza-admin-create {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  white-space: nowrap;
}
body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__actions-row .preza-btn--primary {
  width: auto;
  justify-content: center;
}
body.preza-admin-page #preza-admin-dashboard {
  display: none !important;
}
body.preza-admin-page .adm-dash-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
body.preza-admin-page .adm-dash-kpi-strip__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}
body.preza-admin-page .adm-dash-kpi-strip__item--clickable {
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background 0.15s ease;
}
body.preza-admin-page .adm-dash-kpi-strip__item--clickable:hover {
  background: rgba(7, 25, 57, 0.05);
}
body.preza-admin-page .adm-dash-kpi-strip__item--active .adm-dash-kpi-strip__val {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.preza-admin-page .adm-dash-kpi-strip__val {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
  line-height: 1.2;
}
body.preza-admin-page .adm-dash-kpi-strip__item--ok .adm-dash-kpi-strip__val {
  color: var(--adm-green, #15803d);
}
body.preza-admin-page .adm-dash-kpi-strip__item--warn .adm-dash-kpi-strip__val {
  color: var(--adm-amber, #b45309);
}
body.preza-admin-page .adm-dash-kpi-strip__item--info .adm-dash-kpi-strip__val {
  color: var(--adm-blue, #2563eb);
}
body.preza-admin-page .adm-dash-kpi-strip__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-dash-kpi-strip__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--adm-border2, rgba(7, 25, 57, 0.18));
  flex-shrink: 0;
}
@media (max-width: 720px) {
  body.preza-admin-page .preza-page-hero .preza-cfg-hero__bar {
    flex-direction: column;
    align-items: stretch;
  }
  body.preza-admin-page .preza-page-hero .preza-cfg-hero__actions {
    margin-left: 0;
  }
  body.preza-admin-page .preza-cfg-hero__actions-row {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
  }
  body.preza-admin-page .preza-cfg-hero__actions-row .preza-btn--primary {
    width: 100%;
    justify-content: center;
  }
  body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__bar {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__bar::-webkit-scrollbar {
    display: none;
  }
  body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__actions {
    margin-left: auto;
  }
  body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__actions-row--list {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  body.preza-admin-page #preza-admin-list-hero .preza-cfg-hero__actions-row .preza-btn--primary {
    width: auto;
  }
  body.preza-admin-page .adm-dash-kpi-strip {
    justify-content: flex-start;
  }
}
body.preza-admin-page .adm-kpi-row--interactive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.preza-admin-page .adm-kpi--clickable {
  cursor: pointer;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 22px);
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
body.preza-admin-page .adm-kpi--clickable:hover {
  border-color: var(--adm-gold);
  box-shadow: 0 4px 18px rgba(7, 25, 57, 0.08);
  transform: translateY(-1px);
}
body.preza-admin-page .adm-kpi--clickable.adm-kpi--active {
  border-color: var(--adm-gold);
  box-shadow: 0 0 0 2px rgba(154, 132, 100, 0.2);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}
body.preza-admin-page .adm-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 24px;
  padding: 16px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
body.preza-admin-page .adm-dash-toolbar__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
body.preza-admin-page .adm-dash-toolbar__group--right {
  margin-left: auto;
}
body.preza-admin-page .adm-dash-toolbar__label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-dash-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.preza-admin-page .adm-dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}
body.preza-admin-page .adm-dash-main--chart-only {
  grid-template-columns: 1fr;
}
body.preza-admin-page .adm-dash-main--focus {
  grid-template-columns: 1fr;
}
body.preza-admin-page .adm-dash-main--focus .adm-dash-detail-panel {
  grid-column: 1;
}
body.preza-admin-page .adm-dash-chart-panel,
body.preza-admin-page .adm-dash-detail-panel {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.preza-admin-page .adm-dash-detail-panel--secondary {
  min-height: 280px;
  width: var(--adm-detail-panel-w);
  min-width: var(--adm-detail-panel-w);
  max-width: var(--adm-detail-panel-w);
  flex-shrink: 0;
  align-self: stretch;
}
body.preza-admin-page .adm-dash-detail-panel--secondary .adm-section__header {
  flex-shrink: 0;
}
body.preza-admin-page .adm-dash-detail-panel--secondary .adm-section__body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px;
}
body.preza-admin-page .adm-dash-detail-panel--secondary .adm-detail {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.preza-admin-page .adm-dash-detail-panel--secondary .adm-detail__header {
  flex-shrink: 0;
  margin-bottom: 10px;
}
body.preza-admin-page .adm-dash-detail-panel--secondary .adm-detail-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
body.preza-admin-page .adm-dash-chart-body {
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.preza-admin-page .adm-dash-main--focus .adm-dash-chart-body {
  min-height: min(52vh, 480px);
  padding: clamp(20px, 3vw, 36px);
}
body.preza-admin-page .adm-bar-list--interactive .adm-bar-item--btn {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.preza-admin-page .adm-bar-list--large .adm-bar-item--btn {
  padding: 12px 14px;
}
body.preza-admin-page .adm-bar-list--large .adm-bar-item__track {
  height: 12px;
}
body.preza-admin-page .adm-bar-list--interactive .adm-bar-item--btn:hover {
  background: var(--adm-surface2);
}
body.preza-admin-page .adm-chart-seg--active {
  border-color: var(--adm-gold) !important;
  background: rgba(154, 132, 100, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(154, 132, 100, 0.15);
}
body.preza-admin-page .adm-vbar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  min-height: 220px;
  padding: 8px 4px 0;
}
body.preza-admin-page .adm-vbar-chart--large {
  min-height: 320px;
  gap: clamp(14px, 2.5vw, 28px);
}
body.preza-admin-page .adm-vbar-item {
  flex: 1 1 0;
  max-width: 88px;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.preza-admin-page .adm-vbar-chart--large .adm-vbar-item {
  max-width: 110px;
}
body.preza-admin-page .adm-vbar-item:hover {
  background: var(--adm-surface2);
}
body.preza-admin-page .adm-vbar-item__val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--adm-text);
  font-variant-numeric: tabular-nums;
}
body.preza-admin-page .adm-vbar-item__track {
  width: 100%;
  height: 140px;
  background: var(--adm-surface2);
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
body.preza-admin-page .adm-vbar-chart--large .adm-vbar-item__track {
  height: 220px;
}
body.preza-admin-page .adm-vbar-item__fill {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
body.preza-admin-page .adm-vbar-item__label {
  font-size: 0.68rem;
  color: var(--adm-text2);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.preza-admin-page .adm-donut-wrap--large {
  gap: clamp(24px, 3vw, 36px);
}
body.preza-admin-page .adm-donut-legend--interactive .adm-donut-legend__item--btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.preza-admin-page .adm-donut-legend--interactive .adm-donut-legend__item--btn:hover {
  background: var(--adm-surface2);
}
body.preza-admin-page .adm-chart-table-wrap {
  width: 100%;
  overflow-x: auto;
}
body.preza-admin-page .adm-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
body.preza-admin-page .adm-chart-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adm-text3);
  border-bottom: 1px solid var(--adm-border);
}
body.preza-admin-page .adm-chart-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(7, 25, 57, 0.05);
  color: var(--adm-text2);
}
body.preza-admin-page .adm-chart-table__row {
  cursor: pointer;
  transition: background 0.15s ease;
}
body.preza-admin-page .adm-chart-table__row:hover {
  background: var(--adm-surface2);
}
body.preza-admin-page .adm-chart-table__row--active {
  background: rgba(154, 132, 100, 0.1);
}
body.preza-admin-page .adm-chart-table__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--adm-text);
  text-align: right;
}
body.preza-admin-page .adm-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}
body.preza-admin-page .adm-detail {
  min-width: 0;
  min-height: 0;
}
body.preza-admin-page .adm-detail__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--adm-text);
}
body.preza-admin-page .adm-detail__sub {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-detail-table-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  min-width: 0;
  scrollbar-gutter: stable;
}
body.preza-admin-page .adm-detail-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.76rem;
}
body.preza-admin-page .adm-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--adm-surface2);
  text-align: left;
  padding: 8px 6px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text3);
  border-bottom: 1px solid var(--adm-border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.preza-admin-page .adm-detail-table th:nth-child(1),
body.preza-admin-page .adm-detail-table td:nth-child(1) {
  width: auto;
  min-width: 0;
}
body.preza-admin-page .adm-detail-table th:nth-child(2),
body.preza-admin-page .adm-detail-table td:nth-child(2) {
  width: 88px;
}
body.preza-admin-page .adm-detail-table th:nth-child(3),
body.preza-admin-page .adm-detail-table td:nth-child(3) {
  width: 72px;
}
body.preza-admin-page .adm-detail-table th:nth-child(4),
body.preza-admin-page .adm-detail-table td:nth-child(4) {
  width: 100px;
}
body.preza-admin-page .adm-detail-table th:nth-child(5),
body.preza-admin-page .adm-detail-table td:nth-child(5) {
  width: 40px;
  text-align: center;
}
body.preza-admin-page .adm-detail-table--compact th.adm-detail-table__col-sub,
body.preza-admin-page .adm-detail-table--compact td.adm-detail-table__col-sub {
  display: none;
}
body.preza-admin-page .adm-detail-table--compact th:nth-child(4),
body.preza-admin-page .adm-detail-table--compact td:nth-child(4) {
  width: auto;
}
body.preza-admin-page .adm-detail-table--compact th.adm-detail-table__th-staff,
body.preza-admin-page .adm-detail-table--compact td.adm-chart-table__num {
  width: 40px;
}
body.preza-admin-page .adm-detail-table__th-staff {
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
  text-transform: none;
  letter-spacing: 0;
  overflow: visible;
}
body.preza-admin-page .adm-detail-table__th-staff svg {
  display: block;
  margin: 0 auto;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-detail-table th:nth-child(4),
body.preza-admin-page .adm-detail-table td:nth-child(4),
body.preza-admin-page .adm-detail-table th:nth-child(5),
body.preza-admin-page .adm-detail-table td:nth-child(5) {
  overflow: visible;
  text-overflow: clip;
}
body.preza-admin-page .adm-detail-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(7, 25, 57, 0.05);
  color: var(--adm-text2);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.preza-admin-page .adm-detail-table td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
body.preza-admin-page .adm-detail-table td:nth-child(5) {
  padding-left: 4px;
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
body.preza-admin-page .adm-detail-table td.adm-chart-table__num {
  text-align: center;
}
body.preza-admin-page .adm-detail-table .preza-pill {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  font-size: 0.58rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
body.preza-admin-page .adm-detail-table__row {
  cursor: pointer;
  transition: background 0.15s ease;
}
body.preza-admin-page .adm-detail-table__row:hover {
  background: rgba(154, 132, 100, 0.08);
}
body.preza-admin-page .adm-detail-table__clinic {
  display: block;
  font-weight: 600;
  color: var(--adm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.preza-admin-page .adm-detail__more {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-empty--compact {
  padding: 24px 16px;
}
body.preza-admin-page .adm-dash-secondary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--adm-detail-panel-w);
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}
body.preza-admin-page .adm-dash-secondary .adm-section {
  background: var(--adm-surface);
  border-color: var(--adm-border);
  min-width: 0;
}
body.preza-admin-page .adm-dash-secondary .adm-geo-section {
  min-width: 0;
}
body.preza-admin-page .adm-dash-secondary .adm-dash-detail-panel--secondary {
  min-width: var(--adm-detail-panel-w);
}
@media (min-width: 961px) {
  body.preza-admin-page .adm-detail-table th,
  body.preza-admin-page .adm-detail-table td {
    padding: 8px 6px;
  }
}
@media (min-width: 1680px) {
  body.preza-admin-page .adm-detail-table th,
  body.preza-admin-page .adm-detail-table td {
    padding: 10px 8px;
  }
  body.preza-admin-page .adm-detail-table th {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }
  body.preza-admin-page .adm-detail-table .preza-pill {
    padding: 4px 8px;
    font-size: 0.67rem;
  }
}
body.preza-admin-page .adm-geo-section {
  min-height: 280px;
}
body.preza-admin-page .adm-geo-map__badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--adm-text2);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 25, 57, 0.04);
  border: 1px solid var(--adm-border);
  white-space: nowrap;
}
body.preza-admin-page .adm-geo-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.preza-admin-page .adm-geo-map__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 580;
  min-height: 220px;
  border-radius: 14px;
  overflow: visible;
  container-type: inline-size;
  container-name: adm-geo-map-canvas;
  transform: translateZ(0);
  backface-visibility: hidden;
}
body.preza-admin-page .adm-geo-map__stage {
  position: absolute;
  inset: 0;
}
body.preza-admin-page .adm-geo-map__watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
body.preza-admin-page .adm-geo-map__watermark-logo {
  width: min(44%, 230px);
  height: auto;
  max-height: 44%;
  object-fit: contain;
  opacity: 0.3;
  filter: grayscale(1) brightness(0.8);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
body.preza-admin-page .adm-geo-map__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.85;
}
body.preza-admin-page .adm-geo-map__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
body.preza-admin-page .adm-geo-map__overlay .adm-geo-map__cell {
  fill: var(--adm-gold, #bfab8a);
  stroke: none;
  pointer-events: auto;
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}
body.preza-admin-page .adm-geo-map__overlay .adm-geo-map__cell:hover,
body.preza-admin-page .adm-geo-map__overlay .adm-geo-map__cell:focus-visible {
  fill: #a8926e;
  filter: drop-shadow(0 1px 4px rgba(7, 25, 57, 0.18));
  outline: none;
}
body.preza-admin-page .adm-geo-map__overlay .adm-geo-map__cell--active {
  fill: #9a8464;
  filter: drop-shadow(0 0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 8px rgba(154, 132, 100, 0.4));
}
body.preza-admin-page .adm-geo-map__labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
body.preza-admin-page .adm-geo-map__label-wrap {
  position: absolute;
  transform: translate(-50%, 0);
  pointer-events: none;
}
body.preza-admin-page .adm-geo-map__label-wrap--left {
  transform: translate(-100%, 0);
  text-align: right;
}
body.preza-admin-page .adm-geo-map__label-wrap--right {
  transform: translate(0, 0);
  text-align: left;
}
body.preza-admin-page .adm-geo-map__label-wrap--active .adm-geo-map__label {
  color: var(--adm-text);
  font-weight: 600;
}
body.preza-admin-page .adm-geo-map__label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.88;
  color: var(--adm-text2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 6px rgba(255, 255, 255, 0.65);
}
body.preza-admin-page .adm-geo-map--no-labels .adm-geo-map__labels {
  display: none;
}
@container adm-geo-map-canvas (max-width: 460px) {
  .adm-geo-map__labels {
    display: none;
  }
}
body.preza-admin-page .adm-geo-map__count {
  display: inline-block;
  min-width: 16px;
  padding: 1px 5px;
  margin-left: 2px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(7, 25, 57, 0.08);
}
body.preza-admin-page .adm-geo-map__unknown {
  margin: 0;
  font-size: 0.72rem;
  color: var(--adm-text3);
  line-height: 1.45;
}
body.preza-admin-page .adm-geo-section {
  display: flex;
  flex-direction: column;
}
body.preza-admin-page .adm-geo-section__header {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--adm-border);
}
body.preza-admin-page .adm-geo-section__head-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 14px);
  overflow-x: auto;
  scrollbar-width: none;
}
body.preza-admin-page .adm-geo-map__labels-switch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: rgba(7, 25, 57, 0.04);
  border: 1px solid var(--adm-border);
}
body.preza-admin-page .adm-geo-map__labels-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--adm-text3);
  width: 30px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
body.preza-admin-page .adm-geo-map__labels-btn:hover {
  color: var(--adm-text2);
  background: rgba(255, 255, 255, 0.55);
}
body.preza-admin-page .adm-geo-map__labels-btn--active {
  color: var(--adm-text);
  background: var(--adm-surface);
  box-shadow: 0 1px 4px rgba(7, 25, 57, 0.07);
}
body.preza-admin-page .adm-geo-map__labels-btn-strike {
  opacity: 0;
  transition: opacity 0.15s ease;
}
body.preza-admin-page .adm-geo-map__labels-btn:not(.adm-geo-map__labels-btn--active) .adm-geo-map__labels-btn-strike {
  opacity: 1;
}
body.preza-admin-page .adm-geo-section__head-row::-webkit-scrollbar {
  display: none;
}
body.preza-admin-page .adm-geo-section__meta {
  font-size: 0.68rem;
  color: var(--adm-text3);
  white-space: nowrap;
  flex-shrink: 0;
}
body.preza-admin-page .adm-geo-section__badge {
  flex-shrink: 0;
  margin-left: auto;
}
body.preza-admin-page .adm-geo-section__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.preza-admin-page .adm-geo-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.preza-admin-page .adm-geo-panel--analytics {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
body.preza-admin-page .adm-geo-tabs {
  display: flex;
  gap: 4px;
}
body.preza-admin-page .adm-geo-tabs--header {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(7, 25, 57, 0.04);
  border: 1px solid var(--adm-border);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
body.preza-admin-page .adm-geo-tabs--header::-webkit-scrollbar {
  display: none;
}
body.preza-admin-page .adm-geo-tabs__btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--adm-text3);
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
body.preza-admin-page .adm-geo-tabs--header {
  flex-shrink: 0;
}
body.preza-admin-page .adm-geo-tabs--header .adm-geo-tabs__btn {
  font-size: 0.74rem;
  padding: 6px 11px;
}
body.preza-admin-page .adm-geo-tabs__btn:hover {
  color: var(--adm-text2);
  background: rgba(7, 25, 57, 0.03);
}
body.preza-admin-page .adm-geo-tabs--header .adm-geo-tabs__btn:hover {
  background: rgba(255, 255, 255, 0.55);
}
body.preza-admin-page .adm-geo-tabs__btn--active {
  color: var(--adm-text);
  background: rgba(154, 132, 100, 0.1);
  box-shadow: inset 0 -2px 0 var(--adm-gold, #bfab8a);
}
body.preza-admin-page .adm-geo-tabs--header .adm-geo-tabs__btn--active {
  font-weight: 700;
  background: var(--adm-surface);
  box-shadow: 0 1px 4px rgba(7, 25, 57, 0.07);
}
body.preza-admin-page .adm-geo-analytics {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
body.preza-admin-page .adm-geo-analytics--chart {
  flex: 1;
  min-height: 0;
  gap: 10px;
}
body.preza-admin-page .adm-geo-analytics__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
body.preza-admin-page .adm-geo-analytics__dim-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(7, 25, 57, 0.04);
  border: 1px solid var(--adm-border);
}
body.preza-admin-page .adm-geo-analytics__dim-btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--adm-text3);
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
body.preza-admin-page .adm-geo-analytics__dim-btn:hover {
  color: var(--adm-text2);
  background: rgba(255, 255, 255, 0.55);
}
body.preza-admin-page .adm-geo-analytics__dim-btn--active {
  color: var(--adm-text);
  font-weight: 700;
  background: var(--adm-surface);
  box-shadow: 0 1px 4px rgba(7, 25, 57, 0.07);
}
body.preza-admin-page .adm-geo-analytics__view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(7, 25, 57, 0.04);
  border: 1px solid var(--adm-border);
}
body.preza-admin-page .adm-geo-analytics__view-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--adm-text3);
  width: 30px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
body.preza-admin-page .adm-geo-analytics__view-btn:hover {
  color: var(--adm-text2);
  background: rgba(255, 255, 255, 0.55);
}
body.preza-admin-page .adm-geo-analytics__view-btn--active {
  color: var(--adm-text);
  background: var(--adm-surface);
  box-shadow: 0 1px 4px rgba(7, 25, 57, 0.07);
}
body.preza-admin-page .adm-geo-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
body.preza-admin-page .adm-geo-chart__head {
  flex-shrink: 0;
}
body.preza-admin-page .adm-geo-chart__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--adm-text);
  letter-spacing: -0.01em;
}
body.preza-admin-page .adm-geo-chart__sub {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-geo-chart__plot {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 8px 4px 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 25, 57, 0.02) 0%, rgba(7, 25, 57, 0.04) 100%);
  border: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.preza-admin-page .adm-geo-chart__plot--v {
  padding: 8px 4px 4px;
  overflow: visible;
}
body.preza-admin-page .adm-geo-analytics--bar-v .adm-geo-chart,
body.preza-admin-page .adm-geo-analytics--bar-v .adm-geo-chart__plot--v {
  overflow: visible;
}
body.preza-admin-page .adm-geo-panel--analytics:has(.adm-geo-analytics--bar-v) {
  overflow-x: auto;
  overflow-y: auto;
}
body.preza-admin-page .adm-geo-chart__legend--top {
  flex-shrink: 0;
  margin: 0;
  padding: 0 4px 2px;
}
body.preza-admin-page .adm-geo-chart__legend--v {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 42px;
  gap: 8px;
  padding: 0 8px 4px;
}
body.preza-admin-page .adm-geo-chart__legend--v span:nth-child(2),
body.preza-admin-page .adm-geo-chart__legend--v span:nth-child(3) {
  text-align: right;
}
body.preza-admin-page .adm-geo-chart__plot--h {
  --adm-geo-label-col: 120px;
}
body.preza-admin-page .adm-geo-chart__scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 118px 0 calc(var(--adm-geo-label-col) + 8px);
  margin-bottom: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text3);
  letter-spacing: 0.02em;
}
body.preza-admin-page .adm-geo-chart__grid {
  position: absolute;
  top: 54px;
  left: calc(var(--adm-geo-label-col) + 8px);
  right: 118px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 0;
}
body.preza-admin-page .adm-geo-chart__grid span {
  border-right: 1px dashed rgba(7, 25, 57, 0.07);
}
body.preza-admin-page .adm-geo-chart__grid span:last-child {
  border-right: none;
}
body.preza-admin-page .adm-geo-chart__bars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 2px;
}
body.preza-admin-page .adm-geo-chart__vbars {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 12px 8px;
  scrollbar-gutter: stable;
}
body.preza-admin-page .adm-geo-chart-vbar {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  min-width: 52px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
body.preza-admin-page .adm-geo-chart-vbar--leader .adm-geo-chart-vbar__val {
  color: #9a8464;
}
body.preza-admin-page .adm-geo-chart-vbar__val {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
  line-height: 1;
}
body.preza-admin-page .adm-geo-chart-vbar__track {
  flex: 1 1 auto;
  width: 40px;
  min-height: 72px;
  max-height: 140px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px 8px 4px 4px;
  background: rgba(7, 25, 57, 0.06);
  overflow: hidden;
}
body.preza-admin-page .adm-geo-chart-vbar__fill {
  width: 100%;
  height: 0;
  border-radius: inherit;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
body.preza-admin-page .adm-geo-chart-vbar__share {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--adm-text3);
  font-variant-numeric: tabular-nums;
}
body.preza-admin-page .adm-geo-chart-vbar__label-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 80px;
  margin-top: 2px;
  overflow: visible;
}
body.preza-admin-page .adm-geo-chart-vbar__label-inner {
  position: absolute;
  left: 50%;
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%) rotate(-48deg);
  transform-origin: top center;
  white-space: nowrap;
}
body.preza-admin-page .adm-geo-chart-vbar__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
body.preza-admin-page .adm-geo-chart-vbar__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--adm-text2);
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
  overflow: visible;
  display: inline;
  max-width: none;
}
body.preza-admin-page .adm-geo-chart-vbar--leader .adm-geo-chart-vbar__label {
  font-weight: 800;
  color: var(--adm-text);
}
body.preza-admin-page .adm-geo-chart__row {
  display: grid;
  grid-template-columns: var(--adm-geo-label-col) minmax(0, 1fr) 28px 42px;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}
body.preza-admin-page .adm-geo-chart__row--leader .adm-geo-chart__name {
  font-weight: 800;
  color: var(--adm-text);
}
body.preza-admin-page .adm-geo-chart__row--leader .adm-geo-chart__val {
  color: #9a8464;
}
body.preza-admin-page .adm-geo-chart__row--empty {
  opacity: 0.45;
}
body.preza-admin-page .adm-geo-chart__label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}
body.preza-admin-page .adm-geo-chart__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
body.preza-admin-page .adm-geo-chart__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--adm-text2);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}
body.preza-admin-page .adm-geo-chart__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 25, 57, 0.06);
  overflow: hidden;
}
body.preza-admin-page .adm-geo-chart__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  opacity: 0.92;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
body.preza-admin-page .adm-geo-chart__row--leader .adm-geo-chart__fill {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}
body.preza-admin-page .adm-geo-chart__val {
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
  text-align: right;
}
body.preza-admin-page .adm-geo-chart__share {
  font-size: 0.64rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text3);
  text-align: right;
}
body.preza-admin-page .adm-geo-chart__legend {
  display: grid;
  grid-template-columns: var(--adm-geo-label-col) minmax(0, 1fr) 28px 42px;
  gap: 8px;
  padding: 0 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text3);
}
body.preza-admin-page .adm-geo-chart__legend span:nth-child(3),
body.preza-admin-page .adm-geo-chart__legend span:nth-child(4) {
  text-align: right;
}
body.preza-admin-page .adm-geo-chart__note {
  margin: 0;
  font-size: 0.68rem;
  color: var(--adm-text3);
  line-height: 1.4;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-panel--analytics {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-panel--analytics:has(.adm-geo-analytics--bar-v) {
  overflow-x: auto;
}
body.preza-admin-page .adm-analytics-page--preview-open .adm-geo-section .adm-section__body:has(.adm-geo-analytics--bar-v) {
  overflow-x: auto;
  overflow-y: auto;
}
@media (max-width: 640px) {
  body.preza-admin-page .adm-geo-chart__row,
  body.preza-admin-page .adm-geo-chart__legend {
    grid-template-columns: var(--adm-geo-label-col) minmax(0, 1fr) 24px 36px;
    gap: 6px;
  }
  body.preza-admin-page .adm-geo-chart__scale {
    padding: 0 78px 0 calc(var(--adm-geo-label-col) + 6px);
  }
  body.preza-admin-page .adm-geo-chart__grid {
    left: calc(var(--adm-geo-label-col) + 6px);
    right: 78px;
  }
  body.preza-admin-page .adm-geo-chart__vbars {
    padding-bottom: 6px;
    gap: 12px;
  }
  body.preza-admin-page .adm-geo-chart-vbar__label-wrap {
    height: 64px;
  }
  body.preza-admin-page .adm-geo-chart-vbar__label {
    font-size: 0.6rem;
  }
  body.preza-admin-page .adm-geo-chart-vbar__label-inner {
    transform: rotate(-52deg);
  }
  body.preza-admin-page .adm-geo-tabs__btn {
    font-size: 0.68rem;
    padding: 7px 10px;
  }
}
body.preza-admin-page .adm-section {
  background: var(--adm-surface);
  border-color: var(--adm-border);
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
body.preza-admin-page .adm-section__title {
  color: var(--adm-text);
}
body.preza-admin-page .adm-section__sub {
  color: var(--adm-text3);
}
@media (max-width: 960px) {
  body.preza-admin-page .adm-dash-main {
    grid-template-columns: 1fr;
  }
  body.preza-admin-page .adm-dash-secondary {
    grid-template-columns: 1fr;
  }
  body.preza-admin-page .adm-dash-detail-panel--secondary {
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: min(44vh, 400px);
  }
  body.preza-admin-page .adm-kpi-row--interactive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.preza-admin-page .adm-dash-toolbar__group--right {
    margin-left: 0;
    width: 100%;
  }
}
/* Компактные ноутбуки (13,3" и аналогичные) */
@media (max-width: 1440px) {
  body.preza-admin-page {
    --adm-detail-panel-w: clamp(300px, 34vw, 420px);
  }
  body.preza-admin-page .adm-geo-chart__vbars {
    padding-bottom: 18px;
  }
  body.preza-admin-page .adm-geo-chart-vbar__label-wrap {
    height: 92px;
  }
  body.preza-admin-page .adm-geo-chart-vbar__label-inner {
    transform: translateX(-50%) rotate(-56deg);
  }
  body.preza-admin-page .adm-detail-table th:nth-child(2),
  body.preza-admin-page .adm-detail-table td:nth-child(2) {
    width: 76px;
  }
  body.preza-admin-page .adm-detail-table th:nth-child(4),
  body.preza-admin-page .adm-detail-table td:nth-child(4) {
    width: 88px;
  }
  body.preza-admin-page .adm-detail-table--compact th:nth-child(4),
  body.preza-admin-page .adm-detail-table--compact td:nth-child(4) {
    display: none;
    width: 0;
  }
  body.preza-admin-page .preza-page-hero .preza-cfg-hero__bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  body.preza-admin-page .preza-page-hero .preza-cfg-hero__actions {
    margin-left: 0;
    max-width: 100%;
  }
  body.preza-admin-page .adm-dash-kpi-strip {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}
@media (max-width: 1280px) {
  body.preza-admin-page {
    --adm-detail-panel-w: clamp(280px, 40vw, 360px);
  }
}
/* Компактные ноутбуки (13,3" Mac и аналогичные, до 1536px) */
@media (max-width: 1536px) {
  body.preza-admin-page {
    --adm-detail-panel-w: clamp(220px, 26vw, 280px);
  }
  body.preza-admin-page .adm-detail-table th.adm-detail-table__col-sub,
  body.preza-admin-page .adm-detail-table td.adm-detail-table__col-sub,
  body.preza-admin-page .adm-detail-table th:nth-child(4),
  body.preza-admin-page .adm-detail-table td:nth-child(4) {
    display: none;
  }
  body.preza-admin-page .adm-analytics-page .adm-dash-secondary {
    align-items: start;
  }
  body.preza-admin-page .adm-dash-secondary .adm-geo-section {
    min-height: clamp(300px, calc(100dvh - 220px), 560px);
  }
  body.preza-admin-page .adm-geo-map__canvas {
    min-height: clamp(260px, 48vh, 460px);
    contain: layout style paint;
  }
  body.preza-admin-page .adm-geo-map__label {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.95;
  }
}
html.preza-screen-lt-11in body.preza-admin-page {
  --adm-detail-panel-w: clamp(220px, 26vw, 280px);
}
html.preza-screen-lt-11in body.preza-admin-page .adm-detail-table th.adm-detail-table__col-sub,
html.preza-screen-lt-11in body.preza-admin-page .adm-detail-table td.adm-detail-table__col-sub,
html.preza-screen-lt-11in body.preza-admin-page .adm-detail-table th:nth-child(4),
html.preza-screen-lt-11in body.preza-admin-page .adm-detail-table td:nth-child(4) {
  display: none;
}
@media (max-width: 1080px) {
  body.preza-admin-page .adm-dash-secondary {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 1fr) auto;
  }
  body.preza-admin-page .adm-dash-detail-panel--secondary {
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: min(46vh, 420px);
  }
  body.preza-admin-page .adm-geo-section__meta {
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 520px) {
  body.preza-admin-page .adm-kpi-row--interactive {
    grid-template-columns: 1fr;
  }
  body.preza-admin-page .adm-bar-list--interactive .adm-bar-item--btn {
    grid-template-columns: 90px 1fr 30px;
  }
}

/* Баннер теста — только pill внизу, никогда не перекрывает контент */
body.preza-admin-page .preza-design-test-banner,
body.preza-admin-page #preza-design-test-banner-inline {
  top: auto !important;
  bottom: 14px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  height: auto !important;
  max-width: min(92vw, 480px) !important;
  z-index: 120 !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/* Новостной попап после входа сотрудника */
.preza-news-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(7, 25, 57, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.preza-news-overlay--visible {
  background: rgba(7, 25, 57, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.preza-news-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 252, 0.98) 100%);
  border: 1px solid rgba(191, 171, 138, 0.35);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 28px 80px rgba(7, 25, 57, 0.35);
  box-sizing: border-box;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.preza-news-overlay--visible .preza-news-dialog {
  transform: none;
  opacity: 1;
}

.preza-news-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(7, 25, 57, 0.06);
  color: #4a5568;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.preza-news-close:hover {
  background: rgba(7, 25, 57, 0.1);
  color: #1a2332;
}

.preza-news-eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8464;
  text-align: center;
}

.preza-news-image-wrap {
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid rgba(7, 25, 57, 0.08);
}
.preza-news-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

.preza-news-text {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1a2332;
  white-space: pre-wrap;
  text-align: left;
}

.preza-news-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preza-news-btn-link {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #071939 0%, #132f5c 100%);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(7, 25, 57, 0.22);
}
.preza-news-btn-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(7, 25, 57, 0.28);
}

.preza-news-btn-ok {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(7, 25, 57, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #4a5568;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.preza-news-btn-ok:hover {
  background: #f7f8fa;
  border-color: rgba(7, 25, 57, 0.22);
  color: #1a2332;
}

.preza-admin-news-panel {
  max-width: 640px;
}
.preza-admin-news-panel__actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--adm-border, rgba(7, 25, 57, 0.08));
}
.preza-news-admin-preview {
  margin-left: 36px;
  max-width: 420px;
  border-radius: 14px;
  border: 1px dashed var(--adm-border2, rgba(7, 25, 57, 0.14));
  background: var(--adm-surface2, #f7f8fa);
  padding: 14px;
}
.preza-news-admin-preview__img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}
.preza-news-admin-preview__text {
  font-size: 0.78rem;
  color: var(--adm-text2, #4a5568);
  line-height: 1.5;
  white-space: pre-wrap;
}

.preza-slide-mod__section--gallery {
  margin-top: 4px;
}
.preza-construction-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.preza-construction-gallery__item {
  width: 108px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preza-construction-gallery__item--hidden {
  opacity: 0.45;
}
.preza-construction-gallery__item--active .preza-construction-gallery__pick {
  outline: 2px solid var(--adm-accent, #2563eb);
  outline-offset: 2px;
}
.preza-construction-gallery__pick {
  position: relative;
  display: block;
  width: 108px;
  height: 80px;
  padding: 0;
  border: 1px solid var(--adm-border, rgba(7, 25, 57, 0.12));
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.preza-construction-gallery__pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preza-construction-gallery__badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(7, 25, 57, 0.72);
  color: #fff;
}
.preza-construction-gallery__badge--custom {
  background: rgba(37, 99, 235, 0.85);
}
.preza-construction-gallery__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 28px;
}
.preza-construction-gallery__hide {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--adm-text2, #4a5568);
  cursor: pointer;
  user-select: none;
}
.preza-construction-gallery__hide input {
  margin: 0;
}
.preza-construction-gallery__add {
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--adm-border2, rgba(7, 25, 57, 0.18));
  border-radius: 10px;
  cursor: pointer;
  background: var(--adm-surface2, #f7f8fa);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preza-construction-gallery__add:hover {
  border-color: var(--adm-accent, #2563eb);
  background: #fff;
}
.preza-construction-gallery__file {
  display: none;
}
.preza-construction-gallery__add-inner {
  font-size: 0.78rem;
  color: var(--adm-text2, #4a5568);
  text-align: center;
  padding: 8px;
}

/* ═══ Конфигуратор: горизонтальные разделы + табличные блоки ═══ */
.preza-cfg-nav-mobile {
  margin: 12px 16px 0;
  width: auto;
  display: none;
}
.preza-cfg-shell > .preza-cfg-nav-mobile {
  grid-row: 1;
}
.preza-cfg-shell > .preza-cfg-nav--tabs {
  grid-row: 1;
}
.preza-cfg-shell > .preza-cfg-main {
  grid-row: 2;
}

/* Слайды: таблица */
.preza-slides-table-wrap {
  overflow: auto;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  background: var(--adm-surface);
  box-shadow: 0 2px 12px rgba(7, 25, 57, 0.04);
}
.preza-slides-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.preza-slides-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 14px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adm-text3);
  background: var(--adm-surface2);
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}
.preza-slides-table__th--check,
.preza-slides-table__td--check,
.preza-slides-table__th--pos,
.preza-slides-table__td--pos {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
.preza-slides-table thead .preza-slides-table__th--check,
.preza-slides-table thead .preza-slides-table__th--pos {
  padding-top: 11px;
  padding-bottom: 11px;
}
.preza-slide-mod__row .preza-slides-table__td--check,
.preza-slide-mod__row .preza-slides-table__td--pos {
  padding-top: 12px;
  padding-bottom: 12px;
}
.preza-slides-table__th--action,
.preza-slides-table__td--action {
  width: 120px;
  white-space: nowrap;
}
.preza-slides-table tbody.preza-slide-mod {
  border-bottom: 1px solid var(--adm-border);
}
.preza-slides-table tbody.preza-slide-mod:last-child {
  border-bottom: none;
}
.preza-slides-table tbody.preza-slide-mod--off {
  opacity: 0.62;
}
.preza-slides-table tbody.preza-slide-mod--filtered {
  display: none;
}
.preza-slide-mod__row td {
  padding: 12px 14px;
  vertical-align: middle;
  background: var(--adm-surface);
}
.preza-slide-mod__row:hover td {
  background: #fafbfc;
}
.preza-slides-table__td--check input[type="checkbox"] {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  accent-color: var(--gdc-gold);
}
.preza-slides-table__td--pos .preza-slide-pick__pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-radius: 8px;
  background: rgba(7, 25, 57, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text3);
  line-height: 1;
}
.preza-slides-table__td--title strong {
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.35;
}
.preza-slide-mod__summary-text {
  font-size: 0.74rem;
  color: var(--adm-text2);
  line-height: 1.4;
}
.preza-slide-mod__summary-text--empty {
  color: var(--adm-text3);
}
.preza-slides-table__na {
  color: var(--adm-text3);
  font-size: 0.82rem;
}
.preza-slide-mod__detail td.preza-slide-mod__body {
  padding: 16px 18px 18px;
  background: var(--adm-surface2);
  border-top: 1px dashed var(--adm-border);
}

/* Импланты: настоящая таблица */
.preza-implant-table-wrap {
  margin: 0 20px 24px;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  overflow: auto;
  background: var(--adm-surface);
}
.preza-implant-table.preza-implant-table--real {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.84rem;
  flex: none;
  flex-direction: unset;
  gap: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  min-height: 0;
  max-height: none;
}
.preza-implant-table--real col.preza-implant-col--name { width: 26%; }
.preza-implant-table--real col.preza-implant-col--badge { width: 100px; }
.preza-implant-table--real col.preza-implant-col--check,
.preza-implant-table--real col.preza-implant-col--edit { width: 52px; }
.preza-implant-table--real thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text3);
  background: var(--adm-surface2);
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
  vertical-align: middle;
}
.preza-implant-table--real thead th.preza-implant-table__th--name {
  width: 26%;
}
.preza-implant-table--real thead th.preza-implant-table__th--badge {
  width: 100px;
}
.preza-implant-table--real thead th.preza-implant-table__th--check,
.preza-implant-table--real thead th.preza-implant-table__th--edit {
  width: 52px;
  padding-left: 8px;
  padding-right: 8px;
}
.preza-implant-table--real thead th.preza-implant-table__th--check,
.preza-implant-table--real thead th.preza-implant-table__th--edit,
.preza-implant-table--real thead th.preza-implant-table__th--badge,
.preza-implant-table--real tbody td.preza-implant-table-row__cell--check,
.preza-implant-table--real tbody td.preza-implant-table-row__cell--edit,
.preza-implant-table--real tbody td.preza-implant-table-row__cell--badge {
  text-align: center;
}
.preza-implant-table--real tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: middle;
  color: var(--adm-text);
  background: var(--adm-surface);
  text-align: left;
}
.preza-implant-table--real tbody tr:last-child td {
  border-bottom: none;
}
.preza-implant-table--real tbody tr.preza-implant-tr:hover td {
  background: #fafafa;
}
.preza-implant-table--real tbody tr.preza-implant-tr--on td {
  background: rgba(191, 171, 138, 0.03);
}
.preza-implant-table--real tbody tr.preza-implant-tr--on:hover td {
  background: rgba(191, 171, 138, 0.06);
}
.preza-implant-table--real tbody tr.preza-implant-tr--filtered {
  display: none;
}
.preza-implant-table--real .preza-implant-table-row__cell--name strong {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--adm-text);
}
.preza-implant-table--real .preza-implant-table-row__cell--table {
  font-size: 0.8rem;
  color: var(--adm-text2);
  line-height: 1.45;
  word-break: break-word;
}
.preza-implant-table--real .preza-implant-row__check {
  display: inline-flex;
  margin: 0 auto;
}
.preza-implant-table--real .preza-implant-table-row__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(191, 171, 138, 0.18);
  color: #7a6548;
}
.preza-implant-table--real .preza-implant-table-row__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  background: #fff;
  color: #6e6e73;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.preza-implant-table--real .preza-implant-table-row__edit:hover {
  border-color: #9a8464;
  background: #faf7f2;
  color: #1d1d1f;
}
.preza-implant-table--real .preza-implant-table-row__edit:focus-visible {
  outline: 2px solid rgba(154, 132, 100, 0.35);
  outline-offset: 1px;
}

/* Импланты: широкий попап редактирования */
.preza-modal.preza-modal--implant {
  width: min(1100px, calc(100vw - 40px));
  max-width: min(1100px, calc(100vw - 40px));
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.preza-modal.preza-modal--implant > h3 {
  flex-shrink: 0;
  margin: 0;
  padding: 20px 24px 12px;
  font-size: 1.05rem;
}
.preza-modal.preza-modal--implant #preza-implant-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px 8px;
  -webkit-overflow-scrolling: touch;
}
.preza-modal.preza-modal--implant .preza-implant-detail__sys-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.preza-modal.preza-modal--implant .preza-implant-detail__layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}
.preza-modal.preza-modal--implant .preza-implant-detail__group {
  padding: 20px 22px;
}
.preza-modal.preza-modal--implant .preza-modal__actions--implant {
  flex-shrink: 0;
  margin: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--adm-border);
  background: var(--adm-surface);
}
@media (max-width: 900px) {
  .preza-modal.preza-modal--implant .preza-implant-detail__layout {
    grid-template-columns: 1fr;
  }
}

/* Филиалы и команда: таблицы */
.sp-clinic-app--embed {
  padding: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sp-clinic-app--embed .sp-branches-panel {
  margin-bottom: 0;
  padding: 12px 16px 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sp-branches-panel__layout {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  min-width: 0;
}
.sp-branches-panel__controls {
  flex: 0 0 auto;
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}
.sp-branches-panel__controls .sp-add-branch-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.sp-branches-panel__controls .sp-search-wrap {
  width: 100%;
  min-width: 0;
}
.sp-branches-panel__controls .sp-search-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sp-branches-panel__divider {
  flex: 0 0 1px;
  width: 1px;
  margin: 0 16px;
  background: #e2e6ec;
  align-self: stretch;
}
.sp-branches-panel__table-area {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}
.sp-clinic-app--embed .sp-branches-table-wrap {
  margin-bottom: 4px;
}
.sp-clinic-app--embed .sp-branch-editor {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sp-branches-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.sp-branches-panel__controls .sp-branches-panel__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.sp-branches-panel__controls .sp-branches-panel__actions .sp-btn--sm {
  flex: 1 1 auto;
  justify-content: center;
}
.sp-branches-panel__actions .sp-btn--sm {
  padding: 8px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.sp-empty__actions.sp-branches-panel__actions {
  justify-content: center;
  margin-left: 0;
  margin-top: 4px;
}
.sp-empty__actions.sp-branches-panel__actions--empty {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-staff-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 100%;
  min-width: 0;
}
.sp-staff-roles {
  flex: 0 0 var(--sp-action-btn-width, 212px);
  width: var(--sp-action-btn-width, 212px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 22px 2px 0;
  border-right: 1px solid #e2e6ec;
  min-width: 0;
  box-sizing: border-box;
}
.sp-staff-role-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e8e8ed;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.sp-staff-role-btn:hover {
  border-color: #d2d2d7;
  background: #fafafa;
}
.sp-staff-role-btn--active {
  border-color: #9a8464;
  background: #faf7f2;
  box-shadow: 0 0 0 1px rgba(154, 132, 100, 0.22);
}
.sp-staff-roles .sp-add-person--sidebar {
  margin-top: 0;
  margin-bottom: 8px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.74rem;
  gap: 8px;
  border-radius: 10px;
  white-space: nowrap;
  box-sizing: border-box;
}
.sp-staff-roles .sp-add-person--sidebar .sp-add-person__label {
  white-space: nowrap;
}
.sp-staff-roles .sp-add-person--sidebar .sp-add-person__icon {
  width: 22px;
  height: 22px;
  font-size: 1rem;
}
.sp-staff-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}
.sp-staff-toolbar--filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 168px);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  max-width: 100%;
  min-width: 0;
}
.sp-staff-toolbar--filters .sp-search-wrap--grow {
  min-width: 0;
  width: auto;
}
.sp-staff-toolbar--filters .sp-search-input,
.sp-staff-toolbar--filters .sp-sort-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 720px) {
  .sp-staff-layout {
    flex-direction: column;
    gap: 14px;
  }
  .sp-staff-roles {
    flex: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #e2e6ec;
    padding: 0 0 14px;
    gap: 8px;
  }
  .sp-staff-role-btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }
  .sp-staff-roles .sp-add-person--sidebar {
    flex: 1 1 100%;
    margin-top: 0;
    margin-bottom: 4px;
    order: -1;
  }
  .sp-staff-toolbar--filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .sp-branches-panel__layout {
    flex-direction: column;
    gap: 12px;
  }
  .sp-branches-panel__controls {
    flex: none;
    width: 100%;
  }
  .sp-branches-panel__controls .sp-branches-panel__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sp-branches-panel__controls .sp-branches-panel__actions .sp-btn--sm {
    width: auto;
    flex: 1 1 auto;
  }
  .sp-branches-panel__divider {
    flex: none;
    width: auto;
    height: 1px;
    margin: 0;
    align-self: stretch;
  }
}
.sp-branches-table-wrap,
.sp-staff-table-wrap {
  overflow: auto;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #fff;
}
.sp-branches-table,
.sp-staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.sp-branches-table thead th,
.sp-staff-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e6e73;
  background: #f5f5f7;
  border-bottom: 1px solid #e2e6ec;
  white-space: nowrap;
}
.sp-branches-table__th-count,
.sp-branch-row__count {
  width: 120px;
  text-align: center;
}
.sp-branch-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.sp-branch-row:hover td {
  background: #f5f5f7;
}
.sp-branch-row--active td {
  background: rgba(7, 25, 57, 0.06);
}
.sp-branch-row td,
.sp-staff-row td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: middle;
}
.sp-branches-table__th-edit,
.sp-branch-row__edit-cell {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 8px 4px 8px 10px;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}
.sp-branches-table__th-edit {
  padding-top: 10px;
  padding-bottom: 10px;
}
.sp-branch-row__edit-cell {
  cursor: default;
}
.sp-branch-row__name {
  font-weight: 600;
  color: #1d1d1f;
  min-width: 120px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-branch-row__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  background: #fff;
  color: #6e6e73;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.sp-branch-row__edit:hover {
  border-color: #9a8464;
  color: #1d1d1f;
  background: #fafafa;
}
.sp-branch-row__edit:focus-visible {
  outline: none;
  border-color: #9a8464;
  box-shadow: 0 0 0 2px rgba(154, 132, 100, 0.2);
}
.sp-branch-row__address {
  color: #6e6e73;
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-branch-empty,
.sp-staff-empty {
  padding: 20px 14px !important;
  text-align: center;
  color: #6e6e73;
  font-size: 0.84rem;
}
.sp-staff-table__th-photo,
.sp-staff-row__photo {
  width: 56px;
}
.sp-staff-table__th-actions,
.sp-staff-row__actions {
  width: 48px;
  text-align: center;
}
.sp-staff-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.sp-staff-row:hover td {
  background: #fafafa;
}
.sp-staff-row__photo .sp-staff-card__photo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.sp-staff-row__photo .sp-staff-card__photo--empty {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
}
.sp-staff-row__name {
  font-weight: 600;
  color: #1d1d1f;
}
.sp-staff-row__role {
  color: #6e6e73;
}
.sp-staff-row .sp-staff-card__delete {
  position: static;
  opacity: 1;
  width: 28px;
  height: 28px;
}
.sp-clinic-app--embed .sp-main {
  min-height: 0;
  max-height: none;
  margin-top: 28px;
  padding: 28px 16px 16px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
  border-top: 1px solid #e2e6ec;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 28px);
}
.sp-clinic-app--embed .sp-main .sp-branch-editor {
  padding-top: 2px;
}
.sp-branch-editor__title {
  margin: 0 0 12px;
  padding: 0 2px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1d1d1f;
}
#sp-branch-modal-delete {
  margin-right: auto;
}