@import url("./desktop-sidebar-shared.css?v=5");
@media screen and (min-width:1025px){
  :root{
    --ksp-bg:#06100c;--ksp-panel:#091711;--ksp-panel2:#0b1c15;--ksp-line:rgba(117,160,146,.18);
    --ksp-soft:rgba(117,160,146,.10);--ksp-green:#2ee9a7;--ksp-text:#f3f7f5;--ksp-muted:#8e9d95
  }
  html{min-height:100%;background:var(--ksp-bg)!important}
  body.ksp-page{
    margin:0!important;min-width:1025px!important;min-height:100dvh!important;color:var(--ksp-text)!important;
    background:radial-gradient(circle at 62% -12%,rgba(38,178,113,.09),transparent 31%),linear-gradient(180deg,#06100c,#040b08 64%,#030806)!important;
    font-family:"Segoe UI Variable","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif!important;
    text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased
  }
  body.ksp-page *{box-sizing:border-box}
  body.ksp-page input,body.ksp-page select{min-height:46px!important;font-size:13.5px!important}
  body.ksp-page textarea{min-height:88px!important;font-size:13.5px!important;line-height:1.45!important}
  body.ksp-page button{font-family:inherit}
  body.ksp-page p{font-size:12.5px!important;line-height:1.45!important}
  body.ksp-page small{font-size:12px!important;line-height:1.35!important}

  .ksp-desktop-header{
    position:sticky;z-index:5000;top:0;height:76px;padding:0 24px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;
    border-bottom:1px solid rgba(117,160,146,.12);background:rgba(6,16,12,.96);backdrop-filter:blur(16px)
  }
  .ksp-desktop-header.no-print{}
  .ksp-head-brand{display:flex;align-items:center}.ksp-head-brand img{width:148px;height:auto;display:block}
  .ksp-head-copy{min-width:0}.ksp-head-copy h1{margin:0;color:var(--theme-text);font-size:27px;line-height:1;font-weight:800;letter-spacing:-.025em}.ksp-head-copy p{margin:5px 0 0!important;max-width:760px;color:var(--theme-muted)!important;font-size:12.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ksp-head-chip{min-height:38px;padding:0 12px;display:flex;align-items:center;border:1px solid var(--ksp-line);border-radius:8px;background:var(--theme-surface-2);color:var(--theme-text-2);font-size:12px;font-weight:750;white-space:nowrap}
  .ksp-head-back{min-height:40px;padding:0 12px;border:1px solid var(--ksp-line);border-radius:8px;background:var(--theme-surface-2);color:var(--theme-text-2);font-size:12.5px;font-weight:700;text-decoration:none;display:flex;align-items:center}

  /* Equipo: esconder topbar móvil y usar una superficie de trabajo real. */
  body.ksp-team-member .team-topbar,
  body.ksp-team-center .team-topbar,
  body.ksp-team-goals .team-topbar,
  body.ksp-team-transition .team-topbar{display:none!important}
  body.ksp-team-member .team-shell,
  body.ksp-team-center .team-shell,
  body.ksp-team-goals .team-shell,
  body.ksp-team-transition .team-shell{
    width:min(calc(100% - 44px),1540px)!important;max-width:1540px!important;margin:0 auto!important;padding:16px 22px 34px!important
  }
  body.ksp-page .team-kicker{font-size:12px!important;letter-spacing:.075em!important}
  body.ksp-page .team-hero{
    margin:0 0 12px!important;padding:18px!important;min-height:112px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:18px!important;align-items:center!important;
    border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:linear-gradient(145deg,#0b1c15,#07120d)!important;box-shadow:none!important
  }
  body.ksp-page .team-hero h1{font-size:29px!important;line-height:1.06!important;margin:3px 0 6px!important}.ksp-page .team-hero p{max-width:980px!important;color:var(--theme-muted)!important}
  body.ksp-page .team-secondary,body.ksp-page .team-primary,body.ksp-page .team-danger{min-height:44px!important;border-radius:8px!important;font-size:12.5px!important;font-weight:720!important}
  body.ksp-page .team-card{margin:0!important;padding:16px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:linear-gradient(145deg,#0a1913,#07120d)!important;box-shadow:none!important}
  body.ksp-page .team-card h2{font-size:18px!important;line-height:1.18!important}.ksp-page .team-card-head{margin-bottom:12px!important}.ksp-page .team-chip{font-size:12px!important;padding:6px 9px!important}
  body.ksp-page .team-field>span{font-size:12.5px!important;font-weight:700!important}.ksp-page .team-grid{gap:10px!important}.ksp-page .team-form{gap:11px!important}
  body.ksp-page .team-field input,body.ksp-page .team-field select,body.ksp-page .team-field textarea{border:1px solid var(--ksp-line)!important;border-radius:8px!important;background:var(--theme-input)!important;color:var(--theme-text)!important;box-shadow:none!important}
  body.ksp-page .team-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.ksp-page .team-item{min-width:0!important;padding:13px!important;border:1px solid var(--ksp-soft)!important;border-radius:9px!important;background:var(--theme-surface-2)!important}.ksp-page .team-item strong{font-size:13px!important}.ksp-page .team-item small,.ksp-page .team-item p{font-size:12px!important}
  body.ksp-page .team-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;margin:0 0 12px!important}.ksp-page .team-metric{min-height:88px!important;padding:13px 14px!important;border:1px solid var(--ksp-line)!important;border-radius:9px!important;background:var(--theme-surface)!important}.ksp-page .team-metric small{font-size:12px!important;color:var(--theme-muted)!important}.ksp-page .team-metric strong{display:block!important;margin-top:7px!important;font-size:22px!important}
  body.ksp-team-member .team-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.ksp-team-member .team-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,240px))!important;gap:7px!important;margin:0 0 12px!important;padding:5px!important;border:1px solid var(--ksp-soft)!important;border-radius:10px!important;background:var(--theme-surface-2)!important}
  body.ksp-team-member .team-tab{min-height:42px!important;border-radius:7px!important;font-size:12.5px!important}.ksp-team-member .team-panel[hidden]{display:none!important}.ksp-team-member .team-panel:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start!important}.ksp-team-member .team-foot{margin-top:12px!important}
  body.ksp-page .team-modal{align-items:center!important;padding:30px!important}.ksp-page .team-modal-card{width:min(720px,calc(100vw - 80px))!important;max-height:86dvh!important;padding:19px!important;border-radius:11px!important}

  body.ksp-team-center .team-shell{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start!important}
  body.ksp-team-center .team-hero,body.ksp-team-center>.team-shell>.team-actions,body.ksp-team-center #pageStatus{grid-column:1/-1!important}
  body.ksp-team-center .team-card:first-of-type{grid-column:1/-1!important}.ksp-team-center .team-card:first-of-type .team-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.ksp-team-center .team-disclosure{margin:0!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:var(--theme-surface)!important}.ksp-team-center .team-disclosure-body{padding:14px!important}
  body.ksp-team-goals .team-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 380px!important;gap:10px!important;align-items:start!important}.ksp-team-goals .team-hero,body.ksp-team-goals #pageStatus{grid-column:1/-1!important}.ksp-team-goals #ownerGoalCard{grid-column:1!important}.ksp-team-goals #closureCard{grid-column:2!important}.ksp-team-goals .team-card:not(#ownerGoalCard):not(#closureCard){grid-column:1/-1!important}
  body.ksp-team-transition .team-card{margin-bottom:10px!important}.ksp-team-transition #transitionForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.ksp-team-transition #transitionForm>.team-field,.ksp-team-transition #transitionStatus,.ksp-team-transition #transitionButton{grid-column:1/-1!important}

  /* Invitación/verificación del equipo */
  body.ksp-team-invite .team-auth-shell,body.ksp-team-verify .team-auth-shell{width:min(calc(100% - 48px),1050px)!important;max-width:1050px!important;min-height:calc(100dvh - 76px)!important;margin:0 auto!important;padding:30px 24px!important;display:grid!important;align-content:center!important;gap:14px!important}
  body.ksp-team-invite .team-logo,body.ksp-team-verify .team-logo{display:none!important}.ksp-team-invite .team-card,.ksp-team-verify .team-card{padding:20px!important}.ksp-team-invite .team-grid,.ksp-team-verify .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ksp-team-verify .identity-picker{min-height:220px!important;border:1px dashed rgba(46,233,167,.30)!important;border-radius:10px!important;background:var(--theme-surface-2)!important}

  /* Actualización / eliminar cuenta */
  body.ksp-update .update-shell{width:min(760px,calc(100% - 48px))!important;max-width:760px!important;margin:0 auto!important;padding:42px 0!important}.ksp-update .update-card{padding:28px!important;border:1px solid var(--ksp-line)!important;border-radius:12px!important;background:linear-gradient(145deg,#0b1c15,#07120d)!important;box-shadow:0 22px 60px rgba(0,0,0,.28)!important}.ksp-update .update-logo img{width:180px!important}.ksp-update h1{font-size:27px!important;line-height:1.15!important}.ksp-update button{min-height:46px!important;font-size:13px!important}
  body.ksp-delete .legal-shell{width:min(calc(100% - 56px),1180px)!important;max-width:1180px!important;margin:0 auto!important;padding:22px 0 42px!important}.ksp-delete .legal-header{display:none!important}.ksp-delete .legal-hero{padding:20px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:linear-gradient(145deg,#0b1c15,#07120d)!important}.ksp-delete .legal-hero h1{font-size:30px!important}.ksp-delete .legal-card{padding:18px!important;border-radius:10px!important;border:1px solid var(--ksp-line)!important;background:var(--theme-surface)!important}.ksp-delete .legal-card h2{font-size:18px!important}.ksp-delete .legal-card p,.ksp-delete .legal-card li{font-size:13px!important;line-height:1.55!important}.ksp-delete .delete-button,.ksp-delete .delete-login{min-height:46px!important;font-size:13px!important}

  /* Documentos: hoja nítida + panel de acciones PC. */
  body.ksp-contract-sign .contract-shell,body.ksp-contract-signed .contract-shell,
  body.ksp-receipt>main.app,body.ksp-voucher>main.page,body.ksp-certificate>main.certificate-page,body.ksp-plan>main.page{
    width:min(calc(100% - 48px),1480px)!important;max-width:1480px!important;margin:0 auto!important;padding:20px 24px 36px!important
  }
  body.ksp-contract-sign .contract-app-header,body.ksp-contract-signed .contract-app-header,
  body.ksp-receipt .topbar{display:none!important}
  body.ksp-contract-sign .contract-shell,body.ksp-contract-signed .contract-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:12px!important;align-items:start!important}
  body.ksp-contract-sign .contract-loading,body.ksp-contract-signed .contract-loading,body.ksp-contract-sign .contract-error,body.ksp-contract-signed .contract-error,body.ksp-contract-sign .contract-intro,body.ksp-contract-signed .contract-intro{grid-column:1/-1!important}
  body.ksp-contract-sign .contract-intro,body.ksp-contract-signed .contract-intro{padding:16px 18px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:var(--theme-surface)!important}.ksp-contract-sign .contract-intro h1,.ksp-contract-signed .contract-intro h1{font-size:25px!important}
  body.ksp-contract-sign .contract-document-wrap,body.ksp-contract-signed .contract-document-wrap{grid-column:1!important;margin:0!important;padding:18px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:var(--theme-surface-2)!important;overflow:auto!important}
  body.ksp-contract-sign .contract-document,body.ksp-contract-signed .contract-document{width:min(100%,840px)!important;margin:0 auto!important;transform:none!important;zoom:1!important}
  body.ksp-contract-sign .signature-panel,body.ksp-contract-sign .signed-actions,body.ksp-contract-signed .signed-actions{grid-column:2!important;position:sticky!important;top:92px!important;margin:0!important;padding:17px!important;border-radius:10px!important;border:1px solid var(--ksp-line)!important;background:var(--theme-surface)!important}.ksp-contract-sign .signature-panel h2,.ksp-contract-signed .signed-actions h2{font-size:18px!important}.ksp-contract-sign .signature-canvas-box{min-height:200px!important;border-radius:9px!important}.ksp-contract-sign .signature-tools button,.ksp-contract-sign .send-contract-button,.ksp-contract-sign .contract-action-grid button,.ksp-contract-signed .contract-action-grid button{min-height:44px!important;font-size:12.5px!important;border-radius:8px!important}

  body.ksp-receipt>main.app,body.ksp-voucher>main.page,body.ksp-certificate>main.certificate-page,body.ksp-plan>main.page{display:grid!important;grid-template-columns:minmax(0,1fr) 340px!important;gap:12px!important;align-items:start!important}
  body.ksp-receipt .receipt-shell,body.ksp-voucher .voucher,body.ksp-certificate .certificate-card{grid-column:1!important;width:min(100%,920px)!important;margin:0 auto!important;transform:none!important;zoom:1!important}
  body.ksp-receipt .action-panel,body.ksp-voucher .action-panel,body.ksp-certificate .certificate-actions,body.ksp-plan .actions{grid-column:2!important;position:sticky!important;top:92px!important;display:grid!important;gap:8px!important;margin:0!important;padding:15px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:var(--theme-surface)!important}
  body.ksp-receipt .action-panel button,body.ksp-voucher .action-panel button,body.ksp-certificate .certificate-actions button,body.ksp-plan .actions button{min-height:46px!important;font-size:12.5px!important;border-radius:8px!important}
  body.ksp-plan .screen-header{grid-column:1/-1!important;min-height:64px!important;margin:0!important;padding:0 16px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:var(--theme-surface)!important}.ksp-plan .screen-header strong{font-size:20px!important}.ksp-plan .screen-header span{font-size:12px!important}.ksp-plan .plan-sheets{grid-column:1!important;min-width:0!important;transform:none!important;zoom:1!important}

  /* Verificación pública / pago / invitación */
  body.ksp-verify-receipt .verify-page{width:min(calc(100% - 48px),1000px)!important;margin:0 auto!important;padding:34px 0!important}.ksp-verify-receipt .verify-card{padding:22px!important;border-radius:12px!important;border:1px solid var(--ksp-line)!important;box-shadow:0 20px 60px rgba(0,0,0,.25)!important}.ksp-verify-receipt .verify-header h1{font-size:26px!important}
  body.ksp-payment-page .shell,body.ksp-invite-page .invite-app{width:min(calc(100% - 48px),760px)!important;margin:0 auto!important;padding:40px 0!important}.ksp-payment-page .card,.ksp-invite-page .invite-card{padding:28px!important;border-radius:12px!important;border:1px solid var(--ksp-line)!important;background:linear-gradient(145deg,#0b1c15,#07120d)!important;box-shadow:0 22px 65px rgba(0,0,0,.28)!important}.ksp-payment-page .title,.ksp-invite-page h1{font-size:28px!important}.ksp-invite-page button{min-height:48px!important;font-size:13px!important}

  /* Registro público de cliente */
  body.ksp-client-intake .client-intake-shell{width:min(calc(100% - 48px),1160px)!important;max-width:1160px!important;margin:0 auto!important;padding:22px!important}.ksp-client-intake .client-intake-brand{display:none!important}.ksp-client-intake .client-intake-topcard{padding:18px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:linear-gradient(145deg,#0b1c15,#07120d)!important}.ksp-client-intake .client-intake-topcard h1{font-size:27px!important}.ksp-client-intake .form-card{padding:18px!important;border:1px solid var(--ksp-line)!important;border-radius:10px!important;background:var(--theme-surface)!important;box-shadow:none!important}.ksp-client-intake .section-title h2{font-size:18px!important}.ksp-client-intake .two-column{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.ksp-client-intake .field>span{font-size:12.5px!important}.ksp-client-intake .field input,.ksp-client-intake .field select,.ksp-client-intake .field textarea{border:1px solid var(--ksp-line)!important;border-radius:8px!important;background:var(--theme-input)!important;color:var(--theme-text)!important}.ksp-client-intake .client-intake-nav-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.ksp-client-intake .client-intake-nav-actions button{min-height:48px!important;font-size:13px!important}

  @media(max-width:1280px){
    body.ksp-team-center .team-shell{grid-template-columns:1fr!important}.ksp-team-center .team-hero,.ksp-team-center .team-card,.ksp-team-center .team-disclosure,.ksp-team-center #pageStatus{grid-column:1!important}
    body.ksp-team-goals .team-shell{grid-template-columns:1fr!important}.ksp-team-goals .team-hero,.ksp-team-goals .team-card,.ksp-team-goals #pageStatus{grid-column:1!important}
    body.ksp-contract-sign .contract-shell,body.ksp-contract-signed .contract-shell{grid-template-columns:minmax(0,1fr) 310px!important}
    body.ksp-receipt>main.app,body.ksp-voucher>main.page,body.ksp-certificate>main.certificate-page,body.ksp-plan>main.page{grid-template-columns:minmax(0,1fr) 300px!important}
  }
}
@media print{
  .ksp-desktop-header{display:none!important}
}


/* KOVRA SPECIAL/TEAM PC WIDE V3 */
@media screen and (min-width:1025px){
  body.ksp-page .team-shell,
  body.ksp-page .team-auth-shell,
  body.ksp-page .client-intake-shell,
  body.ksp-page .legal-shell,
  body.ksp-page .update-shell{
    max-width:none!important;
  }

  body.ksp-team-member .team-shell,
  body.ksp-team-center .team-shell,
  body.ksp-team-goals .team-shell,
  body.ksp-team-transition .team-shell{
    width:100%!important;
    max-width:none!important;
    padding:16px clamp(24px,2.2vw,42px) 34px!important;
  }

  /* Jornada: listas y formularios aprovechan el ancho de PC. */
  body.ksp-team-member .team-panel:not([hidden]){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.ksp-team-member #workPanel:not([hidden])>.team-card:only-child{grid-column:1/-1!important}
  body.ksp-team-member #casesPanel:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ksp-team-member .team-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  /* Centro Ejecutivo: 12 columnas lógicas, sin tira vertical. */
  body.ksp-team-center .team-shell{
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.ksp-team-center .team-hero,
  body.ksp-team-center>.team-shell>.team-actions,
  body.ksp-team-center #pageStatus{grid-column:1/-1!important}
  body.ksp-team-center .team-card:first-of-type{grid-column:1/-1!important}
  body.ksp-team-center .team-disclosure{grid-column:span 6!important}
  body.ksp-team-center .team-card:not(:first-of-type){grid-column:span 6!important}
  body.ksp-team-center #collectorCard,
  body.ksp-team-center #portfolioCard{grid-column:span 6!important}
  body.ksp-team-center .team-card:first-of-type .team-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.ksp-team-center .team-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Metas: control a la izquierda, resultados a la derecha. */
  body.ksp-team-goals .team-shell{
    grid-template-columns:minmax(360px,.72fr) minmax(0,1.28fr)!important;
    gap:12px!important;
  }
  body.ksp-team-goals .team-hero,
  body.ksp-team-goals #pageStatus{grid-column:1/-1!important}
  body.ksp-team-goals .team-card:nth-of-type(1),
  body.ksp-team-goals #ownerGoalCard,
  body.ksp-team-goals #closureCard{grid-column:1!important}
  body.ksp-team-goals .team-card:not(#ownerGoalCard):not(#closureCard):not(:nth-of-type(1)){grid-column:2!important}
  body.ksp-team-goals .team-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Conversión a Prestamista: aviso y formulario lado a lado. */
  body.ksp-team-transition .team-shell{
    display:grid!important;
    grid-template-columns:minmax(320px,.7fr) minmax(0,1.3fr)!important;
    gap:12px!important;
    align-items:start!important;
  }
  body.ksp-team-transition .team-hero{grid-column:1/-1!important}
  body.ksp-team-transition .team-card:nth-of-type(1){grid-column:1!important}
  body.ksp-team-transition .team-card:nth-of-type(2){grid-column:2!important}
  body.ksp-team-transition #transitionForm{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Invitación y verificación: tarjeta ancha, contenido en dos zonas. */
  body.ksp-team-invite .team-auth-shell,
  body.ksp-team-verify .team-auth-shell{
    width:min(calc(100% - 56px),1280px)!important;
    max-width:1280px!important;
    padding:30px 28px!important;
  }
  body.ksp-team-invite .team-form,
  body.ksp-team-verify .team-form{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.ksp-team-invite .team-form>.team-grid,
  body.ksp-team-verify .team-form>.team-grid{display:contents!important}
  body.ksp-team-invite .team-form>.team-field,
  body.ksp-team-verify .team-form>.team-field{min-width:0!important}
  body.ksp-team-invite .team-form>.team-primary,
  body.ksp-team-invite .team-form>.team-status,
  body.ksp-team-verify .team-form>.identity-picker,
  body.ksp-team-verify .team-form>.team-actions,
  body.ksp-team-verify .team-form>.identity-progress,
  body.ksp-team-verify .team-form>.team-primary,
  body.ksp-team-verify .team-form>.team-status{grid-column:1/-1!important}

  /* Registro público: cada paso usa el ancho disponible. */
  body.ksp-client-intake .client-intake-shell{
    width:min(calc(100% - 56px),1380px)!important;
    max-width:1380px!important;
    padding:22px 28px 34px!important;
  }
  body.ksp-client-intake .client-intake-step:not([hidden]){width:100%!important}
  body.ksp-client-intake .client-intake-step:not([hidden])>.form-card{
    width:100%!important;
    max-width:none!important;
  }
  body.ksp-client-intake .client-intake-step[data-step="1"]>.form-card,
  body.ksp-client-intake .client-intake-step[data-step="2"]>.form-card,
  body.ksp-client-intake .client-intake-step[data-step="3"]>.form-card{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.ksp-client-intake .client-intake-step[data-step="1"] .section-title,
  body.ksp-client-intake .client-intake-step[data-step="2"] .section-title,
  body.ksp-client-intake .client-intake-step[data-step="3"] .section-title,
  body.ksp-client-intake .client-intake-step[data-step="1"]>.form-card>.two-column,
  body.ksp-client-intake .client-intake-step[data-step="2"]>.form-card>.two-column,
  body.ksp-client-intake .client-intake-step[data-step="3"]>.form-card>.two-column{grid-column:1/-1!important}
  body.ksp-client-intake .client-intake-step[data-step="4"]:not([hidden]){
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
    align-items:start!important;
  }
  body.ksp-client-intake .client-intake-step[data-step="4"]>.form-card{margin:0!important;min-height:100%!important}
  body.ksp-client-intake .client-intake-step[data-step="5"]>.form-card{
    width:min(100%,1100px)!important;
    margin:0 auto!important;
  }

  /* Legales/actualización: dos columnas solo donde tiene sentido. */
  body.ksp-delete .legal-shell{
    width:min(calc(100% - 64px),1460px)!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.ksp-delete .legal-hero{grid-column:1/-1!important}
  body.ksp-delete .delete-shell{grid-column:1/-1!important}
  body.ksp-update .update-shell{width:min(calc(100% - 64px),940px)!important}

  @media(max-width:1360px){
    body.ksp-team-center .team-card:not(:first-of-type),
    body.ksp-team-center .team-disclosure,
    body.ksp-team-center #collectorCard,
    body.ksp-team-center #portfolioCard{grid-column:1/-1!important}
    body.ksp-team-goals .team-shell,
    body.ksp-team-transition .team-shell{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body.ksp-team-member .team-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  }
}


@media screen and (min-width:1025px){
  /* Correcciones robustas por contenido real, no por posición del HTML. */
  body.ksp-team-center .team-card:has(#capitalPlaced){grid-column:1/-1!important}
  body.ksp-team-center .team-card:has(#riskList),
  body.ksp-team-center .team-card:has(#bestList),
  body.ksp-team-center .team-card:has(#collectorList),
  body.ksp-team-center .team-card:has(#portfolioList){grid-column:span 6!important}

  body.ksp-team-goals .team-card:has(#monthInput),
  body.ksp-team-goals #ownerGoalCard,
  body.ksp-team-goals #closureCard{grid-column:1!important}
  body.ksp-team-goals .team-card:has(#goalsList){grid-column:2!important}

  body.ksp-team-transition .team-card:has(#transitionForm){grid-column:2!important}
  body.ksp-team-transition .team-card:not(:has(#transitionForm)){grid-column:1!important}

  body.ksp-page .team-shell>*,
  body.ksp-page .team-auth-shell>*,
  body.ksp-client-intake .client-intake-shell>*{
    max-width:none!important;
  }
}

@media screen and (min-width:1025px){
  body.ksp-legal .legal-shell{
    width:min(calc(100% - 64px),1460px)!important;
    max-width:1460px!important;
    margin:0 auto!important;
    padding:22px 0 42px!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    align-items:start!important
  }
  body.ksp-legal .legal-header{display:none!important}
  body.ksp-legal .legal-hero,
  body.ksp-legal .legal-footer{grid-column:1/-1!important}
  body.ksp-legal .legal-hero{
    padding:20px!important;
    border:1px solid var(--ksp-line)!important;
    border-radius:10px!important;
    background:linear-gradient(145deg,#0b1c15,#07120d)!important
  }
  body.ksp-legal .legal-hero h1{font-size:30px!important}
  body.ksp-legal .legal-card{
    margin:0!important;
    padding:18px!important;
    border:1px solid var(--ksp-line)!important;
    border-radius:10px!important;
    background:var(--theme-surface)!important;
    box-shadow:none!important
  }
  body.ksp-legal .legal-card h2{font-size:18px!important}
  body.ksp-legal .legal-card p,
  body.ksp-legal .legal-card li{font-size:13px!important;line-height:1.55!important}
}

@media screen and (min-width:1025px){
  body.ksp-delete,body.ksp-legal{
    padding-left:var(--km-side,248px)!important;
    min-width:1025px!important;
    -webkit-font-smoothing:antialiased!important;
    text-rendering:optimizeLegibility!important;
    font-synthesis:none!important;
  }
  body.ksp-delete .ksp-desktop-header,
  body.ksp-legal .ksp-desktop-header{
    grid-template-columns:minmax(0,1fr) auto!important;
    padding-left:clamp(18px,2vw,30px)!important;
    padding-right:clamp(18px,2vw,30px)!important;
  }
  body.ksp-delete .ksp-head-brand,
  body.ksp-legal .ksp-head-brand{display:none!important}
  body.ksp-delete .legal-shell,
  body.ksp-legal .legal-shell{
    width:100%!important;max-width:none!important;
    padding-left:clamp(18px,2.2vw,34px)!important;
    padding-right:clamp(18px,2.2vw,34px)!important;
    padding-bottom:max(42px,env(safe-area-inset-bottom))!important;
  }
  body.ksp-delete p,body.ksp-delete li,body.ksp-legal p,body.ksp-legal li{font-size:13.5px!important;line-height:1.55!important}
  body.ksp-delete small,body.ksp-legal small{font-size:12px!important;line-height:1.4!important}
}