.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projection-setup { position: relative; min-width: 0; }
.projection-setup[open] { z-index: 9; }
.projection-setup-summary { min-height: 38px; cursor: pointer; max-width: min(185px,54vw); font-size: 13px; }
.projection-setup-summary::-webkit-details-marker { display: none; }
.projection-setup-summary::after { content: ''; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.12rem) rotate(45deg); flex: none; }
.projection-setup[open] .projection-setup-summary::after { transform: translateY(.12rem) rotate(225deg); }
.projection-setup-label { overflow: hidden; text-overflow: ellipsis; }
.projection-setup-panel { position: absolute; z-index: 1; top: calc(100% + 7px); right: 0; width: min(325px,calc(100vw - 28px)); background: var(--cm-white); color: var(--cm-ink); border: 1px solid var(--cm-border); border-radius: 12px; box-shadow: 0 10px 32px #001f3229; padding: 13px; }
.projection-setup-panel p { margin: .5rem 0 0; font-size: 12px; line-height: 1.4; }
.projection-setup-panel .live-display-picker { --live-line: var(--cm-border); --live-ink: var(--cm-ink); --live-soft: var(--cm-soft); --live-muted: var(--cm-muted); }
.projection-setup-panel .live-field { flex: 1 1 100%; }
.projection-setup-panel .live-monitor-detect { color: var(--cm-ink); background: var(--cm-white); border-color: var(--cm-border); }
.projection-setup-panel .projection-setup-fullscreen { padding-top: .55rem; border-top: 1px solid var(--cm-border); }
.overview-projection { display: flex; align-items: end; }
.editor-top-actions .projection-setup-summary { min-height: 36px; padding: .5rem .65rem; }
.editor-top-actions .projection-setup-panel { z-index: 5; }
.dashboard-split.no-shortcuts { grid-template-columns: minmax(0,1fr); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; }
.hero-actions .hero-link { margin: 0; }
.hero-present,.hero-present:hover { min-height: 34px; background: #fff; color: #003b4d; padding: 6px 12px; }
.hero-present:hover { background: #eaf3f6; }
.deck-present { min-height: 34px; gap: 6px; padding: 6px 9px; color: var(--cm-ink); font-size: 12px; }
.deck-row-actions { gap: 4px; }
.deck-live-badge { display: inline-flex; align-items: center; gap: 5px; margin: 3px 0 0 40px; padding: 1px 7px; border: 1px solid currentColor; border-radius: 20px; color: #176448; font-size: 11px; font-weight: 800; white-space: nowrap; }
.deck-live-badge i { width: 6px; height: 6px; border-radius: 100%; background: currentColor; }
[data-color-mode="dark"] .deck-live-badge { color: #8bd5b2; }
.action-dialog { width: min(470px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; color: var(--cm-ink); background: var(--cm-white); }
.action-dialog::backdrop { background: #0c202b94; }
.action-dialog form { padding: 22px; }
.action-dialog-message { overflow-wrap: anywhere; }
.action-dialog-actions { margin-top: 5px; }
.action-dialog .dialog-danger { background: #a5322b; color: #fff; }
.action-dialog .dialog-danger:hover { background: #872921; }
.dialog-field-error { display: block; color: #a5322b; font-size: 12px; }
.dialog-field-error[hidden] { display: none; }
[data-color-mode="dark"] .dialog-field-error { color: #ffaba5; }
.toast button.toast-action { min-height: 34px; padding: 5px 8px; border: 1px solid currentColor; border-radius: 7px; font-size: 13px; line-height: 1.2; font-weight: 780; }
.toast button.toast-action:hover { text-decoration: underline; }
.toast-actionable { pointer-events: auto; }
.read-only-note { display: grid; gap: 2px; }
.bible-default-card select:disabled,.layout-default-field select:disabled {
  background: var(--cm-bg); border-color: var(--cm-border); color: var(--cm-muted); border-style: dashed; cursor: not-allowed; opacity: 1;
}
.identity-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin: 9px 0 0; }
.identity-summary > div { padding: 10px 0; border-bottom: 1px solid var(--cm-border); min-width: 0; }
.identity-summary dt { color: var(--cm-muted); font-size: 12px; font-weight: 720; }
.identity-summary dd { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--cm-ink); overflow-wrap: anywhere; }
.identity-swatch { display: inline-block; flex: 0 0 16px; height: 16px; border: 1px solid var(--cm-border); border-radius: 4px; }
.identity-logo-value { display: flex; align-items: center; gap: 8px; }
@media(max-width:515px){
  .overview-projection .projection-setup-panel,.editor-top-actions .projection-setup-panel { right: auto; left: 0; }
  .editor-top-actions .projection-setup { position: static; }
  .editor-top-actions { position: relative; }
  .deck-card .table-scroller { overflow: visible; }
  .deck-card :is(table,tbody) { display: block; min-width: 0; }
  .deck-card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .deck-card tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 7px 12px; padding: 11px 13px; border-top: 1px solid var(--cm-border); }
  .deck-card tbody td { display: block; padding: 0; border: 0; }
  .deck-card tbody .update-cell,.deck-card tbody .deck-actions-cell:has(.deck-row-actions:empty) { display: none; }
  .deck-card tbody :is(.deck-actions-cell,.no-deck-results td) { grid-column: 1 / -1; }
  .deck-card tbody .deck-name strong { overflow-wrap: break-word; }
  .deck-card .deck-row-actions { justify-content: flex-end; }
  .deck-present { min-height: 36px; padding-inline: 5px; font-size: 11px; }
  .deck-present svg { width: 14px; }
  .deck-row-actions { gap: 2px; }
  .deck-row-actions .icon-btn { min-height: 36px; width: 30px; }
  .hero-actions { gap: 8px; }
  .identity-summary > div:first-child { grid-column: 1 / -1; }
  .breadcrumb:has(+.top-account .profile-link[aria-current=page])>a { display: none; }
}

.qr-settings-card { margin-bottom: 14px; }

.powerpoint-insert.action-dialog { width: min(680px,calc(100% - 28px)); }
.powerpoint-insert [hidden] { display: none; }
.powerpoint-insert .powerpoint-upload:not([hidden]) { display: grid; gap: 12px; }
.powerpoint-insert input[type="file"] { max-width: 100%; }
.powerpoint-insert .powerpoint-anchor { overflow-wrap: anywhere; }
.powerpoint-insert :is(.powerpoint-hint,.powerpoint-mobile,.powerpoint-warnings,.powerpoint-status) {
  color: var(--cm-muted); font-size: 13px;
}
.powerpoint-insert .powerpoint-mobile .choice { color: var(--cm-ink); }
.powerpoint-insert .powerpoint-mobile p { margin-top: 4px; }
.powerpoint-insert .powerpoint-review-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
}
.powerpoint-insert :is(.powerpoint-selection,.powerpoint-preview-column) { min-width: 0; }
.powerpoint-insert .powerpoint-slides {
  display: grid; max-height: min(210px,30dvh); overflow: auto; overscroll-behavior: contain; padding: 3px 4px;
}
.powerpoint-insert .powerpoint-choice { padding: 5px 0; overflow-wrap: anywhere; }
.powerpoint-insert .powerpoint-all { border-bottom: 1px solid var(--cm-border); padding-bottom: 7px; }
.powerpoint-insert .powerpoint-preview { display: grid; place-items: center; margin-top: 8px; border-radius: 8px; overflow: hidden; }
.powerpoint-insert .powerpoint-preview .slide-stage { max-width: min(100%,calc(200px * var(--powerpoint-preview-ratio,1.78))); }
.powerpoint-insert .powerpoint-mobile { margin-top: 12px; }
.powerpoint-insert .powerpoint-warnings { margin-top: 7px; }
.powerpoint-insert .powerpoint-warnings summary { cursor: pointer; }
@media(max-width:540px) {
  .powerpoint-insert .powerpoint-review-grid { grid-template-columns: minmax(0,1fr); }
  .powerpoint-insert .powerpoint-slides { max-height: 132px; }
  .powerpoint-insert .powerpoint-preview .slide-stage { max-width: min(100%,calc(125px * var(--powerpoint-preview-ratio,1.78))); }
}

.pdf-import .pdf-page-tile {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  border: 1px solid transparent; border-radius: 6px; padding: 4px;
  background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.pdf-import .pdf-page-tile[aria-pressed="true"] { border-color: var(--brand); }
.pdf-import .pdf-page-tile .slide-stage { flex: 0 0 62px; }
