:root{
  --brand:#0f6c9e;
  --brand-dark:#0a547c;
  --brand-soft:#eaf5fb;
  --ink:#183548;
  --muted:#61707d;
  --border:#dce8f3;
  --bg:#f6fafc;
  --white:#ffffff;
  --success:#198754;
  --warning:#c2861a;
  --danger:#c23b3b;
  --shadow:0 14px 35px rgba(16,98,146,.08);
  --radius:20px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{
  font-family:'Lato', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
}

body.fs-body-inbox{
  height:100vh;
  max-height:100vh;
  overflow:hidden !important;
  display:flex;
  flex-direction:column;
}

body.fs-body-inbox .menu{
  position:relative;
  top:auto;
  flex:0 0 auto;
}

body.fs-body-inbox .page.fs-page-inbox{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}

a{text-decoration:none}

.fs-top-header{
  background:#f7f7f7;
  border-bottom:1px solid #e5edf3;
}
.fs-container{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
}
.fs-top-header .fs-container{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.fs-top-left,.fs-top-right{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.fs-top-header a{color:#7a7a7a;font-size:14px}
.fs-top-header a:hover{color:var(--brand)}
.fs-top-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  background:#fff;
  color:var(--brand)!important;
  font-weight:700;
  border:1px solid #d9e7f1;
}

.fs-main-nav{
  background:var(--brand);
  position:sticky;
  top:0;
  z-index:20;
  box-shadow:0 6px 18px rgba(8,84,124,.14);
}
.fs-main-nav .fs-container{
  min-height:98px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.fs-brand img{max-height:58px;width:auto;display:block}
.fs-nav-links{display:flex;align-items:center;gap:34px;flex-wrap:wrap}
.fs-nav-links a{
  color:#fff;
  font-family:'Poppins',sans-serif;
  font-size:16px;
  font-weight:600;
  opacity:.96;
}
.fs-nav-links a:hover,.fs-nav-links a.active{opacity:1;color:#fff;border-bottom:2px solid rgba(255,255,255,.85);padding-bottom:4px}

.fs-page{padding:34px 0 60px}
.fs-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:stretch;margin-bottom:26px}
.fs-card{
  background:var(--white);
  border:1px solid rgba(15,108,158,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.fs-hero-main{padding:34px}
.fs-eyebrow{
  display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;
  background:var(--brand-soft);border:1px solid #cfe3ef;color:var(--brand);font-family:'Poppins',sans-serif;font-size:12px;font-weight:700;
}
.fs-hero h1{font-family:'Playfair Display',serif;font-size:50px;line-height:1.08;margin:18px 0;color:#163447}
.fs-lead{font-size:19px;line-height:1.75;color:var(--muted);margin:0 0 24px;max-width:760px}
.fs-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.fs-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;
  font-family:'Poppins',sans-serif;font-size:15px;font-weight:600;border:1px solid transparent;transition:.2s ease;
}
.fs-btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.fs-btn-primary:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}
.fs-btn-secondary{background:#fff;color:var(--brand);border-color:#cfe3ef}
.fs-btn-secondary:hover{background:#f4f9fc;color:var(--brand)}
.fs-highlight-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}
.fs-highlight{
  padding:14px 16px;background:#fbfdff;border:1px solid var(--border);border-radius:14px;color:#314553;font-size:15px;font-weight:600;
}

.fs-hero-side{padding:22px;display:flex;flex-direction:column;gap:16px}
.fs-status-box{padding:18px;border-radius:16px;background:#fbfdff;border:1px solid var(--border)}
.fs-status-box h3{margin:0 0 8px;font-family:'Poppins',sans-serif;font-size:18px;color:#163447}
.fs-status-box p{margin:0;color:var(--muted);line-height:1.65}
.fs-pill{display:inline-flex;padding:6px 10px;border-radius:999px;font-family:'Poppins',sans-serif;font-size:12px;font-weight:700;background:#eef7fb;color:var(--brand);border:1px solid #cfe3ef;margin-bottom:12px}

.fs-dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:22px 0 28px}
.fs-module-card{padding:24px;display:flex;flex-direction:column;min-height:260px}
.fs-module-icon{width:58px;height:58px;border-radius:16px;background:var(--brand-soft);border:1px solid #cfe3ef;color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:16px}
.fs-module-card h3{margin:0 0 10px;font-family:'Poppins',sans-serif;font-size:22px;color:#163447}
.fs-module-card p{margin:0 0 18px;color:var(--muted);line-height:1.75;flex:1}
.fs-badge{display:inline-flex;width:max-content;padding:6px 12px;border-radius:999px;background:#f4f9fc;border:1px solid var(--border);font-size:12px;font-weight:700;color:var(--brand);margin-bottom:14px}

.fs-two-col{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;margin-top:26px}
.fs-section-card{padding:28px}
.fs-section-card h2{margin:0 0 12px;font-family:'Poppins',sans-serif;font-size:30px;color:#153244}
.fs-section-card p{margin:0;color:var(--muted);line-height:1.75}
.fs-list{margin:18px 0 0;padding-left:20px;color:var(--muted);line-height:1.9}
.fs-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.fs-kpi{padding:18px;border:1px solid var(--border);border-radius:16px;background:#fbfdff}
.fs-kpi strong{display:block;font-family:'Poppins',sans-serif;font-size:30px;color:var(--brand);margin-bottom:4px}
.fs-kpi span{color:var(--muted);font-size:14px;line-height:1.45}

.fs-table-wrap{overflow:auto;margin-top:18px}
.fs-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden}
.fs-table th,.fs-table td{padding:16px 14px;border-bottom:1px solid #edf3f7;text-align:left;font-size:15px}
.fs-table th{background:#f8fbfd;color:#355061;font-family:'Poppins',sans-serif;font-weight:600}
.fs-table tr:last-child td{border-bottom:none}
.fs-table .status-ok{color:var(--success);font-weight:700}
.fs-table .status-pending{color:var(--warning);font-weight:700}
.fs-table .status-off{color:var(--danger);font-weight:700}

.fs-empty{
  margin-top:18px;padding:30px;border-radius:16px;border:1px dashed #cfe3ef;background:#fbfdff;text-align:center;color:var(--muted);line-height:1.7
}

.fs-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.fs-mini-card{padding:18px;border:1px solid var(--border);border-radius:16px;background:#fbfdff}
.fs-mini-card h4{margin:0 0 8px;font-family:'Poppins',sans-serif;color:#163447;font-size:17px}
.fs-mini-card p{margin:0;color:var(--muted);line-height:1.6;font-size:14px}

.faraday-connection-panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #d7e6f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  box-shadow: 0 10px 24px rgba(16, 98, 146, .05);
}

.faraday-connection-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.faraday-connection-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #cfe3ef;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.faraday-connection-panel__head h4 {
  margin: 8px 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 21px;
  line-height: 1.3;
  color: #153244;
}

.faraday-connection-panel__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faraday-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faraday-connection-option {
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 18px;
  border: 1px solid #dbe6ef;
  border-radius: 16px;
  background: #fff;
}

.faraday-connection-option.is-current {
  border-color: #a9d0e5;
  background: #f5fbff;
}

.faraday-connection-option.is-future {
  background: #f8fafc;
}

.faraday-connection-option__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.faraday-connection-badge,
.faraday-connection-provider {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.faraday-connection-badge.is-current {
  background: #eaf6fc;
  border-color: #b9d8e9;
  color: #0f6c9e;
}

.faraday-connection-badge.is-available {
  background: #eef8f1;
  border-color: #cfe5d6;
  color: #2f6d44;
}

.faraday-connection-badge.is-manual {
  background: #fff8eb;
  border-color: #f1ddb2;
  color: #9a6a10;
}

.faraday-connection-badge.is-future {
  background: #eef2f6;
  border-color: #d7e0ea;
  color: #526274;
}

.faraday-connection-provider {
  background: #fff;
  color: var(--brand);
}

.faraday-connection-option__body {
  min-width: 0;
}

.faraday-connection-option__title {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: #153244;
}

.faraday-connection-option__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faraday-connection-option__meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #4c5d6d;
  font-size: 13px;
  line-height: 1.55;
}

.faraday-connection-option__meta > span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.faraday-connection-tech {
  border: 1px solid #e5edf3;
  border-radius: 12px;
  background: #fbfdff;
}

.faraday-connection-tech summary {
  cursor: pointer;
  padding: 9px 12px;
  color: #526274;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.faraday-connection-tech__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.faraday-connection-tech__chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #fff;
  color: #607080;
  font-size: 11px;
  font-weight: 700;
}

.faraday-connection-tech__chips code {
  color: #153244;
  font-size: 11px;
  white-space: normal;
  word-break: break-word;
}

.faraday-connection-option__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
}

.faraday-connection-option__actions .btn-soft:disabled {
  cursor: not-allowed;
  opacity: .72;
  background: #f2f5f8;
  color: #657487;
  border-color: #d7e0ea;
}

.wwebjs-private-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #cfe3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
}

.wwebjs-private-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wwebjs-private-panel-head h4 {
  margin: 0 0 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #153244;
}

.wwebjs-private-panel-head p {
  margin: 0;
  color: #5d6874;
  line-height: 1.65;
}

.wwebjs-private-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #b9d8e9;
  background: #eaf6fc;
  color: #0f6c9e;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.wwebjs-private-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe6ef;
  border-radius: 14px;
  background: #fff;
  color: #5d6874;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .faraday-connection-panel__head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .faraday-connection-panel {
    padding: 16px;
  }

  .faraday-connection-grid {
    grid-template-columns: 1fr;
  }

  .faraday-connection-option {
    min-height: 0;
  }

  .faraday-connection-option__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .faraday-connection-option__actions .btn-soft {
    width: 100%;
  }
}

.fs-dashboard-channel-card{
  margin:0 0 28px;
  padding:24px;
  border:1px solid #dde8f1;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#f8fbfe 100%);
  box-shadow:0 10px 28px rgba(16,98,146,.06);
}

.fs-dashboard-channel-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,420px);
  gap:22px;
  align-items:start;
}

.fs-dashboard-kicker{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid #cfe3ef;
  background:#eef7fb;
  color:#0f6c9e;
  font-family:'Poppins',sans-serif;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.fs-dashboard-channel-head h2{
  margin:8px 0 8px;
  font-family:'Poppins',sans-serif;
  font-size:28px;
  line-height:1.2;
  color:#153244;
}

.fs-dashboard-channel-head p{
  margin:0;
  max-width:760px;
  color:#5d6874;
  line-height:1.7;
  font-size:16px;
}

.fs-dashboard-channel-form label{
  display:block;
  margin:0 0 8px;
  color:#4c5d6d;
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:700;
}

.fs-dashboard-channel-form select{
  width:100%;
  min-height:46px;
  border:1px solid #cfdbe6;
  border-radius:12px;
  background:#fff;
  color:#153244;
  padding:0 14px;
  font-family:'Lato',Arial,sans-serif;
  font-size:15px;
  outline:none;
}

.fs-dashboard-channel-form select:focus{
  border-color:#0f6c9e;
  box-shadow:0 0 0 3px rgba(15,108,158,.12);
}

.fs-dashboard-channel-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0 0;
}

.fs-dashboard-channel-chip{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #dbe6ef;
  background:#f5f9fc;
  color:#4c5d6d;
  font-family:'Poppins',sans-serif;
  font-size:12px;
  font-weight:700;
}

.fs-dashboard-channel-chip.is-ok{
  background:#eef8f1;
  border-color:#cfe5d6;
  color:#2f6d44;
}

.fs-dashboard-channel-chip.is-warning{
  background:#fff8eb;
  border-color:#f1ddb2;
  color:#9a6a10;
}

.fs-dashboard-channel-chip.is-danger{
  background:#fff5f5;
  border-color:#efc1c1;
  color:#b42318;
}

.fs-dashboard-channel-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:22px 0 0;
}

.fs-dashboard-channel-actions a,
.fs-dashboard-channel-empty a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid #0f6c9e;
  background:#0f6c9e;
  color:#fff;
  text-decoration:none;
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:700;
  text-align:center;
}

.fs-dashboard-channel-actions a:hover,
.fs-dashboard-channel-empty a:hover{
  background:#095781;
  border-color:#095781;
  color:#fff;
}

.fs-dashboard-channel-empty{
  display:grid;
  gap:10px;
  margin:20px 0 0;
  padding:18px;
  border:1px dashed #cfe3ef;
  border-radius:14px;
  background:#fbfdff;
  color:#5d6874;
  line-height:1.7;
}

.fs-dashboard-channel-empty strong{
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:17px;
}

.fs-dashboard-channel-empty a{
  width:max-content;
  margin-top:4px;
}

body.fs-body-inbox .menu-inbox{
  background:#0f6c9e;
  box-shadow:0 8px 22px rgba(8,84,124,.14);
}

body.fs-body-inbox .menu-inbox .menu-inbox-container{
  min-height:92px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
}

body.fs-body-inbox .fs-menu-meta{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}

body.fs-body-inbox .fs-menu-contact{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

body.fs-body-inbox .fs-menu-contact a{
  color:rgba(255,255,255,.92);
  font-size:14px;
  text-decoration:none;
}

body.fs-body-inbox .fs-menu-contact a:hover{
  color:#ffffff;
}

body.fs-body-inbox .fs-menu-account{
  display:flex;
  align-items:center;
  gap:12px;
}

body.fs-body-inbox .account-trigger-inbox{
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.28);
  background:#ffffff;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

body.fs-body-inbox .account-trigger-inbox:hover{
  border-color:#ffffff;
}

body.fs-body-inbox .fs-menu-logout{
  color:#ffffff;
  font-size:14px;
  text-decoration:none;
  font-family:'Poppins',sans-serif;
  font-weight:500;
}

body.fs-body-inbox .fs-menu-logout:hover{
  text-decoration:underline;
}

@media (max-width: 1180px){
  body.fs-body-inbox .menu-inbox .menu-inbox-container{
    grid-template-columns:1fr;
    align-items:flex-start;
    padding-top:18px;
    padding-bottom:18px;
  }

  body.fs-body-inbox .nav{
    order:3;
    width:100%;
  }

  body.fs-body-inbox .fs-menu-meta{
    order:2;
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
  }
}

@media (max-width: 767px){
  body.fs-body-inbox .fs-menu-meta,
  body.fs-body-inbox .fs-menu-contact,
  body.fs-body-inbox .fs-menu-account{
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}

/* =========================================================
   MENÚ COMÚN LIMPIO DEL PORTAL
   - logo izquierda
   - navegación centro
   - cuenta derecha
   ========================================================= */
.menu-portal-clean{
  background:#0f6c9e;
  box-shadow:0 8px 22px rgba(8,84,124,.14);
}

.menu-portal-clean-container{
  min-height:92px;
  display:grid;
  grid-template-columns:minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items:center;
  gap:24px;
}

.nav-portal-clean{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  flex-wrap:wrap;
  min-width:0;
  justify-self:center;
}

/* CAMBIO: los links del menú común deben verse igual que en inbox */
.menu-portal-clean .nav-portal-clean a{
  color:#ffffff !important;
  text-decoration:none;
  font-family:'Poppins',sans-serif;
  font-size:16px;
  font-weight:600;
  opacity:.96;
}

.menu-portal-clean .nav-portal-clean a:hover{
  color:#ffffff !important;
  opacity:1;
}

.menu-portal-clean .nav-portal-clean a:visited{
  color:#ffffff !important;
}

.menu-portal-clean .nav-portal-clean a.active{
  color:#ffffff !important;
  opacity:1;
  border-bottom:2px solid rgba(255,255,255,.85);
  padding-bottom:4px;
}

.menu-portal-clean .brand{
  justify-self:start;
}

.menu-portal-clean .portal-menu-account{
  justify-self:end;
}

.portal-menu-account{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-left:0;
  flex-wrap:nowrap;
  white-space:nowrap;
  min-width:max-content;
}

.account-trigger-portal{
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.28);
  background:#ffffff;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.account-trigger-portal:hover{
  border-color:#ffffff;
}

.portal-menu-logout{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#ffffff;
  font-size:14px;
  text-decoration:none;
  font-family:'Poppins',sans-serif;
  font-weight:500;
  white-space:nowrap;
}

.portal-menu-logout:hover{
  text-decoration:underline;
}

.account-panel-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid #cfe3ef;
  background:#ffffff;
  color:var(--brand);
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.account-panel-link:hover{
  border-color:var(--brand);
  background:#f4f9fc;
  color:var(--brand-dark);
}

.fs-account-layout{
  display:grid;
  grid-template-columns:minmax(0, .95fr) minmax(320px, .75fr);
  gap:22px;
  align-items:start;
}

.fs-account-card{
  padding:28px;
}

.fs-account-card h1,
.fs-account-card h2{
  margin:14px 0 10px;
  font-family:'Poppins',sans-serif;
  color:var(--ink);
  line-height:1.2;
}

.fs-account-card h1{
  font-size:32px;
}

.fs-account-card h2{
  font-size:26px;
}

.fs-account-card p{
  margin:0 0 20px;
  color:var(--muted);
  line-height:1.7;
}

.fs-account-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.fs-account-summary div{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fbfdff;
}

.fs-account-summary span,
.fs-account-field label{
  display:block;
  margin-bottom:7px;
  color:#4c5d6d;
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:700;
}

.fs-account-summary strong{
  display:block;
  color:var(--ink);
  font-size:16px;
  line-height:1.45;
  word-break:break-word;
}

.fs-account-form{
  display:grid;
  gap:16px;
}

.fs-account-field input{
  width:100%;
  min-height:46px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  padding:0 13px;
  font:15px 'Lato',Arial,sans-serif;
}

.fs-account-field input:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(15,108,158,.12);
}

.fs-account-flash{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:12px;
  font-weight:700;
}

.fs-account-flash.is-ok{
  border:1px solid #bfe5cc;
  background:#edf9f1;
  color:#1f7a3c;
}

.fs-account-flash.is-error{
  border:1px solid #f0c4c4;
  background:#fff2f2;
  color:#a33131;
}

@media (max-width: 900px){
  .fs-account-layout,
  .fs-account-summary{
    grid-template-columns:1fr;
  }
}

@media (max-width: 1180px){
  .menu-portal-clean-container{
    min-height:78px;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:16px;
    padding-top:12px;
    padding-bottom:12px;
  }

  .menu-portal-clean .brand{
    justify-self:start;
  }

  .menu-portal-clean .brand img{
    max-height:44px;
  }

  .menu-portal-clean .nav-portal-clean{
    justify-self:center;
    justify-content:center;
    width:100%;
    min-width:0;
    gap:18px;
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .menu-portal-clean .nav-portal-clean::-webkit-scrollbar{
    display:none;
  }

  .menu-portal-clean .nav-portal-clean a{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:15px;
  }

  .menu-portal-clean .portal-menu-account{
    justify-self:end;
    width:auto;
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:10px;
  }
}

@media (max-width: 767px){
  .menu-portal-clean-container{
    min-height:auto;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:10px 14px;
    padding-top:12px;
    padding-bottom:12px;
  }

  .menu-portal-clean .brand{
    justify-self:start;
  }

  .menu-portal-clean .brand img{
    max-height:38px;
  }

  .menu-portal-clean .nav-portal-clean{
    grid-column:1 / -1;
    justify-self:stretch;
    width:100%;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    flex-direction:row;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .menu-portal-clean .nav-portal-clean::-webkit-scrollbar{
    display:none;
  }

  .menu-portal-clean .nav-portal-clean a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    white-space:nowrap;
    font-size:14px;
    line-height:1;
    flex:0 0 auto;
    color:#ffffff !important; /* CAMBIO */
    text-decoration:none;
  }

  .menu-portal-clean .nav-portal-clean a:hover{
    color:#ffffff !important;
  }

  .menu-portal-clean .nav-portal-clean a:visited{
    color:#ffffff !important;
  }

  .menu-portal-clean .nav-portal-clean a.active{
    color:#ffffff !important;
    border-bottom:none;
    padding-bottom:0;
    background:rgba(255,255,255,.16);
    border-color:rgba(255,255,255,.28);
    box-shadow:inset 0 -2px 0 rgba(255,255,255,.75);
  }

  .menu-portal-clean .portal-menu-account{
    justify-self:end;
    width:auto;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:nowrap;
    min-width:0;
  }

  .menu-portal-clean .account-trigger-portal{
    min-height:36px;
    padding:0 12px;
    font-size:13px;
  }

  .menu-portal-clean .portal-menu-logout{
    min-height:36px;
    font-size:13px;
  }
}

@media (max-width: 480px){
  .menu-portal-clean-container{
    gap:8px 10px;
  }

  .menu-portal-clean .brand img{
    max-height:34px;
  }

  .menu-portal-clean .portal-menu-account{
    grid-column:1 / -1;
    justify-self:start;
    width:100%;
    justify-content:flex-start;
  }

  .menu-portal-clean .nav-portal-clean a{
    min-height:36px;
    padding:0 12px;
    font-size:13px;
  }

  .menu-portal-clean .account-trigger-portal,
  .menu-portal-clean .portal-menu-logout{
    font-size:12px;
  }
}

/* =========================================================
   CAMBIO: split screen desktop / tablet horizontal
   - deja Mi cuenta + Cerrar sesión arriba a la derecha
   - deja navegación abajo centrada
   - NO toca el celular angosto, que ya quedó bien
   ========================================================= */
@media (max-width: 980px) and (min-width: 481px){
  .menu.menu-portal-clean .menu-portal-clean-container{
    display:grid !important;
    min-height:auto !important;
    grid-template-columns:1fr auto !important;
    grid-template-rows:auto auto !important; /* CAMBIO: dos filas reales */
    align-items:center !important;
    gap:12px 16px !important;
    padding-top:12px !important;
    padding-bottom:12px !important;
  }

  .menu.menu-portal-clean .brand{
    grid-column:1 / 2 !important;
    grid-row:1 !important; /* CAMBIO: logo arriba */
    justify-self:start !important;
    align-self:center !important;
  }

  .menu.menu-portal-clean .brand img{
    max-height:40px !important;
  }

  .menu.menu-portal-clean .portal-menu-account{
    display:flex !important;
    grid-column:2 / 3 !important;
    grid-row:1 !important; /* CAMBIO: cuenta arriba */
    justify-self:end !important;
    align-self:center !important;
    width:auto !important;
    min-width:max-content !important;
    justify-content:flex-end !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
    gap:10px !important;
    margin-left:0 !important;
  }

  .menu.menu-portal-clean .account-trigger-portal{
    min-height:38px;
    padding:0 14px;
    font-size:13px;
  }

  .menu.menu-portal-clean .portal-menu-logout{
    display:inline-flex !important;
    align-items:center !important;
    min-height:38px;
    font-size:13px;
  }

  .menu.menu-portal-clean .nav-portal-clean{
    display:flex !important;
    grid-column:1 / -1 !important;
    grid-row:2 !important; /* CAMBIO: navegación abajo */
    justify-self:center !important;
    width:100% !important;
    justify-content:center !important;
    align-items:center !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    gap:18px !important;
    overflow-x:auto;
    padding-top:2px;
    scrollbar-width:none;
  }

  .menu.menu-portal-clean .nav-portal-clean::-webkit-scrollbar{
    display:none;
  }

  .menu.menu-portal-clean .nav-portal-clean a{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:15px;
    color:#ffffff !important;
    text-decoration:none;
    opacity:.96;
  }

  .menu.menu-portal-clean .nav-portal-clean a:hover{
    color:#ffffff !important;
    opacity:1;
  }

  .menu.menu-portal-clean .nav-portal-clean a:visited{
    color:#ffffff !important;
  }

  .menu.menu-portal-clean .nav-portal-clean a.active{
    color:#ffffff !important;
    opacity:1;
    border-bottom:2px solid rgba(255,255,255,.85);
    padding-bottom:4px;
  }
}

@media (max-width: 1100px){
  .fs-dashboard-grid{grid-template-columns:repeat(2,1fr)}
  .fs-hero,.fs-two-col{grid-template-columns:1fr}
  .fs-dashboard-channel-head{grid-template-columns:1fr}
  .fs-dashboard-channel-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 767px){
  .fs-top-header{display:none}
  .fs-main-nav .fs-container{min-height:auto;padding:20px 0;align-items:flex-start;flex-direction:column}
  .fs-nav-links{gap:18px}
  .fs-page{padding-top:24px}
  .fs-hero h1{font-size:38px}
  .fs-highlight-grid,.fs-dashboard-grid,.fs-kpi-grid,.fs-mini-grid{grid-template-columns:1fr}
  .fs-hero-main,.fs-hero-side,.fs-section-card{padding:22px}
  .fs-dashboard-channel-card{padding:18px;border-radius:16px}
  .fs-dashboard-channel-head h2{font-size:24px}
  .fs-dashboard-channel-actions{grid-template-columns:1fr}
}

/* =========================================================
   INBOX OPERATIVO
   ========================================================= */
.fs-page-inbox{
  flex:1;
  min-height:0;
  height:100%;
  padding:12px 0 0;   /* CAMBIO: aprovecha mejor el espacio superior liberado */
  overflow:hidden;
}

.fs-page-inbox .fs-container{
  width:min(1540px, calc(100% - 24px));
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:12px;          /* CAMBIO: menos aire muerto arriba */
  overflow:hidden;
}

.fs-inbox-shell{
  padding:0;
  overflow:hidden;
  border-radius:18px;
  flex:1 1 auto;
  min-height:0;
  height:100%;
}

.fs-inbox-layout{
  display:grid;
  grid-template-columns:56px 320px minmax(0, 1fr);
  height:100%;
  min-height:0;
  background:#eef3f8;
  overflow:hidden; /* CAMBIO: el scroll queda delegado a paneles internos */
}

/* ======================================
   COLUMNA LATERAL ANGOSTA
   ====================================== */
.fs-inbox-sidebar-icons{
  background:#e9f0f6;
  border-right:1px solid #d7e2ec;
  padding:12px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.fs-inbox-sidebar-icons button{
  width:38px;
  height:38px;
  border:none;
  border-radius:12px;
  background:#ffffff;
  color:#587084;
  font-size:17px;
  cursor:pointer;
  box-shadow:none;
}

.fs-inbox-sidebar-icons button.active,
.fs-inbox-sidebar-icons button:hover{
  background:#dfeefa;
  color:#0f6c9e;
  outline:1px solid #c9dff0;
}

/* ======================================
   PANEL IZQUIERDO
   ====================================== */
.fs-inbox-list-panel{
  background:#f4f7fb;
  border-right:1px solid #d7e2ec;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.fs-list-toolbar{
  padding:12px;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid #e1e8f1;
  background:#f8fbfe;
}

.fs-searchbox{
  flex:1;
  background:#fff;
  border:1px solid #d7e2ec;
  border-radius:12px;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
}

.fs-searchbox span{
  color:#7a8c9c;
  font-size:16px;
}

.fs-searchbox input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:#365064;
}

.fs-mini-actions{
  display:flex;
  gap:6px;
}

.fs-mini-actions button,
.fs-folder-actions button,
.fs-room-header-actions button,
.fs-composer-tools button{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#fff;
  color:#6c8091;
  font-size:15px;
  cursor:pointer;
  box-shadow:none;
  border:1px solid #e1e8f1;
}

.fs-mini-actions button:hover,
.fs-folder-actions button:hover,
.fs-room-header-actions button:hover,
.fs-composer-tools button:hover{
  background:#f1f7fc;
  color:#0f6c9e;
}

.fs-filter-row{
  padding:12px;
}

.fs-filter-btn{
  border:none;
  border-radius:10px;
  background:#0f6c9e;
  color:#fff;
  min-height:40px;
  padding:0 14px;
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.fs-folder-row{
  padding:8px 12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.fs-folder-title{
  font-family:'Poppins',sans-serif;
  font-size:16px;
  font-weight:600;
  color:#314b60;
}

.fs-folder-actions{
  display:flex;
  gap:6px;
}

.fs-chat-list{
  padding:0 10px 12px;
  flex:1;
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column; /* CAMBIO: una conversación por fila */
}

.fs-chat-list-empty{
  display:flex;
  align-items:center;
  justify-content:center;
}

.fs-chat-item{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 22px;
  gap:12px;
  align-items:flex-start;
  width:100%;
  padding:12px;
  border-radius:14px;
  color:inherit;
  margin-bottom:8px;
  background:transparent;
  border:1px solid transparent;
  transition:.18s ease;
}

.fs-chat-item:hover{
  background:#ffffff;
  border-color:#e1e8f1;
}

.fs-chat-item.active{
  background:#ffffff;
  border-color:#cfe2ef;
  box-shadow:0 8px 22px rgba(16,98,146,.06);
}

.fs-chat-avatar{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:50%;
  background:#d9e7f2;
  color:#436277;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Poppins',sans-serif;
  font-size:14px;
  font-weight:700;
}

.fs-chat-copy{
  min-width:0;
}

.fs-chat-copy-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:4px;
}

.fs-chat-copy-top strong{
  font-family:'Poppins',sans-serif;
  font-size:14px;
  color:#183548;
  line-height:1.3;
}

.fs-chat-copy-top span{
  font-size:12px;
  color:#7a8c9c;
  white-space:nowrap;
}

.fs-chat-channel{
  font-size:12px;
  color:#0f6c9e;
  margin-bottom:4px;
}

.fs-chat-copy p{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:#61707d;
  display:-webkit-box;
  line-clamp:2; /* CAMBIO: propiedad estándar sugerida por el editor */
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.fs-chat-count{
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#e8f3fb;
  color:#0f6c9e;
  font-size:12px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
}

/* ======================================
   PANEL DERECHO
   ====================================== */
.fs-chat-room{
  background:#f7fafc;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-width:0;
  min-height:0;
  height:100%;
  overflow:hidden;
}

.fs-chat-room-header{
  min-height:92px;
  padding:14px 18px;
  border-bottom:1px solid #dde7ef;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:sticky;
  top:0;
  z-index:3;
}

.fs-room-user{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.fs-room-avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#d7e6f2;
  color:#4a687d;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Poppins',sans-serif;
  font-size:18px;
  font-weight:700;
  flex:0 0 52px;
}

.fs-room-user h3{
  margin:0 0 4px;
  font-family:'Poppins',sans-serif;
  font-size:18px;
  color:#183548;
}

.fs-room-channel{
  color:#61707d;
  font-size:13px;
  line-height:1.4;
}

.fs-room-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}

.fs-room-tags span{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#eef6fb;
  color:#567083;
  font-size:11px;
  font-weight:700;
}

.fs-room-header-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ======================================
   ÁREA DE CONVERSACIÓN
   ====================================== */
.fs-conversation-area{
  min-width:0;
  min-height:0;
  height:100%;
  max-height:100%;
  padding:18px 20px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(246,250,252,.96) 100%);
}

body.fs-body-inbox .fs-conversation-area{
  scrollbar-width:thin;
  scrollbar-color:#b8cad8 transparent;
}

.fs-conversation-area::-webkit-scrollbar{
  width:12px;
}

.fs-conversation-area::-webkit-scrollbar-track{
  background:transparent;
}

.fs-conversation-area::-webkit-scrollbar-thumb{
  background:#c7d6e3;
  border-radius:999px;
  border:3px solid transparent;
  background-clip:padding-box;
}

.fs-conversation-area::-webkit-scrollbar-thumb:hover{
  background:#aebfd0;
  border:3px solid transparent;
  background-clip:padding-box;
}

.fs-conversation-empty{
  display:flex;
  align-items:center;
  justify-content:center;
}

.fs-day-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:10px 0 18px;
  font-size:12px;
  font-weight:700;
  color:#7a8c9c;
}

.fs-message-row{
  display:flex;
  margin-bottom:10px;
}

.fs-message-row.is-inbound{
  justify-content:flex-start;
}

.fs-message-row.is-outbound{
  justify-content:flex-end;
}

.fs-message-bubble{
  max-width:min(78%, 920px);
  padding:10px 12px 8px;
  border-radius:16px;
  word-break:break-word;
  box-shadow:0 6px 18px rgba(21,50,68,.05);
}

.fs-message-bubble.is-inbound{
  background:#ffffff;
  border:1px solid #dde7ef;
  border-top-left-radius:6px;
  text-align:left;
}

.fs-message-bubble.is-outbound{
  background:#dff0fb;
  border:1px solid #c7e2f3;
  border-top-right-radius:6px;
  text-align:right; /* CAMBIO: alineación para diferenciar emisor */
}

.fs-message-author{
  margin-bottom:6px;
  font-family:'Poppins',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.2px;
  text-transform:uppercase;
  color:#587084;
}

.fs-message-bubble.is-outbound .fs-message-author{
  color:#0f6c9e;
}

.fs-message-text{
  font-size:15px;
  line-height:1.6;
  color:#1d3446;
}

.fs-message-meta{
  margin-top:7px;
  font-size:11px;
  color:#7890a1;
}

.fs-message-bubble.is-outbound .fs-message-meta{
  text-align:right;
}

.fs-message-bubble.is-inbound .fs-message-meta{
  text-align:left;
}

body.fs-body-inbox .fs-message-bubble.is-outbound.is-failed,
body.fs-body-inbox .fs-message-bubble.is-outbound.is-uncertain{
  background:#fff;
  border-color:#cddbe5;
}

body.fs-body-inbox .fs-message-delivery{
  margin-top:7px;
  font-size:12px;
  font-weight:700;
  color:#8b3b35;
}

body.fs-body-inbox .fs-message-bubble.is-uncertain .fs-message-delivery{
  color:#79591f;
}

.fs-empty-state-box,
.fs-conversation-placeholder{
  max-width:420px;
  text-align:center;
}

.fs-empty-state-box{
  padding:28px 22px;
  background:#fff;
  border:1px dashed #cfdbe6;
  border-radius:20px;
}

.fs-empty-state-icon,
.fs-placeholder-icon{
  width:64px;
  height:64px;
  border-radius:18px;
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f4f7fb;
  color:#7a7a7a;
  font-size:28px;
}

.fs-empty-state-box h3,
.fs-conversation-placeholder h3{
  margin:0 0 10px;
  font-family:'Poppins',sans-serif;
  color:#183548;
  font-size:22px;
}

.fs-empty-state-box p,
.fs-conversation-placeholder p{
  margin:0;
  color:#61707d;
  line-height:1.7;
}

/* ======================================
   COMPOSER
   ====================================== */
.fs-composer{
  min-height:74px;
  border-top:1px solid #dde7ef;
  background:#ffffff;
  display:grid;
  grid-template-columns:110px minmax(0, 1fr) 96px;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  position:sticky;
  bottom:0;
  z-index:3;
  box-shadow:0 -8px 18px rgba(16,98,146,.06);
}

.fs-composer-tools{
  display:flex;
  gap:6px;
}

.fs-composer input{
  width:100%;          /* CAMBIO */
  min-width:0;         /* CAMBIO */
  min-height:44px;
  border:1px solid #d7e2ec;
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
  color:#385266;
  background:#fff;
}

.fs-composer.is-disabled input{
  background:#f5f7fa;
}

.fs-send-btn{
  width:100%;          /* CAMBIO */
  min-width:0;         /* CAMBIO */
  min-height:44px;
  border:none;
  border-radius:12px;
  background:#0f6c9e;
  color:#fff;
  font-family:'Poppins',sans-serif;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.fs-send-btn:hover{
  background:#0a547c;
}

.fs-send-btn:disabled{
  background:#d6dde6;
  cursor:not-allowed;
}

body.fs-body-inbox .topbar,
body.fs-body-inbox .menu{
  flex:0 0 auto;
}

body.fs-body-inbox .fs-page.fs-page-inbox{
  flex:1;
  min-height:0;
  overflow:hidden;
}

body.fs-body-inbox .fs-inbox-list-panel,
body.fs-body-inbox .fs-chat-room,
body.fs-body-inbox .fs-inbox-shell,
body.fs-body-inbox .fs-inbox-layout{
  min-height:0;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1280px){
  .fs-inbox-layout{
    grid-template-columns:56px 320px minmax(0, 1fr);
  }
}

@media (max-width: 900px){
  .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 20px));
  }

  .fs-inbox-shell{
    border-radius:16px;
  }

  .fs-inbox-layout{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .fs-inbox-sidebar-icons{
    display:none;
  }

  .fs-inbox-list-panel{
    border-right:none;
    border-bottom:1px solid #dbe4f0;
  }

  .fs-list-toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .fs-searchbox,
  .fs-searchbox input{
    width:100%;
    min-width:0;
  }

  .fs-folder-row{
    flex-wrap:wrap;
  }

  .fs-folder-title,
  .fs-folder-actions{
    width:100%;
  }

  .fs-chat-room-header{
    padding:14px;
    flex-direction:column;
    align-items:flex-start;
  }

  .fs-room-header-actions{
    width:100%;
    justify-content:flex-start;
  }

  .fs-conversation-area{
    padding:14px;
    min-height:320px;
  }

  .fs-message-bubble{
    max-width:90%;
  }

  .fs-composer{
    grid-template-columns:1fr;
  }

  .fs-composer-tools{
    order:1;
  }

  .fs-composer input{
    order:2;
  }

  .fs-send-btn{
    order:3;
    width:100%;
  }
}

@media (max-width: 576px){
  .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 14px));
  }

  .fs-chat-item{
    grid-template-columns:40px minmax(0,1fr) auto;
    padding:10px;
  }

  .fs-chat-avatar{
    width:40px;
    height:40px;
    min-width:40px;
    font-size:13px;
  }

  .fs-room-avatar{
    width:44px;
    height:44px;
    flex:0 0 44px;
    font-size:15px;
  }

  .fs-room-user h3{
    font-size:16px;
  }

  .fs-message-text{
    font-size:14px;
  }

  .fs-message-bubble{
    max-width:94%;
    border-radius:14px;
  }
}

/* =========================================================
   INBOX RESPONSIVE MOBILE
   ========================================================= */
@media (max-width: 900px){

  .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 24px));
  }

  .fs-inbox-shell{
    border-radius:18px;
  }

  .fs-inbox-layout{
    grid-template-columns:1fr;
    min-height:auto;
  }

  /* CAMBIO: en celular ocultamos la barra lateral angosta */
  .fs-inbox-sidebar-icons{
    display:none;
  }

  /* CAMBIO: panel izquierdo arriba */
  .fs-inbox-list-panel{
    min-width:0;
    border-right:none;
    border-bottom:1px solid #dbe4f0;
  }

  .fs-list-toolbar,
  .fs-filter-row,
  .fs-folder-row{
    padding-left:14px;
    padding-right:14px;
  }

  .fs-list-toolbar{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .fs-searchbox{
    width:100%;
  }

  .fs-searchbox input{
    width:100%;
    min-width:0;
  }

  .fs-mini-actions{
    justify-content:flex-end;
  }

  .fs-folder-row{
    flex-wrap:wrap;
    gap:10px;
  }

  .fs-folder-title,
  .fs-folder-actions{
    width:100%;
  }

  .fs-chat-list{
    max-height:none;
  }

  .fs-chat-item{
    padding:14px;
    gap:12px;
  }

  .fs-chat-avatar{
    width:42px;
    height:42px;
    min-width:42px;
    font-size:14px;
  }

  .fs-chat-copy{
    min-width:0;
  }

  .fs-chat-copy-top{
    gap:8px;
  }

  .fs-chat-copy-top strong,
  .fs-chat-copy-top span,
  .fs-chat-channel,
  .fs-chat-copy p{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* CAMBIO: panel derecho abajo */
  .fs-chat-room{
    min-width:0;
  }

  .fs-chat-room-header{
    padding:14px;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .fs-room-user{
    width:100%;
    min-width:0;
  }

  .fs-room-user > div:last-child{
    min-width:0;
  }

  .fs-room-user h3{
    font-size:18px;
    line-height:1.25;
    margin:0 0 6px;
    word-break:break-word;
  }

  .fs-room-channel{
    font-size:13px;
    line-height:1.45;
    word-break:break-word;
  }

  .fs-room-tags{
    gap:8px;
  }

  .fs-room-tags span{
    font-size:11px;
    padding:6px 10px;
  }

  .fs-room-header-actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }

  .fs-conversation-area{
    padding:14px;
    min-height:320px;
  }

  .fs-message-row{
    margin-bottom:10px;
  }

  .fs-message-bubble{
    max-width:88%;
    padding:10px 12px;
    font-size:14px;
    line-height:1.55;
  }

  .fs-message-meta{
    font-size:11px;
    line-height:1.4;
  }

  .fs-day-divider{
    margin:14px 0;
    font-size:12px;
  }

  .fs-conversation-placeholder{
    padding:26px 18px;
  }

  .fs-conversation-placeholder h3{
    font-size:20px;
    line-height:1.3;
  }

  .fs-conversation-placeholder p{
    font-size:14px;
    line-height:1.65;
  }

  .fs-composer{
    padding:12px;
    gap:10px;
    flex-wrap:wrap;
  }

  .fs-composer-tools{
    width:100%;
    order:1;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .fs-composer input{
    width:100%;
    min-width:0;
    order:2;
  }

  .fs-composer > button{
    width:100%;
    order:3;
    justify-content:center;
  }
}

/* =========================================================
   INBOX EXTRA SMALL
   ========================================================= */
@media (max-width: 576px){

  .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 16px));
  }

  .fs-inbox-shell{
    border-radius:14px;
  }

  .fs-chat-item{
    padding:12px;
  }

  .fs-chat-avatar{
    width:38px;
    height:38px;
    min-width:38px;
    font-size:13px;
  }

  .fs-chat-copy-top strong{
    font-size:14px;
  }

  .fs-chat-copy-top span,
  .fs-chat-channel,
  .fs-chat-copy p{
    font-size:12px;
  }

  .fs-chat-room-header{
    padding:12px;
  }

  .fs-room-avatar{
    width:42px;
    height:42px;
    min-width:42px;
    font-size:14px;
  }

  .fs-room-user h3{
    font-size:16px;
  }

  .fs-conversation-area{
    padding:12px;
    min-height:280px;
  }

  .fs-message-bubble{
    max-width:92%;
    font-size:13px;
    border-radius:14px;
  }

  .fs-composer{
    padding:10px;
  }

  .fs-composer input{
    min-height:44px;
    font-size:14px;
  }

  .fs-composer > button{
    min-height:44px;
  }
}

/* =========================================================
   OVERRIDE FINAL
   INBOX | LÓGICA TIPO WHATSAPP
   - split PC: listado fijo + conversación dominante
   - mobile: lista o chat, nunca ambos apilados
   ========================================================= */

/* ---------------------------------------------------------
   1) SPLIT EN PC / TABLET HORIZONTAL
   --------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 901px){

  body.fs-body-inbox .fs-page.fs-page-inbox{
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 16px)) !important;
    height:100% !important;
    min-height:0 !important;
  }

  body.fs-body-inbox .fs-inbox-shell{
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-inbox-layout{
    display:grid !important;
    grid-template-columns: 340px minmax(0,1fr) !important; /* CAMBIO: lógica WhatsApp */
    height:100% !important;
    min-height:0 !important;
  }

  body.fs-body-inbox .fs-inbox-sidebar-icons{
    display:none !important;
  }

  body.fs-body-inbox .fs-inbox-list-panel{
    min-width:0 !important;
    height:100% !important;
    min-height:0 !important;
    border-right:1px solid #dbe4f0 !important;
    border-bottom:none !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-chat-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:0 8px 10px !important;
  }

  body.fs-body-inbox .fs-chat-item{
    grid-template-columns:42px minmax(0,1fr) 24px !important;
    padding:10px 12px !important;
    gap:10px !important;
    margin-bottom:6px !important;
  }

  body.fs-body-inbox .fs-chat-avatar{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    font-size:13px !important;
  }

  body.fs-body-inbox .fs-chat-copy-top strong{
    font-size:14px !important;
    line-height:1.25 !important;
  }

  body.fs-body-inbox .fs-chat-copy-top span,
  body.fs-body-inbox .fs-chat-channel,
  body.fs-body-inbox .fs-chat-copy p{
    font-size:12px !important;
  }

  body.fs-body-inbox .fs-chat-room{
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    display:grid !important;
    grid-template-rows:auto minmax(0,1fr) auto !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-chat-room-header{
    min-height:74px !important;
    padding:12px 14px !important;
    gap:12px !important;
  }

  body.fs-body-inbox .fs-room-user h3{
    font-size:17px !important;
  }

  body.fs-body-inbox .fs-conversation-area{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    padding:16px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }

  body.fs-body-inbox .fs-message-bubble{
    max-width:78% !important;
  }

  body.fs-body-inbox .fs-composer{
    grid-template-columns:auto minmax(0,1fr) auto !important;
    gap:10px !important;
    padding:12px !important;
  }

  body.fs-body-inbox .fs-composer-tools{
    width:auto !important;
    order:initial !important;
  }

  body.fs-body-inbox .fs-composer input{
    width:100% !important;
    min-width:0 !important;
    order:initial !important;
  }

  body.fs-body-inbox .fs-send-btn{
    width:auto !important;
    min-width:110px !important;
    order:initial !important;
  }

  body.fs-body-inbox .fs-room-back-btn{
    display:none !important; /* CAMBIO: en split no hace falta */
  }
}

/* ---------------------------------------------------------
   2) MOBILE / TABLET CHICA
   LÓGICA TIPO WHATSAPP:
   - fs-mobile-list => solo lista
   - fs-mobile-chat => solo conversación
   --------------------------------------------------------- */
@media (max-width: 900px){

  body.fs-body-inbox{
    height:100vh !important;
    max-height:100vh !important;
    min-height:100vh !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-page.fs-page-inbox{
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
    padding:8px 0 0 !important;
  }

  body.fs-body-inbox .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 12px)) !important;
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-inbox-shell{
    height:100% !important;
    min-height:0 !important;
    border-radius:14px !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-inbox-layout{
    display:grid !important;
    grid-template-columns:1fr !important;
    height:100% !important;
    min-height:0 !important;
  }

  body.fs-body-inbox .fs-inbox-sidebar-icons{
    display:none !important;
  }

  /* estado lista */
  body.fs-body-inbox.fs-mobile-list .fs-inbox-list-panel{
    display:flex !important;
    flex-direction:column !important;
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    border-right:none !important;
    border-bottom:none !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox.fs-mobile-list .fs-chat-room{
    display:none !important;
  }

  /* estado chat */
  body.fs-body-inbox.fs-mobile-chat .fs-inbox-list-panel{
    display:none !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-chat-room{
    display:grid !important;
    grid-template-rows:auto minmax(0,1fr) auto !important;
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    background:#fff !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox .fs-list-toolbar,
  body.fs-body-inbox .fs-filter-row,
  body.fs-body-inbox .fs-folder-row{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  body.fs-body-inbox .fs-list-toolbar{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  body.fs-body-inbox .fs-searchbox,
  body.fs-body-inbox .fs-searchbox input{
    width:100% !important;
    min-width:0 !important;
  }

  body.fs-body-inbox .fs-mini-actions{
    justify-content:flex-end !important;
  }

  body.fs-body-inbox .fs-folder-row{
    flex-wrap:wrap !important;
    gap:10px !important;
  }

  body.fs-body-inbox .fs-folder-title,
  body.fs-body-inbox .fs-folder-actions{
    width:100% !important;
  }

  body.fs-body-inbox .fs-chat-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    padding:0 8px 10px !important;
  }

  body.fs-body-inbox .fs-chat-item{
    grid-template-columns:40px minmax(0,1fr) 24px !important;
    gap:10px !important;
    padding:12px !important;
    margin-bottom:6px !important;
  }

  body.fs-body-inbox .fs-chat-avatar{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    font-size:13px !important;
  }

  body.fs-body-inbox .fs-chat-copy-top strong,
  body.fs-body-inbox .fs-chat-copy-top span,
  body.fs-body-inbox .fs-chat-channel,
  body.fs-body-inbox .fs-chat-copy p{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body.fs-body-inbox .fs-chat-room-header{
    min-height:auto !important;
    padding:12px !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:10px !important;
    position:sticky !important;
    top:0 !important;
    z-index:3 !important;
  }

  body.fs-body-inbox .fs-room-user{
    width:100% !important;
    min-width:0 !important;
  }

  body.fs-body-inbox .fs-room-user > div:last-child{
    min-width:0 !important;
  }

  body.fs-body-inbox .fs-room-user h3{
    font-size:16px !important;
    line-height:1.25 !important;
    margin:0 0 4px !important;
    word-break:break-word !important;
  }

  body.fs-body-inbox .fs-room-channel{
    font-size:12px !important;
    line-height:1.45 !important;
    word-break:break-word !important;
  }

  body.fs-body-inbox .fs-room-tags{
    gap:6px !important;
    margin-top:6px !important;
  }

  body.fs-body-inbox .fs-room-tags span{
    font-size:10px !important;
    padding:5px 8px !important;
  }

  body.fs-body-inbox .fs-room-header-actions{
    width:auto !important;
    justify-content:flex-end !important;
    flex-wrap:wrap !important;
    gap:8px !important;
  }

  body.fs-body-inbox .fs-room-back-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:38px !important;
    height:38px !important;
    border-radius:10px !important;
    border:1px solid #dbe4f0 !important;
    background:#fff !important;
    color:#183548 !important;
    font-size:18px !important;
    font-weight:700 !important;
  }

  body.fs-body-inbox .fs-conversation-area{
    min-height:0 !important;
    height:100% !important;
    max-height:none !important;
    padding:12px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }

  body.fs-body-inbox .fs-message-row{
    margin-bottom:10px !important;
  }

  body.fs-body-inbox .fs-message-bubble{
    max-width:88% !important;
    padding:10px 12px !important;
    border-radius:14px !important;
  }

  body.fs-body-inbox .fs-message-author{
    font-size:10px !important;
  }

  body.fs-body-inbox .fs-message-text{
    font-size:14px !important;
    line-height:1.55 !important;
  }

  body.fs-body-inbox .fs-message-meta{
    font-size:11px !important;
  }

  body.fs-body-inbox .fs-composer{
    position:sticky !important;
    bottom:0 !important;
    z-index:4 !important;
    background:#fff !important;
    border-top:1px solid #dbe4f0 !important;
    padding:10px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  body.fs-body-inbox .fs-composer-tools{
    width:100% !important;
    order:1 !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
  }

  body.fs-body-inbox .fs-composer input{
    width:100% !important;
    min-width:0 !important;
    order:2 !important;
  }

  body.fs-body-inbox .fs-send-btn{
    width:100% !important;
    order:3 !important;
    justify-content:center !important;
  }
}

/* ---------------------------------------------------------
   3) CELULAR CHICO
   --------------------------------------------------------- */
@media (max-width: 576px){
  body.fs-body-inbox .fs-page-inbox .fs-container{
    width:min(100%, calc(100% - 8px)) !important;
  }

  body.fs-body-inbox .fs-chat-item{
    padding:10px !important;
  }

  body.fs-body-inbox .fs-chat-avatar{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    font-size:12px !important;
  }

  body.fs-body-inbox .fs-chat-copy-top strong{
    font-size:14px !important;
  }

  body.fs-body-inbox .fs-chat-copy-top span,
  body.fs-body-inbox .fs-chat-channel,
  body.fs-body-inbox .fs-chat-copy p{
    font-size:12px !important;
  }

  body.fs-body-inbox .fs-room-avatar{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    font-size:14px !important;
  }

  body.fs-body-inbox .fs-room-user h3{
    font-size:15px !important;
  }

  body.fs-body-inbox .fs-message-bubble{
    max-width:92% !important;
  }

  body.fs-body-inbox .fs-composer input,
  body.fs-body-inbox .fs-send-btn{
    min-height:44px !important;
  }
}

/* =========================================================
   FIX DEFINITIVO MOBILE COMPOSER
   - asegura que el input y el botón entren en pantalla
   - compacta el composer en celular
   - mantiene el scroll dentro de la conversación
   ========================================================= */
@media (max-width: 900px){

  body.fs-body-inbox.fs-mobile-chat .fs-page.fs-page-inbox,
  body.fs-body-inbox.fs-mobile-chat .fs-page-inbox .fs-container,
  body.fs-body-inbox.fs-mobile-chat .fs-inbox-shell,
  body.fs-body-inbox.fs-mobile-chat .fs-inbox-layout{
    min-height:0 !important;
    height:100% !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-chat-room{
    min-height:0 !important;
    height:100% !important;
    display:grid !important;
    grid-template-rows:auto minmax(0,1fr) auto !important;
    overflow:hidden !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-chat-room-header{
    flex:0 0 auto !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-conversation-area{
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:12px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-composer{
    flex:0 0 auto !important;
    position:sticky !important;
    bottom:0 !important;
    z-index:5 !important;
    background:#ffffff !important;
    border-top:1px solid #dbe4f0 !important;
    padding:10px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 116px !important;
    grid-template-areas:
      "tools tools"
      "input send" !important;
    gap:8px !important;
    align-items:center !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-composer-tools{
    grid-area:tools !important;
    width:100% !important;
    order:unset !important;
    display:flex !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-composer input{
    grid-area:input !important;
    width:100% !important;
    min-width:0 !important;
    order:unset !important;
    min-height:44px !important;
    font-size:16px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-send-btn,
  body.fs-body-inbox.fs-mobile-chat .fs-composer > button.fs-send-btn{
    grid-area:send !important;
    width:116px !important;
    min-width:116px !important;
    max-width:116px !important;
    order:unset !important;
    min-height:44px !important;
    justify-self:end !important;
    white-space:nowrap !important;
  }
}

@media (max-width: 576px){

  body.fs-body-inbox.fs-mobile-chat .fs-chat-room-header{
    padding:10px !important;
    gap:10px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-room-user{
    align-items:flex-start !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-room-user h3{
    font-size:15px !important;
    line-height:1.2 !important;
    margin:0 0 4px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-room-channel{
    font-size:13px !important;
    line-height:1.35 !important;
    word-break:break-word !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-room-tags{
    margin-top:6px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-composer{
    padding:8px !important;
    grid-template-columns:minmax(0,1fr) 108px !important;
    gap:8px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-composer-tools button{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-composer input{
    min-height:42px !important;
  }

  body.fs-body-inbox.fs-mobile-chat .fs-send-btn,
  body.fs-body-inbox.fs-mobile-chat .fs-composer > button.fs-send-btn{
    width:108px !important;
    min-width:108px !important;
    max-width:108px !important;
    min-height:42px !important;
  }
}

/* =========================================================
   CANAL SELECCIONADO + HERRAMIENTAS CONTEXTUALES
   - "Canal seleccionado" es contexto visual.
   - No modifica estado real del canal.
   ========================================================= */

.fs-channel-context {
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.fs-channel-context-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: end;
}

.fs-channel-context label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #4c5d6d;
}

.fs-channel-context select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdbe6;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 15px;
}

.fs-channel-context-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fs-channel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f5f9fc;
  color: #4c5d6d;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.fs-channel-chip.is-ok {
  background: #eef8f1;
  color: #2f6d44;
  border-color: #cfe5d6;
}

.fs-channel-chip.is-warning {
  background: #fff8eb;
  color: #9a6a10;
  border-color: #f1ddb2;
}

.fs-channel-chip.is-danger {
  background: #fff5f5;
  color: #b42318;
  border-color: #efc1c1;
}

.fs-tools-strip {
  margin-bottom: 18px;
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.fs-tools-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.fs-tools-strip-head h3 {
  margin: 0 0 6px;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  font-size: 20px;
}

.fs-tools-strip-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.fs-tools-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fs-tool-mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.fs-tool-mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.fs-tool-mini-card span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f9fc;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.fs-tool-mini-card.is-disabled {
  opacity: .62;
  pointer-events: none;
}

.fs-tools-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fs-tools-page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fs-tools-page-card.is-disabled {
  opacity: .64;
}

.fs-tools-page-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fs-tools-page-card h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 23px;
  color: var(--ink);
  line-height: 1.2;
}

.fs-tools-page-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.fs-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.fs-tool-btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.fs-tool-btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.fs-tool-btn-disabled {
  background: #f5f8fb;
  color: #8a98a8;
  border-color: var(--border);
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .fs-tools-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fs-channel-context-grid,
  .fs-tools-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .fs-tools-page-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   INBOX - BARRA COMPACTA DE CANAL SELECCIONADO
   Reemplaza el bloque grande de contexto/herramientas.
   ========================================================= */

.fs-inbox-context-bar {
  flex: 0 0 auto;
  min-height: 58px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(16,98,146,.05);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.fs-inbox-context-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fs-inbox-context-form label {
  margin: 0;
  color: #4c5d6d;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.fs-inbox-context-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfdbe6;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
}

.fs-inbox-context-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.fs-inbox-context-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f5f9fc;
  color: #4c5d6d;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.fs-inbox-context-chip.is-ok {
  background: #eef8f1;
  color: #2f6d44;
  border-color: #cfe5d6;
}

.fs-inbox-context-chip.is-warning {
  background: #fff8eb;
  color: #9a6a10;
  border-color: #f1ddb2;
}

.fs-inbox-context-chip.is-danger {
  background: #fff5f5;
  color: #b42318;
  border-color: #efc1c1;
}

.fs-inbox-context-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff !important;
  border: 1px solid var(--brand);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.fs-inbox-context-action:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff !important;
}

@media (max-width: 1100px) {
  .fs-inbox-context-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fs-inbox-context-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .fs-inbox-context-form {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fs-inbox-context-meta .hide-on-small {
    display: none;
  }
}

/* =========================================================
   Panel operativo de recomendaciones reutilizable
   ========================================================= */
.rec-shell {
  max-width: 1400px;
  margin: 0 auto;
  color: #153244;
}

.rec-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid #dde8f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 10px 28px rgba(16,98,146,.06);
}

.rec-panel-head h2 {
  margin: 4px 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  color: #153244;
}

.rec-panel-head p {
  margin: 0;
  max-width: 780px;
  color: #5d6874;
  line-height: 1.7;
  font-size: 16px;
}

.rec-kicker,
.rec-card-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #cfe3ef;
  background: #eef7fb;
  color: #0f6c9e;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rec-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cfdbe6;
  background: #fff;
  color: #0f6c9e;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16,98,146,.06);
}

.rec-head-link:hover {
  border-color: #0f6c9e;
  background: #f7fbfe;
  color: #095781;
}

.rec-hero {
  background: linear-gradient(135deg, rgba(7,101,145,.92) 0%, rgba(11,135,173,.88) 100%);
  border-radius: 22px;
  padding: 34px;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15,108,158,.18);
  margin-bottom: 28px;
}

.rec-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.rec-hero h1 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1.08;
}

.rec-hero p {
  margin: 0;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.92);
}

.rec-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #0f6c9e;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.rec-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rec-card {
  background: #fff;
  border: 1px solid #dde8f1;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16,98,146,.06);
  padding: 24px;
}

.rec-card-context {
  position: sticky;
  top: 24px;
}

.rec-card-action {
  overflow: hidden;
}

.rec-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.rec-card-head-actions {
  align-items: center;
}

.rec-card h2 {
  margin: 8px 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  color: #153244;
  line-height: 1.22;
}

.rec-card p {
  margin: 0;
  color: #5d6874;
  line-height: 1.75;
}

.rec-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rec-summary-box {
  border: 1px solid #dbe6ef;
  border-radius: 14px;
  background: #fbfdff;
  padding: 14px 16px;
}

.rec-summary-box strong {
  display: block;
  margin-bottom: 6px;
  color: #4c5d6d;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.rec-summary-box span {
  display: block;
  color: #153244;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  word-break: break-word;
}

.rec-section-stack {
  display: grid;
  gap: 18px;
}

.rec-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.rec-form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rec-form-group-full {
  grid-column: 1 / -1;
}

.rec-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4c5d6d;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.rec-shell .rec-form-group input,
.rec-shell .rec-form-group textarea,
.rec-shell .rec-form-group select {
  display: block;
  width: 100%;
  border: 1px solid #cfdbe6;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 15px;
  color: #153244;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none;
}

.rec-shell .rec-form-group input:focus,
.rec-shell .rec-form-group textarea:focus,
.rec-shell .rec-form-group select:focus {
  border-color: #0f6c9e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15,108,158,.12);
}

.rec-shell .rec-form-group input::placeholder,
.rec-shell .rec-form-group textarea::placeholder {
  color: #98a6b5;
}

.rec-shell .rec-form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.rec-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.rec-shell .rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.rec-shell .rec-btn-primary {
  background: #0f6c9e;
  color: #fff;
  border-color: #0f6c9e;
  box-shadow: 0 10px 18px rgba(15,108,158,.18);
}

.rec-shell .rec-btn-primary:hover {
  background: #095781;
  border-color: #095781;
  color: #fff;
}

.rec-shell .rec-btn-outline {
  background: #fff;
  color: #0f6c9e;
  border-color: #cfdbe6;
}

.rec-shell .rec-btn-outline:hover {
  background: #f7fbfe;
  border-color: #0f6c9e;
  color: #095781;
}

.rec-shell .rec-btn-danger {
  background: #fff;
  color: #b42318;
  border-color: #efc1c1;
}

.rec-shell .rec-btn-danger:hover {
  background: #fff5f5;
  border-color: #d94b4b;
  color: #9f1f17;
}

.rec-shell .rec-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.rec-result {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dbe6ef;
  background: #fbfdff;
  color: #5d6874;
  line-height: 1.7;
}

.rec-result.is-visible {
  display: block;
}

.rec-result.is-success {
  background: #eef8f1;
  border-color: #cfe5d6;
  color: #2f6d44;
}

.rec-result.is-error {
  background: #fff5f5;
  border-color: #efc1c1;
  color: #b42318;
}

.rec-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rec-detail-box {
  border: 1px solid #dbe6ef;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.rec-detail-box strong {
  display: block;
  margin-bottom: 6px;
  color: #4c5d6d;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}

.rec-detail-box span {
  display: block;
  color: #153244;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.rec-table-wrap {
  margin-top: 18px;
  border: 1px solid #dbe6ef;
  border-radius: 16px;
  background: #fff;
  overflow-x: auto;
  box-shadow: 0 8px 20px rgba(16,98,146,.04);
}

.rec-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.rec-table th,
.rec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6edf3;
  text-align: left;
}

.rec-table th {
  background: #f5f8fb;
  color: #4c5d6d;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.rec-table td {
  color: #5d6874;
  font-size: 14px;
  vertical-align: middle;
}

.rec-table tr:last-child td {
  border-bottom: none;
}

.rec-table .rec-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.rec-tabs-shell {
  min-width: 0;
}

.rec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid #dbeaf3;
  border-radius: 14px;
  background: #f6fbfe;
}

.rec-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #476170;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rec-tab:hover,
.rec-tab:focus-visible {
  background: #fff;
  border-color: #c9dfec;
  outline: none;
}

.rec-tab.is-active {
  background: #0f76a8;
  border-color: #0f76a8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 168, .16);
}

.rec-tab-panel {
  min-width: 0;
}

.rec-tab-panel[hidden] {
  display: none;
}

.rec-data-card + .rec-data-card {
  margin-top: 18px;
}

.rec-data-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rec-data-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.rec-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.rec-recomendadores-toolbar {
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 240px);
}

.rec-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 280px;
}

.rec-readonly-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #f8fbfd;
  color: #5d6874;
  font-weight: 700;
}

.rec-benefit-alert {
  margin-top: 0;
  border-color: #cfdbe6;
  color: #153244;
}

.rec-benefit-movements {
  margin-top: 12px;
}

.rec-benefit-movements .rec-table {
  min-width: 760px;
}

.rec-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #f8fbfd;
  color: #153244;
  line-height: 1.5;
  font-weight: 700;
}

.rec-checkline input {
  margin-top: 3px;
}

.rec-muted {
  margin: 0;
  color: #667585;
  line-height: 1.7;
}

.rec-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rec-modal[hidden] {
  display: none;
}

.rec-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 50, .42);
}

.rec-modal-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid #dbe6ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(10, 45, 70, .22);
}

.rec-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6edf3;
  background: #fff;
}

.rec-modal-head h2 {
  margin: 8px 0 0;
  color: #153244;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

.rec-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #fff;
  color: #153244;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.rec-modal-close:hover {
  border-color: #0f6c9e;
  color: #0f6c9e;
}

.rec-modal-body {
  padding: 24px;
}

.rec-modal-form {
  display: grid;
  gap: 14px;
}

.rec-modal-subtitle {
  margin: 22px 0 12px;
  color: #153244;
  font: 700 18px 'Poppins', sans-serif;
}

.rec-benefit-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dbe6ef;
  border-radius: 14px;
  background: #fbfdff;
}

.rec-benefit-section-primary {
  border-color: rgba(15, 108, 158, .28);
  background: #f6fbff;
}

.rec-benefit-section-secondary {
  background: #fff;
}

.rec-benefit-section details {
  display: grid;
  gap: 14px;
}

.rec-benefit-section summary {
  cursor: pointer;
  color: #153244;
  font: 700 16px 'Poppins', sans-serif;
}

.rec-benefit-section summary + .rec-modal-form {
  margin-top: 14px;
}

.rec-benefit-preview .rec-detail-box span {
  font-weight: 800;
}

.rec-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.rec-history-grid span {
  display: block;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #fbfdff;
  color: #4c5d6d;
  font-weight: 800;
}

.rec-history-list {
  display: grid;
  gap: 10px;
}

.rec-history-item {
  padding: 14px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #fbfdff;
}

.rec-history-item strong,
.rec-history-item code {
  display: block;
  color: #153244;
}

.rec-history-item p {
  margin: 8px 0 0;
  color: #5d6874;
  line-height: 1.6;
}

.rec-filter-pill {
  min-height: 44px;
  border: 1px solid #c9dfec;
  border-radius: 999px;
  background: #fff;
  color: #0f5f86;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
}

.fs-debug-page {
  display: grid;
  gap: 22px;
}

.fs-debug-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
}

.fs-debug-hero h1,
.fs-debug-card h2 {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  color: #153244;
}

.fs-debug-hero h1 {
  font-size: 30px;
}

.fs-debug-hero p,
.fs-debug-card p {
  margin: 0;
  color: #5d6874;
  line-height: 1.65;
}

.fs-debug-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.fs-debug-card {
  padding: 24px;
}

.fs-debug-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.fs-debug-scopes {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.fs-debug-scope {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe6ef;
  border-radius: 14px;
  background: #fbfdff;
}

.fs-debug-scope strong,
.fs-debug-scope code,
.fs-debug-scope span {
  display: block;
}

.fs-debug-scope code {
  margin-top: 4px;
  color: #0f6c9e;
  font-weight: 800;
}

.fs-debug-scope span {
  margin-top: 4px;
  color: #667585;
  font-size: 13px;
}

.fs-debug-scope form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.fs-debug-scope input,
.fs-debug-scope select,
.fs-debug-filters input,
.fs-debug-filters select {
  min-height: 40px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #fff;
  color: #153244;
  font: 14px 'Lato', Arial, sans-serif;
  padding: 0 10px;
}

.fs-debug-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.fs-debug-filters label {
  display: grid;
  gap: 6px;
  color: #32495a;
  font: 700 13px 'Poppins', sans-serif;
}

.fs-debug-autorefresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #32495a;
  font: 700 13px 'Poppins', sans-serif;
  white-space: nowrap;
}

.fs-debug-message {
  min-height: 20px;
  margin-bottom: 10px;
  color: #667585;
  font-weight: 700;
}

.fs-debug-table td {
  vertical-align: top;
}

.fs-debug-level {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fs-debug-level-debug {
  background: #eef3f7;
  color: #536474;
}

.fs-debug-level-info {
  background: #eaf6ff;
  color: #0f6c9e;
}

.fs-debug-level-warning {
  background: #fff8e8;
  color: #9a6511;
}

.fs-debug-level-error {
  background: #fff2f2;
  color: #a33131;
}

.fs-debug-chip {
  border: 1px solid #cfe3ef;
  border-radius: 999px;
  background: #fff;
  color: #0f6c9e;
  cursor: pointer;
  font: 800 12px 'Poppins', sans-serif;
  padding: 6px 10px;
}

.fs-debug-context summary {
  cursor: pointer;
  color: #0f6c9e;
  font-weight: 800;
}

.fs-debug-context pre {
  max-width: 520px;
  max-height: 240px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #f8fbfd;
  color: #153244;
  font-size: 12px;
  white-space: pre-wrap;
}

.rec-data-table th,
.rec-data-table td {
  white-space: nowrap;
}

.rec-cell-money {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.rec-status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid #dbeaf3;
  border-radius: 999px;
  background: #eef8fd;
  color: #0f5f86;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  text-transform: capitalize;
}

.rec-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: #5b7280;
  font-size: 13px;
  font-weight: 700;
}

.rec-warning {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #f1ddb2;
  background: #fff8eb;
  color: #9a6a10;
  line-height: 1.8;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .rec-grid {
    grid-template-columns: 1fr;
  }

  .rec-card-context {
    position: static;
  }
}

@media (max-width: 700px) {
  .rec-panel-head,
  .rec-hero {
    padding: 26px;
  }

  .rec-panel-head h2 {
    font-size: 24px;
  }

  .rec-hero h1 {
    font-size: 34px;
  }

  .rec-card {
    padding: 18px;
    border-radius: 16px;
  }

  .rec-card-head,
  .rec-card-head-actions {
    display: grid;
    gap: 12px;
  }

  .rec-tabs {
    flex-direction: column;
  }

  .rec-tab {
    width: 100%;
    text-align: left;
  }

  .rec-data-head {
    flex-direction: column;
  }

  .rec-data-toolbar {
    grid-template-columns: 1fr;
  }

  .rec-recomendadores-toolbar,
  .rec-history-grid {
    grid-template-columns: 1fr;
  }

  .rec-head-actions,
  .rec-row-actions {
    justify-content: flex-start;
  }

  .rec-modal {
    padding: 12px;
  }

  .rec-modal-head,
  .rec-modal-body {
    padding: 18px;
  }

  .fs-debug-hero,
  .fs-debug-card-head {
    flex-direction: column;
  }

  .fs-debug-grid {
    grid-template-columns: 1fr;
  }

  .fs-debug-filters {
    grid-template-columns: 1fr;
  }

  .rec-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .rec-form-grid-two {
    grid-template-columns: 1fr;
  }

  .rec-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Observabilidad Faraday V2: refinamiento compacto */
.fs-debug-hero-compact {
  min-height: 0;
  padding: 14px 18px;
  margin-bottom: 10px;
  align-items: center;
}

.fs-debug-hero-compact h1 {
  margin: 6px 0 3px;
  font-size: 26px;
  line-height: 1.18;
}

.fs-debug-hero-compact p {
  margin: 0;
  max-width: 760px;
  line-height: 1.45;
}

.fs-debug-tabs-wrap {
  margin-bottom: 10px;
}

.fs-debug-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #f7fbfd;
}

.fs-debug-tab {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #426172;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.fs-debug-tab.is-active {
  background: #fff;
  color: #0f6c9e;
  box-shadow: 0 5px 14px rgba(16, 98, 146, .08);
}

.fs-debug-filter-card,
.fs-debug-events-card,
.fs-debug-config-card {
  margin-bottom: 12px;
}

.fs-debug-filter-card {
  padding: 16px;
}

.fs-debug-card-head-compact {
  margin-bottom: 10px;
}

.fs-debug-card-head-compact h2 {
  font-size: 18px;
}

.fs-debug-card-head-compact p {
  margin-top: 2px;
}

.fs-debug-filters-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(150px, .8fr) minmax(190px, 1.1fr) minmax(190px, 1.1fr);
  gap: 10px;
  align-items: start;
}

.fs-debug-filters-main label {
  min-width: 0;
}

.fs-debug-filters-main label span {
  display: block;
  color: #243b4a;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fs-debug-filters-main label small {
  display: block;
  color: #7a8a96;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}

.fs-debug-events-layout,
.fs-debug-events-card {
  width: 100%;
}

#debugScopes.fs-debug-scopes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fs-debug-config-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.fs-debug-config-scope-main strong {
  display: block;
  color: #153244;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 5px;
}

.fs-debug-config-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  color: #6f8190;
  font-size: 11px;
  line-height: 1.35;
}

.fs-debug-config-meta code {
  color: #0f6c9e;
  font-size: 11px;
}

.fs-debug-config-meta span,
.fs-debug-config-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-debug-config-controls {
  display: grid;
  grid-template-columns: auto minmax(92px, 110px) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.fs-debug-config-controls label {
  color: #5d6874;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.fs-debug-config-controls label span {
  display: block;
  margin-bottom: 3px;
}

.fs-debug-config-check {
  align-self: center;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.fs-debug-config-controls input,
.fs-debug-config-controls select {
  min-height: 34px;
  width: 100%;
  border: 1px solid #dbe6ef;
  border-radius: 9px;
  background: #fff;
  color: #243b4a;
  font-size: 12px;
  padding: 0 9px;
}

.fs-debug-config-controls button {
  min-height: 34px;
  width: auto;
  white-space: nowrap;
  padding: 0 12px;
}

@media (max-width: 1180px) {
  .fs-debug-filters-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #debugScopes.fs-debug-scopes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .fs-debug-hero-compact {
    padding: 14px;
  }

  .fs-debug-tabs {
    display: flex;
    width: 100%;
  }

  .fs-debug-tab {
    flex: 1 1 auto;
  }

  .fs-debug-filters-main {
    grid-template-columns: 1fr;
  }

  .fs-debug-config-controls {
    grid-template-columns: 1fr 1fr;
  }

  .fs-debug-config-controls button {
    justify-self: start;
  }
}

/* =========================================================
   Observabilidad Faraday V2 - Configuración compacta
   Ajuste puntual: reduce espacios, corrige checkbox y ordena controles.
   ========================================================= */
#tab-config .fs-debug-config-card{
  padding:20px 24px;
}

#tab-config #debugScopes.fs-debug-scopes{
  grid-template-columns:repeat(2, minmax(360px, 1fr));
  gap:12px;
  margin-top:16px;
}

#tab-config .fs-debug-config-scope{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:10px;
  padding:14px 16px;
  border-radius:14px;
  background:#fbfdff;
}

#tab-config .fs-debug-config-scope-main{
  min-width:0;
}

#tab-config .fs-debug-config-scope-main strong{
  margin:0 0 5px;
  font-size:15px;
  line-height:1.2;
}

#tab-config .fs-debug-config-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 8px;
  min-width:0;
  color:#6f8190;
  font-size:11px;
  line-height:1.25;
}

#tab-config .fs-debug-config-meta code,
#tab-config .fs-debug-config-meta span,
#tab-config .fs-debug-config-meta small{
  display:inline-flex;
  align-items:center;
  min-width:0;
  margin:0;
  line-height:1.25;
}

#tab-config .fs-debug-config-meta span{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#tab-config .fs-debug-config-controls{
  display:grid;
  grid-template-columns:minmax(105px, auto) minmax(96px, 120px) minmax(170px, 220px) auto;
  gap:8px;
  align-items:end;
  margin:0;
}

#tab-config .fs-debug-config-controls label{
  min-width:0;
  margin:0;
  color:#5d6874;
  font-family:'Poppins',sans-serif;
  font-size:11px;
  font-weight:700;
}

#tab-config .fs-debug-config-controls label span{
  display:block;
  margin:0 0 4px;
}

#tab-config .fs-debug-config-check{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-height:34px;
  padding:0 10px;
  border:1px solid #dbe6ef;
  border-radius:9px;
  background:#ffffff;
  color:#32495a;
  white-space:nowrap;
}

#tab-config .fs-debug-config-check input[type="checkbox"]{
  width:16px;
  height:16px;
  min-width:16px;
  min-height:16px;
  margin:0;
  padding:0;
  accent-color:#0f6c9e;
}

#tab-config .fs-debug-config-controls input:not([type="checkbox"]),
#tab-config .fs-debug-config-controls select{
  min-height:34px;
  width:100%;
  padding:0 10px;
  font-size:12px;
  border-radius:9px;
}

#tab-config .fs-debug-config-controls button{
  min-height:34px;
  width:auto;
  min-width:82px;
  padding:0 14px;
  justify-self:end;
  border-radius:9px;
}

@media (min-width: 1280px){
  #tab-config .fs-debug-config-scope{
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
    gap:14px;
  }
}

@media (max-width: 1180px){
  #tab-config #debugScopes.fs-debug-scopes{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  #tab-config .fs-debug-config-card{
    padding:18px;
  }

  #tab-config .fs-debug-config-controls{
    grid-template-columns:1fr 1fr;
  }

  #tab-config .fs-debug-config-controls button{
    justify-self:stretch;
    width:100%;
  }
}

@media (max-width: 520px){
  #tab-config .fs-debug-config-controls{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Observabilidad Faraday V2 - Configuración final compacta
   Corrección puntual: cards legibles, controles en fila, sin columna lateral angosta.
   ========================================================= */
#tab-config .fs-debug-config-card{
  padding:20px 24px !important;
}

#tab-config #debugScopes.fs-debug-scopes{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px !important;
  margin-top:16px !important;
}

#tab-config .fs-debug-config-scope{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  padding:12px 14px !important;
  min-height:0 !important;
  border-radius:14px !important;
  background:#fbfdff !important;
  align-items:start !important;
}

#tab-config .fs-debug-config-scope-main{
  min-width:0 !important;
  display:grid !important;
  gap:4px !important;
}

#tab-config .fs-debug-config-scope-main strong{
  margin:0 !important;
  font-size:15px !important;
  line-height:1.18 !important;
  color:#153244 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

#tab-config .fs-debug-config-meta{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:4px 8px !important;
  margin:0 !important;
  color:#6f8190 !important;
  font-size:11px !important;
  line-height:1.25 !important;
}

#tab-config .fs-debug-config-meta code{
  flex:0 0 auto !important;
  color:#0f6c9e !important;
  font-size:11px !important;
  font-weight:800 !important;
}

#tab-config .fs-debug-config-meta span,
#tab-config .fs-debug-config-meta small{
  display:inline-flex !important;
  align-items:center !important;
  min-width:0 !important;
  max-width:260px !important;
  margin:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

#tab-config .fs-debug-config-meta small{
  flex:0 0 auto !important;
  max-width:none !important;
  color:#7a8a96 !important;
}

#tab-config .fs-debug-config-controls{
  display:grid !important;
  grid-template-columns:minmax(118px, 132px) minmax(104px, 128px) minmax(190px, 1fr) auto !important;
  gap:8px !important;
  align-items:end !important;
  margin:2px 0 0 !important;
  width:100% !important;
}

#tab-config .fs-debug-config-controls label{
  min-width:0 !important;
  margin:0 !important;
  color:#536474 !important;
  font-family:'Poppins',sans-serif !important;
  font-size:11px !important;
  font-weight:700 !important;
}

#tab-config .fs-debug-config-controls label span{
  display:block !important;
  margin:0 0 4px !important;
}

#tab-config .fs-debug-config-check{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  min-height:34px !important;
  height:34px !important;
  width:100% !important;
  padding:0 10px !important;
  border:1px solid #dbe6ef !important;
  border-radius:9px !important;
  background:#ffffff !important;
  color:#32495a !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

#tab-config .fs-debug-config-check input[type="checkbox"]{
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  min-height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  margin:0 !important;
  padding:0 !important;
  accent-color:#0f6c9e !important;
  flex:0 0 16px !important;
}

#tab-config .fs-debug-config-controls input:not([type="checkbox"]),
#tab-config .fs-debug-config-controls select{
  min-height:34px !important;
  height:34px !important;
  width:100% !important;
  padding:0 10px !important;
  font-size:12px !important;
  border-radius:9px !important;
}

#tab-config .fs-debug-config-controls button,
#tab-config .fs-debug-config-controls .fs-users-action-btn{
  min-height:34px !important;
  height:34px !important;
  width:auto !important;
  min-width:84px !important;
  padding:0 14px !important;
  justify-self:end !important;
  border-radius:9px !important;
  font-family:'Poppins',sans-serif !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  cursor:pointer !important;
}

@media (max-width: 1260px){
  #tab-config #debugScopes.fs-debug-scopes{
    grid-template-columns:1fr !important;
  }
}

@media (max-width: 760px){
  #tab-config .fs-debug-config-card{
    padding:18px !important;
  }

  #tab-config .fs-debug-config-controls{
    grid-template-columns:1fr 1fr !important;
  }

  #tab-config .fs-debug-config-controls button,
  #tab-config .fs-debug-config-controls .fs-users-action-btn{
    justify-self:stretch !important;
    width:100% !important;
  }
}

@media (max-width: 520px){
  #tab-config .fs-debug-config-controls{
    grid-template-columns:1fr !important;
  }
}

/*
   Asistente Documental - Fase 04 carga segura
*/
.ad-doc-panel{
    margin-bottom:18px;
    background:#fff;
    border:1px solid #dde8f1;
    border-radius:18px;
    box-shadow:0 8px 22px rgba(16,98,146,.05);
    padding:20px;
}

.ad-doc-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.ad-doc-head h2,
.ad-doc-list-head h3{
    margin:10px 0 6px;
    color:#153244;
    font-family:'Poppins',sans-serif;
}

.ad-doc-head p,
.ad-doc-help,
.ad-doc-empty,
.ad-doc-restricted{
    margin:0;
    color:#5d6874;
    line-height:1.65;
}

.ad-doc-upload{
    display:grid;
    gap:10px;
    padding:14px;
    border:1px solid #dce9f2;
    border-radius:14px;
    background:#fbfdff;
}

.ad-doc-form{
    display:grid;
    grid-template-columns:minmax(220px,1fr) auto;
    gap:12px;
    align-items:end;
}

.ad-doc-file{
    display:grid;
    gap:6px;
    margin:0;
    color:#153244;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:700;
}

.ad-doc-file input{
    min-height:42px;
    border:1px solid #cfe0eb;
    border-radius:10px;
    padding:8px 10px;
    background:#fff;
    color:#243746;
    font-family:'Lato',sans-serif;
    font-weight:400;
}

.ad-doc-submit,
.ad-doc-secondary,
.ad-doc-action{
    min-height:42px;
    border-radius:10px;
    border:1px solid #0f6c9e;
    background:#0f6c9e;
    color:#fff;
    padding:0 16px;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.ad-doc-submit:disabled{
    opacity:.7;
    cursor:wait;
}

.ad-doc-secondary{
    min-height:36px;
    border-color:#cfe0eb;
    background:#fff;
    color:#0f6c9e;
}

.ad-doc-action{
    min-height:32px;
    padding:0 12px;
    font-size:12px;
}

.ad-doc-action:disabled{
    opacity:.68;
    cursor:wait;
}

.ad-doc-message{
    margin:0 0 12px;
    padding:10px 12px;
    border-radius:10px;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:700;
}

.ad-doc-message.is-ok{
    background:#eef9f1;
    border:1px solid #bde7c7;
    color:#246b38;
}

.ad-doc-message.is-error{
    background:#fff3f1;
    border:1px solid #f0c1ba;
    color:#9d3327;
}

.ad-doc-list-wrap{
    margin-top:16px;
}

.ad-doc-list-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.ad-doc-list-head h3{
    margin:0;
    font-size:18px;
}

.ad-doc-empty{
    padding:14px;
    border:1px dashed #cfe3ef;
    border-radius:14px;
    background:#fbfdff;
}

.ad-doc-table-wrap{
    width:100%;
    overflow-x:auto;
    border:1px solid #dde8f1;
    border-radius:14px;
}

.ad-doc-table{
    width:100%;
    border-collapse:collapse;
    min-width:760px;
}

.ad-doc-table th,
.ad-doc-table td{
    padding:11px 12px;
    border-bottom:1px solid #edf3f7;
    text-align:left;
    vertical-align:middle;
    color:#3d4b57;
    font-size:13px;
}

.ad-doc-table th{
    background:#f7fbfe;
    color:#153244;
    font-family:'Poppins',sans-serif;
    font-weight:700;
}

.ad-doc-table tr:last-child td{
    border-bottom:0;
}

.ad-doc-status,
.ad-doc-future{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:0 9px;
    border-radius:999px;
    background:#eef7fc;
    border:1px solid #cfe4f0;
    color:#0f6c9e;
    font-family:'Poppins',sans-serif;
    font-size:12px;
    font-weight:700;
}

.ad-doc-status-procesado{
    background:#eef9f1;
    border-color:#bde7c7;
    color:#246b38;
}

.ad-doc-status-error{
    background:#fff3f1;
    border-color:#f0c1ba;
    color:#9d3327;
}

.ad-doc-status-procesando{
    background:#fff8e8;
    border-color:#ecd49b;
    color:#8a5a08;
}

.ad-doc-status-pendiente_procesador_especializado{
    background:#f5f8fb;
    border-color:#dbe6ef;
    color:#718092;
}

.ad-doc-future{
    background:#f5f8fb;
    border-color:#dbe6ef;
    color:#718092;
}

.ad-doc-profile-help{
    margin-top:8px;
}

.ad-doc-profile-badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 9px;
    border-radius:999px;
    background:#f5f8fb;
    border:1px solid #dbe6ef;
    color:#566576;
    font-family:'Poppins',sans-serif;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.ad-doc-profile-select{
    width:100%;
    min-width:190px;
    min-height:34px;
    border:1px solid #cfe0eb;
    border-radius:10px;
    background:#fff;
    color:#243746;
    font-family:'Poppins',sans-serif;
    font-size:12px;
    font-weight:700;
    padding:6px 8px;
}

.ad-doc-profile-select:disabled{
    background:#f5f8fb;
    color:#718092;
    cursor:wait;
}

.ad-search-panel{
    margin-bottom:18px;
    background:#fff;
    border:1px solid #dde8f1;
    border-radius:18px;
    box-shadow:0 8px 22px rgba(16,98,146,.05);
    padding:20px;
}

.ad-search-form{
    display:grid;
    grid-template-columns:minmax(220px,1fr) auto;
    gap:12px;
    align-items:end;
    padding:14px;
    border:1px solid #dce9f2;
    border-radius:14px;
    background:#fbfdff;
}

.ad-search-field{
    display:grid;
    gap:6px;
    margin:0;
    color:#153244;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:700;
}

.ad-search-field input{
    min-height:42px;
    border:1px solid #cfe0eb;
    border-radius:10px;
    padding:8px 10px;
    background:#fff;
    color:#243746;
    font-family:'Lato',sans-serif;
    font-weight:400;
}

.ad-search-loading{
    margin-top:12px;
    color:#5d6874;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:700;
}

.ad-search-results{
    display:grid;
    gap:12px;
    margin-top:14px;
}

.ad-search-result{
    border:1px solid #dde8f1;
    border-radius:14px;
    background:#fff;
    padding:14px;
}

.ad-search-result-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    color:#153244;
    font-family:'Poppins',sans-serif;
}

.ad-search-result-head span{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:0 8px;
    border-radius:999px;
    border:1px solid #cfe4f0;
    background:#eef7fc;
    color:#0f6c9e;
    font-size:12px;
    font-weight:700;
}

.ad-search-result p{
    margin:10px 0 0;
    color:#3d4b57;
    line-height:1.65;
}

.ad-search-result-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.ad-search-result-meta span{
    display:inline-flex;
    min-height:24px;
    align-items:center;
    padding:0 8px;
    border-radius:999px;
    background:#f5f8fb;
    border:1px solid #dbe6ef;
    color:#718092;
    font-family:'Poppins',sans-serif;
    font-size:12px;
    font-weight:700;
}

@media (max-width: 720px){
    .ad-doc-form{
        grid-template-columns:1fr;
    }

    .ad-search-form{
        grid-template-columns:1fr;
    }

    .ad-doc-submit,
    .ad-doc-secondary{
        width:100%;
    }

    .ad-doc-list-head{
        align-items:stretch;
        flex-direction:column;
    }
}

/* M8: competing providers are chosen explicitly when a Canal Faraday is created. */
.fs-provider-badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 10px;
    border:1px solid #cfe4f0;
    border-radius:999px;
    background:#eef7fc;
    color:#0f6c9e;
    font-family:'Poppins',sans-serif;
    font-size:12px;
    font-weight:700;
}

.fs-provider-selector{
    margin:0 0 20px;
    padding:0;
    border:0;
}

.fs-provider-selector legend{
    margin-bottom:10px;
    color:#153244;
    font-family:'Poppins',sans-serif;
    font-weight:700;
}

.fs-provider-choice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.fs-provider-choice{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:14px;
    border:1px solid #dbe6ef;
    border-radius:14px;
    background:#fff;
    cursor:pointer;
}

.fs-provider-choice.is-selected{
    border-color:#1688b7;
    background:#f0f9fd;
    box-shadow:0 0 0 2px rgba(22,136,183,.08);
}

.fs-provider-choice span{
    display:grid;
    gap:3px;
}

.fs-provider-choice strong{
    color:#153244;
    font-family:'Poppins',sans-serif;
}

.fs-provider-choice small{
    color:#5d6874;
    line-height:1.45;
}

@media (max-width: 640px){
    .fs-provider-choice-grid{
        grid-template-columns:1fr;
    }
}
/* IG10-B: public comments inside Herramientas. */

/* =========================================================
   IG10-B · Herramienta Instagram / Comentarios
   Superficie operativa de comentarios públicos.
   ========================================================= */
.ig-comments-page{
  padding:22px 0 56px;
}

.ig-comments-wrap{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  color:var(--ink,#183548);
}

.ig-comments-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  color:var(--muted,#61707d);
  font-size:13px;
}

.ig-comments-breadcrumb a{
  color:var(--brand,#0f6c9e);
  font-weight:700;
}

.ig-comments-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:14px;
  padding-bottom:17px;
  border-bottom:1px solid var(--border,#dce8f3);
}

.ig-comments-eyebrow{
  color:var(--brand,#0f6c9e);
  font-family:'Poppins',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ig-comments-header h1{
  margin:4px 0 7px;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:clamp(24px,2.5vw,32px);
  line-height:1.15;
}

.ig-comments-channel-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.ig-comments-channel-line strong{
  overflow-wrap:anywhere;
  color:#405768;
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:600;
}

.ig-comments-status{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  gap:8px;
  padding:4px 8px;
  border:1px solid #dbe6ef;
  border-radius:999px;
  background:#f7fafc;
  color:#536579;
  font-size:12px;
  font-weight:700;
}

.ig-comments-status.is-ok{
  border-color:#cfe5d6;
  background:#eef8f1;
  color:#2f6d44;
}

.ig-comments-status.is-warning{
  border-color:#f1ddb2;
  background:#fff8eb;
  color:#8c6518;
}

.ig-comments-status-dot{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:currentColor;
}

.ig-comments-header-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  flex:0 0 auto;
  gap:3px;
  padding-bottom:3px;
}

.ig-comments-header-meta strong{
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:14px;
}

.ig-comments-refresh-status{
  color:#526879;
  font-size:12px;
}

.ig-comments-notice{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  padding:13px 16px;
  border:1px solid #dbe6ef;
  border-radius:12px;
  background:#f8fbfd;
  color:#536579;
  line-height:1.5;
}

.ig-comments-notice.is-success{
  border-color:#cfe5d6;
  background:#eef8f1;
  color:#2f6d44;
}

.ig-comments-notice.is-warning{
  border-color:#f1ddb2;
  background:#fff8eb;
  color:#7f5a15;
}

.ig-comments-notice.is-error{
  border-color:#efc1c1;
  background:#fff5f5;
  color:#9d2f2f;
}

.ig-comments-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:0 0 12px;
}

.ig-comments-toolbar h2{
  margin:0;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:18px;
}

.ig-comments-toolbar-copy span{
  display:block;
  margin-top:3px;
  color:#526879;
  font-size:12px;
}

.ig-comments-filter-panel{
  width:min(100%,430px);
  border:1px solid #dbe6ef;
  border-radius:12px;
  background:#fff;
}

.ig-comments-filter-panel[open]{
  flex:0 1 430px;
}

.ig-comments-filter-panel summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:40px;
  padding:0 13px;
  cursor:pointer;
  color:#355061;
  font-family:'Poppins',sans-serif;
  font-size:13px;
  font-weight:700;
}

.ig-comments-filter-panel summary::after{
  content:'⌄';
  margin-left:12px;
  font-size:18px;
  line-height:1;
}

.ig-comments-filter-panel[open] summary::after{
  transform:rotate(180deg);
}

.ig-comments-filters{
  display:grid;
  gap:12px;
  padding:0 14px 14px;
}

.ig-comments-wrap .ig-comments-advanced{
  padding:8px 0;
  border-top:1px solid #edf3f7;
}

.ig-comments-wrap .ig-comments-advanced summary{
  min-height:32px;
  padding:0;
  color:#526879;
  font-size:12px;
}

.ig-comments-wrap .ig-comments-advanced label{
  margin-top:8px;
}

.ig-comments-filters label,
.ig-comment-reply label{
  display:grid;
  gap:6px;
  color:#415665;
  font-family:'Poppins',sans-serif;
  font-size:12px;
  font-weight:700;
}

.ig-comments-optional{
  margin-left:5px;
  color:#8b98a3;
  font-family:'Lato',Arial,sans-serif;
  font-size:11px;
  font-weight:400;
}

.ig-comments-filters input,
.ig-comment-reply textarea{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:1px solid #ccd9e4;
  border-radius:10px;
  background:#fff;
  color:#183548;
  font-family:'Lato',Arial,sans-serif;
  font-size:14px;
  outline:none;
}

.ig-comments-filters input:focus,
.ig-comment-reply textarea:focus{
  border-color:var(--brand,#0f6c9e);
  box-shadow:0 0 0 3px rgba(15,108,158,.12);
}

.ig-comments-filter-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.ig-comments-filter-actions a{
  color:#61707d;
  font-size:13px;
  font-weight:700;
}

.ig-comments-wrap button{
  min-height:42px;
  padding:0 15px;
  border:1px solid var(--brand,#0f6c9e);
  border-radius:10px;
  background:var(--brand,#0f6c9e);
  color:#fff;
  font-family:'Poppins',sans-serif;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.ig-comments-wrap button:hover{
  background:var(--brand-dark,#0a547c);
  border-color:var(--brand-dark,#0a547c);
}

.ig-comments-wrap button:disabled{
  cursor:wait;
  opacity:.7;
}

.ig-comments-wrap :is(button,a,summary,input,textarea):focus-visible{
  outline:3px solid rgba(15,108,158,.28);
  outline-offset:2px;
}

.ig-comments-list{
  display:grid;
  gap:10px;
}

.ig-comments-wrap .ig-comments-media-group{
  min-width:0;
  border:1px solid var(--border,#dce8f3);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 15px rgba(16,98,146,.04);
}

.ig-comments-wrap .ig-comments-media-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid #e8f0f5;
  background:#f8fbfd;
  border-radius:14px 14px 0 0;
}

.ig-comments-wrap .ig-comments-media-identity{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}

.ig-comments-wrap .ig-comments-media-symbol{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:10px;
  background:#eaf5fb;
  color:var(--brand,#0f6c9e);
  font-size:22px;
}

.ig-comments-wrap .ig-comments-media-identity span:not(.ig-comments-media-symbol){
  display:block;
  color:#526879;
  font-size:11px;
}

.ig-comments-wrap .ig-comments-media-identity strong{
  display:block;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:15px;
}

.ig-comments-wrap .ig-comments-media-count{
  color:#526879;
  font-size:12px;
  white-space:nowrap;
}

.ig-comments-wrap .ig-comments-threads{
  padding:0 18px 4px;
}

.ig-comments-wrap .ig-comments-threads>.ig-comment-card{
  border:0;
  border-top:1px solid #edf3f7;
  border-radius:0;
  box-shadow:none;
}

.ig-comments-wrap .ig-comments-threads>.ig-comment-card:first-child{
  border-top:0;
}

.ig-comment-card{
  border:1px solid var(--border,#dce8f3);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 15px rgba(16,98,146,.04);
}

.ig-comment-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px 8px;
}

.ig-comment-author{
  display:flex;
  align-items:center;
  min-width:0;
  gap:11px;
}

.ig-comment-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border:1px solid #cfe3ef;
  border-radius:50%;
  background:var(--brand-soft,#eaf5fb);
  color:var(--brand,#0f6c9e);
  font-family:'Poppins',sans-serif;
  font-size:15px;
  font-weight:800;
}

.ig-comment-author>div{
  min-width:0;
}

.ig-comment-author strong,
.ig-comment-author span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ig-comment-author strong{
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:14px;
}

.ig-comment-author span{
  margin-top:2px;
  color:#586d7d;
  font-size:12px;
}

.ig-comment-action-state{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border:1px solid #cfe3ef;
  border-radius:999px;
  background:#eef7fb;
  color:var(--brand,#0f6c9e);
  font-family:'Poppins',sans-serif;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}

.ig-comment-time{
  flex:0 0 auto;
  color:#526879;
  font-size:12px;
  white-space:nowrap;
}

.ig-comment-body{
  padding:2px 16px 8px 63px;
}

.ig-comment-text{
  margin:0;
  color:#263f50;
  font-size:15px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.ig-comment-context-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:2px 16px 8px 63px;
  color:#7a8995;
  font-size:12px;
}

.ig-comment-action-state.is-success{
  border-color:#cfe5d6;
  background:#eef8f1;
  color:#2f6d44;
}

.ig-comment-action-state.is-warning{
  border-color:#f1ddb2;
  background:#fff8eb;
  color:#8c6518;
}

.ig-comment-action-state.is-error{
  border-color:#efc1c1;
  background:#fff5f5;
  color:#a23636;
}

.ig-comment-actions{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 16px 12px 63px;
}

.ig-comments-wrap .ig-comment-reply-toggle{
  min-height:42px;
  padding:0 12px;
  border-color:#cfe3ef;
  background:#eef7fb;
  color:var(--brand,#0f6c9e);
}

.ig-comments-wrap .ig-comment-reply-toggle:hover,
.ig-comments-wrap .ig-comment-reply-toggle[aria-expanded="true"]{
  border-color:#a8cadc;
  background:#dff0f8;
  color:var(--brand-dark,#0a547c);
}

.ig-comment-reply{
  display:grid;
  gap:8px;
  padding:14px 16px 16px;
  border-top:1px solid #edf3f7;
}

.ig-comment-reply[hidden]{
  display:none;
}

.ig-comment-reply-head,
.ig-comment-reply-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ig-comment-reply-head label{
  display:block;
  color:#355061;
  font-size:12px;
}

.ig-comment-counter,
.ig-comment-reply-actions span{
  color:#82909b;
  font-size:11px;
}

.ig-comment-reply textarea{
  min-height:70px;
  resize:vertical;
  line-height:1.5;
}

.ig-comment-reply-actions>div{
  display:flex;
  gap:8px;
}

.ig-comment-helper{
  margin:0;
  padding:0 16px 12px 63px;
  color:#6e7f8b;
  font-size:11px;
  line-height:1.4;
}

.ig-comment-moderation{
  position:relative;
}

.ig-comments-wrap .ig-comment-orphan{
  margin:12px 16px 0;
  padding:8px 10px;
  border-left:3px solid #bb8129;
  border-radius:4px;
  background:#fff8eb;
  color:#704e1c;
  font-size:12px;
}

.ig-comments-wrap .ig-comment-thread-children{
  padding:0 16px 14px 63px;
}

.ig-comments-wrap .ig-comment-replies-toggle{
  min-height:32px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--brand,#0f6c9e);
  font-size:12px;
}

.ig-comments-wrap .ig-comment-replies-toggle:hover{
  border:0;
  background:transparent;
  color:var(--brand-dark,#0a547c);
  text-decoration:underline;
}

.ig-comments-wrap .ig-comment-replies{
  display:grid;
  margin:4px 0 0 8px;
  padding-left:16px;
  border-left:2px solid #d6e8f1;
}

.ig-comments-wrap .ig-comment-replies[hidden]{
  display:none;
}

.ig-comments-wrap .ig-comment-reply-entry{
  min-width:0;
  padding:9px 0;
  border-bottom:1px solid #edf3f7;
}

.ig-comments-wrap .ig-comment-reply-entry:last-child{
  border-bottom:0;
}

.ig-comments-wrap .ig-comment-reply-content{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.ig-comments-wrap .ig-comment-reply-content .ig-comment-avatar{
  width:30px;
  height:30px;
  flex-basis:30px;
  font-size:12px;
}

.ig-comments-wrap .ig-comment-reply-main{
  flex:1;
  min-width:0;
}

.ig-comments-wrap .ig-comment-reply-meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:3px;
}

.ig-comments-wrap .ig-comment-reply-meta strong{
  overflow-wrap:anywhere;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:12px;
}

.ig-comments-wrap .ig-comment-reply-main .ig-comment-text{
  font-size:13px;
}

.ig-comments-wrap .ig-comment-reply-main .ig-comment-action-state{
  margin-top:6px;
}

.ig-comments-wrap .ig-comment-reply-moderation{
  display:flex;
  justify-content:flex-end;
  margin-top:3px;
}

.ig-comment-moderation summary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1px solid #d3dfe8;
  border-radius:9px;
  background:#fff;
  list-style:none;
  cursor:pointer;
  color:#607282;
  font-family:'Poppins',sans-serif;
  font-size:18px;
  font-weight:700;
}

.ig-comment-moderation summary::-webkit-details-marker{
  display:none;
}

.ig-comment-moderation summary:hover,
.ig-comment-moderation[open] summary{
  border-color:#becdd8;
  background:#f7fafc;
}

.ig-comment-moderation-panel{
  position:absolute;
  z-index:5;
  top:calc(100% + 5px);
  right:0;
  width:min(290px,calc(100vw - 36px));
  padding:14px;
  border:1px solid #dbe6ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 32px rgba(16,62,92,.14);
}

.ig-comment-moderation-panel p{
  margin:0 0 10px;
  color:#7b8995;
  font-size:12px;
}

.ig-comment-moderation-actions{
  display:grid;
  gap:6px;
}

.ig-comment-moderation-actions form{
  margin:0;
}

.ig-comment-moderation-actions button{
  width:100%;
  text-align:left;
}

.ig-comments-wrap button.is-secondary{
  border-color:#d3dfe8;
  background:#fff;
  color:#526274;
}

.ig-comments-wrap button.is-secondary:hover{
  border-color:#becdd8;
  background:#f7fafc;
  color:#354a59;
}

.ig-comments-wrap button.is-quiet{
  border-color:transparent;
  background:#f4f8fb;
  color:#526274;
}

.ig-comments-wrap button.is-quiet:hover{
  border-color:#d9e5ed;
  background:#edf4f8;
  color:#354a59;
}

.ig-comments-empty{
  padding:42px 24px;
  border:1px dashed #cfe3ef;
  border-radius:18px;
  background:#fbfdff;
  text-align:center;
}

.ig-comments-empty-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin:0 auto 12px;
  border-radius:50%;
  background:var(--brand-soft,#eaf5fb);
  color:var(--brand,#0f6c9e);
  font-size:28px;
}

.ig-comments-empty h2{
  margin:0 0 6px;
  color:#153244;
  font-family:'Poppins',sans-serif;
  font-size:20px;
}

.ig-comments-empty p{
  margin:0;
  color:#6f7e8a;
}

.ig-comments-pages{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:20px;
  color:#7a8995;
  font-size:12px;
}

.ig-comments-pages a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 13px;
  border:1px solid #dbe6ef;
  border-radius:9px;
  background:#fff;
  color:var(--brand,#0f6c9e);
  font-weight:700;
}

@media(max-width:900px){
  .ig-comments-filter-panel[open]{
    flex-basis:100%;
  }
}

@media(max-width:640px){
  .ig-comments-page{
    padding-top:18px;
  }

  .ig-comments-wrap{
    width:min(1180px,calc(100% - 20px));
  }

  .ig-comments-header{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  .ig-comments-header-meta{
    align-items:flex-start;
    text-align:left;
  }

  .ig-comments-toolbar{
    align-items:stretch;
    flex-direction:column;
    padding:12px;
  }

  .ig-comments-filter-panel{
    width:100%;
  }

  .ig-comment-card-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:8px;
    padding:12px 12px 8px;
  }

  .ig-comment-avatar{
    width:32px;
    height:32px;
    flex-basis:32px;
  }

  .ig-comment-body{
    padding:2px 12px 8px;
  }

  .ig-comment-context-row,
  .ig-comment-actions,
  .ig-comment-helper{
    padding-left:12px;
    padding-right:12px;
  }

  .ig-comment-reply-actions{
    align-items:flex-start;
    flex-direction:column;
  }

  .ig-comment-reply-actions>div{
    width:100%;
  }

  .ig-comment-reply-actions button{
    flex:1;
  }

  .ig-comments-wrap .ig-comments-media-header{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
    padding:12px;
  }

  .ig-comments-wrap .ig-comments-threads{
    padding:0 12px 4px;
  }

  .ig-comments-wrap .ig-comment-thread-children{
    padding:0 12px 12px;
  }

  .ig-comments-wrap .ig-comment-replies{
    margin-left:4px;
    padding-left:10px;
  }
}
/* IG11: conexión segura de cuenta profesional de Instagram. */
.instagram-oauth-notice {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid #bdd7ea;
    border-radius: 12px;
    background: #eef7fc;
    color: #164b68;
    font-size: .92rem;
}

.instagram-oauth-notice.is-success {
    border-color: #9bd1b5;
    background: #edf9f2;
    color: #17613c;
}

.instagram-oauth-notice.is-error {
    border-color: #efb4b4;
    background: #fff2f2;
    color: #8a2525;
}

.instagram-login-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #d7e5ee;
    border-radius: 16px;
    background: #fff;
}

.instagram-login-card.is-connected {
    border-color: #96ceb0;
    box-shadow: 0 10px 30px rgba(21, 115, 74, .08);
}

.instagram-login-card.is-reconnect {
    border-color: #e8c77c;
    background: #fffbf1;
}

.instagram-login-card__identity {
    display: grid;
    gap: 6px;
}

.instagram-login-card__identity strong {
    color: #123f57;
    font-size: 1.12rem;
}

.instagram-login-card__identity small,
.instagram-login-card__identity p,
.instagram-login-help {
    color: #58717e;
}

.instagram-login-card__identity p,
.instagram-login-help {
    margin: 0;
}

.instagram-login-status {
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf3f7;
    color: #405968;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.instagram-login-card.is-connected .instagram-login-status {
    background: #e5f6ed;
    color: #17613c;
}

.instagram-login-card.is-reconnect .instagram-login-status {
    background: #fff0c8;
    color: #795a09;
}

.instagram-login-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.instagram-login-card__actions form {
    margin: 0;
}

.instagram-login-help {
    margin-top: 12px;
    font-size: .84rem;
}

@media (max-width: 760px) {
    .instagram-login-card {
        align-items: stretch;
        flex-direction: column;
    }

    .instagram-login-card__actions,
    .instagram-login-card__actions form,
    .instagram-login-card__actions button {
        width: 100%;
    }
}
