/* Velia — pestaña «📜 Dictamen» (del expediente al dictamen) y auditor de textos de IA. Reutiliza las clases .jz-* del juicio */
.dc h3.dc-h3 { margin: 18px 0 6px; font-size: 15px; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 4px; }

/* Las cinco fases */
.dc-fases { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 10px 0 0 !important; padding: 0 !important; counter-reset: fase; }
.dc-fases li { counter-increment: fase; position: relative; padding: 8px 10px 8px 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); line-height: 1.3; }
.dc-fases li::before { content: counter(fase); position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--border); color: var(--text); }
.dc-fases li a { display: block; font-weight: 600; color: var(--text); text-decoration: none; }
.dc-fases li .small { color: var(--muted); }
.dc-fases li.dc-f-ok { border-color: var(--ok); } .dc-fases li.dc-f-ok::before { content: '✓'; background: var(--ok); color: #fff; }
.dc-fases li.dc-f-info { border-color: var(--accent); } .dc-fases li.dc-f-info::before { background: var(--accent); color: #fff; }
.dc-fases li.dc-f-warn { border-color: var(--warn); } .dc-fases li.dc-f-warn::before { background: var(--warn); color: #fff; }

/* Texto que el letrado puede corregir en pantalla */
.dc-ed { border-radius: 6px; padding: 1px 3px; margin: 0 -3px; outline: none; transition: background .15s; }
div.dc-ed { white-space: pre-wrap; line-height: 1.55; }
.dc-ed:hover { background: var(--surface-2); }
.dc-ed:focus { background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }

/* Marcas del método */
mark.dc-sv { background: var(--bad-soft); color: var(--bad); font-weight: 700; padding: 0 2px; border-radius: 3px; }
mark.dc-inf { background: var(--warn-soft); color: var(--warn); font-style: italic; padding: 0 2px; border-radius: 3px; }
mark.dc-falta { background: #fff3a0; color: #9a1c1c; font-weight: 700; padding: 0 2px; border-radius: 3px; }

.dc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.dc-avisos { list-style: none; padding: 0 !important; margin: 4px 0 12px !important; display: grid; gap: 4px; font-size: 13px; }
.dc-avisos li { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.dc-av-rojo { background: var(--bad-soft) !important; color: var(--bad); font-weight: 600; }
.dc-av-ambar { background: var(--warn-soft) !important; }

.dc-cuestion, .dc-estr { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: var(--surface); }
.dc-cuestion p, .dc-estr p { margin: 6px 0; line-height: 1.55; }
.dc-debil li { color: var(--bad); }
.dc-inv { margin-top: 12px; } .dc-inv > summary { cursor: pointer; font-weight: 600; }
.dc-crono td:first-child { white-space: nowrap; }
.dc-aud td:first-child { font-size: 16px; text-align: center; }

/* Carta (viabilidad y burofax) */
.dc-carta { font-family: Georgia, 'Times New Roman', serif; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; line-height: 1.6; max-width: 820px; }
.dc-carta h4 { font-family: inherit; }
.dc-burofax p { margin: 0 0 10px; text-align: justify; }
.dc-burofax .dc-dest { margin-left: 52%; text-align: left; }
.dc-burofax .dc-fechac { text-align: right; }
.dc-burofax .dc-tit { text-align: center; font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.dc-burofax .dc-sub { text-align: center; font-style: italic; font-size: 13px; color: var(--muted); }
.dc-burofax .dc-hc { font-weight: 700; margin-top: 14px; }
.dc-burofax .dc-li { margin-left: 22px; }
.dc-burofax .dc-firma { margin-top: 18px; }
.dc-partes input[type="text"], .dc-partes input:not([type]) { width: 100%; min-width: 120px; }
.dc-partes tr.dc-fuera td { opacity: .5; }

/* Auditor de textos de IA */
.dc-texto { max-height: 520px; overflow: auto; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-family: Georgia, serif; line-height: 1.6; }
.dc-texto p { margin: 0 0 8px; }
