.draw-station,.affix-inscription,.affix-shelf { min-width:0 }
.affix-shelf { width:100%;max-width:660px;margin:24px auto 0;text-align:left }
.affix-heading { display:flex;align-items:baseline;gap:10px;margin-bottom:9px }
.affix-heading h2 { margin:0;font-size:1rem;line-height:1.4;letter-spacing:.015em }
.affix-heading::after { content:"";order:1;flex:1;border-bottom:1px solid var(--line);align-self:center }
.affix-heading>span,.affix-count,.affix-empty { color:var(--muted);font-size:.8rem }
.affix-heading>span { order:2;font-variant-numeric:tabular-nums }
.affix-shelf ul { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:8px;margin:0;padding:0;list-style:none }
.affix-shelf ul:has(>:only-child) { grid-template-columns:minmax(0,350px);justify-content:center }
.affix-shelf:has(li:only-child) { max-width:350px }
.affix-ticket { display:grid;grid-template-columns:64px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#fffdf9 }
.affix-stub { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:7px 0;border-right:1px dashed #c9cfd3;background-color:#f1f4f3;background-image:linear-gradient(#b4bfca26 1px,transparent 1px),linear-gradient(90deg,#b4bfca26 1px,transparent 1px);background-size:9px 9px;background-position:center }
.affix-stub span { font-size:.75rem;font-weight:550;letter-spacing:.12em;color:#52616b }
.affix-art { display:block;flex:none;width:48px;height:48px;object-fit:contain }
.affix-inscription { padding:10px 12px 11px }
.affix-name { display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap }
.affix-name h3 { margin:0;font-size:1rem;font-weight:700;line-height:1.35 }
.affix-count { font-variant-numeric:tabular-nums;overflow-wrap:anywhere }
.affix-tiers { display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 }
.affix-tiers .grade { height:auto;min-height:18px;font-size:.75rem;line-height:1.3 }
.affix-inscription p { margin:0;line-height:1.5;font-size:.875rem;color:#414b58;overflow-wrap:anywhere }
.opening-spread .opening-affix { display:flex;align-items:center;gap:9px }
.opening-affix .affix-art { width:40px;height:40px;background:#f4f5ef;border:1px solid #cdd2d4;border-radius:5px }
@media(min-width:960px){
  .draw-layout:has(.affix-shelf) { display:grid;grid-template-columns:minmax(0,1fr) clamp(275px,27vw,335px);gap:clamp(18px,3vw,42px);align-items:start }
  .affix-shelf { margin:25px 0 0 }
  .affix-shelf ul { max-height:clamp(310px,59vh,630px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#adb8bf transparent }
  .draw-layout:has(.affix-shelf) .note i { width:28px }
}
@media(max-width:650px){
  .affix-shelf { max-width:350px;margin-top:20px }
}
