:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #1f2933);
  --hint: var(--tg-theme-hint-color, #708499);
  --accent: var(--tg-theme-button-color, #2bb3a3);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --secondary-bg: var(--tg-theme-secondary-bg-color, #f6f8fa);
  --section-bg: var(--tg-theme-section-bg-color, #ffffff);
  --separator: var(--tg-theme-section-separator-color, #e4e7eb);
  --destructive: var(--tg-theme-destructive-text-color, #d23a3a);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); }
body { font-size: 15px; -webkit-font-smoothing: antialiased; }

#app { display: flex; flex-direction: column; height: 100vh; }
.screen { display: none; flex-direction: column; flex: 1; overflow: auto; }
.screen[hidden] { display: none !important; }
#welcome:not([hidden]),
#wizard:not([hidden]),
#done:not([hidden]),
#main-app:not([hidden]) { display: flex; }

/* ─── Welcome / mini-landing ─────────────────────────────────────────── */

#welcome { padding: 0 0 24px; }

.hero {
  background: linear-gradient(135deg, #2bb3a3 0%, #1f8e80 60%, #176d62 100%);
  color: white;
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-emoji { font-size: 48px; margin-bottom: 10px; }
.hero-title { font-size: 26px; line-height: 1.15; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.3px; }
.hero-sub { font-size: 15px; line-height: 1.45; margin: 0 0 18px; opacity: 0.93; }
.trial-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.killer-illustration {
  margin: 0 16px;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: var(--secondary-bg);
}
.killer-illustration img {
  width: 100%;
  height: auto;
  display: block;
}
.killer-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--hint);
  text-align: center;
  line-height: 1.4;
  background: var(--section-bg);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 0;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--secondary-bg);
  padding: 14px 16px;
  border-radius: 12px;
}
.feature-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.feature-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.feature-desc { font-size: 13px; color: var(--hint); line-height: 1.4; }

.block-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hint);
  margin: 28px 20px 12px;
}

.how-it-works .steps {
  list-style: none;
  margin: 0;
  padding: 0 16px;
}
.how-it-works .steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--separator);
  font-size: 14px;
  line-height: 1.45;
}
.how-it-works .steps li:last-child { border-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-block { margin-bottom: 8px; }

.faq {
  margin: 0 16px;
}
.faq details {
  background: var(--secondary-bg);
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 8px;
}
.faq summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  color: var(--hint);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--hint);
  line-height: 1.5;
}

.sample-card {
  margin: 0 16px;
  background: var(--section-bg);
  border: 1px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sample-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hint);
  padding: 10px 14px 0;
  font-weight: 600;
}
.sample-photo {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary-bg);
  margin-top: 8px;
}
.sample-body { padding: 12px 14px 14px; }
.sample-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; line-height: 1.3; }
.sample-price { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.sample-facts { font-size: 13px; color: var(--hint); }

.cta {
  display: block;
  width: calc(100% - 40px);
  margin: 24px 20px 8px;
  padding: 16px;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43,179,163,0.25);
  transition: transform 0.05s;
}
.cta:active { transform: scale(0.98); }
.cta:disabled { background: var(--hint); cursor: not-allowed; box-shadow: none; opacity: 0.5; }
.cta-note {
  text-align: center;
  font-size: 12px;
  color: var(--hint);
  padding: 0 24px;
}

button.ghost {
  background: transparent;
  color: var(--hint);
  border: 0;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}

/* ─── Wizard ─────────────────────────────────────────────────────────── */

#wizard { padding: 16px 0; }
.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--separator);
  transition: background 0.2s, width 0.2s;
}
.wizard-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.wizard-dot.done { background: var(--accent); }

.wizard-step { display: none; flex: 1; flex-direction: column; padding: 0 20px; }
.wizard-step.active { display: flex; }
.wizard-step h2 { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.wizard-hint { color: var(--hint); font-size: 14px; margin: 0 0 20px; line-height: 1.4; }

.city-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.city-tile {
  background: var(--secondary-bg);
  border: 2px solid transparent;
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
}
.city-tile.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.city-tile.disabled { opacity: 0.4; cursor: not-allowed; }
.city-tile-sub { font-size: 11px; opacity: 0.7; margin-top: 4px; font-weight: 400; }

#wizard-map {
  flex: 1;
  min-height: 40vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--separator);
  margin-bottom: 12px;
}
.wizard-map-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.wizard-map-controls button {
  background: var(--secondary-bg);
  color: var(--text);
  border: 1px solid var(--separator);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.wizard-map-controls button#wizard-draw { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.wizard-zone-count { margin-left: auto; font-size: 13px; color: var(--hint); }

.presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.preset {
  background: var(--secondary-bg);
  border: 2px solid transparent;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.preset:hover { border-color: var(--accent); }
.preset.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.preset-name { font-weight: 600; font-size: 15px; }
.preset-price { font-size: 13px; opacity: 0.8; }
.preset-custom { background: transparent; border: 2px dashed var(--separator); }

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 12px;
}
.wizard-nav .ghost { flex: 0 0 auto; }
.wizard-nav .cta { flex: 1; margin: 0; }

/* ─── Done ──────────────────────────────────────────────────────────── */

#done {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.done-icon { font-size: 64px; margin-bottom: 12px; }
#done h2 { font-size: 26px; margin: 0 0 12px; font-weight: 700; }
#done p { color: var(--hint); font-size: 15px; margin: 0 0 32px; line-height: 1.5; }

/* ─── Main app (returning users) ─────────────────────────────────────── */

header { padding: 12px 16px 8px; background: var(--section-bg); border-bottom: 1px solid var(--separator); }
header .row { display: flex; gap: 12px; align-items: center; }
header select { flex: 1; padding: 8px 10px; font-size: 15px; background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator); border-radius: 8px; }
#status { color: var(--hint); font-size: 12px; }
#banner { margin-top: 8px; padding: 10px 12px; background: var(--secondary-bg); border-radius: 8px; font-size: 13px; }
#banner.warning { background: #fff7d6; color: #8a6d00; }
#banner.error { background: #fde8e8; color: var(--destructive); }
#banner.ok { background: #e6f9f1; color: #0a7a4f; }

.app-title { font-weight: 700; font-size: 17px; letter-spacing: -0.2px; flex: 1; }

/* Верхняя навигация: разделы. Активный - заливкой, крупно. */
#topnav { display: flex; gap: 6px; padding: 8px 10px; background: var(--section-bg); border-bottom: 1px solid var(--separator); }
.topnav-btn {
  flex: 1; padding: 10px 4px; border-radius: 10px;
  background: var(--secondary-bg); border: 0; color: var(--hint);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.12s, color 0.12s;
}
.topnav-btn.active { background: var(--accent); color: var(--accent-text); box-shadow: 0 2px 6px rgba(43,179,163,0.25); }
.topnav-btn[hidden] { display: none; }

/* Под-навигация: вкладки раздела. Активная - таблетка на белом. */
.subnav { display: flex; gap: 4px; padding: 8px 12px; background: var(--secondary-bg); border-bottom: 1px solid var(--separator); }
.subnav[hidden] { display: none; }
.subtab {
  flex: 1; padding: 8px 4px; border-radius: 8px 8px 0 0;
  background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--hint);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.subtab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* Пояснение сверху экрана */
.pane-hint {
  margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.4;
  color: var(--hint); background: var(--secondary-bg); border-bottom: 1px solid var(--separator);
}

/* Под-поле (направление изменения цены) */
.subfield { padding: 4px 0 8px 26px; }
.subfield-label { display: block; font-size: 12px; color: var(--hint); margin-bottom: 6px; }

.pane { display: none; flex: 1; overflow: auto; padding: 0; }
.pane.active { display: flex; flex-direction: column; }

#pane-zones { padding: 0; position: relative; }
#map { flex: none; height: 42vh; min-height: 240px; }
.map-empty {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  text-align: center;
  background: rgba(255,255,255,0.95);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 14px;
  color: var(--text);
  z-index: 10;
}
.map-empty-arrow { font-size: 28px; color: var(--accent); margin-bottom: 4px; }
.map-toolbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: var(--section-bg); border-top: 1px solid var(--separator); align-items: center; }
.map-toolbar .hint { font-size: 11px; color: var(--hint); flex-basis: 100%; }
button.primary { background: var(--accent); color: var(--accent-text); border: 0; padding: 8px 14px; border-radius: 8px; font-size: 14px; cursor: pointer; }
button:not(.primary):not(.tab):not(.chip):not(.plan-btn):not(.cta):not(.ghost):not(.preset):not(.city-tile):not(.del) {
  background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator);
  padding: 8px 14px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
#zones-list { padding: 6px 12px 14px; max-height: 34vh; overflow: auto; background: var(--section-bg); }
.zone-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--separator); }
.zone-item:last-child { border-bottom: 0; }
.zone-item.on { }
.zone-eye {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  background: var(--secondary-bg); border: 1px solid var(--separator);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0;
}
.zone-item.on .zone-eye, .zone-eye.on { background: #e6f9f1; border-color: #b8ecd6; }
.zone-eye.off { opacity: 0.6; }
.zone-eye.locked { opacity: 0.55; cursor: not-allowed; }
.zone-main { flex: 1; min-width: 0; cursor: pointer; }
.zone-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.zone-sub { font-size: 12px; color: var(--hint); margin-top: 2px; }
.zone-name-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px dashed var(--separator);
  color: var(--text); padding: 2px 0; font-size: 15px; font-weight: 600; outline: none;
}
.zone-act {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  background: var(--secondary-bg); border: 1px solid var(--separator);
  font-size: 15px; line-height: 1; cursor: pointer; padding: 0; color: var(--text);
}
.zone-act.del { color: var(--destructive); }

section { padding: 12px 16px; border-bottom: 1px solid var(--separator); background: var(--section-bg); }
section label { display: block; margin-bottom: 8px; color: var(--hint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
section label input[type=checkbox] { margin-right: 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; padding: 8px 10px; font-size: 15px; background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator); border-radius: 8px; }
.row select { padding: 8px 10px; background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator); border-radius: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { text-transform: none; font-size: 14px; color: var(--text); font-weight: 400; letter-spacing: 0; }
.hint { font-size: 12px; color: var(--hint); margin: 4px 0; padding: 0 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator); padding: 6px 12px; border-radius: 16px; font-size: 13px; cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.info { color: var(--hint); margin-left: 4px; cursor: help; }

details { padding: 0 16px; }
details summary { padding: 12px 0; color: var(--accent); font-weight: 600; cursor: pointer; }
details section { padding-left: 0; padding-right: 0; }

/* ─── Лента / карточки (Квартиры, Избранные, лог) ─────────────────────── */

.feed { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.feed-status { padding: 24px 16px; text-align: center; color: var(--hint); font-size: 14px; line-height: 1.5; }
.feed-status.err { color: var(--destructive); }

.card {
  background: var(--section-bg);
  border: 1px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card.expandable { cursor: pointer; }
.card-photo {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary-bg);
}
.card-photo-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--hint); font-size: 13px;
}
.card-src {
  position: absolute; top: 8px; left: 8px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: lowercase; padding: 3px 9px; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.card-price-alt { font-size: 13px; font-weight: 400; color: var(--hint); margin-left: 2px; }
.card-desc-toggle {
  font-size: 13px; font-weight: 600; color: var(--accent);
  cursor: pointer; padding: 4px 0; margin-bottom: 2px; user-select: none;
}
.card-desc {
  font-size: 13px; line-height: 1.5; color: var(--text);
  max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
  white-space: pre-line;
}
.card.expanded .card-desc { max-height: 1200px; margin-bottom: 8px; }
.card-body { padding: 12px 14px 14px; }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.card-price { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.card-facts { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.card-meta { font-size: 13px; color: var(--hint); margin-bottom: 10px; }
.card-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: var(--secondary-bg); color: var(--hint);
  padding: 2px 8px; border-radius: 10px; vertical-align: middle;
}
.card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-link {
  color: var(--accent); font-size: 13px; font-weight: 600;
  text-decoration: none; margin-right: auto;
}
.card-act {
  background: var(--secondary-bg); color: var(--text);
  border: 1px solid var(--separator); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.card-act.fav.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.card-act.hide { color: var(--destructive); }

.more-btn {
  margin: 0 12px 16px; padding: 12px;
  background: var(--secondary-bg); color: var(--text);
  border: 1px solid var(--separator); border-radius: 10px;
  font-size: 14px; cursor: pointer;
}

/* ─── Уведомления (переключатель) ─────────────────────────────────────── */

.notif-toggle { padding: 16px; }
.switch-row { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; color: var(--text); margin: 0; }
.switch-row span:first-child { flex: 1; }
.switch-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch {
  position: relative; width: 48px; height: 28px; flex-shrink: 0;
  background: var(--separator); border-radius: 14px; transition: background 0.15s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.15s;
}
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
#notif-state-hint { padding: 8px 0 0; }
#notif-log { padding-top: 4px; }

/* ─── Админ-панель ────────────────────────────────────────────────────── */

.admin-invite { }
.admin-invite .primary { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; }
.invite-box { margin-top: 12px; }
.invite-box input {
  width: 100%; padding: 10px 12px; font-size: 13px;
  background: var(--secondary-bg); color: var(--text);
  border: 1px solid var(--separator); border-radius: 8px;
  margin-bottom: 8px;
}
.invite-actions { display: flex; gap: 8px; }
.invite-actions button { flex: 1; padding: 10px; font-size: 14px; }

.admin-users { display: flex; flex-direction: column; }
.admin-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--separator);
}
.admin-user:last-child { border-bottom: 0; }
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.admin-user-id { font-size: 12px; color: var(--hint); margin-top: 2px; }
.admin-user-access {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; margin-top: 4px;
  background: var(--secondary-bg); color: var(--hint);
}
.admin-user-access.admin { background: #ede4ff; color: #6b3fd2; }
.admin-user-access.ok { background: #e6f9f1; color: #0a7a4f; }
.admin-user-access.off { background: #fde8e8; color: var(--destructive); }
.admin-act {
  flex-shrink: 0; border: 0; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.admin-act.grant { background: var(--accent); color: var(--accent-text); }
.admin-act.revoke { background: var(--secondary-bg); color: var(--destructive); border: 1px solid var(--separator); }
.admin-act:disabled { opacity: 0.5; cursor: default; }

/* ─── Площадки (per-source фильтры) ───────────────────────────────────── */

#pane-platforms { padding-bottom: 24px; }
#platforms-list { display: flex; flex-direction: column; }
.platform { border-bottom: 1px solid var(--separator); }
.platform-head { padding: 14px 16px; cursor: pointer; }
.platform-head span:first-child { font-weight: 700; font-size: 15px; text-transform: lowercase; }
.platform.off .platform-head span:first-child { color: var(--hint); }
.platform-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { margin: 0; display: block; color: var(--hint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.field .row input[type=number] { flex: 1; min-width: 0; padding: 8px 10px; font-size: 15px; background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator); border-radius: 8px; }
.field select { padding: 8px 10px; background: var(--secondary-bg); color: var(--text); border: 1px solid var(--separator); border-radius: 8px; width: 100%; }
.unit { flex-shrink: 0; color: var(--hint); font-size: 13px; align-self: center; }

.platform-adv { padding: 0; border-top: 1px dashed var(--separator); }
.platform-adv summary { padding: 12px 0 0; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.platform-adv > .field, .platform-adv > .checks { margin-top: 12px; }

.check-row {
  display: flex; align-items: center; gap: 8px; margin: 0;
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--text);
}
.check-row input[type=checkbox] { margin: 0; width: 18px; height: 18px; }

.cur-note { font-size: 11px; font-weight: 400; color: var(--hint); }
.card-posted { font-size: 12px; color: var(--hint); margin-bottom: 8px; }

/* ── Частота парсинга (админ) ── */
.admin-schedule-list { display: flex; flex-direction: column; gap: 8px; }
.sched-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--card, #1c1c1e); border-radius: 12px; }
.sched-all { background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.18); }
.sched-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sched-name { font-weight: 600; }
.sched-last { font-size: 12px; opacity: 0.55; }
.sched-ctl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sched-presets { display: flex; gap: 4px; }
.sched-preset { padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: inherit; font-size: 13px; cursor: pointer; }
.sched-preset.active { background: var(--accent, #2ea6ff); border-color: var(--accent, #2ea6ff); color: #fff; }
.sched-ro { font-weight: 600; opacity: 0.9; }
.sched-note { font-size: 12px; opacity: 0.55; }
