:root {
    --st-blue: #0b3d91;
    --st-blue-dark: #072a63;
    --st-accent: #c5a572;
    --st-bg: #f0f3f8;
    --st-card: #ffffff;
    --st-text: #1a2332;
    --st-muted: #5c6b7a;
    --st-border: #d8dee6;
    --sidebar-w: 260px;
    --topbar-h: 56px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--st-bg);
    color: var(--st-text);
    min-height: 100vh;
}
a { color: var(--st-blue); }
.topbar {
    height: var(--topbar-h);
    background: var(--st-blue);
    color: #fff;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--st-accent);
    position: sticky;
    top: 0;
    z-index: 40;
}
.brand { font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: #fff; }
.brand span { color: var(--st-accent); font-weight: 500; margin-left: 0.35rem; font-size: 0.88rem; }
.topbar-right { display: flex; align-items: center; gap: 0.85rem; font-size: 0.875rem; }
.topbar-right .user-meta { opacity: 0.9; }
.btn-link {
    background: transparent; border: 1px solid rgba(255,255,255,.45);
    color: #fff; padding: 0.35rem 0.75rem; border-radius: 4px; cursor: pointer; font-size: 0.875rem;
    text-decoration: none;
}
.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--st-blue-dark);
    color: #e8eef7;
    padding: 1.25rem 0.75rem;
}
.sidebar-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--st-accent); padding: 0 0.75rem; margin: 0.5rem 0 0.65rem;
}
.sidebar nav { display: grid; gap: 0.25rem; }
.sidebar a {
    display: block; color: #d7e2f5; text-decoration: none;
    padding: 0.65rem 0.75rem; border-radius: 6px; font-size: 0.92rem;
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar a.active {
    background: rgba(197,165,114,.22);
    color: #fff;
    border-left: 3px solid var(--st-accent);
    padding-left: calc(0.75rem - 3px);
}
.sidebar .hint {
    margin-top: 1.5rem; padding: 0.75rem;
    font-size: 0.78rem; color: #9db0cc; line-height: 1.4;
}
.content {
    flex: 1;
    padding: 1.5rem 1.75rem 2.5rem;
    max-width: 1240px;
}
.st-page { max-width: 100%; }
.st-page-head {
    display: flex; justify-content: space-between; gap: 1.25rem; align-items: flex-start;
    flex-wrap: wrap; margin-bottom: 1.25rem;
}
.st-page-head h1 { margin: 0.25rem 0 0.35rem; font-size: 1.4rem; }
.st-head-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: flex-start; }
.st-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge-label {
    display: inline-block; padding: 0.28rem 0.65rem; border-radius: 0.375rem;
    font-size: 0.75rem; font-weight: 700;
}
.badge-primary { background: rgba(105,108,255,.16); color: #696cff; }
.badge-warning { background: rgba(255,171,0,.16); color: #b58112; }
.badge-success { background: rgba(113,221,55,.18); color: #228b22; }
.badge-info { background: rgba(3,195,236,.16); color: #039be5; }
.badge-secondary { background: rgba(133,146,163,.16); color: #6c757d; }
.badge-danger { background: rgba(255,62,29,.14); color: #c62828; }
.st-row-8-4 {
    display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem;
}
.st-ops { border-left: 4px solid var(--st-blue); }
.st-ops.border-warning { border-left-color: #ffab00; }
.st-ops.border-success { border-left-color: #71dd37; }
.st-ops.border-info { border-left-color: #03c3ec; }
.st-ops-body { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.st-ops-gauges { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.st-ops-copy h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.st-ops-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin: 0.85rem 0; }
.bg-label {
    border-radius: 0.5rem; padding: 0.75rem 0.85rem; display: grid; gap: 0.15rem;
}
.bg-label small { color: var(--st-muted); font-size: 0.75rem; }
.bg-label strong { font-size: 0.92rem; color: var(--st-text); }
.bg-label-primary { background: rgba(105,108,255,.12); }
.bg-label-warning { background: rgba(255,171,0,.14); }
.bg-label-success { background: rgba(113,221,55,.14); }
.bg-label-info { background: rgba(3,195,236,.12); }
.small-note { margin: 0; font-size: 0.82rem; }
.mb-0 { margin-bottom: 0 !important; }
.metric-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; margin-bottom: 1.25rem;
}
.metric-card {
    background: #fff; border: 1px solid var(--st-border); border-radius: 0.5rem;
    padding: 1rem 0.85rem; box-shadow: 0 1px 2px rgba(11,61,145,.05);
}
.metric-icon {
    width: 2rem; height: 2rem; border-radius: 0.45rem; margin-bottom: 0.65rem;
    background: rgba(105,108,255,.14);
}
.metric-icon.metric-info { background: rgba(3,195,236,.16); }
.metric-icon.metric-success { background: rgba(113,221,55,.18); }
.metric-icon.metric-warning { background: rgba(255,171,0,.18); }
.metric-icon.metric-secondary { background: rgba(133,146,163,.16); }
.metric-icon.metric-danger { background: rgba(255,62,29,.16); }
.metric-value { font-size: 1.35rem; font-weight: 700; color: var(--st-blue-dark); line-height: 1.1; }
.metric-label { margin-top: 0.25rem; font-size: 0.78rem; color: var(--st-muted); }
.resp-block { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.resp-empty { text-align: center; padding: 0.75rem 0.25rem; }
.resp-empty h3 { margin: 0.5rem 0 0.35rem; font-size: 0.95rem; }
.avatar-circle {
    width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar-circle.ok { background: #71dd37; color: #0f5132; }
.avatar-circle.warn { background: #ffab00; color: #664d03; margin: 0 auto; }
.pipeline-mini {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-top: 1rem;
}
.pipeline-mini div {
    border: 1px dashed var(--st-border); border-radius: 6px; padding: 0.45rem 0.35rem;
    font-size: 0.72rem; text-align: center; color: var(--st-muted); background: #f7f9fc;
}
.pipeline-mini div.on { border-style: solid; border-color: #b7c4ff; background: rgba(105,108,255,.08); color: var(--st-text); }
.pipeline-mini em {
    display: block; width: 1.15rem; height: 1.15rem; margin: 0 auto 0.2rem; border-radius: 50%;
    background: #696cff; color: #fff; font-style: normal; font-size: 0.68rem; font-weight: 700;
    line-height: 1.15rem;
}
.trace-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; margin-top: 0.85rem; }
.trace-card {
    border: 1px solid var(--st-border); border-radius: 8px; padding: 0.75rem; background: #fff;
}
.trace-card.ok { background: #f4fbf6; border-color: #c5e8d1; }
.trace-card.gap { background: #fffaf2; border-color: #f0dfb2; }
.trace-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; margin-bottom: 0.45rem; }
.trace-card .bar { height: 8px; background: #e9edf3; border-radius: 99px; overflow: hidden; margin-bottom: 0.35rem; }
.trace-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, #696cff, #8b8eff); }
.guest-body { background: linear-gradient(180deg, #e8eef7 0%, var(--st-bg) 40%); }
.guest-wrap { max-width: 440px; margin: 2.5rem auto; padding: 0 1rem; }
.card {
    background: var(--st-card);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(11,61,145,.06);
}
h1 { margin: 0 0 0.5rem; font-size: 1.35rem; color: var(--st-blue-dark); }
h2 { margin: 0 0 0.75rem; font-size: 1.05rem; color: var(--st-blue-dark); }
.muted { color: var(--st-muted); font-size: 0.95rem; }
.flash-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c2c2; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-ok { background: #e8f6ee; color: #146c43; border: 1px solid #b7e4c7; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.btn {
    display: inline-block; background: var(--st-blue); color: #fff; text-decoration: none;
    border: 0; padding: 0.65rem 1rem; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.btn-secondary {
    background: #fff; color: var(--st-blue); border: 1px solid var(--st-blue);
}
.btn-ok {
    background: #15803d; color: #fff; border: 1px solid #15803d;
}
.btn-ok:disabled,
.btn:disabled,
.btn-secondary:disabled {
    opacity: 0.45; cursor: not-allowed;
}
.conn-dot {
    width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block;
    background: #94a3b8;
}
.conn-dot.ok { background: #15803d; box-shadow: 0 0 0 3px rgba(21,128,61,.2); }
.conn-dot.bad { background: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
.field { display: grid; gap: 0.35rem; font-size: 0.9rem; }
.field input, .field select, .field textarea {
    padding: 0.6rem 0.75rem; border: 1px solid var(--st-border); border-radius: 6px; font: inherit;
}
.table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.9rem; }
.table th, .table td { border-bottom: 1px solid var(--st-border); padding: 0.55rem 0.35rem; text-align: left; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.4rem 0; border-bottom: 1px solid var(--st-border); font-size: 0.92rem; }
.checklist li.ok { color: #146c43; }
.checklist li.gap { color: #9b1c1c; }
.checklist em { color: var(--st-muted); font-style: normal; font-size: 0.85rem; }
.checklist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem; }
.checklist-doc { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.checklist-doc:hover { color: #696cff; }
.checklist-doc.gap-link { color: #9b1c1c; }
.checklist-open {
    font-size: 0.78rem; font-weight: 700; color: #696cff; text-decoration: none;
    border: 1px solid #c5c7ff; border-radius: 999px; padding: 0.1rem 0.5rem; background: rgba(105,108,255,.08);
}
.checklist-open:hover { background: rgba(105,108,255,.16); }
.trace-link { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s ease; }
.trace-link:hover { box-shadow: 0 0 0 2px rgba(105,108,255,.28); }
.doc-viewer .doc-body {
    font-size: 0.95rem; line-height: 1.55; color: var(--st-text);
    max-width: 48rem; white-space: normal;
}
.doc-frame {
    width: 100%; min-height: 70vh; border: 1px solid var(--st-border); border-radius: 8px; background: #f7f9fc;
}
.ev-card header a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ev-card header a:hover { color: #696cff; }
.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin: 0.45rem 0; color: var(--st-muted); }
.steps li.done { color: var(--st-text); }
.req-list { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--st-muted); font-size: 0.92rem; }
.req-list li { margin: 0.35rem 0; }
.prog-row { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 44px; gap: 0.65rem; align-items: center; font-size: 0.88rem; }
.prog-row .bar { height: 10px; background: #e4e9f1; border-radius: 99px; overflow: hidden; }
.prog-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--st-blue), #3d6ec9); border-radius: 99px; }
.prog-row .bar-alt i { background: linear-gradient(90deg, #2f7d4a, #5cb176); }
.section-fold summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1.2fr) 6.75rem minmax(0, 1.35fr);
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.2rem;
}
.section-fold summary::-webkit-details-marker { display: none; }
.section-fold > summary::before {
    content: '▶';
    grid-column: 1;
    display: inline-block;
    margin: 0;
    font-size: 0.65rem;
    color: var(--st-muted);
    justify-self: center;
    transition: transform 0.15s ease;
}
.section-fold[open] > summary::before { transform: rotate(90deg); }
.section-fold > summary > .sec-title {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--st-ink, #1b2430);
}
.section-fold > summary > .sec-pill {
    grid-column: 3;
    margin-left: 0;
    justify-self: stretch;
    text-align: center;
    white-space: nowrap;
}
.section-fold > summary > .sec-cita {
    grid-column: 4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 0.78rem;
    color: var(--st-muted);
}
@media (max-width: 900px) {
    .section-fold summary {
        grid-template-columns: 1rem minmax(0, 1fr) auto;
    }
    .section-fold > summary > .sec-cita {
        grid-column: 2 / -1;
        text-align: left;
        white-space: normal;
    }
}
.vig-fold {
    margin-bottom: 1rem;
    border-left: 4px solid #15803d;
}
.vig-fold > summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1.2fr) 6.75rem minmax(0, 1.35fr);
    align-items: center;
    column-gap: 0.55rem;
    padding: 0.15rem 0;
}
.vig-fold > summary::-webkit-details-marker { display: none; }
.vig-fold > summary::before {
    content: '▶';
    grid-column: 1;
    display: inline-block;
    margin: 0;
    font-size: 0.65rem;
    color: var(--st-muted);
    justify-self: center;
    transition: transform 0.15s ease;
}
.vig-fold[open] > summary::before { transform: rotate(90deg); }
.vig-fold > summary > .sec-title {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vig-fold > summary > .sec-pill {
    grid-column: 3;
    margin-left: 0;
    justify-self: stretch;
    text-align: center;
}
.vig-fold > summary > .sec-cita {
    grid-column: 4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 0.78rem;
}
.vig-fold-body { margin-top: 0.65rem; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fields-grid .field:has(textarea) { grid-column: 1 / -1; }
.eyebrow {
    margin: 0 0 0.35rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--st-accent); font-weight: 700;
}
.demo-hero {
    margin-bottom: 1.25rem;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center;
    background:
        radial-gradient(1200px 280px at 100% 0%, rgba(197,165,114,.18), transparent 55%),
        linear-gradient(135deg, #fff 0%, #eef3fb 100%);
    border-color: #c9d5e8;
}
.demo-hero h1 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.hero-lead { margin: 0.85rem 0 0; color: var(--st-text); line-height: 1.5; font-size: 0.95rem; }
.dual-gauges { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.gauge-block { text-align: center; }
.gauge-caption { margin: 0.55rem 0 0; font-size: 0.84rem; color: var(--st-text); line-height: 1.35; }
.gauge-caption span { color: var(--st-muted); font-size: 0.78rem; }
.gauge {
    --gauge-size: 148px;
    width: var(--gauge-size); height: var(--gauge-size);
    position: relative; margin: 0 auto;
}
.gauge svg { display: block; }
.gauge-track { stroke: #d9e2ef; }
.gauge-value { stroke-linecap: round; transition: stroke-dashoffset .7s ease; }
.gauge--blue .gauge-value { stroke: var(--st-blue); }
.gauge--green .gauge-value { stroke: #1f7a45; }
.gauge--amber .gauge-value { stroke: #b58112; }
.gauge--red .gauge-value { stroke: #b42318; }
.gauge-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; pointer-events: none;
}
.gauge-center strong { font-size: 1.75rem; color: var(--st-blue-dark); line-height: 1; }
.gauge--green .gauge-center strong { color: #146c43; }
.gauge--amber .gauge-center strong { color: #8a6310; }
.gauge--red .gauge-center strong { color: #9b1c1c; }
.gauge-center span { font-size: 0.72rem; color: var(--st-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ISCBScore — gauge compacto (~180px) */
.iscb-fico {
    max-width: 180px;
    margin: 0 auto;
    text-align: center;
}
.iscb-fico__readout {
    display: flex; flex-direction: column; align-items: center;
    line-height: 1.05; margin-bottom: 0.1rem;
}
.iscb-fico__readout strong {
    font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em;
}
.iscb-fico__readout span {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; margin-top: 0.1rem;
}
.iscb-fico__svg {
    display: block; margin: 0 auto;
    width: 170px; height: 96px;
    max-width: 100%; overflow: hidden;
}
.iscb-fico__tick { font-size: 7px; fill: #64748b; font-family: inherit; }
.iscb-fico__legend {
    display: flex; flex-wrap: wrap; gap: 0.22rem; justify-content: center;
    margin-top: 0.3rem;
}
.iscb-fico__pill {
    display: inline-flex; flex-direction: column; align-items: center;
    gap: 0; padding: 0.15rem 0.32rem; border-radius: 999px;
    font-size: 0.58rem; font-weight: 600; color: #475569;
    background: #f1f5f9; border: 1px solid transparent;
}
.iscb-fico__pill small { font-weight: 500; color: #94a3b8; font-size: 0.52rem; }
.iscb-fico__pill.is-active {
    color: #0f172a;
    background: color-mix(in srgb, var(--pill) 16%, white);
    border-color: var(--pill);
}
.iscb-score-layout {
    display: grid; grid-template-columns: 180px 1fr;
    gap: 0.85rem; align-items: start;
}
@media (max-width: 820px) {
    .iscb-score-layout { grid-template-columns: 1fr; }
}

.pipeline { margin-bottom: 1.25rem; }
.pipeline-steps {
    list-style: none; margin: 0.85rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem;
}
.pipeline-steps li {
    background: #f5f8fc; border: 1px dashed var(--st-border); border-radius: 8px;
    padding: 0.75rem; display: grid; gap: 0.2rem; min-height: 96px;
}
.pipeline-steps li.on { border-style: solid; border-color: #9eb6d9; background: #eef4fc; }
.pipeline-steps em {
    width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--st-blue); color: #fff;
    font-style: normal; font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.pipeline-steps strong { font-size: 0.9rem; color: var(--st-blue-dark); }
.pipeline-steps span { font-size: 0.78rem; color: var(--st-muted); }
.pipeline-note { margin: 0.85rem 0 0; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 1.15rem; font-size: 1rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chip {
    background: #eef3fb; color: var(--st-blue-dark); border: 1px solid #d0dbeb;
    border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.78rem; font-weight: 600;
}
.doc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.doc-tile {
    display: grid; grid-template-columns: 10px 1fr auto; gap: 0.45rem; align-items: center;
    border: 1px solid var(--st-border); border-radius: 6px; padding: 0.45rem 0.55rem; font-size: 0.78rem;
    background: #fff;
}
.doc-tile .dot { width: 8px; height: 8px; border-radius: 50%; background: #c5ccd6; }
.doc-tile.ok { background: #f1faf4; border-color: #b7e4c7; }
.doc-tile.ok .dot { background: #146c43; }
.doc-tile.gap { background: #fff7f7; border-color: #f5c2c2; }
.doc-tile.gap .dot { background: #9b1c1c; }
.doc-tile .lbl { color: var(--st-text); line-height: 1.25; }
.doc-tile .cnt { color: var(--st-muted); font-weight: 700; }
.report-card { margin-bottom: 1.25rem; border-color: #c5d0e0; }
.report-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 0.75rem; }
.report-head h2 { margin: 0; }
.veredicto {
    display: inline-block; padding: 0.4rem 0.75rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.veredicto-cumple { background: #d8f3e3; color: #0f5132; }
.veredicto-parcial { background: #fff3cd; color: #664d03; }
.veredicto-no_cumple { background: #f8d7da; color: #842029; }
.veredicto-pendiente { background: #e9ecef; color: #495057; }
.report-empty {
    background: #f7f9fc; border: 1px dashed var(--st-border); border-radius: 8px; padding: 1.1rem 1.2rem;
}
.report-veredicto { margin: 0 0 0.5rem; font-size: 1.02rem; line-height: 1.45; color: var(--st-blue-dark); font-weight: 600; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.report-col { border-radius: 8px; padding: 0.85rem 1rem; border: 1px solid var(--st-border); }
.report-col h3 { margin: 0 0 0.55rem; font-size: 0.88rem; }
.report-col ul { margin: 0; padding-left: 1.1rem; font-size: 0.86rem; line-height: 1.4; }
.report-col li { margin: 0.3rem 0; }
.report-col.ok { background: #f1faf4; border-color: #b7e4c7; }
.report-col.bad { background: #fff7f7; border-color: #f5c2c2; }
.report-col.tip { background: #fff9ef; border-color: #edd9a8; }
.report-narrativa {
    margin: 1rem 0 0; padding: 0.85rem 1rem; background: #eef3fb; border-radius: 8px;
    font-size: 0.88rem; color: var(--st-muted); line-height: 1.45;
}
.sec-pill {
    display: inline-block; margin-left: 0.45rem; padding: 0.1rem 0.45rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; vertical-align: middle;
}
.sec-pill.ok { background: #d8f3e3; color: #0f5132; }
.sec-pill.mid { background: #fff3cd; color: #664d03; }
.sec-pill.gap { background: #f8d7da; color: #842029; }
.ev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem; }
.ev-card {
    border: 1px solid var(--st-border); border-radius: 8px; padding: 0.85rem 1rem; background: #fff;
}
.ev-card header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.ev-card header strong { font-size: 0.9rem; color: var(--st-blue-dark); }
.badge-origen {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    background: #e8eef7; color: var(--st-blue); padding: 0.15rem 0.4rem; border-radius: 4px; white-space: nowrap;
}
.ev-card.ok { border-color: #b7e4c7; background: #f8fcf9; }
.ev-card.warn { border-color: #f0c2c2; background: #fffafa; }
.ev-card.pending { border-style: dashed; }
.ev-score { margin-top: 0.45rem; font-size: 0.88rem; }
.ev-motivos { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--st-muted); }
.ev-riesgo { margin: 0.25rem 0 0; font-size: 0.8rem; color: #9b1c1c; }
body.is-analyzing { cursor: progress; }
body.is-analyzing #btn-analisis { opacity: 0.75; }

/* —— Vista vigilado (diligenciar) —— */
.vig-page { display: grid; gap: 1rem; }
.vig-hero {
    display: grid; grid-template-columns: 1.4fr auto; gap: 1.25rem; align-items: center;
    background: linear-gradient(135deg, #fff 0%, #eef3fb 100%);
    border-color: #c9d5e8;
}
.vig-hero h1 { margin: 0.4rem 0 0.35rem; font-size: 1.45rem; }
.vig-lead { margin: 0.75rem 0 0; font-size: 0.92rem; line-height: 1.45; color: var(--st-text); max-width: 52rem; }
.vig-hero-side { display: flex; gap: 1rem; align-items: center; }
.vig-kpi { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; min-width: 8.5rem; }
.vig-kpi li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.82rem; }
.vig-kpi span { color: var(--st-muted); }
.vig-kpi strong { color: var(--st-blue-dark); }
.txt-warn { color: #b58112 !important; }
.txt-ok { color: #146c43 !important; }
.vig-steps {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.45rem; padding: 0.85rem !important;
    position: sticky; top: calc(var(--topbar-h) + 0.5rem); z-index: 20;
}
.vig-step {
    display: grid; gap: 0.2rem; text-decoration: none; color: var(--st-text);
    border: 1px solid var(--st-border); border-radius: 8px; padding: 0.55rem 0.5rem;
    background: #f7f9fc; min-height: 4.5rem;
}
.vig-step em {
    width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #696cff; color: #fff;
    font-style: normal; font-size: 0.7rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.vig-step-title { font-size: 0.78rem; font-weight: 700; line-height: 1.25; color: var(--st-blue-dark); }
.vig-step-meta { font-size: 0.7rem; color: var(--st-muted); }
.vig-step.done { background: #f1faf4; border-color: #b7e4c7; }
.vig-step.mid { background: #fff9ef; border-color: #edd9a8; }
.vig-step.todo { background: #fff; }
.vig-step.current { box-shadow: 0 0 0 2px rgba(105,108,255,.35); border-color: #696cff; }
.vig-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.vig-actions-note { font-size: 0.82rem; }
.vig-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.vig-main { display: grid; gap: 0.85rem; min-width: 0; }
.vig-aside { display: grid; gap: 0.85rem; position: sticky; top: calc(var(--topbar-h) + 5.5rem); }
.vig-section { scroll-margin-top: calc(var(--topbar-h) + 6.5rem); }
.vig-help { margin: 0.75rem 0 1rem; font-size: 0.88rem; }
.vig-form-foot { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin-top: 1rem; }
.field-label { font-weight: 600; color: var(--st-blue-dark); }
.field-with-laft { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.field-with-laft input, .field-with-laft select { flex: 1 1 8rem; min-width: 0; }
.btn-laft {
    flex: 0 0 auto;
    border: 1px solid #c5cae9;
    background: #eef0ff;
    color: #3949ab;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
}
.btn-laft:hover { background: #e0e4ff; }
.btn-laft:disabled { opacity: 0.65; cursor: wait; }
.laft-hint { display: block; font-size: 0.78rem; margin-top: 0.2rem; }
.field-sistema {
    background: #f1f5f9 !important;
    color: #334155;
    font-weight: 600;
    cursor: default;
}
.field-missing input, .field-missing select, .field-missing textarea {
    border-color: #e0a800; background: #fffdf5;
}
.field abbr { color: #c62828; text-decoration: none; }
.vig-trace { margin: 0 0 1rem; }
.vig-upload { margin-bottom: 1rem; padding: 1rem; background: #f7f9fc; border-radius: 8px; border: 1px dashed var(--st-border); }
.vig-aside-lists { display: grid; gap: 0.65rem; }
.vig-howto { margin: 0.5rem 0 0.85rem; padding-left: 1.15rem; font-size: 0.86rem; color: var(--st-muted); line-height: 1.45; }
.vig-howto li { margin: 0.3rem 0; }
.vig-help-card h2 { font-size: 0.95rem; }

.sg-doc-sheet { max-width: 920px; }
.sg-doc-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--st-blue);
}
.sg-logo-img { max-width: 160px; max-height: 80px; object-fit: contain; display: block; }
.sg-logo-ph {
    height: 72px; display: flex; align-items: center; justify-content: center;
    background: #f7f9fc; border: 1px dashed var(--st-border); border-radius: 8px;
    color: var(--st-muted); font-size: 0.82rem; text-align: center; padding: 0.5rem;
}
.sg-doc-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.sg-doc-body {
    width: 100%; min-height: 320px; font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem; line-height: 1.55; padding: 0.85rem; border: 1px solid var(--st-border);
    border-radius: 8px; resize: vertical;
}
.sg-locked {
    padding: 0.55rem 0.7rem; background: #f7f9fc; border: 1px solid var(--st-border);
    border-radius: 6px; font-weight: 600; color: var(--st-blue-dark);
}
@media (max-width: 900px) {
    .sg-doc-header { grid-template-columns: 1fr; }
    .sg-doc-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .trace-grid { grid-template-columns: 1fr 1fr; }
    .vig-steps { grid-template-columns: repeat(3, 1fr); position: static; }
    .vig-layout { grid-template-columns: 1fr; }
    .vig-aside { position: static; }
}
@media (max-width: 900px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
    .content { padding: 1rem; }
    .fields-grid { grid-template-columns: 1fr; }
    .prog-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .st-row-8-4 { grid-template-columns: 1fr; }
    .st-ops-body { grid-template-columns: 1fr; }
    .st-ops-boxes { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .report-grid { grid-template-columns: 1fr; }
    .ev-cards { grid-template-columns: 1fr; }
    .trace-grid { grid-template-columns: 1fr; }
    .vig-hero { grid-template-columns: 1fr; }
    .vig-hero-side { flex-wrap: wrap; }
    .vig-steps { grid-template-columns: 1fr 1fr; }
}
