/* EquineSuite sync screen */
.sync-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.sync-tabs a { padding: 8px 14px; text-decoration: none; font-weight: 700; color: var(--mute); border-bottom: 3px solid transparent; white-space: nowrap; }
.sync-tabs a.on { color: var(--ink); border-bottom-color: var(--clay); }
.sync-page .card { margin-bottom: 14px; }
.sync-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sync-cols .card { margin-bottom: 0; } .sync-cols + .card, .sync-cols + section { margin-top: 14px; }

/* family diagram */
.fam { display: grid; grid-template-columns: 210px 1fr; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.fam-hub { background: var(--green); color: var(--oat); border-radius: 34px 34px 12px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; position: relative; }
.fam-hub b { font: 700 18px var(--f-head); letter-spacing: .1em; } .fam-hub small { font: 500 10.5px var(--f-mono); color: #8FA596; }
.fam-hub::after { content: ''; position: absolute; inset-inline-end: -14px; top: 50%; width: 14px; border-top: 2px dashed var(--clay); }
.fam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fam-app { background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 8px 8px; padding: 12px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.fam-app:hover { border-color: var(--clay); }
.fam-app header { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.fam-app header b { font-size: 16px; } .fam-app .eyebrow { margin: 0; font-size: 9.5px; }
.fam-app p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.35; }
.flow { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); }
.flow b { color: var(--ink); }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.glance div { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.glance small { display: block; font: 600 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.glance b { font: 700 22px var(--f-head); }
.cam-ingest { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cam-ingest > b { display: flex; gap: 6px; align-items: center; } .cam-ingest p { margin: 0; }

/* code */
.code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.code-row code { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 12.5px; word-break: break-all; flex: 1; min-width: 200px; }
.code-row .eyebrow { margin: 0; }
.code-row.secret code { font-size: 14px; background: var(--straw-bg); border-color: var(--straw); color: var(--ink); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.doc { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.doc pre { margin: 0; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; color: var(--ink2); width: 100%; }

/* federation */
.conn { display: flex; gap: 6px; align-items: center; margin: 0 0 6px; } .conn.ok { color: var(--ok); }
.sync-page .card .fld { margin-bottom: 10px; } .sync-page .card .actions { margin-top: 10px; }
.match-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.match-ref { flex: 1; min-width: 220px; max-width: 420px; }
.match-table-wrap { overflow-x: auto; }
.match-table th:first-child { white-space: nowrap; } .match-table td { min-width: 150px; }
.match-table tbody tr { cursor: default; } .match-table tbody tr:hover td { background: transparent; }
.match-table td.fill { background: var(--ok-bg) !important; } .match-table td.diff { background: var(--warn-bg) !important; }
.match-acts { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.legend.fill, .legend.diff { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; } .legend.fill { background: var(--ok-bg); border: 1px solid var(--ok); } .legend.diff { background: var(--warn-bg); border: 1px solid var(--straw); }
.bulk-list { display: flex; flex-direction: column; } .bulk-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .bulk-row .btn { margin-inline-start: auto; }
tr.dimrow td { opacity: .55; }

/* live */
.live-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .live-search .search-in { flex: 1; }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.entry-opt { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.entry-opt:has(input:checked) { border-color: var(--clay); background: var(--panel2); }
.live-pick p { margin: 0 0 10px; }

/* api keys & webhooks */
.keys { display: flex; flex-direction: column; }
.key-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.key-row > div:first-child { min-width: 0; word-break: break-all; } .key-row.revoked { opacity: .55; }
.scope-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.scope-groups fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.scope-groups legend { font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 4px; }
.scope-groups .check, .ev-grid .check { align-items: flex-start; } .scope-groups small, .ev-grid small { display: block; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-top: 8px; }

@media (max-width: 1100px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sync-cols, .docs, .scope-groups, .ev-grid { grid-template-columns: 1fr; }
  .fam { grid-template-columns: 1fr; } .fam-hub::after { display: none; } .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fam-app, .fam-app * { min-width: 0; overflow-wrap: anywhere; } .glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .key-row { flex-direction: column; }
}
.fam-app header { flex-wrap: wrap; row-gap: 4px; min-width: 0; } .fam-app header .b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
