/* Личный кабинет: шапка, «Организация», «Адреса» (редизайн 10.2026).
   Propshaft подключает все стили на каждой странице, поэтому здесь только
   классы с префиксом ck- — ни один селектор не трогает чужую вёрстку. */

:root {
  --ck-bg: #F2F4F7;
  --ck-surface: #FFFFFF;
  --ck-soft: #F7F9FC;
  --ck-text: #0E1116;
  --ck-text2: #5B6472;
  --ck-text3: #8C95A3;
  --ck-sep: #E3E6EB;
  --ck-border: #D3D8DF;
  --ck-dashed: #C9CFD8;
  --ck-accent: #056AD5;
  --ck-accent-hover: #04549F;
  --ck-tint: #E7F0FC;
  --ck-danger: #C42B1F;
  --ck-danger-tint: #FCECEA;
  --ck-success: #17803F;
  --ck-success-tint: #E5F4EA;
  --ck-warning: #A85400;
  --ck-warning-tint: #FDF1E6;
  --ck-font: "Inter", -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  --ck-ring: 0 0 0 3px rgba(5, 106, 213, 0.18);
}

.ck-body {
  background: var(--ck-bg);
  color: var(--ck-text);
  font-family: var(--ck-font);
  font-size: 15px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

.ck-page { min-height: 100vh; display: flex; flex-direction: column; }
.ck-page > .admin-footer { margin-top: auto; }

.ck-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  box-sizing: border-box;
}

/* hidden всегда прячет, даже если у класса задан display */
.ck-page [hidden], .ck-overlay[hidden], .ck-overlay [hidden], .ck-header [hidden] { display: none !important; }

.ck-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ck-body a.ck-link, .ck-link { color: var(--ck-accent); text-decoration: none; font-weight: 600; }
.ck-link:hover { color: var(--ck-accent-hover); text-decoration: underline; }

/* ---------- Кнопки ---------- */
.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: none;
  color: var(--ck-text);
  font: 600 15px/20px var(--ck-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ck-btn:focus-visible,
.ck-iconbtn:focus-visible,
.ck-chip:focus-visible,
.ck-menu-item:focus-visible,
.ck-header a:focus-visible,
.ck-header summary:focus-visible,
.ck-qrthumb:focus-visible { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: 2px; }
.ck-btn:disabled, .ck-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ck-btn svg { flex: none; }
.ck-btn--primary { background: var(--ck-accent); color: #FFFFFF; }
.ck-btn--primary:hover:not(:disabled) { background: var(--ck-accent-hover); color: #FFFFFF; }
.ck-btn--secondary { background: var(--ck-surface); border-color: var(--ck-border); color: var(--ck-text); }
.ck-btn--secondary:hover:not(:disabled) { background: var(--ck-soft); border-color: #B9C0CA; color: var(--ck-text); }
.ck-btn--tint { background: var(--ck-tint); color: var(--ck-accent); }
.ck-btn--tint:hover:not(:disabled) { background: #D6E6FA; color: var(--ck-accent-hover); }
.ck-btn--ghost { color: var(--ck-accent); }
.ck-btn--ghost:hover:not(:disabled) { background: var(--ck-tint); }
.ck-btn--danger-text { color: var(--ck-danger); padding: 0 12px; }
.ck-btn--danger-text:hover:not(:disabled) { background: var(--ck-danger-tint); }
.ck-btn--lg { height: 44px; }
.ck-btn--xl { height: 48px; padding: 0 18px; }
.ck-btn--sm { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; line-height: 16px; }
.ck-btn--block { width: 100%; }
.ck-btn--dashed { border: 1px dashed var(--ck-dashed); color: var(--ck-accent); height: 48px; width: 100%; }
.ck-btn--dashed:hover { background: var(--ck-soft); border-color: var(--ck-accent); }
.ck-btn.is-busy { pointer-events: none; opacity: .7; }

.ck-iconbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--ck-text2);
  cursor: pointer;
}
.ck-iconbtn:hover, .ck-iconbtn[aria-expanded="true"] { background: var(--ck-bg); color: var(--ck-text); }
.ck-iconbtn--round { border-radius: 22px; width: 44px; height: 44px; background: var(--ck-bg); color: var(--ck-text); }
.ck-iconbtn--round:hover { background: var(--ck-sep); }
.ck-iconbtn--soft { width: 32px; height: 32px; border-radius: 8px; background: var(--ck-bg); }

/* ---------- Поля ---------- */
.ck-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ck-label { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ck-text2); }
.ck-label .ck-req { color: var(--ck-danger); }
.ck-counter { font-size: 12px; line-height: 16px; color: var(--ck-text2); font-variant-numeric: tabular-nums; }
.ck-counter.is-limit { color: var(--ck-warning); }
.ck-counter.is-over { color: var(--ck-danger); font-weight: 600; }
.ck-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ck-text2); }

.ck-input,
.ck-textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--ck-border);
  border-radius: 12px;
  background: var(--ck-surface);
  color: var(--ck-text);
  font: 400 15px/20px var(--ck-font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ck-input { height: 44px; padding: 0 14px; }
.ck-input--lg { height: 48px; font-size: 17px; line-height: 22px; font-weight: 600; }
.ck-textarea { min-height: 112px; padding: 12px 14px; line-height: 22px; resize: vertical; display: block; }
/* Одна строка (как поле ввода) и растёт вниз вместе с текстом (CK.autosize) */
.ck-textarea--auto { min-height: 44px; padding: 10px 14px; resize: none; overflow: hidden; }
/* Пока пусто — подсказка одной строкой с «…» */
.ck-textarea--auto:placeholder-shown { white-space: nowrap; text-overflow: ellipsis; }
.ck-input::placeholder, .ck-textarea::placeholder { color: var(--ck-text3); opacity: 1; }
.ck-input:focus, .ck-textarea:focus { outline: none; border-color: var(--ck-accent); box-shadow: var(--ck-ring); }
.ck-input[readonly] { background: var(--ck-soft); }
.ck-input.is-invalid { border-color: var(--ck-danger); }
.ck-input-wrap { position: relative; }
.ck-input-wrap .ck-input { padding-right: 132px; }
.ck-input-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--ck-tint);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  pointer-events: none;
}
.ck-error { margin: 0; font-size: 13px; line-height: 18px; color: var(--ck-danger); }

/* ---------- Мелочи ---------- */
.ck-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ck-bg);
  color: var(--ck-text2);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}
.ck-pill--onbg { background: var(--ck-surface); }
.ck-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ck-bg);
  color: var(--ck-text2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.ck-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ck-bg);
  color: var(--ck-text2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.ck-tag--ok { background: var(--ck-success-tint); color: var(--ck-success); }
.ck-tag--accent { background: var(--ck-surface); color: var(--ck-accent); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--ck-border);
  background: var(--ck-surface);
  color: var(--ck-text);
  font: 500 13px/16px var(--ck-font);
  cursor: pointer;
}
.ck-chip:hover { border-color: var(--ck-accent); color: var(--ck-accent); }
.ck-dot { flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--ck-warning); }

.ck-spinner {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 4px solid var(--ck-tint);
  border-top-color: var(--ck-accent);
  box-sizing: border-box;
  animation: ck-spin .8s linear infinite;
}
@keyframes ck-spin { to { transform: rotate(360deg); } }

/* Значок ссылки: фавикон или цветная плитка по типу */
.ck-tile {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #5B6472;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-sizing: border-box;
}
.ck-tile img { width: 24px; height: 24px; object-fit: contain; display: block; }
.ck-tile--img { background: var(--ck-surface); border: 1px solid var(--ck-sep); }
.ck-tile--phone { background: #1E8E4E; }
.ck-tile--email { background: #056AD5; }
.ck-tile--tg { background: #2A9FD8; }
.ck-tile--wa { background: #1FA855; }
.ck-tile--vk { background: #2C6BD6; }
.ck-tile--ig { background: #C2367A; }
.ck-tile--yt { background: #E0261B; }
.ck-tile--new { background: #B4BAC4; }
.ck-tile--sm { width: 28px; height: 28px; border-radius: 8px; }
.ck-tile--sm img { width: 18px; height: 18px; }
.ck-tile--sm svg { width: 14px; height: 14px; }
.ck-tile--xs { width: 24px; height: 24px; border-radius: 7px; font-size: 9px; }
.ck-tile--xs img { width: 16px; height: 16px; }
.ck-tile--xs svg { width: 12px; height: 12px; }

/* Всплывающее меню «…» */
.ck-menu-anchor { position: relative; }
.ck-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 240px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 14px;
  background: var(--ck-surface);
  box-shadow: 0 12px 32px rgba(14, 17, 22, 0.16), 0 0 0 1px rgba(14, 17, 22, 0.06);
  display: flex;
  flex-direction: column;
}
.ck-menu[hidden] { display: none; }
.ck-menu--up { top: auto; bottom: calc(100% + 6px); }
.ck-menu-item {
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--ck-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font: 500 15px/20px var(--ck-font);
  white-space: nowrap;
}
.ck-menu-item:hover, .ck-menu-item:focus { background: var(--ck-bg); color: var(--ck-text); outline: none; }
.ck-menu-item svg { flex: none; color: var(--ck-text2); }
.ck-menu-item--danger, .ck-menu-item--danger:hover, .ck-menu-item--danger svg { color: var(--ck-danger); }
.ck-menu-item:disabled { color: var(--ck-text3); cursor: default; background: none; }
.ck-menu-sep { height: 1px; background: var(--ck-sep); margin: 4px 6px; }
.ck-menu-label { padding: 8px 10px 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ck-text2); }

/* ---------- Шапка кабинета ---------- */
.ck-header {
  background: var(--ck-surface);
  border-bottom: 1px solid var(--ck-sep);
  font-family: var(--ck-font);
  color: var(--ck-text);
  position: relative;
  z-index: 40;
}
.ck-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px 28px;
  box-sizing: border-box;
}
.ck-brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ck-text);
  text-decoration: none;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.ck-brand:hover { color: var(--ck-text); }
.ck-brand img { width: 30px; height: 30px; display: block; }
.ck-nav { flex: 1 1 auto; display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ck-nav::-webkit-scrollbar { display: none; }
.ck-nav a {
  flex: none;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: var(--ck-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.ck-nav a:hover { background: var(--ck-bg); color: var(--ck-text); }
.ck-nav a[aria-current="page"] { background: var(--ck-tint); color: var(--ck-accent); font-weight: 600; }
.ck-header-actions { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; }

.ck-pop { position: relative; }
.ck-pop > summary { list-style: none; cursor: pointer; }
.ck-pop > summary::-webkit-details-marker { display: none; }
.ck-pop > .ck-menu { top: calc(100% + 8px); }

.ck-switcher > summary {
  height: 40px;
  max-width: 280px;
  padding: 0 10px 0 6px;
  border-radius: 12px;
  border: 1px solid var(--ck-sep);
  background: var(--ck-surface);
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/18px var(--ck-font);
  box-sizing: border-box;
}
.ck-switcher > summary:hover, .ck-switcher[open] > summary { border-color: var(--ck-border); background: var(--ck-soft); }
.ck-switcher-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-switcher-menu { width: 340px; max-height: min(70vh, 520px); overflow: auto; }
.ck-orgmark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ck-tint);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.ck-orgmark { position: relative; }
.ck-orgmark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ck-surface);
  box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.06);
  border-radius: inherit;
}
.ck-orgmark--lg { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.ck-orgmark--add { background: none; border: 1px dashed var(--ck-dashed); color: var(--ck-accent); box-sizing: border-box; }
.ck-switcher-menu form { margin: 0; }
.ck-switcher-menu form[hidden] { display: none; }
.ck-switcher-menu .ck-menu-item { width: 100%; height: 52px; gap: 12px; text-align: left; }
.ck-switcher-menu .ck-menu-item[aria-current="true"] { background: var(--ck-tint); }
.ck-switcher-menu [data-ck-add-org] { color: var(--ck-accent); font-weight: 600; }
.ck-switcher-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ck-switcher-org { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-switcher-role { font-size: 13px; line-height: 16px; color: var(--ck-text2); font-weight: 400; }
.ck-switcher-search { position: relative; padding: 4px 4px 8px; }
.ck-switcher-search svg { position: absolute; left: 16px; top: 16px; color: var(--ck-text2); }
.ck-switcher-search .ck-input { width: 100%; height: 40px; padding: 0 12px 0 36px; font-size: 14px; background: var(--ck-soft); }
.ck-switcher-none { margin: 0; padding: 12px 10px; color: var(--ck-text2); font-size: 14px; }
.ck-usermenu > summary {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--ck-bg);
  color: var(--ck-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-usermenu > summary:hover, .ck-usermenu[open] > summary { background: var(--ck-sep); }
.ck-usermenu-email {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ck-text2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* ---------- Карточки и заголовки ---------- */
.ck-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.ck-pagehead-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-h1 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ck-lead { margin: 0; color: var(--ck-text2); }
.ck-card {
  background: var(--ck-surface);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(14, 17, 22, 0.04);
  min-width: 0;
}
.ck-card-head {
  padding: 20px 24px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ck-card-title { flex: 1 1 340px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-h2 {
  margin: 0;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ck-card-sub { margin: 0; font-size: 14px; line-height: 18px; color: var(--ck-text2); }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Организация ---------- */
.ck-org-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "profile aside" "links aside";
  grid-template-rows: auto 1fr;
  gap: 24px;
  align-items: start;
}
.ck-org-profile { grid-area: profile; }
.ck-org-links { grid-area: links; }
.ck-org-aside { grid-area: aside; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }

.ck-profile-body { padding: 4px 24px 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.ck-logo { flex: none; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ck-logo-tile {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  border: 1px solid rgba(14, 17, 22, 0.08);
  background: var(--ck-tint);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 48px/1 var(--ck-font);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}
.ck-logo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-logo-tile.is-favicon { background: var(--ck-surface); }
.ck-logo-tile.is-favicon img { width: 56%; height: 56%; object-fit: contain; }
.ck-logo-tile.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7) center / 36px no-repeat;
}
.ck-logo-tile:hover { box-shadow: 0 0 0 3px var(--ck-tint); }
.ck-logo-actions { display: flex; justify-content: center; gap: 4px; }
.ck-logo-hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ck-text2); text-align: center; }
.ck-profile-fields { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.ck-dirtybar {
  border-top: 1px solid var(--ck-sep);
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ck-soft);
  border-radius: 0 0 18px 18px;
}
.ck-dirtybar[hidden] { display: none; }
.ck-dirtybar-text { display: flex; align-items: center; gap: 8px; color: var(--ck-text2); font-size: 14px; line-height: 18px; }

/* Список ссылок */
.ck-links-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ck-sep); }
.ck-link-item { position: relative; border-bottom: 1px solid var(--ck-sep); background: var(--ck-surface); }
.ck-link-item.is-dragging { z-index: 5; box-shadow: 0 10px 28px rgba(14, 17, 22, 0.16); border-radius: 12px; }
.ck-link-item.is-dragging .ck-link-row { background: var(--ck-surface); border-radius: 12px; }
.ck-links-list.is-sorting { user-select: none; -webkit-user-select: none; }
.ck-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 16px 10px 8px;
  box-sizing: border-box;
}
.ck-link-row[hidden] { display: none; }
.ck-handle {
  flex: none;
  width: 28px;
  height: 40px;
  border: none;
  background: none;
  color: var(--ck-text3);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  touch-action: none;
  border-radius: 8px;
}
.ck-handle:hover { color: var(--ck-text2); background: var(--ck-bg); }
.ck-links-list.is-sorting .ck-handle { cursor: grabbing; }
.ck-link-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-link-top, .ck-link-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-link-top { font-size: 15px; line-height: 20px; font-weight: 600; }
.ck-link-sub { font-size: 14px; line-height: 18px; color: var(--ck-text2); }
.ck-link-sub:empty { display: none; }
.ck-link-row .ck-menu { top: 58px; right: 16px; }

.ck-editor {
  padding: 16px 24px 18px;
  background: var(--ck-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 3px 0 0 var(--ck-accent);
}
.ck-editor[hidden] { display: none; }
.ck-editor-grid { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; }
.ck-editor-fields { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ck-editor-preview { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ck-editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ck-editor-foot .ck-actions { margin-left: auto; }

.ck-cardrow {
  border-radius: 14px;
  background: var(--ck-surface);
  border: 1px solid var(--ck-sep);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 12px;
  box-sizing: border-box;
}
.ck-cardrow-text { flex: 1; min-width: 0; }
.ck-cardrow-top { font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-cardrow-sub { font-size: 13px; line-height: 18px; color: var(--ck-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-cardrow-sub:empty { display: none; }

.ck-links-foot { padding: 12px 16px 16px; }
.ck-empty {
  margin: 0 24px 24px;
  border: 1px dashed var(--ck-dashed);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ck-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ck-tint);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-empty-title { font-size: 17px; line-height: 22px; font-weight: 600; }
.ck-empty p { margin: 0; max-width: 440px; color: var(--ck-text2); }
.ck-empty-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 480px; }
.ck-empty-form .ck-input { flex: 1 1 240px; width: auto; }

/* Боковая колонка: QR и превью карточки */
.ck-qrcard { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.ck-qrbox {
  align-self: center;
  width: 196px;
  height: 196px;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--ck-sep);
  background: var(--ck-surface);
}
.ck-qrbox img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ck-qrbox--empty { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ck-text2); font-size: 13px; line-height: 18px; background: var(--ck-soft); }
.ck-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.ck-previewcard { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.ck-previewcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-phone {
  border-radius: 16px;
  background: var(--ck-bg);
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ck-phone-logo {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--ck-tint);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
}
.ck-phone-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-phone-logo.is-favicon { background: var(--ck-surface); }
.ck-phone-logo.is-favicon img { width: 60%; height: 60%; object-fit: contain; }
.ck-phone-name { font-size: 17px; line-height: 22px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.ck-phone-about {
  margin-top: -4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ck-text2);
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ck-phone-about:empty { display: none; }
.ck-phone-links { align-self: stretch; border-radius: 14px; background: var(--ck-surface); overflow: hidden; }
.ck-phone-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; box-sizing: border-box; border-top: 1px solid var(--ck-sep); }
.ck-phone-link:first-child { border-top: none; }
.ck-phone-link-text { flex: 1; min-width: 0; }
.ck-phone-link-top { font-size: 14px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-phone-link-sub { font-size: 12px; line-height: 16px; color: var(--ck-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-phone-link-sub:empty { display: none; }
.ck-phone-empty { padding: 14px 12px; font-size: 13px; line-height: 18px; color: var(--ck-text2); text-align: center; }

/* ---------- Окна и боковая панель ---------- */
.ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 17, 22, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: var(--ck-font);
  color: var(--ck-text);
  font-size: 15px;
  line-height: 20px;
}
.ck-overlay[hidden] { display: none; }
.ck-dialog {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: var(--ck-surface);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(14, 17, 22, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ck-pop .16s ease-out;
}
.ck-dialog--sm { max-width: 480px; }
@keyframes ck-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.ck-dialog-head { flex: none; padding: 20px 20px 0 28px; display: flex; align-items: flex-start; gap: 12px; }
.ck-dialog-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-dialog-title h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.ck-dialog-title p { margin: 0; font-size: 14px; line-height: 18px; color: var(--ck-text2); }
.ck-dialog-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 20px 28px 8px; display: flex; flex-direction: column; gap: 18px; }
.ck-dialog-foot {
  flex: none;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--ck-sep);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ck-dialog-foot .ck-actions { margin-left: auto; }
.ck-dialog-note { font-size: 14px; line-height: 18px; color: var(--ck-text2); }

.ck-drawer-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.ck-drawer {
  width: 100%;
  max-width: 560px;
  height: 100%;
  background: var(--ck-surface);
  box-shadow: -16px 0 48px rgba(14, 17, 22, 0.18);
  display: flex;
  flex-direction: column;
  animation: ck-slide .18s ease-out;
}
@keyframes ck-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ck-drawer-head { flex: none; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--ck-sep); display: flex; align-items: flex-start; gap: 12px; }
.ck-drawer-form { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.ck-drawer-body { flex: 1; overflow: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 28px; }
.ck-drawer-foot { flex: none; padding: 16px 28px; border-top: 1px solid var(--ck-sep); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ck-drawer-foot .ck-actions { margin-left: auto; }
.ck-section { display: flex; flex-direction: column; gap: 14px; }
.ck-section h3 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.ck-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.ck-qrpanel { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--ck-soft); }
.ck-qrpanel-img { flex: none; width: 112px; height: 112px; box-sizing: border-box; padding: 8px; border-radius: 14px; border: 1px solid var(--ck-sep); background: var(--ck-surface); }
.ck-qrpanel-img img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ck-qrpanel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* QR-окно */
.ck-qrdlg-img { align-self: center; width: 232px; height: 232px; box-sizing: border-box; padding: 16px; border-radius: 20px; border: 1px solid var(--ck-sep); background: var(--ck-surface); }
.ck-qrdlg-img img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ck-dlbtn {
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ck-border);
  background: var(--ck-surface);
  color: var(--ck-text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.ck-dlbtn:hover { border-color: var(--ck-accent); background: var(--ck-soft); }
.ck-dlbtn-title { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; font-weight: 700; }
.ck-dlbtn-sub { font-size: 13px; line-height: 17px; color: var(--ck-text2); }
.ck-inline { display: flex; gap: 8px; }
.ck-inline .ck-input { flex: 1; }

/* «Найти контакты на сайте» */
.ck-pf-search { flex: none; padding: 18px 28px 0; display: flex; gap: 8px; }
.ck-pf-search .ck-input { flex: 1; height: 48px; font-size: 16px; }
.ck-pf-state { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.ck-pf-state[hidden] { display: none; }
.ck-pf-loading { padding: 48px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ck-text2); text-align: center; }
.ck-pf-group { display: flex; flex-direction: column; gap: 8px; }
.ck-pf-group h3 { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ck-text2); }
.ck-checklist { border: 1px solid var(--ck-sep); border-radius: 14px; overflow: hidden; }
.ck-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  box-sizing: border-box;
  border-top: 1px solid var(--ck-sep);
  cursor: pointer;
  margin: 0;
}
.ck-check:first-child { border-top: none; }
.ck-check:hover { background: var(--ck-soft); }
.ck-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ck-accent); }
.ck-check-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-check-top { font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-check-sub { font-size: 13px; line-height: 18px; color: var(--ck-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-orgbanner { border-radius: 16px; background: var(--ck-tint); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.ck-orgbanner--neutral { background: var(--ck-bg); }
.ck-orgbanner-logo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--ck-surface);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
}
.ck-orgbanner-logo img { width: 60%; height: 60%; object-fit: contain; }
.ck-orgbanner-logo img.is-cover { width: 100%; height: 100%; object-fit: cover; }
.ck-orgbanner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-orgbanner-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; line-height: 22px; font-weight: 700; }
.ck-orgbanner-site { font-size: 14px; line-height: 18px; color: var(--ck-text2); overflow-wrap: anywhere; }
.ck-orgbanner p { margin: 6px 0 0; font-size: 14px; line-height: 20px; }
.ck-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-benefits li { display: flex; gap: 10px; }
.ck-benefits svg { flex: none; margin-top: 1px; color: var(--ck-success); }
.ck-steps { margin: 0; padding: 0 0 0 22px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; }
.ck-steps li { display: list-item; padding-left: 2px; }
.ck-result { padding: 40px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ck-result h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.ck-result p { margin: 0; max-width: 440px; color: var(--ck-text2); }
.ck-result-icon { width: 64px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: center; background: var(--ck-success-tint); color: var(--ck-success); }
.ck-result-icon--warn { border-radius: 16px; background: var(--ck-warning-tint); color: var(--ck-warning); }
.ck-result-icon--info { border-radius: 16px; background: var(--ck-tint); color: var(--ck-accent); }

/* Обрезка логотипа */
.ck-crop { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 24px; background: var(--ck-bg); touch-action: none; cursor: grab; }
.ck-crop.is-dragging { cursor: grabbing; }
.ck-crop img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.ck-crop::after { content: ""; position: absolute; inset: 0; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.08); pointer-events: none; }
.ck-zoom { display: flex; align-items: center; gap: 12px; color: var(--ck-text2); }
.ck-zoom input { flex: 1; accent-color: var(--ck-accent); }

/* ---------- Адреса ---------- */
.ck-addr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.ck-search { position: relative; flex: 0 1 420px; min-width: 240px; }
.ck-search > svg { position: absolute; left: 14px; top: 13px; color: var(--ck-text2); pointer-events: none; }
.ck-search .ck-input { padding: 0 40px 0 42px; }
.ck-search .ck-input::-webkit-search-cancel-button { display: none; }
.ck-search-clear { position: absolute; right: 4px; top: 2px; }
.ck-search-clear[hidden] { display: none; }
.ck-search-count { font-size: 14px; line-height: 18px; color: var(--ck-text2); }

.ck-addr-card { overflow: visible; }
.ck-addr-head {
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ck-sep);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ck-text2);
}
.ck-addr-list { list-style: none; margin: 0; padding: 0; }
.ck-addr-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ck-sep);
}
.ck-addr-row:last-child { border-bottom: none; }
.ck-addr-c1 { flex: 2 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-addr-c2 { flex: 1.4 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 18px; }
.ck-addr-c3 { flex: 0 1 164px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ck-addr-c4 { flex: 0 0 236px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ck-addr-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-addr-title {
  border: none;
  background: none;
  padding: 0;
  font: 600 16px/20px var(--ck-font);
  color: var(--ck-text);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.ck-addr-title:hover { color: var(--ck-accent); }
.ck-addr-place { display: flex; align-items: flex-start; gap: 6px; color: var(--ck-text2); font-size: 14px; line-height: 18px; overflow-wrap: anywhere; }
.ck-addr-place svg { flex: none; margin-top: 1px; }
.ck-addr-contact { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Описание точки в списке — до двух строк, целиком во всплывающей подсказке */
.ck-addr-about {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--ck-text);
}
.ck-addr-c2 .ck-tag { align-self: flex-start; }
.ck-addr-narrow { display: none; }
.ck-addr-contact.is-empty { color: var(--ck-text2); }
.ck-addr-row .ck-menu { top: 62px; right: 20px; }
.ck-qrthumb {
  flex: none;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--ck-sep);
  background: var(--ck-surface);
  display: block;
  cursor: zoom-in;
}
.ck-qrthumb:hover { border-color: var(--ck-accent); }
.ck-qrthumb img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ck-addr-empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ck-addr-empty p { margin: 0; color: var(--ck-text2); max-width: 420px; }
.ck-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--ck-sep); }
.ck-pager-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.ck-pager a, .ck-pager span.ck-pager-page {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ck-text);
  text-decoration: none;
  font-weight: 600;
}
.ck-pager a:hover { background: var(--ck-bg); }
.ck-pager span.ck-pager-page[aria-current="page"] { background: var(--ck-tint); color: var(--ck-accent); }
.ck-pager .is-disabled { color: var(--ck-text3); pointer-events: none; }
.ck-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
.ck-fab { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .ck-org-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 920px) {
  .ck-org-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: none; }
  .ck-org-aside { display: contents; }
  .ck-org-profile { order: 1; }
  .ck-org-qr { order: 2; }
  .ck-org-links { order: 3; }
  .ck-org-preview { order: 4; }
  .ck-org-profile, .ck-org-links, .ck-org-qr, .ck-org-preview { grid-area: auto; }
  .ck-qrcard { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ck-qrcard > .ck-h2 { flex: 1 0 100%; }
  .ck-qrcard .ck-qrbox { width: 148px; height: 148px; padding: 10px; align-self: flex-start; }
  .ck-qrcard-actions { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

  .ck-addr-head { display: none; }
  .ck-addr-wide { display: none; }
  .ck-addr-narrow { display: inline; }
  .ck-addr-row { flex-wrap: wrap; align-items: flex-start; }
  .ck-addr-c1 { flex: 1 1 calc(100% - 80px); order: 2; }
  .ck-addr-c4 .ck-qrthumb { display: none; }
  .ck-addr-c2 { flex: 1 1 100%; order: 3; }
  .ck-addr-c3 { flex: 1 1 100%; order: 4; }
  .ck-addr-c3:empty, .ck-addr-c3.is-empty { display: none; }
  .ck-addr-c4 { flex: 1 1 100%; order: 5; justify-content: flex-start; }
  .ck-addr-qrcell { order: 1; flex: none; }
}

@media (min-width: 921px) {
  .ck-addr-qrcell { display: none; }
  .ck-qrcard-actions { display: flex; flex-direction: column; gap: 12px; }
}

/* Шапка: разделы уходят второй строкой, пока им тесно рядом с переключателем */
@media (max-width: 960px) {
  .ck-header-inner { flex-wrap: wrap; gap: 0 10px; min-height: 60px; }
  .ck-header-actions { flex: 1 1 0; justify-content: flex-end; min-height: 60px; }
  .ck-switcher { flex: 0 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
  .ck-switcher > summary { max-width: 100%; }
  .ck-nav { order: 3; flex: 1 0 100%; padding: 0 0 10px; margin: 0 -4px; }
  .ck-nav a { height: 36px; }
}

@media (max-width: 720px) {
  .ck-header-inner { padding: 0 12px 0 16px; }
  .ck-brand span { display: none; }
  .ck-brand img { width: 28px; height: 28px; }
  .ck-switcher { flex: 1 1 auto; }
  .ck-switcher > summary { border-color: transparent; }
  .ck-usermenu > summary { width: 44px; height: 44px; border-radius: 22px; }
  /* Четыре раздела помещаются в строку на 375+; на узких — прокрутка, текущий виден (скрипт шапки) */
  .ck-nav { gap: 2px; margin: 0 -6px; }
  .ck-nav a { flex: 1 0 auto; justify-content: center; padding: 0 8px; font-size: 14px; }
  .ck-switcher-menu { width: min(340px, calc(100vw - 32px)); right: -52px; }

  .ck-main { padding: 20px 16px 120px; }
  .ck-pagehead { margin-bottom: 16px; gap: 12px; }
  .ck-h1 { font-size: 24px; line-height: 30px; }
  .ck-lead { font-size: 14px; line-height: 18px; }
  .ck-card-head { padding: 16px 16px 12px; }
  .ck-profile-body { padding: 0 16px 16px; gap: 16px; }
  .ck-logo { width: 100%; flex-direction: row; align-items: center; gap: 14px; }
  .ck-logo-tile { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; }
  .ck-logo-side { display: flex; flex-direction: column; gap: 6px; }
  .ck-logo-actions { justify-content: flex-start; }
  .ck-logo-hint { text-align: left; }
  .ck-input, .ck-textarea { font-size: 16px; }
  .ck-dirtybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    border-radius: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(14, 17, 22, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .ck-dirtybar .ck-actions { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-dirtybar .ck-btn { height: 48px; }
  .ck-link-row { gap: 10px; padding: 8px 4px; min-height: 72px; }
  .ck-link-row .ck-badge { display: none; }
  .ck-link-row .ck-edit-btn { display: none; }
  .ck-link-text { cursor: pointer; }
  .ck-editor { padding: 16px; }
  .ck-editor-foot .ck-actions { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-links-head-actions { width: 100%; }
  .ck-links-head-actions .ck-btn { flex: 1 1 0; }

  .ck-overlay { padding: 0; align-items: flex-end; }
  .ck-dialog { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .ck-dialog-head { padding: 16px 12px 0 20px; }
  .ck-dialog-body { padding: 16px 20px 8px; }
  .ck-dialog-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
  .ck-dialog-foot .ck-actions { flex: 1 1 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .ck-dialog-foot .ck-btn { padding: 0 10px; white-space: normal; text-align: center; line-height: 18px; }
  .ck-pf-search { padding: 16px 20px 0; }
  .ck-drawer-overlay { align-items: stretch; }
  .ck-drawer { max-width: none; }
  .ck-drawer-head { padding: 16px 12px 12px 20px; }
  .ck-drawer-body { padding: 20px; gap: 24px; }
  .ck-drawer-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
  .ck-drawer-foot .ck-actions { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-row2 { grid-template-columns: minmax(0, 1fr); }
  .ck-qrpanel { flex-direction: column; align-items: flex-start; }

  .ck-addr-toolbar { margin-bottom: 14px; }
  .ck-search { flex: 1 1 100%; min-width: 0; }
  .ck-addr-card { background: none; box-shadow: none; }
  .ck-addr-list { display: flex; flex-direction: column; gap: 14px; }
  .ck-addr-row { background: var(--ck-surface); border-radius: 18px; border-bottom: none; padding: 16px; }
  .ck-addr-c4 { display: grid; grid-template-columns: minmax(0, 1fr) 44px; border-top: 1px solid var(--ck-sep); padding-top: 12px; }
  .ck-addr-c4 .ck-btn { height: 44px; }
  .ck-readonly .ck-addr-c4 { grid-template-columns: 44px; justify-content: end; }
  .ck-addr-c4 .ck-iconbtn { width: 44px; height: 44px; border-radius: 12px; background: var(--ck-bg); }
  .ck-qrthumb--lg { width: 56px; height: 56px; padding: 5px; border-radius: 12px; }
  .ck-addr-row .ck-menu { top: auto; bottom: 64px; right: 16px; }
  .ck-pager { background: var(--ck-surface); border-radius: 18px; border-top: none; margin-top: 14px; }
  .ck-addr-empty { background: var(--ck-surface); border-radius: 18px; }
  .ck-add-desktop { display: none; }
  .ck-fab {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 45;
    height: 56px;
    border-radius: 28px;
    font-size: 17px;
    line-height: 22px;
    box-shadow: 0 10px 28px rgba(5, 106, 213, 0.30);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-dialog, .ck-drawer, .ck-spinner { animation: none; }
}

/* ---------- Настройки ---------- */
.ck-settings { max-width: 880px; }
.ck-stack { display: flex; flex-direction: column; gap: 24px; }
.ck-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ck-surface);
  box-shadow: inset 0 0 0 1px var(--ck-sep);
  color: var(--ck-text2);
}
.ck-note svg { flex: none; margin-top: 1px; }
.ck-note--page { margin-bottom: 20px; }
.ck-note--warn { color: var(--ck-warning); box-shadow: inset 0 0 0 1px #F3D2B1; background: #FFFBF6; }
.ck-note--warn span { color: var(--ck-text); }
.ck-readonly .ck-logo-tile:disabled { cursor: default; opacity: 1; }
.ck-readonly .ck-input[readonly], .ck-readonly .ck-textarea[readonly] { background: var(--ck-soft); color: var(--ck-text); }
.ck-readonly .ck-link-text { cursor: default; }
span.ck-addr-title { cursor: default; }
.ck-section-pad { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.ck-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.ck-section-pad form { margin: 0; }

.ck-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-choice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px 14px 48px;
  border-radius: 14px;
  background: var(--ck-surface);
  box-shadow: inset 0 0 0 1px var(--ck-border);
  cursor: pointer;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.ck-choice:hover { box-shadow: inset 0 0 0 1px #A9B2BE; }
.ck-choice input {
  position: absolute;
  left: 16px;
  top: 24px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ck-accent);
  cursor: pointer;
}
.ck-choice:has(input:checked) { background: #F3F8FE; box-shadow: inset 0 0 0 2px var(--ck-accent); }
.ck-choice:has(input:focus-visible) { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: 2px; }
.ck-choice-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ck-bg);
  color: var(--ck-text2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-choice:has(input:checked) .ck-choice-icon { background: var(--ck-accent); color: #FFFFFF; }
.ck-choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-choice-title { font-size: 16px; line-height: 20px; font-weight: 600; }
.ck-choice-sub { font-size: 14px; line-height: 20px; color: var(--ck-text2); }
.ck-choices:disabled .ck-choice { cursor: default; }
.ck-choices:disabled .ck-choice:not(:has(input:checked)) { opacity: .6; }
.ck-choices:disabled .ck-choice:hover { box-shadow: inset 0 0 0 1px var(--ck-border); }
.ck-choices:disabled .ck-choice:has(input:checked):hover { box-shadow: inset 0 0 0 2px var(--ck-accent); }
.ck-choices:disabled input { cursor: default; }
.ck-saved { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ck-success); }
.ck-saved::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ck-invite {
  margin: 0 24px 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ck-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ck-invite-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ck-invite-row .ck-grow { flex: 1 1 280px; }
.ck-invite-actions { justify-content: flex-end; }
.ck-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--ck-sep); }
.ck-seg-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--ck-text2);
  font: 600 14px/18px var(--ck-font);
  cursor: pointer;
}
.ck-seg-btn[aria-checked="true"] { background: var(--ck-surface); color: var(--ck-text); box-shadow: 0 1px 2px rgba(14, 17, 22, 0.12); }
.ck-seg-btn:focus-visible { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: 1px; }

.ck-members { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ck-sep); }
.ck-member {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px 12px 24px;
  border-bottom: 1px solid var(--ck-sep);
}
.ck-member.is-new { animation: ck-flash 1.6s ease-out; }
@keyframes ck-flash { from { background: var(--ck-tint); } to { background: transparent; } }
.ck-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
}
.ck-member-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-member-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ck-member-email { font-weight: 600; overflow-wrap: anywhere; }
.ck-member-sub { font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-member-spacer { flex: none; width: 40px; }
.ck-member-role-m { display: none; font-weight: 600; color: var(--ck-text); }
.ck-tag--warn { background: var(--ck-warning-tint); color: var(--ck-warning); }
.ck-role {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ck-bg);
  color: var(--ck-text);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}
.ck-role--owner { background: var(--ck-tint); color: var(--ck-accent); }
.ck-member .ck-menu { top: 52px; right: 0; width: 260px; }
.ck-rolecards { padding: 16px 24px 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.ck-rolecard {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ck-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ck-rolecard-title { font-size: 14px; line-height: 18px; font-weight: 600; }
.ck-rolecard-text { font-size: 13px; line-height: 18px; color: var(--ck-text2); }

.ck-danger {
  padding: 20px 24px;
  box-shadow: inset 0 0 0 1px #F1C7C3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ck-danger-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-btn--danger-outline { background: var(--ck-surface); border-color: #E2A49E; color: var(--ck-danger); }
.ck-btn--danger-outline:hover:not(:disabled) { background: var(--ck-danger-tint); border-color: var(--ck-danger); color: var(--ck-danger); }
.ck-btn--danger { background: var(--ck-danger); color: #FFFFFF; }
.ck-btn--danger:hover:not(:disabled) { background: #A2231A; color: #FFFFFF; }
.ck-btn--danger:disabled { opacity: 1; background: #F7E3E1; color: #9E3B33; }

/* Окно удаления организации */
.ck-dialog--del { max-width: 600px; margin: 0; }
.ck-del-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ck-danger-tint);
  color: var(--ck-danger);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-dialog-title .ck-del-warn { color: var(--ck-danger); font-weight: 600; font-size: 15px; line-height: 20px; }
.ck-del-section { display: flex; flex-direction: column; gap: 10px; }
.ck-del-section h3 { margin: 0; }
.ck-del-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ck-sep); border-radius: 14px; overflow: hidden; }
.ck-del-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.ck-del-list li + li { border-top: 1px solid var(--ck-sep); }
.ck-del-item-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ck-bg);
  color: var(--ck-text2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-del-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-del-item-text b { font-weight: 600; }
.ck-del-item-text span { font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-del-label { font-size: 14px; line-height: 22px; }
.ck-code { font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--ck-bg); overflow-wrap: anywhere; }
.ck-input--danger { height: 48px; font-size: 16px; }
.ck-input--danger:focus { border-color: var(--ck-danger); box-shadow: 0 0 0 3px rgba(196, 43, 31, 0.16); }
.ck-input--danger.is-ok { border-color: var(--ck-success); }
.ck-input--danger.is-ok:focus { box-shadow: 0 0 0 3px rgba(23, 128, 63, 0.16); }
.ck-del-match { font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-del-match.is-ok { color: var(--ck-success); font-weight: 600; }

@media (max-width: 720px) {
  .ck-stack { gap: 16px; }
  .ck-section-pad { padding: 16px; }
  .ck-choice { padding: 14px 14px 14px 44px; gap: 12px; }
  .ck-choice input { left: 14px; }
  .ck-choice-icon { display: none; }
  .ck-invite { margin: 0 16px 16px; padding: 14px; }
  .ck-invite-row .ck-field { flex: 1 1 100%; }
  .ck-seg { width: 100%; }
  .ck-seg-btn { flex: 1; height: 42px; }
  .ck-invite-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-invite-actions .ck-btn { height: 48px; }
  .ck-member { padding: 12px 8px 12px 16px; gap: 6px 12px; flex-wrap: nowrap; }
  .ck-member-text { flex: 1 1 auto; }
  .ck-member .ck-role { display: none; }
  .ck-member-role-m { display: inline; }
  .ck-member .ck-iconbtn { width: 44px; height: 44px; }
  .ck-member-spacer { width: 0; }
  .ck-rolecards { padding: 14px 16px 16px; gap: 8px; }
  .ck-danger { padding: 16px; }
  .ck-danger .ck-btn { width: 100%; }
  .ck-card-head > #ckInviteToggle { width: 100%; height: 44px; }
}

/* ---------- Аналитика ---------- */
.ck-note--error { color: var(--ck-danger); box-shadow: inset 0 0 0 1px #F1C7C3; }
.ck-periods {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--ck-sep);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.ck-periods::-webkit-scrollbar { display: none; }
.ck-period {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  color: var(--ck-text2);
  font: 600 14px/18px var(--ck-font);
  text-decoration: none;
  white-space: nowrap;
}
.ck-period:hover { color: var(--ck-text); }
.ck-period[aria-current="page"] { background: var(--ck-surface); color: var(--ck-text); box-shadow: 0 1px 2px rgba(14, 17, 22, 0.12); }
.ck-period:focus-visible { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: 1px; }

.ck-an-tiles { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.ck-an-tile { min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1100px) and (min-width: 721px) {
  .ck-an-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-an-tile--hero { grid-column: 1 / -1; }
}
.ck-an-label { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ck-text2); }
.ck-an-hero { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ck-an-value { font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ck-an-sub { font-size: 14px; line-height: 18px; color: var(--ck-text2); }

.ck-an-chartcard { padding: 20px 24px; }
.ck-an-charthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 32px; }
.ck-an-scope { font-size: 13px; line-height: 16px; color: var(--ck-text2); }
.ck-an-filter {
  height: 32px;
  max-width: 100%;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: none;
  background: var(--ck-tint);
  color: var(--ck-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: 600 13px/16px var(--ck-font);
}
.ck-an-filter > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-an-filter:hover { background: #D6E6FA; }
.ck-an-filter:focus-visible { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: 2px; }
.ck-an-note { margin-top: 16px; }

.ck-chart { display: flex; gap: 8px; }
.ck-chart-y { flex: none; width: 44px; height: 240px; position: relative; font-size: 12px; line-height: 16px; color: var(--ck-text2); text-align: right; }
.ck-chart-y span { position: absolute; right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-chart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-chart-plot { position: relative; height: 240px; }
.ck-chart-grid { position: absolute; inset: 0; }
.ck-chart-line { position: absolute; left: 0; right: 0; height: 1px; background: #EEF0F3; }
.ck-chart-line.is-base { background: var(--ck-dashed); }
.ck-chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.ck-chart-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.ck-chart-hit {
  width: 100%;
  max-width: 40px;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: default;
}
.ck-chart-hit.is-active { background: rgba(5, 106, 213, 0.06); }
.ck-chart-hit:focus-visible { outline: 2px solid rgba(5, 106, 213, 0.6); outline-offset: 1px; }
.ck-chart-bar { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--ck-accent); }
.ck-chart-hit.is-active .ck-chart-bar { background: var(--ck-accent-hover); }
.ck-chart-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ck-text);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 17px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 20px rgba(14, 17, 22, 0.24);
  pointer-events: none;
}
.ck-chart-tip span { color: #C9CFD8; }
.ck-chart-x { display: flex; gap: 2px; font-size: 12px; line-height: 16px; color: var(--ck-text2); }
.ck-chart-x span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; display: flex; justify-content: center; }

.ck-an-where { overflow: hidden; }
.ck-an-where .ck-card-head { padding-bottom: 12px; }
.ck-an-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ck-sep); }
.ck-an-rows li { border-bottom: 1px solid var(--ck-sep); }
.ck-an-rows li:last-child { border-bottom: none; }
.ck-an-row {
  width: 100%;
  min-height: 64px;
  padding: 10px 24px;
  border: none;
  background: var(--ck-surface);
  color: var(--ck-text);
  display: flex;
  align-items: center;
  gap: 8px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.ck-an-row:hover { background: var(--ck-soft); }
.ck-an-row[aria-pressed="true"] { background: var(--ck-tint); }
.ck-an-row:focus-visible { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: -3px; }
.ck-an-row-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ck-bg);
  color: var(--ck-text2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-an-row-icon.is-org { background: var(--ck-accent); color: #FFFFFF; }
.ck-an-row-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-an-row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-an-row-sub { font-size: 13px; line-height: 18px; color: var(--ck-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-an-meter { flex: 1 1 160px; max-width: 320px; height: 8px; border-radius: 4px; background: var(--ck-tint); overflow: hidden; }
.ck-an-meter span { display: block; height: 100%; border-radius: 4px; background: var(--ck-accent); }
.ck-an-row-num { flex: none; width: 120px; display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-variant-numeric: tabular-nums; }
.ck-an-row-num b { font-weight: 700; }
.ck-an-row-num span { width: 40px; text-align: right; font-size: 13px; line-height: 16px; color: var(--ck-text2); }
.ck-an-row.is-zero .ck-an-row-num b { color: var(--ck-text3); }

.ck-an-empty { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ck-an-empty .ck-empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--ck-tint); color: var(--ck-accent); display: flex; align-items: center; justify-content: center; }
.ck-an-empty h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.ck-an-empty p { margin: 0; max-width: 480px; color: var(--ck-text2); }
.ck-an-empty .ck-actions { justify-content: center; margin-top: 4px; }
.ck-an-empty > .ck-btn { margin-top: 4px; }

@media (max-width: 720px) {
  .ck-analytics .ck-pagehead { align-items: stretch; }
  .ck-periods { width: 100%; }
  .ck-period { flex: 1 0 auto; justify-content: center; padding: 0 8px; font-size: 13px; }
  .ck-an-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ck-an-tile { padding: 16px; gap: 4px; }
  .ck-an-tile--hero, .ck-an-tile:last-child { grid-column: 1 / -1; }
  .ck-an-hero { font-size: 48px; line-height: 52px; }
  .ck-an-value { font-size: 22px; line-height: 28px; }
  .ck-an-label, .ck-an-sub { font-size: 13px; line-height: 17px; }
  .ck-an-chartcard { padding: 16px; }
  .ck-chart { gap: 6px; }
  .ck-chart-y { width: 36px; height: 200px; font-size: 11px; }
  .ck-chart-plot { height: 200px; }
  .ck-chart-x { font-size: 11px; }
  .ck-an-row { padding: 12px 16px; flex-wrap: wrap; }
  .ck-an-row-text { flex: 1 1 calc(100% - 52px - 120px); }
  .ck-an-row-num { width: auto; }
  .ck-an-meter { order: 4; flex: 1 1 100%; max-width: none; margin-left: 52px; height: 6px; }
}

/* ---------- Правки закрыты администратором (блокировка, спор, срок) ---------- */
.ck-lockbar { background: var(--ck-warning-tint); color: #6B3600; border-bottom: 1px solid #F3D2B1; }
.ck-lockbar--blocked { background: var(--ck-danger-tint); color: #7A1B13; border-bottom-color: #EFC0BB; }
.ck-lockbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px; box-sizing: border-box;
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px;
}
.ck-lockbar-inner svg { flex: none; margin-top: 1px; }
.ck-lockbar strong { font-weight: 700; }
@media (max-width: 600px) { .ck-lockbar-inner { padding: 10px 16px; } }

/* ---------- Напоминание владельцу: карточка только по ссылке — включить поиск ---------- */
.ck-lockbar--reminder { background: var(--ck-tint); color: var(--ck-text); border-bottom: 1px solid #CBE0FA; }
.ck-lockbar--reminder .ck-lockbar-inner { align-items: center; flex-wrap: wrap; }
.ck-lockbar--reminder .ck-lockbar-inner > span { flex: 1 1 320px; }
.ck-lockbar--reminder svg { color: var(--ck-accent); }
.ck-lockbar-actions { display: flex; gap: 8px; flex: none; margin-left: auto; }
.ck-lockbar-actions .ck-btn--sm { height: 34px; font-size: 14px; line-height: 18px; }
@media (max-width: 600px) { .ck-lockbar-actions { margin-left: 0; width: 100%; } .ck-lockbar-actions .ck-btn--sm { flex: 1; } }

/* ---------- Галочки по документам организации (создание, присвоение) ---------- */
.ck-docs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
/* legend внутри рамки обычной строкой, а не «на» рамке: float убирает особое размещение legend */
.ck-docs-legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-doccheck { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 0; }
.ck-doccheck input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ck-accent); }
.ck-doccheck-text { font-size: 14px; line-height: 20px; color: var(--ck-text); }
.ck-doccheck-read { margin-left: 6px; color: var(--ck-accent); text-decoration: none; white-space: nowrap; }
.ck-doccheck-read:hover { text-decoration: underline; }
.ck-dialog .ck-docs, .modal .ck-docs { padding: 12px 14px; border: 1px solid var(--ck-sep); border-radius: 14px; background: var(--ck-surface); }
.modal .ck-docs { margin-top: 14px; }
.modal .ck-docs-legend, .modal .ck-doccheck-text { font-family: inherit; }
/* Кнопка создания выключена, пока не отмечены все документы */
#addOrganizationForm [data-doc-gate-submit]:disabled,
#createOrganizationForm [data-doc-gate-submit]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Панель адреса: ссылки точки ---------- */
.ck-adlinks { gap: 12px; }
.ck-adlinks-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-adlinks-head .ck-btn--sm { height: 36px; font-size: 14px; line-height: 18px; }
.ck-adlinks > .ck-hint { margin-top: -6px; }
.ck-adlinks-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ck-sep); border-radius: 14px; overflow: hidden; }
.ck-adlinks-list[hidden] { display: none; }
.ck-adlink { background: var(--ck-surface); }
.ck-adlink + .ck-adlink { border-top: 1px solid var(--ck-sep); }
.ck-adlink-row { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 8px 8px 4px; box-sizing: border-box; }
.ck-adlink-row .ck-handle { touch-action: none; }
.ck-adlink-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-adlink-top, .ck-adlink-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-adlink-top { font-size: 15px; line-height: 20px; font-weight: 600; }
.ck-adlink-sub { font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-adlink.is-dragging { position: relative; z-index: 2; box-shadow: 0 10px 28px rgba(14, 17, 22, 0.16); }
.ck-adlink.is-editing { background: var(--ck-soft); }
.ck-adlink.is-new { border-top: 1px solid var(--ck-sep); }
.ck-adlink.is-new:first-child { border-top: none; }
.ck-adlink-editor { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.ck-adlink.is-new .ck-adlink-editor { padding-top: 14px; }
.ck-adlink-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 720px) {
  .ck-adlink-row { min-height: 64px; gap: 8px; }
  .ck-adlink-row .ck-iconbtn { width: 44px; height: 44px; }
  .ck-adlink-row .ck-handle { width: 44px; height: 44px; }
  .ck-adlink-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-adlink-actions .ck-btn { height: 44px; }
}

/* ---------- Оплата: блок в «Настройках», страница с выбором периода ---------- */
.ck-tag--danger { background: var(--ck-danger-tint); color: var(--ck-danger); }
.ck-tag--accent.ck-tag { background: var(--ck-tint); }
.ck-lockbar-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ck-lockbar-link:hover { text-decoration-thickness: 2px; }

.ck-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -8px 0 12px -4px;
  padding: 4px 8px 4px 4px;
  border-radius: 8px;
  color: var(--ck-text2);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
}
.ck-back:hover { color: var(--ck-text); background: rgba(14, 17, 22, 0.05); }
.ck-back:focus-visible { outline: none; box-shadow: var(--ck-ring); }

/* Блок в «Настройках»: вся карточка — ссылка на страницу оплаты */
.ck-bill-sum {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 24px;
  transition: box-shadow .15s ease;
}
.ck-bill-sum:hover { box-shadow: 0 1px 2px rgba(14, 17, 22, 0.04), inset 0 0 0 1px var(--ck-border); }
.ck-bill-sum:focus-within { box-shadow: var(--ck-ring); }
.ck-bill-sum-link { color: inherit; text-decoration: none; outline: none; }
.ck-bill-sum-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ck-bill-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ck-tint);
  color: var(--ck-accent);
}
.ck-bill-sum.is-ok .ck-bill-ico { background: var(--ck-success-tint); color: var(--ck-success); }
.ck-bill-sum.is-warn .ck-bill-ico { background: var(--ck-warning-tint); color: var(--ck-warning); }
.ck-bill-sum.is-danger .ck-bill-ico { background: var(--ck-danger-tint); color: var(--ck-danger); }
.ck-bill-sum.is-neutral .ck-bill-ico { background: var(--ck-bg); color: var(--ck-text2); }
.ck-bill-sum-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-bill-sum-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ck-bill-headline { margin: 2px 0 0; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.2px; }
.ck-bill-sum-side { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ck-text3); }
.ck-bill-sum-pay { position: relative; z-index: 1; }
.ck-bill-chev { flex: none; }

/* Страница оплаты */
.ck-billing .ck-pagehead { margin-bottom: 20px; }
.ck-section-pad > .ck-card-title { flex: none; }
.ck-bill-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  padding: 24px;
  align-items: stretch;
}
.ck-bill-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 4px 0; }
.ck-bill-hero-headline { margin: 4px 0 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.4px; }
.ck-bill-hero-sub { margin: 0; color: var(--ck-text2); max-width: 50ch; }
.ck-bill-hero:not(:has(.ck-bill-term)) { grid-template-columns: minmax(0, 1fr); }
.ck-bill-term {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: var(--ck-soft);
  box-shadow: inset 0 0 0 1px var(--ck-sep);
}
.ck-bill-term .ck-label { margin: 0; }
.ck-bill-term-value { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.ck-bill-term-sub { font-size: 14px; line-height: 18px; color: var(--ck-text2); margin-bottom: 12px; }
.ck-bill-hero.is-warn .ck-bill-term-value { color: var(--ck-warning); }
.ck-bill-hero.is-danger .ck-bill-term-value { color: var(--ck-danger); }
.ck-bill-term .ck-btn { margin-top: auto; }
.ck-bill-term-note { margin-top: auto; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ck-text2); }

/* Выбор периода */
.ck-bill-buy { scroll-margin-top: 88px; }
.ck-bill-buy-form { display: flex; flex-direction: column; gap: 16px; }
.ck-bill-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ck-bill-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ck-surface);
  box-shadow: inset 0 0 0 1px var(--ck-border);
  cursor: pointer;
  transition: box-shadow .12s ease, background-color .12s ease;
}
.ck-bill-opt:hover { box-shadow: inset 0 0 0 1px #A9B2BE; }
.ck-bill-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ck-bill-opt:has(input:checked) { background: #F3F8FE; box-shadow: inset 0 0 0 2px var(--ck-accent); }
.ck-bill-opt:has(input:focus-visible) { outline: 3px solid rgba(5, 106, 213, 0.45); outline-offset: 2px; }
.ck-bill-opt-months { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ck-text2); }
.ck-bill-opt:has(input:checked) .ck-bill-opt-months { color: var(--ck-accent); }
.ck-bill-opt-price { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.ck-bill-opt-until { font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-bill-opt.is-disabled { cursor: not-allowed; background: var(--ck-soft); box-shadow: inset 0 0 0 1px var(--ck-sep); }
.ck-bill-opt.is-disabled .ck-bill-opt-price, .ck-bill-opt.is-disabled .ck-bill-opt-months { color: var(--ck-text3); }
.ck-bill-buy-sum { margin: 0; font-size: 15px; line-height: 21px; }
.ck-bill-test { font-size: 14px; line-height: 19px; }
.ck-bill-buy-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 4px; }
.ck-bill-legal { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 18px; color: var(--ck-text2); }
.ck-bill-buy-foot .ck-btn { min-width: 200px; }
.ck-bill-empty-inline { margin: 0; color: var(--ck-text2); }

/* История оплат */
.ck-bill-empty { margin: 0; padding: 0 24px 24px; color: var(--ck-text2); }
.ck-bill-ops { list-style: none; margin: 0; padding: 0 0 8px; }
.ck-bill-op { display: flex; align-items: center; gap: 14px; padding: 12px 24px; min-height: 64px; box-sizing: border-box; }
.ck-bill-op + .ck-bill-op { border-top: 1px solid var(--ck-sep); }
.ck-bill-op-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ck-bg); color: var(--ck-text2); }
.ck-bill-op-ico.is-paid { background: var(--ck-success-tint); color: var(--ck-success); }
.ck-bill-op-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-bill-op-title { font-weight: 600; }
.ck-bill-op-sub { font-size: 13px; line-height: 18px; color: var(--ck-text2); overflow-wrap: anywhere; }
.ck-bill-op-period { color: var(--ck-text); }
.ck-bill-op-sum { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.ck-bill-op-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-bill-op-amount.is-legacy { font-weight: 600; color: var(--ck-text2); }
.ck-bill-op-bal { font-size: 13px; line-height: 18px; color: var(--ck-text2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-bill-more { padding: 4px 24px 20px; }

.ck-bill-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ck-bill-how li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--ck-soft); }
.ck-bill-how b { font-size: 15px; line-height: 20px; }
.ck-bill-how span { font-size: 14px; line-height: 19px; color: var(--ck-text2); }
.ck-bill-how li:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .ck-bill-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .ck-bill-hero-headline { font-size: 24px; line-height: 30px; }
  .ck-bill-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ck-bill-sum { flex-wrap: wrap; padding: 16px; gap: 12px 14px; align-items: flex-start; }
  .ck-bill-ico { width: 40px; height: 40px; border-radius: 12px; }
  .ck-bill-sum-text { flex-basis: calc(100% - 54px); }
  .ck-bill-headline { font-size: 18px; line-height: 24px; }
  .ck-bill-sum-side { width: 100%; padding-left: 54px; box-sizing: border-box; }
  .ck-bill-sum-pay { height: 40px; font-size: 14px; flex: 1 1 auto; }
  .ck-bill-sum-side .ck-bill-chev { display: none; }
  .ck-bill-sum-side:not(:has(.ck-bill-sum-pay)) { display: none; }
  /* На телефоне варианты — строками: срок слева, цена справа */
  .ck-bill-opts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ck-bill-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; }
  .ck-bill-opt-months { grid-column: 1; grid-row: 1; }
  .ck-bill-opt-until { grid-column: 1; grid-row: 2; }
  .ck-bill-opt-price { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; line-height: 28px; }
  .ck-bill-buy-foot .ck-btn { width: 100%; }
  .ck-bill-op { padding: 12px 16px; gap: 12px; }
  .ck-bill-empty { padding: 0 16px 16px; }
  .ck-bill-more { padding: 4px 16px 16px; }
  .ck-bill-more .ck-btn { width: 100%; height: 44px; }
  .ck-back { margin-top: -12px; }
}

/* ---------- Контакты для связи ---------- */
.ck-contact-form { display: flex; flex-direction: column; gap: 12px; }
.ck-contact-form .ck-hint { margin: 0; }
.ck-contact .ck-input[readonly] { background: var(--ck-soft); }
@media (max-width: 600px) {
  .ck-contact .ck-row2 { grid-template-columns: minmax(0, 1fr); }
  .ck-contact .ck-actions .ck-btn { width: 100%; height: 44px; }
}
