/* ==============================================================================
   SIDCORNET — PWA de reuniones (diseño tipo grabadora/asistente)
   Reglas de marca (PROJECT_RULES.md): principal #2563EB · acento #F4B400 · fondo #FFFFFF · texto #000000
   Tipografía: Nexa Heavy no disponible (sin licencia) -> pila de sistema con pesos altos en títulos.
   ============================================================================== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #EFF6FF;
    --accent: #F4B400;
    --accent-hover: #D99B00;
    --accent-text: #000000;
    --accent-icon: #DC2626;
    --rail-text: #BFDBFE;
    --progress-bg: #DBEAFE;
    --chip-text: #1E40AF;
    --ring: rgba(37, 99, 235, .45);
    --ring-soft: rgba(37, 99, 235, .18);
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-hover: #F1F5F9;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --text: #000000;
    --text-2: #4B5563;
    --text-3: #6B7280;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --success: #16A34A;
    --success-soft: #DCFCE7;
    --warn-soft: #FEF3C7;
    --warn-text: #92400E;
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --rail-w: 64px;
    --list-w: 340px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--bg); font-weight: 600;
    transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 800; }
.btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: #FECACA; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 36px; height: 36px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input {
    height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--bg); width: 100%;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring-soft); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 20px; }
.chip.done { background: var(--success-soft); color: #166534; }
.chip.processing { background: var(--warn-soft); color: var(--warn-text); }
.chip.uploaded { background: var(--primary-soft); color: var(--chip-text); }
.chip.error { background: var(--danger-soft); color: #991B1B; }
.chip.neutral { background: var(--bg-hover); color: var(--text-2); }

.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login-screen { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-soft); }
.login-card { width: 100%; max-width: 400px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; letter-spacing: -.02em; }
.brand-name { font-size: 22px; font-weight: 900; color: var(--primary); letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--text-3); line-height: 1.2; }
.brand-hero { background: var(--primary); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-hero .brand-logo { display: block; width: 100%; max-width: 280px; height: auto; }
.brand-hero .brand-sub { color: var(--rail-text); text-align: center; }
.brand-mark.has-img { background: transparent; padding: 0; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-title { font-size: 20px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---------- Shell ---------- */
.app { height: 100%; display: grid; grid-template-columns: var(--rail-w) var(--list-w) minmax(0, 1fr); }
.rail { background: var(--primary); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 8px; }
.rail .brand-mark { background: #fff; color: var(--primary); margin-bottom: 14px; }
.rail .brand-mark.has-img { background: transparent; }
.rail-btn { width: 44px; height: 44px; border: none; border-radius: 12px; background: transparent; color: var(--rail-text); display: flex; align-items: center; justify-content: center; }
.rail-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.rail-btn.active { background: rgba(255, 255, 255, .22); color: #fff; }
.rail .spacer { flex: 1; }

.list-pane { background: var(--bg-soft); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.list-head { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.list-title-row { display: flex; align-items: center; justify-content: space-between; }
.list-title-row h1 { font-size: 20px; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 11px; color: var(--text-3); width: 18px; height: 18px; }
.search .input { padding-left: 36px; }
.filters { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; }
.filter { border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.list-actions { display: grid; grid-template-columns: 1.15fr 1fr 44px; gap: 8px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .search { flex: 1; min-width: 0; }
.btn.icon-only { width: 44px; padding: 0 !important; justify-content: center; flex: none; }
.search-row .btn.icon-only { width: 40px; }
.btn.icon-only.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.opts-panel { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.list-actions .btn { padding: 0 10px; white-space: nowrap; font-size: 14px; }
.list-actions .span2 { grid-column: 1 / -1; }
.btn.accent svg.ic.fill { color: var(--accent-icon); }
.list-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.group-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 10px 4px 0; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-align: left; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.card:hover { border-color: var(--border-strong); }
.card.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.card-title { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; flex-wrap: wrap; }
.card-meta .ic { width: 14px; height: 14px; }
.card-snippet { color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upload-item { border-style: dashed; border-color: var(--primary); background: var(--primary-soft); }
.progress { height: 6px; background: var(--progress-bg); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); width: 0; transition: width .2s; }
.empty { text-align: center; color: var(--text-2); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 40px; height: 40px; color: var(--border-strong); }
.empty h3 { font-size: 17px; color: var(--text); }
.dropping { outline: 2px dashed var(--primary); outline-offset: -6px; background: var(--primary-soft); }

/* ---------- Detalle ---------- */
.detail-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.detail-empty { margin: auto; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; }
.detail-empty .ic { width: 56px; height: 56px; color: var(--border-strong); }
.detail-scroll { flex: 1; overflow-y: auto; }
.detail-inner { max-width: 880px; margin: 0 auto; padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.back-btn { display: none; align-self: flex-start; }
.list-toggle, .list-pin, .list-backdrop { display: none; }
.row-gap { display: flex; align-items: center; gap: 8px; }
/* Lista plegable (solo pantallas anchas): con una reunión abierta la lista pasa a ser un panel a demanda */
@media (min-width: 861px) {
    .list-toggle { display: inline-flex; align-self: flex-start; }
    .app.fold { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
    .app.fold .list-pane { position: fixed; top: 0; bottom: 0; left: var(--rail-w); width: var(--list-w); z-index: 40; box-shadow: 8px 0 24px rgba(15, 23, 42, .22); transform: translateX(-14px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
    .app.fold.list-open .list-pane { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
    .app.fold.list-open .list-pin { display: inline-flex; }
    .app.fold.list-open .list-backdrop { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: var(--rail-w); z-index: 35; background: rgba(15, 23, 42, .28); }
}
.detail-title { font-size: 24px; line-height: 1.2; border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -6px; background: transparent; width: 100%; font-weight: 800; font-family: var(--font); letter-spacing: -.01em; }
.detail-title:hover { border-color: var(--border); }
.detail-title:focus { outline: none; border-color: var(--primary); background: var(--bg); }
.detail-meta { color: var(--text-3); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.detail-meta span { display: inline-flex; gap: 5px; align-items: center; }
.detail-meta .ic { width: 14px; height: 14px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.player { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.player-row { display: flex; align-items: center; gap: 10px; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.play-btn:hover { background: var(--primary-dark); }
.wave { flex: 1; min-width: 0; overflow: hidden; height: 40px; display: flex; align-items: center; gap: 2px; cursor: pointer; position: relative; }
.wave i { flex: 1; min-width: 0; background: var(--border-strong); border-radius: 2px; transition: background .1s; }
.wave i.on { background: var(--primary); }
.time { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; min-width: 96px; text-align: right; }
.player-tools { display: flex; align-items: center; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
.speed { font-weight: 800; min-width: 52px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { border: none; background: transparent; padding: 10px 14px; font-weight: 700; color: var(--text-3); border-bottom: 3px solid transparent; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { background: var(--bg-hover); color: var(--text-2); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.tab.active .count { background: var(--primary-soft); color: var(--primary); }

.panel { display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 16px; }
.prose { color: #111827; white-space: pre-wrap; line-height: 1.65; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 12.5px; color: var(--text-3); }
.notice { border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.notice.processing { background: var(--warn-soft); color: var(--warn-text); }
.notice.error { background: var(--danger-soft); color: #991B1B; }
.notice .ic { margin-top: 2px; }

.turn { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 8px 8px; border-radius: var(--radius-sm); }
.turn.active { background: var(--primary-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.turn-head { display: flex; gap: 8px; align-items: baseline; }
.turn-head b { font-size: 14px; }
.ts { border: none; background: var(--bg-hover); border-radius: 6px; padding: 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 700; }
.ts:hover { background: var(--primary-soft); }
.turn p { margin: 2px 0 0; white-space: pre-wrap; }

.task { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.task button.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.task.done button.check { background: var(--success); border-color: var(--success); }
.task.done .task-text { text-decoration: line-through; color: var(--text-3); }
.task-text { flex: 1; min-width: 0; }
.task-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.chapter { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; text-align: left; background: var(--bg); }
.chapter:hover { border-color: var(--primary); }
.chapter b { display: block; }
.chapter span { color: var(--text-2); font-size: 14px; }

.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-form { display: flex; gap: 8px; }

/* ---------- Ajustes ---------- */
.settings { max-width: 1000px; margin: 0 auto; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 22px; }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; }
select.input { height: auto; min-height: 42px; padding: 8px 12px; }
.list-head select.input { min-height: 38px; font-size: 13px; padding: 6px 10px; }
.md-table { overflow-x: auto; }
.md-table .table { min-width: 520px; }
.md-table .table td, .md-table .table th { vertical-align: top; }
.md { display: flex; flex-direction: column; gap: 2px; color: #111827; }
.md h2 { font-size: 19px; margin: 24px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border); color: var(--primary); }
.md h3 { font-size: 16px; margin: 16px 0 6px; }
.md h4 { font-size: 15px; margin: 12px 0 4px; }
.md p { margin: 6px 0; line-height: 1.65; }
.md ul, .md ol { margin: 6px 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; line-height: 1.55; }
.md hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md code { background: var(--bg-hover); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.md strong { font-weight: 800; }
.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.row-form { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr auto; gap: 8px; align-items: end; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.table td { padding: 8px; border-bottom: 1px solid var(--border); }

/* ---------- Modal / Toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: var(--bg); border-radius: 16px; width: 100%; max-width: 520px; padding: 22px; display: flex; flex-direction: column; gap: 16px; max-height: 90vh; overflow-y: auto; }
.modal h2 { font-size: 19px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.rec { align-items: center; text-align: center; }
.rec-timer { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); display: inline-block; margin-right: 8px; animation: pulse 1.2s infinite; }
.rec-dot.paused { animation: none; background: var(--text-3); }
@keyframes pulse { 50% { opacity: .25; } }
.meter { display: flex; align-items: center; gap: 3px; height: 54px; width: 100%; justify-content: center; }
.meter i { width: 5px; background: var(--primary); border-radius: 3px; height: 6px; transition: height .08s; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(92vw, 420px); }
.toast { background: #0F172A; color: #fff; border-radius: 10px; padding: 11px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.toast.error { background: var(--danger); }
.toast.success { background: #166534; }

.skeleton { background: linear-gradient(90deg, #EEF2F6 25%, #E2E8F0 37%, #EEF2F6 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; height: 16px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.report { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { :root { --list-w: 300px; } }
/* Detalle: el título ocupa todo el ancho y las acciones van debajo (evita que el título quede cortado) */
@media (max-width: 1280px) {
    .detail-top { flex-direction: column; align-items: stretch; }
    .actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
    .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 58px; }
    .rail { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 0 8px; gap: 0; }
    .rail .brand-mark, .rail .spacer { display: none; }
    .rail-btn { width: 56px; height: 48px; }
    .list-pane, .detail-pane { grid-row: 1; grid-column: 1; }
    .app[data-mobile="list"] .detail-pane { display: none; }
    .app[data-mobile="detail"] .list-pane { display: none; }
    .back-btn { display: inline-flex; }
    .detail-scroll { overflow-x: hidden; }
    .detail-top { flex-direction: column; align-items: stretch; }
    .actions { justify-content: flex-start; }
    .player-row { flex-wrap: wrap; }
    .wave { order: 3; flex-basis: 100%; }
    .time { margin-left: auto; min-width: 0; }
    .tab { padding: 10px 10px; }
    .detail-inner { padding: 14px 16px 32px; }
    .detail-title { font-size: 20px; }
    .row-form { grid-template-columns: 1fr; }
    .settings { padding: 16px; }
    .toasts { bottom: 74px; }
}

/* ---------- Exportar a PDF (imprimir) ---------- */
@media print {
    body * { visibility: hidden; }
    .report, .report * { visibility: visible; }
    .report { display: block; position: absolute; inset: 0; padding: 24px; color: #000; background: #fff; }
    .report h1 { font-size: 22px; color: var(--primary); margin-bottom: 4px; }
    .report h2 { font-size: 16px; margin: 18px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 3px; }
    .report p { margin: 4px 0; white-space: pre-wrap; }
    .report .r-meta { color: #555; font-size: 12px; }
}

/* ---------- Editar participantes ---------- */
.spk-list { display: flex; flex-direction: column; }
.spk-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spk-info { display: flex; flex-direction: column; gap: 2px; }
.spk-sample { font-style: italic; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-row input { margin-top: 3px; }

/* ---------- Reuniones por fases ---------- */
.phases { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.phase-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.phase-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.phase-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.phase-tools { display: flex; flex: none; }
.phase-uploads { display: flex; flex-direction: column; gap: 8px; }
.phase-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Impresión: se oculta toda la app (no solo se hace invisible) para que el informe fluya en varias páginas */
@media print {
    @page { margin: 14mm; }
    html, body { height: auto !important; overflow: visible !important; background: #fff; }
    body > *:not(#report) { display: none !important; }
    .report { position: static; padding: 0; }
    .report h2 { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
