/* The Flagsmith page: live connection, sync, parity and the file doctor. Shared window styles are in css/app.css. */
[data-view="flagsmith"] .fs-panel .pgw__body { min-height: 0; }
[data-view="flagsmith"] .fs-panel .pgw__bar b { font-family: var(--font-mono); }
[data-view="flagsmith"] .fs-err:empty { display: none; }
[data-view="flagsmith"] .fs-err { color: #e59a8a; }
[data-view="flagsmith"] .fs-out { display: grid; gap: 12px; }
[data-view="flagsmith"] .fs-out .pane-label { margin-top: 8px; }
[data-view="flagsmith"] .fs-doctor td:nth-child(2) { white-space: nowrap; }
[data-view="flagsmith"] .pgw__side .ctl { width: 100%; }
[data-view="flagsmith"] .pgw__side code { overflow-wrap: anywhere; }

[data-view="flagsmith"] .fs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
[data-view="flagsmith"] .fs-pad { padding: 16px 18px 20px; display: grid; gap: 14px; align-content: start; }
[data-view="flagsmith"] .fs-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 14px/1.3 var(--font-text); cursor: pointer; }
[data-view="flagsmith"] .fs-toggle input { width: 18px; height: 18px; accent-color: var(--p-accent); }
[data-view="flagsmith"] .fs-toggle:has(input:disabled) { opacity: .5; cursor: not-allowed; }
[data-view="flagsmith"] .fs-sum { margin: 0; font: 400 15px/1.45 var(--font-text); }
[data-view="flagsmith"] .fs-sum:empty { display: none; }
[data-view="flagsmith"] .fs-sum b { font-weight: 600; color: var(--p-accent); }

[data-view="flagsmith"] .fs-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 300px; overflow: auto;
  font: 400 13px/1.5 var(--font-mono); border-top: 1px solid var(--w-line); }
[data-view="flagsmith"] .fs-log:empty { display: none; }
[data-view="flagsmith"] .fs-log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--w-line); overflow-wrap: anywhere; }
[data-view="flagsmith"] .fs-log time { color: var(--p-muted); }
[data-view="flagsmith"] .fs-log li.chg { animation: fs-flash 1.6s ease both; }
[data-view="flagsmith"] .fs-log li.chg b { color: var(--p-accent); font-weight: 500; }
[data-view="flagsmith"] .fs-log li.bad { color: #e59a8a; }
[data-view="flagsmith"] .fs-log--users li { grid-template-columns: minmax(0, 14em) minmax(0, 1fr); }
[data-view="flagsmith"] .fs-log--users li.ok span:first-child { color: var(--p-accent); }
@keyframes fs-flash { from { background: rgb(159 199 184 / .18); } to { background: transparent; } }

@media (max-width: 1023px) { [data-view="flagsmith"] .fs-pair { grid-template-columns: 1fr; } }
@media (max-width: 639px) { [data-view="flagsmith"] .fs-log--users li { grid-template-columns: 1fr; gap: 2px; } }
