.home-library { margin-top:1.6rem; }
.public-library,.model-library-page > .model-spec { padding:clamp(1.3rem,3vw,2.35rem); background:var(--white); border:1px solid var(--line); border-radius:.75rem; }
.library-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.8rem 1.5rem; }
.library-heading > div { flex:1 1 23rem; min-width:0; }
.library-heading .button { flex:0 0 auto; }
.model-note,.model-unlinked p { color:var(--muted); max-width:70ch; margin-top:.55rem; }
.model-list { padding:0; margin:1.1rem 0 0; list-style:none; border-top:1px solid var(--line); }
.model-list li { border-bottom:1px solid var(--line); }
.model-list a { display:flex; align-items:center; justify-content:space-between; gap:.35rem 1rem; flex-wrap:wrap; padding:.8rem .2rem; }
.model-list strong { font-size:1rem; overflow-wrap:anywhere; }
.model-list span { color:var(--muted); font-size:.94rem; text-decoration:none; }
.model-list a:hover,.model-list a:focus-visible { background:var(--paper); }
.model-filter { margin:1.35rem 0 .7rem; width:min(100%,35rem); }
.model-reference { display:flex; align-items:baseline; gap:.3rem 1rem; flex-wrap:wrap; margin-top:1.35rem; padding:.85rem 0; border-top:1px solid var(--line); }
.model-reference a,.model-documents a,.model-name-link,.model-back-link { font-weight:600; }
.model-name-link { display:inline-block; font-size:1.18rem; }
.model-spec .facts { margin-top:.6rem; }
.model-documents { margin-top:1.2rem; }
.model-documents h3 { margin-bottom:.55rem; }
.model-back-link { display:inline-block; margin:.85rem 0 0; }
.model-unlinked .button { margin-top:.95rem; }
.model-spec h1,.model-name-link { overflow-wrap:anywhere; }
.reader-guide { padding-top:1.35rem; border-top:1px solid var(--line); }
.reader-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
.reader-items h3 { font-size:1.02rem; margin:0 0 .4rem; }
.reader-items p { color:var(--muted); margin:0 0 .35rem; }
.reader-items a { font-size:.9rem; }
.model-error .button { margin-top:.55rem; margin-right:1rem; }
@media(max-width:650px){
  .library-heading .button { justify-content:flex-start; }
  .model-list a { flex-direction:column; align-items:flex-start; }
  .reader-items { grid-template-columns:1fr; gap:1rem; }
  .public-library h1,.model-library-page .model-spec h1 { font-size:clamp(1.9rem,7vw,2.7rem); }
}

.sheet-body > .notice + section { margin-top:1.35rem; }
.production-section { margin-bottom:1.5rem; }
.production-facts { border-top:1px solid var(--line); }
.production-facts .unconfirmed { color:var(--muted); font-weight:400; }
.date-source { display:block; margin-top:.3rem; color:var(--muted); font-size:.84rem; font-weight:400; }
.production-editor > summary { color:var(--accent); font-weight:650; cursor:pointer; }
.production-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem 1.5rem; margin-inline:0; min-inline-size:0; padding:0; border:0; }
.production-inputs select { min-height:2.75rem; width:100%; padding:.5rem .65rem; border:1px solid var(--line); border-radius:.35rem; background:var(--white); color:var(--ink); font:inherit; }
.production-inputs select:disabled { background:var(--paper); }
@media(max-width:650px){ .production-inputs { grid-template-columns:1fr; } }
