/* Importar e revisar: controles comuns, fila e comparação pareada. */
.acervo-dialog { width: min(1600px, 98vw); height: 96dvh; max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-primary); color: var(--text-main); overflow: hidden; }
.acervo-dialog[open] { display: flex; flex-direction: column; }
.acervo-dialog::backdrop { background: #020617d9; }
.acervo-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.acervo-heading h1 { font-size: 24px; font-weight: 600; }
.acervo-eyebrow { color: var(--accent-gold); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.acervo-dialog button, .acervo-file { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 7px; padding: 9px 12px; min-height: 40px; font: inherit; font-size: 13px; cursor: pointer; }
.acervo-dialog button:hover, .acervo-file:hover { border-color: var(--accent-gold); }
.acervo-dialog button:disabled { opacity: .45; cursor: default; }
.acervo-dialog :focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.acervo-dialog input:not([type=checkbox]):not([type=radio]), .acervo-dialog select, .acervo-dialog textarea { background: var(--bg-primary); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 6px; padding: 9px; font: inherit; font-size: 13px; min-width: 0; max-width: 100%; }
.acervo-dialog input[type=file] { display: block; width: 100%; margin-top: 5px; }
.acervo-dialog label { font-size: 13px; line-height: 1.5; }
.acervo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acervo-imports { padding: 12px 24px; background: var(--bg-secondary); }
.acervo-file { flex: 1 1 180px; }
.acervo-status { padding: 9px 24px; font-size: 12px; color: #cbd5e1; border-bottom: 1px solid var(--border-color); }
.acervo-status.error { color: #fca5a5; }
.acervo-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); flex: 1; min-height: 0; }
.acervo-sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border-color); padding: 14px; gap: 12px; }
.acervo-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acervo-filters > :first-child, .acervo-filters > :last-child { grid-column: 1 / -1; }
.acervo-list { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.acervo-list button { display: flex; flex-direction: column; gap: 5px; text-align: left; flex-shrink: 0; }
.acervo-list button[aria-pressed=true] { border-color: var(--accent-gold); background: #d4af3714; }
.acervo-list span { font-size: 12px; line-height: 1.4; }
.acervo-list small { font-size: 10px; color: var(--text-muted); }
.acervo-muted { color: var(--text-muted); font-size: 12px; }
.acervo-hash { overflow-wrap: anywhere; font-size: 11px; font-family: monospace; color: var(--text-muted); }
.acervo-detail { padding: 24px; overflow-y: auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.acervo-detail h2 { font-size: 21px; line-height: 1.4; }
.acervo-detail h3 { font-size: 15px; margin-bottom: 10px; }
.acervo-detail p { line-height: 1.6; }
.acervo-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.acervo-choices { margin-top: 12px; }
.acervo-back-to-list { display: none; }
.acervo-choices label, .acervo-detail > label { display: flex; flex-direction: column; gap: 5px; }
.acervo-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acervo-comparison section { min-width: 0; padding: 14px; background: var(--bg-secondary); border-radius: 8px; }
.acervo-comparison iframe { display: block; width: 100%; height: 460px; border: 0; background: white; border-radius: 5px; }
.acervo-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; max-height: 420px; overflow: auto; padding: 12px; }
.acervo-dialog details { border: 1px solid var(--border-color); border-radius: 7px; padding: 10px; }
.acervo-dialog summary { cursor: pointer; font-size: 13px; line-height: 1.5; }
.acervo-dialog mark { background: #725812; color: #fff2b7; }
.acervo-diff { font: 16px/1.65 Georgia, serif; margin-bottom: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.acervo-diff del { background: #7f1d1d; color: #fecaca; }
.acervo-diff ins { background: #14532d; color: #bbf7d0; text-decoration: none; }
.acervo-correction { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; }
.acervo-correction textarea { resize: vertical; }
.acervo-occurrence { margin: 8px 0; }
.acervo-occurrence button, .acervo-day-review button { margin: 6px 5px 0 0; }
.acervo-day-review textarea { width: 100%; }
.acervo-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.acervo-exports input { width: 120px; }
.acervo-dialog [hidden] { display:none !important; }
.acervo-imports { flex-shrink:0; }
.acervo-file { display:flex; align-items:center; flex-wrap:wrap; gap:8px; flex:0 1 330px; cursor:default; }
.acervo-file input { flex:1 1 210px; }
.acervo-dialog .acervo-more { margin-left:auto; position:relative; padding:0; border:0; }
.acervo-more > summary { display:flex; align-items:center; gap:6px; width:max-content; padding:7px 10px; min-height:34px; border:1px solid var(--border-color); border-radius:7px; font-size:13px; cursor:pointer; list-style:none; }
.acervo-more > summary::-webkit-details-marker { display:none; }
.acervo-more-content { position:absolute; right:0; top:100%; width:min(400px,85vw); max-height:65dvh; overflow:auto; background:var(--bg-secondary); padding:14px; border:1px solid var(--border-color); border-radius:8px; z-index:20; display:flex; flex-direction:column; gap:10px; box-shadow:0 8px 32px #0005; }
.acervo-more-content .acervo-file { flex:auto; }
.acervo-file-decision { padding:12px 20px; border-bottom:1px solid var(--border-color); background:var(--bg-secondary); flex-shrink:0; }
.acervo-file-decision button { margin:6px 8px 0 0; }
.acervo-rejected { margin:6px 0 0 18px; max-height:30vh; overflow:auto; font-size:13px; line-height:1.5; }
.acervo-workspace { grid-template-columns:280px minmax(0,1fr); }
.acervo-search { display:flex; align-items:center; gap:6px; }
.acervo-search input { flex:1; width:0; }
.acervo-filters { display:block; max-height:38dvh; overflow:auto; padding:8px; border:1px solid var(--border-color); border-radius:6px; }
.acervo-dialog fieldset { min-width:0; border:0; }
.acervo-dialog legend { font-size:12px; color:var(--text-muted); padding:5px 0; }
.acervo-filters fieldset { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:8px; }
.acervo-filters button,.acervo-sidebar .acervo-actions button { font-size:12px; padding:5px 8px; min-height:32px; }
.acervo-dialog button[aria-pressed=true] { border-color:var(--accent-gold); background:#d4af3714; }
.acervo-list { scrollbar-gutter:stable; }
.acervo-list small { font-size:11px; }
.acervo-detail { display:block; padding:18px; position:relative; scrollbar-gutter:stable; }
.acervo-detail > * + * { margin-top:14px; }
.acervo-contexts,.acervo-alternatives { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.acervo-contexts label,.acervo-alternatives label { display:flex; align-items:center; gap:8px; padding:8px; background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:6px; }
.acervo-dialog input:is([type=checkbox],[type=radio]) { accent-color:var(--accent-gold); flex-shrink:0; }
.acervo-contexts label:has(:checked),.acervo-alternatives label:has(:checked) { border-color:var(--accent-gold); }
.acervo-column-labels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); position:sticky; top:-18px; height:42px; z-index:6; background:var(--bg-primary); border-bottom:1px solid var(--border-color); }
.acervo-column-labels > div { font-size:13px; font-weight:600; padding:10px; }
.acervo-pair { border:1px solid var(--border-color); border-radius:6px; position:relative; }
.acervo-pair-heading { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); position:sticky; top:24px; z-index:4; background:var(--bg-secondary); border-bottom:1px solid var(--border-color); }
.acervo-section-title { min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:5px 8px; }
.acervo-section-title > button { flex:1; text-align:left; background:transparent; border:0; padding:6px 0; min-width:0; font-weight:600; }
.acervo-section-title + .acervo-section-title,.acervo-cell + .acervo-cell { border-left:1px solid var(--border-color); }
.acervo-import-check { display:flex; align-items:center; gap:6px; padding:6px 0; }
.acervo-pair-body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
.acervo-cell { min-width:0; padding:14px; overflow-wrap:anywhere; background:#1e293b45; }
.acervo-reading-text { white-space:pre-wrap; font:16px/1.7 Georgia,serif; overflow-wrap:anywhere; }
.acervo-reading-text ins { background:#14532d; color:#bbf7d0; text-decoration:none; }
.acervo-reading-text del { background:#7f1d1d; color:#fecaca; text-decoration:none; }
.acervo-side-label { display:none; }
.acervo-import-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; position:sticky; bottom:-18px; background:var(--bg-primary); padding:12px 0; border-top:1px solid var(--border-color); z-index:7; }
.acervo-import-actions [data-apply-import] { background:#d4af3720; border-color:var(--accent-gold); margin-left:auto; }
.acervo-notice { border-left:3px solid var(--accent-gold); padding-left:12px; }
.acervo-comparison { display:flex; flex-direction:column; }
.acervo-cell details { margin-top:12px; }
.acervo-dialog [hidden] { display:none !important; }
.acervo-more-content > button,.acervo-more-content > details > summary { display:flex; align-items:center; gap:9px; width:100%; text-align:left; background:transparent; border:0; border-radius:5px; padding:8px 10px; min-height:36px; font-size:13px; cursor:pointer; }
.acervo-more-content > button:hover,.acervo-more-content > details > summary:hover { background:var(--bg-primary); }
.acervo-dialog .acervo-more-content > details { border:0; padding:0; }
.acervo-dialog [data-menu-icon] svg { width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.acervo-compatibility { display:grid; gap:8px; padding:8px; font-size:12px; }
.acervo-search { gap:0; }
.acervo-search input { border-radius:6px 0 0 6px !important; min-height:38px; }
.acervo-search button { display:flex; align-items:center; justify-content:center; min-height:38px; border-radius:0 6px 6px 0; border-left:0; }
.acervo-filter-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.acervo-filter-bar button { display:flex; align-items:center; gap:6px; min-height:34px; padding:6px 9px; }
.acervo-chips { display:flex; flex-wrap:wrap; gap:7px; min-height:36px; align-items:center; flex-shrink:0; }
.acervo-chip-group { display:flex; flex-wrap:wrap; align-items:center; gap:4px; padding:5px; border:1px solid var(--border-color); border-radius:6px; max-width:100%; }
.acervo-chip-group > span { font-size:12px; color:var(--text-muted); padding:0 4px; }
.acervo-chip-group button { min-height:28px; padding:3px 7px; font-size:12px; background:var(--bg-secondary); overflow-wrap:anywhere; text-align:left; }
.acervo-filters label { display:flex; align-items:center; gap:6px; padding:5px; }
.acervo-filters { flex-shrink:0; }
/* Diferenças: cor + forma (sublinhado/tachado), altura constante mesmo quebrando linha. */
.acervo-reading-text :is(ins,del) { color:inherit; border-radius:3px; padding:.12em .1em; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.acervo-reading-text ins { background:rgba(46,160,67,.36); text-decoration:underline 2px rgba(110,215,130,.9); text-underline-offset:.22em; }
.acervo-reading-text del { background:rgba(248,81,73,.34); text-decoration:line-through 1.5px rgba(255,150,140,.95); }
.acervo-pair.is-preserved .acervo-reading-text :is(ins,del) { background:rgba(128,139,155,.14); text-decoration-color:rgba(160,170,185,.6); }
/* Numeração alterada vira pílula legível em vez de sobrescrito minúsculo. */
.acervo-aligned-cell .verse-num.is-changed { display:inline-block; vertical-align:.12em; min-width:1.6em; height:1.45em; line-height:1.3em; padding:0 .4em; margin-right:.1em; border:1.5px solid; border-radius:999px; text-align:center; font:600 .78rem/1.3em Inter,system-ui,sans-serif; }
.acervo-aligned-cell .verse-num.is-changed :is(ins,del) { background:transparent; padding:0; text-decoration:none; }
.acervo-aligned-cell[data-side=current] .verse-num.is-changed { color:#ffc9c3; border-color:#f87171; background:rgba(248,81,73,.3); }
.acervo-aligned-cell[data-side=incoming] .verse-num.is-changed { color:#c4f5cf; border-color:#4ade80; background:rgba(46,160,67,.32); }
.acervo-pair.is-preserved .verse-num.is-changed { color:var(--text-muted); border-color:#7c8796; background:rgba(128,139,155,.14); }
.conference-review-link { padding:6px 12px; }
.conference-review-link button { background:transparent; color:var(--text-muted); border:0; cursor:pointer; font:inherit; font-size:12px; }
.acervo-filter-box { border:1px solid var(--border-color); border-radius:8px; flex-shrink:0; overflow:hidden; }
.acervo-filter-box .acervo-filter-bar { display:grid; grid-template-columns:2fr 1fr; gap:0; border-bottom:1px solid var(--border-color); }
.acervo-filter-box .acervo-filter-bar button { border:0; border-radius:0; justify-content:center; min-width:0; }
.acervo-filter-box .acervo-filter-bar button + button { border-left:1px solid var(--border-color); }
.acervo-filter-box .acervo-filter-bar button:first-child { justify-content:flex-start; }
.acervo-filter-box .acervo-filter-bar button:first-child > span { margin-left:auto; }
.acervo-pills { padding:10px; display:flex; flex-direction:column; gap:8px; background:#17233a; }
.acervo-pills :is(#acervoQuickFilters,#acervoFilterChips) { display:flex; flex-wrap:wrap; gap:6px; }
.acervo-pills #acervoFilterChips:empty { display:none; }
.acervo-pills .acervo-chip-group { display:contents; }
.acervo-pills .acervo-chip-group > span { flex-basis:100%; font-size:11px; }
.acervo-dialog .acervo-pills button.acervo-pill { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; min-height:30px; font-size:12px; border:1px solid #59748e; background:#243b50; color:#d5e9f7; }
.acervo-dialog .acervo-pills button.acervo-pill[aria-pressed=false] { background:transparent; border-color:#405468; color:#acbfd0; }
.acervo-dialog .acervo-pills button.acervo-pill[aria-pressed=true] { background:#315c7d; border-color:#7fb4d8; color:#fff; }
.acervo-date-card { border:1px solid var(--border-color); border-radius:7px; background:var(--bg-secondary); flex-shrink:0; overflow:hidden; }
.acervo-date-card:has([aria-pressed=true]) { border-color:var(--accent-gold); }
.acervo-list .acervo-date-card > button { width:100%; border:0; border-radius:0; }
.acervo-list .acervo-date-card > .acervo-pending-link { display:block; color:#a8d6f5; background:transparent; text-align:left; text-decoration:underline; text-underline-offset:3px; padding:3px 12px 10px; min-height:32px; font-size:12px; }
.acervo-pending-summary { padding:12px; border:1px solid #80682c; border-radius:7px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.acervo-dialog .acervo-pending-summary button { background:transparent; border:0; color:#acd9f7; text-decoration:underline; text-align:left; min-height:30px; padding:4px 0; }
.acervo-context-notice { margin:14px 0; padding:10px 12px 10px 38px; position:relative; border:1px solid #a1801f; border-left:4px solid #eab308; border-radius:5px; background:rgba(234,179,8,.17); color:#fdf3cf; font:13px/1.6 Inter,system-ui,sans-serif; scroll-margin-top:100px; }
.acervo-context-notice > .acervo-icon { position:absolute; left:11px; top:11px; }
.acervo-context-notice > * + * { margin-top:8px; }
.acervo-context-notice:focus { outline:2px solid #8dc9f1; outline-offset:3px; }
.acervo-context-notice.is-reviewed { border-color:#65a48a; background:#65a48a08; }
.acervo-context-notice.is-error { border-color:#a8433d; border-left-color:#ef4444; background:rgba(239,68,68,.2); color:#ffe1de; }
.acervo-context-notice.is-info { border-color:#3d6595; border-left-color:#60a5fa; background:rgba(96,165,250,.14); color:#dbeafe; }
.acervo-context-notice .acervo-severity { font-weight:700; }
.acervo-context-notice.is-warning .acervo-icon { color:#facc15; }
.acervo-context-notice.is-error .acervo-icon { color:#f87171; }
.acervo-context-notice.is-info .acervo-icon { color:#93c5fd; }
.acervo-context-notice .acervo-muted { color:inherit; opacity:.8; }
.acervo-icon { display:inline-flex; flex-shrink:0; width:17px; height:17px; }
.acervo-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.acervo-dialog .acervo-pending-summary button { display:inline-flex; align-items:center; gap:7px; }
.acervo-pending-summary .is-error .acervo-icon,.acervo-pending-link.is-error .acervo-icon { color:#f87171; }
.acervo-pending-summary .is-warning .acervo-icon,.acervo-pending-link.is-warning .acervo-icon { color:#facc15; }
.acervo-list .acervo-date-card > .acervo-pending-link.is-error,.acervo-list .acervo-date-card > .acervo-pending-link.is-warning { display:flex; flex-direction:row; align-items:center; gap:6px; }
.acervo-list .acervo-pending-link .acervo-icon { width:14px; height:14px; }
/* Edição: ícone flutuante no canto da leitura importada. */
.acervo-aligned-reading { position:relative; }
.acervo-aligned-reading > .acervo-aligned-row:first-child > [data-side=incoming] { padding-right:52px; }
.acervo-dialog .acervo-edit-float { position:absolute; top:4px; right:8px; width:40px; height:40px; min-height:0; padding:0; display:flex; align-items:center; justify-content:center; border:1px solid transparent; border-radius:8px; background:transparent; color:#b8cee1; opacity:.75; cursor:pointer; }
.acervo-dialog .acervo-edit-float:is(:hover,:focus-visible) { opacity:1; background:var(--bg-secondary); border-color:#59748e; color:#e2f1fb; }
.acervo-edit-float .acervo-icon { width:18px; height:18px; }
.acervo-format-badge { font:500 11px/1 Inter,system-ui,sans-serif; color:var(--text-muted); border:1px solid var(--border-color); border-radius:999px; padding:4px 8px; white-space:nowrap; cursor:help; }
.acervo-reading-controls:empty { display:none; }
.acervo-context-notice blockquote { white-space:pre-wrap; border-left:2px solid var(--border-color); padding-left:10px; }
.acervo-notice-actions { display:flex; gap:8px; flex-wrap:wrap; }
.acervo-editable { position:relative; margin-bottom:1.3em; }
.acervo-editable > .acervo-edit-link { font:12px/1.4 Inter,system-ui,sans-serif; margin-left:8px; padding:3px 5px; min-height:26px; color:#aad3ed; border:0; background:transparent; text-decoration:underline; }
.acervo-inline-editor { white-space:normal; display:flex; flex-direction:column; gap:9px; padding:12px; margin-top:10px; border:1px solid #7fb4d8; border-radius:6px; font:13px/1.6 Inter,system-ui,sans-serif; }
.acervo-inline-editor textarea { width:100%; }
.acervo-source iframe { width:100%; height:320px; border:0; background:white; margin-top:10px; }
.acervo-source summary { font:13px/1.5 Inter,system-ui,sans-serif; }
.acervo-reading-controls { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid var(--border-color); }
.acervo-reading-controls > [data-edit-reading] { margin-left:auto; background:transparent; border:0; min-height:30px; color:#b8cee1; font-size:12px; padding:4px 6px; }
.acervo-reading-controls .acervo-context-notice { flex-basis:100%; margin:0; padding:7px 10px 7px 36px; font-size:12.5px; }
.acervo-reading-controls .acervo-context-notice > .acervo-icon { top:8px; left:11px; }
.acervo-layout-note { grid-column:1/-1; font:12px/1.5 Inter,system-ui,sans-serif; color:var(--text-muted); padding:6px 14px; }
.acervo-aligned-reading { grid-column:1/-1; min-width:0; }
.acervo-aligned-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.acervo-aligned-cell { min-width:0; padding:6px 14px; overflow-wrap:anywhere; white-space:normal; font:400 1rem/1.6 Inter,system-ui,sans-serif; }
.acervo-aligned-cell + .acervo-aligned-cell { border-left:1px solid var(--border-color); }
.acervo-aligned-cell[data-kind=reference] { font-size:.8125rem; color:var(--text-muted); }
.acervo-aligned-cell[data-kind=theme] { font-style:italic; }
.acervo-aligned-cell[data-kind=proclamation],.acervo-aligned-cell[data-kind=heading],.acervo-aligned-cell[data-kind=refrain] { font-weight:600; }
.acervo-aligned-cell[data-kind=rubric] { font-style:italic; color:var(--text-muted); }
.acervo-aligned-cell .verse-num { font-size:.68em; color:#96a3b4; font-weight:400; vertical-align:super; }
.acervo-reading-columns { padding:0; min-height:0; }
.acervo-reading-columns:empty { display:none; }
/* Editor no próprio texto: a coluna do arquivo fica editável, a base continua ao lado. */
.acervo-pair-body.acervo-reading-editor { box-shadow:inset 0 0 0 1px #7fb4d8; border-radius:0 0 6px 6px; }
.acervo-canonical-editor { display:flex; flex-direction:column; gap:8px; }
.acervo-editable-field { display:flex; flex-direction:column; }
.acervo-field-label { display:block; font:600 10.5px/1.4 Inter,system-ui,sans-serif; letter-spacing:.04em; text-transform:uppercase; color:#8fb3cf; margin-bottom:2px; }
.acervo-dialog .acervo-field-input { width:100%; min-height:32px; padding:4px 6px; border:1px solid transparent; border-radius:5px; background:rgba(127,180,216,.06); color:inherit; font:inherit; }
.acervo-dialog .acervo-field-input:hover { border-color:#3d5a73; }
.acervo-dialog .acervo-field-input:focus { outline:none; border-color:#7fb4d8; background:rgba(127,180,216,.12); }
.acervo-editable-field:has([data-reading-field=theme]) .acervo-field-input { font-style:italic; }
.acervo-editable-field:has([data-reading-field=proclamation]) .acervo-field-input { font-weight:600; }
/* Texto canônico na superfície inline compartilhada com o Texto do dia. */
.acervo-highlight-area { border:1px solid #3d5a73; border-radius:6px; background:rgba(127,180,216,.06); }
.acervo-highlight-area:focus-within { border-color:#7fb4d8; box-shadow:0 0 0 1px #7fb4d8; }
.acervo-inline-field { min-height:8em; padding:10px 12px; font:400 1rem/1.75 Inter,system-ui,sans-serif; white-space:pre-wrap; overflow-wrap:anywhere; outline:none; cursor:text; }
.acervo-inline-field .inline-verse { color:#9cc7e6; font-weight:600; }
.acervo-inline-field .inline-delimiter.inline-near-caret { font-size:.8em; color:#8fb3cf; opacity:1; }
.acervo-inline-field .inline-annotation { background:rgba(234,179,8,.14); border-radius:3px; }
.acervo-syntax-hint { font-size:11.5px; }
.acervo-fixed-tail { margin:0; font:600 .95rem/1.6 Inter,system-ui,sans-serif; color:var(--text-muted); }
.acervo-edit-base .acervo-reading-text { margin:0 0 .5em; font:400 1rem/1.6 Inter,system-ui,sans-serif; white-space:pre-wrap; }
.acervo-edit-base [data-kind=reference] { font-size:.8125rem; color:var(--text-muted); }
.acervo-edit-base [data-kind=theme] { font-style:italic; }
.acervo-edit-base :is([data-kind=proclamation],[data-kind=heading],[data-kind=refrain]) { font-weight:600; }
.acervo-edit-bar .acervo-editor-warning { flex-basis:100%; margin:0; color:#fde68a; }
.acervo-edit-bar { grid-column:1/-1; position:sticky; bottom:0; z-index:3; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; background:var(--bg-secondary); border-top:1px solid #7fb4d8; }
.acervo-edit-bar input { flex:1 1 260px; min-height:36px; }
.acervo-dialog .acervo-edit-bar button.is-primary { background:#1f4f73; border-color:#7fb4d8; color:#fff; }
.acervo-edit-bar .acervo-editor-error { flex-basis:100%; margin:0; }
.acervo-edit-bar :is(.acervo-editor-error,.acervo-editor-warning):empty { display:none; }
.acervo-editor-error { color:#f9b4ad; }
#acervoTechnicalContent { padding:10px; font-size:12px; }
#acervoTechnicalContent details { margin-top:8px; }
@media(max-width:768px) {
  .acervo-aligned-row { grid-template-columns:1fr; }
  .acervo-aligned-cell + .acervo-aligned-cell { border-left:0; }
  .acervo-aligned-cell[data-side=current]::before { content:'Base atual'; display:block; font:11px/1.6 Inter,system-ui,sans-serif; color:var(--text-muted); }
  .acervo-aligned-cell[data-side=incoming]::before { content:'Importado'; display:block; font:11px/1.6 Inter,system-ui,sans-serif; color:var(--text-muted); }
  .acervo-aligned-cell.is-empty { display:none; }
}
@media (max-width: 768px) {
  .acervo-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .acervo-heading { padding: 12px; }
  .acervo-heading h1 { font-size: 20px; }
  .acervo-imports { padding:8px 12px; }
  .acervo-imports > .acervo-muted { display:none; }
  .acervo-file { flex-basis: 160px; }
  .acervo-status { padding: 8px 12px; }
  .acervo-workspace { display: block; overflow-y: auto; }
  .acervo-sidebar { border-right: 0; border-bottom: 1px solid var(--border-color); }
  .acervo-list { max-height: 190px; }
  .acervo-detail { overflow: visible; padding: 14px; }
  .acervo-back-to-list { display: block; align-self: flex-start; }
  .acervo-comparison { grid-template-columns: 1fr; }
  .acervo-column-labels { display:none; }
  .acervo-pair-heading { grid-template-columns:1fr; top:0; }
  .acervo-pair-heading > .acervo-section-title:first-child { display:none; }
  .acervo-pair-body { grid-template-columns:1fr; }
  .acervo-cell + .acervo-cell { border-left:0; border-top:1px solid var(--border-color); }
  .acervo-side-label { display:block; font:600 12px/1.5 Inter,system-ui,sans-serif; color:var(--text-muted); margin-bottom:10px; }
  .acervo-import-actions { bottom:0; }
  .acervo-import-actions button { flex:1; min-width:0; font-size:12px; padding:8px; }
  .acervo-dialog input:not([type=checkbox]):not([type=radio]),.acervo-dialog textarea { font-size:16px; }
  .acervo-comparison iframe { height: 320px; }
  .acervo-exports { max-height: 130px; overflow-y: auto; padding: 8px 12px; }
  .acervo-dialog button { min-height: 44px; }
  .acervo-contexts label,.acervo-alternatives label,.acervo-import-check { min-height:44px; }
}

/* Legado: leitura integral, sem sugerir alinhamento ou diferenças estruturais. */
.acervo-unstructured-column { min-width:0; }
.acervo-unstructured-column > .acervo-aligned-cell { border:0; }
.acervo-unstructured-column + .acervo-unstructured-column { border-left:1px solid var(--border-color); }
.acervo-aligned-cell.is-unstructured { white-space:pre-line; }
@media(max-width:768px) { .acervo-unstructured-column + .acervo-unstructured-column { border-left:0; border-top:1px solid var(--border-color); } }
@media (forced-colors:active) { .acervo-context-notice,.acervo-aligned-cell .verse-num.is-changed,.acervo-format-badge { border-color:CanvasText; } .acervo-reading-text :is(ins,del) { background:Mark; color:MarkText; } }
.acervo-mass-hint { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:6px 0 2px; font-size:13px; color:#fde68a; }
/* Base publicada: sem comparação, a leitura ocupa a largura e as correções aparecem contra o texto publicado. */
.acervo-detail.is-base-mode :is(.acervo-pair-heading,.acervo-pair-body,.acervo-aligned-row) { grid-template-columns:minmax(0,1fr); }
.acervo-detail.is-base-mode :is(.acervo-pair-heading > :first-child,.acervo-cell-current,[data-side=current],.acervo-side-label,.acervo-format-badge) { display:none; }
.acervo-detail.is-base-mode .acervo-pair-heading { top:0; }
.acervo-start { margin-top:16px; }
.acervo-dialog .acervo-edit-inline { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; min-height:0; padding:0; margin-top:6px; border:1px solid transparent; background:transparent; color:#b8cee1; }
.acervo-dialog .acervo-edit-inline:is(:hover,:focus-visible) { background:var(--bg-secondary); border-color:#59748e; color:#e2f1fb; }
.acervo-edit-inline .acervo-icon { width:18px; height:18px; }
.acervo-celebration-editor { display:grid; gap:8px; margin-top:8px; }
.acervo-celebration-editor label { display:grid; gap:4px; font-size:12px; color:var(--text-muted); }
/* Cabeçalho fixo da data: título, barra de pontos e rótulos das colunas (runtime 3.0.74). */
.acervo-detail-header { position:sticky; top:-18px; z-index:7; margin:-18px -18px 0; padding:18px 18px 8px; background:var(--bg-primary); display:grid; gap:10px; }
.acervo-detail-header .acervo-column-labels { position:static; margin:0 -18px -8px; }
.acervo-pair-heading,.acervo-detail.is-base-mode .acervo-pair-heading { top:calc(var(--acervo-header,60px) - 18px); }
.acervo-pending-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; padding:8px 10px; border:1px solid #80682c; border-radius:7px; }
.acervo-pending-counts { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:13px; }
.acervo-pending-count { display:inline-flex; align-items:center; gap:5px; font-size:12px; }
.acervo-pending-count .acervo-icon { width:14px; height:14px; }
.acervo-pending-count.is-error .acervo-icon { color:#f87171; }
.acervo-pending-count.is-warning .acervo-icon { color:#facc15; }
.acervo-pending-count.is-info .acervo-icon { color:#60a5fa; }
.acervo-resolved { color:#86efac; font-size:12px; }
.acervo-issue-badge { color:#fdba74; font-size:12px; }
.acervo-context-notice > p { margin:0; }
.acervo-notice-actions { display:flex; flex-wrap:wrap; gap:6px; }
.acervo-notice-actions .acervo-accept { margin-left:0; }
.acervo-summary-compare { padding:6px 10px; border-radius:4px; background:rgba(0,0,0,.18); font-size:13px; }
.acervo-summary-compare p { margin:2px 0; }
/* "Está certa · Corrigir" na linha da leitura, no tamanho do texto do quadro. */
.acervo-inline-actions { display:inline-flex; flex-wrap:wrap; gap:6px; margin-left:6px; vertical-align:middle; }
.acervo-dialog .acervo-inline-actions button { min-height:28px; padding:2px 10px; font-size:12px; margin-left:0; }
.acervo-summary-label { font-weight:600; }
.acervo-summary-compare mark { background:rgba(250,204,21,.35); color:inherit; border-radius:2px; padding:0 1px; }
.acervo-source-link { color:#8dc9f1; font-size:12px; text-decoration:none; white-space:nowrap; }
.acervo-source-link:hover { text-decoration:underline; }
.acervo-source-link small { color:var(--text-muted); }
.acervo-notice-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border:1px solid currentColor; border-radius:999px; background:transparent; font:600 12px/1.5 Inter,system-ui,sans-serif; cursor:pointer; }
.acervo-notice-badge .acervo-icon { width:14px; height:14px; }
.acervo-notice-badge.is-warning { color:#facc15; }
.acervo-notice-badge.is-error { color:#f87171; }
.acervo-notice-badge.is-info { color:#60a5fa; }
.acervo-notice-badge[aria-expanded="false"] { opacity:.8; }
.acervo-pair-notices { padding:0 12px; border-bottom:1px solid var(--border-color); }
.acervo-day-notices { margin:12px 0; padding:4px 14px 8px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-secondary); }
.acervo-day-notices h3 { margin:8px 0 0; font-size:14px; }
.acervo-notice-where { margin:12px 0 -8px; font-size:12px; color:var(--text-muted); }
/* "Dados técnicos" no fim da data: link discreto, não um botão do menu. */
.acervo-technical-link { margin:24px 0 8px; }
.acervo-technical-link > summary { display:inline-block; cursor:pointer; color:var(--text-muted); font-size:12px; text-decoration:underline; text-underline-offset:2px; }
.acervo-technical-link[open] > summary { margin-bottom:8px; }
/* Observação da CNBB: discreta, sem cor de alerta e sem botões. */
.acervo-day-observations { margin:12px 0; padding:4px 14px 8px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-secondary); }
.acervo-day-observations h3 { margin:8px 0 0; font-size:14px; }
.acervo-pair-observations { padding:4px 12px; border-bottom:1px solid var(--border-color); }
.acervo-observation { margin:10px 0; padding:8px 12px 8px 36px; position:relative; border-left:3px solid #64748b; border-radius:4px; background:rgba(100,116,139,.12); color:var(--text-main); font:13px/1.6 Inter,system-ui,sans-serif; }
.acervo-observation > .acervo-icon { position:absolute; left:10px; top:9px; color:#94a3b8; }
.acervo-observation p { margin:0; }
.acervo-notice-source { margin:-6px 0 12px; padding:6px 10px; border-left:3px solid var(--border-color); color:var(--text-muted); font:13px/1.55 Georgia,serif; white-space:pre-wrap; }
.acervo-day-note { margin-top:8px; display:grid; gap:6px; }
.acervo-day-note textarea { width:100%; box-sizing:border-box; font:13px/1.5 Inter,system-ui,sans-serif; }
.acervo-context-notice .acervo-accept { margin-left:6px; padding:2px 10px; border:1px solid currentColor; border-radius:999px; background:transparent; color:inherit; font:600 12px/1.5 Inter,system-ui,sans-serif; cursor:pointer; vertical-align:baseline; }
.acervo-context-notice .acervo-accept:hover { background:rgba(255,255,255,.1); }
.acervo-pending-controls { display:flex; align-items:center; gap:6px; }
.acervo-pending-position { font-size:12px; color:var(--text-muted); min-width:52px; text-align:right; }
.acervo-dialog .acervo-pending-controls button { min-height:34px; padding:6px 10px; font-size:12px; }
@media (max-width:768px) {
  .acervo-detail-header { position:static; margin:0; padding:0; }
  .acervo-pair-heading,.acervo-detail.is-base-mode .acervo-pair-heading { top:0; }
}
/* Importação simplificada (runtime 3.0.75): selo de seção igual, barra de incorporar e recusados recolhidos. */
.acervo-same-badge { display:inline-flex; align-items:center; margin-left:auto; padding:1px 8px; border:1px solid #3f7b5c; border-radius:999px; font-size:11px; color:#9be3b7; white-space:nowrap; }
.acervo-import-actions [data-select-all-fields] { margin-left:auto; }
.acervo-import-actions [data-apply-import] { margin-left:0; }
.acervo-rejected-box summary { display:flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; }
.acervo-rejected-box summary .acervo-icon { width:16px; height:16px; color:#facc15; }
.acervo-rejected-box[open] summary { margin-bottom:6px; }
