/* Concepto A v2 · dirección confirmada por Victor (26 nov 2026).
   Inter, navy #05223A, acento #007883, lienzo #fafcfd, radios 10/14/20/28.
   Botones de acción: radio 14 px en todas las pantallas.
   Lockup inverso sobre navy: aprobado.
   «Reporte enviado»: opción A (fondo claro) y botón turquesa #007883.
   Línea de crédito del login: «con [mark] Faith Layer» / «by Faith Layer».
   Sombras solo en lo que flota. Tarjetas planas, borde 1 px #e2e9ed.
   Solo visual. Nombres de navegación y lógica sin cambio. */
/* ---------- Tokens (familia del mockup, con la paleta de Groups) ---------- */
body.is-in{
  --bg:#fafcfd;
  --canvas:#fafcfd;
  --muted:#546675;
  --muted-2:#5B6B7E;
  --muted-3:#8EA0B4;
  --line:#e2e9ed;
  --line-2:#EAEEF2;
  --ctl-line:#C3CDD8;
  --navy-2:#16304F;
  --navy-line:#2A4366;
  --on-navy-muted:#A9BBD1;
  --on-navy-dim:#93A6BD;
  --on-navy-text:#C3D0DF;
  --link:#1F5F69; /* teal oscuro del mockup: AA sobre blanco; no usar #5FB7C0 ni #007883 chico sobre blanco si falla */
  --r-sm:10px;
  --r-md:14px;
  --r-lg:20px;
  --r-ctl:14px; /* propuesta: botón rectangular 14 px, no pastilla 999 ni 4 px del mockup */
  --r-card:20px;
  --shadow-sm:none;
  --shadow-md:none;
  --soft:#EEF1F5;
  --side-active-bg:#16304F;
  --side-divider:#2A4366;
  --side-muted:#C3D0DF;
  background:var(--bg);
  color:var(--navy);
  font-variant-numeric:tabular-nums lining-nums;
}
body.is-in .layout{background:var(--bg)}

/* Controles menos «píldora», como el mockup (el toque sigue en 48 px). */
body.is-in #p3-home button,
body.is-in #p3-summary button,
body.is-in #p3-summary select,
body.is-in #report-confirmation button,
body.is-in .tabbar a,
body.is-in .tabbar .side-avatar,
body.is-in .tabbar button,
body.is-in .side a,
body.is-in .side button,
body.is-in .side select,
body.is-in #p3-area-bar .p3br-switch{
  border-radius:var(--r-ctl);
}

/* ---------- Marco de escritorio: barra navy que envuelve a la izquierda ---------- */
@media (min-width:1024px){
  body.is-in .side{
    background:var(--navy);
    color:var(--on-navy-text);
    border-right:0;
    gap:18px;
    padding:22px 0;
    box-sizing:border-box;
  }
  body.is-in .side .side-brand{
    display:flex;align-items:center;gap:10px;
    margin:0;padding:0 22px;
  }
  body.is-in .side .logo,
  body.is-in .side .logo-product{
    height:28px;width:auto;margin:0;
  }
  body.is-in .side .side-product-name{
    font-weight:700;font-size:15px;color:#fff;letter-spacing:0;
  }
  body.is-in .side .church{
    display:flex;align-items:center;gap:10px;
    background:transparent;
    border:0;
    border-bottom:1px solid var(--navy-line);
    border-radius:0;
    margin:0 22px;
    padding:0 0 14px;
  }
  body.is-in .side .church .eyebrow{display:none}
  body.is-in .side .church b{display:block;font-size:15px;font-weight:600;color:#fff;line-height:1.25}
  body.is-in .side .church .s{display:block;margin-top:2px;font-size:13px;font-weight:500;color:var(--on-navy-dim);line-height:1.3}
  body.is-in .side .church-avatar{
    flex:none;width:36px;height:36px;border-radius:28%;font-size:13px;font-weight:600;
    background:#e8f5f7;color:var(--teal-d);
    box-shadow:inset 0 0 0 1px #e2e9ed;
  }
  body.is-in .side .church-avatar.is-logo{background:#fff}
  body.is-in .side .church-avatar img{object-fit:contain;padding:14%;box-sizing:border-box}

  body.is-in .side a{
    color:var(--on-navy-text);
    border-radius:0;
    padding:10px 22px;
    font-size:15px;
  }
  body.is-in .side a:hover{background:var(--navy-2);color:#fff}
  body.is-in .side a[aria-current=page]{
    background:var(--navy-2);
    color:#fff;
    font-weight:600;
    box-shadow:inset 4px 0 0 var(--teal-d);
  }
  body.is-in .side-foot{margin-top:auto;padding:14px 0 0;border-top:1px solid var(--navy-line);margin-left:22px;margin-right:22px}
  body.is-in .side .side-avatar{
    color:#fff;border-radius:0;padding:10px 0;
  }
  body.is-in .side .side-avatar .av{
    background:#fff;color:var(--navy);border-radius:var(--r-card);
  }
  body.is-in .side .side-avatar[aria-current=page]{
    background:transparent;box-shadow:none;
  }
  body.is-in .side .side-avatar .meta small{color:var(--on-navy-dim)}
  body.is-in .side .church-switch{
    border-radius:var(--r-ctl);
    background:var(--navy-2);
    border:1px solid var(--navy-line);
    color:#fff;
    min-height:48px;
  }
  body.is-in #app-main,
  body.is-in .layout > .main{
    background:var(--bg);
    padding:28px 40px 48px;
  }
}

/* ---------- Tab bar (mismos nombres): acento superior, no píldora ---------- */
@media (max-width:1023px){
  body.is-in .tabbar{
    background:#fff;
    border-top:1px solid var(--line);
    min-height:80px;
  }
  body.is-in .tabbar a,
  body.is-in .tabbar .side-avatar{
    min-height:48px;
    color:var(--muted-2);
    font-size:12px;
    font-weight:500;
    border-radius:0;
    gap:4px;
    padding-top:14px;
  }
  body.is-in .tabbar a[aria-current=page],
  body.is-in .tabbar .side-avatar[aria-current=page]{
    color:var(--navy);
    font-weight:700;
    border-top:3px solid var(--teal-d);
    margin-top:-1px;
    padding-top:12px;
  }
  body.is-in .tabbar .av{
    border-radius:var(--r-card);
    background:var(--soft);
    color:var(--navy);
  }
}

/* Switch Grupos/Servicios: se queda en el contenido; look del mockup (no píldora). */
#p3-area-bar .p3br-switch{
  min-height:48px;
  border-radius:var(--r-ctl);
  border:1px solid var(--ctl-line);
  background:#fff;
  color:var(--navy);
  font-weight:600;
}

/* Chips: radio 4 px como el mockup (colores de estado fijos). */
body.is-in .fg-status,
body.is-in .fg-status-chip,
body.is-in .chip{
  border-radius:var(--r-sm);
  padding:3px 9px 3px 7px;
  font-size:13px;
  font-weight:600;
  min-height:0;
}
@media (min-width:1024px){
  /* En la tabla de escritorio el mockup usa texto de color, no pastilla. */
  #p3-summary .fg-groups-table .fg-status{
    background:transparent;padding:0;min-height:0;
  }
}

/* ---------- Inicio del líder: marco navy que envuelve arriba ---------- */
#p3-home{max-width:100%;overflow-x:clip}
#p3-home .fg-navy-wrap{
  background:var(--navy);
  color:#fff;
  padding:20px 20px 24px;
  display:flex;
  flex-direction:column;
  gap:18px;
  box-sizing:border-box;
}
#p3-home .fg-navy-top{
  display:flex;align-items:center;gap:10px;
}
#p3-home .fg-navy-logo,
#p3-home .fg-navy-top .church-avatar{
  flex:none;width:32px;height:32px;border-radius:28%;
  background:#fff;color:var(--navy);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:11px;overflow:hidden;
}
#p3-home .fg-navy-logo img,
#p3-home .fg-navy-top .church-avatar img{width:100%;height:100%;object-fit:contain;padding:14%;box-sizing:border-box}
#p3-home .fg-navy-church{
  flex:1;min-width:0;margin:0;border:0;background:transparent;
  color:#fff;font-weight:600;font-size:15px;text-align:left;padding:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  min-height:0;
}
#p3-home .fg-navy-tools{
  display:flex;align-items:center;gap:10px;flex:none;margin-left:auto;
}
#p3-home .lang-on-navy{
  display:inline-flex;border:1px solid var(--navy-line);border-radius:var(--r-ctl);
  overflow:hidden;height:48px;background:transparent;padding:0;flex:none;
}
#p3-home .lang-on-navy button{
  border:0;background:transparent;color:var(--on-navy-text);
  font-size:13px;font-weight:700;width:38px;min-width:38px;min-height:48px;
  padding:0;border-radius:0;
}
#p3-home .lang-on-navy button[aria-pressed=true]{background:#fff;color:var(--navy)}
#p3-home .fg-navy-acct{
  flex:none;width:48px;height:48px;min-height:48px;padding:0;
  border:1px solid var(--navy-line);background:transparent;color:#fff;
  border-radius:var(--r-ctl);font-weight:700;font-size:15px;
}
#p3-home .fg-navy-week{
  margin:0;font-size:14px;color:var(--on-navy-muted);font-weight:500;
}
#p3-home .fg-navy-title{
  margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1;
  color:#fff;overflow-wrap:anywhere;
}
#p3-home .fg-navy-wrap .p3-btn-onhero,
#p3-home .fg-navy-wrap .p3-btn{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:52px;min-height:48px;margin:0;
  padding:0 24px;border:0;border-radius:var(--r-ctl);
  background:#fff;color:var(--navy);
  font-size:16px;font-weight:700;box-shadow:none;
}
#p3-home .fg-navy-wrap .p3-btn-onhero:hover,
#p3-home .fg-navy-wrap .p3-btn-onhero:focus-visible,
#p3-home .fg-navy-wrap .p3-btn:hover,
#p3-home .fg-navy-wrap .p3-btn:focus-visible{
  background:#fff;color:var(--navy);filter:none;
  outline:3px solid var(--accent-on-navy);outline-offset:2px;
}
#p3-home .fg-navy-wrap .p3-btn-onhero .i{display:none}
#p3-home .fg-navy-hint{
  margin:-6px 0 0;font-size:13px;color:var(--on-navy-muted);text-align:center;
  overflow-wrap:anywhere;
}

#p3-home .fg-home-body{
  padding:16px 16px 8px;
  display:flex;flex-direction:column;gap:12px;
}
#p3-home .fg-sheet{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:4px 14px;
}
#p3-home .fg-kv{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:11px 0;border-bottom:1px solid var(--line-2);font-size:15px;color:var(--navy);
}
#p3-home .fg-kv:last-child{border-bottom:0}
#p3-home .fg-kv b{font-weight:700;font-variant-numeric:tabular-nums}
#p3-home .p3-section-title{
  display:flex;justify-content:space-between;align-items:baseline;
  padding:6px 2px 0;margin:0;
}
#p3-home .p3-section-title h2{margin:0;font-size:17px;font-weight:700;letter-spacing:0}
#p3-home .p3-section-title button{
  min-height:48px;margin:0;padding:0 8px;border:0;background:none;
  color:var(--link);font-size:14px;font-weight:600;text-decoration:none;
}
#p3-home .p3-section-title button:hover{color:var(--navy);background:none}
#p3-home .fg-sheet.p3-list,
#p3-home .p3-list{
  display:flex;flex-direction:column;gap:0;
  padding:0;overflow:hidden;
}
#p3-home button.p3-row,
#p3-home .p3-row{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  width:100%;margin:0;padding:11px 16px;min-height:48px;
  border:0;border-bottom:1px solid var(--line);border-radius:0 !important;
  background:#fff;color:var(--navy);font-size:15px;text-align:left;box-shadow:none;
}
#p3-home .p3-row:last-child{border-bottom:0}
#p3-home .p3-row .ava,
#p3-home .p3-row .fg-status-chip,
#p3-home .p3-row .end small{display:none}
#p3-home .p3-row .tx{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:0 6px}
#p3-home .p3-row .tx strong{font-weight:500}
#p3-home .p3-row .tx span{color:var(--muted-2)}
#p3-home .p3-row .end{display:flex;flex:none;align-items:baseline}
#p3-home .p3-row .end b{font-weight:600;font-variant-numeric:tabular-nums;font-size:15px}
#p3-home .fg-empty{border:0;background:transparent;padding:14px 0;margin:0}

@media (max-width:1023px){
  body.is-in[data-p3=home] #app-brandrow,
  body.is-in[data-p3=summary] #app-brandrow{display:none !important}
  body.is-in[data-p3=home] #app-main,
  body.is-in[data-p3=summary] #app-main{
    padding:0 0 calc(8px + env(safe-area-inset-bottom,0px));
    background:var(--bg);
  }
  body.is-in[data-p3=home] #workspace,
  body.is-in[data-p3=summary] #workspace{padding:0;max-width:none}
  body.is-in[data-p3=home] .chrome-viewbar,
  body.is-in[data-p3=summary] .chrome-viewbar{margin:0;padding:8px 16px;background:var(--navy);color:#fff}
  body.is-in[data-p3=summary] #p3-area-bar:not([hidden]){
    display:flex;justify-content:stretch;padding:8px 16px 12px;background:var(--navy);margin:0;
  }
  body.is-in[data-p3=summary] #p3-area-bar .p3br-switch{
    width:100%;background:#fff;color:var(--navy);border:0;font-weight:600;
  }
}

@media (min-width:1024px){
  #p3-home{max-width:720px}
  #p3-home .fg-navy-wrap{border-radius:var(--r-card)}
  #p3-home .fg-home-body{padding:22px 0 0}
}

/* ---------- Resumen admin ---------- */
#p3-summary{max-width:100%;overflow-x:clip}
#p3-summary .fg-navy-wrap{
  background:var(--navy);color:#fff;
  padding:20px 20px 24px;
  display:flex;flex-direction:column;gap:16px;
  box-sizing:border-box;
}
#p3-summary .fg-navy-top{display:flex;align-items:center;gap:10px}
#p3-summary .fg-navy-logo,
#p3-summary .fg-navy-top .church-avatar{
  flex:none;width:32px;height:32px;border-radius:28%;
  background:#fff;color:var(--navy);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:11px;overflow:hidden;
}
#p3-summary .fg-navy-church{
  flex:1;min-width:0;margin:0;font-weight:600;font-size:15px;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#p3-summary .fg-navy-week{margin:0;font-size:14px;color:var(--on-navy-muted)}
#p3-summary .fg-navy-metric{
  font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.05;color:#fff;
}
#p3-summary .fg-navy-metric small{
  font-size:20px;font-weight:600;color:var(--on-navy-muted);letter-spacing:-.02em;
}
#p3-summary .fg-ticks{
  display:grid;gap:3px;height:10px;margin-top:10px;
}
#p3-summary .fg-ticks i{display:block;min-width:0;background:var(--navy-line);border-radius:1px}
#p3-summary .fg-ticks i.is-on{background:var(--accent-on-navy)} /* acento sobre navy, no texto sobre blanco */
#p3-summary .fg-sum-body{padding:16px 16px 24px;display:flex;flex-direction:column;gap:14px}
#p3-summary .fg-mini-kpis{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
}
#p3-summary .fg-mini-kpis.is-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#p3-summary .fg-mini-kpi{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:10px;
}
#p3-summary .fg-mini-kpi .k{font-size:12px;color:var(--muted)}
#p3-summary .fg-mini-kpi .v{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--navy);letter-spacing:-.02em}

#p3-summary .fg-desk-head{display:none}
#p3-summary .fg-kpi-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:24px 28px;
}
#p3-summary .fg-kpi-label{margin:0;font-size:15px;font-weight:600;color:var(--muted)}
#p3-summary .fg-kpi-num{
  font-size:44px;font-weight:800;letter-spacing:-.03em;margin-top:2px;line-height:1.05;color:var(--navy);
}
#p3-summary .fg-kpi-num small{font-size:22px;font-weight:600;color:var(--muted-2);letter-spacing:-.02em}
#p3-summary .fg-kpi-card .fg-ticks{height:12px;margin-top:14px}
#p3-summary .fg-kpi-card .fg-ticks i{background:#E3E8EE}
#p3-summary .fg-kpi-card .fg-ticks i.is-on{background:var(--teal-d)}
#p3-summary .fg-kpi-side{display:flex;flex-wrap:wrap;gap:40px}
#p3-summary .fg-kpi-side .k{font-size:14px;color:var(--muted)}
#p3-summary .fg-kpi-side .v{font-size:30px;font-weight:800;margin-top:2px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
#p3-summary .fg-kpi-side .foot{font-size:13px;color:var(--muted-2);font-weight:500}
#p3-summary .fg-kpi-side .foot.is-up{color:var(--status-reported);font-weight:600}

#p3-summary .p3-groups-preview,
#p3-summary .p3-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);
  box-shadow:none;padding:20px 24px;
}
#p3-summary .p3-card-head{
  display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;gap:12px;
}
#p3-summary .p3-card-head strong,
#p3-summary .p3-card-head h2{margin:0;font-size:17px;font-weight:700}
#p3-summary .p3-card-head button,
#p3-summary .p3-text-btn,
#p3-summary .p3-note a,
#p3-summary .p3-note button{
  color:var(--link);font-weight:600;text-decoration:none;
}
#p3-summary .p3-card-head button{min-height:48px;padding:0 4px;border:0;background:none}
#p3-summary .p3-card-head button:hover,
#p3-summary .p3-text-btn:hover{color:var(--navy);background:none}

#p3-summary .fg-groups-table{font-size:15px}
#p3-summary .fg-groups-table th{
  padding:8px 0;font-size:13px;font-weight:500;letter-spacing:0;
  text-transform:none;color:var(--muted-2);background:transparent;border:0;
}
#p3-summary .fg-groups-table td{
  padding:12px 8px 12px 0;border-top:1px solid var(--line-2);font-size:15px;
}
#p3-summary .fg-groups-table td:last-child,
#p3-summary .fg-groups-table th:last-child{padding-right:0}
#p3-summary .fg-groups-table td b{font-weight:600}
#p3-summary .fg-groups-table .fg-status-pending,
#p3-summary .fg-groups-table .fg-status.fg-status-pending{color:var(--status-pending)}
#p3-summary .fg-groups-table .fg-status-reported,
#p3-summary .fg-groups-table .fg-status-sent,
#p3-summary .fg-groups-table .fg-status.fg-status-reported,
#p3-summary .fg-groups-table .fg-status.fg-status-sent{color:var(--status-reported)}
#p3-summary .fg-groups-table .fg-status-missing,
#p3-summary .fg-groups-table .fg-status.fg-status-missing{color:var(--status-missing)}

#p3-summary .fg-groups-cards{list-style:none;margin:0;padding:0}
#p3-summary .fg-group-card.is-static{pointer-events:none;cursor:default}
#p3-summary .fg-group-card{
  display:flex;align-items:center;gap:10px;width:100%;
  min-height:56px;padding:6px 0;
  border:0;border-bottom:1px solid var(--line-2);border-radius:0;
  background:none;color:inherit;text-align:left;
}
#p3-summary .fg-groups-cards li:last-child .fg-group-card{border-bottom:0}
#p3-summary .fg-group-card .ava{display:none} /* el mockup no usa avatar en esta lista */
#p3-summary .fg-group-card .tx strong{display:block;font-size:16px;font-weight:600}
#p3-summary .fg-group-card .tx span{display:block;font-size:13px;color:var(--muted-2)}
#p3-summary .fg-group-card .end b{display:none}
#p3-summary .p3-faltan h2{margin:4px 0 0;font-size:17px;font-weight:700}
#p3-summary .p3-faltan .fg-sheet{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:0 14px}

#p3-summary .p3-week-nav{display:flex;align-items:center;gap:8px}
#p3-summary .p3-icon-btn{
  width:48px;height:48px;min-height:48px;padding:0;
  border:1px solid var(--ctl-line);background:#fff;color:var(--navy);border-radius:var(--r-ctl);
}
#p3-summary .p3-icon-btn:disabled{color:var(--muted-3);background:#fff}
#p3-summary .p3-campus{
  border:0;background:transparent;height:auto;min-height:0;padding:0;
  display:block;position:relative;margin:0;
}
#p3-summary .p3-campus > span{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);
}
#p3-summary .p3-campus select{
  border:1px solid var(--ctl-line);background:#fff;border-radius:var(--r-ctl);
  height:48px;min-height:48px;min-width:200px;padding:0 40px 0 14px;
  font-size:15px;color:var(--navy);
  -webkit-appearance:none;appearance:none;
}
#p3-summary .p3-head{display:none} /* el encabezado viejo lo sustituye el marco / desk-head */
#p3-summary .p3-metrics{display:none} /* sustituido por fg-kpi-card / fg-mini-kpis */
#p3-summary .p3-alert,
#p3-summary .p3-ok{border-radius:var(--r-card)}

@media (max-width:1023px){
  #p3-summary .fg-kpi-card,
  #p3-summary .fg-groups-table-wrap,
  #p3-summary .p3-grid,
  #p3-summary .p3-form-card{display:none}
  #p3-summary .fg-navy-wrap{display:flex}
  #p3-summary .fg-desk-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px 0}
  #p3-summary .fg-desk-head .ttl{display:none}
  #p3-summary .p3-week-nav,
  #p3-summary .p3-campus{margin:0}
}
@media (min-width:1024px){
  #p3-summary .fg-navy-wrap,
  #p3-summary .fg-mini-kpis,
  #p3-summary .p3-faltan,
  #p3-summary .fg-groups-cards{display:none}
  #p3-summary .fg-sum-body{padding:0;gap:22px;max-width:1220px}
  #p3-summary .fg-desk-head{
    display:flex;flex-wrap:wrap;gap:12px;align-items:center;
  }
  #p3-summary .fg-desk-head .ttl{flex:1 1 auto;min-width:0}
  #p3-summary .fg-desk-head h1{
    margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.15;
  }
  #p3-summary .fg-desk-head .sub{margin:4px 0 0;font-size:15px;color:var(--muted)}
  #p3-summary .fg-kpi-card{
    display:flex;flex-wrap:wrap;gap:40px;align-items:flex-end;
  }
  #p3-summary .fg-kpi-main{flex:1 1 320px;min-width:0}
  #p3-summary .p3-week-nav{margin:0}
  #p3-summary .p3-grid{display:grid;gap:22px}
}

/* ---------- Reporte enviado (mockup v2: lienzo claro, check, ficha, botón navy) ---------- */
#report-confirmation.p3-success{
  max-width:none;margin:0;padding:72px 24px 24px;
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;
  background:var(--bg);min-height:70vh;box-sizing:border-box;
}
#report-confirmation.p3-success .p3-success-mark,
#report-confirmation.p3-success::before{
  width:72px;height:72px;margin:0;border-radius:50%;
  background-color:var(--status-sent-bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%2313653F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;
  display:block;
}
#report-confirmation.p3-success .p3-success-mark{flex:none}
#report-confirmation.p3-success::before{display:none} /* usamos el mark explícito */
#report-confirmation.p3-success .fg-status-chip{display:none}
#report-confirmation.p3-success #confirmation-title{
  margin:6px 0 0;font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--navy);
}
#report-confirmation.p3-success #confirmation-summary,
#report-confirmation.p3-success #confirmation-attendance{
  margin:0;font-size:16px;color:var(--muted);line-height:1.45;font-weight:500;
  background:transparent;padding:0;
}
#report-confirmation.p3-success .p3-success-card{
  width:calc(100% - 0px);max-width:358px;margin:14px 0 0;text-align:left;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:4px 14px;
}
#report-confirmation.p3-success .p3-success-card .fg-kv{
  display:flex;justify-content:space-between;gap:12px;
  padding:11px 0;border-bottom:1px solid var(--line-2);font-size:15px;color:var(--navy);
}
#report-confirmation.p3-success .p3-success-card .fg-kv:last-child{border-bottom:0}
#report-confirmation.p3-success .p3-success-card b{font-weight:700}
#report-confirmation.p3-success .p3-success-actions{
  width:100%;max-width:358px;margin-top:auto;padding-top:24px;
  display:flex;flex-direction:column;gap:10px;
}
#report-confirmation.p3-success .p3-success-home{
  height:52px;min-height:48px;padding:0 24px;border:0;border-radius:var(--r-ctl);
  background:var(--navy);color:#fff;font-size:16px;font-weight:700;width:100%;
}
#report-confirmation.p3-success .p3-success-home:hover,
#report-confirmation.p3-success .p3-success-home:focus-visible{
  background:var(--navy);color:#fff;outline:3px solid var(--accent-on-navy);outline-offset:2px;
}
#report-confirmation.p3-success>#view-saved-report{
  height:52px;min-height:48px;padding:0 24px;border:1px solid var(--ctl-line);
  border-radius:var(--r-ctl);background:#fff;color:var(--navy);font-size:16px;font-weight:700;width:100%;
}
#report-confirmation.p3-success>#new-report{
  min-height:48px;border:0;background:none;color:var(--link);
  font-size:15px;font-weight:600;box-shadow:none;
}
#report-confirmation.p3-success>#new-report:hover{color:var(--navy);background:none}

@media (min-width:1024px){
  #report-confirmation.p3-success{padding:80px 24px 48px}
}

/* Defensa scroll horizontal */
#p3-home,#p3-summary,#report-confirmation,.fg-navy-wrap,.fg-sheet,.fg-kpi-card{max-width:100%;box-sizing:border-box}


/* ---------- Ajustes Brand (26 nov 2026): familia, no calco del mockup ---------- */
body.is-in{font-size:15.5px;background:var(--bg,#fafcfd)}

/* Lockup inverso sobre navy, 36–40 px (aprobado por Victor) */
@media (min-width:1024px){
  body.is-in .side .side-lockup-navy,
  body.is-in .side .side-brand{
    display:flex;align-items:center;gap:10px;
    padding:0 22px;margin:0;min-height:48px;
  }
  body.is-in .side .side-lockup-navy .logo-product,
  body.is-in .side .side-brand .logo-product{
    height:38px;width:auto;max-width:220px;object-fit:contain;
  }
}

/* Avatar de iglesia: mismas reglas en el marco y en los encabezados navy */
body.is-in .church-avatar,
body.is-in .fg-navy-logo,
#p3-home .fg-navy-logo,
#p3-summary .fg-navy-logo{
  border-radius:28%;
  background:#e8f5f7;color:var(--teal-d);
  font-weight:600;font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  box-shadow:inset 0 0 0 1px #e2e9ed;
  overflow:hidden;
}
body.is-in .church-avatar.is-logo,
#p3-home .fg-navy-top .church-avatar.is-logo,
#p3-summary .fg-navy-top .church-avatar.is-logo{background:#fff}
body.is-in .church-avatar img{object-fit:contain;padding:14%;box-sizing:border-box}

/* Escritorio: el Resumen no usa la retícula de 4 columnas de desk.css */
@media (min-width:1024px){
  #p3-summary .p3-summary-top{
    display:flex !important;
    flex-direction:column !important;
    gap:22px !important;
    max-width:1220px;
    align-items:stretch;
  }
  #p3-summary .fg-desk-head,
  #p3-summary .fg-kpi-card,
  #p3-summary .p3-groups-preview,
  #p3-summary .p3-grid,
  #p3-summary .p3-form-card,
  #p3-summary .fg-sum-body{
    grid-column:auto !important;
    width:100%;
    max-width:100%;
  }
  #p3-summary .fg-desk-head{
    display:flex;flex-wrap:wrap;gap:12px;align-items:center;
  }
  #p3-summary .fg-desk-head .ttl{flex:1 1 280px;min-width:0}
  #p3-summary .p3-week-nav{
    flex:none;
    background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;
  }
  #p3-summary .p3-campus{
    border:0;background:transparent;height:auto;min-height:0;
  }
  #p3-summary .p3-campus select{
    border-radius:var(--r-ctl);height:48px;min-height:48px;
    border:1px solid var(--line);background:#fff;
  }
}

/* Semana y campus: rectángulo 14 px, no pastilla */
#p3-summary .p3-week-nav{
  background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;gap:8px;
}
#p3-summary .p3-icon-btn{border-radius:var(--r-ctl)}
#p3-summary .p3-campus select{border-radius:var(--r-ctl)}
#p3-summary .fg-ticks{
  display:flex !important;flex-direction:row;flex-wrap:nowrap;
  gap:3px;height:12px;width:100%;margin-top:14px;
}
#p3-summary .fg-ticks i{
  flex:1 1 0;min-width:0;min-height:12px;height:12px;display:block;border-radius:2px;
}

/* Tab bar: iconos planos (no pastilla turquesa del Groups anterior) */
@media (max-width:1023px){
  body.is-in .tabbar a .i,
  body.is-in .tabbar .p3-tab .i,
  body.is-in .tabbar .p3-tab-report .i,
  body.is-in .tabbar a[aria-current=page] .i,
  body.is-in .tabbar a.p3-tab[aria-current=page] .i,
  body[data-p3-role] .tabbar a .i,
  body[data-p3-role] .tabbar a[aria-current=page] .i{
    background:transparent !important;
    border-radius:0 !important;
    width:22px !important;height:22px !important;padding:0 !important;
    stroke:currentColor;color:inherit;
  }
}

/* El FAB de Guía no se muestra; el panel sí, abierto desde Mi cuenta. */
#fg-pilot-guide-root .fgpg-fab,
.fgpg-fab{display:none !important}

/* Área Grupos/Servicios en celular, sobre el marco navy cuando el resumen está a la vista */
@media (max-width:1023px){
  body.is-in.view-reports[data-p3=summary] #p3-area-bar:not([hidden]){
    display:flex;justify-content:stretch;padding:10px 16px 12px;
    background:var(--navy);margin:0;
  }
  body.is-in.view-reports[data-p3=summary] #p3-area-bar .p3br-switch{
    width:100%;background:#fff;color:var(--navy);border:0;
    border-radius:var(--r-ctl);font-weight:600;min-height:48px;
  }
}

/* Reporte enviado: versión del mockup (fondo navy, tarjeta blanca centrada, plana).
   No es la tarjeta antigua «¡Reporte enviado!». Pendiente de Brand / Victor. */
body.view-reports:has(#report-confirmation.p3-success:not([hidden])) #app-tabbar,
body.view-reports:has(#report-confirmation.p3-success:not([hidden])) #fg-pilot-guide-root{display:none !important}
body.view-reports:has(#report-confirmation.p3-success:not([hidden])) #app-main,
body.view-reports:has(#report-confirmation.p3-success:not([hidden])) #workspace,
body.view-reports:has(#report-confirmation.p3-success:not([hidden])) #report{
  background:var(--navy);padding:0;min-height:100%;
}
#report-confirmation.p3-success{
  max-width:none;margin:0;padding:32px 20px;
  min-height:100vh;min-height:100dvh;box-sizing:border-box;
  background:var(--navy);
  display:flex;align-items:center;justify-content:center;
}
#report-confirmation.p3-success::before{display:none}
#report-confirmation.p3-success .fg-status-chip{display:none}
#report-confirmation.p3-success .p3-success-card{
  width:100%;max-width:358px;margin:0;text-align:center;
  background:#fff;border:1px solid #e2e9ed;border-radius:var(--r-card);
  padding:32px 24px 24px;box-shadow:none;color:var(--navy);
}
#report-confirmation.p3-success .p3-success-mark{
  width:72px;height:72px;margin:0 auto 12px;border-radius:50%;
  background-color:var(--status-sent-bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%2313653F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;display:block;
}
#report-confirmation.p3-success #confirmation-title{
  margin:0 0 8px;font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--navy);
}
#report-confirmation.p3-success #confirmation-summary,
#report-confirmation.p3-success #confirmation-attendance{
  margin:0 0 16px;font-size:16px;color:var(--muted);line-height:1.45;font-weight:500;
  background:transparent;padding:0;
}
#report-confirmation.p3-success .p3-success-card .fg-kv{
  display:flex;justify-content:space-between;gap:12px;text-align:left;
  padding:11px 0;border-bottom:1px solid var(--line);font-size:15px;color:var(--navy);
}
#report-confirmation.p3-success .p3-success-card .fg-kv:last-child{border-bottom:0}
#report-confirmation.p3-success .p3-success-actions{
  width:100%;margin-top:18px;padding:0;
  display:flex;flex-direction:column;gap:10px;
}
#report-confirmation.p3-success .p3-success-home{
  height:52px;min-height:48px;padding:0 24px;border:0;border-radius:var(--r-ctl);
  background:var(--teal-d);color:#fff;font-size:16px;font-weight:700;width:100%;
}
#report-confirmation.p3-success .p3-success-home:hover,
#report-confirmation.p3-success .p3-success-home:focus-visible{
  background:var(--teal-d);color:#fff;outline:3px solid var(--accent-on-navy);outline-offset:2px;
}
#report-confirmation.p3-success>#view-saved-report,
#report-confirmation.p3-success .p3-success-actions #view-saved-report{
  height:52px;min-height:48px;padding:0 24px;border:1px solid var(--line);
  border-radius:var(--r-ctl);background:#fff;color:var(--navy);font-size:16px;font-weight:700;width:100%;
}
#report-confirmation.p3-success>#new-report,
#report-confirmation.p3-success .p3-success-actions #new-report{
  min-height:48px;border:0;background:none;color:var(--link);
  font-size:15px;font-weight:600;box-shadow:none;
}

/* Evita que «Asistencia» y «Últimas 4 semanas» se peguen */
#p3-summary .fg-groups-table th,
#p3-summary .fg-groups-table td{padding:12px 16px 12px 0}
#p3-summary .fg-groups-table th:last-child,
#p3-summary .fg-groups-table td:last-child{padding-right:0}
#p3-summary .fg-groups-table th.n,
#p3-summary .fg-groups-table td.n{padding-right:16px}

/* ---------- Ronda v2 (Brand P0/P1 + claridad de Inicio) ---------- */

/* El selector original de campus queda oculto en Resumen; se usa el de .fg-desk-head. */
body.is-in[data-p3=summary] #campus-scope{display:none !important}
#p3-summary .p3-campus::after{
  content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-6px;
  border:solid var(--navy);border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none;
}

/* Interruptor Grupos / Servicios: en el contenido, no un botón suelto ni una pastilla sobre el navy. */
#p3-area-bar{
  display:flex;justify-content:flex-start;
  padding:12px 16px 0;margin:0;background:transparent;
}
@media (min-width:1024px){
  #p3-area-bar{padding:4px 0 8px}
}
#p3-area-bar .p3br-seg{
  display:inline-flex;align-items:stretch;
  border:1px solid var(--line);border-radius:var(--r-ctl);
  background:#fff;overflow:hidden;min-height:48px;
}
#p3-area-bar .p3br-seg-btn,
body.is-in #p3-area-bar .p3br-seg-btn{
  min-height:48px;min-width:112px;padding:0 18px;margin:0;
  border:0;border-radius:0 !important;
  background:transparent;color:var(--navy);
  font-size:15px;font-weight:600;
}
#p3-area-bar .p3br-seg-btn[aria-pressed=true]{
  background:var(--navy);color:#fff;font-weight:700;
}
#p3-area-bar .p3br-seg-btn[aria-pressed=false]:hover{
  background:var(--soft);color:var(--navy);
}
@media (max-width:1023px){
  body.is-in[data-p3=summary] #p3-area-bar:not([hidden]),
  body.is-in.view-reports[data-p3=summary] #p3-area-bar:not([hidden]){
    display:flex;justify-content:flex-start;
    padding:12px 16px 0;background:transparent;margin:0;
  }
  #p3-area-bar .p3br-seg{width:100%}
  #p3-area-bar .p3br-seg-btn{flex:1}
}

/* Formulario del reporte: sin losa ni círculo de tinte. */
#p3-summary .p3-form-card.is-light{
  box-shadow:none;border:1px solid var(--line);border-radius:var(--r-card);
  background:#fff;color:var(--navy);
}
#p3-summary .p3-form-card.is-light .ic,
#p3-summary .p3-form-card.is-light .go{
  background:transparent !important;
  width:auto;height:auto;min-width:0;padding:0;
  border-radius:0;color:var(--navy);
}
#p3-summary .p3-form-card.is-light .ic .i,
#p3-summary .p3-form-card.is-light .go .i{
  width:20px;height:20px;
}

/* Interruptor único de radio de botones de acción:
   html[data-fg-btn="r14"] → 14 px (aprobado por Victor)
   html[data-fg-btn="pill"] → pastilla 999
   Aplica a Entrar, CTA del Inicio y confirmación, no a chips ni tarjetas. */
html{ --fg-btn-radius: 14px; }
html[data-fg-btn="r14"]{ --fg-btn-radius: 14px; }
html[data-fg-btn="pill"]{ --fg-btn-radius: 999px; }

html body #login form button,
html body #signin button,
html body .access-card #login form button,
html body.is-in #p3-home .p3-btn,
html body.is-in #p3-home .p3-btn-onhero,
html body.is-in #p3-home .p3-cta-pending,
html body.is-in #report-confirmation button,
html body.is-in #report-confirmation .p3-success-home,
html body.is-in #report-confirmation #view-saved-report,
html body #report-confirmation.p3-success .p3-success-home,
html body #report-confirmation.p3-success #view-saved-report,
html body #report-confirmation.p3-success .p3-success-actions button{
  border-radius: var(--fg-btn-radius) !important;
}
html body #report-confirmation.p3-success #new-report{
  border-radius: var(--fg-btn-radius) !important;
  background:none !important;border:0 !important;box-shadow:none;
}
html body.is-in #p3-summary .p3-form-card{
  border-radius: 14px !important;
}

/* Avatar de cuenta (Elena): cuadrado redondeado, radio 28% del lado. */
@media (min-width:1024px){
  body.is-in .side .side-avatar .av,
  .side .side-avatar .av{
    border-radius:28% !important;
  }
}
body.is-in .tabbar .av{border-radius:28% !important}

/* ES/EN de 48 px en la barra del admin. */
@media (min-width:1024px){
  body.is-in .side-foot{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
  }
  body.is-in .side-foot .lang-side{
    display:inline-flex;border:1px solid var(--navy-line);border-radius:var(--r-ctl);
    overflow:hidden;height:48px;padding:0;background:transparent;flex:none;
  }
  body.is-in .side-foot .lang-side button,
  body.is-in .side-foot .lang-side button[data-lang]{
    border:0;background:transparent;color:var(--on-navy-text);
    font-size:13px;font-weight:700;width:48px;min-width:48px;min-height:48px;
    padding:0;border-radius:0 !important;
  }
  body.is-in .side-foot .lang-side button[aria-pressed=true]{
    background:#fff;color:var(--navy);
  }
}

/* Inicio: unidad, promedio, flecha, CTA pendiente. */
#p3-home .fg-kv-avg{
  display:block;padding:11px 0;
  border-bottom:0;font-size:15px;color:var(--navy);
}
#p3-home .p3-row .end{
  display:flex;align-items:center;gap:8px;flex:none;
}
#p3-home .p3-row .end b{font-weight:600;font-variant-numeric:tabular-nums;font-size:15px}
#p3-home .p3-row .fg-row-chev{
  width:18px;height:18px;flex:none;
  stroke:var(--muted);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;
}
#p3-home .p3-row .tx{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
#p3-home .p3-row .tx strong{font-weight:600}
#p3-home .p3-row .tx span{color:var(--muted);font-size:13px}
#p3-home .p3-cta-pending{
  height:56px;min-height:56px;font-size:17px;font-weight:800;
}

/* Leyenda del «*» junto al título de la gráfica, visible en el primer pliegue. */
#p3-summary .p3-chart .p3-card-head{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;
}
#p3-summary .p3-chart-legend{
  margin:0;font-size:13px;color:var(--muted);font-weight:500;
}

/* Reporte enviado: A (mockup, lienzo claro, botón navy) por defecto; B (campo navy). Radio 14 px. */
#report-confirmation.p3-success.p3-success-a,
#report-confirmation.p3-success:not(.p3-success-b){
  background:var(--bg);
  min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:56px 20px 32px;text-align:center;
}
body.view-reports:has(#report-confirmation.p3-success-a:not([hidden])) #app-main,
body.view-reports:has(#report-confirmation.p3-success-a:not([hidden])) #workspace,
body.view-reports:has(#report-confirmation.p3-success-a:not([hidden])) #report,
body.view-reports:has(#report-confirmation.p3-success:not(.p3-success-b):not([hidden])) #app-main,
body.view-reports:has(#report-confirmation.p3-success:not(.p3-success-b):not([hidden])) #workspace,
body.view-reports:has(#report-confirmation.p3-success:not(.p3-success-b):not([hidden])) #report{
  background:var(--bg) !important;
}
#report-confirmation.p3-success-a .p3-success-card,
#report-confirmation.p3-success:not(.p3-success-b) .p3-success-card{
  background:transparent;border:0;box-shadow:none;padding:0;max-width:358px;width:100%;
}
#report-confirmation.p3-success-a .p3-success-rows,
#report-confirmation.p3-success:not(.p3-success-b) .p3-success-rows{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-card);
  padding:4px 16px;margin:18px 0 0;text-align:left;
}
#report-confirmation.p3-success-a .p3-success-thanks,
#report-confirmation.p3-success:not(.p3-success-b) .p3-success-thanks{
  margin:8px 0 0;font-size:16px;line-height:1.45;color:var(--muted);font-weight:500;
}
#report-confirmation.p3-success-a .p3-success-home,
#report-confirmation.p3-success:not(.p3-success-b) .p3-success-home{
  background:var(--teal-d) !important;color:#fff !important;
  border-radius:var(--fg-btn-radius) !important;
}

#report-confirmation.p3-success-a .p3-success-actions,
#report-confirmation.p3-success:not(.p3-success-b) .p3-success-actions{
  margin-top:28px;
}

/* Opción B: campo navy, tarjeta blanca centrada (la muestra anterior). */
#report-confirmation.p3-success.p3-success-b{
  background:var(--navy);
  min-height:100vh;min-height:100dvh;
  display:flex;align-items:center;justify-content:center;
  padding:32px 20px;
}
body.view-reports:has(#report-confirmation.p3-success-b:not([hidden])) #app-main,
body.view-reports:has(#report-confirmation.p3-success-b:not([hidden])) #workspace,
body.view-reports:has(#report-confirmation.p3-success-b:not([hidden])) #report{
  background:var(--navy) !important;padding:0;
}
#report-confirmation.p3-success-b .p3-success-card{
  width:100%;max-width:358px;margin:0;text-align:center;
  background:#fff;border:1px solid #e2e9ed;border-radius:var(--r-card);
  padding:32px 24px 24px;box-shadow:none;
}
#report-confirmation.p3-success-b .p3-success-thanks{
  margin:8px 0 16px;font-size:16px;line-height:1.45;color:var(--muted);font-weight:500;
}
#report-confirmation.p3-success-b .p3-success-home{
  background:var(--teal-d) !important;color:#fff !important;
  border-radius:var(--fg-btn-radius) !important;
}

/* Login: línea de crédito «con / by Faith Layer», aprobada. */
.signin-credit{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin:20px 0 4px;color:var(--muted,#546675);font-size:14px;font-weight:500;
}
.signin-credit .credit-mark{width:18px;height:18px;object-fit:contain}
.signin-credit-pending{
  margin:0 0 12px;text-align:center;
  font-size:12px;color:var(--muted,#546675);font-weight:500;
}

/* 320: la última fila no debe quedar bajo la barra; la unidad no se parte. */
#p3-home .fg-kv b,
#p3-home .p3-row .end b{white-space:nowrap}
@media (max-width:1023px){
  body.is-in[data-p3=home] #p3-home{
    padding-bottom:calc(var(--fg-tabbar-h, 64px) + 20px);
  }
}

/* v3 · campo «Código de acceso»: blanco, borde 1 px #e2e9ed, radio 14 px, foco visible AA. */
#login input[name="code"],
#signin input[name="code"]{
  display:block;width:100%;box-sizing:border-box;
  min-height:48px;height:52px;padding:0 16px;margin-top:6px;
  background:#fff !important;color:var(--navy,#05223A) !important;
  border:1px solid #e2e9ed !important;
  border-radius:14px !important;
  box-shadow:none;caret-color:var(--navy,#05223A);
  font-family:Inter,system-ui,sans-serif !important;
  font-size:16px;font-weight:600;
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
  letter-spacing:.16em;
  -webkit-appearance:none;appearance:none;
}
#login input[name="code"]:-webkit-autofill,
#signin input[name="code"]:-webkit-autofill{
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  -webkit-text-fill-color:#05223A;
  border:1px solid #e2e9ed;
  border-radius:14px;
}
#login input[name="code"]:hover,
#signin input[name="code"]:hover{
  border-color:#c3d0df !important;
}
#login input[name="code"]:focus,
#login input[name="code"]:focus-visible,
#signin input[name="code"]:focus,
#signin input[name="code"]:focus-visible{
  outline:3px solid #007883;
  outline-offset:2px;
  border-color:#007883 !important;
  background:#fff !important;
}

/* v3 · «Reportes recientes»: avatar en cuadrado redondeado (28 %), como el de Elena. */
#p3-summary .p3-recent .ava,
.p3-recent .p3-row .ava{
  width:36px;height:36px;flex:none;
  border-radius:28% !important;
  background:#e8f5f7 !important;
  color:#007883 !important;
  border:1px solid #e2e9ed;
  font-weight:600;font-family:Inter,system-ui,sans-serif;font-size:13px;
  display:grid;place-items:center;
}

/* ---- Fase 0: decisiones de Victor y componentes compartidos ---- */
html{ --fg-btn-radius: 14px; }
html[data-fg-btn="r14"],
html:not([data-fg-btn]){ --fg-btn-radius: 14px; }

.signin-credit-pending{ display:none !important; }

/* Guía: sin botón flotante que tape acciones; se abre desde Mi cuenta. */
#fg-pilot-guide-root .fgpg-fab,
.fgpg-fab,
[data-p3g="open"].p3g-help,
.p3g-help{ display:none !important; }

/* Tarjetas y tablas planas en toda la app (sombras solo en lo que flota). */
body.is-in .fg-card,
body.is-in .p3-card,
body.is-in .p3-metric,
body.is-in .p3av-card,
body.is-in .p3map-level,
body.is-in .p3map-card,
body.is-in #weekly-status,
body.is-in #group-summary,
body.is-in .fg-groups-card,
body.is-in .fg-sheet,
body.is-in .acct.fg-card,
body.is-in #account-screen .fg-card,
body.is-in #group-detail .fg-card{
  box-shadow:none !important;
  background:#fff;
  border:1px solid #e2e9ed;
}

/* Botones de acción 14 px (además de Entrar, Inicio y confirmación). */
body.is-in .btn-primary-fg,
body.is-in .btn-ghost,
body.is-in .btn-back,
body.is-in #print-results,
body.is-in #reload,
body.is-in .fg2-outline,
body.is-in .p3av-card button[type=submit],
body.is-in .p3map-tools button,
body.is-in #save-form,
body.is-in #report button[type=submit],
body.is-in #report .p3-btn,
body.is-in #report button.btn-primary-fg,
body.is-in .p3s-pill:not([data-p3g]){
  border-radius: var(--fg-btn-radius, 14px);
}
/* Los chips de filtro y el selector ES/EN se quedan en pastilla / barra, no son el CTA. */

/* Mi cuenta: encabezado navy en celular (marco de familia). */
@media (max-width:1023px){
  body.is-in #account-screen{
    padding:0 !important;background:var(--bg,#fafcfd);
  }
  body.is-in #account-screen .screen-block{padding:0 0 24px}
  body.is-in #account-screen .head{
    background:var(--navy,#05223A);color:#fff;
    padding:18px 20px 22px;margin:0 0 16px;
  }
  body.is-in #account-screen .head .eyebrow{color:#A9BBD1}
  body.is-in #account-screen .head h1{color:#fff}
  body.is-in #account-screen .head p{color:#C3D0DF}
  body.is-in #account-screen .btn-back{
    margin:12px 16px 0;background:#fff;color:var(--navy);
  }
  body.is-in #account-screen .fg-card,
  body.is-in #account-screen .acct{margin-left:16px;margin-right:16px}
}
body.is-in #account-screen .acct-row{
  min-height:48px;border-radius:0;box-shadow:none;
}
body.is-in #account-screen .lang-light button{
  min-width:48px;min-height:48px;
}

/* Foco visible AA en campos de login (ya definido). */

/* ---- Fase 1: Resumen (ya en esta hoja) y Grupos (tabla escritorio, tarjetas celular) ---- */
/* El interruptor Grupos/Servicios solo en Resumen, en el área de contenido. */
body.view-account #p3-area-bar,
body.view-group #p3-area-bar,
body:has(#account-screen:not([hidden])) #p3-area-bar,
body[data-p3="notices"] #p3-area-bar,
body[data-p3="map"] #p3-area-bar,
body[data-p3="leaders"] #p3-area-bar,
body[data-p3="identity"] #p3-area-bar,
body[data-p3="modules"] #p3-area-bar,
body[data-p3="invites"] #p3-area-bar{
  display:none !important;
}

body.is-in #account-screen .acct-h{
  margin:8px 16px 8px;padding:0 4px;color:var(--teal-d,#007883);
  font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}

/* Grupos: encabezado navy en celular, tabla/tarjetas planas, avatares 28%. */
@media (max-width:1023px){
  body.is-in #groups-screen{padding:0 !important;background:var(--bg,#fafcfd)}
  body.is-in #groups-screen .screen-block{padding:0 0 24px}
  body.is-in #groups-screen .head{
    background:var(--navy,#05223A);color:#fff;
    padding:18px 20px 22px;margin:0 0 16px;border:0;
  }
  body.is-in #groups-screen .head .eyebrow{color:#A9BBD1}
  body.is-in #groups-screen .head h1{color:#fff;letter-spacing:-.03em}
  body.is-in #groups-screen .head p{color:#C3D0DF}
  body.is-in #groups-screen .btn-ghost{
    background:transparent;color:#fff;border-color:var(--navy-line,#1b3a55);
  }
  body.is-in #groups-screen .fg-groups-card,
  body.is-in #groups-screen .fg-empty{margin:0 16px;border-radius:20px}
}
body.is-in #groups-screen .fg-groups-card{box-shadow:none !important;border:1px solid #e2e9ed;background:#fff}
body.is-in #groups-screen .fg-groups-table{width:100%;border-collapse:collapse}
body.is-in #groups-screen .fg-groups-table th{
  text-align:left;font-size:12px;font-weight:600;color:var(--muted,#546675);
  padding:10px 14px;border-bottom:1px solid #e2e9ed;
}
body.is-in #groups-screen .fg-groups-table td{
  padding:14px;border-bottom:1px solid #e2e9ed;color:var(--navy,#05223A);font-size:15px;
}
body.is-in #groups-screen .fg-groups-table tbody tr:last-child td{border-bottom:0}
body.is-in #groups-screen .fg-group-card{
  display:flex;align-items:center;gap:12px;width:100%;
  min-height:64px;padding:12px 14px;border:0;border-bottom:1px solid #e2e9ed;
  background:#fff;border-radius:0;text-align:left;box-shadow:none;
}
body.is-in #groups-screen .fg-groups-cards li:last-child .fg-group-card{border-bottom:0}
body.is-in #groups-screen .fg-group-card .ava{
  width:36px;height:36px;flex:none;border-radius:28% !important;
  background:#e8f5f7 !important;color:#007883 !important;
  border:1px solid #e2e9ed;font-weight:600;display:grid;place-items:center;
}
body.is-in #group-detail .fg-card,
body.is-in #group-detail .kpi{box-shadow:none !important;border:1px solid #e2e9ed;background:#fff}
@media (max-width:1023px){
  body.is-in #group-detail{padding:0 !important;background:var(--bg,#fafcfd)}
  body.is-in #group-detail .screen-block{padding:0 0 24px}
  body.is-in #group-detail .actions-row{padding:12px 16px 0}
  body.is-in #group-detail .head{
    background:var(--navy,#05223A);color:#fff;
    padding:16px 20px 22px;margin:0 0 16px;
  }
  body.is-in #group-detail .head .eyebrow{color:#A9BBD1}
  body.is-in #group-detail .head h1{color:#fff}
  body.is-in #group-detail .head p{color:#C3D0DF}
  body.is-in #group-detail .head .actions-row{padding:12px 0 0}
  body.is-in #group-detail .head .btn-primary-fg{
    background:#fff;color:var(--navy,#05223A);border-color:#fff;
    border-radius:var(--fg-btn-radius,14px);
  }
  body.is-in #group-detail .head .btn-ghost{
    color:#fff !important;border-color:#C3D0DF !important;background:transparent !important;
  }
  body.is-in #group-detail .fg-card{margin-left:16px;margin-right:16px}
  body.is-in #group-detail .grid-2{padding:0}
}

/* ---- Fase 2: Reportes (tabla y tarjetas) y Árbol de la iglesia ---- */
body.is-in #weekly-status,
body.is-in #group-summary,
body.is-in #results .fg-card,
body.is-in #desktop-report-table,
body.is-in .p3map-tree,
body.is-in .p3map-empty,
body.is-in .p3map-level{
  box-shadow:none !important;
  border:1px solid #e2e9ed;
  background:#fff;
  border-radius:20px;
}
body.is-in #weekly-status{padding:20px}
body.is-in .fg2-sum-big{font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:var(--navy,#05223A)}
body.is-in .fg2-bar{height:10px;background:#e8eef1;border-radius:999px;overflow:hidden}
body.is-in .fg2-bar span{background:var(--teal-d,#007883)}
body.is-in #report-history .fg2-outline,
body.is-in #print-results,
body.is-in #reload,
body.is-in .fg2-toolbar summary,
body.is-in #print-actions button{
  min-height:48px;border-radius:var(--fg-btn-radius,14px);
}
body.is-in #print-results:not([hidden]){
  background:var(--teal-d,#007883);color:#fff;border-color:var(--teal-d,#007883);
}

@media (max-width:1023px){
  body.is-in #report-history{padding:0 !important}
  body.is-in[data-p3-role=admin] #app-brandrow{display:none !important}
  body.is-in #report-history .fg2-head,
  body.is-in #report-history .fg2-history-head,
  body.is-in #report-history header.fg2-head{
    background:var(--navy,#05223A) !important;color:#fff !important;
    padding:18px 20px 22px !important;margin:0 0 16px !important;border:0 !important;border-radius:0 !important;
  }
  body.is-in #report-history .fg2-head .eyebrow,
  body.is-in #report-history .fg2-history-head .eyebrow{color:#A9BBD1 !important}
  body.is-in #report-history .fg2-head h2,
  body.is-in #report-history .fg2-history-head h2,
  body.is-in #report-history #history-title{color:#fff !important;letter-spacing:-.03em}
  body.is-in #report-history .fg2-head .fg2-meta,
  body.is-in #report-history .fg2-history-head .fg2-meta{color:#C3D0DF !important}
  body.is-in #report-history .fg2-head .fg2-outline,
  body.is-in #report-history .fg2-history-head .fg2-outline,
  body.is-in #report-history header.fg2-head .fg2-outline,
  body.is-in #report-history .fg2-head #reload,
  body.is-in #report-history .fg2-history-head #reload{
    color:#fff !important;border-color:#C3D0DF !important;background:transparent !important;
  }
  body.is-in #weekly-status,
  body.is-in #results,
  body.is-in .fg2-toolbar{margin-left:16px;margin-right:16px}
  body.is-in #p3-map{padding:0 0 24px;max-width:none}
  body.is-in #p3-map .p3map-head{
    display:flex;flex-direction:column;gap:12px;
    background:transparent;color:var(--navy);padding:0;margin:0 0 16px;border-radius:0;
  }
  body.is-in #p3-map .p3map-head .ttl{
    background:var(--navy,#05223A);color:#fff;
    padding:18px 20px 22px;margin:0;
  }
  body.is-in #p3-map .p3map-head .eyebrow{color:#A9BBD1}
  body.is-in #p3-map .p3map-head h1{color:#fff}
  body.is-in #p3-map .p3map-head .ttl p{color:#C3D0DF}
  body.is-in #p3-map .p3map-week,
  body.is-in #p3-map .p3map-tools{margin:0 16px;color:var(--navy,#05223A)}
  body.is-in #p3-map .p3map-week .lbl small{color:var(--teal-d,#007883)}
  body.is-in #p3-map .p3map-week .lbl strong{color:var(--navy,#05223A)}
  body.is-in #p3-map .p3map-icon{color:var(--navy,#05223A);background:#fff;border:1px solid #e2e9ed;border-radius:14px}
  body.is-in #p3-map .p3map-icon:hover,
  body.is-in #p3-map .p3map-icon:focus-visible{background:#f4f7f8;color:var(--navy,#05223A)}
  body.is-in #p3-map .p3map-tools button,
  body.is-in #p3-map .p3map-add{
    background:var(--teal-d,#007883)!important;color:#fff!important;border:0!important;border-radius:14px;
    min-height:48px;
  }
  body.is-in #p3-map .p3map-level,
  body.is-in #p3-map .p3map-tree,
  body.is-in #p3-map .p3map-empty,
  body.is-in #p3-map .p3map-note{margin-left:16px;margin-right:16px}
}
body.is-in #p3-map .p3map-av{
  border-radius:28% !important;
}
body.is-in #p3-map .p3map-card{border-radius:14px;box-shadow:none}
body.is-in[data-p3=map] #p3-area-bar{display:none !important}

@media (min-width:1024px){
  body.is-in #p3-map{max-width:none;padding:0}
}

/* ---- Fase 3: Inicio y Reporte del líder, Avisos y Mi grupo ---- */
/* Confirmación: solo opción A, botón turquesa (ya en las reglas de p3-success-a). */

/* Avisos */
@media (max-width:1023px){
  body.is-in #p3-notices{padding:0 !important;background:var(--bg,#fafcfd)}
  body.is-in #p3-notices .p3av-head{
    background:var(--navy,#05223A);color:#fff;
    padding:18px 20px 22px;margin:0 0 16px;
  }
  body.is-in #p3-notices .p3av-head h1{color:#fff;letter-spacing:-.03em;margin:0}
  body.is-in #p3-notices .p3av-head p{color:#C3D0DF;margin:6px 0 0}
  body.is-in #p3-notices .p3av-card,
  body.is-in #p3-notices .p3av-out{margin-left:16px;margin-right:16px}
}
body.is-in #p3-notices .p3av-card{
  box-shadow:none !important;border:1px solid #e2e9ed;background:#fff;border-radius:20px;padding:18px;
}
body.is-in #p3-notices .p3av-card input,
body.is-in #p3-notices .p3av-card textarea,
body.is-in #p3-notices .p3av-field select{
  min-height:48px;border:1px solid #e2e9ed;border-radius:14px;background:#fff;color:var(--navy,#05223A);
}
body.is-in #p3-notices .p3av-card button[type=submit],
body.is-in #p3-notices .p3av-send{
  min-height:48px;border-radius:var(--fg-btn-radius,14px);
  background:var(--teal-d,#007883)!important;color:#fff!important;border:0!important;width:100%;
}
body.is-in #p3-notices .p3av-item,
body.is-in #p3-notices .p3av-empty{
  box-shadow:none !important;border:1px solid #e2e9ed;background:#fff;border-radius:20px;
}
body.is-in #p3-notices .p3av-chip{
  min-height:48px;border-radius:999px;padding:0 14px;
  border:1px solid #e2e9ed;background:#fff;color:var(--navy,#05223A);
}
body.is-in #p3-notices .p3av-chip.is-on{
  background:var(--teal-d,#007883);color:#fff;border-color:var(--teal-d,#007883);
}

/* Flujo del reporte: campos y acciones 14 px, tarjetas planas. */
body.is-in #report .fg-card,
body.is-in #report .p3-step,
body.is-in #submission .fg-card,
body.is-in #p3-wiz-top{
  /* no forzar sombras */
}
body.is-in #report input,
body.is-in #report select,
body.is-in #report textarea,
body.is-in #submission input,
body.is-in #submission select,
body.is-in #submission textarea{
  border:1px solid #e2e9ed;border-radius:14px;min-height:48px;background:#fff;color:var(--navy,#05223A);
}
body.is-in #report button[type=submit],
body.is-in #report .btn-primary-fg,
body.is-in #submission .btn-primary-fg,
body.is-in #report [data-t="rSubmit"],
body.is-in #report [data-t="rNext"],
body.is-in #report [data-t="rSend"]{
  min-height:48px;border-radius:var(--fg-btn-radius,14px);
  background:var(--teal-d,#007883);color:#fff;border:0;
}
@media (max-width:1023px){
  body.is-in #leader-head:not([hidden]){
    background:var(--navy,#05223A);color:#fff;
    padding:16px 20px;margin:0;
  }
  body.is-in #leader-head .eyebrow{color:#A9BBD1}
  body.is-in #leader-head h1{color:#fff}
  body.is-in #p3-wiz-top .p3-wiz-bar{background:var(--navy,#05223A);color:#fff}
  body.is-in #p3-wiz-top .p3-icon-btn{color:#fff}
}

/* Fase 3: botones de acción del reporte en 14 px (wizard.css usaba 999 px). */
html body[data-p3-role] .fg2-actions #next,
html body[data-p3-role] .fg2-actions #send,
html body.is-in #next,
html body.is-in #send{
  border-radius: var(--fg-btn-radius, 14px) !important;
  box-shadow: none !important;
}
html body[data-p3-role] #report .fg2-section input:not([type=checkbox]),
html body[data-p3-role] #report .fg2-section select,
html body[data-p3-role] #report .fg2-section textarea{
  border-radius: 14px !important;
}
html body[data-p3-role] #report .fg2-section select{
  max-width:100%;
}

/* «Ver historial» sobre el marco navy (solo celular). En escritorio el encabezado es claro. */
@media (max-width:1023px){
  html body.is-in #group-detail .head .btn-ghost,
  html body.is-in #group-detail .head button[data-act="view-history"]{
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    border-color:#C3D0DF !important;
    background:transparent !important;
  }
}

/* Avisos: cabecera navy a todo el ancho en celular. */
@media (max-width:1023px){
  body.is-in #p3-notices .p3av-head{
    border-radius:0 !important;
    margin:0 0 16px !important;
    width:100%;
    box-sizing:border-box;
  }
}


/* ---- Pulido: chips que se acomodan, cabecera navy a todo el ancho, grupo en 2 líneas ---- */
@media (max-width:1023px){
  body.is-in #p3-chips.p3-chips,
  body.is-in .p3-chips{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    overflow-x:hidden;
    overflow-y:visible;
    margin:0 16px 12px;
    padding:0;
    max-width:100%;
    box-sizing:border-box;
  }
  body.is-in .p3-chip{
    flex:0 1 auto;
    max-width:100%;
    white-space:normal;
    text-align:center;
    height:auto;
    min-height:48px;
    line-height:1.25;
    box-sizing:border-box;
  }

  body.is-in[data-p3=map] #app-brandrow,
  body.is-in[data-p3=notices] #app-brandrow,
  body.is-in[data-p3=list] #app-brandrow{
    display:none !important;
  }
  body.is-in[data-p3=map] #app-main,
  body.is-in[data-p3=notices] #app-main,
  body.is-in[data-p3=list] #app-main{
    padding:0 0 calc(8px + env(safe-area-inset-bottom,0px)) !important;
    background:var(--bg,#fafcfd);
    max-width:none;
  }
  body.is-in[data-p3=map] #workspace,
  body.is-in[data-p3=notices] #workspace,
  body.is-in[data-p3=list] #workspace{
    padding:0 !important;
    max-width:none;
    margin:0;
  }

  body.is-in #p3-map{
    padding:0 0 24px !important;
    max-width:none !important;
    width:100%;
    margin:0;
    overflow-x:hidden;
  }
  body.is-in #p3-map .p3map-head{
    width:100%;
    align-items:stretch;
    margin:0 0 16px;
  }
  body.is-in #p3-map .p3map-head .ttl{
    display:block;
    width:100%;
    box-sizing:border-box;
    border-radius:0 !important;
    margin:0;
    padding:18px 20px 22px;
    background:var(--navy,#05223A);
    color:#fff;
  }

  body.is-in #p3-notices{
    padding:0 0 calc(24px + env(safe-area-inset-bottom,0px)) !important;
    max-width:none !important;
    width:100%;
    margin:0;
    background:var(--bg,#fafcfd);
    border-radius:0 !important;
    border:0 !important;
    box-shadow:none !important;
  }
  body.is-in #p3-notices .p3av-head{
    display:block;
    width:100%;
    box-sizing:border-box;
    border-radius:0 !important;
    margin:0 0 16px !important;
    padding:18px 20px 22px !important;
    background:var(--navy,#05223A);
    color:#fff;
  }
}

/* Nombre completo del grupo: hasta 2 líneas, visible junto al select. */
label.fg-group-field{
  display:flex;
  flex-direction:column;
  min-width:0;
}
label.fg-group-field .fg-group-wrap{
  position:relative;
  min-width:0;
}
label.fg-group-field .fg-group-fullname{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  min-height:48px;
  padding:12px 40px 12px 14px;
  border:1px solid #e2e9ed;
  border-radius:14px;
  background:#fff;
  color:var(--navy,#05223A);
  font-size:16px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  box-sizing:border-box;
}
label.fg-group-field select[name="meeting-group"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
  min-height:0;
  z-index:1;
}
label.fg-group-field .fg-group-wrap::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:12px;
  height:8px;
  transform:translateY(-50%);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2305223a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:2;
}
label.fg-group-field.is-single .fg-group-wrap::after{display:none}
label.fg-group-field.is-single select[name="meeting-group"]{pointer-events:none}


/* ---- Reportes 390: un selector, una fila de filtros, Exportar, tarjetas sin recortes ---- */
body.is-in[data-p3="list"] #p3-area-bar{
  display:none !important;
}
#p3-chips,
body.is-in #p3-chips{
  display:none !important;
}

body.is-in #p3-list-top #reload,
body.is-in .p3-head-actions #reload{
  color:var(--navy,#05223A) !important;
  border:1px solid #e2e9ed !important;
  background:#fff !important;
  border-radius:14px !important;
  width:48px;
  min-width:48px;
  min-height:48px;
  padding:0;
  display:grid;
  place-items:center;
}
body.is-in #p3-list-top #reload svg,
body.is-in .p3-head-actions #reload svg{
  display:block;
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

#p3-filter-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  margin:0 16px 12px;
  align-items:stretch;
  order:1;
}
#p3-filter-row > #campus-scope{order:0 !important}
#p3-filter-row > #p3-group-filter-label{order:1 !important}
#p3-filter-row > #p3-filter-tools{order:2 !important}
#p3-filter-row[hidden]{display:none !important}
#p3-filter-row #campus-scope{
  margin:0;
  display:block;
  min-width:0;
}
#p3-filter-row #campus-scope[hidden]{display:none !important}
#p3-filter-row #scope-campus-label,
#p3-filter-row .p3-filter-select{
  display:block;
  min-width:0;
  margin:0;
}
#p3-filter-row select,
body[data-p3-role=admin] #p3-filter-row #campus-scope select,
body[data-p3-role=admin] #p3-filter-row #scope-campus,
body[data-p3-role=admin] #p3-filter-row #p3-group-filter{
  width:100%;
  min-height:48px;
  border:1px solid #e2e9ed;
  border-radius:14px !important;
  background-color:#fff;
  color:var(--navy,#05223A);
  font:500 15.5px/1.3 Inter,system-ui,sans-serif;
  padding:0 36px 0 12px;
  box-sizing:border-box;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2305223a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
}
#p3-filter-tools{
  grid-column:1 / -1;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:stretch;
  min-width:0;
}
body.is-in #p3-filter-tools .fg2-toolbar{
  display:flex;
  gap:8px;
  flex:1 1 auto;
  margin:0 !important;
  min-width:0;
}
body.is-in #p3-filter-tools #print-actions:empty,
body.is-in #p3-filter-tools #print-actions:not(:has(:not([hidden]))){
  display:none;
}
body.is-in #p3-filter-tools .fg2-filters{
  margin:0;
  flex:1 1 0;
  min-width:0;
}
body.is-in #p3-filter-tools .fg2-filters > summary,
body.is-in #p3-print-more > summary,
body.is-in #p3-print-more,
body.is-in #p3-filter-tools .fg2-toolbar summary,
body.is-in #p3-filter-tools button{
  border-radius:14px !important;
}
body.is-in #p3-print-more{
  margin:0;
  flex:0 0 auto;
  min-width:min(100%, 148px);
  background:#fff;
  border:1px solid #e2e9ed;
  border-radius:14px !important;
}
body.is-in #p3-print-more > summary{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 16px;
  list-style:none;
  cursor:pointer;
  font:700 15px/1.2 Inter,system-ui,sans-serif;
  color:var(--navy,#05223A);
}
body.is-in #p3-print-more > summary::-webkit-details-marker{display:none}
body.is-in #p3-print-more .p3-print-more-body{
  display:grid;
  gap:8px;
  padding:0 12px 12px;
}
body.is-in #p3-print-more .p3-print-more-body button,
body.is-in #p3-print-more #print-results,
body.is-in #p3-print-more #print-all-filtered,
body.is-in #p3-print-more #export-csv{
  width:100%;
  min-height:48px;
  margin:0;
  border-radius:14px !important;
  font-family:Inter,system-ui,sans-serif;
}
body.is-in #p3sr-reports-switch .p3sr-seg,
body.is-in #p3-reports-switch .p3sr-seg{
  border-radius:14px;
  padding:4px;
}
body.is-in #p3-reports-switch .p3sr-seg-btn{
  border-radius:10px;
  min-height:40px;
}

/* Tarjeta de reporte: cifra y campus completos; estado en texto, como en Resumen. */
#results .p3-rc-row{
  align-items:flex-start;
  min-width:0;
  overflow:visible;
}
#results .p3-rc-row .tx{
  flex:1 1 auto;
  min-width:0;
}
#results .p3-rc-row .fg2-card-meta{
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}
#results .p3-rc-row .end{
  flex:0 0 auto;
  min-width:4.5rem;
  overflow:visible;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
}
#results .p3-rc-row .end b{
  display:block;
  font-size:22px;
  line-height:1;
  font-variant-numeric:tabular-nums;
  overflow:visible;
  font-family:Inter,system-ui,sans-serif;
}
#results .fg-status,
#results .fg-status-chip{
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  min-height:0 !important;
  font:600 12.5px/1.3 Inter,system-ui,sans-serif;
}
#results .fg-status-sent,
#results .fg-status-reported{color:var(--status-reported,#1f7a4d)}
#results .fg-status-pending{color:var(--status-pending,#b36b00)}
#results .fg-status-missing{color:var(--status-missing,#b42318)}
body.is-in #results .fg2-report-card{
  overflow:visible;
  padding:14px 16px 16px;
}

/* Confirmación A: fecha en Inter, como en Inicio. */
#report-confirmation.p3-success .p3-success-card .fg-kv,
#report-confirmation.p3-success .p3-success-card .fg-kv-date,
#report-confirmation.p3-success .p3-success-card .fg-kv b,
#report-confirmation.p3-success .p3-success-card .fg-kv-date strong,
#report-confirmation.p3-success .p3-success-card .fg-kv-date small{
  font-family:Inter,system-ui,sans-serif;
}
#report-confirmation.p3-success .p3-success-card .fg-kv-date{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  text-align:left;
}
#report-confirmation.p3-success .p3-success-card .fg-kv-date strong{
  font-weight:700;
  font-size:15px;
  color:var(--navy,#05223A);
}
#report-confirmation.p3-success .p3-success-card .fg-kv-date small{
  font-size:13.5px;
  font-weight:500;
  color:var(--muted,#546675);
}

@media (max-width:1023px){
  #p3-filter-row{
    grid-template-columns:1fr;
  }
  #p3-filter-tools{grid-column:1}
}

/* Estado en texto también en la tabla de escritorio; hora de envío solo al abrir el detalle. */
#desktop-report-table .fg-status,
#desktop-report-table .fg-status-chip{
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  min-height:0 !important;
  font:600 13px/1.3 Inter,system-ui,sans-serif;
}
#desktop-report-table .fg-status-sent,
#desktop-report-table .fg-status-reported{color:var(--status-reported,#1f7a4d)}
body[data-p3-role=admin] #results .fg2-report-card .fg2-sent-at,
body[data-p3-role=admin] #results .fg2-report-card .fg2-card-top,
body[data-p3-role=admin] #results .fg2-report-card .fg2-note{
  display:none !important;
}
body[data-p3-role=admin] #results .fg2-report-card:has(.fg2-detail[open]) .fg2-sent-at,
body[data-p3-role=admin] #results .fg2-report-card:has(.fg2-detail[open]) .fg2-card-top,
body[data-p3-role=admin] #results .fg2-report-card:has(.fg2-detail[open]) .fg2-note{
  display:block !important;
}

@media (min-width:1024px){
  #p3-filter-row{
    grid-template-columns:minmax(200px,1fr) minmax(220px,1.2fr) auto;
    margin:0 0 16px;
  }
  #p3-filter-tools{
    grid-column:auto;
    flex-wrap:nowrap;
  }
  body[data-p3-role=admin] #campus-scope{order:initial}
  body[data-p3-role=admin] .fg2-toolbar{order:initial}
  #p3-print-more{order:initial}
}


/* ---- Fase 4: admin de campus (cáscara limitada) y tablero del ujier ---- */
body.is-in[data-p3-role=admin] #campus-scope-status:not(:empty){
  margin:0 16px 12px;
  color:var(--muted,#546675);
  font:500 13.5px/1.4 Inter,system-ui,sans-serif;
}
@media (min-width:1024px){
  body.is-in[data-p3-role=admin] #campus-scope-status:not(:empty){margin:0 0 12px}
}
#p3-filter-row #campus-scope-status:not(:empty){
  margin:0;
  grid-column:1 / -1;
}

/* Ujier: mismo marco navy (barra lateral / pestañas). */
@media (min-width:1024px){
  body.is-in[data-p3-role=usher] #app-side{
    display:flex !important;
  }
  body.is-in[data-p3-role=usher] #app-tabbar{
    display:none !important;
  }
  body.is-in[data-p3-role=usher] #p3-services{
    max-width:none;
    margin:0;
    padding:8px 8px 40px;
  }
}
@media (min-width:1024px){
  body.is-in[data-p3-role=usher] #p3-services .p3s-head .p3-avatar{display:none}
}
@media (max-width:1023px){
  body.is-in[data-p3-role=usher] #app-brandrow{display:none !important}
  body.is-in[data-p3-role=usher] #app-main,
  body.is-in[data-p3-role=usher] #workspace{
    padding:0 !important;
  }
  body.is-in[data-p3-role=usher] #app-tabbar{
    display:flex !important;
  }
  body.is-in[data-p3-role=usher] #app-side{
    display:none !important;
  }
  body.is-in[data-p3-role=usher] #p3-services{
    max-width:none;
    width:100%;
    margin:0;
    padding:0 0 calc(24px + var(--fg-tabbar-h,64px) + env(safe-area-inset-bottom,0px));
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-head{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin:0 0 16px;
    padding:18px 20px 22px;
    background:var(--navy,#05223A);
    color:#fff;
    border-radius:0;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-head .p3-eyebrow{color:#A9BBD1}
  body.is-in[data-p3-role=usher] #p3-services .p3s-head h1{color:#fff;margin:2px 0 6px}
  body.is-in[data-p3-role=usher] #p3-services .p3s-sub,
  body.is-in[data-p3-role=usher] #p3-services .p3s-note{color:#C3D0DF}
  body.is-in[data-p3-role=usher] #p3-services .p3s-head .p3-avatar{display:none}
  body.is-in[data-p3-role=usher] #p3-services .p3s-main{padding:0 16px}
  body.is-in[data-p3-role=usher] #p3-services .p3s-head + .p3s-status,
  body.is-in[data-p3-role=usher] #p3-services .p3s-head ~ .p3s-status{margin-left:16px;margin-right:16px}
  body.is-in[data-p3-role=usher] #p3-services.is-ph .p3s-ph,
  body.is-in[data-p3-role=usher] #p3-services .p3s-ph.is-on{padding:0 16px 40px}
  body.is-in[data-p3-role=usher] #p3-services .p3s-count-head{
    margin:0 -16px 16px;
    padding:16px 20px;
    background:var(--navy,#05223A);
    color:#fff;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-count-head h2,
  body.is-in[data-p3-role=usher] #p3-services .p3s-count-head p,
  body.is-in[data-p3-role=usher] #p3-services .p3s-count-head .p3s-back{color:#fff}
}

/* Tablero: tarjetas planas, botones 14 px, estados en texto, cifra grande propia. */
body.is-in[data-p3-role=usher] #p3-services .p3s-row,
body.is-in[data-p3-role=usher] #p3-services .p3s-cta,
body.is-in[data-p3-role=usher] #p3-services .p3s-empty,
body.is-in[data-p3-role=usher] #p3-services .p3s-summary{
  box-shadow:none !important;
  border:1px solid #e2e9ed;
  background:#fff;
  border-radius:20px;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-cta{
  border-color:#f1d29b;
  background:#fff3de;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-pill,
body.is-in[data-p3-role=usher] #p3-services .p3s-ghost,
body.is-in[data-p3-role=usher] #p3-services .p3s-cta .go,
body.is-in[data-p3-role=usher] #p3-services .p3s-pm,
body.is-in[data-p3-role=usher] #p3-services .pm{
  border-radius:14px !important;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-cta .go{
  background:var(--teal-d,#007883);
  color:#fff;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-row .ic{
  border-radius:28%;
  background:#e8f5f7;
  color:#007883;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-badge,
body.is-in[data-p3-role=usher] #p3-services .p3s-chip,
body.is-in[data-p3-role=usher] #p3-services .p3s-sent-chip{
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  min-height:0 !important;
  font:600 12.5px/1.3 Inter,system-ui,sans-serif;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-badge{color:#9fe3ea}
@media (min-width:1024px){
  body.is-in[data-p3-role=usher] #p3-services .p3s-badge{color:var(--teal-d,#007883)}
}
body.is-in[data-p3-role=usher] #p3-services .p3s-chip{color:var(--status-pending,#b36b00)}
body.is-in[data-p3-role=usher] #p3-services .p3s-chip.is-ok,
body.is-in[data-p3-role=usher] #p3-services .p3s-sent-chip{color:var(--status-reported,#1f7a4d)}
body.is-in[data-p3-role=usher] #p3-services .p3s-chip.is-draft{color:var(--teal-d,#007883)}

/* Cifra grande del ujier: componente propio de Groups (tabular, Inter, toque de 48 px). */
body.is-in[data-p3-role=usher] #p3-services .p3s-big,
body.is-in[data-p3-role=usher] #p3-services .sff-total .n{
  font-family:Inter,system-ui,sans-serif;
  font-weight:800;
  font-size:56px;
  line-height:1;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}
body.is-in[data-p3-role=usher] #p3-services .sff-total{
  border-radius:20px;
  background:var(--navy,#05223A);
  color:#fff;
  padding:20px 20px 18px;
}
body.is-in[data-p3-role=usher] #p3-services .sff-total .badge{
  border-radius:10px;
}

#groups-screen .fg-status,
#groups-screen .fg-status-chip,
#groups-screen .fg-groups-table .fg-status{
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  min-height:0 !important;
  font:600 13px/1.3 Inter,system-ui,sans-serif;
}
#groups-screen .fg-status-sent,
#groups-screen .fg-status-reported{color:var(--status-reported,#1f7a4d)}
#groups-screen .fg-status-pending{color:var(--status-pending,#b36b00)}

/* ---- Pulido P0: márgenes de Reportes, resumen por grupo, ujier ---- */

/* Reportes 390: un solo padding lateral de 20 px; el recargar no se corta. */
@media (max-width:1023px){
  body.is-in[data-p3="list"] #report-history{
    padding:0 20px calc(24px + var(--fg-tabbar-h,64px) + env(safe-area-inset-bottom,0px)) !important;
    box-sizing:border-box;
  }
  body.is-in[data-p3="list"] #p3-list-top,
  body.is-in[data-p3="list"] #p3-list-top .p3-head{
    min-width:0;
    overflow:visible;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  body.is-in[data-p3="list"] #p3-list-top .p3-head{
    display:flex;
    align-items:flex-start;
    gap:12px;
  }
  body.is-in[data-p3="list"] #p3-list-top .p3-head .ttl{flex:1 1 auto;min-width:0}
  body.is-in[data-p3="list"] #p3-list-top .p3-head-actions{
    flex:none;
    margin:0;
  }
  body.is-in[data-p3="list"] #p3-list-top #reload{
    flex:none;
    margin:0;
    box-sizing:border-box;
  }
  body.is-in[data-p3="list"] #p3-filter-row,
  body.is-in[data-p3="list"] #weekly-status,
  body.is-in[data-p3="list"] #results,
  body.is-in[data-p3="list"] #results-pager,
  body.is-in[data-p3="list"] #group-summary,
  body.is-in[data-p3="list"] #p3-form-link,
  body.is-in[data-p3="list"] #p3-count,
  body.is-in[data-p3="list"] #history-status,
  body.is-in[data-p3="list"] #desktop-report-table,
  body.is-in[data-p3="list"] .fg2-toolbar,
  body.is-in[data-p3="list"] #campus-scope-status:not(:empty){
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* «Reportes por grupo»: contenido visible (lista de conteos), no una tarjeta vacía. */
body.is-in #group-summary:not([hidden]){
  padding:16px 16px 14px;
  margin-top:16px;
  margin-bottom:12px;
}
body.is-in #group-summary > summary{
  list-style:none;
  font:700 16px/1.3 Inter,system-ui,sans-serif;
  color:var(--navy,#05223A);
  min-height:0;
  padding:0 0 10px;
  cursor:default;
}
body.is-in #group-summary > summary::-webkit-details-marker{display:none}
body.is-in #group-summary #group-counts{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}
body.is-in #group-summary #group-counts li{
  margin:0;
  padding:0;
  font:500 14.5px/1.4 Inter,system-ui,sans-serif;
  color:var(--navy,#05223A);
}
body.is-in #group-summary #print-group-summary{
  margin-top:12px;
  border-radius:14px !important;
  color:var(--navy,#05223A) !important;
  background:#fff !important;
  border:1px solid #e2e9ed !important;
  min-height:48px;
}

/* Alcance de campus bajo el título, no suelto a la derecha del selector de semana. */
#p3-summary .fg-desk-head .ttl .p3-scope:not([hidden]){
  display:block;
  margin:6px 0 0;
  color:var(--muted,#546675);
  font:500 13.5px/1.4 Inter,system-ui,sans-serif;
}

/* Leyenda de los puntos de las últimas 4 semanas. */
.fg-weeks-legend{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;
  margin:12px 0 0;
  color:var(--muted,#546675);
  font:500 13px/1.35 Inter,system-ui,sans-serif;
}
.fg-weeks-legend .lab{font-weight:600;color:var(--navy,#05223A)}
.fg-weeks-legend span{display:inline-flex;align-items:center;gap:6px}
.fg-weeks-legend i{
  width:10px;height:10px;border-radius:50%;box-sizing:border-box;background:var(--line,#e2e9ed);
}
.fg-weeks-legend i.is-sent{background:var(--status-reported,#1f7a4d)}
.fg-weeks-legend i.is-pending{background:transparent;border:2px solid var(--status-pending,#b36b00)}
.fg-weeks-legend i.is-missing{background:var(--status-missing,#b42318)}

/* Pie de la barra lateral: «Administrador de campus» completo, en dos líneas si hace falta. */
@media (min-width:1024px){
  body.is-in .side .side-avatar .meta{min-width:0;flex:1}
  body.is-in .side .side-avatar .meta small{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:unset !important;
    line-height:1.3;
  }
}

/* Ujier: «Próximo servicio» neutro (tinte #E8F5F7, sin alerta). */
body.is-in[data-p3-role=usher] #p3-services .p3s-cta{
  border-color:#cfe6ea !important;
  background:#E8F5F7 !important;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-cta:hover{
  background:#E8F5F7 !important;
  border-color:#cfe6ea !important;
}
body.is-in[data-p3-role=usher] #p3-services .p3s-cta .kicker{
  color:var(--teal-d,#007883);
}
body.is-in[data-p3-role=usher] #p3-services .p3s-chip.is-pending{color:var(--status-pending,#b36b00)}

/* Ujier: banda navy a sangre en celular; volver 48 px; Guardar fijo y visible. */
@media (max-width:1023px){
  body.is-in[data-p3-role=usher] #p3-services .p3s-main{padding:0 !important}
  body.is-in[data-p3-role=usher] #p3-services .p3s-head{
    width:100%;
    box-sizing:border-box;
    margin:0 0 16px !important;
    padding:18px 20px 22px !important;
    border-radius:0;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-main > :not(.p3s-head){
    margin-left:20px;
    margin-right:20px;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-head + .p3s-status,
  body.is-in[data-p3-role=usher] #p3-services .p3s-head ~ .p3s-status{
    margin-left:20px !important;
    margin-right:20px !important;
  }
  body.is-in[data-p3-role=usher] #p3-services.is-ph .p3s-ph,
  body.is-in[data-p3-role=usher] #p3-services .p3s-ph.is-on{
    padding:0 0 calc(24px + var(--fg-tabbar-h,64px) + env(safe-area-inset-bottom,0px)) !important;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-count-head,
  body.is-in[data-p3-role=usher] #p3-services .p3s-wiz-head{
    width:100%;
    box-sizing:border-box;
    margin:0 0 16px !important;
    padding:16px 20px !important;
    background:var(--navy,#05223A);
    color:#fff;
    border-radius:0;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-ph.is-on > :not(.p3s-count-head):not(.p3s-wiz-head){
    margin-left:20px;
    margin-right:20px;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-back{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    flex:none;
    box-sizing:border-box;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-pill[data-p3s="send"]{
    position:fixed;
    left:20px;
    right:20px;
    width:auto;
    bottom:calc(80px + env(safe-area-inset-bottom,0px) + 8px);
    z-index:20;
    margin:0;
    min-height:48px;
    background:var(--teal-d,#007883);
    color:#fff;
    border:0;
    box-shadow:0 8px 24px rgba(5,34,58,.18);
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-ph.is-on{
    padding-bottom:calc(120px + 64px + env(safe-area-inset-bottom,0px)) !important;
  }
}

/* ---- Bandas navy a sangre: no usar width:100% + margen lateral, ni overflow-x:hidden
   en un contenedor con overflow-y:auto. Eso ensancha el scrollWidth y un scrollLeft
   distinto de 0 desplaza la banda a la izquierda, dejando un hueco a la derecha. */

@media (max-width:1023px){
  /* Evita que el scroll vertical se convierta en scroll horizontal (clip no pasa a auto). */
  body.is-in #app-main,
  body.is-in #workspace,
  body.is-in #p3-services,
  body.is-in #p3-home,
  body.is-in #p3-summary,
  body.is-in #p3-map,
  body.is-in #p3-notices,
  body.is-in #account-screen,
  body.is-in #group-detail,
  body.is-in #report-history,
  body.is-in #p3-wiz-top{
    overflow-x:clip !important;
    max-width:100%;
    box-sizing:border-box;
  }
  body.is-in[data-p3-role=usher] #p3-services{
    overflow-x:clip !important;
    overflow-y:auto;
    width:100%;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box;
  }
  /* El inset de 20 px va en el padding del contenedor, no en márgenes de hijos. */
  body.is-in[data-p3-role=usher] #p3-services .p3s-main{
    padding:0 20px calc(24px + var(--fg-tabbar-h,64px) + env(safe-area-inset-bottom,0px)) !important;
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
  }
  body.is-in[data-p3-role=usher] #p3-services.is-ph .p3s-ph,
  body.is-in[data-p3-role=usher] #p3-services .p3s-ph.is-on{
    padding:0 20px calc(120px + 64px + env(safe-area-inset-bottom,0px)) !important;
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
    align-items:stretch;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-head,
  body.is-in[data-p3-role=usher] #p3-services .p3s-count-head,
  body.is-in[data-p3-role=usher] #p3-services .p3s-wiz-head{
    width:auto !important;
    max-width:none !important;
    margin-top:0 !important;
    margin-left:-20px !important;
    margin-right:-20px !important;
    margin-bottom:16px !important;
    padding-left:20px !important;
    padding-right:20px !important;
    box-sizing:border-box !important;
    border-radius:0 !important;
    align-self:stretch;
    position:relative;
    left:auto;
    right:auto;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-main > :not(.p3s-head),
  body.is-in[data-p3-role=usher] #p3-services .p3s-head + .p3s-status,
  body.is-in[data-p3-role=usher] #p3-services .p3s-head ~ .p3s-status,
  body.is-in[data-p3-role=usher] #p3-services .p3s-ph.is-on > :not(.p3s-count-head):not(.p3s-wiz-head){
    margin-left:0 !important;
    margin-right:0 !important;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  /* El resto de cabeceras navy: que llenen el ancho del contenedor, sin radio. */
  body.is-in .fg-navy-wrap,
  body.is-in #p3-map .p3map-head .ttl,
  body.is-in #p3-notices .p3av-head,
  body.is-in #account-screen .head,
  body.is-in #group-detail .head,
  body.is-in #leader-head,
  body.is-in #p3-wiz-top .p3-wiz-bar,
  body.is-in #report-history .fg2-head,
  body.is-in #report-history .fg2-history-head,
  body.is-in #report-history header.fg2-head{
    box-sizing:border-box !important;
    border-radius:0 !important;
    max-width:none;
  }
}

/* Escritorio: si hay banda navy de pantalla en la columna, que llegue a ambos bordes de esa columna. */
@media (min-width:1024px){
  body.is-in[data-p3-role=usher] #p3-services{
    overflow-x:clip;
    box-sizing:border-box;
  }
}

@media (max-width:1023px){
  body.is-in[data-p3=group] #app-main,
  body.is-in[data-p3=group] #workspace,
  body.is-in[data-p3=report] #app-main,
  body.is-in[data-p3=report] #workspace,
  body.is-in:has(#group-detail:not([hidden])) #app-main,
  body.is-in:has(#group-detail:not([hidden])) #workspace{
    padding:0 !important;
    max-width:none;
  }
  /* El navy va en la barra; el padding horizontal de #p3-wiz-top la dejaba metida 20 px. */
  body.is-in[data-p3=report] #p3-wiz-top{
    margin-left:0 !important;
    margin-right:0 !important;
    width:auto;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box;
    border-radius:0 !important;
    background:var(--navy,#05223A);
  }
  body.is-in[data-p3=report] #p3-wiz-top .p3-wiz-bar{
    margin:0;
    width:auto;
    max-width:none;
    padding-left:20px;
    padding-right:20px;
    border-radius:0 !important;
    box-sizing:border-box;
    background:var(--navy,#05223A);
    color:#fff;
  }
}

/* ---- Fase 5: portada del demo e inicio de sesión ---- */

/* ES/EN de 48 px en la barra de acceso (login y portada). */
.login-stage #access-lang{
  display:inline-flex;align-items:stretch;
  height:48px;min-height:48px;padding:0;
  border:1px solid #e2e9ed;border-radius:999px;
  overflow:hidden;background:#fff;flex:none;
}
.login-stage #access-lang button,
.login-stage #access-lang button[data-lang]{
  border:0;background:transparent;color:#546675;
  font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:700;
  width:48px;min-width:48px;min-height:48px;padding:0;border-radius:0 !important;
  box-sizing:border-box;
}
.login-stage #access-lang button[aria-pressed=true],
.login-stage #access-lang button[aria-pressed=true]:hover{
  background:var(--navy,#05223A);color:#fff;
}

/* Tarjeta de acceso plana (sombra solo en lo que flota). */
html body .login-stage{background:var(--bg,#fafcfd)}
html body .access-card{
  box-shadow:none !important;
  border:1px solid #e2e9ed;
  border-radius:20px;
  background:#fff;
}
html body #login form button,
html body .access-card #login form button,
html body #signin button{
  border-radius:var(--fg-btn-radius,14px) !important;
  min-height:48px;
}

/* Portada: misma familia que el login, sin testimonios ni precios. */
.access-card:has(#demo-portada:not([hidden])) .access-logo{display:none !important}
#demo-portada .demo-lockup{
  display:block;height:40px;width:auto;max-width:min(200px,70vw);
  object-fit:contain;object-position:center;margin:8px 0 4px;
}
#demo-portada h2,
#demo-portada #demo-title{
  margin:0;color:var(--navy,#05223A);
  font-family:Inter,system-ui,sans-serif;font-weight:800;font-size:1.75rem;
  letter-spacing:-.02em;line-height:1.15;
}
#demo-portada .demo-lead{color:#546675;font-size:15.5px;line-height:1.5}
#demo-portada .demo-church-name{color:var(--navy,#05223A);font-weight:700}
#demo-portada .demo-church-tag{color:#546675}
#demo-portada .demo-note{
  background:#e8f5f7;border:1px solid #e2e9ed;border-radius:14px;
  color:var(--navy,#05223A);box-shadow:none;padding:12px 14px;
}
#demo-portada .demo-note::before{display:none !important}
#demo-portada .demo-role{
  box-shadow:none !important;
  background:#fff;border:1px solid #e2e9ed;border-radius:20px;
}
#demo-portada .demo-role h3{color:var(--navy,#05223A);font-weight:800}
#demo-portada .demo-role-desc{color:#546675}
#demo-portada .demo-code-block{
  background:#fafcfd;border:1px solid #e2e9ed;border-radius:14px;
  box-shadow:none;
}
#demo-portada .demo-code-label{color:#007883}
#demo-portada .demo-code{
  font-family:Inter,system-ui,sans-serif !important;
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
  color:var(--navy,#05223A);
}
#demo-portada .demo-enter,
#demo-portada button.demo-enter{
  min-height:48px;height:52px;border:0;border-radius:var(--fg-btn-radius,14px) !important;
  background:var(--teal-d,#007883);color:#fff;font-weight:700;
  box-shadow:none !important;
}
#demo-portada .demo-copy,
#demo-portada button.demo-copy.secondary{
  min-height:48px;border-radius:var(--fg-btn-radius,14px) !important;
  border:1px solid #e2e9ed;background:#fff;color:var(--navy,#05223A);font-weight:600;
  box-shadow:none !important;
}
#demo-portada .demo-copy.is-copied{color:#13653F;background:#DDF3E6;border-color:#DDF3E6}
#demo-portada .demo-footer .signin-credit{margin-top:16px}
#demo-portada a.link,#demo-portada a.link:visited{color:#007883}
@media (min-width:900px){
  #demo-portada .demo-roles{grid-template-columns:repeat(4,minmax(0,1fr))}
  #demo-portada .demo-roles:not(:has([data-demo-role=usher]:not([hidden]))){
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:359px){
  #demo-portada,#demo-portada .demo-roles,#demo-portada .demo-note{max-width:100%}
}
/* Portada más alta que la ventana: se desplaza en .login, alineada arriba, sin recortar la tarjeta. */
html body #access-stage:has(#demo-portada:not([hidden])) .login{
  flex:1;
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  align-items:flex-start;
  height:auto;
}
html body .access-card:has(#demo-portada:not([hidden])){
  overflow:visible !important;
  height:auto;
  max-height:none;
}

/* ---- Fase 6: Mi cuenta y Guía (sin botón flotante) ---- */

/* Mi cuenta: banda navy a sangre, etiqueta Iglesia completa, padding 20 px. */
@media (max-width:1023px){
  body.is-in:has(#account-screen:not([hidden])) #app-main,
  body.is-in:has(#account-screen:not([hidden])) #workspace{
    padding:0 !important;
    max-width:none;
  }
  body.is-in #account-screen .head{
    width:auto;margin-left:0;margin-right:0;border-radius:0 !important;
    box-sizing:border-box;padding:18px 20px 22px;
  }
  body.is-in #account-screen .acct-h{
    margin:16px 0 8px;padding:0 20px;overflow:visible;
    color:var(--teal-d,#007883);
    font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  }
  body.is-in #account-screen .fg-card,
  body.is-in #account-screen .acct{margin-left:20px !important;margin-right:20px !important}
  body.is-in #account-screen .acct-credit{margin:20px 20px 8px;justify-content:flex-start}
}
body.is-in #account-screen .lang-light{
  display:inline-flex;height:48px;min-height:48px;padding:0;
  border:1px solid #e2e9ed;border-radius:999px;overflow:hidden;background:#fff;
}
body.is-in #account-screen .lang-light button{
  width:48px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:0 !important;
  font-weight:700;font-size:13px;
}
body.is-in #account-screen .acct-credit{
  display:flex;align-items:center;gap:6px;
  color:#546675;font-size:14px;font-weight:600;
}
body.is-in #account-screen .acct-credit .credit-mark{width:18px;height:18px;object-fit:contain}

/* Login (cuentas individuales): Guía como enlace de cabecera, 48 px, 14 px. */
#signin-guide.signin-guide{
  min-height:48px;min-width:48px;padding:0 14px;
  border-radius:var(--fg-btn-radius,14px) !important;
  border:1px solid #e2e9ed;background:#fff;color:var(--navy,#05223A);
  font-weight:600;font-size:14px;
}

/* Panel de la guía: barra navy, pestañas 14 px, tarjetas planas. */
#fg-pilot-guide-root .fgpg-bar{
  background:var(--navy,#05223A);color:#fff;border-bottom:0;
  padding:8px 12px 8px 20px;
}
#fg-pilot-guide-root .fgpg-bar h2{color:#fff;font-family:Inter,system-ui,sans-serif}
#fg-pilot-guide-root .fgpg-close{
  width:48px;height:48px;min-width:48px;min-height:48px;
  border-radius:var(--fg-btn-radius,14px) !important;
  border:1px solid #C3D0DF;background:transparent;color:#fff;
}
#fg-pilot-guide-root .fgpg-close:hover,
#fg-pilot-guide-root .fgpg-close:focus{background:rgba(255,255,255,.12);color:#fff}
#fg-pilot-guide-root .fgpg-body .guia-lead,
#fg-pilot-guide-root .fgpg-body .guia-intro{color:#546675}
#fg-pilot-guide-root .fgpg-body .guia-roles [role=tab]{
  border-radius:var(--fg-btn-radius,14px) !important;
  border-color:#e2e9ed;min-height:48px;
}
#fg-pilot-guide-root .fgpg-body .guia-topic{
  box-shadow:none;border:1px solid #e2e9ed;border-radius:20px;background:#fff;
}
@media (min-width:1024px){
  #fg-pilot-guide-root .fgpg-bar{border-radius:20px 20px 0 0}
}
/* El interruptor ES/EN de Mi cuenta no debe recortarse a 390. */
body.is-in #account-screen .acct{overflow:visible}
body.is-in #account-screen .acct-row{display:flex;align-items:center;gap:10px;min-width:0}
body.is-in #account-screen .acct-row .grow{min-width:0;flex:1}
body.is-in #account-screen .lang-light{flex:none}
@media (max-width:1023px){
  body.is-in #account-screen .acct-row:has(.lang){
    flex-wrap:wrap;
    align-items:flex-start;
  }
  body.is-in #account-screen .acct-row:has(.lang) .lang-light{
    margin-left:0;
  }
}


/* ---- Fase 6b · P0/P1/P2 de Brand (Mi cuenta, Guía, login) ---- */

/* P0: el cambio de área va debajo del encabezado navy, como el interruptor de siempre. */
#account-screen .p3br-acct{display:none !important}
body.is-in #account-screen .acct-area{
  margin:0 20px 16px;
  min-width:0;
  box-sizing:border-box;
}
body.is-in #account-screen .acct-area .p3br-seg{
  display:flex;width:100%;align-items:stretch;
  border:1px solid #e2e9ed;border-radius:var(--fg-btn-radius,14px);
  background:#fff;overflow:hidden;min-height:48px;
}
body.is-in #account-screen .acct-area .p3br-seg-btn{
  flex:1;min-height:48px;min-width:0;padding:0 12px;margin:0;
  border:0;border-radius:0 !important;
  background:transparent;color:var(--navy,#05223A);
  font:600 15px/1.2 Inter,system-ui,sans-serif;cursor:pointer;
}
body.is-in #account-screen .acct-area .p3br-seg-btn[aria-pressed=true]{
  background:var(--navy,#05223A);color:#fff;font-weight:700;
}
body.is-in #account-screen .acct-area .p3br-seg-btn[aria-pressed=false]:hover{
  background:#f0f6f8;color:var(--navy,#05223A);
}
body.is-in #account-screen .acct-area .p3br-seg-btn:focus-visible{
  outline:3px solid #007883;outline-offset:-3px;z-index:1;
}
@media (min-width:1024px){
  body.is-in #account-screen .acct-area{margin:0 0 16px}
}

/* P1: Cerrar sesión al final, como acción de texto, sin flecha.
   El crédito queda visible en 390×844 (encima de la barra). */
body.is-in #account-screen .acct-signout{
  display:block;width:auto;max-width:100%;
  margin:0;padding:12px 0;min-height:48px;
  border:0;background:transparent;box-shadow:none;
  color:var(--navy,#05223A);
  font:600 15.5px/1.3 Inter,system-ui,sans-serif;
  text-align:left;cursor:pointer;
  border-radius:var(--fg-btn-radius,14px);
}
body.is-in #account-screen .acct-signout:hover,
body.is-in #account-screen .acct-signout:focus{background:transparent;text-decoration:underline}
body.is-in #account-screen .acct-signout:focus-visible{
  outline:3px solid #007883;outline-offset:2px;
}
@media (max-width:1023px){
  body.is-in:has(#account-screen:not([hidden])) #account-screen .acct-foot{
    position:fixed;
    left:0;right:0;
    bottom:var(--fg-tabbar-h,64px);
    z-index:6;
    margin:0;
    padding:8px 20px calc(8px + env(safe-area-inset-bottom,0px));
    background:var(--bg,#fafcfd);
    border-top:1px solid #e2e9ed;
    box-sizing:border-box;
  }
  body.is-in:has(#account-screen:not([hidden])) #account-screen .acct-credit{
    margin:0 0 0 !important;
  }
  body.is-in:has(#account-screen:not([hidden])) #account-screen .screen-block{
    padding-bottom:calc(108px + var(--fg-tabbar-h,64px) + env(safe-area-inset-bottom,0px)) !important;
  }
}
@media (min-width:1024px){
  body.is-in #account-screen .acct-foot{
    margin:24px 0 8px;
  }
  body.is-in #account-screen .acct-credit{margin:0 0 4px}
}

/* P2: ayuda del campo de código. */
#login .field-hint[data-t=accessCodeHint],
#signin .field-hint[data-t=accessCodeHint]{
  margin:8px 0 16px;color:#546675;font-size:13.5px;line-height:1.4;font-weight:500;
}

/* P1/P2 Guía: interruptor segmentado, un solo nivel de borde, FAQ. */
#fg-pilot-guide-root .fgpg-body .guia-roles{
  display:flex;align-items:stretch;flex-wrap:nowrap;gap:0;
  border:1px solid #e2e9ed;border-radius:var(--fg-btn-radius,14px);
  background:#fff;overflow:hidden;min-height:48px;margin:0 0 18px;
}
#fg-pilot-guide-root .fgpg-body .guia-roles [role=tab]{
  flex:1;min-width:0;min-height:48px;padding:0 8px;margin:0;
  border:0 !important;border-radius:0 !important;
  background:transparent;color:var(--navy,#05223A);
  font:600 14px/1.2 Inter,system-ui,sans-serif;
}
#fg-pilot-guide-root .fgpg-body .guia-roles [role=tab][aria-selected=true]{
  background:var(--navy,#05223A);color:#fff;font-weight:700;
  border-color:transparent;
}
#fg-pilot-guide-root .fgpg-body .guia-roles [role=tab]:focus-visible{
  outline:3px solid #007883;outline-offset:-3px;z-index:1;box-shadow:none;
}
#fg-pilot-guide-root .fgpg-body .guia-topic{
  box-shadow:none;border:1px solid #e2e9ed;border-radius:20px;background:#fff;
}
#fg-pilot-guide-root .fgpg-body .guia-video{
  margin:12px 0 0;padding:0;border:0;border-radius:0;
  background:transparent;color:#546675;
}
#fg-pilot-guide-root .fgpg-body .guia-faq{
  margin:8px 0 0;padding:16px 0 0;border-top:1px solid #e2e9ed;
}
#fg-pilot-guide-root .fgpg-body .guia-faq h2{
  margin:0 0 12px;color:var(--navy,#05223A);
  font:700 18px/1.3 Inter,system-ui,sans-serif;
}
#fg-pilot-guide-root .fgpg-body .guia-faq .guia-topic p{
  margin:0;color:#546675;font:500 15px/1.5 Inter,system-ui,sans-serif;
}


/* Mi cuenta cubre por completo la vista anterior (p. ej. Inicio del líder). */
@media (max-width:1023px){
  body.is-in:has(#account-screen:not([hidden])) #account-screen{
    background:var(--bg,#fafcfd) !important;
    position:relative;
    z-index:5;
    min-height:100%;
    isolation:isolate;
  }
  body.is-in:has(#account-screen:not([hidden])) #p3-home,
  body.is-in:has(#account-screen:not([hidden])) #p3-summary,
  body.is-in:has(#account-screen:not([hidden])) #p3-services,
  body.is-in:has(#account-screen:not([hidden])) #groups-screen,
  body.is-in:has(#account-screen:not([hidden])) #group-detail,
  body.is-in:has(#account-screen:not([hidden])) #leader-head,
  body.is-in:has(#account-screen:not([hidden])) .chrome-viewbar,
  body.view-account #leader-head{
    display:none !important;
  }
}

/* ---- Ajustes visuales 27 nov 2026 (Hermes): login, idioma, chips, cuenta, formulario, header ---- */

/* 1) Espacio entre «Sign in» / «Iniciar sesión» y las tarjetas de rol. */
.access-card #login > h2,
#login > h2[data-t="signInTitle"]{
  margin:0 0 20px;
}

/* 2) Selector ES/EN: margen interior para que la píldora activa no se recorte
     contra el marco; área de toque 48 px; safe-area a la derecha en login. */
.login-stage .access-bar{
  padding:12px max(16px, env(safe-area-inset-right,0px)) 12px max(16px, env(safe-area-inset-left,0px));
  box-sizing:border-box;
}
.lang,
.login-stage #access-lang,
#p3-home .lang-on-navy,
body.is-in #account-screen .lang-light,
body.is-in .side-foot .lang-side{
  display:inline-flex;
  align-items:center;
  flex:none;
  box-sizing:border-box;
  height:auto;
  min-height:56px;
  padding:4px;
  gap:2px;
  overflow:hidden;
  border-radius:999px;
}
.lang button,
.login-stage #access-lang button,
.login-stage #access-lang button[data-lang],
#p3-home .lang-on-navy button,
body.is-in #account-screen .lang-light button,
body.is-in .side-foot .lang-side button,
body.is-in .side-foot .lang-side button[data-lang]{
  box-sizing:border-box;
  width:48px;
  min-width:48px;
  min-height:48px;
  padding:0;
  border-radius:999px !important;
  flex:none;
}
body.is-in #account-screen .acct-row:has(.lang){
  padding-right:4px;
  box-sizing:border-box;
}

/* 3) Scroll horizontal del menú lateral en escritorio. */
@media (min-width:1024px){
  body.is-in .side{
    overflow-x:hidden;
    overflow-y:auto;
    min-width:0;
    max-width:var(--side-w,248px);
  }
  body.is-in .side .church,
  body.is-in .side .church-copy,
  body.is-in .side .church-switch,
  body.is-in .side .side-nav,
  body.is-in .side .side-foot{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
}

/* 4) Pie de Mi cuenta: al final del scroll, no fijo sobre la lista. */
@media (max-width:1023px){
  body.is-in:has(#account-screen:not([hidden])) #account-screen .acct-foot{
    position:static;
    left:auto;right:auto;bottom:auto;
    z-index:auto;
    margin:24px 16px 8px;
    padding:0;
    background:transparent;
    border-top:0;
  }
  body.is-in:has(#account-screen:not([hidden])) #account-screen .acct-credit{
    margin:0 0 8px !important;
  }
  body.is-in:has(#account-screen:not([hidden])) #account-screen .screen-block{
    padding-bottom:calc(24px + var(--fg-tabbar-h,80px) + env(safe-area-inset-bottom,0px)) !important;
  }
}

/* 5) Títulos de sección en Resumen: más aire encima, el mismo en todos. */
#p3-summary .fg-sum-body{gap:20px}
#p3-summary .p3-faltan h2,
#p3-summary .p3-groups-preview > .p3-card-head,
#p3-summary .p3-card > .p3-card-head,
#p3-summary .p3-form-card{
  margin-top:4px;
}
#p3-summary .p3-faltan{margin-top:4px}
#p3-summary .p3-faltan h2{margin:20px 0 10px;font-size:17px;font-weight:700}
#p3-summary .fg-sum-body > .p3-faltan:first-child h2,
#p3-summary .fg-sum-body > .p3-card:first-child > .p3-card-head,
#p3-summary .fg-sum-body > .p3-groups-preview:first-child > .p3-card-head{
  margin-top:0;
}

/* 6) Formulario del líder (pasos 1–5): margen lateral 20 px, aire entre campos, X visible. */
@media (max-width:1023px){
  body.is-in[data-p3=report] #submission,
  body.is-in[data-p3=report] #report{
    padding:16px 20px calc(24px + var(--fg-tabbar-h,80px) + env(safe-area-inset-bottom,0px));
    box-sizing:border-box;
    max-width:100%;
  }
  body.is-in[data-p3=report] #report .fg2-section > label,
  body.is-in[data-p3=report] #report .fg2-section > p,
  body.is-in[data-p3=report] #review > div > * + *{
    margin-top:14px;
  }
  body.is-in[data-p3=report] #p3-wiz-top .p3-progress{
    margin:8px 20px 10px;
    width:auto;
    box-sizing:border-box;
  }
  body.is-in #p3-wiz-top .p3-icon-btn{
    width:48px;height:48px;min-width:48px;min-height:48px;
    border:1px solid rgba(255,255,255,.4);
    border-radius:14px;
    background:rgba(255,255,255,.12);
    color:#fff;
  }
  body.is-in #p3-wiz-top .p3-icon-btn .i{
    width:22px;height:22px;stroke-width:2.4;
  }
}

/* 7) Chips de estado: píldora con fondo (ámbar / verde / rojo) en Resumen y Reportes. AA. */
body.is-in .fg-status,
body.is-in .fg-status-chip,
#p3-summary .fg-status,
#p3-summary .fg-groups-table .fg-status,
#p3-summary .fg-groups-cards .fg-status,
#results .fg-status,
#results .fg-status-chip,
#desktop-report-table .fg-status,
#desktop-report-table .fg-status-chip,
#groups-screen .fg-status,
#groups-screen .fg-status-chip,
#groups-screen .fg-groups-table .fg-status{
  display:inline-flex !important;
  align-items:center;
  box-sizing:border-box;
  border:0 !important;
  border-radius:999px !important;
  padding:3px 9px !important;
  min-height:22px !important;
  font:600 12.5px/1.2 Inter,system-ui,sans-serif !important;
}
body.is-in .fg-status-pending,
#p3-summary .fg-status-pending,
#p3-summary .fg-groups-table .fg-status-pending,
#p3-summary .fg-groups-table .fg-status.fg-status-pending,
#p3-summary .fg-groups-cards .fg-status-pending,
#p3-summary .fg-groups-cards .fg-status.fg-status-pending,
#p3-summary .fg-group-card .fg-status-pending,
#p3-summary .end .fg-status-pending,
#results .fg-status-pending,
#desktop-report-table .fg-status-pending,
#groups-screen .fg-status-pending{
  background:var(--status-pending-bg,#FFF4D6) !important;
  color:var(--status-pending,#8A5A00) !important;
}
body.is-in .fg-status-missing,
#p3-summary .fg-status-missing,
#p3-summary .fg-groups-table .fg-status-missing,
#p3-summary .fg-groups-table .fg-status.fg-status-missing,
#p3-summary .fg-groups-cards .fg-status-missing,
#p3-summary .fg-groups-cards .fg-status.fg-status-missing,
#p3-summary .fg-group-card .fg-status-missing,
#p3-summary .end .fg-status-missing,
#results .fg-status-missing,
#desktop-report-table .fg-status-missing,
#groups-screen .fg-status-missing{
  background:var(--status-missing-bg,#FBE7E5) !important;
  color:var(--status-missing,#A52A23) !important;
}
body.is-in .fg-status-sent,
body.is-in .fg-status-reported,
#p3-summary .fg-status-sent,
#p3-summary .fg-status-reported,
#p3-summary .fg-groups-table .fg-status-sent,
#p3-summary .fg-groups-table .fg-status-reported,
#p3-summary .fg-groups-table .fg-status.fg-status-sent,
#p3-summary .fg-groups-table .fg-status.fg-status-reported,
#p3-summary .fg-groups-cards .fg-status-sent,
#p3-summary .fg-groups-cards .fg-status-reported,
#p3-summary .fg-groups-cards .fg-status.fg-status-sent,
#p3-summary .fg-groups-cards .fg-status.fg-status-reported,
#p3-summary .fg-group-card .fg-status-sent,
#p3-summary .fg-group-card .fg-status-reported,
#p3-summary .end .fg-status-sent,
#p3-summary .end .fg-status-reported,
#results .fg-status-sent,
#results .fg-status-reported,
#desktop-report-table .fg-status-sent,
#desktop-report-table .fg-status-reported,
#groups-screen .fg-status-sent,
#groups-screen .fg-status-reported{
  background:var(--status-sent-bg,#DDF3E6) !important;
  color:var(--status-sent,#13653F) !important;
}

/* 8) Iglesia activa siempre visible, una línea con puntos suspensivos. */
#p3-summary .fg-navy-church,
#p3-home .fg-navy-church,
#p3-summary .fg-desk-church,
body.is-in .side .church b,
body.is-in .church-chip > span{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (min-width:1024px){
  body.is-in .side .church.has-switch > b,
  .side .church.has-switch > b{
    position:static;
    width:auto;
    height:auto;
    margin:0 0 8px;
    overflow:hidden;
    clip:auto;
    clip-path:none;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:15px;
    font-weight:600;
    color:#fff;
    line-height:1.25;
  }
  #p3-summary .fg-desk-church{
    margin:0 0 4px;
    font-size:15px;
    font-weight:600;
    color:var(--navy,#05223A);
  }
}

/* 9) Conteo del ujier: «aún no ingresé» distinto de cero. */
#p3-services .sff-total.is-empty .n,
#p3-service-form .sff-total.is-empty .n,
.sff-total.is-empty .n{
  color:var(--side-muted,#C3D0DF) !important;
  -webkit-text-fill-color:var(--side-muted,#C3D0DF) !important;
  font-weight:700;
}

/* 10) Botón Guía abajo, discreto, por encima de la barra de pestañas. */
.p3g-dock{
  position:fixed;
  right:max(16px, env(safe-area-inset-right,0px));
  bottom:calc(12px + var(--fg-tabbar-h,80px) + env(safe-area-inset-bottom,0px));
  z-index:24;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  min-width:48px;
  padding:0 14px;
  margin:0;
  border:1px solid #e2e9ed;
  border-radius:14px;
  background:#fff;
  color:var(--navy,#05223A);
  box-shadow:0 1px 2px rgba(5,34,58,.06),0 8px 20px -12px rgba(5,34,58,.18);
  font:600 14px/1.2 Inter,system-ui,sans-serif;
  cursor:pointer;
  box-sizing:border-box;
}
.p3g-dock[hidden]{display:none !important}
.p3g-dock svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.p3g-dock:hover,.p3g-dock:focus{background:#fff;border-color:var(--teal-d,#007883);color:var(--navy,#05223A)}
.p3g-dock:focus-visible{outline:3px solid #007883;outline-offset:2px}
@media (min-width:1024px){
  .p3g-dock{bottom:24px;right:24px}
}

/* ---- Correcciones visuales 27 nov 2026 (Hermes), pasada 390 ---- */

/* B) Inicio del líder: iglesia en el header; el dato del grupo va debajo. */
#p3-home .fg-navy-copy{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:1px;
}
#p3-home .fg-navy-copy .fg-navy-church{
  flex:none;
  width:100%;
  max-width:100%;
}
#p3-home .fg-navy-meta{
  margin:0;
  font:500 13px/1.25 Inter,system-ui,sans-serif;
  color:var(--on-navy-muted,#A9BBD1);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* C) El botón Guía no tapa acciones fijas abajo (conteo del ujier, reporte del líder). */
body.is-in[data-p3=report] #p3-guide-dock,
body.is-in:has([data-p3s="send"]) #p3-guide-dock{
  display:none !important;
}

/* D) X de cerrar del reporte del líder: marco visible ≥ 44 px en el navy. */
@media (max-width:1023px){
  body.is-in #p3-wiz-top .p3-wiz-bar{
    grid-template-columns:48px 1fr 48px;
    min-height:48px;
    align-items:center;
  }
  body.is-in #p3-wiz-top .p3-icon-btn,
  body.is-in[data-p3=report] #p3-wiz-top .p3-icon-btn{
    box-sizing:border-box !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    padding:0 !important;
    flex:none !important;
    border:1.5px solid rgba(255,255,255,.75) !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.2) !important;
    color:#fff !important;
  }
  body.is-in #p3-wiz-top .p3-icon-btn .i,
  body.is-in[data-p3=report] #p3-wiz-top .p3-icon-btn .i{
    width:24px !important;
    height:24px !important;
    stroke-width:2.6 !important;
  }
  /* E) «STEP 1 OF 5» con contraste AA sobre navy (blanco, no teal). */
  body.is-in #p3-wiz-top .p3-wiz-bar small,
  body.is-in #p3-wiz-top .p3-wiz-bar .where small,
  body.is-in[data-p3=report] #p3-wiz-top .p3-wiz-bar small{
    color:#fff !important;
  }
}

/* F) Paso de fecha del ujier: título visible en la franja navy. */
@media (max-width:1023px){
  body.is-in[data-p3-role=usher] #p3-services .p3s-wiz-head h2,
  body.is-in[data-p3-role=usher] #p3-services .p3s-wiz-head .p3s-back{
    color:#fff !important;
  }
  body.is-in[data-p3-role=usher] #p3-services .p3s-wiz-head h2{
    font-size:17.5px;
    font-weight:700;
    line-height:1.25;
  }
}

/* G) Menú lateral de escritorio: el nombre de la iglesia puede ocupar 2 líneas. */
@media (min-width:1024px){
  body.is-in .side .church{align-items:flex-start}
  body.is-in .side .church-copy{flex:1;min-width:0}
  body.is-in .side .church b,
  body.is-in .side .church.has-switch > b,
  body.is-in .side .church.has-switch .church-copy > b,
  .side .church.has-switch > b,
  .side .church.has-switch .church-copy > b{
    position:static !important;
    width:auto !important;
    height:auto !important;
    margin:0 0 8px;
    overflow:hidden;
    clip:auto !important;
    clip-path:none !important;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    white-space:normal;
    text-overflow:ellipsis;
    max-width:100%;
    font-size:15px;
    font-weight:600;
    color:#fff;
    line-height:1.25;
  }
}

/* 27 nov 2026 — Tipos en preguntas propias del formulario de grupos.
   Líder: Sí / No como el formulario del ujier (dos opciones de 48 px). Admin: ajustes del campo en la fila. */
#report .fg2-section .fg-yesno{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:13.5px;line-height:1.45;font-weight:600;color:var(--navy,#05223A)}
#report .fg2-section .fg-yesno[hidden]{display:none}
#report .fg2-section .fg-yesno-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#report .fg2-section .fg-yesno-pill{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:0 14px;border:1.5px solid #d7e0e6;border-radius:14px;background:#fff;color:var(--navy,#05223A);font:700 15px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
#report .fg2-section .fg-yesno-pill input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;min-height:0;border:0}
#report .fg2-section .fg-yesno-pill:has(input:checked){border-color:var(--teal,#007883);background:#e6f5f6;color:var(--navy,#05223A)}
#report .fg2-section .fg-yesno-pill:has(input:focus-visible){outline:2px solid var(--teal,#007883);outline-offset:2px}
html body[data-p3-role] #report .fg2-section input[type=radio]{min-height:0;border-radius:0 !important}

body.view-reports[data-p3=form] .fg2-props{display:none;flex-basis:100%;order:6;flex-direction:column;gap:10px;margin:2px 0 4px}
body.view-reports[data-p3=form] .fg2-row.is-sel .fg2-props{display:flex}
body.view-reports[data-p3=form] .fg2-prop{display:block;margin:0;font-size:12.5px;font-weight:600;color:var(--muted)}
body.view-reports[data-p3=form] .fg2-prop[hidden]{display:none !important}
body.view-reports[data-p3=form] .fg2-prop select,
body.view-reports[data-p3=form] .fg2-prop textarea{display:block;width:100%;box-sizing:border-box;min-height:48px;margin-top:4px;padding:10px 12px;border:1px solid #c9d5dc;border-radius:14px;background:#fff;color:var(--navy,#05223A);font:500 16px/1.35 Inter,system-ui,sans-serif}
body.view-reports[data-p3=form] .fg2-prop textarea{min-height:96px;resize:vertical}
body.view-reports[data-p3=form] .fg2-required{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 4px;color:var(--navy,#05223A);font-size:13.5px}
body.view-reports[data-p3=form] .fg2-required input{width:22px;height:22px;margin:0;accent-color:var(--teal,#007883)}

/* 27 nov 2026 — Form builder: la tarjeta «Empezar con una plantilla» heredaba el marco
   de section en app.css, pero .p3-templates ponía padding:0 y el botón y el párrafo
   tocaban el borde. Padding interior 16 px, como las otras tarjetas de avisos. */
body.view-reports[data-p3=form] #p3-templates{
  margin:16px 0 8px;padding:16px;box-sizing:border-box
}
body.view-reports[data-p3=form] #p3-templates .p3-tpl-lead{margin:12px 0 0}

/* 28 nov 2026 — Revisión móvil 320/390 de Brand (Hermes). */
@media (max-width:1023px){
  /* 1) Inicio del líder: ES/EN y cuenta en una segunda fila; el nombre hasta 2 líneas a 15 px. */
  #p3-home .fg-navy-top{
    display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  }
  #p3-home .fg-navy-tools{
    flex:1 1 100%;
    display:flex;justify-content:flex-end;align-items:center;gap:10px;
    margin-left:0;
  }
  #p3-home .fg-navy-copy{flex:1 1 auto;min-width:0}
  #p3-home .fg-navy-church,
  #p3-home .fg-navy-copy .fg-navy-church,
  #p3-summary .fg-navy-church{
    display:-webkit-box !important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    white-space:normal !important;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:15px;
    font-weight:600;
    line-height:1.25;
    max-width:100%;
  }
  #p3-home .fg-navy-meta{
    display:-webkit-box !important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    white-space:normal !important;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* Reportes: el selector «Iglesia activa» ocupa todo el ancho; el filtro «Iglesia» apila la etiqueta. */
  body.is-in[data-p3="list"] #p3-list-top .p3-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px 12px;
  }
  body.is-in[data-p3="list"] #p3-list-top .p3-head .ttl{
    display:contents;
  }
  body.is-in[data-p3="list"] #p3-list-top .p3-church-switch-wrap{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
    margin:0;
  }
  body.is-in[data-p3="list"] #p3-list-top .p3-church-switch-wrap .church-switch{
    width:100%;
    max-width:100%;
  }
  body.is-in[data-p3="list"] #p3-list-top .p3-head h1{grid-column:1;margin:0}
  body.is-in[data-p3="list"] #p3-list-top .p3-head-actions{grid-column:2;grid-row:2}
  body.is-in[data-p3="list"] #p3-list-top #p3-reports-switch,
  body.is-in[data-p3="list"] #p3-list-top #p3-list-lead{grid-column:1 / -1}

  body[data-p3-role=admin] #campus-scope label,
  body[data-p3-role=admin] #p3-filter-row #campus-scope label,
  body[data-p3-role=admin] #scope-church-label{
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }
  body[data-p3-role=admin] #campus-scope select,
  body[data-p3-role=admin] #p3-filter-row #campus-scope select{
    width:100%;
    min-width:0;
    flex:none;
  }
}

/* 2) Guía no tapa «Continuar» del ujier. */
body.is-in:has([data-p3s="continue"]) #p3-guide-dock{
  display:none !important;
}

/* 3) «Administrador» completo en el interruptor de roles de la Guía. */
#fg-pilot-guide-root .fgpg-body .guia-roles [role=tab]{
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  font-size:13px;
  padding:0 6px;
}
#fg-pilot-guide-root .fgpg-body .guia-roles #tab-admin{
  flex:1.5 1 0;
}
#fg-pilot-guide-root .fgpg-body .guia-roles #tab-lider,
#fg-pilot-guide-root .fgpg-body .guia-roles #tab-usher{
  flex:0.85 1 0;
}

/* 4) Fecha visible en español: dd/mm/aaaa (el valor enviado sigue en YYYY-MM-DD).
   Vive también aquí para no depender del caché antiguo de fields.css?v=fase2b. */
.fg-date-es{position:relative;display:block;width:100%;}
.fg-date-es .fg-date-text{
  width:100%;min-height:48px;box-sizing:border-box;
  padding:10px 48px 10px 14px;
  border:1px solid #c9d5dc;border-radius:var(--r-md,14px);
  background:#fff;color:var(--navy,#05223A);
  font:500 16px/1.3 Inter,system-ui,sans-serif;
}
.fg-date-es .fg-date-text:focus{outline:2px solid #007883;outline-offset:1px;border-color:#007883}
body[data-p3-role] #report .fg2-section .fg-date-es > input[type=date].fg-date-native,
.fg2-section .fg-date-es > input[type=date].fg-date-native,
.fg-date-es > .fg-date-native{
  position:absolute !important;
  width:1px !important;height:1px !important;
  min-width:0 !important;min-height:0 !important;max-width:none !important;
  margin:0 !important;padding:0 !important;border:0 !important;
  opacity:0 !important;pointer-events:none !important;
  overflow:hidden !important;clip:rect(0 0 0 0) !important;clip-path:inset(50%) !important;
  appearance:none !important;-webkit-appearance:none !important;
  left:0 !important;bottom:0 !important;
}
.fg-date-es .fg-date-cal{
  position:absolute;right:0;top:0;width:48px;height:48px;min-height:48px;
  padding:0;border:0;background:transparent;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2305223a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;
}
.fg-date-es .fg-date-cal:focus-visible{outline:2px solid #007883;outline-offset:-2px;border-radius:12px}

/* Guía no tapa la última tarjeta ni «Ver detalle» en Reportes. */
@media (max-width:1023px){
  body.is-in[data-p3="list"] #p3-list{
    padding-bottom:calc(88px + var(--fg-tabbar-h,80px) + env(safe-area-inset-bottom,0px));
  }
}
