.pulse-library h1 { margin: 0 0 26px; }
.library-controls label { display: block; font-weight: 600; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.library-controls input { width: 100%; max-width: 660px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; font: inherit; }
.library-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.library-filters button, .library-empty button { font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; cursor: pointer; }
.library-filters button[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.pulse-library :focus-visible, .pulse-reader :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.library-count { font-size: 13px; color: var(--muted); margin: 18px 0 12px; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 16px; }
.library-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 22px; color: var(--text); text-decoration: none; }
.library-card:hover { border-color: var(--accent); background: var(--raised); }
.library-topic { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.library-icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; background: var(--accent-bg); color: var(--accent); border-radius: 12px; }
.library-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.library-card h2 { margin: 18px 0 6px; font-size: 19px; line-height: 1.3; }
.library-card p { flex: 1; margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.library-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.library-empty, .pulse-reader { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 3vw, 32px); }
.library-empty button { margin-left: 6px; }
.reader-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 20px; font-size: 13px; }
.reader-links a, .reader-contents a { color: var(--accent); }
.reader-contents { margin-bottom: 24px; padding: 12px 0; border-block: 1px solid var(--line); }
.reader-contents summary { cursor: pointer; font-size: 13px; }
.reader-contents .toc { padding-top: 8px; }
@media (min-width: 1350px) { .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.workspace.wide { grid-template-columns: minmax(0, 1fr); padding-inline: clamp(12px, 1.4vw, 24px); }
.library-card[data-group="Start here"] .library-icon,
.library-card[data-group="Operate"] .library-icon { color: #a35b0c; background: #fbecd5; }
.library-card[data-group="Kubernetes"] .library-icon { color: #286c51; background: #dff1e8; }
[data-theme="dark"] .library-card[data-group="Start here"] .library-icon,
[data-theme="dark"] .library-card[data-group="Operate"] .library-icon { color: #efb161; background: #342818; }
[data-theme="dark"] .library-card[data-group="Kubernetes"] .library-icon { color: #8fd1b0; background: #173429; }
