.campaign-card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04); overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a1a; line-height: 1.5; }
.campaign-card .card-header { padding: 24px 32px; border-bottom: 1px solid #eef0f3; }
.campaign-card .role { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.campaign-card .meta { font-size: 14px; color: #6b7280; }
.campaign-card .meta a { color: #1d4ed8; text-decoration: none; }
.campaign-card .meta a:hover { text-decoration: underline; }
.campaign-card .card-body { padding: 28px 32px; }
.campaign-card .section { margin-bottom: 28px; }
.campaign-card .section:last-child { margin-bottom: 0; }
.campaign-card .section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; margin-bottom: 12px; }
.campaign-card .section-title .hint-inline { font-weight: 400; text-transform: none; letter-spacing: 0; color: #9ca3af; font-size: 12px; margin-left: 6px; }
.campaign-card .hint { font-size: 12px; color: #9ca3af; margin-top: 6px; line-height: 1.4; }
.campaign-card .hint-warn { font-size: 12px; color: #b45309; margin-top: 10px; line-height: 1.4; }

.campaign-card .salary-row { display: flex; gap: 12px; margin-bottom: 16px; }
.campaign-card .salary-box { flex: 1; padding: 14px 16px; border-radius: 8px; border: 1px solid #eef0f3; }
.campaign-card .salary-box.target { background: #eff6ff; border-color: #bfdbfe; }
.campaign-card .salary-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.campaign-card .salary-value { font-size: 20px; font-weight: 600; }
.campaign-card .salary-box.target .salary-value,
.campaign-card .salary-box.target .salary-label { color: #1d4ed8; }

.campaign-card .p90-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-top: 8px; font-size: 14px; }
.campaign-card .p90-row .p90-label { color: #166534; }
.campaign-card .p90-row .p90-value { font-weight: 600; color: #166534; }

.campaign-card .max-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #fefce8; border: 1px solid #fde68a; border-radius: 8px; margin-top: 6px; font-size: 13px; }
.campaign-card .max-row .max-label { color: #854d0e; }
.campaign-card .max-row .max-value { font-weight: 600; color: #854d0e; }

.campaign-card .sample-size { font-size: 12px; color: #9ca3af; margin-top: 8px; }

.campaign-card .range { position: relative; height: 8px; background: #eef0f3; border-radius: 4px; margin: 20px 0 8px; }
.campaign-card .range-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, #93c5fd, #1d4ed8); border-radius: 4px; }
.campaign-card .range-marker { position: absolute; top: -6px; width: 20px; height: 20px; background: #1d4ed8; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transform: translateX(-50%); }
.campaign-card .range-labels { display: flex; justify-content: space-between; font-size: 12px; color: #9ca3af; }

.campaign-card .trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 10px; border-radius: 12px; margin-top: 8px; }
.campaign-card .trend.up { color: #059669; background: #ecfdf5; }
.campaign-card .trend.down { color: #dc2626; background: #fef2f2; }

.campaign-card .forecast { display: flex; gap: 12px; }
.campaign-card .forecast-item { flex: 1; padding: 14px 16px; background: #f9fafb; border-radius: 8px; }
.campaign-card .forecast-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.campaign-card .forecast-value { font-size: 16px; font-weight: 600; }
.campaign-card .forecast-value.fast { color: #059669; }
.campaign-card .forecast-value.slow { color: #dc2626; }

/* Прогноз закрытия */
.campaign-card .close-forecast { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 16px 20px; }
.campaign-card .close-forecast-main { font-size: 18px; font-weight: 600; color: #1d4ed8; margin-bottom: 8px; }
.campaign-card .close-forecast-scenarios { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #1e3a8a; }
.campaign-card .close-forecast-scenarios strong { font-weight: 600; }

.campaign-card .recommendation { padding: 16px 20px; background: #eff6ff; border-left: 3px solid #1d4ed8; border-radius: 6px; font-size: 15px; color: #1e3a8a; }
.campaign-card .recommendation p { margin: 0 0 8px; }
.campaign-card .recommendation p:last-child { margin: 0; }
.campaign-card .recommendation strong { font-weight: 600; }

.campaign-card .sources { display: flex; flex-direction: column; gap: 6px; }
.campaign-card .source-item { display: flex; justify-content: space-between; padding: 8px 12px; background: #f9fafb; border-radius: 6px; font-size: 14px; }
.campaign-card .source-name { color: #4b5563; }
.campaign-card .source-value { font-weight: 600; }

.campaign-card .empty-state { padding: 40px 32px; text-align: center; color: #9ca3af; font-size: 15px; }

.disclaimer { padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 20px; }
.disclaimer strong { color: #475569; font-weight: 600; }
.sibling-links { display: flex; flex-wrap: wrap; gap: 6px; }
.location-page { max-width: 960px; margin: 0 auto; }
.location-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.location-summary .stat {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 18px 20px;
}
.location-summary .stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
.location-summary .stat-value {
    font-size: 22px;
    font-weight: 600;
    min-height: 30px;
}
.location-summary .hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1.4;
}
.location-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.location-card h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 16px;
}
.location-card table { width: 100%; border-collapse: collapse; }
.location-card table th,
.location-card table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.location-card table th {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
}
.location-card table tr:last-child td { border-bottom: none; }
.location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.location-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}
@media (max-width: 700px) {
    .location-summary { grid-template-columns: repeat(2, 1fr); }
}
.ms-analytics { color:#182c48; }
.ms-analytics .card,.ms-analytics .location-card,.ms-analytics .location-summary .stat { border:1px solid #dce4ef; border-radius:12px; box-shadow:none; background:#fff; }
.ms-analytics .card-header { background:#fff; color:#182c48; border-bottom:1px solid #e5eaf1; padding:16px 20px; font-weight:600; }
.ms-analytics .card-body { padding:20px; }
.ms-analytics .ms-analytics-kpi { border-top:3px solid #1763d5; }
.ms-analytics .ms-analytics-kpi .card-title { font-size:14px; color:#475569; }
.ms-analytics .ms-analytics-kpi .display-4 { font-size:clamp(24px,3vw,36px); font-weight:650; color:#182c48; }
.ms-analytics .table { font-size:14px; --bs-table-striped-bg:#f5f8fc; }
.ms-analytics .table th { color:#475569; font-size:13px; }
.ms-analytics .table td,.ms-analytics .table th { padding:12px; }
.ms-analytics-tabs { background:#fff; border:1px solid #dce4ef; border-radius:12px; padding:5px; gap:4px; }
.ms-analytics-tabs .nav-link { border:0; border-radius:8px; color:#475569; }
.ms-analytics-tabs .nav-link.active { background:#eaf2ff; color:#1763d5; font-weight:600; }
.ms-analytics .campaign-card,.ms-analytics .location-page { max-width:none; }
.ms-analytics .campaign-card { border:1px solid #dce4ef; box-shadow:none; }
.ms-analytics .campaign-card .section { border-bottom:1px solid #e5eaf1; padding-bottom:20px; }
.ms-analytics .campaign-card .section-title,.ms-analytics .location-card h3 { font-size:16px; text-transform:none; letter-spacing:0; color:#182c48; }
.ms-analytics .campaign-card .hint,.ms-analytics .campaign-card .sample-size,.ms-analytics .location-summary .hint { color:#64748b; }
.ms-analytics-params { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px 20px; }
.ms-analytics .location-card { overflow-x:auto; }
.ms-chart-error { color:#b45309; font-size:14px; }
@media(max-width:767px){.ms-analytics .campaign-card .salary-row,.ms-analytics .campaign-card .forecast { flex-direction:column; }.ms-analytics .campaign-card .card-body,.ms-analytics .campaign-card .card-header,.ms-analytics .card-body { padding:14px; }.ms-analytics .location-summary .stat { padding:12px; }.ms-analytics .location-summary .stat-value { font-size:18px; }.ms-analytics .location-card { padding:14px; }}
