.mpi-readonly{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;margin:0 0 16px;border:1px solid #d4d4d8;border-radius:14px;background:#fafafa}.mpi-readonly b{white-space:nowrap}.mpi-readonly span{color:#52525b;line-height:1.45}.mpi-readonly.compact{margin-top:14px}.mpi-card-top,.mpi-mini,.mpi-store-head,.mpi-head-actions{display:flex;gap:10px;align-items:center}.mpi-card-top{justify-content:space-between}.mpi-status{font-size:12px}.mpi-mini{margin:10px 0;flex-wrap:wrap}.mpi-mini span{padding:6px 9px;border-radius:10px;background:#f4f4f5;font-size:12px}.mpi-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.mpi-store-head{justify-content:space-between;align-items:flex-start;margin:10px 0 16px}.mpi-store-head>div:nth-child(2){flex:1}.mpi-store-head h2{margin:3px 0}.mpi-store-head span{font-size:12px;font-weight:700;letter-spacing:.08em}.mpi-head-actions{flex-wrap:wrap}.mpi-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.mpi-tabs button{background:#f4f4f5;color:#18181b}.mpi-tabs button.active{background:#18181b;color:#fff}.mpi-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0 16px}.mpi-kpis article{padding:14px;border:1px solid #e4e4e7;border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:5px}.mpi-kpis article.primary{border-color:#18181b}.mpi-kpis span,.mpi-kpis small{font-size:12px;color:#71717a}.mpi-kpis b{font-size:20px}.mpi-note{padding:12px 14px;margin:10px 0 14px;border-radius:12px;background:#f4f4f5;color:#52525b}.mpi-period{display:flex;justify-content:flex-end;margin:0 0 10px}.mpi-table{overflow:auto}.mpi-table table{width:100%;border-collapse:collapse;min-width:760px}.mpi-table th,.mpi-table td{padding:10px 9px;border-bottom:1px solid #e4e4e7;text-align:left;vertical-align:top}.mpi-table th{font-size:12px;color:#71717a;white-space:nowrap}.mpi-table td small{display:block;color:#71717a;margin-top:4px}.mpi-table tr.warn{background:#fff7ed}.mpi-thumb{width:48px;height:60px;object-fit:cover;border-radius:8px}.mpi-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mpi-connection small.bad,.bad{color:#b91c1c}.mpi-table select{min-width:280px;max-width:460px}@media(max-width:900px){.mpi-store-head{flex-direction:column}.mpi-settings{grid-template-columns:1fr}.mpi-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 2026-09-24: director integrations readability on light surfaces */
#integrationsAll{color:#18181b!important}
#integrationsAll .ac-card,#integrationsAll .ac-panel,#integrationsAll .mpi-kpis article,#integrationsAll .mpi-table table{color:#18181b!important}
#integrationsAll .mpi-table th{background:#f4f4f5!important;color:#3f3f46!important;-webkit-text-fill-color:#3f3f46!important}
#integrationsAll .mpi-table td{background:#fff!important;color:#18181b!important;-webkit-text-fill-color:#18181b!important}
#integrationsAll .mpi-table tr.warn td{background:#fff7ed!important;color:#18181b!important}
#integrationsAll .mpi-table td b,#integrationsAll .mpi-table td strong,#integrationsAll .ac-card h3,#integrationsAll .ac-panel h2,#integrationsAll .ac-panel h3,#integrationsAll .ac-list b,#integrationsAll .ac-list strong{color:#18181b!important;-webkit-text-fill-color:#18181b!important}
#integrationsAll .ac-card p,#integrationsAll .ac-card small,#integrationsAll .ac-list small,#integrationsAll .mpi-table td small,#integrationsAll .mpi-kpis span,#integrationsAll .mpi-kpis small,#integrationsAll .mpi-note{color:#52525b!important;-webkit-text-fill-color:#52525b!important}
#integrationsAll input:not([type="checkbox"]),#integrationsAll select,#integrationsAll textarea{background:#fff!important;color:#18181b!important;-webkit-text-fill-color:#18181b!important;border-color:#d4d4d8!important;color-scheme:light}
#integrationsAll option{background:#fff!important;color:#18181b!important;-webkit-text-fill-color:#18181b!important}
#integrationsAll input::placeholder,#integrationsAll textarea::placeholder{color:#52525b!important;-webkit-text-fill-color:#52525b!important;opacity:1!important}
#integrationsAll input:disabled,#integrationsAll select:disabled,#integrationsAll textarea:disabled{background:#eef2ef!important;color:#3f3f46!important;-webkit-text-fill-color:#3f3f46!important;opacity:1!important}
#integrationsAll .bad,#integrationsAll .mpi-connection small.bad{color:#b91c1c!important;-webkit-text-fill-color:#b91c1c!important}
#integrationsAll .mpi-tabs button.active{background:#18181b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Yandex FBS connection setup uses the existing modal form. */
.mpi-yandex-help{grid-column:1/-1;padding:12px 14px;border:1px solid #d4d4d8;border-radius:12px;background:#fafafa;color:#27272a;line-height:1.45}.mpi-yandex-help ol{margin:8px 0;padding-left:22px}.mpi-yandex-help li+li{margin-top:6px}.mpi-yandex-help p{margin:8px 0}.mpi-yandex-help a{color:#1d4ed8;text-decoration:underline}.ac-form .mpi-yandex-field small{display:block;font-weight:400;color:#52525b;margin-top:4px}

.mpi-yandex-discovery{grid-column:1/-1;min-width:0}.mpi-yandex-discovery label{display:block;margin-top:10px}.mpi-yandex-discovery select{width:100%;max-width:100%}.mpi-yandex-discovery [role="status"]{margin-top:8px;overflow-wrap:anywhere}
