/* Panel · «Tus redes»: tarjetas compactas de las cuentas (Instagram, TikTok) bajo «Tu actividad». */
.main-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
body.theme-blanco .main-col .drafts-card { position: static; }
@media (min-width: 1000px) { body.theme-blanco .main-col { position: sticky; top: 90px; align-self: start; } }
.accounts-card { padding: 14px 16px; }
.accounts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.accounts-head small { font-size: 12.5px; color: #5b6d80; }
.accounts-card .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.acct { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid #dfe7ef; border-radius: 12px; background: #fff; }
.acct-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eef4fa; color: #0a4f86; font-size: 17px; }
.acct-copy { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.acct-copy b { font-size: 14.5px; color: #10233a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-status { font-size: 12.5px; color: #6b7a8c; display: inline-flex; align-items: center; gap: 5px; }
.acct-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #b8c4d0; }
.acct[data-state="on"] .acct-status { color: #11603a; font-weight: 600; }
.acct[data-state="on"] .acct-status::before { background: #1f9d5c; }
.acct-btn { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font: 700 13px/1 var(--font, 'DM Sans', sans-serif);
  text-decoration: none; cursor: pointer; border: 1px solid #0a4f86; background: #0a4f86; color: #fff; }
body.theme-blanco a.acct-btn, body.theme-blanco a.acct-btn:visited { color: #fff; }
.acct[data-state="on"] .acct-btn, body.theme-blanco .acct[data-state="on"] a.acct-btn { background: #fff; color: #9b1c1c; border-color: #e7b4b4; }
.acct-btn:hover { filter: brightness(.95); }
.acct-btn[disabled], .acct-btn[aria-disabled="true"] { background: #eef2f6; color: #6b7a8c !important; border-color: #dfe7ef; cursor: not-allowed; pointer-events: none; }
.acct-btn:focus-visible { outline: 3px solid #0a6fa8; outline-offset: 2px; }
.acct-msg { margin: 8px 0 0; font-size: 12.5px; color: #5b6d80; }
.acct-msg:empty { display: none; }
@media (max-width: 560px) { .accounts-grid { grid-template-columns: 1fr; } }
/* Botones de la cabecera del panel: crear, biblioteca y (solo administradores) administración. */
.panel-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-head-actions .panel-lib-button, .panel-head-actions .panel-admin-link { background: #fff !important; color: #0a4f86 !important; border: 1px solid #0a4f86 !important; }
.panel-head-actions [hidden] { display: none !important; }
@media (max-width: 640px) { .panel-head-actions { width: 100%; } .panel-head-actions .button { flex: 1 1 auto; justify-content: center; } }
/* Contrato y autorizaciones: al final del panel; aceptado → enlace pequeño + ventana; sin aceptar → aviso compacto arriba. */
.contract-zone { margin: 22px 0 6px; }
.contract-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 10px 0 0; border-top: 1px solid #e3eaf1; font-size: 13.5px; color: #5b6d80; }
.contract-link { background: none; border: 0; padding: 4px 0; font: 600 13.5px/1.2 var(--font, 'DM Sans', sans-serif); color: #0a4f86 !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contract-link:focus-visible, .contract-close:focus-visible { outline: 3px solid #0a6fa8; outline-offset: 2px; border-radius: 4px; }
.contract-mini-status { color: #11603a; font-weight: 600; }
.contract-mini-status.warn { color: #7a5200; }
.contract-dialog { width: min(640px, 94vw); max-height: 88vh; border: 0; border-radius: 16px; padding: 0; overflow: auto; box-shadow: 0 24px 70px rgba(16, 35, 58, .35); background: #fff; color: #10233a; }
.contract-dialog::backdrop { background: rgba(16, 35, 58, .5); }
.contract-dialog .contract-card { margin: 0; border: 0; box-shadow: none; padding: 22px 20px 18px; }
.contract-close { position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; width: 38px; height: 38px; border-radius: 99px; border: 1px solid #cfdae6; background: #fff; color: #10233a; font: 700 20px/1 var(--font, sans-serif); cursor: pointer; z-index: 2; }
.contract-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; padding: 9px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f1d58f; color: #5c3d00; font-size: 14px; }
.contract-banner[hidden], .contract-mini[hidden] { display: none !important; }
.contract-banner a { color: #0a4f86; font-weight: 700; }
#contract-zone > .contract-card { margin-top: 10px; }
.web-card-plan{display:block;margin-top:10px;font-size:.85rem;color:inherit;opacity:.7;text-decoration:underline}
