:root {
      --color-primary: #0891B2;
      --color-primary-light: #E0F7FA;
      --color-primary-dark: #0E4F5F;
      --color-primary-border: #67C8DB;
      --color-bg: #F4F4F2;
      --color-surface: #ffffff;
      --color-surface-2: #F8F8F6;
      --color-border: rgba(0,0,0,0.09);
      --color-border-strong: rgba(0,0,0,0.15);
      --color-text-primary: #1a1a18;
      --color-text-secondary: #5a5a57;
      --color-text-tertiary: #9a9a96;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      font-size: 14px; line-height: 1.5; color: var(--color-text-primary);
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --color-bg: #1a1a18; --color-surface: #242422; --color-surface-2: #2c2c2a;
        --color-border: rgba(255,255,255,0.08); --color-border-strong: rgba(255,255,255,0.14);
        --color-text-primary: #f0f0ec; --color-text-secondary: #a0a09c; --color-text-tertiary: #606060;
      }
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; }
    body { background: var(--color-bg); -webkit-font-smoothing: antialiased; }
    input, select, button, textarea { font: inherit; color: inherit; }
    button { cursor: pointer; border: none; background: none; }
    ::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 3px; }

    #app { display: flex; height: 100vh; overflow: hidden; }

    /* ── Sidebar ── */
    #sidebar {
      width: 310px; min-width: 310px; background: var(--color-surface);
      border-right: 0.5px solid var(--color-border);
      display: flex; flex-direction: column; overflow: hidden;
    }
    .sidebar-header { padding: 14px 16px; border-bottom: 0.5px solid var(--color-border); }
    .sidebar-logo {
      font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
      text-transform: uppercase; color: var(--color-text-tertiary); margin-bottom: 10px;
    }
    .search-wrap { position: relative; }
    .search-icon {
      position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
      font-size: 14px; color: var(--color-text-tertiary); pointer-events: none;
    }
    #search-input {
      width: 100%; padding: 7px 10px 7px 30px; font-size: 13px;
      border: 0.5px solid var(--color-border-strong); border-radius: 6px;
      background: var(--color-surface-2); outline: none;
    }
    .filters-section { padding: 10px 16px 12px; border-bottom: 0.5px solid var(--color-border); }
    .filters-label {
      font-size: 10px; font-weight: 600; letter-spacing: 0.07em;
      text-transform: uppercase; color: var(--color-text-tertiary); margin-bottom: 8px;
    }
    .chip-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
    .area-chip {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 4px 9px; border-radius: 999px; font-size: 12px; cursor: pointer; transition: all 0.15s;
    }
    .area-chip .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

    #proc-list { flex: 1; overflow-y: auto; padding: 8px 8px; }

    /* Grupo de área (nivel 1) */
    .area-group { margin-bottom: 8px; }
    .area-group-header {
      display: flex; align-items: center; gap: 7px;
      width: 100%; text-align: left;
      padding: 7px 10px; border-radius: 6px; cursor: pointer;
      background: transparent; transition: background 0.15s;
    }
    .area-group-header:hover { background: var(--color-surface-2); }
    .area-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .area-group-name {
      flex: 1; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--color-text-secondary);
    }
    .area-group-meta { font-size: 10px; color: var(--color-text-tertiary); }
    .ag-chevron { font-size: 10px; color: var(--color-text-tertiary); transition: transform 0.2s; }
    .area-group-header.open .ag-chevron { transform: rotate(180deg); }
    .area-group-body { padding-left: 4px; }
    .area-group-body.hidden { display: none; }

    /* Grupo de procedimiento (nivel 2, colapsable) */
    .proc-group {
      margin-bottom: 6px;
      border: 0.5px solid var(--color-border); border-radius: 8px; overflow: hidden;
    }
    .proc-group-header {
      display: flex; align-items: center;
      width: 100%; text-align: left;
      padding: 9px 12px; cursor: pointer;
      background: var(--color-surface-2); transition: background 0.15s;
    }
    .proc-group-header:hover { background: var(--color-border); }
    .proc-group-header-info { flex: 1; min-width: 0; }
    .proc-group-code {
      display: block;
      font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; margin-bottom: 2px;
    }
    .proc-group-title {
      display: block;
      font-size: 12px; font-weight: 500; color: var(--color-text-secondary);
      line-height: 1.3;
    }
    .proc-group-header-right { display: flex; align-items: center; gap: 6px; margin-left: 8px; flex-shrink: 0; }
    .pg-count { font-size: 10px; color: var(--color-text-tertiary); }
    .pg-chevron { font-size: 10px; color: var(--color-text-tertiary); transition: transform 0.2s; }
    .proc-group-header.open .pg-chevron { transform: rotate(180deg); }
    .flujo-list { border-top: 0.5px solid var(--color-border); padding: 4px; background: var(--color-surface); }
    .flujo-list.hidden { display: none; }
    .proc-group-line { display: none; }

    /* Flujo (ítem clickeable) */
    .flujo-item {
      display: block; width: 100%; text-align: left;
      padding: 7px 10px 7px 18px; border-radius: 7px; cursor: pointer;
      margin-bottom: 1px; border: 0.5px solid transparent;
      background: transparent; transition: all 0.15s;
      position: relative;
    }
    .flujo-item::before {
      content: ''; position: absolute; left: 10px; top: 50%;
      transform: translateY(-50%);
      width: 4px; height: 4px; border-radius: 50%;
      background: var(--color-border-strong);
    }
    .flujo-item:hover { background: var(--color-surface-2); }
    .flujo-item.active::before { background: currentColor; }
    .flujo-item-title {
      font-size: 13px; font-weight: 500; color: var(--color-text-primary);
      line-height: 1.4; margin-bottom: 2px;
    }
    .flujo-item-meta {
      font-size: 11px; color: var(--color-text-tertiary);
    }
    .no-results { padding: 24px 8px; text-align: center; color: var(--color-text-tertiary); font-size: 13px; }

    /* ── Main ── */
    #main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
    #main-header {
      min-height: 60px; background: var(--color-surface);
      border-bottom: 0.5px solid var(--color-border);
      display: flex; align-items: center; padding: 0 20px; gap: 12px; flex-shrink: 0; flex-wrap: wrap;
    }
    .header-left { display: flex; flex-direction: column; flex: 1; min-width: 0; }
    .header-proc-ref {
      font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
      margin-bottom: 3px;
    }
    #flujo-title {
      font-size: 13px; font-weight: 400; color: var(--color-text-secondary);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    #area-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; flex-shrink: 0; }
    .filter-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .filter-label { font-size: 12px; color: var(--color-text-tertiary); }
    #rol-select {
      font-size: 12px; padding: 5px 8px;
      border: 0.5px solid var(--color-border-strong); border-radius: 6px;
      background: var(--color-surface-2); cursor: pointer; outline: none;
    }
    #step-count { font-size: 11px; color: var(--color-text-tertiary); flex-shrink: 0; }

    /* ── Flow ── */
    #flow-area { flex: 1; overflow-y: auto; }
    #flow-content { padding: 24px 20px; }
    .flujo-desc {
      font-size: 13px; color: var(--color-text-secondary);
      margin-bottom: 24px; line-height: 1.6;
      border-left: 3px solid var(--color-border-strong);
      padding-left: 12px; max-width: 560px;
    }
    .connector { width: 2px; height: 18px; background: var(--color-border-strong); margin-left: 22px; }
    .step-row { display: flex; align-items: flex-start; gap: 12px; max-width: 560px; }
    .step-number {
      width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 10px;
      background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 600;
      display: flex; align-items: center; justify-content: center;
    }
    .step-number.dimmed { background: var(--color-border-strong); }
    .step-card {
      flex: 1; background: var(--color-surface);
      border: 0.5px solid var(--color-border); border-radius: 7px; padding: 10px 14px;
    }
    .step-card.inicio   { border-left: 3px solid #378ADD; border-radius: 0 7px 7px 0; }
    .step-card.fin      { border-left: 3px solid #E24B4A; border-radius: 0 7px 7px 0; }
    .step-card.decision { border-left: 3px solid #EF9F27; border-radius: 0 7px 7px 0; }
    .step-wrap { transition: opacity 0.2s; }
    .step-wrap.dimmed { opacity: 0.22; }
    .tipo-badge {
      display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px;
      font-size: 12px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 7px;
    }
    .tipo-badge.inicio   { background: #C8DFF7; color: #0E4A8C; }
    .tipo-badge.fin      { background: #F9CECE; color: #8B1A1A; }
    .tipo-badge.decision { background: #FAE3B0; color: #5C3000; }
    .step-task  { font-size: 14px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 4px; line-height: 1.4; }
    .step-desc  { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 7px; line-height: 1.5; }
    .resp-chip {
      display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
      border-radius: 999px; font-size: 11px; background: var(--color-surface-2);
      color: var(--color-text-secondary); border: 0.5px solid var(--color-border);
    }
    .resp-chip.highlight {
      background: var(--color-primary-light); color: var(--color-primary-dark);
      border-color: var(--color-primary-border); font-weight: 500;
    }
    .branches {
      margin-left: 36px; padding-left: 16px;
      border-left: 2px dashed var(--color-border-strong); margin-top: 8px; padding-bottom: 4px;
    }
    .branch { margin-top: 10px; transition: opacity 0.2s; }
    .branch.dimmed { opacity: 0.25; }
    .branch-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
    .branch-label.si { background: #B8EDD8; color: #0A5C3E; }
    .branch-label.no { background: #F9CEBE; color: #7A2810; }
    .branch-card {
      padding: 12px 16px; border-radius: 0 8px 8px 0;
      border: 0.5px solid var(--color-border); border-left-width: 4px; max-width: 460px;
    }
    .branch-card.si { background: #F4FDF8; border-left-color: #1D9E75; }
    .branch-card.no { background: #FDF6F4; border-left-color: #D85A30; }
    .branch-text { font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--color-text-primary); line-height: 1.45; }
    .empty-state {
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; height: 100%; gap: 12px; color: var(--color-text-tertiary);
    }
    .empty-state .arrow { font-size: 36px; }
    .empty-state .msg { font-size: 14px; }

    /* ── Swimlane ── */
    .swimlane-outer { overflow-x: auto; margin-bottom: 24px; }
    .swimlane-wrap { min-width: 480px; border: 0.5px solid var(--color-border); border-radius: 8px; overflow: hidden; }
    .swimlane-col-headers {
      display: grid; background: var(--color-surface-2);
      border-bottom: 1.5px solid var(--color-border-strong);
      position: sticky; top: 0; z-index: 5;
    }
    .swimlane-col-header {
      padding: 10px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
      text-transform: uppercase; color: var(--color-text-secondary); text-align: center;
      border-right: 0.5px solid var(--color-border);
    }
    .swimlane-col-header:last-child { border-right: none; }
    .swimlane-row { display: grid; border-bottom: 0.5px solid var(--color-border); }
    .swimlane-row:last-child { border-bottom: none; }
    .lane-cell {
      padding: 10px 8px; border-right: 0.5px solid var(--color-border);
      display: flex; flex-direction: column; align-items: center;
    }
    .lane-cell:last-child { border-right: none; }
    .lane-empty {
      background: repeating-linear-gradient(
        135deg, transparent, transparent 7px,
        var(--color-border) 7px, var(--color-border) 8px
      );
    }
    .lane-connector { width: 2px; height: 16px; background: var(--color-border-strong); margin: 2px auto; flex-shrink: 0; }
    .sw-step { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
    .sw-step .step-card { flex: 1; }
    .sw-branches {
      padding-left: 12px; border-left: 2px dashed var(--color-border-strong);
      margin-top: 6px; padding-bottom: 2px; width: 100%;
    }
    .conc-feeds-in {
      font-size: 10px; color: var(--color-text-tertiary); text-align: center;
      margin-top: 6px; font-style: italic;
    }
    .lane-cell.lane-dimmed { opacity: 0.22; pointer-events: none; }
    .next-step-link {
      display: inline-flex; align-items: center; gap: 4px;
      margin-top: 8px; padding: 3px 9px; border-radius: 999px;
      font-size: 11px; font-weight: 600; cursor: pointer;
      background: var(--color-primary-light); color: var(--color-primary-dark);
      border: 0.5px solid var(--color-primary-border); transition: all 0.15s;
    }
    .next-step-link:hover { background: var(--color-primary-border); }
    .paso-nav-highlight {
      opacity: 1 !important;
      animation: pasoNavFlash 2.4s ease-out forwards;
      border-radius: 8px;
      position: relative;
      z-index: 2;
    }
    @keyframes pasoNavFlash {
      0%   { box-shadow: 0 0 0 3px var(--color-primary), 0 0 18px 4px var(--color-primary-border); }
      55%  { box-shadow: 0 0 0 3px var(--color-primary), 0 0 18px 4px var(--color-primary-border); }
      100% { box-shadow: 0 0 0 0px transparent, 0 0 0px 0px transparent; }
    }

    /* ── Anexos panel ── */
    .anexos-panel {
      margin: 0 16px 12px; border: 0.5px solid var(--color-border-strong);
      border-radius: 10px; overflow: hidden; background: var(--color-surface-1);
    }
    .anexos-toggle {
      width: 100%; display: flex; align-items: center; justify-content: space-between;
      padding: 9px 14px; background: transparent; border: none; cursor: pointer;
      font-size: 12px; font-weight: 700; color: var(--color-text-secondary);
      text-transform: uppercase; letter-spacing: 0.07em; gap: 8px;
      transition: background 0.15s;
    }
    .anexos-toggle:hover { background: var(--color-surface-2); }
    .anexos-toggle .pi-chevron { transition: transform 0.2s; font-style: normal; }
    .anexos-toggle.open .pi-chevron { transform: rotate(180deg); }
    .anexos-body { border-top: 0.5px solid var(--color-border-strong); }
    .anexos-body.hidden { display: none; }
    .anexo-item { border-bottom: 0.5px solid var(--color-border); }
    .anexo-item:last-child { border-bottom: none; }
    .anexo-header {
      width: 100%; display: flex; align-items: center; gap: 10px;
      padding: 8px 14px; background: transparent; border: none; cursor: pointer;
      text-align: left; transition: background 0.15s;
    }
    .anexo-header:hover { background: var(--color-surface-2); }
    .anexo-header .pi-chevron { margin-left: auto; transition: transform 0.2s; font-style: normal; flex-shrink: 0; }
    .anexo-header.open .pi-chevron { transform: rotate(180deg); }
    .anexo-num {
      font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px;
      background: var(--color-primary-light); color: var(--color-primary-dark);
      white-space: nowrap; flex-shrink: 0;
    }
    .anexo-titulo { font-size: 12px; font-weight: 600; color: var(--color-text-primary); }
    .anexo-content { padding: 12px 16px 14px; background: var(--color-surface-2); }
    .anexo-content.hidden { display: none; }
    .anexo-desc { font-size: 12px; color: var(--color-text-secondary); margin: 0 0 10px; line-height: 1.5; }
    /* links */
    .anexo-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
    .anexo-link-card {
      background: var(--color-surface-1); border: 0.5px solid var(--color-border-strong);
      border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
    }
    .anexo-link-label { font-size: 11px; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; }
    .anexo-link-card .next-step-link { align-self: flex-start; }
    /* secciones */
    .anexo-section { margin-bottom: 10px; }
    .anexo-section:last-child { margin-bottom: 0; }
    .anexo-section-title {
      font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
      color: var(--color-text-secondary); margin-bottom: 6px;
    }
    .anexo-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
    .anexo-list li { font-size: 12px; color: var(--color-text-primary); line-height: 1.45; }
    /* tabla */
    .anexo-table-wrap { overflow-x: auto; }
    .anexo-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
    .anexo-table th {
      background: var(--color-surface-1); font-weight: 700; text-align: left;
      padding: 6px 10px; border: 0.5px solid var(--color-border-strong);
      color: var(--color-text-secondary); text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em;
    }
    .anexo-table td {
      padding: 6px 10px; border: 0.5px solid var(--color-border);
      vertical-align: top; color: var(--color-text-primary); line-height: 1.4;
    }
    .anexo-table tr:nth-child(even) td { background: var(--color-surface-1); }
    .anexo-table td:first-child { font-weight: 600; white-space: nowrap; }
    /* formulario */
    .anexo-form-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
    .anexo-form-list li {
      font-size: 12px; color: var(--color-text-primary); padding: 4px 8px;
      border-radius: 5px; background: var(--color-surface-1);
      border-left: 2.5px solid var(--color-border-strong); line-height: 1.4;
    }
    /* img-page */
    .anexo-img-wrap { width: 100%; text-align: center; }
    .anexo-img-wrap img { max-width: 100%; border-radius: 6px; border: 1px solid var(--color-border); box-shadow: 0 2px 8px rgba(0,0,0,.12); }

    /* adjunto */
    .anexo-adjunto-note {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 12px; color: var(--color-text-secondary); line-height: 1.5;
      padding: 6px 10px; background: var(--color-surface-1);
      border-radius: 7px; border: 0.5px dashed var(--color-border-strong);
    }
    .adjunto-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

    /* ── Section separators (multi-sección swimlane) ── */
    .section-block { margin-bottom: 4px; }
    .section-titulo {
      font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--color-text-secondary); margin-bottom: 8px;
      display: flex; align-items: center; gap: 8px;
    }
    .section-titulo::before { content:''; flex: 0 0 28px; height: 1.5px; background: var(--color-border-strong); }
    .section-titulo::after  { content:''; flex: 1;        height: 1.5px; background: var(--color-border-strong); }
    .section-divider {
      display: flex; align-items: center; justify-content: center;
      padding: 10px 0 14px; gap: 10px; font-size: 11px; color: var(--color-text-tertiary);
    }
    .section-divider-line { width: 60px; height: 1.5px; background: var(--color-border-strong); }

    /* ── Indicadores de convergencia (paso recibe flujo de múltiples orígenes) ── */
    .paso-from-row {
      display: flex; align-items: center; gap: 5px; margin-bottom: 8px;
      padding-bottom: 7px; border-bottom: 0.5px dashed var(--color-border-strong);
      flex-wrap: wrap;
    }
    .paso-from-label {
      font-size: 10px; color: var(--color-text-tertiary);
      font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0;
    }
    .link-from-btn {
      display: inline-flex; align-items: center; gap: 3px;
      padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; cursor: pointer;
      background: #FEF3C7; color: #92400E; border: 0.5px solid #F59E0B; transition: all 0.15s;
    }
    .link-from-btn:hover { background: #FDE68A; }

    /* ── Sidebar footer ── */
    .sidebar-footer {
      padding: 12px 14px; border-top: 0.5px solid var(--color-border); flex-shrink: 0;
    }
    .bases-btn {
      display: flex; align-items: center; gap: 10px; width: 100%;
      padding: 11px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
      color: var(--color-text-primary);
      background: var(--color-surface-2); border: 1px solid var(--color-border-strong);
      transition: all 0.15s; text-align: left;
    }
    .bases-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary-border); color: var(--color-primary-dark); }
    .bases-btn-icon { font-size: 17px; flex-shrink: 0; }
    .bases-btn-label { flex: 1; line-height: 1.3; }
    .bases-btn-sub { display: block; font-size: 11px; font-weight: 400; color: var(--color-text-tertiary); margin-top: 1px; }
    .bases-btn-arrow { font-size: 11px; color: var(--color-text-tertiary); flex-shrink: 0; }

    /* ── Modal ── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
      display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px;
    }
    .modal-overlay.hidden { display: none; }
    .modal-box {
      background: var(--color-surface); border-radius: 12px;
      border: 0.5px solid var(--color-border-strong);
      max-width: 620px; width: 100%; max-height: 82vh;
      display: flex; flex-direction: column; overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    }
    .modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 20px; border-bottom: 0.5px solid var(--color-border); flex-shrink: 0;
    }
    .modal-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
    .modal-subtitle { font-size: 11px; color: var(--color-text-tertiary); margin-top: 2px; }
    .modal-close {
      width: 28px; height: 28px; border-radius: 6px; font-size: 16px;
      color: var(--color-text-tertiary); display: flex; align-items: center; justify-content: center;
    }
    .modal-close:hover { background: var(--color-surface-2); color: var(--color-text-primary); }
    .modal-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
    .modal-section-title {
      font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--color-text-tertiary); margin-bottom: 8px;
    }
    .modal-section-text {
      font-size: 13px; color: var(--color-text-secondary); line-height: 1.65; max-width: 520px;
    }
    .def-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
    .def-item { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; }
    .def-term { font-weight: 600; color: var(--color-text-primary); min-width: 100px; flex-shrink: 0; }
    .def-desc { color: var(--color-text-secondary); }

    /* ── Proc info card (en panel principal) ── */
    .proc-info {
      max-width: 560px; margin-bottom: 20px;
      border: 0.5px solid var(--color-border); border-radius: 8px; overflow: hidden;
    }
    .proc-info-toggle {
      display: flex; align-items: center; gap: 6px; width: 100%; text-align: left;
      padding: 9px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase; color: var(--color-text-secondary); background: var(--color-surface-2);
      transition: background 0.15s;
    }
    .proc-info-toggle:hover { background: var(--color-border); }
    .proc-info-toggle .pi-chevron { margin-left: auto; font-size: 10px; transition: transform 0.2s; }
    .proc-info-toggle.open .pi-chevron { transform: rotate(180deg); }
    .proc-info-body { border-top: 0.5px solid var(--color-border); padding: 14px; background: var(--color-surface); }
    .proc-info-body.hidden { display: none; }
    .proc-info-cols { display: flex; gap: 24px; flex-wrap: wrap; }
    .proc-info-col { flex: 1; min-width: 180px; }
    .pi-label {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.06em; color: var(--color-text-secondary); margin-bottom: 7px;
    }
    .pi-ref-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
    .pi-ref-item {
      font-size: 12px; color: var(--color-text-primary);
      display: flex; align-items: baseline; gap: 6px;
    }
    .pi-ref-item::before { content: '↗'; font-size: 10px; color: var(--color-text-tertiary); flex-shrink: 0; }
    .pi-resp-list { display: flex; flex-direction: column; gap: 8px; }
    .pi-resp-rol { font-size: 12px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 1px; }
    .pi-resp-desc { font-size: 12px; color: var(--color-text-primary); line-height: 1.5; opacity: 0.75; }