.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, .song-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; }

/* Audience links are independent of the chosen projector. */
.qr-choice { display: grid; gap: 5px; min-width: min(100%, 15rem); }
.editor-sharing-details .qr-choice { margin-inline-start: .4rem; }
.editor-sharing-details .qr-choice select { min-height: 30px; padding-block: 4px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-channel-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.qr-channel-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
.qr-channel-list strong { display: flex; align-items: center; gap: 8px; }
.qr-preview-code { display: block; margin-inline: auto; max-width: 100%; height: auto; background: white; }
.qr-preview [role="status"]:empty { display: none; }

.workspace-plan:not([hidden]) {
  display: inline-flex; align-items: center; flex: none; min-height: 24px; padding: 2px 8px;
  border: 1px solid var(--cm-border); border-radius: 999px; background: var(--cm-soft);
  color: var(--cm-muted); font-size: 11px; font-weight: 800; line-height: 1.2;
}
.workspace-plan[data-plan="pro"] {
  color: var(--ui-link); background: var(--ui-hover);
  border-color: color-mix(in srgb,var(--ui-link) 28%,var(--cm-border));
}
.workspace-sync-status:not([hidden]) {
  display: flex; align-items: center; gap: 6px; padding-inline: 5px; min-height: 22px;
  color: #656c73; font-size: 11px; font-weight: 750;
}
[data-color-mode="dark"] .workspace-sync-status { color: var(--cm-muted); }
.workspace-sync-status svg { width: 15px; height: 15px; }
.workspace-sync-status[data-state="synced"] { color: var(--ui-success,#176448); }
.workspace-sync-status:is([data-state="conflict"],[data-state="error"]) { color: var(--ui-warning,#8b4b20); }
@media (prefers-reduced-motion: no-preference) {
  .workspace-sync-status[data-state="syncing"] svg { animation: workspace-sync-spin 1.2s linear infinite; }
}
@keyframes workspace-sync-spin { to { transform: rotate(360deg); } }
@media (min-width: 761px) {
  .sidebar-collapsed .workspace-sync-status { justify-content: center; padding-inline: 0; }
  .sidebar-collapsed .workspace-sync-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

.projection-preflight{width:min(48rem,calc(100% - 2rem));max-height:90dvh;overflow:auto;border:1px solid var(--line,#cbd5da);border-radius:1rem;background:var(--surface,#fff);color:var(--text,#142d37);padding:clamp(1rem,3vw,1.75rem)}
.projection-preflight::backdrop{background:#0a172cc9}
.projection-preflight h2{margin-top:0}
.preflight-stage{display:grid;place-items:center;max-width:33rem;margin:1rem auto;background:#0a1820;color:white;min-height:4rem}
.preflight-stage>:first-child{width:100%}
.worship-recipes{max-width:58rem}
.worship-recipes .form-grid{display:grid;gap:1rem}
.recipe-slots{display:grid;gap:.75rem;padding:0;list-style:none}
.worship-recipes textarea{width:100%;resize:vertical}
.worship-recipes .review-list li{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;align-items:center}

.encounter-form,.encounter-list,.encounter-field,.encounter-audience{display:grid;gap:.85rem}
.encounter-dialog .encounter-field input:not([type=checkbox]),.encounter-dialog .encounter-field select{width:100%}
.encounter-form,.encounter-list{margin:1rem 0}
.encounter-phases{display:flex;flex-wrap:wrap;gap:1rem;border:1px solid var(--line,#d2dce2);border-radius:.7rem}
.encounter-phases .encounter-field{display:flex;align-items:center;gap:.4rem}
.encounter-rich-input{min-height:8rem;border:1px solid var(--line,#d2dce2);border-radius:.7rem;overflow:hidden}
.encounter-rich-input .ProseMirror{min-height:8rem;padding:.65rem .9rem}
.encounter-resource-card,.encounter-resource-group{border:1px solid var(--line,#d2dce2);border-radius:.8rem;padding:1rem;background:var(--surface,#fff)}
.encounter-resource-card h3,.encounter-resource-group h2{margin:.2rem 0 .4rem}
.encounter-resource-card .editor-rich-tools{gap:.4rem}
.encounter-resource-card img,.encounter-resource-card video{display:block;width:auto;max-width:100%;max-height:68dvh;margin:.75rem 0;border-radius:.5rem}
.encounter-audience{width:min(48rem,100%);margin:1.25rem auto 0}
.encounter-audience[hidden]{display:none}
.encounter-bucket{display:grid;gap:.55rem;margin-top:.75rem}
.encounter-state{font-weight:600}
.encounter-public{width:min(48rem,calc(100% - 2rem));padding:1.2rem;text-align:left}
.encounter-bucket .encounter-resource-card{background:var(--surface-soft,#f7fafc)}
