.sync-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 4px; border: 0; background: transparent; color: var(--muted); min-height: 34px; font-size: 11px; }
.sync-dot { width: 7px; height: 7px; flex: 0 0 7px; background: var(--muted); border-radius: 50%; }
.sync-status[data-phase="saved"] .sync-dot { background: var(--good); }
.sync-status:is([data-phase="pending"], [data-phase="saving"], [data-phase="available"]) .sync-dot { background: var(--accent); }
.sync-status:is([data-phase="error"], [data-phase="conflict"]) { color: var(--bad); }
.sync-status:is([data-phase="error"], [data-phase="conflict"]) .sync-dot { background: var(--bad); }
.collaboration-dialog { width: min(940px, calc(100vw - 32px)); max-height: 88vh; border: 1px solid var(--border-strong); padding: 0; border-radius: 8px; background: #191d21; color: var(--text); box-shadow: var(--shadow); }
.collaboration-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.collaboration-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; position: sticky; top: 0; background: #191d21; z-index: 1; border-bottom: 1px solid var(--border); }
.collaboration-head h3 { font-size: 19px; margin: 0; }
.collaboration-body { padding: 18px 22px 24px; }
.collaboration-toolbar, .collaboration-footer { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.collaboration-footer { margin-top: 18px; margin-bottom: 0; }
.collaboration-toolbar select { border: 1px solid var(--border); background: var(--panel-solid); border-radius: 6px; padding: 9px 12px; color: var(--text); }
.activity-entry { border-bottom: 1px solid var(--border); }
.activity-entry summary { display: flex; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.activity-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; background: #2a3035; color: var(--accent-2); border-radius: 6px; font-size: 11px; }
.activity-description { display: grid; gap: 5px; flex: 1; min-width: 0; }
.activity-description strong { font-size: 13px; overflow-wrap: anywhere; }
.activity-description > span, .activity-entry time { color: var(--muted); font-size: 11px; }
.activity-entry time { white-space: nowrap; }
.change-values { border-top: 1px solid var(--border); padding-bottom: 16px; }
.change-heading, .change-value-row { display: grid; grid-template-columns: minmax(110px,.6fr) minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 10px; border-bottom: 1px solid var(--border); font-size: 12px; }
.change-heading { color: var(--faint); }
.change-value-row pre { font: inherit; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; }
.change-value-row pre:last-child { color: var(--accent-2); }
.recovery-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); text-align: left; }
.recovery-copy span { color: var(--accent-2); }
.recovery-copy time { color: var(--muted); }
.collaboration-error { color: var(--bad); padding: 12px; border-left: 2px solid var(--bad); background: rgba(242,140,140,.05); }
.recovery-comparison input { accent-color: var(--accent); width: 17px; height: 17px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .collaboration-body, .collaboration-head { padding: 14px; }
  .activity-entry summary { flex-wrap: wrap; }
  .activity-entry time { margin-left: 46px; }
  .change-heading, .change-value-row { grid-template-columns: minmax(70px,.6fr) minmax(0,1fr) minmax(0,1fr); gap: 6px; font-size: 11px; padding: 8px 0; }
  .recovery-copy { flex-wrap: wrap; }
}
