[hidden] { display: none !important; }
.library-intro { padding: 32px var(--pad); border-bottom: 1px solid var(--line); }
.library-intro h1 { font: 700 clamp(22px, 4vw, 36px)/1.5 var(--sans); letter-spacing: -.04em; margin: 0 0 8px; }
.library-intro p { font: 400 14px/1.9 var(--sans); max-width: 64em; margin: 0 0 20px; opacity: .75; }
.library-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.library-tools input { min-width: 180px; flex: 1; max-width: 440px; background: transparent; color: inherit; border: 1px solid var(--line); padding: 12px; border-radius: 0; font: 14px var(--sans); cursor: text; }
#filter-count, #empty-results { font: 12px/1.7 var(--sans); }
#f-link.done { color: var(--acc); }
#empty-results { padding: 24px var(--pad); }
.tile .recipe-badge { position: absolute; right: 14px; top: 14px; font: 10px/1.5 var(--mono); letter-spacing: .06em; pointer-events: none; opacity: .6; }
.tile.has-recipe .recipe-badge { color: var(--acc); opacity: 1; }
.tile .tile-name { position: absolute; bottom: 13px; left: 14px; font: 10px var(--mono); letter-spacing: .06em; pointer-events: none; opacity: .6; }
.f-demo { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.f-demo .f-stage { flex: 1; min-height: 0; }
.demo-tools { padding: 14px 20px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font: 12px/1.7 var(--sans); }
#demo-instruction { flex: 1 1 180px; }
.demo-tools button, .demo-tools a { text-decoration: underline; text-underline-offset: 4px; }
.f-load button { border: 1px solid var(--line); padding: 10px 18px; display: none; }
.failed .f-load button { display: block; }
.recipe-head { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.recipe-head .eyebrow { font: 11px var(--mono); letter-spacing: .1em; color: var(--acc); }
.recipe-head h2 { margin: 10px 0; font: 800 clamp(24px, 3vw, 40px)/1.1 var(--sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.recipe-head .recipe-action { font-size: 13px; opacity: .8; }
.skill-download { display: flex; align-items: center; justify-content: space-between; background: var(--fg); color: var(--bg); padding: 15px 18px; margin: 18px 0 10px; font: 700 14px var(--sans); }
.skill-download:hover { background: var(--acc); color: var(--paper); }
.recipe-links { display: flex; gap: 16px; font: 12px var(--mono); }
.recipe-links a { text-decoration: underline; text-underline-offset: 3px; }
.f-docs .package-note { margin: 12px 0; font-size: 12px; opacity: .7; }
.f-docs details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.f-docs summary { cursor: pointer; font-size: 13px; }
.f-docs pre.source { max-height: 400px; overflow: auto; white-space: pre; }
.f-docs .tips-note { padding: 12px; border: 1px solid var(--line); font-size: 13px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
@media (max-width: 639px) {
  .f-bar { gap: 8px; padding: 0 12px; }
  .f-bar div { gap: 12px; }
  #f-tag { font-size: 9px; max-width: 30%; }
  .demo-tools { padding: 10px 14px; }
  .f-body { grid-template-rows: minmax(380px, 54vh) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { #focus { transition: none; } }
