#sharedClientStatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, 38vw);
  padding: 6px 10px;
  border: 1px solid var(--line, #2d3234);
  border-radius: 999px;
  color: var(--muted, #9fa7a4);
  font-size: 11px;
  white-space: nowrap;
}
#sharedClientStatus[data-state="offline"] {
  color: var(--warning, #e7b85a);
  border-color: color-mix(in srgb, var(--warning, #e7b85a) 45%, transparent);
}
#sharedClientStatus [data-shared-label] { overflow: hidden; text-overflow: ellipsis; }
#sharedClientStatus [data-shared-detail] { opacity: .75; overflow: hidden; text-overflow: ellipsis; }
.company-library-cache { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.company-library-cache[hidden], .company-library-cache [hidden] { display: none !important; }
.company-library-cache-copy { flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; font-size: 12px; }
.company-library-cache-copy strong { color: var(--ink); }
.company-library-cache-copy span { color: var(--teal); }
.company-library-cache-copy small { flex-basis: 100%; color: var(--ink-soft); overflow-wrap: anywhere; line-height: 1.5; }
.company-library-cache[data-state="failed"] [data-library-label] { color: #954c38; }
.company-library-cache progress { width: 140px; height: 6px; accent-color: var(--teal); }
.company-library-cache-actions { display: flex; flex-wrap: wrap; gap: 6px; }
[data-project][aria-busy="true"] { cursor: progress; }
.shared-download-dialog h2 { font-size: 20px; margin: 0; }
.shared-download-dialog progress { display: block; width: 100%; height: 8px; margin: 18px 0 10px; accent-color: var(--teal); }
.shared-download-dialog [data-download-detail] { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.shared-download-dialog [data-download-error] { color: #954c38; font-size: 12px; line-height: 1.6; }
body[data-download-locked="true"] .app-shell { pointer-events: none; }
@media (max-width: 600px) {
  .company-library-cache-copy { flex-basis: 100%; }
  .company-library-cache progress { flex: 1; }
}
@media (max-width: 900px) {
  #sharedClientStatus { max-width: 48vw; }
  #sharedClientStatus [data-shared-detail] { display: none; }
}

/* Background updates after the first complete download: never a lock. */
#sharedBackgroundSync {
  display: inline-flex; align-items: center; gap: 6px; max-width: min(320px, 32vw);
  padding: 6px 10px; border: 1px solid var(--line, #2d3234); border-radius: 999px;
  background: transparent; color: var(--muted, #9fa7a4); font: inherit; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
#sharedBackgroundSync[hidden] { display: none; }
#sharedBackgroundSync[data-state="syncing"] { cursor: default; }
#sharedBackgroundSync[data-state="failed"] { color: var(--coral, #e4816b); border-color: color-mix(in srgb, var(--coral, #e4816b) 45%, transparent); }
#sharedBackgroundSync[data-state="pending"] { color: var(--teal, #4fb8a8); border-color: color-mix(in srgb, var(--teal, #4fb8a8) 45%, transparent); }
@media (max-width: 720px) { #sharedBackgroundSync { max-width: 40vw; } }
