.buzz-library {
  --primary: #171717;
  --primary-dark: #171717;
  --text: #101010;
  --text-muted: #777;
  --border: #e8e8e8;
  --border-strong: #d5d5d5;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 0 36px;
  color: var(--text);
}
.buzz-library [hidden] { display: none !important; }
.buzz-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.buzz-heading h2 { margin: 0; font-size: 25px; line-height: 1.4; letter-spacing: -.035em; }
.buzz-reload { white-space: nowrap; flex-shrink: 0; font-size: 12px; }
.buzz-platform-picker { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #f1f1f1; }
.buzz-platform-button { min-width: 72px; min-height: 36px; padding: 7px 18px; border: 0; border-radius: 8px; background: transparent; color: #666; font: inherit; font-size: 13px; cursor: pointer; }
.buzz-platform-button:hover { color: #101010; background: #e6e6e6; }
.buzz-platform-button[aria-pressed="true"] { background: #fff; color: #101010; font-weight: 650; box-shadow: 0 1px 3px #0000000c; }
.buzz-library .btn-primary { background: #101010; border: 1px solid #101010; border-radius: 10px; color: #fff; box-shadow: none; }
.buzz-library .btn-primary:hover { background: #333; border-color: #333; }
.buzz-library .btn-secondary { color: #303030; background: white; border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: none; }
.buzz-library .btn-secondary:hover { background: #f5f5f5; }
.buzz-filters { padding: 18px 20px 0; border: 1px solid var(--border); border-radius: 16px; background: white; }
.buzz-search-row { display: flex; align-items: flex-end; gap: 10px; }
.buzz-search { flex: 1; }
.buzz-search-button { height: 44px; min-width: 100px; }
.buzz-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding-top: 4px; }
.buzz-filters label { min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 500; color: var(--text-muted); }
.buzz-filters input, .buzz-filters select { min-width: 0; width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: #fafafa; color: var(--text); font: inherit; font-size: 13px; font-weight: 400; }
.buzz-search input { height: 44px; font-size: 15px; }
.buzz-advanced { border-top: 1px solid var(--border); margin-top: 14px; }
.buzz-advanced summary { cursor: pointer; padding: 12px 0; font-size: 12px; font-weight: 600; }
.buzz-advanced summary span { margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--text-muted); }
.buzz-advanced[open] { padding-bottom: 14px; }
.buzz-filter-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: var(--text-muted); font-size: 11px; }
.buzz-text-button { background: none; border: 0; padding: 4px 0; color: #444; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.buzz-text-button:hover { text-decoration: underline; }
#buzz-filter-error { color: var(--danger); font-size: 12px; margin: 12px 0 0; }
.buzz-library :is(input, select, button, a, summary):focus-visible { outline: 2px solid #555; outline-offset: 3px; }
.buzz-source-note { margin: 12px 2px 0; color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.buzz-result-line { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 18px 2px 12px; scroll-margin-top: 80px; }
#buzz-result-count { margin: 0; font-size: 12px; font-weight: 600; }
#buzz-collected-date { color: var(--text-muted); font-size: 11px; }
.buzz-grid { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.buzz-card { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 24px; background: #fff; }
.buzz-card + .buzz-card { border-top: 1px solid var(--border); }
.buzz-avatar { position: relative; width: 40px; height: 40px; border: 1px solid #e5e5e5; border-radius: 50%; background: #f2f2f2; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.buzz-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buzz-avatar svg { width: 34px; height: 34px; fill: #c5c5c5; stroke: #c5c5c5; stroke-width: 1.6; }
.buzz-post-main { min-width: 0; }
.buzz-card-top { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; min-width: 0; }
.buzz-author-line { min-width: 0; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.buzz-author { font-size: 14px; font-weight: 650; color: #101010; text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
.buzz-author:hover { text-decoration: underline; }
.buzz-platform-mark { color: #777; font-size: 10px; font-weight: 400; }
.buzz-genre { flex-shrink: 0; font-size: 10px; font-weight: 400; color: #888; }
.buzz-post-labels { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 8px; }
.buzz-post-type-badge { display: inline-block; padding: 2px 6px; border: 1px solid #e1e5ec; border-radius: 4px; background: #f4f6f8; color: #697381; font-size: 9px; white-space: nowrap; }
.buzz-post-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 1px 0 8px; font-size: 10px; color: #888; line-height: 1.5; }
.buzz-posted-date { color: #666; }
.buzz-text-provenance { margin: 8px 0 0; color: #888; font-size: 10px; line-height: 1.5; }
.buzz-post-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; color: #101010; }
.buzz-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.buzz-expand { border: 0; background: none; color: #888; padding: 5px 0; margin-top: 2px; font: inherit; font-size: 13px; cursor: pointer; }
.buzz-expand:hover { color: #222; }
.buzz-card-footer { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.buzz-post-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.buzz-likes { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 400; color: #333; white-space: nowrap; line-height: 1; }
.buzz-likes svg { width: 20px; height: 20px; stroke: #333; stroke-width: 1.7; stroke-linejoin: round; }
.buzz-metric-unknown, .buzz-views { color: #777; font-size: 11px; white-space: nowrap; }
.buzz-card-footer a { display: inline-flex; gap: 4px; align-items: center; color: #777; text-decoration: none; font-size: 11px; padding: 5px 0 5px 8px; min-height: 32px; }
.buzz-card-footer a svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.buzz-card-footer a:hover { color: #101010; text-decoration: underline; }
.buzz-feed-loader { display: flex; min-height: 64px; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 16px 0; color: var(--text-muted); font-size: 12px; }
.buzz-feed-loader[hidden] { display: none; }
.buzz-feed-spinner { width: 18px; height: 18px; border: 2px solid #e0e2e5; border-top-color: #727b88; border-radius: 50%; animation: buzz-feed-spin .8s linear infinite; }
@keyframes buzz-feed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .buzz-feed-spinner { animation: none; } }
.buzz-empty { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 50px 20px; text-align: center; }
.buzz-empty-icon { color: #999; font-size: 36px; line-height: 1; }
.buzz-empty h3 { font-size: 17px; margin: 14px 0 8px; }
.buzz-empty p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.buzz-loading { opacity: .55; pointer-events: none; }
.research-page { background: #fafafa; color: #101010; }
.research-page .buzz-card-top { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.research-page .buzz-post-labels { min-width: 0; max-width: 100%; }
.research-page .buzz-genre { flex-shrink: 1; padding: 3px 9px; border-radius: 6px; background: #f0f1f3; color: #505762; font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.research-page .buzz-platform-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 2px 7px; border: 1px solid #dfe2e7; border-radius: 5px; background: #fff; color: #414751; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.research-page .buzz-platform-mark[data-platform="x"] { border-color: #24272d; background: #24272d; color: #fff; }
.research-page .buzz-card-footer .buzz-original-link { padding: 4px 0; color: #727b88; font-size: 12px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.research-page .buzz-card-footer .buzz-original-link:hover { color: #343842; }
.research-page .buzz-card-footer .buzz-original-link:focus-visible { outline: 2px solid #727b88; outline-offset: 4px; border-radius: 2px; }
.research-header { padding: 17px max(24px, calc((100% - 720px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fafafa; border-bottom: 1px solid #eee; }
.research-brand { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: #101010; text-decoration: none; }
.research-brand-caption { font-size: 10px; font-weight: 500; color: #777; letter-spacing: .01em; }
.research-brand strong { font-size: 23px; font-weight: 750; line-height: 1.35; letter-spacing: -.04em; }
.research-header > .research-section { font-size: 11px; color: #666; white-space: nowrap; border: 1px solid #e5e5e5; border-radius: 20px; padding: 4px 12px; }
.research-main { padding: 24px; }
.buzz-mcp-guide { margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.buzz-mcp-guide summary { padding: 12px 16px; cursor: pointer; color: #444; font-size: 12px; font-weight: 600; }
.buzz-mcp-guide summary span { color: #888; font-weight: 400; font-size: 11px; margin-left: 10px; }
.buzz-mcp-guide[open] summary { border-bottom: 1px solid var(--border); }
.buzz-mcp-content { padding: 4px 16px 14px; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.buzz-mcp-content ol { padding-left: 22px; }
.buzz-mcp-content li { margin: 12px 0; }
.buzz-mcp-content pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f5f5f5; padding: 14px; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.buzz-mcp-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.buzz-mcp-hint { color: #666; font-size: 12px; }
.buzz-access { padding: 18px 20px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.buzz-access-heading { display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.buzz-access h3 { font-size: 15px; margin: 0; }
#buzz-access-status { font-size: 13px; margin: 8px 0 12px; }
.buzz-access-form { display: flex; gap: 10px; }
.buzz-access-form input { flex: 1; min-width: 0; padding: 10px; font: inherit; border: 1px solid var(--border-strong); border-radius: 10px; }
.buzz-access-form button { flex-shrink: 0; }
.buzz-access-note { font-size: 11px; color: var(--text-muted); margin: 10px 0 0; }
.buzz-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 540px) {
  .buzz-library { padding-top: 0; }
  .buzz-heading { gap: 12px; margin-bottom: 16px; }
  .buzz-heading h2 { font-size: 22px; }
  .buzz-reload { font-size: 11px; padding: 7px 9px; }
  .buzz-filters { padding: 14px 14px 0; }
  .buzz-search-row { gap: 8px; }
  .buzz-search-button { min-width: 86px; padding: 8px 12px; font-size: 13px; }
  .buzz-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .buzz-filter-footer { display: block; }
  .buzz-filter-footer > span { display: block; margin-bottom: 5px; }
  .buzz-result-line { display: block; margin: 16px 2px 10px; }
  #buzz-collected-date { display: block; margin-top: 3px; font-size: 10px; }
  .buzz-grid { margin: 0 -16px; border-left: 0; border-right: 0; border-radius: 0; }
  .buzz-card { padding: 18px 16px; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .buzz-avatar { width: 36px; height: 36px; }
  .buzz-avatar svg { width: 31px; height: 31px; }
  .buzz-card-top { gap: 7px; flex-wrap: wrap; }
  .buzz-post-text { font-size: 14px; line-height: 1.7; }
  .research-header { padding: 15px 16px; }
  .research-brand-caption { font-size: 9px; }
  .research-brand strong { font-size: 22px; }
  .research-main { padding: 20px 16px; }
  .buzz-mcp-guide summary { padding: 11px 14px; }
  .buzz-mcp-guide summary span { font-size: 10px; margin-left: 5px; }
  .buzz-mcp-content { padding: 2px 14px 10px; }
  .buzz-access { padding: 15px; }
}
