/* Pack editor dialog (glitch-packs-ui.js). */
.packs-modal .modal-content { color: #1b2a1b; }
.packs-modal h2 { margin-top: 0; }
.packs-modal button, .packs-modal select, .packs-modal input[type="text"] { font: inherit; min-height: 44px; }
.packs-btn { background: #2a2a2a; color: #fff; border: 2px solid #2a2a2a; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.packs-btn:hover { background: #3f3f3f; }
.packs-primary { background: #14532d; border-color: #14532d; }
.packs-danger { background: #8a1c1c; border-color: #8a1c1c; }
.packs-modal :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.packs-form > .packs-btn, .packs-form > .packs-actions { margin-top: 8px; }
.packs-list { list-style: none; margin: 0 0 16px; padding: 0; }
.packs-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #9db39d; }
.packs-info { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.packs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.packs-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; min-width: 0; }
.packs-field input, .packs-field select { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #5c6f5c; border-radius: 6px; background: #fff; color: #1b2a1b; }
.packs-row { border: 1px solid #9db39d; border-radius: 8px; margin: 0 0 12px; padding: 8px 12px 12px; min-width: 0; }
.packs-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.packs-errors { color: #8a1c1c; font-weight: bold; padding-left: 20px; }
.packs-errors:empty { display: none; }
.packs-status { min-height: 1.2em; margin: 0 0 8px; }
.packs-modal #packsClose { margin-top: 16px; width: 100%; }
