.pack-library { padding: 0.55rem 0.65rem; border: 1px solid var(--panel-border); border-radius: 8px; background: #101c2e; flex-shrink: 0; }
.pack-library summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; font-weight: 700; min-height: 30px; }
.pack-library summary::before { content: "+"; color: var(--focus); }
.pack-library[open] summary::before { content: "−"; }
.pack-library summary .badge { margin-left: auto; }
.pack-library > :not(summary) { margin-top: 0.65rem; }
.pack-library .button-row button { min-height: 38px; padding: 0.4rem 0.55rem; font-size: 0.8rem; }
.pack-library-picker { display: flex; align-items: end; gap: 0.5rem; }
.pack-library-picker label { flex: 1; min-width: 0; }
.pack-library-picker button { flex-shrink: 0; }
.pack-library #packLibraryStatus { color: var(--choice-c); overflow-wrap: anywhere; }
.setup-panel:has(.pack-library[open]) { max-height: none; }
.setup-panel:has(.pack-library[open]) .question-editor-list { max-height: 320px; }
.host-presentation { display: grid; gap: 0.65rem; margin-top: 1rem; padding: 0.8rem; border: 1px solid #476080; border-radius: 8px; background: #101e32; }
.host-presentation .panel-heading { margin-bottom: 0; flex-wrap: wrap; }
.host-presentation input { max-width: 45rem; }
.host-presentation .button-row button[aria-pressed="true"] { border-color: var(--success); color: var(--success); background: #183e36; }
.display-break-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3vh; flex: 1; min-height: 0; text-align: center; }
.display-break-panel .eyebrow { color: var(--choice-b); font-size: clamp(1rem, 1.6vw, 2rem); }
body[data-mode="display"] .display-break-panel h2 { flex: 0 1 auto; min-height: 0; max-width: 90%; overflow: clip; font-family: "Fredoka", "Segoe UI", Arial, sans-serif; font-size: clamp(1.8rem, 4vw, 4.8rem); line-height: 1.3; overflow-wrap: anywhere; }
body[data-mode="display"] .display-break-panel > :not(h2) { flex-shrink: 0; }
.display-break-panel > p:not(.eyebrow) { color: #d3e2f1; font-size: clamp(1rem, 2vw, 2.5rem); }
.break-decoration { color: var(--choice-a); font-family: "Fredoka", "Segoe UI", Arial, sans-serif; font-size: clamp(2.4rem, 5vw, 6rem); letter-spacing: 0.15em; }
.pack-preview-dialog { width: min(1060px, 94vw); max-height: 92dvh; padding: 1.1rem; border: 1px solid #607b9c; border-radius: 12px; color: var(--text); background: #0b1728; overflow: auto; }
.pack-preview-dialog::backdrop { background: #020617cc; }
.pack-preview-dialog[open] { display: grid; gap: 1rem; }
.pack-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.pack-preview-toolbar h2 { margin-top: 0.25rem; overflow-wrap: anywhere; }
.pack-preview-toolbar > button { flex-shrink: 0; }
.pack-preview-stage { display: grid; gap: 1rem; padding: 1rem; border: 1px solid #405772; border-radius: 10px; background: #14243a; }
.pack-preview-stage h3 { font-family: "Fredoka", "Segoe UI", Arial, sans-serif; font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.2; overflow-wrap: anywhere; }
.pack-preview-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.pack-preview-choices li { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem; border: 1px solid #607b9c; border-radius: 9px; font-size: clamp(1rem, 1.8vw, 1.6rem); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .pack-library-picker { align-items: stretch; flex-direction: column; }
  .pack-library .button-row button { flex: 1 1 42%; }
  .setup-panel:has(.pack-library[open]) .question-editor-list { max-height: none; }
  .pack-preview-dialog { padding: 0.75rem; }
  .pack-preview-choices { grid-template-columns: minmax(0, 1fr); }
  .pack-preview-toolbar { flex-wrap: wrap; }
  .pack-preview-toolbar .helper-copy { order: 3; width: 100%; }
}
