/* Shared utility styles */
.muted { color: #666; }
.inline { display: inline; margin: 0; padding: 0; }
.notice { padding: 8px 12px; background: #f0fff4; border: 1px solid #b7f5c9; color: #214d2b; border-radius: 6px; }
.error { padding: 8px 12px; background: #fff5f5; border: 1px solid #ffb3b3; color: #7a1f1f; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tag-badge { display: inline-block; margin-left: 4px; padding: 2px 6px; background: #eef3ff; color: #1f3a93; border-radius: 999px; font-size: 0.8rem; }
.filter-select { padding: 6px 10px; border-radius: 6px; border: 1px solid #ccc; background: #fff; font-family: inherit; }

/* Buttons */
.btn { appearance: none; border: 1px solid #ccc; background: #f7f7f7; color: #111; padding: 6px 10px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit; font-size: 1rem; line-height: 1.2; font-weight: 400; }
.btn:hover, .btn:focus { background: #efefef; }
.btn-danger { border-color: #b00020; background: #fff; color: #b00020; }
.btn-danger:hover, .btn-danger:focus { background: #ffe6ea; }

/* Ensure anchor buttons look like buttons (no underline, same color/weight) */
a.btn, a.btn:link, a.btn:visited { text-decoration: none; color: #111; font-weight: 400; }
a.btn:hover, a.btn:focus { text-decoration: none; }

/* Modal */
.md-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; }
.md-dialog { background: #fff; color: #111; max-width: 560px; width: 92%; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.md-dialog-header { padding: 14px 16px; border-bottom: 1px solid #eee; }
.md-dialog-body { padding: 12px 16px; }
.md-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }


body.modal-open { overflow: hidden; }
.qr-modal-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.45); z-index: 1000; }
.qr-modal-overlay.is-open { display: flex; }
.qr-modal-overlay[hidden] { display: none !important; }
.qr-modal__panel { background: #fff; color: #111; width: 400px; max-width: 90vw; height: 360px; max-height: 90vh; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; margin: auto; }
.qr-modal__panel:focus { outline: 3px solid #264ae6; outline-offset: 4px; }
.qr-modal__header { display: flex; justify-content: center; }
.qr-modal__header h2 { margin: 0; font-size: 1.3rem; }
.qr-modal__body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 1; width: 100%; }
.qr-modal__preview { background: #f6f7fb; border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; max-width: 100%; }
.qr-modal__preview svg { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.qr-modal__hint { margin: 0; text-align: center; color: #555; font-size: 0.95rem; }
.qr-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: auto; }
.qr-modal__feedback { margin: 0; min-height: 1.2em; text-align: center; color: #2c7; font-size: 0.95rem; }
