:root {
  --ecg-ink: #162236;
  --ecg-muted: #617183;
  --ecg-line: #d7e1e4;
  --ecg-surface: #ffffff;
  --ecg-soft: #f3f7f7;
  --ecg-teal: #078c8c;
  --ecg-navy: #162f52;
}

.ecg-library-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ecg-line);
  padding: 10px clamp(12px, 3vw, 28px);
  color: var(--ecg-ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ecg-library-bar a {
  color: inherit;
  text-decoration: none;
}

.ecg-brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--ecg-line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ecg-navy);
  background: var(--ecg-surface);
  font-size: 0.92rem;
  font-weight: 850;
}

.ecg-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ecg-library-actions a {
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--ecg-soft);
  color: var(--ecg-navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.ecg-library-actions a:first-child {
  background: var(--ecg-navy);
  color: #ffffff;
}

@media (max-width: 560px) {
  .ecg-library-bar {
    align-items: flex-start;
  }
}
