/* 0.6.7 — Acciones y vencimientos útiles en el inicio del cliente */
.acgs-ap-home-actions{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin:18px 0 12px;padding:20px 22px;border:1px solid #dce7fb;border-radius:16px;
  background:linear-gradient(112deg,#f7fbff 0%,#fff 62%,#f5f7ff 100%);
  box-shadow:0 5px 18px rgba(25,65,130,.045)
}
.acgs-ap-home-actions-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.acgs-ap-home-actions-copy .acgs-ap-eyebrow{font-size:10px;letter-spacing:.13em;color:#6680a8;font-weight:800}
.acgs-ap-home-actions-copy>strong{font-size:16px;line-height:1.35;color:#102b5c;font-weight:750}
.acgs-ap-home-actions-copy>span:last-child{font-size:12px;color:#7183a2}
.acgs-ap-home-action-buttons{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.acgs-ap-home-action-buttons a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 17px;border-radius:10px;text-decoration:none!important;font-size:12px;font-weight:750;transition:transform .18s ease,box-shadow .18s ease}
.acgs-ap-home-action-buttons a:hover{transform:translateY(-1px)}
.acgs-ap-home-action-buttons svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acgs-ap-home-action-primary{color:#fff!important;background:linear-gradient(105deg,#12bddd,#2877ef);box-shadow:0 5px 12px rgba(30,139,226,.2)}
.acgs-ap-home-action-secondary{color:#2458ad!important;background:#fff;border:1px solid #cbdcf8}
.acgs-ap-home-expiry{display:flex;align-items:center;gap:13px;margin:0 0 18px;padding:13px 17px;border:1px solid #dce7fb;border-radius:13px;background:#fff}
.acgs-ap-home-expiry-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:12px;background:#fff3e8;color:#e28a24}
.acgs-ap-home-expiry-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.acgs-ap-home-expiry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.acgs-ap-home-expiry-copy strong{font-size:12px;color:#243e68}
.acgs-ap-home-expiry-copy span{font-size:11px;color:#7586a2;overflow-wrap:anywhere}
.acgs-ap-home-expiry-date{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:0 14px;border-left:1px solid #edf1f8}
.acgs-ap-home-expiry-date strong{font-size:14px;color:#bd6b16;font-weight:800}
.acgs-ap-home-expiry-date small{font-size:10px;color:#9a7a57}
.acgs-ap-home-expiry>a{font-size:11px;font-weight:700;color:#2869c9;text-decoration:none;white-space:nowrap}
.acgs-ap-home-expiry.no-expiry .acgs-ap-home-expiry-icon{background:#e9f8f1;color:#12a477}
@media(max-width:767px){
 .acgs-ap-home-actions{align-items:stretch;flex-direction:column;gap:14px;margin:14px 0 10px;padding:16px;border-radius:13px}
 .acgs-ap-home-actions-copy>strong{font-size:15px}
 .acgs-ap-home-action-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .acgs-ap-home-action-buttons a{min-height:43px;padding:0 9px;font-size:11px;white-space:nowrap}
 .acgs-ap-home-expiry{align-items:flex-start;gap:10px;padding:12px;margin-bottom:14px}
 .acgs-ap-home-expiry-icon{width:35px;height:35px;flex-basis:35px}
 .acgs-ap-home-expiry-date{padding:0 0 0 9px}
 .acgs-ap-home-expiry-date strong{font-size:12px}
 .acgs-ap-home-expiry>a{align-self:center;font-size:10px}
}
@media(max-width:420px){
 .acgs-ap-home-expiry{flex-wrap:wrap}
 .acgs-ap-home-expiry-copy{flex-basis:calc(100% - 50px)}
 .acgs-ap-home-expiry-date{margin-left:45px;border-left:0;padding-left:0;align-items:flex-start}
 .acgs-ap-home-expiry>a{margin-left:auto}
}

/* 0.6.8 — Inicio reorganizado según el diseño aprobado: banner, saludo, resumen y acciones */
.acgs-ap-main>.acgs-ap-managed-carousel{margin:0 0 20px!important}
.acgs-ap-main>.acgs-ap-home-greeting{margin:0 0 20px!important;align-items:center}
.acgs-ap-home-greeting .acgs-ap-eyebrow{margin-bottom:7px}
.acgs-ap-home-greeting h1{margin:0 0 6px;font-size:27px;line-height:1.2;color:#102c61;letter-spacing:-.6px}
.acgs-ap-home-greeting p{margin:0;color:#7183a2;font-size:13px;line-height:1.5}
.acgs-ap-home-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 18px}
.acgs-ap-home-summary-card{display:flex;align-items:center;gap:15px;min-width:0;min-height:132px;padding:18px 19px;border:1px solid #dce8fb;border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(24,58,112,.045)}
.acgs-ap-home-summary-card.is-balance{background:linear-gradient(125deg,#f0fcff,#fff);border-color:#b9eff9}
.acgs-ap-home-summary-card.is-plan{background:linear-gradient(125deg,#f8f4ff,#fff);border-color:#e1d1ff}
.acgs-ap-home-summary-card.is-expiry{background:linear-gradient(125deg,#fffaf2,#fff);border-color:#ffe0b5}
.acgs-ap-home-summary-icon{display:grid;place-items:center;flex:0 0 72px;width:72px;height:72px;border-radius:50%;background:#d9f7fc;color:#05a9d2}
.acgs-ap-home-summary-card.is-plan .acgs-ap-home-summary-icon{background:#eee2ff;color:#792be5}
.acgs-ap-home-summary-card.is-expiry .acgs-ap-home-summary-icon{background:#fff0d9;color:#ed850e}
.acgs-ap-home-summary-icon svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.acgs-ap-home-summary-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.acgs-ap-home-summary-copy>span{font-size:13px;font-weight:750;color:#19345f}
.acgs-ap-home-summary-copy>strong{font-size:27px;line-height:1.15;letter-spacing:-.5px;color:#102b65;font-weight:850;overflow-wrap:anywhere}
.acgs-ap-home-summary-copy>strong small{font-size:13px;font-weight:700;letter-spacing:0}
.acgs-ap-home-summary-copy>em{font-style:normal;color:#7183a2;font-size:11px;line-height:1.4}
.acgs-ap-home-summary-copy>.acgs-ap-home-plan-name{font-size:19px;line-height:1.25}
.acgs-ap-home-summary-copy>.acgs-ap-home-no-expiry{font-size:21px;color:#9a6a2e}
.acgs-ap-home-quick-actions{display:flex;align-items:center;gap:18px;margin:0 0 21px;padding:17px 19px;border:1px solid #dce4ff;border-radius:16px;background:linear-gradient(110deg,#fbfcff,#f7f8ff);box-shadow:0 5px 18px rgba(24,58,112,.035)}
.acgs-ap-home-quick-actions h2{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin:0;color:#172d69;font-size:18px;letter-spacing:-.35px}
.acgs-ap-home-quick-actions h2 svg{width:28px;height:28px;fill:none;stroke:#8136ef;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.acgs-ap-home-quick-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:1;min-width:0}
.acgs-ap-home-quick-buttons a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:49px;padding:8px 12px;border:1px solid #d6dcff;border-radius:12px;background:#fff;color:#183575!important;text-decoration:none!important;font-size:12px;font-weight:750;line-height:1.2;text-align:center;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.acgs-ap-home-quick-buttons a:hover{transform:translateY(-2px);border-color:#8ca6ff;box-shadow:0 7px 17px rgba(43,85,190,.1)}
.acgs-ap-home-quick-buttons a svg{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acgs-ap-home-quick-buttons a.is-primary{border-color:transparent;background:linear-gradient(105deg,#08c2e4,#2875f2 65%,#7d4cf1);color:#fff!important;box-shadow:0 6px 14px rgba(45,112,224,.2)}
.acgs-ap-main>.acgs-ap-dashboard-grid{margin-top:0}
@media(max-width:1100px){.acgs-ap-home-summary{gap:11px}.acgs-ap-home-summary-card{padding:15px;gap:11px}.acgs-ap-home-summary-icon{width:58px;height:58px;flex-basis:58px}.acgs-ap-home-summary-icon svg{width:34px;height:34px}.acgs-ap-home-quick-actions{align-items:stretch;flex-direction:column;gap:13px}.acgs-ap-home-quick-buttons{width:100%}}
@media(max-width:700px){.acgs-ap-home-summary{grid-template-columns:1fr;gap:10px}.acgs-ap-home-summary-card{min-height:100px;padding:14px 16px}.acgs-ap-home-summary-icon{width:58px;height:58px;flex-basis:58px}.acgs-ap-home-summary-copy>strong{font-size:25px}.acgs-ap-home-summary-copy>.acgs-ap-home-plan-name{font-size:17px}.acgs-ap-home-quick-actions{padding:15px}.acgs-ap-home-quick-actions h2{font-size:16px}.acgs-ap-home-quick-buttons{grid-template-columns:1fr 1fr;gap:9px}.acgs-ap-home-quick-buttons a{min-height:48px;font-size:11px;padding:8px 6px}.acgs-ap-home-greeting h1{font-size:23px}.acgs-ap-home-greeting p{font-size:12px}.acgs-ap-main>.acgs-ap-managed-carousel{margin-bottom:17px!important}}
@media(max-width:390px){.acgs-ap-home-quick-buttons{grid-template-columns:1fr}.acgs-ap-home-quick-buttons a{justify-content:flex-start;padding-left:18px}}

/* 0.6.9 — Inicio: banner superior y composición en dos columnas según referencia aprobada */
.acgs-ap-main>.acgs-ap-managed-carousel{margin:0 0 20px!important}
.acgs-ap-main>.acgs-ap-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.78fr) minmax(330px,.82fr);gap:22px;align-items:start;margin-top:0!important}
.acgs-ap-primary-column{display:grid;gap:16px;min-width:0}
.acgs-ap-widgets{display:grid;gap:16px;min-width:0;align-content:start}
.acgs-ap-primary-column>.acgs-ap-home-greeting{margin:0 0 2px!important;align-items:center}
.acgs-ap-home-summary{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:0}
.acgs-ap-home-summary-card{min-height:112px;padding:15px 16px;gap:12px;border-radius:15px}
.acgs-ap-home-summary-icon{width:62px;height:62px;flex-basis:62px}
.acgs-ap-home-summary-icon svg{width:39px;height:39px;stroke-width:2.15}
.acgs-ap-home-summary-copy>span{font-size:12px;font-weight:750}
.acgs-ap-home-summary-copy>strong{font-size:25px;font-weight:850}
.acgs-ap-home-summary-copy>em{font-size:11px;line-height:1.4}
.acgs-ap-home-summary-card.is-product{background:linear-gradient(125deg,#f0fcff,#fff);border-color:#b9eff9}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-summary-icon{background:#d9f7fc;color:#05a9d2}
.acgs-ap-home-summary-card.is-ai{background:linear-gradient(125deg,#f8f4ff,#fff);border-color:#e1d1ff}
.acgs-ap-home-summary-card.is-ai .acgs-ap-home-summary-icon{background:#eee2ff;color:#792be5}
.acgs-ap-home-summary-card.is-combined{background:linear-gradient(125deg,#f8f4ff,#fff);border-color:#e1d1ff}
.acgs-ap-home-summary-card.is-combined .acgs-ap-home-summary-icon{background:#eee2ff;color:#792be5}
.acgs-ap-home-summary-card.is-expiry{min-height:112px}
.acgs-ap-home-quick-actions{margin:0;padding:14px 16px;gap:13px;border-radius:15px}
.acgs-ap-home-quick-actions h2{font-size:16px}
.acgs-ap-home-quick-actions h2 svg{width:26px;height:26px;stroke-width:2.3}
.acgs-ap-home-quick-buttons{gap:8px}
.acgs-ap-home-quick-buttons a{min-height:46px;font-size:11px;padding:8px 9px;border-radius:11px}
.acgs-ap-home-quick-buttons a svg{width:20px;height:20px;stroke-width:2.15}
.acgs-ap-widgets>.acgs-ap-blog-widget{padding:20px;border-radius:15px}
.acgs-ap-blog-heading h2{font-size:18px;font-weight:800}
.acgs-ap-blog-heading>div>p{font-size:12px;color:#405779;margin:7px 0 0}
.acgs-ap-blog-item{grid-template-columns:68px minmax(0,1fr);gap:11px;padding:12px 0}
.acgs-ap-blog-item img,.acgs-ap-blog-placeholder{width:68px;height:62px;border-radius:8px}
.acgs-ap-blog-copy strong{font-size:11px;font-weight:750;line-height:1.45}
.acgs-ap-blog-copy small{font-size:10px}
@media(max-width:1100px){.acgs-ap-main>.acgs-ap-dashboard-grid{grid-template-columns:minmax(0,1.45fr) minmax(270px,.85fr);gap:16px}.acgs-ap-home-quick-actions{align-items:stretch;flex-direction:column}.acgs-ap-home-quick-buttons{width:100%}}
@media(max-width:760px){.acgs-ap-main>.acgs-ap-dashboard-grid{grid-template-columns:1fr}.acgs-ap-primary-column{gap:13px}.acgs-ap-home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.acgs-ap-widgets{grid-template-columns:1fr}.acgs-ap-home-greeting .acgs-ap-user-chip{display:none}.acgs-ap-home-quick-actions{padding:14px}.acgs-ap-home-quick-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.acgs-ap-home-summary-card{min-height:102px;padding:12px;gap:9px}.acgs-ap-home-summary-icon{width:50px;height:50px;flex-basis:50px}.acgs-ap-home-summary-icon svg{width:32px;height:32px}}
@media(max-width:420px){.acgs-ap-home-summary{grid-template-columns:1fr}.acgs-ap-home-summary-card{min-height:92px}.acgs-ap-home-quick-buttons{grid-template-columns:1fr 1fr}}

/* 0.6.10 — Responsive real del inicio: evita desbordamiento horizontal en móvil. */
@media (max-width: 900px) {
  html body.acgs-ap-platform-page,
  html body.acgs-ap-platform-page #page,
  html body.acgs-ap-platform-page #content,
  html body.acgs-ap-platform-page .site,
  html body.acgs-ap-platform-page .site-content,
  html body.acgs-ap-platform-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-app,
  html body.acgs-ap-platform-page .acgs-ap-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-main {
    grid-column: 1 !important;
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  html body.acgs-ap-platform-page,
  html body.acgs-ap-platform-page #page,
  html body.acgs-ap-platform-page #content,
  html body.acgs-ap-platform-page .site,
  html body.acgs-ap-platform-page .site-content,
  html body.acgs-ap-platform-page .entry-content,
  html body.acgs-ap-platform-page .acgs-ap-app,
  html body.acgs-ap-platform-page .acgs-ap-main {
    overflow-x: clip !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-main {
    box-sizing: border-box !important;
    padding: 18px 14px 24px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-main > *,
  html body.acgs-ap-platform-page .acgs-ap-dashboard-grid,
  html body.acgs-ap-platform-page .acgs-ap-primary-column,
  html body.acgs-ap-platform-page .acgs-ap-widgets,
  html body.acgs-ap-platform-page .acgs-ap-managed-carousel,
  html body.acgs-ap-platform-page .acgs-ap-home-greeting,
  html body.acgs-ap-platform-page .acgs-ap-home-summary,
  html body.acgs-ap-platform-page .acgs-ap-home-summary-card,
  html body.acgs-ap-platform-page .acgs-ap-home-quick-actions,
  html body.acgs-ap-platform-page .acgs-ap-panel,
  html body.acgs-ap-platform-page .acgs-ap-blog-widget {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-dashboard-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-primary-column,
  html body.acgs-ap-platform-page .acgs-ap-widgets {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
  }
  /* Una tarjeta por fila: nunca se recortan nombres de producto ni fechas. */
  html body.acgs-ap-platform-page .acgs-ap-home-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-card {
    display: flex !important;
    align-items: center !important;
    min-height: 94px !important;
    padding: 13px 14px !important;
    gap: 12px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-icon {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-icon svg {
    width: 30px !important;
    height: 30px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy > span,
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy > em,
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy > strong {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy > strong {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy > strong small {
    font-size: 12px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-summary-copy > .acgs-ap-home-plan-name {
    font-size: 17px !important;
  }
  /* Acciones: dos columnas equilibradas y etiquetas con salto de línea. */
  html body.acgs-ap-platform-page .acgs-ap-home-quick-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
    margin: 0 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-quick-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-quick-buttons a {
    display: flex !important;
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 9px 7px !important;
    gap: 7px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-quick-buttons a svg {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
  }
  /* La tabla conserva sus columnas y desplaza solo su propio contenedor. */
  html body.acgs-ap-platform-page .acgs-ap-table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-table {
    width: 620px !important;
    min-width: 620px !important;
    max-width: none !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-panel {
    padding: 15px 12px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-panel-heading {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-blog-widget {
    padding: 17px 15px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-blog-item {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-blog-copy {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-greeting h1 {
    font-size: 23px !important;
    overflow-wrap: anywhere !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-home-greeting p {
    max-width: 100% !important;
    font-size: 12px !important;
  }
  /* Banner: texto legible y separado de la zona de la fotografía. */
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 250px !important;
    padding: 20px !important;
    background-size: cover !important;
    background-position: 68% center !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: linear-gradient(90deg, rgba(224,239,255,.98) 0%, rgba(224,239,255,.92) 53%, rgba(224,239,255,.28) 100%) !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) .acgs-ap-welcome-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) .acgs-ap-welcome-tag {
    margin-bottom: 13px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) h2 {
    max-width: 88% !important;
    font-size: clamp(20px, 5.2vw, 24px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) p {
    max-width: 82% !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) .acgs-ap-primary-button {
    margin-top: 12px !important;
  }
  html body.acgs-ap-platform-page .acgs-ap-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    font-size: 10px !important;
  }
}

@media (max-width: 380px) {
  html body.acgs-ap-platform-page .acgs-ap-main { padding-right: 11px !important; padding-left: 11px !important; }
  html body.acgs-ap-platform-page .acgs-ap-home-quick-buttons { grid-template-columns: minmax(0, 1fr) !important; }
  html body.acgs-ap-platform-page .acgs-ap-home-quick-buttons a { justify-content: flex-start !important; padding-left: 15px !important; }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) { min-height: 235px !important; padding: 16px !important; }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) h2 { max-width: 94% !important; font-size: 20px !important; }
  html body.acgs-ap-platform-page .acgs-ap-managed-slide:not(.is-custom) p { max-width: 90% !important; }
}


/* Inicio: historial de movimientos adaptado a móvil sin tabla desbordada. */
.acgs-ap-history-mobile{display:none}
@media(max-width:640px){
  html body.acgs-ap-platform-page .acgs-ap-history-desktop{display:none!important}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile{display:grid!important;gap:9px;width:100%;min-width:0}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile-item{display:block;min-width:0;padding:12px 12px 10px;border:1px solid #e5edf8;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(31,58,104,.035)}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile-date{min-width:0;color:#71829b;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile-item p{margin:9px 0 10px;color:#52647e;font-size:12px;line-height:1.45;overflow-wrap:anywhere;word-break:normal}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid #eef2f7;color:#8795a8;font-size:10px}
  html body.acgs-ap-platform-page .acgs-ap-history-mobile-balance strong{color:#17345d;font-size:12px}
  html body.acgs-ap-platform-page #acgs-ap-history{min-width:0;overflow:hidden}
}

/* SVG score rings: progress is supplied through SVG numeric attributes, not inline CSS. */
.acgs-ap-result-ring{display:inline-grid;place-items:center;background:transparent!important}
.acgs-ap-result-ring:before{display:none!important}
.acgs-ap-result-ring>svg{position:absolute;inset:0;width:43px;height:43px;transform:rotate(-90deg);overflow:visible}
.acgs-ap-result-ring .acgs-ap-ring-track{fill:none;stroke:#e8ebf5;stroke-width:4}
.acgs-ap-result-ring .acgs-ap-ring-value{fill:none;stroke-width:4;stroke-linecap:round}
.acgs-ap-result-ring.is-sim .acgs-ap-ring-value{stroke:#11b995}
.acgs-ap-result-ring.is-ai .acgs-ap-ring-value{stroke:#8565ef}


/* 0.8.04 — Jerarquía de tarjetas de créditos por producto */
.acgs-ap-home-summary-card.is-product{align-items:stretch;min-height:112px;padding:16px 17px}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-summary-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;min-width:0}
.acgs-ap-home-product-heading{display:flex;align-items:center;gap:9px;width:100%;min-width:0}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-summary-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-summary-icon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-product-name{display:block;min-width:0;color:#18345f;font-size:12px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-product-credits{display:block;margin:1px 0 0;color:#102b65;font-size:27px;font-weight:850;line-height:1.08;letter-spacing:-.5px}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-product-credits small{font-size:13px;font-weight:700;letter-spacing:0}
.acgs-ap-home-summary-card.is-product .acgs-ap-home-product-label{display:block;color:#7183a2;font-size:11px;font-style:normal;line-height:1.3}
.acgs-ap-home-summary-card.is-ai .acgs-ap-home-summary-icon{background:#eee2ff;color:#792be5}
.acgs-ap-home-summary-card.is-similarity .acgs-ap-home-summary-icon{background:#d9f7fc;color:#05a9d2}
.acgs-ap-home-summary-card.is-combined .acgs-ap-home-summary-icon{background:#eee2ff;color:#792be5}
@media(max-width:700px){.acgs-ap-home-summary-card.is-product{min-height:102px}.acgs-ap-home-summary-card.is-product .acgs-ap-home-product-credits{font-size:25px}}

/* Iconografía única del catálogo de productos */
.acgs-ap-home-summary-icon img{display:block;width:24px;height:24px;max-width:24px;object-fit:contain}


/* 0.8.11 — Tarjetas de productos: icono en columna independiente y centrado.
   La información queda agrupada a la derecha, siguiendo la composición
   visual de la tarjeta "Próximo vencimiento". */
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-width: 64px;
  margin: 0;
  border-radius: 50%;
  align-self: center;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-icon img {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-icon svg {
  display: block;
  width: 42px;
  height: 42px;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  text-align: left;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product .acgs-ap-home-product-name {
  display: block;
  width: 100%;
  margin: 0;
  color: #18345f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product .acgs-ap-home-product-credits {
  display: block;
  margin: 0;
  line-height: 1.08;
}
body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product .acgs-ap-home-product-label {
  display: block;
  margin: 0;
  line-height: 1.3;
}
@media (max-width: 700px) {
  body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product {
    gap: 12px;
    min-height: 102px;
  }
  body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    min-width: 58px;
  }
  body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-icon img,
  body.acgs-ap-platform-page .acgs-ap-home-summary-card.is-product > .acgs-ap-home-summary-icon svg {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
  }
}
