/* Compact top-centre floating action, visible only inside a checklist. */
.shift-float[hidden],.shift-modal[hidden],.shift-modal-backdrop[hidden]{display:none!important}
.shift-float-button{position:fixed;top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:40;background:var(--gold);color:#292106;border:0;border-radius:6px;box-shadow:0 2px 8px #0003;padding:7px 13px;display:block;font:inherit;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;max-width:none}

.shift-float-button:focus-visible,.shift-modal button:focus-visible{outline:3px solid var(--text);outline-offset:3px}
.shift-dialog-open{overflow:hidden}
.shift-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:50}
.shift-modal{position:fixed;inset:5vh max(10px,calc((100vw - 740px)/2));max-height:90dvh;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 40px #0006;z-index:51;overflow-y:auto;overscroll-behavior:contain;padding:16px}
.shift-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:start;position:sticky;top:-16px;background:var(--surface);padding:4px 0 10px;border-bottom:1px solid var(--line);z-index:1}
.shift-modal-head h2{margin:0}
.shift-modal-head p{margin:4px 0 0}
.shift-modal-head button{flex-shrink:0}
.shift-modal-list{display:grid;gap:12px;margin-top:12px}
.shift-modal-card{border:1px solid var(--line);border-radius:9px;padding:12px}
.shift-modal-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}
.shift-modal-title span{font-size:12px;color:var(--muted)}
.shift-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shift-modal-field span{display:block;font-size:12px;color:var(--muted)}
.shift-modal-field strong{overflow-wrap:anywhere}
.shift-modal-label{display:block;margin-top:12px}
.shift-modal-instructions{margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border-radius:7px;padding:10px}
@media(max-width:520px){.shift-float-button{top:max(8px,env(safe-area-inset-top));padding:7px 12px;font-size:12px}.shift-modal{inset:3vh 8px;max-height:94dvh;padding:12px}.shift-modal-grid{gap:8px}.shift-modal-head{top:-12px}}
