:root {
      --bg: #f5f7fb;
      --panel: #ffffff;
      --panel-2: #f9fbff;
      --ink: #14213d;
      --muted: #667085;
      --line: #d9e1ef;
      --line-strong: #b8c5d9;
      --blue: #2166e8;
      --blue-soft: #eaf1ff;
      --cyan: #00a3c7;
      --green: #16a34a;
      --green-soft: #eaf8ef;
      --orange: #f59e0b;
      --orange-soft: #fff4df;
      --violet: #7c3aed;
      --violet-soft: #f1eaff;
      --red: #e11d48;
      --shadow: 0 16px 42px rgba(20, 33, 61, .10);
      --radius: 18px;
      --radius-sm: 12px;
      --sidebar: 292px;
      --theme-primary: var(--blue);
      --theme-secondary: var(--cyan);
      --theme-accent: var(--green);
      --theme-soft: var(--blue-soft);
      --theme-line: #bed5ff;
      --theme-ink: var(--ink);
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
    body { overflow: hidden; }
    button, input, textarea, select { font: inherit; }
    .app { height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 12px; padding: 12px; transition: grid-template-columns .22s ease, gap .22s ease; }
    .app.sidebar-collapsed { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }

    .sidebar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 0; position: relative; transition: width .22s ease, border-radius .22s ease; }
    .sidebar-toggle { position: absolute; top: 10px; right: 10px; z-index: 6; width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); box-shadow: 0 8px 18px rgba(20,33,61,.10); cursor: pointer; font-size: 15px; font-weight: 950; line-height: 1; display: grid; place-items: center; transition: .18s ease; }
    .sidebar-toggle:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: 0 12px 24px rgba(33,102,232,.14); }
    .sidebar-rail { display: none; height: 100%; width: 100%; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: 10px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%); padding-top: 46px; }
    .app.sidebar-collapsed .sidebar { border-radius: 16px; }
    .app.sidebar-collapsed .brand,
    .app.sidebar-collapsed .stats,
    .app.sidebar-collapsed .toolbar,
    .app.sidebar-collapsed .list { display: none; }
    .app.sidebar-collapsed .sidebar-rail { display: flex; }
    .app.sidebar-collapsed .sidebar-toggle { left: 9px; right: auto; top: 10px; }
    .brand { padding: 17px 17px 12px; background: linear-gradient(135deg, #ffffff 0%, #eef5ff 62%, #f6f1ff 100%); border-bottom: 1px solid var(--line); }
    .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
    .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 0 0 4px rgba(33,102,232,.10); }
    h1 { margin: 8px 0 6px; font-size: 24px; line-height: 1; letter-spacing: -.045em; }
    .brand p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
    .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
    .stat { border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: var(--panel-2); }
    .stat b { display: block; font-size: 20px; letter-spacing: -.04em; }
    .stat span { color: var(--muted); font-size: 10.5px; }
    .toolbar { padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .search { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; color: var(--ink); background: #fff; outline: none; font-size: 13px; }
    .search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33,102,232,.10); }
    .list { padding: 10px; overflow: auto; min-height: 0; }
    .initiative-tab { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 0; cursor: pointer; margin-bottom: 8px; }
    .initiative-tab .inner { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: .18s ease; }
    .initiative-tab:hover .inner { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(20, 33, 61, .08); }
    .initiative-tab.active .inner { border-color: var(--blue); background: linear-gradient(135deg, #f7fbff, #edf4ff); box-shadow: 0 12px 28px rgba(33,102,232,.13); }
    .initiative-tab.client-theme.active .inner { border-color: var(--theme-primary); background: linear-gradient(135deg, #ffffff, var(--theme-soft)); box-shadow: 0 12px 28px rgba(20,33,61,.12); }
    .mini-ring { --p: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--p) * 1%), #e8eef8 0); position: relative; font-size: 10.5px; font-weight: 900; color: var(--ink); }
    .initiative-tab.client-theme .mini-ring { background: conic-gradient(var(--theme-primary) calc(var(--p) * 1%), #e8eef8 0); }
    .mini-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
    .mini-ring span { position: relative; z-index: 1; }
    .tab-title { font-size: 12.2px; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .tab-meta { color: var(--muted); margin-top: 4px; font-size: 10.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .type-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
    .type-dot.business { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
    .initiative-tab.client-theme .type-dot.business { background: var(--theme-primary); box-shadow: 0 0 0 4px var(--theme-soft); }

    main { min-width: 0; min-height: 0; }
    .page { height: calc(100vh - 24px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); box-shadow: var(--shadow); }
    .page-shell { height: 100%; padding: 10px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; position: relative; overflow: hidden; }
    .page-shell > * { position: relative; z-index: 1; }
    .page-shell.client-theme::before { content: ""; position: absolute; inset: 0; height: 8px; background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary)); z-index: 0; }
    .page-shell.client-theme::after { content: ""; position: absolute; top: -120px; right: -90px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--theme-soft) 0%, rgba(255,255,255,0) 70%); z-index: 0; pointer-events: none; }
    .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
    .breadcrumbs { color: var(--muted); font-size: 11.5px; font-weight: 700; }
    .save-state { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
    .save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
    .save-state.dirty::before { background: var(--orange); }
    .actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
    .btn { border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 9px; background: #fff; color: var(--ink); cursor: pointer; transition: .16s ease; font-size: 11.5px; font-weight: 800; }
    .btn:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: 0 8px 18px rgba(33,102,232,.10); }
    .client-theme .btn:hover { border-color: var(--theme-primary); box-shadow: 0 8px 18px rgba(20,33,61,.12); }
    .btn.primary { border: 0; background: linear-gradient(135deg, var(--blue), #00a3c7); color: #fff; box-shadow: 0 10px 22px rgba(33,102,232,.22); }
    .client-theme .btn.primary { background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)); }
    .btn.save { border: 0; background: var(--green); color: #fff; box-shadow: 0 10px 20px rgba(22,163,74,.18); }

    .initiative-screen { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr); gap: 8px; }
    .left-stack, .right-stack { min-height: 0; display: grid; gap: 8px; }
    .left-stack { grid-template-rows: auto auto minmax(0, 1fr); }
    .right-stack { grid-template-rows: auto minmax(0, 1fr); }
    .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(20, 33, 61, .06); overflow: hidden; }
    .header-card { padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 142px; }
    .client-theme .header-card { border-top: 5px solid var(--theme-primary); background: linear-gradient(135deg, #ffffff 0%, var(--theme-soft) 78%, #ffffff 100%); }
    .header-card { grid-template-columns: minmax(0, 1fr) 128px; align-items: stretch; }
    .header-main { min-width: 0; }
    .client-logo-card { align-self: start; min-height: 70px; max-height: 86px; border: 1px solid var(--theme-line, var(--line)); border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 8px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.65), 0 8px 18px rgba(20,33,61,.05); }
    .client-logo-card.internal-logo { border-color: #e5e7eb; background: #fff; }
    .client-logo-card img { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
    .logo-itau img { max-height: 62px; }
    .logo-entel img { max-height: 40px; }
    .logo-dcv img { max-height: 40px; }
    .logo-bancochile img { max-height: 54px; }
    .logo-bancoestado img { max-height: 58px; }
    .logo-tcs img { max-height: 44px; }
    .type-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
    .badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; background: #fff; color: var(--muted); font-size: 10.5px; font-weight: 850; }
    .badge.business { color: #075985; background: var(--blue-soft); border-color: #bed5ff; }
    .client-theme .badge.business { color: var(--theme-primary); background: #fff; border-color: var(--theme-line); box-shadow: inset 0 0 0 3px var(--theme-soft); }
    .badge.internal { color: #5b21b6; background: var(--violet-soft); border-color: #d9c6ff; }
    .title-label { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 9.7px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }
    .client-theme .title-label { color: var(--theme-primary); }
    .title-label::before { content: ""; width: 20px; height: 3px; border-radius: 99px; background: var(--blue); }
    .client-theme .title-label::before { background: var(--theme-primary); }
    .initiative-title { margin: 0; font-size: clamp(20px, 2.45vw, 32px); line-height: .97; letter-spacing: -.052em; min-height: 32px; max-height: 58px; overflow: hidden; }
    .description-wrap { margin-top: 7px; border-left: 4px solid var(--cyan); background: #f7fbff; border-radius: 11px; padding: 7px 8px; }
    .client-theme .description-wrap { border-left-color: var(--theme-secondary); background: rgba(255,255,255,.72); }
    .description-label { color: var(--cyan); font-weight: 950; font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 3px; }
    .client-theme .description-label { color: var(--theme-secondary); }
    .description { color: #344054; line-height: 1.27; font-size: 11.4px; max-height: 50px; overflow: auto; white-space: pre-wrap; padding-right: 4px; }
    .ring-card { padding: 8px; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: center; }
    .ring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--progress) * 1%), #e5ebf5 0); position: relative; }
    .client-theme .ring { background: conic-gradient(var(--theme-primary) calc(var(--progress) * 1%), #e5ebf5 0); }
    .ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
    .ring-content { position: relative; z-index: 1; text-align: center; }
    .ring-value { font-size: 23px; font-weight: 950; letter-spacing: -.06em; }
    .ring-label { color: var(--muted); font-size: 8.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
    .progress-summary h2 { margin: 0 0 2px; font-size: 15px; letter-spacing: -.03em; }
    .progress-summary p { margin: 0; color: var(--muted); font-size: 10.8px; line-height: 1.28; }

    .fields-card { padding: 8px; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
    .section-title h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
    .section-title span { font-size: 10px; font-weight: 850; color: var(--muted); }
    .fields-grid { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .field { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 6px 7px; min-height: 46px; position: relative; overflow: hidden; }
    .field::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
    .client-theme .field::before { background: var(--theme-primary); }
    .field:nth-child(2)::before, .field:nth-child(7)::before { background: var(--cyan); }
    .client-theme .field:nth-child(2)::before, .client-theme .field:nth-child(7)::before { background: var(--theme-secondary); }
    .field:nth-child(3)::before, .field:nth-child(8)::before { background: var(--violet); }
    .client-theme .field:nth-child(3)::before, .client-theme .field:nth-child(8)::before { background: var(--theme-accent); }
    .field:nth-child(4)::before { background: var(--green); }
    .client-theme .field:nth-child(4)::before { background: var(--theme-primary); }
    .field:nth-child(5)::before { background: var(--orange); }
    .client-theme .field:nth-child(5)::before { background: var(--theme-secondary); }
    .label { color: var(--muted); font-size: 8.4px; text-transform: uppercase; letter-spacing: .09em; font-weight: 950; margin-bottom: 3px; padding-left: 4px; }
    .editable { outline: none; min-height: 17px; color: var(--ink); line-height: 1.17; border-radius: 8px; font-size: 11.4px; font-weight: 700; }
    .editable:focus { box-shadow: 0 0 0 4px rgba(33,102,232,.10); background: #f7fbff; }
    .client-theme .editable:focus { box-shadow: 0 0 0 4px var(--theme-soft); background: #fff; }
    .editable.empty:before { content: attr(data-placeholder); color: #9a6700; font-style: italic; font-weight: 700; }
    .editable.empty { border: 1px dashed #f0bd59; background: var(--orange-soft); padding: 3px 5px; min-height: 24px; }

    .progress-card { padding: 8px; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .progress-list { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-content: start; }
    .progress-row { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 6px 7px; transition: .16s ease; }
    .progress-row.excluded { background: #f8fafc; opacity: .72; border-style: dashed; }
    .progress-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; margin-bottom: 3px; }
    .progress-title { font-weight: 900; font-size: 10.4px; line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .progress-flags { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
    .weight { color: var(--blue); font-weight: 950; font-size: 9.6px; white-space: nowrap; }
    .client-theme .weight { color: var(--theme-primary); }
    .apply-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; background: var(--green-soft); color: #166534; font-size: 9.2px; font-weight: 950; cursor: pointer; user-select: none; white-space: nowrap; }
    .apply-pill.off { background: #f3f4f6; color: var(--muted); }
    .apply-pill input { margin: 0; width: 12px; height: 12px; accent-color: var(--green); }
    .client-theme .apply-pill input { accent-color: var(--theme-primary); }
    .progress-row.excluded input[type="range"], .progress-row.excluded .pct-input { opacity: .55; }
    .slider-line { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 6px; align-items: center; }
    input[type="range"] { width: 100%; accent-color: var(--blue); }
    .client-theme input[type="range"] { accent-color: var(--theme-primary); }
    .pct-input { width: 42px; border: 1px solid var(--line); background: #f8fbff; color: var(--ink); border-radius: 8px; padding: 3px 4px; text-align: center; font-size: 11px; font-weight: 900; }
    .bar { height: 4px; border-radius: 99px; background: #e8eef8; overflow: hidden; margin-top: 4px; }
    .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); }
    .client-theme .bar i { background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary)); }
    .contribution { margin-top: 2px; color: var(--muted); font-size: 9.2px; font-weight: 750; }
    .objectives-card { padding: 8px; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .objectives-editor { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 10px; min-height: 74px; max-height: 128px; overflow: auto; white-space: pre-wrap; font-size: 11.8px; line-height: 1.24; }
    .client-theme .objectives-editor { border-color: var(--theme-line); box-shadow: inset 4px 0 0 var(--theme-primary); }
    .objectives-editor.empty { min-height: 74px; }
    .objectives-editor::selection { background: var(--theme-soft, #eaf1ff); }
    .empty-state { padding: 18px; color: var(--muted); font-weight: 750; }
    .toast { position: fixed; right: 18px; bottom: 18px; background: #101828; color: #fff; border-radius: 999px; padding: 11px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.22); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .22s ease; font-weight: 850; font-size: 13px; z-index: 20; }
    .toast.show { transform: translateY(0); opacity: 1; }

    /* Paletas suavizadas según los logos entregados por el usuario. */
    .theme-itau {
      --theme-primary: #ff6200;
      --theme-secondary: #111111;
      --theme-accent: #ffb36b;
      --theme-soft: #fff6ef;
      --theme-line: #ffd2ad;
      --theme-ink: #151515;
    }
    .theme-dcv {
      --theme-primary: #6d7c86;
      --theme-secondary: #1e9bd7;
      --theme-accent: #9ad8f4;
      --theme-soft: #f4fbfe;
      --theme-line: #cbeaf7;
      --theme-ink: #27323a;
    }
    .theme-entel {
      --theme-primary: #00639a;
      --theme-secondary: #ff7a18;
      --theme-accent: #2ba3db;
      --theme-soft: #f2f9ff;
      --theme-line: #c7e2f4;
      --theme-ink: #103449;
    }
    .theme-bancoestado {
      --theme-primary: #b70024;
      --theme-secondary: #f07a00;
      --theme-accent: #25315c;
      --theme-soft: #fff7ef;
      --theme-line: #ffc98f;
      --theme-ink: #283044;
    }
    .theme-bancochile {
      --theme-primary: #07166f;
      --theme-secondary: #0b2f87;
      --theme-accent: #ffffff;
      --theme-soft: #f3f6ff;
      --theme-line: #c9d6ff;
      --theme-ink: #101d4a;
    }

    @media (max-width: 1120px) {
      .header-card { grid-template-columns: 1fr; }
      .client-logo-card { max-width: 220px; }
      :root { --sidebar: 252px; }
      .initiative-screen { grid-template-columns: 1fr; overflow: auto; }
      .fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .left-stack { grid-template-rows: auto auto auto; }
      .page { overflow: auto; }
      body { overflow: auto; }
      .app { min-height: 100vh; height: auto; }
    }
    @media print {
      body { overflow: visible; background: #fff; }
      .app { display: block; height: auto; padding: 0; }
      .sidebar, .actions, .sidebar-toggle { display: none !important; }
      .page { height: auto; box-shadow: none; border: none; }
      .initiative-screen { grid-template-columns: 1fr; }
    }

.api-error { padding: 18px; color: #991b1b; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 14px; font-weight: 800; }

/* Reorganización ejecutiva de la sección central: título, descripción, objetivos, personas, status y tareas. */
.executive-stack { grid-template-rows: minmax(0, 1fr); }
.initiative-detail-card {
  min-height: 0;
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 7px;
  overflow: hidden;
}
.initiative-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
.client-theme .initiative-detail-top {
  border-top: 5px solid var(--theme-primary);
  background: linear-gradient(135deg, #ffffff 0%, var(--theme-soft) 84%, #ffffff 100%);
}
.detail-main { min-width: 0; }
.editable-badge {
  min-width: 70px;
  outline: none;
}
.editable-badge:empty::before { content: attr(data-placeholder); color: var(--muted); font-style: italic; }
.block-editor { min-width: 0; }
.block-label,
.subsection-title {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 950;
  margin-bottom: 3px;
}
.client-theme .block-label,
.client-theme .subsection-title { color: var(--theme-primary); }
.title-block .block-label { color: var(--theme-primary, var(--blue)); }
.compact-title { margin-top: 3px; }
.compact-title .editable {
  font-size: clamp(19px, 2.15vw, 29px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 950;
  max-height: 58px;
  overflow: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-height: 108px;
}
.text-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px 9px;
  min-height: 92px;
  overflow: hidden;
  box-shadow: inset 4px 0 0 var(--cyan);
}
.client-theme .text-block { border-color: var(--theme-line); box-shadow: inset 4px 0 0 var(--theme-primary); }
.text-block .editable {
  min-height: 56px;
  max-height: 82px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 11.4px;
  line-height: 1.24;
  font-weight: 700;
}
.objectives-panel { box-shadow: inset 4px 0 0 var(--orange); }
.client-theme .objectives-panel { box-shadow: inset 4px 0 0 var(--theme-secondary); }
.people-status-grid {
  min-height: 98px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, .75fr);
  gap: 7px;
}
.subsection {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px 9px;
  min-width: 0;
  overflow: hidden;
}
.client-theme .subsection { border-color: var(--theme-line); }
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.person-field {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbff;
  padding: 5px 7px;
  min-height: 42px;
}
.client-theme .person-field { background: #fff; border-color: var(--theme-line); }
.person-field .editable {
  min-height: 17px;
  max-height: 34px;
  overflow: auto;
  font-size: 11.1px;
  line-height: 1.18;
  font-weight: 800;
}
.status-editor {
  min-height: 58px;
  max-height: 78px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 11.4px;
  line-height: 1.24;
  font-weight: 700;
}
.tasks-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4px;
}
.tasks-title {
  margin-bottom: 2px;
  align-items: center;
}
.task-add-btn {
  padding: 4px 8px;
  font-size: 10.5px;
  border-color: var(--theme-line, var(--line-strong));
  color: var(--theme-primary, var(--blue));
}
.tasks-table {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.client-theme .tasks-table { border-color: var(--theme-line); }
.task-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.3fr) minmax(0, .85fr) 30px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  border-bottom: 1px solid #eef2f8;
}
.task-row:last-child { border-bottom: 0; }
.task-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.client-theme .task-head { background: var(--theme-soft); color: var(--theme-primary); }
.task-date {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
}
.task-cell {
  min-height: 27px;
  max-height: 54px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 6px;
  background: #fff;
  font-size: 11.2px;
  line-height: 1.18;
  font-weight: 750;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}
.task-delete {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-weight: 950;
  cursor: pointer;
}
.task-delete:hover { background: #ffe4e6; }
.task-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 750;
  font-size: 11.5px;
}

@media (max-width: 1120px) {
  .initiative-detail-top,
  .detail-grid,
  .people-status-grid { grid-template-columns: 1fr; }
  .initiative-detail-card { overflow: visible; }
  .task-row { grid-template-columns: 110px minmax(0, 1fr); }
  .task-row > :nth-child(3) { grid-column: 1 / span 2; }
  .task-row > :nth-child(4) { grid-column: 2; justify-self: end; }
}


/* Ajustes visuales v2: header más limpio y escala de progreso legible en una columna. */
.initiative-detail-top {
  grid-template-columns: minmax(0, 1fr) 122px;
  padding: 7px 8px;
  gap: 8px;
}
.detail-main .type-row { display: none; }
.compact-title { margin-top: 0; }
.title-block .block-label {
  margin-bottom: 4px;
  font-size: 8.8px;
}
.compact-title .editable {
  font-size: clamp(16px, 1.62vw, 23px);
  line-height: 1.06;
  letter-spacing: -.042em;
  max-height: 54px;
  overflow: hidden;
  padding-right: 2px;
}
.client-logo-card {
  min-height: 62px;
  max-height: 76px;
  padding: 7px;
}
.client-logo-card img { max-height: 48px; }
.logo-itau img { max-height: 54px; }
.logo-entel img, .logo-dcv img { max-height: 35px; }
.logo-bancochile img, .logo-bancoestado img { max-height: 46px; }
.logo-tcs img { max-height: 38px; }
.progress-card {
  padding: 9px;
}
.progress-list {
  grid-template-columns: 1fr;
  gap: 5px;
  align-content: start;
}
.progress-row {
  padding: 6px 8px;
  border-radius: 10px;
}
.progress-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 3px;
}
.progress-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 10.6px;
  line-height: 1.16;
  max-width: none;
}
.progress-flags {
  flex-wrap: nowrap;
}
.apply-pill {
  padding: 2px 6px;
  font-size: 9px;
}
.weight {
  font-size: 9.2px;
}
.slider-line {
  grid-template-columns: minmax(0, 1fr) 45px;
}
.pct-input {
  width: 45px;
}
.contribution {
  font-size: 9px;
}
@media (max-width: 1120px) {
  .initiative-detail-top { grid-template-columns: 1fr; }
  .compact-title .editable { max-height: none; overflow: visible; }
}


/* Ajustes v3: mayor limpieza y escala completa visible en 100% zoom. */
.brand { padding-bottom: 16px; }
.brand p { display: none; }
.breadcrumbs { font-size: 11.8px; }
.save-state { margin-left: 8px; }

.initiative-detail-top {
  padding: 6px 8px;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
}
.client-theme .initiative-detail-top { border-top-width: 4px; }
.title-block .block-label {
  font-size: 8.4px;
  margin-bottom: 2px;
}
.compact-title .editable {
  font-size: clamp(15px, 1.42vw, 21px);
  line-height: 1.04;
  letter-spacing: -.04em;
  max-height: 44px;
  overflow: hidden;
}
.client-logo-card {
  min-height: 54px;
  max-height: 66px;
  padding: 6px;
}
.client-logo-card img { max-height: 42px; }
.logo-itau img { max-height: 48px; }
.logo-entel img, .logo-dcv img { max-height: 31px; }
.logo-bancochile img, .logo-bancoestado img { max-height: 40px; }
.logo-tcs img { max-height: 34px; }

.ring-card {
  padding: 6px 8px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
}
.ring {
  width: 68px;
  height: 68px;
}
.ring::after { inset: 7px; }
.ring-value { font-size: 21px; }
.progress-summary h2 { font-size: 14px; }
.progress-summary p { font-size: 10.4px; line-height: 1.2; }

.progress-card {
  padding: 7px 8px;
  overflow: hidden;
}
.progress-card .section-title { margin-bottom: 5px; }
.progress-card .section-title h2 { font-size: 14px; }
.progress-card .section-title span { font-size: 10px; }
.progress-list {
  grid-template-columns: 1fr;
  gap: 4px;
  align-content: start;
  overflow: hidden;
}
.progress-row {
  padding: 5px 7px;
  border-radius: 10px;
}
.progress-head {
  margin-bottom: 2px;
  align-items: center;
  gap: 6px;
}
.progress-title {
  font-size: 10.3px;
  line-height: 1.08;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.progress-flags { gap: 5px; flex-wrap: nowrap; }
.apply-pill {
  padding: 1px 5px;
  font-size: 8.8px;
}
.apply-pill input { width: 11px; height: 11px; }
.weight {
  font-size: 9px;
  min-width: 28px;
  text-align: right;
}
.slider-line {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
}
.pct-input {
  width: 42px;
  padding: 2px 4px;
  font-size: 10.5px;
}
.bar { height: 3px; margin-top: 3px; }
.contribution { display: none !important; }

/* v4: creación de nuevas iniciativas */
.toolbar {
  display: grid;
  gap: 8px;
}
.new-initiative-btn {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 22px rgba(33,102,232,.14);
}
.new-initiative-btn:hover {
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(33,102,232,.20);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
}
.modal-backdrop.show { display: flex; }
.modal-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .25);
  overflow: hidden;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 12px;
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border-bottom: 1px solid var(--line);
}
.modal-eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.modal-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.04em;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}
.modal-form {
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.form-field input,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 13px;
  font-weight: 750;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(33,102,232,.10);
}
.modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}


/* Pantalla de acceso */
.login-body {
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(33,102,232,.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0,163,199,.16), transparent 38%),
    var(--bg);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.login-eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1;
}
.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.35;
}
.login-error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 14px;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-form input {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(33,102,232,.10);
}
.login-btn {
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}
.hash-card { width: min(680px, 100%); }
.hash-output-label {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hash-output {
  width: 100%;
  min-height: 92px;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.hash-back { margin-top: 16px !important; }
.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px 9px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
}
.logout-link:hover {
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(225,29,72,.10);
}

/* v5: cliente editable y corrección de logos/listado al crear nuevas iniciativas. */
.compact-client {
  margin-top: 4px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.compact-client .block-label {
  margin: 0;
  color: var(--muted);
  font-size: 8.2px;
  letter-spacing: .10em;
  white-space: nowrap;
}
.compact-client .editable {
  min-height: 20px;
  max-height: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.6px;
  line-height: 1.15;
  font-weight: 850;
}
.client-theme .compact-client .editable {
  border-color: var(--theme-line);
  color: var(--theme-primary);
}
.compact-client .editable.empty {
  border-radius: 999px;
  padding: 3px 9px;
  min-height: 20px;
}

/* v8: vista Overview ejecutivo. */
.overview-btn {
  width: 100%;
  justify-content: center;
  border: 0;
  background: linear-gradient(135deg, #14213d, #2166e8);
  color: #fff;
  box-shadow: 0 10px 20px rgba(33,102,232,.16);
}
.overview-btn.active {
  background: linear-gradient(135deg, #00a3c7, #2166e8);
  box-shadow: 0 12px 24px rgba(0,163,199,.18);
}
.overview-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  overflow: hidden;
}
.overview-screen {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}
.overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.overview-kpi {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px 13px;
  box-shadow: 0 10px 24px rgba(20,33,61,.06);
  min-height: 86px;
  position: relative;
  overflow: hidden;
}
.overview-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}
.overview-kpi-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.overview-kpi-value {
  margin-top: 5px;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.06em;
  color: var(--ink);
}
.overview-kpi-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}
.overview-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 8px;
}
.overview-clients-card,
.overview-table-card {
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.overview-client-list,
.overview-table-wrap {
  min-height: 0;
  overflow: auto;
}
.overview-client-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-right: 3px;
}
.overview-client-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  transition: .16s ease;
}
.overview-client-card:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(33,102,232,.10);
}
.overview-client-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.overview-client-head img {
  max-width: 48px;
  max-height: 34px;
  object-fit: contain;
}
.overview-client-head b {
  display: block;
  font-size: 13px;
  line-height: 1.05;
}
.overview-client-head span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 750;
}
.overview-client-head strong {
  font-size: 18px;
  letter-spacing: -.04em;
}
.overview-client-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: block;
}
.overview-mini-bars {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
.mini-metric {
  display: grid;
  grid-template-columns: 78px 36px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  font-weight: 850;
}
.mini-metric b {
  color: var(--ink);
  text-align: right;
}
.mini-metric i {
  height: 5px;
  border-radius: 99px;
  background: #e8eef8;
  overflow: hidden;
}
.mini-metric em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.overview-client-footer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}
.overview-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 11.5px;
}
.overview-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7fbff;
  color: var(--muted);
  text-align: left;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.client-group-row td {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.client-group-row b {
  display: inline-block;
  margin-right: 8px;
  font-size: 12px;
}
.client-group-row span {
  color: var(--muted);
  font-weight: 800;
  font-size: 10.5px;
}
.overview-initiative-row td {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 9px;
  vertical-align: middle;
}
.overview-initiative-row td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
  font-weight: 850;
  color: var(--muted);
  white-space: nowrap;
}
.overview-initiative-row td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
}
.overview-initiative-row:hover td {
  background: #f8fbff;
  border-color: #bed5ff;
}
.overview-title-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  line-height: 1.15;
}
.overview-title-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.overview-progress-pill,
.stage-badge {
  display: inline-flex;
  justify-content: center;
  min-width: 52px;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 950;
  font-size: 10.5px;
  border: 1px solid var(--line);
  background: #f8fbff;
}
.overview-progress-pill {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bed5ff;
}
.stage-badge.yes {
  color: #166534;
  background: var(--green-soft);
  border-color: #bbf7d0;
}
.stage-badge.partial {
  color: #9a6700;
  background: var(--orange-soft);
  border-color: #f8d99b;
}
.stage-badge.no {
  color: #475467;
  background: #f3f4f6;
}
.stage-badge.na {
  color: #667085;
  background: #f8fafc;
  border-style: dashed;
}

@media (max-width: 1120px) {
  .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-body { grid-template-columns: 1fr; overflow: auto; }
  .overview-screen { overflow: auto; }
}
@media print {
  .overview-screen { display: block; overflow: visible; }
  .overview-kpis, .overview-body { display: block; }
  .overview-kpi, .overview-clients-card, .overview-table-card { margin-bottom: 10px; box-shadow: none; }
}

/* v5: crear cliente nuevo con logo desde el modal de nueva iniciativa */
.theme-custom {
  --theme-primary: #2166e8;
  --theme-secondary: #00a3c7;
  --theme-accent: #16a34a;
  --theme-soft: #f3f8ff;
  --theme-line: #cfe0ff;
  --theme-ink: #14213d;
}
.existing-client-field input:disabled {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}
.new-client-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fbff;
  cursor: pointer;
  user-select: none;
}
.new-client-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}
.new-client-toggle span {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
}
.new-client-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  padding: 12px;
  display: grid;
  gap: 8px;
}
.new-client-panel[hidden], .new-client-toggle[hidden] { display: none !important; }
.new-client-row {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .75fr);
}
.form-field input[type="file"] {
  padding: 8px 10px;
  font-size: 12px;
  background: #fff;
}
.logo-upload-help {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.25;
}
.logo-cliente img,
.client-logo-card[class*="logo-"] img {
  object-fit: contain;
}
@media (max-width: 640px) {
  .new-client-row { grid-template-columns: 1fr; }
}
