
    :root {
      --brand: #E8581A;
      --brand-dark: #C0430D;
      --brand-mid: #F06B2B;
      --brand-soft: #FEF3EC;
      --brand-border: #F9C4A0;

      --green: #16A34A;
      --green-soft: #F0FDF4;
      --green-border: #86EFAC;
      --green-dark: #15803D;

      --ink: #111827;
      --ink-2: #374151;
      --ink-3: #6B7280;
      --ink-4: #9CA3AF;
      --line: #E5E7EB;
      --line-2: #F3F4F6;
      --surface: #FFFFFF;
      --page: #F7F8FA;
      --purple: #7C3AED;
      --blue: #2563EB;
      --amber: #D97706;

      --radius-sm: 8px;
      --radius: 12px;
      --radius-lg: 16px;
      --radius-xl: 20px;

      --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
      --shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.04);
      --shadow-md: 0 10px 15px -3px rgba(0,0,0,.06), 0 4px 6px -4px rgba(0,0,0,.04);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      min-height: 100vh;
      background: var(--page);
      color: var(--ink);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 13px;
      line-height: 1.6;
    }

    /* ===== SYNC ===== */
    .sync-bar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      height: 3px; background: var(--brand);
      transform: scaleX(0); transform-origin: left;
      transition: transform .3s ease, opacity .3s ease; opacity: 0;
    }
    .sync-bar.syncing { transform: scaleX(.7); opacity: 1; }
    .sync-bar.done { transform: scaleX(1); opacity: 0; }

    .sync-badge {
      position: fixed; bottom: 20px; right: 20px; z-index: 199;
      background: var(--surface); border: 1px solid var(--line);
      border-radius: var(--radius); padding: 8px 14px;
      font-size: 12px; font-weight: 600;
      box-shadow: var(--shadow-md);
      display: flex; align-items: center; gap: 7px;
      opacity: 0; transition: opacity .3s ease; pointer-events: none;
    }
    .sync-badge.visible { opacity: 1; }
    .sync-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
    .sync-badge.error .dot { background: #EF4444; }

    /* ===== TOPBAR ===== */
    .topbar {
      position: sticky; top: 0; z-index: 50;
      background: rgba(255,255,255,.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: 0 24px;
      height: 56px;
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }

    .topbar-left {
      display: flex; align-items: center; gap: 10px;
    }

    .topbar-brand {
      display: flex; align-items: center; gap: 8px;
    }

.topbar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.topbar-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

    .topbar-brand-name {
      font-size: 13px; font-weight: 700; color: var(--ink);
      letter-spacing: -.2px;
    }

    .topbar-sep {
      width: 1px; height: 20px; background: var(--line); margin: 0 4px;
    }

    .topbar-section {
      font-size: 12px; color: var(--ink-3); font-weight: 500;
    }

    .topbar-right {
      display: flex; align-items: center; gap: 8px;
    }

    .btn {
      display: inline-flex; align-items: center; gap: 6px;
      border: 1px solid var(--line); border-radius: var(--radius-sm);
      background: var(--surface); color: var(--ink-2);
      cursor: pointer; font: inherit; font-weight: 600;
      font-size: 12.5px; padding: 6px 12px; min-height: 32px;
      transition: background .12s, border-color .12s, transform .05s;
      white-space: nowrap;
    }
    .btn:hover { background: var(--line-2); border-color: #D1D5DB; }
    .btn:active { transform: translateY(1px); }
    .btn.primary {
      background: var(--brand); border-color: var(--brand); color: white;
    }
    .btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
    .btn.danger { color: #DC2626; border-color: #FECACA; }
    .btn.danger:hover { background: #FEF2F2; border-color: #FCA5A5; }
    .btn.ghost { border-color: transparent; background: transparent; }
    .btn.ghost:hover { background: var(--line-2); border-color: var(--line); }

    .btn svg { width: 14px; height: 14px; flex-shrink: 0; }

    .editor-action { display: none; }
    body.editor-open .editor-action { display: inline-flex; }
    body.editor-open .home-action { display: none; }

    /* ===== HOME LAYOUT ===== */
    body.editor-open .home-page { display: none; }

    .home-page {
      max-width: 1100px;
      margin: 0 auto;
      padding: 32px 24px 48px;
    }

    /* ===== HERO ===== */
    .hero {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 24px; flex-wrap: wrap;
      margin-bottom: 32px;
    }

    .hero-text {}

    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 11px; font-weight: 700; letter-spacing: .8px;
      text-transform: uppercase; color: var(--brand);
      background: var(--brand-soft); border: 1px solid var(--brand-border);
      border-radius: 999px; padding: 4px 10px;
      margin-bottom: 12px;
    }

    .hero-eyebrow::before {
      content: "";
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--brand);
      animation: pulse 2s ease infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: .4; }
    }

    .hero-title {
      font-size: 28px; font-weight: 800; color: var(--ink);
      letter-spacing: -.5px; line-height: 1.2; margin-bottom: 8px;
    }

    .hero-sub {
      font-size: 13.5px; color: var(--ink-3); font-weight: 400; max-width: 460px;
    }

    .hero-actions {
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
      align-self: flex-end;
    }

    /* ===== STATS ROW ===== */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin-bottom: 28px;
    }

    .stat-card {
      background: var(--surface); border: 1px solid var(--line);
      border-radius: var(--radius-lg); padding: 16px 18px;
      box-shadow: var(--shadow-sm);
    }

    .stat-label {
      font-size: 11px; font-weight: 700; letter-spacing: .5px;
      text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px;
    }

    .stat-value {
      font-size: 26px; font-weight: 800; color: var(--ink);
      letter-spacing: -1px; line-height: 1;
    }

    .stat-sub {
      font-size: 11.5px; color: var(--ink-3); margin-top: 4px;
    }

    .stat-card.accent-orange .stat-value { color: var(--brand); }
    .stat-card.accent-green .stat-value { color: var(--green); }
    .stat-card.accent-purple .stat-value { color: var(--purple); }

    /* ===== INCIDENT TABLE SECTION ===== */
    .section-header {
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
    }

    .section-title {
      font-size: 14px; font-weight: 700; color: var(--ink);
    }

    .search-wrap {
      display: flex; align-items: center; gap: 8px;
    }

    .search-input {
      width: 240px; height: 34px;
      border: 1px solid var(--line); border-radius: var(--radius-sm);
      background: var(--surface); padding: 0 12px 0 34px;
      font: inherit; font-size: 12.5px; color: var(--ink);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239CA3AF' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: 10px center;
    }
    .search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,88,26,.1); }

    /* ===== INCIDENTS CONTAINER ===== */
    .incidents-container {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .inc-table-head {
      display: grid;
      grid-template-columns: 1fr 140px 110px 130px 120px;
      padding: 10px 16px;
      border-bottom: 1px solid var(--line);
      background: var(--line-2);
    }

    .inc-th {
      font-size: 11px; font-weight: 700; letter-spacing: .5px;
      text-transform: uppercase; color: var(--ink-4);
    }

    .inc-th:not(:first-child) { text-align: center; }

    .incident-list { display: flex; flex-direction: column; }

    .incident-item {
      display: grid;
      grid-template-columns: 1fr 140px 110px 130px 120px;
      align-items: center;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      transition: background .1s;
      cursor: default;
    }

    .incident-item:last-child { border-bottom: 0; }
    .incident-item:hover { background: #FAFAFA; }

    .inc-main { min-width: 0; }

    .inc-id-row {
      display: flex; align-items: center; gap: 8px; margin-bottom: 3px;
    }

    .inc-id {
      font-size: 13px; font-weight: 700; color: var(--ink);
    }

    .inc-service {
      font-size: 12px; color: var(--ink-3);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }

    .inc-leader {
      font-size: 11.5px; color: var(--ink-4); margin-top: 2px;
    }

    .inc-cell { text-align: center; }

    .type-badge {
      display: inline-flex; align-items: center; gap: 4px;
      border-radius: 999px; font-size: 11px; font-weight: 700;
      padding: 3px 10px; white-space: nowrap;
    }

    .type-badge::before {
      content: ""; width: 5px; height: 5px; border-radius: 50%;
    }

    .type-badge-apertura {
      background: #FEF3EC; color: #9A3412; border: 1px solid #FED7AA;
    }
    .type-badge-apertura::before { background: #EA580C; }

    .type-badge-avance {
      background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE;
    }
    .type-badge-avance::before { background: #3B82F6; }

    .type-badge-cierre {
      background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green-border);
    }
    .type-badge-cierre::before { background: var(--green); }

    .inc-date {
      font-size: 11.5px; color: var(--ink-3);
    }

    .inc-actions {
      display: flex; align-items: center; justify-content: flex-end; gap: 4px;
    }

    .row-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; border-radius: 6px;
      border: 1px solid var(--line); background: var(--surface);
      cursor: pointer; color: var(--ink-3);
      transition: background .1s, border-color .1s, color .1s;
    }
    .row-btn:hover { background: var(--line-2); color: var(--ink); border-color: #D1D5DB; }
    .row-btn.danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }
    .row-btn svg { width: 13px; height: 13px; }

    .empty-state {
      padding: 48px 24px; text-align: center;
      color: var(--ink-4); font-size: 13px;
    }

    .empty-state-icon {
      width: 40px; height: 40px; margin: 0 auto 12px;
      background: var(--line-2); border-radius: var(--radius);
      display: grid; place-items: center; color: var(--ink-4);
    }

    /* ===== EDITOR ===== */
    .wrap { width: min(720px, calc(100vw - 24px)); margin: 24px auto 40px; display: none; }
    body.editor-open .wrap { display: block; }

    .incident-card {
      background: var(--surface); border-radius: var(--radius-xl);
      box-shadow: var(--shadow-md); padding: 24px 28px 28px;
      border: 1px solid var(--line);
    }

    /* HEADER EDITOR */
    .header {
      display: grid;
      grid-template-columns: 56px 1fr minmax(120px, 160px);
      gap: 14px;
      align-items: center;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .type-logo-slot {
      width: 52px; height: 52px; border-radius: 14px;
      overflow: hidden; display: grid; place-items: center; flex-shrink: 0;
    }
    .type-logo-slot img { width: 100%; height: 100%; object-fit: cover; }

    .title-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }

    .logo-slot { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; }
    .logo-slot img { max-width: 150px; max-height: 52px; object-fit: contain; }

    .title {
      border-radius: 6px; padding: 4px 10px;
      font-size: 15px; font-weight: 800; letter-spacing: .2px;
      line-height: 1.2; text-transform: uppercase;
      color: var(--brand-dark); background: var(--brand-soft);
      border: 1px solid var(--brand-border);
    }

    .incident-id {
      border-radius: 6px; color: var(--brand-dark);
      font-size: 11px; font-weight: 700; padding: 3px 8px; line-height: 1.2;
      background: white; border: 1px solid var(--brand-border);
    }

    .logo-placeholder {
      width: 120px; min-height: 36px; display: grid; place-items: center;
      border: 1px dashed var(--brand-border); border-radius: var(--radius-sm);
      color: var(--brand-dark); font-size: 10px; text-align: center; padding: 6px;
    }

    /* META GRID */
    .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
    .meta-label { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
    .meta-value { font-size: 15px; font-weight: 700; color: var(--ink); }
    .meta-value[contenteditable="true"]:focus { box-shadow: 0 0 0 2px rgba(232,88,26,.18); border-radius: 4px; }
    .since-row { display: flex; gap: 8px; flex-wrap: wrap; }
    .since-row input {
      border: 1px solid var(--line); border-radius: var(--radius-sm);
      background: var(--line-2); padding: 6px 8px; font: inherit; color: var(--ink-2);
    }
    .since-row input:focus { outline: none; border-color: var(--brand); }

    /* TYPE WRAP / STEPPER */
    .type-wrap { padding: 18px 0; border-bottom: 1px solid var(--line); }
    .type-title { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }

    .stepper { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: start; padding-top: 2px; }
    .stepper .line { position: absolute; top: 18px; left: 16.66%; right: 16.66%; height: 4px; background: var(--line); border-radius: 999px; z-index: 0; overflow: hidden; }
    .stepper .progress { width: 0%; height: 100%; border-radius: inherit; transition: width .28s ease; background: linear-gradient(90deg, #22c55e, #10b981); }

    .step { position: relative; z-index: 1; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font: inherit; color: var(--ink-4); }
    .step:hover .step-circle { border-color: var(--brand); }

    .step-circle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: white; color: var(--ink-3); border: 2px solid var(--line); transition: all .18s ease; }

    .step-text { font-size: 12px; font-weight: 700; text-align: center; color: var(--ink-4); transition: color .18s ease; }
    .step.active .step-text, .step.done .step-text { color: var(--green-dark); }
    .step-circle.active { border: 3px solid #22c55e; box-shadow: 0 0 0 8px rgba(34,197,94,.1); color: var(--green-dark); }
    .step.done .step-circle { background: linear-gradient(135deg, #22c55e, #10b981); border-color: #22c55e; color: white; box-shadow: 0 0 0 5px rgba(34,197,94,.08); }

    /* SHARED FIELDS */
    .shared-fields {}
    .row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .row:last-child { border-bottom: 0; padding-bottom: 0; }
    .icon { width: 22px; height: 22px; display: grid; place-items: center; position: relative; line-height: 1; margin-top: 1px; }
    .icon::before, .icon::after { content: ""; position: absolute; box-sizing: border-box; }
    .icon-clock::before { width: 18px; height: 18px; border: 2px solid #7f8790; border-radius: 50%; background: #fff; }
    .icon-clock::after { width: 6px; height: 6px; border-left: 2px solid #d02b6d; border-bottom: 2px solid #d02b6d; left: 10px; top: 6px; }
    .icon-people::before, .icon-leader::before { width: 7px; height: 7px; top: 3px; left: 7px; border-radius: 50%; background: var(--purple); box-shadow: -6px 4px 0 -1px #7b4aa6, 6px 4px 0 -1px #7b4aa6; }
    .icon-people::after, .icon-leader::after { width: 20px; height: 8px; left: 1px; bottom: 2px; border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg,#6e3f98,#3d2366); }
    .icon-status { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); margin: 4px; box-shadow: 0 0 0 3px #e7eef8; }
    .icon-alert::before { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 18px solid #f8b84e; top: 1px; left: 1px; }
    .icon-alert::after { content: "!"; top: 6px; left: 9px; color: #8e5f10; font-size: 12px; font-weight: 900; }
    .icon-service::before { width: 16px; height: 16px; border: 3px solid #bda7d7; border-radius: 50%; top: 3px; left: 3px; box-shadow: 0 -7px 0 -4px #bda7d7, 0 7px 0 -4px #bda7d7, 7px 0 0 -4px #bda7d7, -7px 0 0 -4px #bda7d7; }
    .icon-puzzle { width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(135deg,#3fae6a,#1d7b46); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); margin: 1px; }
    .icon-pin::before { width: 6px; height: 18px; border-radius: 3px; background: #d02b6d; transform: rotate(45deg); top: 1px; left: 9px; box-shadow: 0 0 0 1px #f095bc inset; }
    .icon-pin::after { width: 10px; height: 4px; background: #6f2d83; transform: rotate(45deg); top: 7px; left: 5px; border-radius: 4px; }
    .icon-next::before { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 8px solid #629ae8; left: 4px; top: 4px; filter: drop-shadow(6px 0 0 #629ae8); }
    .icon-next::after { width: 2px; height: 14px; right: 3px; top: 4px; background: #3a73c4; border-radius: 2px; }

    .field-line { min-height: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .label { color: var(--ink-2); font-weight: 700; white-space: nowrap; font-size: 12.5px; }
    .pipe { color: var(--brand-border); margin: 0 4px; }
    .pill, .editable-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line-2);
  color: var(--ink-2);
  padding: 3px 8px;
  min-height: 22px;
  line-height: 1.4;
  font-size: 12px;
}

.editable-chip:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-4);
}
    .textbox { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #FAFBFC; padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); min-height: 40px; }
    .textbox:empty::before { content: attr(data-placeholder); color: var(--ink-4); }
    [contenteditable="true"] { outline: 0; }
    [contenteditable="true"]:focus { box-shadow: 0 0 0 2px rgba(232,88,26,.18); border-radius: 4px; }

    /* TYPE SECTIONS */
    .type-section { display: none; }
    .type-section.active { display: block; animation: fadeIn .2s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

    /* LIST ITEMS */
    .list-items-container { margin-top: 8px; }
    .list-item { display: flex; gap: 8px; margin-top: 8px; padding: 10px; background: var(--line-2); border: 1px solid var(--line); border-radius: 6px; align-items: flex-start; }
    .list-item-content { flex: 1; min-width: 0; }
    .list-item-text { font: inherit; border: 0; background: transparent; width: 100%; padding: 4px; color: var(--ink-2); font-size: 12px; resize: vertical; min-height: 35px; }
    .list-item-remove { background: transparent; border: 0; color: #EF4444; cursor: pointer; font-weight: 900; padding: 0; font-size: 18px; flex: 0 0 auto; }
    .list-item-remove:hover { color: #DC2626; }
    .btn-add-item { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; border: 1px dashed var(--brand-border); border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-dark); cursor: pointer; font-weight: 700; min-height: 28px; padding: 4px 12px; font-size: 11.5px; font: inherit; }
    .btn-add-item:hover { background: #FDE8D8; }

    /* TIMELINE */
    .timeline-wrap { margin-top: 8px; }
    .timeline-list { position: relative; padding-left: 32px; }
    .timeline-list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
    .timeline-entry { position: relative; margin-bottom: 12px; background: var(--line-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 36px 10px 12px; }
    .timeline-entry::before { content: ""; position: absolute; left: -28px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
    .timeline-time { font-size: 10.5px; font-weight: 800; color: var(--brand-dark); letter-spacing: .3px; margin-bottom: 4px; }
    .timeline-time input { font: inherit; font-size: 10.5px; font-weight: 800; color: var(--brand-dark); border: 0; background: transparent; width: 100%; padding: 0; }
    .timeline-content { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
    .timeline-content textarea { font: inherit; font-size: 12px; border: 0; background: transparent; width: 100%; resize: vertical; min-height: 36px; color: var(--ink-2); padding: 0; }
    .timeline-remove { position: absolute; top: 6px; right: 6px; background: transparent; border: 0; color: #EF4444; cursor: pointer; font-weight: 900; padding: 0; font-size: 16px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; }
    .timeline-remove:hover { background: rgba(239,68,68,.1); }
    .timeline-empty { color: var(--ink-4); font-size: 12px; padding: 12px 0; text-align: center; }
    .timeline-actions { display: flex; justify-content: flex-start; margin-bottom: 8px; }
    .btn-toggle-timeline { border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; color: var(--ink-2); cursor: pointer; font-weight: 700; padding: 5px 10px; font-size: 11.5px; min-height: 28px; }
    .btn-toggle-timeline:hover { background: var(--line-2); }
    /* PRÓXIMOS PASOS COMO TIMELINE */
.pasos-list {
  margin-top: 8px;
}

.paso-entry {
  padding-top: 12px;
  padding-bottom: 12px;
}

.paso-entry::before {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.paso-entry textarea {
  font: inherit;
  font-size: 12px;
  border: 0;
  background: transparent;
  width: 100%;
  resize: vertical;
  min-height: 36px;
  color: var(--ink-2);
  padding: 0;
  outline: none;
}

.paso-entry textarea:focus {
  background: rgba(37, 99, 235, 0.04);
  border-radius: 6px;
  padding: 4px;
}

    /* LOGO TOP */
    .compensar-top { display: flex; align-items: center; padding: 0; }
    .compensar-top img { max-height: 50px; object-fit: contain; }

    /* RESPONSIVE */
    @media (max-width: 700px) {
      .home-page { padding: 20px 14px 32px; }
      .hero-title { font-size: 22px; }
      .stats-row { grid-template-columns: 1fr 1fr; }
      .inc-table-head { display: none; }
      .incident-item { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 8px; }
      .inc-cell.type-cell { grid-column: 2; grid-row: 1; }
      .inc-cell.date-cell, .inc-cell.actions-cell { display: none; }
      .inc-actions { grid-column: 2; grid-row: 2; }
      .incident-card { padding: 18px 16px; }
      .header { display: flex; flex-wrap: wrap; gap: 8px; }
      .title-block { flex: 1; min-width: 150px; }
      .logo-slot img { max-width: 100px; }
      .meta-grid { grid-template-columns: 1fr; }
    }

    /* ===== MODO EXPORTACIÓN DE IMAGEN ===== */
body.exporting-image .incident-card {
  background: #ffffff !important;
  color: #111827 !important;
  opacity: 1 !important;
  filter: none !important;
}

body.exporting-image .row,
body.exporting-image .type-section,
body.exporting-image .shared-fields,
body.exporting-image .timeline-wrap,
body.exporting-image .timeline-list,
body.exporting-image .list-items-container {
  opacity: 1 !important;
  filter: none !important;
}

body.exporting-image .timeline-entry,
body.exporting-image .paso-entry,
body.exporting-image .list-item,
body.exporting-image .textbox,
body.exporting-image .pill,
body.exporting-image .editable-chip {
  background: #F9FAFB !important;
  color: #111827 !important;
  opacity: 1 !important;
  filter: none !important;
}

body.exporting-image .label,
body.exporting-image .timeline-content,
body.exporting-image .timeline-time,
body.exporting-image .list-item-text,
body.exporting-image textarea,
body.exporting-image input,
body.exporting-image [contenteditable="true"] {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  opacity: 1 !important;
  filter: none !important;
}

body.exporting-image .timeline-time input {
  color: var(--brand-dark) !important;
  -webkit-text-fill-color: var(--brand-dark) !important;
}

body.exporting-image .export-textarea-value {
  width: 100%;
  min-height: 36px;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent !important;
  opacity: 1 !important;
}

    @media print {
      body { background: #fff; }
      .topbar, .sync-bar, .sync-badge, .home-page { display: none !important; }
      .wrap { width: 100%; margin: 0; }
      .incident-card { box-shadow: none; border-radius: 0; }
      .list-item-remove, .timeline-remove, .btn-add-item { display: none; }
      [contenteditable] { border: none !important; box-shadow: none !important; }
    }
    .export-textarea-value,
    .export-input-value {
      min-height: 22px;
      padding: 6px 8px;
      border-radius: 8px;
      background: #F9FAFB;
      color: #111827;
      font: inherit;
      white-space: pre-wrap;
      word-break: break-word;
    }