body { font-family: Arial, sans-serif; max-width: 700px; margin: 20px auto; padding: 0 15px; }
h1 { text-align: center; }
.subtitle-romantic {
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 400;
  color: #d66;
}
.block { margin-bottom: 1.2em; }
.block label { display: inline-block; width: 100px; }
.block input { padding: 6px; width: 180px; }
.row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
/* Не трогать .interp-check — иначе «с текстом интерпретации» сжимается до 95px и переносится */
.row > label:not(.interp-check) { flex: 0 0 95px; }
.row > input { flex: 1; min-width: 160px; padding: 5px; }
.row > select { flex: 1; min-width: 160px; padding: 5px; }
.two-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.col { flex: 1; min-width: 260px; }
.col h3 { margin-top: 0; }
.col-header { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin-bottom: 8px; }
.col-header h3 { margin: 0; }
.my-check { display: inline-flex; align-items: center; gap: 6px; user-select: none; cursor: pointer; font-size: 14px; white-space: nowrap; }
.my-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
button { padding: 12px 24px; font-size: 16px; cursor: pointer; margin-top: 10px; }
#calcBtn { margin-top: 0; }
#calcBtn .btn-spinner { width: 14px; height: 14px; border-width: 2px; margin-left: 8px; display: none; vertical-align: middle; }
#result { margin-top: 25px; padding: 15px; border: 1px solid #ccc; border-radius: 8px; display: none; }
#result.error { border-color: #c00; background: #ffe0e0; }
#result h2 { margin-top: 0; }
.score-big { font-size: 2em; font-weight: bold; margin: 10px 0; }
.axes { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.axis { margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.axis-name { flex: 0 0 150px; width: auto; white-space: nowrap; margin-right: 0; }
/* Ширина полосы задаётся переменной (можно переопределять локально) */
.axis-bar { flex: 0 0 var(--axis-bar-w, 294px); width: var(--axis-bar-w, 294px); height: 20px; background: #e0e0e0; border-radius: 4px; overflow: hidden; min-width: 120px; max-width: 100%; }
.axis-fill { display: block; height: 100%; background: linear-gradient(90deg, #6a8, #8ca); }
.axis-fill.minus { background: linear-gradient(90deg, #e66, #f99); }
.axis-fill.overall { background: linear-gradient(90deg, #2f6fe3, #78b3ff); }
.axis-fill.intensity { background: linear-gradient(90deg, #7b3fe4, #c19bff); }
.axis-fill.polarity { background: linear-gradient(90deg, #e07a12, #ffc27a); }

/* Полярность: засечка нуля выходит за края; минус и плюс — под полоской (слева и справа) */
.axis-bar-polarity { position: relative; overflow: visible; }
.axis-bar-polarity .axis-polarity-zero {
  position: absolute; top: -5px; bottom: -5px; width: 2px; background: #333; z-index: 2;
  margin-left: -1px; pointer-events: none;
}
.axis-bar-polarity .axis-polarity-label {
  position: absolute; top: 100%; margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 1; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 1px;
  -webkit-text-stroke: 0.5px currentColor;
}
.axis-bar-polarity .axis-polarity-label .pl-sym { display: inline-block; line-height: 1; vertical-align: middle; }
.axis-bar-polarity .axis-polarity-minus { transform: translateX(calc(-100% - 2px)); color: #fd0000; }
.axis-bar-polarity .axis-polarity-plus { transform: translateX(1px); color: #0a9734; }
.axis-bar-polarity .axis-fill {
  position: absolute; top: 0; bottom: 0; z-index: 1; border-radius: 0;
}
.axis-bar-polarity .axis-fill-polarity-neg {
  background: linear-gradient(90deg, #ff8a5b, #ffa024);
}
.axis-bar-polarity .axis-fill-polarity-pos {
  background: linear-gradient(90deg, #f2f554, #d2fc16);
}
.axis.axis-dual .axis-bar.dual { height: auto; background: transparent; border-radius: 0; overflow: visible; min-width: 120px; max-width: var(--axis-bar-w, 300px); }
.axis.axis-dual .axis-bar.dual { display: inline-flex; flex-direction: column; gap: 4px; vertical-align: middle; }
.axis.axis-dual .axis-barline { display: block; height: 11px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.axis.axis-dual .axis-barline .axis-fill { height: 100%; }
.axis .axis-value.axis-value-dual { font-size: 13px; line-height: 1.15; }
.axis .axis-value.axis-value-dual .p.plus { color: #1b6e34; }
.axis .axis-value.axis-value-dual .p.minus { color: #8d2f2f; }

/* Двухполосная строка (оси): перенос подписей целиком — блок значений на новую строку, строка без разрывов */
.axis.axis-dual { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.axis.axis-dual .axis-name { flex: 0 0 110px; width: 110px; min-width: 110px; max-width: 110px; margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.axis.axis-dual .axis-bar.dual { flex: 0 0 var(--axis-bar-w, 294px); width: var(--axis-bar-w, 294px); min-width: var(--axis-bar-w, 294px); max-width: var(--axis-bar-w, 294px); }
.axis.axis-dual .axis-value.axis-value-dual { flex: 1 1 auto; margin-left: 0; min-width: 200px; }
.axis .axis-value.axis-value-dual .p { white-space: nowrap; }

/* Блок нормализации (вёрстка из сохранённой копии): flex-ряды, перенос значения на другую строку при нехватке места */
.normalize-totals { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.12); }
.normalize-totals .axis { flex-wrap: wrap; }
.normalize-totals .axis-value { font-size: 13px; }
.axis.axis-total-plus .axis-name { color: #1b6e34; font-weight: 700; }
.axis.axis-total-minus .axis-name { color: #8d2f2f; font-weight: 700; }

/* Нижние полосы: короче верхних */
.normalize-totals { --axis-bar-w: 224px; }

/* Отступ и разделитель перед "Общий балл / Интенсивность / Полярность" */
.normalize-totals .axis.axis-overall-start { margin-top: 15px; padding-top: 15px; border-top: 1px dashed rgba(0,0,0,0.12); }

/* Один порог: при сужении экрана подписи значений и у осей, и у обобщений одновременно переносятся на вторую строку */
@media (max-width: 740px) {
  .axis.axis-dual .axis-value.axis-value-dual { flex: 1 1 100%; }
  .normalize-totals .axis-value { flex: 1 1 100%; }
}

/* Чтобы длинные подписи справа не ломали сетку */
.axis-value { flex: 1 1 auto; min-width: 0; margin-left: 0; }

@media (max-width: 520px) {
  .axis { flex-wrap: wrap; }
  .axis-name { flex: 1 1 100%; }
  .axis-bar { flex: 1 1 100%; width: 100%; }
  .axis-value { flex: 1 1 100%; }
  .axis.axis-dual .axis-name { flex: 1 1 100%; }
  .axis.axis-dual .axis-bar.dual { flex: 1 1 100%; max-width: 100%; }
  .axis.axis-dual .axis-value.axis-value-dual { min-width: 0; }
}
.axis-value { margin-left: 8px; }
.pie-wrap { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.pie {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid #000;
    background: conic-gradient(#198a19 0 var(--plus, 50%), #ff0000 var(--plus, 50%) 100%);
    box-sizing: border-box;
    flex: 0 0 auto;
}
.pie-legend { font-size: 14px; line-height: 1.35; }
.legend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #000; }
.legend-dot.plus { background: #198a19; }
.legend-dot.minus { background: #ff0000; }
.spinner-wrap { display: flex; align-items: center; gap: 10px; color: #666; }
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #ddd;
    border-top-color: #6a8;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.place-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.place-row > label { flex: 0 0 95px; }
.place-row input {
  width: 100%;
  max-width: 420px; /* шире, чтобы подсказки Google помещались по тексту */
}
.geo-msg {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  flex: 1 1 100%;
  margin-left: 95px; /* выровнять по левому краю с полем */
}
.row select { width: auto; }
.row-radio .radio-group { display: inline-flex; gap: 12px; }
.row-radio .radio-group label { width: auto; cursor: pointer; }
.checkbox-row { margin-bottom: 8px; }
.checkbox-row label { width: auto; margin-right: 8px; }
.place-block { margin-bottom: 8px; }
.place-unknown-hint { margin-top: 4px; }
.interpretation-block { margin-top: 20px; padding-top: 15px; border-top: 1px solid #ccc; }
.interpretation-block h3 { margin-top: 0; }
.interpretation-text { line-height: 1.55; font-size: 14px; color: #222; }

/* Нормализация: почти без зазора под заголовком, но больше воздуха перед графиками */
#bestDatesBlock h3 { margin: 0 0 2px 0; }
#bestDatesText .axes { margin-top: 22px; }

/* Партнёры-экстремумы: так же — заголовок почти без зазора, но больше воздуха перед карточками */
#partnersBlock h3 { margin: 0 0 2px 0; }
.partners-sub { font-size: 16px; font-weight: 700; color: #444; margin: 0 0 8px 0; }
#partnersHint { margin-top: 0; }
#partnersHint + .partners-grid { margin-top: 22px; }
.interpretation-text.interp { background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 12px 12px; }
.interpretation-text.interp p { margin: 0 0 10px; }
.interpretation-text.interp p:last-child { margin-bottom: 0; }
.interpretation-text.interp h4 { margin: 10px 0 8px; font-size: 15px; }
.interpretation-text.interp ul, .interpretation-text.interp ol { margin: 6px 0 10px 22px; padding: 0; }
.interpretation-text.interp li { margin: 4px 0; }
.interpretation-text.interp code { font-family: Consolas, "Courier New", monospace; background: #f1f1f1; padding: 1px 5px; border-radius: 6px; }
.interpretation-text.interp b { font-weight: 700; }
.interpretation-text.interp .interp-meta { color: #888; font-size: 12px; }
.interpretation-text.interp .interp-row { display: flex; align-items: baseline; gap: 10px; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.35; margin: 3px 0; }
.interpretation-text.interp .interp-row .lbl { flex: 0 0 110px; color: #333; }
.interpretation-text.interp .interp-row .bar { flex: 1 1 auto; }
.interpretation-text.interp .interp-row .val { flex: 0 0 auto; color: #333; }
.interpretation-text.interp .barbox { display: block; height: 12px; border: 1px solid #9a9a9a; border-radius: 3px; background: #fff; overflow: hidden; }
.interpretation-text.interp .barfill { height: 100%; display: block; }
.interpretation-text.interp .barfill.plus { background: linear-gradient(90deg, #2aa34a, #86d39a); }
.interpretation-text.interp .barfill.minus { background: linear-gradient(90deg, #d64545, #ff9b9b); }
.interpretation-error { color: #c00; margin-top: 10px; }
.interpretation-error.interp-gateway-host { color: #333; }
.interpretation-error.interp-recovery-hint { color: #5a4a00; background: #fff8e6; border: 1px solid #e8d48b; border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.35; }
.interp-gateway-panel { margin-top: 4px; }
.interp-gateway-msg { margin: 0 0 12px; line-height: 1.45; font-size: 14px; color: #333; }
.interp-gateway-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.interp-gateway-btn { padding: 8px 14px; font-size: 14px; border-radius: 8px; border: 1px solid #888; background: #f5f5f5; cursor: pointer; color: #222; }
.interp-gateway-btn:hover { background: #eaeaea; }
.interp-gateway-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.interp-gateway-btn-primary { border-color: #2a6a9e; background: #e8f2fa; }
.interp-gateway-btn-primary:hover { background: #d8e8f5; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
.partner-card { border: 1px solid #ddd; border-radius: 10px; padding: 10px 10px 12px; background: #fff; }
.partner-title { font-weight: bold; margin-bottom: 4px; }
.partner-sub { font-size: 12px; color: #555; margin-bottom: 10px; }
.vchart { display: flex; gap: 6px; align-items: flex-end; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.axis-group { display: flex; flex-direction: column; align-items: center; width: 50px; flex: 0 0 auto; }
.axis-bars { display: flex; gap: 4px; align-items: flex-end; height: 110px; width: 100%; justify-content: center; }
.bar { width: 14px; border-radius: 4px 4px 0 0; border: 1px solid rgba(0,0,0,0.35); box-sizing: border-box; }
.bar.plus { background: linear-gradient(180deg, #2aa34a, #86d39a); }
.bar.minus { background: linear-gradient(180deg, #d64545, #ff9b9b); }
.bar.sum { background: linear-gradient(180deg, #888, #d7d7d7); }
.bar.delta.pos { background: linear-gradient(180deg, #1f8f3b, #86d39a); }
.bar.delta.neg { background: linear-gradient(180deg, #b03030, #ff9b9b); }
.axis-bars.small { height: 70px; }
.axis-label { margin-top: 6px; font-size: 11px; color: #444; text-align: center; line-height: 1.1; }
.axis-values { margin-top: 2px; font-size: 10px; color: #666; text-align: center; line-height: 1.1; }
.chart-caption { font-size: 11px; color: #444; margin: 6px 0 2px; }
/* Баланс по сферам: точная копия "экстремумов", но ×1.5 (только этот блок) */
.balance-wrap { text-align: center; }
.balance-wrap .partner-card.balance-large { display: inline-block; padding: 10px 12px 12px; }
.partner-card.balance-large .partner-title { font-size: 18px; margin-bottom: 4px; }
.partner-card.balance-large .partner-sub { font-size: 14px; margin-bottom: 8px; }
.partner-card.balance-large .legend-plus { color: #198a19; font-weight: 700; }
.partner-card.balance-large .legend-minus { color: #c00; font-weight: 700; }
.partner-card.balance-large .vchart { gap: 9px; padding-bottom: 6px; justify-content: center; overflow-x: hidden; }
.partner-card.balance-large .axis-group { width: 75px; }
.partner-card.balance-large .axis-bars { gap: 6px; height: 165px; }
.partner-card.balance-large .bar { width: 21px; border-radius: 6px 6px 0 0; }
.partner-card.balance-large .axis-label { margin-top: 9px; font-size: 16px; }
.partner-card.balance-large .axis-values { margin-top: 3px; font-size: 15px; }

/* На узких экранах — только меньше зазоры между парами столбиков */
@media (max-width: 640px) {
  .balance-wrap .partner-card.balance-large .vchart { gap: 3px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .balance-wrap .partner-card.balance-large .axis-group { width: 62px; min-width: 62px; }
}

.report-full-block { margin-top: 20px; padding-top: 15px; border-top: 1px solid #ccc; }
.report-full-block h3 { margin-top: 0; }
.report-full-pre { background: #f5f5f5; padding: 12px; border-radius: 6px; overflow-x: auto; max-height: 60vh; overflow-y: auto; white-space: pre; font-size: 12px; line-height: 1.4; }
.report-download { margin-top: 8px; }
.query-ref { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #ddd; color: #444; font-size: 12px; }
.query-ref code { display: block; background: #fafafa; border: 1px solid #eee; border-radius: 6px; padding: 8px; white-space: pre-wrap; word-break: break-all; }
.feedback { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #ddd; }
.feedback-note { font-size: 12px; color: #444; line-height: 1.35; margin-bottom: 10px; }
.feedback-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.rating { display: inline-flex; gap: 10px; }
.rating label { cursor: pointer; user-select: none; }
.feedback input[type="email"], .feedback textarea { width: 100%; max-width: 520px; padding: 6px; }
.feedback textarea { min-height: 70px; resize: vertical; }
.feedback small { color: #666; }
.tip-i { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #888; color: #333; font-size: 11px; line-height: 1; margin-left: 6px; cursor: pointer; user-select: none; background: #fff; }
.tip-i:hover { background: #f3f3f3; }
.tip-pop { position: fixed; z-index: 9999; max-width: 320px; background: #fff; border: 1px solid #bbb; border-radius: 8px; padding: 8px 10px; box-shadow: 0 10px 22px rgba(0,0,0,0.18); font-size: 12px; color: #222; line-height: 1.35; display: none; }
.cache-notice { display: inline-flex; align-items: center; line-height: 1.2; font-size: 12px; font-weight: 700; color: #c00; }
#interpretationBlock { position: relative; }
/* Чек-бокс «с текстом интерпретации» — под кнопкой расчёта */
#interpretationRow { padding-left: 2px; }
.interp-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: #222; user-select: none; white-space: nowrap; flex: 0 0 auto; }
.interp-check input[type="checkbox"] { margin: 0; cursor: pointer; flex: 0 0 auto; }

.astro-runs-page { max-width: 1200px; margin: 0 auto; padding: 12px 16px 32px; }
.astro-runs-page h2 { margin-top: 1.25rem; font-size: 1.1rem; }
.astro-runs-meta { font-size: 13px; color: #555; margin-bottom: 12px; line-height: 1.45; }
.astro-runs-agg { margin: 0 0 16px; padding: 14px 14px 12px; border: 1px solid #b8c9dc; border-radius: 10px; background: linear-gradient(165deg, #f6f9fc 0%, #e8f0f8 100%); font-size: 13px; color: #222; line-height: 1.45; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.astro-runs-agg-head { font-weight: 800; font-size: 15px; color: #1a3550; margin: 0 0 12px; letter-spacing: -0.02em; }
.astro-runs-agg-sub { font-weight: 500; font-size: 12px; color: #5a6f82; margin-left: 6px; }
.astro-runs-agg-block { margin: 0 0 14px; }
.astro-runs-agg-block:last-child { margin-bottom: 0; }
.astro-runs-agg-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #3d5a73; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.astro-runs-agg-h .tag { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 11px; color: #4a6680; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(74, 102, 128, 0.25); padding: 2px 8px; border-radius: 6px; }
.astro-runs-agg-empty { margin: 0; font-size: 12px; color: #5a6f82; font-style: italic; grid-column: 1 / -1; }
.astro-runs-metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.astro-runs-metric-grid--5 { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.astro-metric { background: #fff; border: 1px solid rgba(74, 102, 128, 0.2); border-radius: 8px; padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; min-height: 4.5rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset; }
.astro-metric-label { font-size: 11px; color: #5a6f82; line-height: 1.25; }
.astro-metric-val { font-size: 18px; font-weight: 800; color: #1a3550; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.astro-metric-val b { font-weight: 800; }
.astro-metric-hint { font-size: 10px; color: #7a8fa3; margin-top: auto; }
@media (max-width: 480px) {
  .astro-runs-metric-grid,
  .astro-runs-metric-grid--5 { grid-template-columns: 1fr 1fr; }
}
.astro-runs-meta code { font-size: 12px; }
.attempts-log-table td.al-ts { font-size: 10px; white-space: nowrap; color: #444; }
.attempts-log-table td.al-rid { font-size: 10px; word-break: break-all; max-width: 12rem; }

.attempts-log-block { margin-top: 14px; padding: 10px 12px; border: 1px dashed #999; border-radius: 8px; background: #fafafa; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #222; overflow-x: auto; }
.attempts-log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.attempts-log-title { font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
.attempts-log-meta { color: #666; font-size: 11px; }
.attempts-log-empty { color: #777; font-style: italic; }
.attempts-log-table { width: 100%; border-collapse: collapse; }
.attempts-log-table th, .attempts-log-table td { border: 1px solid #ddd; padding: 4px 6px; vertical-align: top; text-align: left; }
.attempts-log-table th { background: #eee; font-weight: 700; font-size: 11px; color: #333; }
.attempts-log-table th.al-th-num,
.attempts-log-table td.al-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.attempts-log-table td.al-who { min-width: 8.5rem; }
.attempts-log-table td .al-sub { color: #777; font-size: 10px; margin-top: 2px; }
.attempts-log-table td .al-metrics { color: #444; font-size: 11px; margin-top: 4px; white-space: nowrap; }
.attempts-log-table th .al-th-sub { font-weight: 400; color: #666; text-transform: none; letter-spacing: 0; font-size: 10px; }
.attempts-log-table tr.al-pass td.al-status { color: #1f7a1f; font-weight: 700; }
.attempts-log-table tr.al-fail td.al-status { color: #b00020; font-weight: 700; }
.attempts-log-table tr.al-infra td.al-status { color: #b76e00; font-weight: 700; }
.attempts-log-table tr.al-invalid td.al-status { color: #555; font-weight: 700; font-style: italic; }
.attempts-log-table td.al-class { font-weight: 700; color: #444; white-space: nowrap; }
.attempts-log-table td.al-detail { color: #b00020; max-width: 360px; word-break: break-word; }
/* Попап-подсказка для PDF (с "не показывать больше") */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 16px; }
.modal { background: #fff; border: 1px solid #ddd; border-radius: 12px; width: 100%; max-width: 520px; box-shadow: 0 14px 30px rgba(0,0,0,0.25); padding: 14px 16px; }
.modal h3 { margin: 0 0 8px 0; font-size: 16px; }
.modal p { margin: 0 0 10px 0; font-size: 13px; line-height: 1.4; color: #333; }
.modal .modal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.modal .modal-actions { display: inline-flex; gap: 10px; }
.modal .modal-actions button { margin-top: 0; padding: 8px 12px; font-size: 13px; }
.modal .modal-actions .secondary { background: #f3f3f3; border: 1px solid #ddd; }
.modal .modal-check { font-size: 12px; color: #444; user-select: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }

/* Предупреждение о "перепрыжке" знака (BadTochnost) */
.signjump-box { margin-top: 12px; padding: 10px 12px; border: 1px solid #f0b7b7; background: #fff3f3; border-radius: 12px; position: relative; }
.signjump-title { font-weight: 800; color: #a40000; margin-bottom: 6px; }
.signjump-text { color: #444; font-size: 13px; line-height: 1.35; }
.signjump-close { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.25); background: #fff; color: #333; font-size: 18px; line-height: 1; padding: 0; cursor: pointer; }
.signjump-close:hover { border-color: rgba(0,0,0,0.45); background: #f7f7f7; }
.signjump-close:active { transform: translateY(1px); }
.signjump-item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,0.12); }
.signjump-item-head { font-size: 13px; color: #222; margin-bottom: 2px; }
.signjump-item-sub { font-size: 12px; color: #555; margin-bottom: 8px; }
.signjump-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.signjump-btn { margin-top: 0; padding: 8px 12px; font-size: 13px; }
.signjump-btn { border-radius: 10px; border: 2px solid #7a7a7a; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.10); }
.signjump-btn.secondary { background: #f7f7f7; border-color: #6a6a6a; }
.signjump-btn:hover { border-color: #444; box-shadow: 0 2px 0 rgba(0,0,0,0.14); }
.signjump-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.10); }
.signjump-btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.signjump-hint { margin-top: 6px; font-size: 12px; color: #666; }

#signJumpPanel { margin-top: 10px; }
