.offcut-modal{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.7);display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:20px 10px}
.offcut-content{position:relative;width:min(900px,100%);background:#f9f9fa;color:#2e3034;border-radius:12px;padding:22px;box-shadow:0 15px 45px #1116}
.offcut-content h2{padding-right:110px;color:#e97826;margin:0 0 12px}.offcut-close{position:absolute;right:16px;top:16px}
.offcut-warning{border:2px solid #e97826;background:#fff3e8;padding:12px;margin:14px 0;color:#763900;font-weight:600}
#offcut-message{white-space:pre-wrap;min-height:22px;margin:8px 0;color:#924f21}
#offcut-list{display:grid;gap:15px;margin:15px 0}
.offcut-card,.offcut-book{border:1px solid #aaa;border-radius:8px;padding:15px;background:white;display:grid;gap:8px}
.offcut-card>div:first-child{display:flex;flex-wrap:wrap;justify-content:space-between}
.offcut-card code{overflow-wrap:anywhere}
.offcut-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}
.offcut-form label{display:flex;flex-direction:column;gap:4px;font-size:.9rem}
.offcut-form input,.offcut-form select,.offcut-book select{width:100%;border:1px solid #9da0a4;border-radius:5px;padding:8px;background:#fff;color:#202020}
.offcut-qr{width:132px;height:132px;overflow:hidden}
.offcut-book{background:#fff6eb;border-color:#e97826}
.offcut-book .btn{justify-self:start}.offcut-card .btn{justify-self:start}
